PageSourceSearch

https://j2proxy.vn/_next/static/chunks/21951.01692be674e2159f.js

js j2proxy.vn collected 2026-09-24 15:19:11 UTC 38,586 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21951],{3468:(e,t,l)=>{l.d(t,{A:()=>n,q:()=>r});var a=l(12115),s=l(95155);function r(e,t){let l=a.createContext(t),r=e=>{let{children:t,...r}=e,n=a.useMemo(()=>r,Object.values(r));return(0,s.jsx)(l.Provider,{value:n,children:t})};return r.displayName=e+"Provider",[r,function(s){let r=a.useContext(l);if(r)return r;if(void 0!==t)return t;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function n(e,t=[]){let l=[],r=()=>{let t=l.map(e=>a.createContext(e));return function(l){let s=l?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return r.scopeName=e,[function(t,r){let n=a.createContext(r),i=l.length;l=[...l,r];let o=t=>{let{scope:l,children:r,...o}=t,d=l?.[e]?.[i]||n,c=a.useMemo(()=>o,Object.values(o));return(0,s.jsx)(d.Provider,{value:c,children:r})};return o.displayName=t+"Provider",[o,function(l,s){let o=s?.[e]?.[i]||n,d=a.useContext(o);if(d)return d;if(void 0!==r)return r;throw Error(`\`${l}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let l=()=>{let l=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=l.reduce((t,{useScope:l,scopeName:a})=>{let s=l(e)[`__scope${a}`];return{...t,...s}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return l.scopeName=t.scopeName,l}(r,...t)]}},4129:(e,t,l)=>{l.d(t,{N:()=>s});var a=l(12115),s=globalThis?.document?a.useLayoutEffect:()=>{}},23558:(e,t,l)=>{l.d(t,{i:()=>i});var a,s=l(12115),r=l(4129),n=(a||(a=l.t(s,2)))[" useInsertionEffect ".trim().toString()]||r.N;function i({prop:e,defaultProp:t,onChange:l=()=>{},caller:a}){let[r,i,o]=function({defaultProp:e,onChange:t}){let[l,a]=s.useState(e),r=s.useRef(l),i=s.useRef(t);return n(()=>{i.current=t},[t]),s.useEffect(()=>{r.current!==l&&(i.current?.(l),r.current=l)},[l,r]),[l,a,i]}({defaultProp:t,onChange:l}),d=void 0!==e,c=d?e:r;{let t=s.useRef(void 0!==e);s.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,a])}return[c,s.useCallback(t=>{if(d){let l="function"==typeof t?t(e):t;l!==e&&o.current?.(l)}else i(t)},[d,e,i,o])]}Symbol("RADIX:SYNC_STATE")},25959:(e,t,l)=>{l.d(t,{v:()=>n});var a=l(12115);let s=e=>{let t,l=new Set,a=(e,a)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=a?a:"object"!=typeof s||null===s)?s:Object.assign({},t,s),l.forEach(l=>l(t,e))}},s=()=>t,r={setState:a,getState:s,getInitialState:()=>n,subscribe:e=>(l.add(e),()=>l.delete(e))},n=t=e(a,s,r);return r},r=e=>{let t=(e=>e?s(e):s)(e),l=e=>(function(e,t=e=>e){let l=a.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return a.useDebugValue(l),l})(t,e);return Object.assign(l,t),l},n=e=>e?r(e):r},27937:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},32467:(e,t,l)=>{l.d(t,{DX:()=>i,Dc:()=>d,TL:()=>n});var a=l(12115),s=l(94446),r=l(95155);function n(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:l,...r}=e;if(a.isValidElement(l)){var n;let e,i,o=(n=l,(i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(i=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),d=function(e,t){let l={...t};for(let a in t){let s=e[a],r=t[a];/^on[A-Z]/.test(a)?s&&r?l[a]=(...e)=>{r(...e),s(...e)}:s&&(l[a]=s):"style"===a?l[a]={...s,...r}:"className"===a&&(l[a]=[s,r].filter(Boolean).join(" "))}return{...e,...l}}(r,l.props);return l.type!==a.Fragment&&(d.ref=t?(0,s.t)(t,o):o),a.cloneElement(l,d)}return a.Children.count(l)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),l=a.forwardRef((e,l)=>{let{children:s,...n}=e,i=a.Children.toArray(s),o=i.find(c);if(o){let e=o.props.children,s=i.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,r.jsx)(t,{...n,ref:l,children:a.isValidElement(e)?a.cloneElement(e,void 0,s):null})}return(0,r.jsx)(t,{...n,ref:l,children:s})});return l.displayName=`${e}.Slot`,l}var i=n("Slot"),o=Symbol("radix.slottable");function d(e){let t=({children:e})=>(0,r.jsx)(r.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}function c(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===o}},39180:(e,t,l)=>{l.d(t,{r:()=>s});var a=l(68019);let s=(0,l(25959).v)((e,t)=>({config:null,affiliateProgram:null,setConfig:t=>{var l,s;return e({config:{...t,theme:(null==t?void 0:t.theme)?{...t.theme,textmarquee:null!=(s=null!=(l=t.theme.textmarquee)?l:t.theme.textMarquee)?s:"",...t.theme.logo&&{logo:(0,a.V)(t.theme.logo,t.hostName)},...t.theme["logo-l"]&&{"logo-l":(0,a.V)(t.theme["logo-l"],t.hostName)}}:t.theme}})},setAffiliateProgram:t=>e({affiliateProgram:t}),getRotateUrl:()=>{var e,l;return null==(l=t().config)||null==(e=l.theme)?void 0:e.rotateUrl}}))},39509:(e,t,l)=>{l.d(t,{D:()=>r});var a=l(95155),s=l(64269);let r=e=>{let{title:t,description:l,as:r="h1",className:n}=e,i=(0,a.jsx)(r,{className:(0,s.cn)("text-sm leading-[130%] font-semibold text-[#000E43] sm:text-base 2xl:text-[18px]",n),children:t});return l?(0,a.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[i,(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:l})]}):i}},43918:(e,t,l)=>{l.d(t,{T:()=>d});var a=l(95155),s=l(24033),r=l(90368),n=l(27937),i=l(64269),o=l(61589);function d(e){let{table:t,totalItems:l,pageSizeOptions:d=[10,50,100,200,500,1e3],className:c,...x}=e,p=t.getState().pagination.pageIndex+1,u=Math.max(t.getPageCount(),1),m=t.getState().pagination.pageSize,f=t.getFilteredRowModel().rows.length,h=l&&l>0?t.getState().pagination.pageIndex*m+1:0,g=l&&l>0?Math.min(h+m-1,l):0,b=null!=l?l:f,w=Array.from({length:u},(e,t)=>t+1),v="h-[40px] w-fit shrink-0 gap-[4px] rounded-none border-none bg-transparent px-[16px] py-[10px] text-[14px] text-black shadow-none focus:ring-0";return(0,a.jsxs)("div",{className:(0,i.cn)("flex h-auto w-full flex-col items-stretch justify-between gap-2 overflow-auto sm:h-[40px] sm:flex-row sm:items-center",c),...x,children:[(0,a.jsxs)("div",{className:"flex h-[40px] items-center gap-[16px] px-[16px]",children:[(0,a.jsxs)("div",{className:"flex h-full items-center",children:[(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-black",children:"Số mục tr\xean trang:"}),(0,a.jsxs)(o.l6,{value:String(m),onValueChange:e=>t.setPageSize(Number(e)),children:[(0,a.jsx)(o.bq,{icon:(0,a.jsx)(s.A,{className:"size-[20px] text-black"}),className:v,children:(0,a.jsx)(o.yv,{})}),(0,a.jsx)(o.gC,{children:d.map(e=>(0,a.jsx)(o.eb,{value:String(e),children:e},e))})]}),(0,a.jsx)("div",{className:"h-[40px] w-px shrink-0 bg-[#e0e0e0]"})]}),(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-[#8f9aa3]",children:b>0?"".concat(h," – ").concat(g," trong số ").concat(b," mục"):"0 mục"})]}),(0,a.jsxs)("div",{className:"flex h-[40px] items-center",children:[(0,a.jsxs)("div",{className:"flex h-full items-center",children:[(0,a.jsx)("div",{className:"h-full w-px shrink-0 bg-[#e0e0e0]"}),(0,a.jsxs)(o.l6,{value:String(p),onValueChange:e=>t.setPageIndex(Number(e)-1),children:[(0,a.jsx)(o.bq,{icon:(0,a.jsx)(s.A,{className:"size-[20px] text-black"}),className:v,children:(0,a.jsx)(o.yv,{})}),(0,a.jsx)(o.gC,{children:w.map(e=>(0,a.jsx)(o.eb,{value:String(e),children:e},e))})]}),(0,a.jsxs)("span",{className:"pr-[16px] text-[14px] whitespace-nowrap text-black",children:["trong ",u," trang"]})]}),(0,a.jsxs)("div",{className:"flex h-full items-center",children:[(0,a.jsx)("div",{className:"h-[40px] w-px shrink-0 bg-[#e0e0e0]"}),(0,a.jsx)("button",{type:"button",className:(0,i.cn)("flex size-[40px] shrink-0 items-center justify-center",t.getCanPreviousPage()?"cursor-pointer text-black hover:bg-gray-100":"cursor-not-allowed text-[#c6c6c6]"),onClick:()=>t.previousPage(),disabled:!t.getCanPreviousPage(),children:(0,a.jsx)(r.A,{className:"size-[16
1px]"})}),(0,a.jsx)("div",{className:"h-[40px] w-px shrink-0 bg-[#e0e0e0]"}),(0,a.jsx)("button",{type:"button",className:(0,i.cn)("flex size-[40px] shrink-0 items-center justify-center",t.getCanNextPage()?"cursor-pointer text-black hover:bg-gray-100":"cursor-not-allowed text-[#c6c6c6]"),onClick:()=>t.nextPage(),disabled:!t.getCanNextPage(),children:(0,a.jsx)(n.A,{className:"size-[16px]"})})]})]})]})}},52164:(e,t,l)=>{l.d(t,{x:()=>n});var a=l(13744),s=l(96199),r=l(85400);function n(e,t){var l,n,i;let{data:o,status:d}=(0,s.wV)(),{data:c,isLoading:x}=(0,r.Ay)("authenticated"===d?["/api/v1/transactions",e]:null,e=>{let[t,l]=e;return a.A.fetchApi(t+l,null==o?void 0:o.accessToken).then(e=>null!=e?e:{}).catch(()=>({}))},{suspense:null!=(l=null==t?void 0:t.suspense)&&l,revalidateOnFocus:!1});return{transactions:null!=(n=null==c?void 0:c.data)?n:[],total:null!=(i=null==c?void 0:c.total)?i:0,isLoading:x,status:d}}},61589:(e,t,l)=>{l.d(t,{bq:()=>p,eb:()=>h,gC:()=>f,l6:()=>c,yv:()=>x});var a=l(95155),s=l(47887),r=l(12108),n=l(24033),i=l(12115),o=l(76830),d=l(64269);let c=s.bL;s.YJ;let x=s.WT,p=i.forwardRef((e,t)=>{let{className:l,children:r,icon:n,iconClassName:i,...c}=e;return(0,a.jsxs)(s.l9,{ref:t,className:(0,d.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]","[&>*:first-child]:min-w-0 [&>*:first-child]:flex-1 [&>*:first-child]:overflow-hidden [&>*:first-child]:text-ellipsis [&>*:first-child]:whitespace-nowrap",l),...c,children:[r,(0,a.jsx)(s.In,{asChild:!0,children:null!=n?n:(0,a.jsx)(o.F.ChevronsDownSolidIcon,{className:(0,d.cn)("text-icon-template-3 h-[14px] w-[14px]",i)})})]})});p.displayName=s.l9.displayName,i.forwardRef((e,t)=>{let{className:l,children:r,...n}=e;return(0,a.jsxs)(s.l9,{ref:t,className:(0,d.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]",l),...n,children:[r,(0,a.jsx)(s.In,{asChild:!0,children:(0,a.jsx)(o.F.ChevronsDownIcon,{className:"h-[20px] w-[20px] text-[#161616]"})})]})}).displayName=s.l9.displayName;let u=i.forwardRef((e,t)=>{let{className:l,...n}=e;return(0,a.jsx)(s.PP,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",l),...n,children:(0,a.jsx)(r.A,{className:"h-4 w-4"})})});u.displayName=s.PP.displayName;let m=i.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)(s.wn,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",l),...r,children:(0,a.jsx)(n.A,{className:"h-4 w-4"})})});m.displayName=s.wn.displayName;let f=i.forwardRef((e,t)=>{let{className:l,viewportClassName:r,children:n,position:i="popper",...o}=e;return(0,a.jsx)(s.ZL,{children:(0,a.jsxs)(s.UC,{ref:t,className:(0,d.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"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",l),position:i,...o,children:[(0,a.jsx)(u,{}),(0,a.jsx)(s.LM,{className:(0,d.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",r),children:n}),(0,a.jsx)(m,{})]})})});f.displayName=s.UC.displayName,i.forwardRef((e,t)=>
1{let{className:l,...r}=e;return(0,a.jsx)(s.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",l),...r})}).displayName=s.JU.displayName;let h=i.forwardRef((e,t)=>{let{className:l,children:r,...n}=e;return(0,a.jsx)(s.q7,{ref:t,className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",l),...n,children:(0,a.jsx)(s.p4,{children:r})})});h.displayName=s.q7.displayName,i.forwardRef((e,t)=>{let{className:l,...r}=e;return(0,a.jsx)(s.wv,{ref:t,className:(0,d.cn)("bg-muted -mx-1 my-1 h-px",l),...r})}).displayName=s.wv.displayName},63581:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},68019:(e,t,l)=>{l.d(t,{V:()=>a});let a=(e,t)=>{if(!e||"string"!=typeof e)return"";let l=e.trim();if(l.startsWith("https://")||l.startsWith("http://"))return l.replace("/api/v1","");if((e=>e.startsWith("/api/v1/files")||e.startsWith("/files/")||e.includes("/files/"))(l)){let e="https://api.homeproxy.vn".replace(/\/$/,"");if(e){let t=l.startsWith("/")?l:"/".concat(l);return"".concat(e).concat(t).replace("/api/v1","")}}let a=(t||"https://app.homeproxy.vn").trim().replace(/^https?:\/\//,"").replace(/\/$/,"");return a?l.startsWith("/")?"https://".concat(a).concat(l).replace("/api/v1",""):"https://".concat(a,"/").concat(l).replace("/api/v1",""):l}},68946:(e,t,l)=>{l.d(t,{B:()=>o});var a,s=l(12115),r=l(4129),n=(a||(a=l.t(s,2)))[" useId ".trim().toString()]||(()=>void 0),i=0;function o(e){let[t,l]=s.useState(n());return(0,r.N)(()=>{e||l(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}},70222:(e,t,l)=>{l.d(t,{c:()=>s});var a=l(12115);function s(e){let t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}},86651:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},90368:(e,t,l)=>{l.d(t,{A:()=>a});let a=(0,l(71847).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},92556:(e,t,l)=>{l.d(t,{m:()=>a});function a(e,t,{checkForDefaultPrevented:l=!0}={}){return function(a){if(e?.(a),!1===l||!a.defaultPrevented)return t?.(a)}}},95432:(e,t,l)=>{l.r(t),l.d(t,{default:()=>V});var a=l(95155),s=l(12115),r=l(7007),n=l(39509),i=l(97453),o=l(43918),d=l(17527),c=l(13744);let x={completed:{bgColor:"#f0ffed",textColor:"#239b00",label:"Đ\xe3 ho\xe0n th\xe0nh"},pending:{bgColor:"#fff9e6",textColor:"#e9a106",label:"Đang xử l\xfd"},failed:{bgColor:"#ffe6e6",textColor:"#dc2626",label:"Thất bại"}},p={1:"Nạp tiền",2:"Mua Proxy",4:"Bonus",5:"Ho\xe0n tiền"};function u(e){let{label:t,children:l}=e;return(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"shrink-0 text-[14px] leading-[19px] whitespace-nowrap text-[#808081]",children:t}),(0,a.jsx)("span",{className:"truncate text-[14px] leading-[19px] font-semibold whitespace-nowrap text-black",children:l})]})}function m(e){let{transaction:t,onViewDetail:l}=e,s=x[(()=>{var e,l;let a=null==(l=t.status)||null==(e=l.name)?void 0:e.toLowerCase();return"completed"===a||"success"===a?"completed":"pending"===a||"processing"===a?"pending":"failed"})()],r=p[t.type]||"Kh\xf4ng x\xe1c định",n=t.createdAt?new Date(t.createdAt):null,i=n?n.toLocaleDateString("vi-VN"):"N/A",o=n?n.toLocaleTimeString("vi-VN"):"";return(0,a.jsxs)("div",{className:"group flex h-full w-full flex-col items-start gap-[12px] rounded-[8px] border-0 bg-white p-[12px] shadow-[inset_0_0_0_1px_#e8e8e9] hover:shadow-[inset_0_0_0_1px_#3976f9,0p
1x_4px_6px_0px_rgba(27,86,214,0.1)]",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-center gap-[8px] text-[14px] leading-[19px] whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-[#636364]",children:"M\xe3 GD"}),(0,a.jsx)("p",{className:"truncate font-semibold text-black",children:t.code||"N/A"})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-start gap-[10px] rounded-[4px] border-0 p-[12px] shadow-[inset_0_0_0_1px_#e8e8e9]",children:[(0,a.jsx)(u,{label:"Loại giao dịch",children:r}),(0,a.jsx)(u,{label:"Số tiền",children:c.A.formatNum2(t.amount||0)}),(0,a.jsx)(u,{label:"Ng\xe0y giờ tạo",children:(0,a.jsxs)("span",{className:"flex items-center gap-[4px]",children:[(0,a.jsx)("span",{children:i}),(0,a.jsx)("span",{children:o})]})}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,a.jsx)("span",{className:"text-[14px] leading-[19px] whitespace-nowrap text-[#808081]",children:"Trạng th\xe1i"}),(0,a.jsx)("span",{className:"shrink-0 rounded-[999px] px-[8px] py-[4px] text-[14px] leading-[19px] font-semibold whitespace-nowrap",style:{backgroundColor:s.bgColor,color:s.textColor},children:s.label})]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>null==l?void 0:l(t),className:"flex h-[40px] w-full cursor-pointer items-center justify-center rounded-[4px] bg-[#dff6ff] px-[12px] py-[10px] group-hover:bg-[#a1d3ff]",children:(0,a.jsx)("span",{className:"text-[14px] leading-[1.3] font-semibold text-[#1b56d6]",children:"Xem chi tiết"})})]})}var f=l(90368),h=l(15239);let g={1:"Nạp tiền",2:"Mua Proxy",4:"Bonus",5:"Ho\xe0n tiền"},b=e=>/key/i.test(null!=e?e:""),w={VIETTEL:"/images/images-Template4/viettel.webp",FPT:"/images/images-Template4/fpt.svg",VNPT:"/images/images-Template4/vnpt.png",US:"/images/images-Template4/us.png",CMC:"/images/images-Template4/vn.png"};function v(e){let{provider:t}=e,l=null==t?void 0:t.toUpperCase();return"HOMEPROXY"===l?(0,a.jsx)(h.default,{src:"/images/images-Template4/rotate.webp",alt:"Rotate",width:24,height:24,className:"size-[24px] object-contain"}):l&&w[l]?(0,a.jsx)("div",{className:"flex h-auto w-[60px] items-center justify-center",children:(0,a.jsx)(h.default,{src:w[l],alt:null!=t?t:"",width:48,height:24,className:"h-auto w-full object-cover"})}):(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-[#2e2e2e]",children:(e=>{let t=null==e?void 0:e.toUpperCase();return"CMC"===t?"VN":t||"N/A"})(t)})}let j={completed:{bgColor:"#f0ffed",textColor:"#239b00",label:"Đ\xe3 ho\xe0n th\xe0nh"},pending:{bgColor:"#fff9e6",textColor:"#e9a106",label:"Chờ xử l\xfd"},cancelled:{bgColor:"#ffe6e6",textColor:"#dc2626",label:"Đ\xe3 hủy"},failed:{bgColor:"#ffe6e6",textColor:"#dc2626",label:"Thất bại"}};function N(e){var t;let{transaction:l,order:s,onBack:r}=e,n=g[l.type]||"Kh\xf4ng x\xe1c định",i=j[(()=>{var e,t,a;let s=Number(null==(e=l.status)?void 0:e.id);if(6===s)return"completed";if(3===s)return"pending";if(7===s||8===s)return"cancelled";let r=null==(a=l.status)||null==(t=a.name)?void 0:t.toLowerCase();return"completed"===r||"success"===r?"completed":"pending"===r||"processing"===r?"pending":"failed"})()],o=new Date(l.createdAt),d=o.toLocaleDateString("vi-VN"),x=o.toLocaleTimeString("vi-VN",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),p=null!=(t=null==s?void 0:s.products)?t:[],u=p.some(e=>{var t;return b(null==(t=e.product)?void 0:t.name)});return(0,a.jsxs)("div",{className:"flex w-full max-w-[var(--template-4-content-max-width,100%)] flex-col gap-4 min-[1440px]:gap-8 sm:gap-6",children:[(0,a.jsxs)("div",{className:"flex w-full flex-row items-center gap-2 sm:gap-2.5",children:[(0,a.jsx)("button",{type:"button",onClick:r,className:"flex size-[32px] shrink-0 cursor-pointer items-center justify-center rounded-[4px] p-[6px] text-[#000e43] hover:bg-[#f5f5f6]","aria-label":"Quay lại",children:(0,a.jsx)(f.A,{className:"size-[20px]"})}),(0,a.jsx)("h1",{className:"min-w-0 text-[16px] leading-[1.3] font-semibold whitespace-nowrap text-[#000e43]",children:"Chi tiết giao dịch"}),(0,a.jsxs)("span",{className:"min-w-0 truncate text-[16px] leading-[1.3] font-normal text-[#1b56d6]",children:["#",l.code||"N/A"]})]}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-start justify-center rounded-[8px] bg-white p-[16px]",children:[(0,a.jsxs)("div",{className:"flex w-full flex-col items-start gap-[12px]",children:[(0,a.jsxs)("h2",{className:"text-[16px] leading-[1.3] font-semibold text-black",children:["Giao dịch ",n.toLowerCase()]}),(0,a.jsx)("div",{className:"flex w-full flex-col items-start",children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-[16px] sm:flex-row sm:justify-end",children:[(0,a.jsx)("div",{className:"flex w-full flex-1 flex-row items-center self-stretch",children:(0,a.jsxs)("div",{className:"flex h-full w-full flex-1 items-center justify-between rounded-[4px] border border-[#d4d4d5] bg-white p-[12px] text-[14px] whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-[#636364]",children:"Số tiền"}),(0,a.jsxs)("p",{className:"font-semibold text-black",children:[c.A.formatNum
1(l.amount),"đ"]})]})}),1===l.type&&(0,a.jsx)("div",{className:"flex w-full flex-1 flex-row items-center self-stretch",children:(0,a.jsxs)("div",{className:"flex h-full w-full flex-1 items-center justify-between rounded-[4px] border border-[#d4d4d5] bg-white p-[12px] text-[14px] whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-[#636364]",children:"Nội dung"}),(0,a.jsx)("p",{className:"font-semibold text-black",children:l.description||l.content||"-"})]})}),(0,a.jsx)("div",{className:"flex w-full flex-1 flex-row items-center self-stretch",children:(0,a.jsxs)("div",{className:"flex h-full w-full flex-1 items-center justify-between rounded-[4px] border border-[#d4d4d5] bg-white p-[12px] text-[14px] whitespace-nowrap",children:[(0,a.jsx)("p",{className:"text-[#636364]",children:"Thời gian"}),(0,a.jsxs)("div",{className:"flex items-center gap-[8px] font-semibold text-black",children:[(0,a.jsx)("p",{children:d}),(0,a.jsx)("p",{children:x})]})]})}),(0,a.jsxs)("div",{className:"flex w-full flex-1 items-center justify-between rounded-[4px] border border-[#d4d4d5] bg-white p-[12px]",children:[(0,a.jsx)("p",{className:"text-[14px] whitespace-nowrap text-[#636364]",children:"Trạng th\xe1i"}),(0,a.jsx)("span",{className:"shrink-0 rounded-[999px] px-[8px] py-[4px] text-[14px] font-semibold whitespace-nowrap",style:{backgroundColor:i.bgColor,color:i.textColor},children:i.label})]})]})})]}),l.orderId&&(0,a.jsxs)("div",{className:"flex w-full flex-col items-start gap-3 sm:gap-4",children:[(0,a.jsx)("h2",{className:"text-text-normal-template-4 text-sm leading-[145%] font-bold sm:text-base md:text-lg",children:"Chi tiết đơn h\xe0ng"}),(0,a.jsx)("div",{className:"hidden w-full xl:block",children:(0,a.jsxs)("div",{className:"border-border-template-4 w-full overflow-hidden rounded-lg border",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-between border-b border-[#d4d4d5] bg-[#e8e8e9] px-[32px] py-[12px]",children:[(0,a.jsx)("span",{className:"w-[247px] shrink-0 text-center text-[14px] font-semibold whitespace-nowrap text-black",children:"ID"}),[u?"Key":"IP","Đơn gi\xe1","Số lượng","Ng\xe0y sử dụng","Nh\xe0 mạng"].map(e=>(0,a.jsx)("span",{className:"min-w-px flex-[1_0_0] text-center text-[14px] font-semibold whitespace-nowrap text-black",children:e},e))]}),p.length>0?p.map((e,t)=>{var l,s,r;return(0,a.jsxs)("div",{className:"border-border-template-4 flex w-full flex-row items-center border-b px-4 py-3 last:border-b-0 lg:px-6",children:[(0,a.jsx)("span",{className:"w-[247px] shrink-0 px-1 text-center text-xs leading-[130%] font-normal break-all text-[#636364] sm:text-sm md:text-base",children:(null==(l=e.product)?void 0:l.id)||t+1}),(0,a.jsx)("span",{className:"flex-1 px-1 text-center text-xs leading-[130%] font-normal break-all text-[#636364] sm:text-sm md:text-base",children:e.prefix_ip||"N/A"}),(0,a.jsxs)("span",{className:"flex-1 px-1 text-center text-xs leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-sm md:text-base",children:[c.A.formatNum((null==(s=e.product)?void 0:s.price)||0),"đ"]}),(0,a.jsx)("span",{className:"flex-1 px-1 text-center text-xs leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-sm md:text-base",children:e.quantity||1}),(0,a.jsx)("span",{className:"flex-1 px-1 text-center text-xs leading-[130%] font-normal whitespace-nowrap text-[#636364] sm:text-sm md:text-base",children:e.dayOfUse||1}),(0,a.jsx)("div",{className:"flex flex-1 items-center justify-center px-1",children:(0,a.jsx)(v,{provider:(null==(r=e.product)?void 0:r.provider)||e.provider})})]},t)}):(0,a.jsx)("div",{className:"flex w-full items-center justify-center py-6",children:(0,a.jsx)("span",{className:"text-sm text-[#9E9E9F]",children:"Đang tải dữ liệu..."})})]})}),(0,a.jsx)("div",{className:"flex w-full flex-col gap-3 xl:hidden",children:p.length>0?p.map((e,t)=>{var l,s,r,n;let i=[{label:"ID",value:(null==(l=e.product)?void 0:l.id)||t+1},{label:b(null==(s=e.product)?void 0:s.name)?"Key":"IP",value:e.prefix_ip||"N/A"}
1,{label:"Đơn gi\xe1",value:"".concat(c.A.formatNum((null==(r=e.product)?void 0:r.price)||0),"đ")},{label:"Số lượng",value:e.quantity||1},{label:"Ng\xe0y sử dụng",value:e.dayOfUse||1},{label:"Nh\xe0 mạng",value:(0,a.jsx)(v,{provider:(null==(n=e.product)?void 0:n.provider)||e.provider})}];return(0,a.jsxs)("div",{className:"border-border-template-4 overflow-hidden rounded-lg border",children:[(0,a.jsx)("div",{className:"bg-sidebar px-3 py-2",children:(0,a.jsxs)("span",{className:"text-sidebar-foreground text-sm font-bold",children:["Sản phẩm ",t+1]})}),(0,a.jsx)("div",{className:"divide-border-template-4 divide-y",children:i.map(e=>(0,a.jsxs)("div",{className:"grid grid-cols-[112px_1fr] gap-3 px-3 py-2.5",children:[(0,a.jsx)("span",{className:"text-sm font-semibold whitespace-nowrap text-[#636364]",children:e.label}),(0,a.jsx)("div",{className:"flex min-w-0 items-center justify-end text-right text-sm break-words text-[#636364]",children:e.value})]},e.label))})]},t)}):(0,a.jsx)("div",{className:"border-border-template-4 flex w-full items-center justify-center rounded-lg border py-6",children:(0,a.jsx)("span",{className:"text-sm text-[#9E9E9F]",children:"Đang tải dữ liệu..."})})})]})]})]})}var y=l(96199),k=l(85400),C=l(61589),_=l(86651),A=l(63581);let S=[{label:"Tất cả giao dịch",value:"all"},{label:"Nạp tiền",value:"1"},{label:"Mua Proxy",value:"2"},{label:"Bonus",value:"4"},{label:"Ho\xe0n tiền",value:"5"}],T=[{label:"Tất cả",value:"all"},{label:"Đ\xe3 ho\xe0n th\xe0nh",value:"completed"},{label:"Đang xử l\xfd",value:"pending"},{label:"Thất bại",value:"failed"}],P=[{label:"Tất cả",value:"all"},{label:"H\xf4m nay",value:"today"},{label:"7 ng\xe0y qua",value:"7d"},{label:"30 ng\xe0y qua",value:"30d"}];function D(e){return(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,a.jsx)("path",{d:"M10.0007 12.4997L5.83398 8.33301H14.1673L10.0007 12.4997Z",fill:"currentColor"})})}function E(e){let{data:t,columns:l,totalItems:r}=e,{data:x}=(0,y.wV)(),[p,u]=(0,i.ZA)("type",i.tU.withDefault("all")),[f,h]=(0,i.ZA)("status",i.tU.withDefault("all")),[g,b]=(0,i.ZA)("time",i.tU.withDefault("all")),[w,v]=(0,s.useState)(""),[j]=(0,i.ZA)("limit",i.GJ.withDefault(50)),[E,I]=(0,i.ZA)("detail",i.tU),M=(0,s.useMemo)(()=>{let e=w.trim().toLowerCase();return t.filter(t=>{var l;return("all"===p||String(t.type)===p)&&("all"===f||(e=>{var t,l;let a=null==(l=e.status)||null==(t=l.name)?void 0:t.toLowerCase();return"completed"===a||"success"===a?"completed":"pending"===a||"processing"===a?"pending":"failed"})(t)===f)&&(!e||!!(null==(l=t.code)?void 0:l.toLowerCase().includes(e)))&&(!t.createdAt||!!((e,t)=>{if("all"===t)return!0;let l=new Date(e),a=new Date,s=new Date(a.getFullYear(),a.getMonth(),a.getDate());if("today"===t)return l>=s;let r=new Date(s);return r.setDate(r.getDate()-("7d"===t?7:30)),l>=r})(t.createdAt,g))})},[t,p,f,w,g]),R=Math.ceil(r/j),{table:V}=(0,d.u)({data:t,columns:l,pageCount:R,shallow:!1,debounceMs:500,initialState:{columnVisibility:{id:!0}}}),L=(0,s.useMemo)(()=>t.find(e=>e.code===E),[t,E]),z=null==x?void 0:x.accessToken,q=!!((null==L?void 0:L.orderId)&&z),{data:$}=(0,k.Ay)(q?["order-by-id",null==L?void 0:L.orderId]:null,async()=>await c.A.fetchApi("/api/v1/orders/".concat(encodeURIComponent(null==L?void 0:L.orderId)),z),{revalidateOnFocus:!1}),O=e=>{I((null==e?void 0:e.code)||null)};return L?(0,a.jsx)(N,{transaction:L,order:$,onBack:()=>{I(null)}}):(0,a.jsxs)("div",{className:"flex w-full max-w-[var(--template-4-content-max-width,100%)] min-w-0 flex-col gap-4",children:[(0,a.jsx)(n.D,{title:"Lịch sử giao dịch"}),(0,a.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-[12px] lg:flex-row lg:items-center",children:[(0,a.jsxs)("div",{className:"flex h-[40px] min-w-0 flex-1 items-center overflow-hidden rounded-[4px] border border-[#d4d4d5] bg-white hover:border-[#1b56d6] has-[[data-state=open]]:border-[#1b56d6]",children:[(0,a.jsx)("input",{placeholder:"M\xe3 giao dịch",value:w,onChange:e=>v(e.target.value),className:"h-full min-w-0 flex-1 bg-transparent px-[12px] text-[14px] text-black placeholder:text-[#9e9e9f] focus:outline-none"}),(0,a.jsx)("button",{type:"button",title:"T\xecm kiếm",className:"flex size-[40px] shrink-0 items-center justify-center rounded-[2px] bg-[#1b56d6] hover:bg-[#0c3ca4]",children:(0,a.jsx)(_.A,{className:"size-[20px] text-white"})})]}),(0,a.jsxs)(C.l6,{value:p,onValueChange:u,children:[(0,a.jsx)(C.bq,{icon:(0,a.jsx)("span",{className:"flex items-center justify-center rounded-[4px] p-[6px] group-hover:bg-[#e8e8e9] group-data-[state=open]:bg-[#e8e8e9]",children:(0,a.jsx)(D,{className:"size-[20px] shrink-0 text-black transition-transform duration-200 group-data-[state=open]:rotate-180"})}),className:"group h-[40px] w-fit shrink-0 gap-[8px] rounded-[4px] border border-[#e8e8e9] bg-white p-[4px] text-[14px] whitespace-nowrap text-black shadow-none hover:border-[#3976f9] focus:ring-0 data-[state=open]:border-[#3976f9] data-[state=open]:ring-0",children:(0,a.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-[4px] rounded-[4px] bg-[#f5f5f6] p-[6px]",children:[(0,a.jsx)(A.A,{className:"size-[16
1px] text-[#2e2e2e]"}),(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-[#484848]",children:"Loại GD:"})]}),(0,a.jsx)("span",{className:"px-[2px] text-[14px] whitespace-nowrap text-black",children:(0,a.jsx)(C.yv,{})})]})}),(0,a.jsx)(C.gC,{className:"w-[var(--radix-select-trigger-width)] rounded-[4px] border-[#d4d4d5] p-[8px] shadow-[0px_8px_16px_0px_rgba(0,0,0,0.14),0px_0px_2px_0px_rgba(0,0,0,0.12)]",children:S.map(e=>(0,a.jsx)(C.eb,{value:e.value,className:"rounded-[2px] p-[4px] text-[14px] font-normal text-black focus:bg-[#e8e8e9] focus:text-black data-[state=checked]:bg-[#e8e8e9]",children:e.label},e.value))})]}),(0,a.jsxs)(C.l6,{value:g,onValueChange:b,children:[(0,a.jsx)(C.bq,{icon:(0,a.jsx)("span",{className:"flex items-center justify-center rounded-[4px] p-[6px] group-hover:bg-[#e8e8e9] group-data-[state=open]:bg-[#e8e8e9]",children:(0,a.jsx)(D,{className:"size-[20px] shrink-0 text-black transition-transform duration-200 group-data-[state=open]:rotate-180"})}),className:"group h-[40px] w-fit shrink-0 gap-[8px] rounded-[4px] border border-[#e8e8e9] bg-white p-[4px] text-[14px] whitespace-nowrap text-black shadow-none hover:border-[#3976f9] focus:ring-0 data-[state=open]:border-[#3976f9] data-[state=open]:ring-0",children:(0,a.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-[4px] rounded-[4px] bg-[#f5f5f6] p-[6px]",children:[(0,a.jsx)(A.A,{className:"size-[16px] text-[#2e2e2e]"}),(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-[#484848]",children:"Thời gian"})]}),(0,a.jsx)("span",{className:"px-[2px] text-[14px] whitespace-nowrap text-black",children:(0,a.jsx)(C.yv,{})})]})}),(0,a.jsx)(C.gC,{className:"w-[var(--radix-select-trigger-width)] rounded-[4px] border-[#d4d4d5] p-[8px] shadow-[0px_8px_16px_0px_rgba(0,0,0,0.14),0px_0px_2px_0px_rgba(0,0,0,0.12)]",children:P.map(e=>(0,a.jsx)(C.eb,{value:e.value,className:"rounded-[2px] p-[4px] text-[14px] font-normal text-black focus:bg-[#e8e8e9] focus:text-black data-[state=checked]:bg-[#e8e8e9]",children:e.label},e.value))})]}),(0,a.jsxs)(C.l6,{value:f,onValueChange:h,children:[(0,a.jsx)(C.bq,{icon:(0,a.jsx)("span",{className:"flex items-center justify-center rounded-[4px] p-[6px] group-hover:bg-[#e8e8e9] group-data-[state=open]:bg-[#e8e8e9]",children:(0,a.jsx)(D,{className:"size-[20px] shrink-0 text-black transition-transform duration-200 group-data-[state=open]:rotate-180"})}),className:"group h-[40px] w-fit shrink-0 gap-[8px] rounded-[4px] border border-[#e8e8e9] bg-white p-[4px] text-[14px] whitespace-nowrap text-black shadow-none hover:border-[#3976f9] focus:ring-0 data-[state=open]:border-[#3976f9] data-[state=open]:ring-0",children:(0,a.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-[4px] rounded-[4px] bg-[#f5f5f6] p-[6px]",children:[(0,a.jsx)(A.A,{className:"size-[16px] text-[#2e2e2e]"}),(0,a.jsx)("span",{className:"text-[14px] whitespace-nowrap text-[#484848]",children:"Trạng th\xe1i"})]}),(0,a.jsx)("span",{className:"px-[2px] text-[14px] whitespace-nowrap text-black",children:(0,a.jsx)(C.yv,{})})]})}),(0,a.jsx)(C.gC,{className:"w-[var(--radix-select-trigger-width)] rounded-[4px] border-[#d4d4d5] p-[8px] shadow-[0px_8px_16px_0px_rgba(0,0,0,0.14),0px_0px_2px_0px_rgba(0,0,0,0.12)]",children:T.map(e=>(0,a.jsx)(C.eb,{value:e.value,className:"rounded-[2px] p-[4px] text-[14px] font-normal text-black focus:bg-[#e8e8e9] focus:text-black data-[state=checked]:bg-[#e8e8e9]",children:e.label},e.value))})]})]}),0===M.length&&(0,a.jsx)("div",{className:"flex w-full items-start justify-center rounded-[8px] bg-white px-[16px] py-[48px]",children:(0,a.jsx)("p",{className:"text-[16px] leading-[1.3] whitespace-nowrap text-[#636364]",children:"Bạn chưa c\xf3 giao dịch n\xe0o"})}),M.length>0&&(0,a.jsx)("div",{className:"grid w-full min-w-0 grid-cols-1 items-stretch gap-4 min-[1440px]:gap-5 min-[1700px]:gap-8 sm:grid-cols-2 sm:gap-5 xl:grid-cols-4 xl:gap-4",children:M.map(e=>(0,a.jsx)(m,{transaction:e,onViewDetail:O},e.code))}),r>0&&(0,a.jsx)("div",{className:"flex w-full justify-center",children:(0,a.jsx)(o.T,{table:V,totalItems:r})})]})}function I(){return(0,a.jsxs)("div",{className:"flex w-full max-w-[var(--template-4-content-max-width,100%)] flex-col gap-4 min-[1440px]:gap-8 sm:gap-6",children:[(0,a.jsx)("div",{className:"h-8 w-48 animate-pulse rounded-lg bg-gray-200 sm:h-10 sm:w-64 md:h-[41p
1x]"}),(0,a.jsx)("div",{className:"grid w-full grid-cols-1 gap-3 min-[1440px]:gap-5 sm:grid-cols-2 sm:gap-4 xl:grid-cols-4",children:[1,2,3,4].map(e=>(0,a.jsx)("div",{className:"border-border-template-4 h-[43px] w-full animate-pulse rounded-lg border bg-gray-200"},e))}),(0,a.jsx)("div",{className:"grid w-full grid-cols-1 items-stretch gap-4 min-[1440px]:gap-5 min-[1700px]:gap-8 sm:grid-cols-2 sm:gap-5 xl:grid-cols-4 xl:gap-4",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"border-border-template-4 flex h-full w-full min-w-0 flex-col overflow-hidden rounded-[14px] border bg-white",children:[(0,a.jsxs)("div",{className:"flex min-h-[42px] items-center gap-2.5 px-5 py-2.5 min-[1440px]:min-h-[40px] min-[1440px]:gap-2 min-[1440px]:px-4 min-[1700px]:min-h-[42px] min-[1700px]:gap-2.5 min-[1700px]:px-5 xl:min-h-[36px] xl:gap-1.5 xl:px-3.5 xl:py-2",children:[(0,a.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-gray-300 min-[1700px]:w-24 xl:w-20"}),(0,a.jsx)("div",{className:"h-4 w-28 animate-pulse rounded bg-gray-300 min-[1700px]:w-28 xl:w-24"})]}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-3 px-5 py-4 min-[1440px]:gap-3 min-[1440px]:px-4 min-[1440px]:py-3.5 min-[1700px]:px-5 min-[1700px]:py-4 xl:gap-2.5 xl:px-3.5 xl:py-3",children:[[1,2,3,4,5].map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 min-[1440px]:gap-2 xl:gap-1.5",children:[(0,a.jsx)("div",{className:"h-4 w-20 shrink-0 animate-pulse rounded bg-gray-200 min-[1700px]:w-20 xl:w-16"}),(0,a.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-gray-200 min-[1700px]:w-24 xl:w-20"})]},e)),(0,a.jsx)("div",{className:"mt-auto h-9 w-full animate-pulse rounded-lg bg-gray-300 sm:h-10"})]})]},e))}),(0,a.jsx)("div",{className:"flex w-full justify-center",children:(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,a.jsx)("div",{className:"h-10 w-20 animate-pulse rounded-lg bg-gray-200"}),(0,a.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-gray-200"}),(0,a.jsx)("div",{className:"h-10 w-10 animate-pulse rounded-lg bg-gray-200"}),(0,a.jsx)("div",{className:"h-10 w-20 animate-pulse rounded-lg bg-gray-200"})]})})]})}var M=l(52164);let R=[{accessorKey:"code",header:"M\xe3 giao dịch"}];function V(e){let{params:t}=e,{transactions:l,total:n,status:i}=(0,M.x)(t,{suspense:!0});return(0,a.jsx)(r.A,{scrollable:!0,openMarqueeTop:!0,children:(0,a.jsx)("div",{className:"flex w-full max-w-[var(--template-4-content-max-width,100%)] flex-1",children:"authenticated"===i?(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)(I,{}),children:(0,a.jsx)(E,{columns:R,data:l,totalItems:n})},t):(0,a.jsx)(I,{})})})}},97602:(e,t,l)=>{l.d(t,{hO:()=>o,sG:()=>i});var a=l(12115),s=l(47650),r=l(32467),n=l(95155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let l=(0,r.TL)(`Primitive.${t}`),s=a.forwardRef((e,a)=>{let{asChild:s,...r}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(s?l:t,{...r,ref:a})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function o(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.