1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19474],{6554:(e,t,a)=>{a.d(t,{S:()=>l});let l=(0,a(25959).v)(e=>({pathname:"",isAdminPath:!1,setPathname:t=>e({pathname:t,isAdminPath:t.startsWith("/admin")})}))},8948:(e,t,a)=>{a.d(t,{p:()=>i});var l=a(95155);a(12115);var r=a(64269),s=a(12108),n=a(24033);function i(e){let{className:t,type:a,useCustomStepper:i=!1,disabled:o=!1,...c}=e,d="number"===a;return d&&i?(0,l.jsxs)("div",{className:"group relative w-full",children:[(0,l.jsx)("input",{type:a,"data-slot":"input",disabled:o,className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 text-normal flex h-10 w-full min-w-0 bg-transparent 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","placeholder:text-icon placeholder:text-sm placeholder:font-normal","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","border-border-input gap-2 rounded-lg border px-3 py-2.5 shadow-none","focus-visible:border-primary focus-visible:ring-primary/20 hover:border-primary/50 focus-visible:ring-[3px]","[&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",d&&"w-full",t),...c}),d&&!1===o&&(0,l.jsxs)("div",{className:(0,r.cn)("pointer-events-none absolute top-1/2 right-1.5 flex -translate-y-1/2 flex-col items-center justify-center gap-2 opacity-0 transition-opacity duration-150","group-hover:pointer-events-auto group-hover:opacity-100"),children:[(0,l.jsx)("button",{type:"button",className:"hover:text-icon/110 h-4 w-4 translate-y-1 cursor-pointer text-[#B6B6B7] transition-colors",onClick:e=>{var t;let a=null==(t=e.currentTarget.parentElement)?void 0:t.previousElementSibling;a.stepUp(),a.dispatchEvent(new Event("change",{bubbles:!0}))},children:(0,l.jsx)(s.A,{className:"h-4 w-4",strokeWidth:3})}),(0,l.jsx)("button",{type:"button",className:"hover:text-icon/110 h-4 w-4 -translate-y-1 cursor-pointer text-[#B6B6B7] transition-colors",onClick:e=>{var t;let a=null==(t=e.currentTarget.parentElement)?void 0:t.previousElementSibling;a.stepDown(),a.dispatchEvent(new Event("change",{bubbles:!0}))},children:(0,l.jsx)(n.A,{className:"h-4 w-4",strokeWidth:3})})]})]}):(0,l.jsx)("input",{type:a,"data-slot":"input",disabled:o,className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 text-normal flex h-10 w-full min-w-0 bg-transparent 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 md:text-sm","placeholder:text-icon placeholder:text-sm placeholder:font-normal","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","border-border-template-5 gap-2 rounded-lg border px-3 py-2.5 shadow-none","focus-visible:border-primary focus-visible:ring-primary/20 hover:border-primary/50 focus-visible:ring-[2px]","truncate overflow-hidden text-ellipsis whitespace-nowrap",t),...c})}},14734:(e,t,a)=>{a.d(t,{F:()=>s});var l=a(12115),r=a(32140);function s(e){let{notifications:t,isConnected:a,clearNotifications:s,initSocket:n,disconnectSocket:i,emit:o}=(0,r.U)();(0,l.useEffect)(()=>{e&&n(e)},[e,n]);let c=(0,l.useCallback)((e,t,a)=>{o(e,t,a)},[o]);return{socket:null,notifications:t,isConnected:a,emit:c,disconnect:(0,l.useCallback)(()=>{i()},[i]),clearNotifications:(0,l.useCallback)(()=>s(),[s])}}},19474:(e,t,a)=>{a.r(t),a.d(t,{default:()=>M});var l=a(95155),r=a(41052),s=a(8948),n=a(21383),i=a(66942),o=a(12115),c=a(22544),d=a(15653),x=a(96199),u=a(15239),m=a(18720),p=a(61362),f=a(52056),h=a(42348),g=a(13744),b=a(60919),v=a(75746),w=a(22968),j=a(14734),N=a(39180),y=a(10051);let C={isNumber:"Sá» tiá»n phải l\xe0 sá»",notFound:"Sá» Äiá»n thoại kh\xf4ng tá»n tại"};function k(e){var t,a,r,s,n,k,_,F,S,A,E;let{open:z,onClose:V,initialAmount:B}=e,[D,M]=(0,o.useState)({}),T=(0,N.r)(e=>e.config),I=Math.max(1e3,Number(null!=(n=null==T||null==(t=T.setting)?void 0:t.minDeposit)?n:1e3)),U=(0,o.useMemo)(()=>d.z.object({amount:d.z.union([d.z.string(),d.z.number()]).refine(e=>""!==e&&null!=e,{message:"Vui l\xf2ng nháºp sá» tiá»n"}).transform(e=>"string"==typeof e?parseFloat(e):e).refine(e=>!isNaN(e),{message:"Sá» tiá»n phải l\xe0 sá»"}).refine(e=>e>=I,{message:"Sá» tiá»n phải ⥠".concat(g.A.formatNum2(I),"Ä")})}
1),[I]),q=(0,c.mN)({resolver:(0,i.u)(U),values:{amount:B||""}}),{data:L,status:W}=(0,x.wV)(),R=(0,v.k)(e=>e.updateCoin),P=(0,v.k)(e=>e.user),{notifications:H,emit:J,isConnected:O,clearNotifications:G}=(0,j.F)(null==L||null==(a=L.user)?void 0:a.accessToken);async function $(e){var t,a,r,s,n;try{if(e.amount<I)return void m.toast.error("Sá» tiá»n nạp chưa Äá»§ tá»i thiá»u",{description:"Vui l\xf2ng nạp tá»i thiá»u ".concat(g.A.formatNum2(I),"Ä"),duration:5e3});let a=await g.A.postApi("/api/v1/transactions",e,null==L||null==(t=L.user)?void 0:t.accessToken);M(a),m.toast.success("Tạo giao dá»ch th\xe0nh c\xf4ng",{duration:5e3,icon:(0,l.jsx)(p.A,{className:"h-4 w-4 text-green-600"})})}catch(e){if(e instanceof b.pe){let t=null==(a=e.response)?void 0:a.data;(null==t?void 0:t.message)?m.toast.error("Tạo giao dá»ch thất bại",{description:null!=(r=null==C?void 0:C[t.message])?r:t.message,duration:5e3,icon:(0,l.jsx)(f.A,{className:"h-4 w-4 text-red-500"})}):(null==t?void 0:t.errors)&&((null==(s=t.errors)?void 0:s.user)?m.toast.error("Tạo giao dá»ch thất bại",{description:null!=(n=null==C?void 0:C[t.errors.user])?n:t.errors.user,duration:5e3,icon:(0,l.jsx)(f.A,{className:"h-4 w-4 text-red-500"})}):g.A.handleFormErrorFromResponse(q,t.errors,C))}else m.toast.error("Tạo giao dá»ch thất bại",{description:"Lá»i kết ná»i Äến m\xe1y chá»§.",duration:5e3,icon:(0,l.jsx)(f.A,{className:"h-4 w-4 text-red-500"})})}}if((0,o.useEffect)(()=>{z?G():M({})},[z]),(0,o.useEffect)(()=>{O&&J("register")},[O]),(0,o.useEffect)(()=>{let e=H.find(e=>e.id==D.id);if(e){var t;M(t=>({...t,...e})),m.toast.success("Thanh to\xe1n th\xe0nh c\xf4ng",{duration:5e3,icon:(0,l.jsx)(p.A,{className:"h-4 w-4 text-green-600"})}),(null==P||null==(t=P.role)?void 0:t.id)=="3"&&R(Number(e.amount))}},[H]),(0,o.useEffect)(()=>{z&&!(null==D?void 0:D.id)&&B&&(q.setValue("amount",B),q.handleSubmit($)())},[z]),"unauthenticated"===W||!L)return null;let Z=(e,t)=>{navigator.clipboard.writeText(e),m.toast.success("Ä\xe3 copy ".concat(t))};return(0,l.jsx)(w.lG,{open:z,onOpenChange:e=>!e&&V(),children:(0,l.jsx)(w.Cf,{headerClassName:"hidden",showCloseButton:!1,className:"w-[calc(100vw-2rem)] !max-w-[720px] overflow-visible border-0 bg-transparent p-0 shadow-none",children:(null==D?void 0:D.id)?(0,l.jsxs)("div",{className:"relative isolate flex w-full flex-col items-center gap-2 rounded p-4",style:{background:"linear-gradient(100.86deg, #FFFFFF 0%, rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111) / 0) 100%)",border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))"},children:[(0,l.jsx)("button",{onClick:V,className:"absolute top-2 right-2 z-50 flex h-5 w-5 cursor-pointer items-center justify-center transition-transform duration-300 hover:rotate-90",children:(0,l.jsx)(y.F.CloseIcon,{className:"h-5 w-5 text-[rgb(from_var(--primary)_calc(r_+_53)_calc(g_+_62)_calc(b_+_57))]"})}),(0,l.jsx)("div",{className:"flex items-center justify-center px-4 pb-2",style:{borderBottom:"1px solid rgb(from var(--primary) calc(r + 142) calc(g + 143) calc(b + 101))"},children:(0,l.jsx)("span",{className:"font-mulish text-primary text-center text-base leading-5 font-bold",children:"QR nạp tiá»n"})}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:"Sá» tiá»n cần thanh to\xe1n"}),(0,l.jsx)("div",{className:"flex items-center justify-center rounded px-2 py-4",style:{background:"rgb(from var(--primary) calc(r + 173) calc(g + 193) calc(b + 111))",border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))",boxShadow:"0px 2px 6px rgb(from var(--primary) calc(r + 83) calc(g + 67) calc(b + 90) / 0.2)"},children:(0,l.jsxs)("span",{className:"font-mulish text-primary text-sm leading-[18px] font-bold",children:[g.A.formatNum2(null!=(k=null==D?void 0:D.amount)?k:0)," VNÄ"]})})]}
1),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4 rounded-lg py-4 lg:flex-row lg:items-center lg:px-5",style:{background:"linear-gradient(100.86deg, #FFFFFF 0%, rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111) / 0) 100%)",border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))"},children:[(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsxs)("div",{className:"relative flex h-[220px] w-[220px] items-center justify-center p-[13px]",children:[(0,l.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute top-0 left-0",children:(0,l.jsx)("path",{d:"M0.83 19.92V6.64C0.83 3.29 3.54 0.58 6.89 0.58H20.87",stroke:"#6026FF",strokeWidth:"0.83"})}),(0,l.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute top-0 right-0",children:(0,l.jsx)("path",{d:"M20.04 19.92V6.64C20.04 3.29 17.33 0.58 13.98 0.58H0",stroke:"#6026FF",strokeWidth:"0.83"})}),(0,l.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute bottom-0 left-0",children:(0,l.jsx)("path",{d:"M0.83 0V13.28C0.83 16.63 3.54 19.34 6.89 19.34H20.87",stroke:"#6026FF",strokeWidth:"0.83"})}),(0,l.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute right-0 bottom-0",children:(0,l.jsx)("path",{d:"M20.04 0V13.28C20.04 16.63 17.33 19.34 13.98 19.34H0",stroke:"#6026FF",strokeWidth:"0.83"})}),(0,l.jsx)("div",{className:"flex h-[194px] w-[194px] items-center justify-center rounded-[5px] border border-[#D7D9DF] bg-white p-[6px]",children:(null==D||null==(r=D.status)?void 0:r.id)=="6"?(0,l.jsx)(u.default,{className:"h-[180px] w-[180px] object-contain",src:"/images/correct.png",alt:"Success",width:180,height:180}):D.qrCode&&(0,l.jsx)(u.default,{className:"h-[180px] w-[180px] object-contain",src:D.qrCode,alt:"QR Code",width:180,height:180})})]})}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-4 roun
1ded",style:{border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))",filter:"drop-shadow(0px 4px 16px rgb(from var(--primary) r g b / 0.1))"},children:[(0,l.jsx)("div",{className:"flex w-full items-center justify-center py-2",style:{borderBottom:"1px solid #DBDBDC"},children:(0,l.jsx)("span",{className:"font-mulish text-primary text-center text-base leading-5 font-bold",children:"Chuyá»n khoản th\xf4ng thưá»ng"})}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-3 rounded-[9px] p-4",style:{background:"rgb(from var(--primary) calc(r + 173) calc(g + 193) calc(b + 111))"},children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-normal text-black",children:"Sá» tiá»n"}),(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:g.A.formatNum2(null!=(_=null==D?void 0:D.amount)?_:0)})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-normal text-black",children:"Ng\xe2n h\xe0ng"}),(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:null!=(F=null==D||null==(s=D.bankCode)?void 0:s.toUpperCase())?F:"BIDV"})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-normal text-black",children:"Sá» t\xe0i khoản"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:null!=(S=null==D?void 0:D.accountNumber)?S:""}),(0,l.jsx)("button",{onClick:()=>{var e;return Z(null!=(e=null==D?void 0:D.accountNumber)?e:"","sá» t\xe0i khoản")},className:"flex h-6 w-6 items-center justify-center transition-colors hover:opacity-80",children:(0,l.jsx)(y.F.CopyIcon,{className:"text-primary h-5 w-5"})})]})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-normal text-black",children:"Chá»§ t\xe0i khoản"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:null!=(A=null==D?void 0:D.accountName)?A:""}),(0,l.jsx)("button",{onClick:()=>{var e;return Z(null!=(e=null==D?void 0:D.accountName)?e:"","chá»§ t\xe0i khoản")},className:"flex h-6 w-6 items-center justify-center transition-colors hover:opacity-80",children:(0,l.jsx)(y.F.CopyIcon,{className:"text-primary h-5 w-5"})})]})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-normal text-black",children:"Ná»i dung"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"font-mulish text-sm leading-[18px] font-bold text-black",children:null!=(E=null==D?void 0:D.description)?E:""}),(0,l.jsx)("button",{onClick:()=>{var e;return Z(null!=(e=null==D?void 0:D.description)?e:"","ná»i dung")},className:"flex h-6 w-6 items-center justify-center transition-colors hover:opacity-80",children:(0,l.jsx)(y.F.CopyIcon,{className:"text-primary h-5 w-5"})})]})]})]})]})]})]})]}):(0,l.jsx)("div",{className:"flex items-center justify-center rounded-lg p-12",style:{background:"linear-gradient(100.86deg, #FFFFFF 0%, rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111) / 0) 100%)",border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))"},children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)(h.A,{className:"text-primary mx-auto h-12 w-12 animate-spin"}),(0,l.jsx)("p",{className:"text-primary/70 mt-4",children:"Äang tạo giao dá»ch..."})]})})})})}var _=a(67558);function F(){return(0,l.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,l.jsx)("div",{className:"flex flex-col items-start justify-center gap-3",children:(0,l.jsx)("div",{className:"h-5 w-16 animate-pulse rounded bg-white/20"})}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-start justify-between gap-6 lg:flex-row",children:[(0,l.jsxs)("div",{className:"relative flex w-full flex-col items-start gap-2 overflow-hidden rounded p-6 lg:w-[367px]",style:{background:"#1D1D2B"},children:[(0,l.jsx)("div",{className:"h-[18px] w-20 animate-pulse rounded bg-white/20"}),(0,l.jsx)("div",{className:"bg-primary/30 h-[30px] w-40 animate-pulse rounded"}),(0,l.jsx)("div",{className:"absolute right-0 bottom-0 h-[115px] w-[249px] animate-pulse bg-white/5"})]}),(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-4",children:[(0,l.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:[1,2,3,4,5,6,7,8].map(e=>(0,l.jsx)("div",{className:"h-[26px] w-16 animate-pulse rounded",style:{background:"#1D1D2B"}},e))}),(0,l.jsx)("div",{className:"flex h-[52px] w-full animate-pulse items-center rounded px-6 py-4",style:{background:"#1D1D2B"},children:(0,l.jsx)("div",{className:"h-5 w-32 rounded bg-white/20"})}),(0,l.jsx)("div",{className:"bg-primary/50 h-9 w-full animate-pulse rounded-full"})]})]}),(0,l.jsx)("div",{className:"flex flex-col items-start justify-center gap-3",children:(0,l.jsx)("div",{className:"h-5 w-32 animate-pulse rounded bg-white/20"})}),(0,l.jsx)("div",{className:"flex w-full flex-wrap items-start gap-6",children:[1,2,3,4].map(e=>(0,l.jsxs)("div",{className:"flex w-[270px] animate-pulse flex-col items-start gap-3 rounded-lg border border-white/10 p-4",style:{background:"#1D1D2B"},children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,l.jsx)("div",{className:"h-6 w-6 rounded-full bg-white/20"}),(0,l.jsx)("div",{className:"h-[29px] w-40 rounded bg-white/20"})]}),[1,2,3,4].map(e=>(0,l.jsxs)("div",{className:"flex items-end gap-4",children:[(0,l.jsx)("div",{className:"h-[18px] w-20 rounded bg-white/10"}),(0,l.jsx)("div",{className:"h-[18px] w-24 rounded bg-white/20"})]},e)),(0,l.jsx)("div",{className:"h-[18px] w-36 rounded bg-white/10"}),(0,l.jsx)("div",{className:"border-primary/50 flex h-[38px] w-full items-center justify-center rounded border",children:(0,l.jsx)("div",{className:"bg-primary/30 h-[18px] w-32 rounded"})})]},e))})]})}var S=a(65229),A=a(26983),E=a(86456);let z=[{value:5e4,label:"50.000Ä"},{value:1e5,label:"100.000Ä"},{value:2e5,label:"200.000Ä"},{value:5e5,label:"500.000Ä"},{value:1e6,label:"1.000.000Ä"},{value:2e6,label:"2.000.000Ä"},{value:5e6,label:"5.000.000Ä"},{value:1e7,label:"10.000.000Ä"}];function V(){return(0,l.jsxs)("svg",{width:"246",height:"106",viewBox:"0 0 246 106",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute right-0 bottom-0",children:[(0,l.jsx)("path",{d:"M22 100.57C26.3555 88.7489 29.9555 80.0307 35.0653 62.9681C37.4313 55.0671 41.8784 38.8927 46.6603 38.6576C47.8746 38.5977 49.0634 39.579 50.1039 40.9957C53.3517 45.4164 55.1604 53.6172 56.6736 61.4898C59.7812 77.6594 65.4726 97.0617 74.5254 94.5706C80.6653 92.8809 84.9015 80.3478 88.6811 69.2535C92.4607 58.1593 97.5114 46.4908 103.673 47.7135C112.221 49.4079 117.016 74.837 125.577 76.1449C130.388 76.8801 134.608 69.6243 138.723 63.932C142.84 58.2398 148.315 53.9643 152.268 60.2229C156.896 67.5497 157.18 86.1252 162.654 89.2506C169.072 92.914 172.698 74.6571 174.603 64.0236C176.749 52.0474 178.326 20 183.792 20C192.243 20 190.09 93.788 200.678 93.788C211.266 93.788 208.392 55.7896 218.534 55.7896C228.676 55.7896 233.131 96.9418 249 96.9418V109H22V100.57Z",fill:"url(#paint0_linear_148_5663)","fill-opacity":"0.5"}),(0,l.jsx)("path",{d:"M177.472 0.5C177.812 0.5 178.215 0.715052 178.672 1.35938C179.124 1.99694 179.561 2.96582 179.978 4.25098C180.809 6.81494 181.517 10.5041 182.148 14.9678C183.41 23.8885 184.346 35.7874 185.356 47.7139C186.366 59.6271 187.451 71.5682 189.012 80.5322C189.792 85.0102 190.696 88.7781 191.782 91.4365C192.325 92.7641 192.925 93.8476 193.602 94.6064C194.282 95.3694 195.079 95.8438 195.995 95.8438C197.651 95.8437 199.003 94.9601 200.109 93.542C201.209 92.1324 202.104 90.1503 202.866 87.8281C204.392 83.1815 205.44 77.0024 206.465 70.877C207.494
164.7263 208.5 58.6294 209.938 54.0674C210.657 51.785 211.472 49.9291 212.423 48.6533C213.369 47.3848 214.404 46.7451 215.581 46.7451C216.716 46.7452 217.879 47.5622 219.089 49.2744C220.285 50.967 221.438 53.4124 222.581 56.3916C224.867 62.3488 227.056 70.2906 229.456 78.2842C231.849 86.255 234.451 94.2711 237.555 100.298C239.107 103.311 240.799 105.858 242.677 107.656C244.424 109.33 246.358 110.376 248.5 110.518V114.5H0.676758C2.9942 106.962 5.12325 97.8254 7.34375 87.9092C9.62993 77.6996 12.0162 66.6582 14.8164 55.6436C16.1169 50.5277 17.979 42.7748 20.1709 36.2588C21.2675 32.9989 22.4384 30.0758 23.6494 27.957C24.2554 26.8969 24.859 26.06 25.4521 25.4854C26.0481 24.908 26.5906 24.6357 27.0791 24.6074C27.5692 24.5789 28.1062 24.7945 28.6875 25.2852C29.195 25.7135 29.702 26.3239 30.1934 27.0674L30.4033 27.3936C32.1416 30.1806 33.5135 34.1952 34.6592 38.8174C35.8027 43.4308 36.7113 48.6063 37.541 53.6914C39.2465 64.145 41.6653 75.6771 44.9121 84.2031C46.5332 88.46 48.3784 92.0152 50.4775 94.3096C52.589 96.6173 55.0341 97.7181 57.7705 96.8311C59.605 96.2363 61.2367 94.7112 62.709 92.627C64.1872 90.5342 65.5452 87.8184 66.8125 84.7461C69.3469 78.602 71.5534 70.9406 73.624 63.7812C75.6962 56.6164 78.1065 49.303 80.8311 43.9854C82.1948 41.3236 83.6189 39.2003 85.0898 37.8438C86.5544 36.4931 88.0046 35.9534 89.4746 36.2969C90.5169 36.5403 91.5441 37.2197 92.5664 38.292C93.5871 39.3626 94.5749 40.7946 95.5439 42.4844C97.4837 45.8668 99.3015 50.2007 101.136 54.5596C102.962 58.9005 104.806 63.2681 106.786 66.6543C107.777 68.3485 108.814 69.8192 109.917 70.9258C111.019 72.0313 112.216 72.8031 113.526 73.0391C115.016 73.3071 116.428 72.8363 117.744 71.9277C119.055 71.0234 120.306 69.6618 121.51 68.0723C123.91 64.902 126.226 60.6709 128.462 57.0273C130.716 53.3567 133.284 50.2489 135.754 49.0273C136.966 48.4277 138.113 48.3025 139.189 48.7393C140.283 49.1828 141.398 50.2427 142.453 52.21C143.689 54.5145 144.648 57.7346 145.483 61.3721C146.317 65.0044 147.017 69.0015 147.75 72.8564C148.481 76.6995 149.247 80.4025 150.21 83.4014C150.692 84.9014 151.229 86.241 151.844 87.3418C152.457 88.4391 153.165 89.3309 154.006 89.8965H154.007C154.983 90.553 155.965 90.7496 156.918 90.4844C157.847 90.2258 158.671 89.5499 159.401 88.6279C160.859 86.7886 162.103 83.7757 163.174 80.2559C165.322 73.1928 166.844 63.8255 167.888 56.96C169.064 49.2234 170.094 34.9339 171.563 22.6992C172.301 16.5588 173.15 10.9258 174.184 6.83496C174.701 4.78564 175.258 3.15477 175.854 2.04688C176.153 1.49287 176.447 1.09467 176.73 0.84082C177.009 0.591354 177.253 0.500051 177.472 0.5Z",stroke:"url(#paint1_linear_148_5663)","stroke-opacity":"0.2"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_148_5663",x1:"249.002",y1:"64.4994",x2:"22.0002",y2:"64.4994",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{style:{stopColor:"rgb(from var(--sidebar) calc(r + 9) calc(g + 10) calc(b + 4))"}}),(0,l.jsx)("stop",{offset:"0.346154",style:{stopColor:"rgb(from var(--primary) calc(r + 18) calc(g - 38) calc(b - 106))"},stopOpacity:"0.4"}),(0,l.jsx)("stop",{offset:"0.711538",style:{stopColor:"rgb(from var(--sidebar) calc(r + 28) calc(g + 30) calc(b + 37))"}}),(0,l.jsx)("stop",{offset:"1",style:{stopColor:"rgb(from var(--sidebar) calc(r + 9) calc(g + 10) calc(b + 4))"}})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_148_5663",x1:"124.5",y1:"0",x2:"124.5",y2:"115",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{style:{stopColor:"rgb(from var(--primary) calc(r - 18) calc(g + 138) calc(b + 0))"}}),(0,l.jsx)("stop",{offset:"1",style:{stopColor:"rgb(from var(--primary) calc(r + 68) calc(g + 54) calc(b + 0))"}})]})]})]})}function B(e){var t,a,r,s;let{transaction:n}=e,i=function(e){switch(e){case"6":return{icon:(0,l.jsx)(p.A,{className:"h-6 w-6 text-[#239B00]"}),text:"Ä\xe3 chuyá»n khoản",color:"#239B00"};case"7":return{icon:(0,l.jsx)(S.A,{className:"h-6 w-6 text-[#E54437]"}),text:"Ä\xe3 huá»·",color:"#E54437"};default:return{icon:(0,l.jsx)(A.A,{className:"h-6 w-6 text-[#F5A623]"}),text:"Chá» thanh to\xe1n",color:"#F5A623"}}}(null!=(r=null==(t=n.status)?void 0:t.id.toString())?r:"");return(0,l.jsxs)("div",{className:"flex w-[270px] flex-col items-start gap-3 rounded-lg p-4",style:{background:"var(--sidebar-blur-template-9)",border:"1px solid rgba(255, 255, 255, 0.1)"},children:[(0,l.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[i.icon,(0,l.jsx)("span",{className:"text-xl font-bold",style:{color:i.color},children:i.text})]}),(0,l.jsxs)("div",{className:"flex items-end gap-4",children:[(0,l.jsx)("span",{className:"text-sm font-normal text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]",children:"Sá» tiá»n"}),(0,l.jsxs)("span",{className:"text-sidebar-foreground text-sm font-bold",children:[g.A.formatNum2(n.amount)," Ä"]})]}),(0,l.jsxs)("div",{className:"flex items-end gap-4",children:[(0,l.jsx)("span",{className:"text-sm font-normal text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]",children:"Ng\xe2n h\xe0ng"}),(0,l.jsx)("span",{className:"text-sidebar-foreground text-sm font-bold",children:null!=(s=null==(a=n.bankCode)?void 0:a.toUpperCase())?s:"BIDV"})]}),n.accountNumber&&(0,l.jsxs)("div",{className:"flex items-end gap-4",children:[(0,l.jsx)("span",{className:"text-sm font-normal text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]",children:"Sá» t\xe0i khoản"}),(0,l.jsx)("span",{className:"text-sidebar-foreground text-sm font-bold",children:n.accountNumber})]}),n.accountName&&(0,l.jsxs)("div",{className:"flex w-full items-end gap-4",children:[(0,l.jsx)("span",{className:"text-sm font-normal text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]",children:"Chá»§ t\xe0i khoản"}),(0,l.jsx)("span",{className:"text-sidebar-foreground text-sm font-bold",children:n.accountName})]}),(0,l.jsx)("span",{className:"text-sm font-normal text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]",children:"Ná»i dung chuyá»n khoản"}),(0,l.jsx)("button",{onClick:()=>{var e,t;return t=null!=(e=n.description)?e:"",void navigator.clipboard.writeText(t)}
1,className:"flex w-full items-center justify-center rounded px-2.5 py-2.5",style:{border:"1px solid var(--primary)"},children:(0,l.jsx)("span",{className:"text-sm font-normal",style:{color:"var(--primary)"},children:n.description})})]})}function D(){var e,t,a,n,u,m,p;let f=(0,N.r)(e=>e.config),h=(0,v.k)(e=>e.user),{data:b}=(0,x.wV)(),w=Math.max(1e3,Number(null!=(n=null==f||null==(e=f.setting)?void 0:e.minDeposit)?n:5e4)),[j,y]=(0,o.useState)(0),[C,S]=(0,o.useState)(!1),[A,D]=(0,o.useState)(!0),[M,T]=(0,o.useState)([]),I=(0,o.useMemo)(()=>d.z.object({amount:d.z.number().min(w,"Sá» tiá»n tá»i thiá»u ".concat(g.A.formatNum2(w)," Ä"))}),[w]),U=(0,c.mN)({resolver:(0,i.u)(I),defaultValues:{amount:0}}),{formState:{isSubmitting:q}}=U;async function L(){var e;y(null!=(e=U.getValues().amount)?e:0),S(!0)}let W=async()=>{try{var e,t;let a=JSON.stringify([{orderBy:"createdAt",order:"desc"}]),l=await g.A.fetchApi("/api/v1/transactions?page=1&limit=4&sort=".concat(encodeURIComponent(a)),null==b||null==(e=b.user)?void 0:e.accessToken);T(null!=(t=null==l?void 0:l.data)?t:[])}catch(e){console.error("Error fetching transactions:",e)}};return((0,o.useEffect)(()=>{f&&h&&D(!1)},[f,h]),(0,o.useEffect)(()=>{b&&W()},[b]),(0,o.useEffect)(()=>{let e=()=>W();return window.addEventListener("refreshTransactions",e),()=>window.removeEventListener("refreshTransactions",e)},[]),A)?(0,l.jsx)(F,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex w-full flex-col items-start gap-6",children:[(0,l.jsx)("div",{className:"flex flex-col items-start justify-center gap-3",children:(0,l.jsx)("h1",{className:"text-base leading-5 font-bold text-white",children:"Nạp tiá»n"})}),(0,l.jsxs)("div",{className:"flex w-full flex-col items-start justify-between gap-6 lg:flex-row",children:[(0,l.jsxs)("div",{className:"relative isolate flex h-full min-h-[138px] w-full flex-col items-start gap-2 overflow-hidden rounded p-6 lg:w-[367px]",style:{background:"var(--sidebar-blur-template-9)"},children:[(0,l.jsx)(V,{}),(0,l.jsx)("span",{className:"text-sidebar-foreground z-10 text-sm font-normal",children:"V\xed cá»§a bạn"}),(0,l.jsxs)("span",{className:"text-primary z-10 flex items-baseline gap-1 text-2xl",children:[(0,l.jsx)("span",{className:"font-bold tabular-nums",children:(0,_.L3)(Number(null!=(u=null==h?void 0:h.coin)?u:0)+(null!=(p=null!=(m=null==h||null==(t=h.merchant)?void 0:t.promotionAmountRemaining)?m:null==h||null==(a=h.merchant)?void 0:a.amountRemaining)?p:0))}),(0,l.jsx)("span",{className:"text-base font-normal",children:_.RP})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start gap-4",children:[(0,l.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2",children:(0,l.jsx)(r.zB,{control:U.control,name:"amount",render:e=>{let{field:t}=e;return(0,l.jsx)(l.Fragment,{children:z.filter(e=>e.value>=w).map(e=>(0,l.jsx)("button",{type:"button",onClick:()=>{var a;t.onChange(e.value),y(a=e.value),U.setValue("amount",a)},className:"text-primary flex h-[26px] items-center rounded px-1 text-sm font-bold",style:{background:"var(--sidebar-blur-template-9)"},children:e.label},e.value))})}})}),(0,l.jsx)(r.lV,{...U,children:(0,l.jsxs)("form",{onSubmit:U.handleSubmit(L),className:"flex w-full flex-col gap-4",children:[(0,l.jsx)(r.zB,{control:U.control,name:"amount",render:e=>{var t;let{field:a}=e;return(0,l.jsxs)(r.eI,{className:"w-full",children:[(0,l.jsx)(r.MJ,{children:(0,l.jsx)("div",{className:"flex h-[52px] w-full items-center rounded px-6 py-4",style:{background:"var(--sidebar-blur-template-9)"},children:(0,l.jsx)(s.p,{...a,type:"text",inputMode:"numeric",value:0===(t=a.value)?"":g.A.formatNum2(t),onChange:e=>{let t=e.target.value;if(/^[\d.]*$/.test(t)){let e=(e=>{let t=parseInt(e.replace(/[.\s]/g,""),10);return isNaN(t)?0:t})(t);a.onChange(e),y(e)}},placeholder:"Tá»i thiá»u ".concat(g.A.formatNum2(w),"Ä"),className:"text-sidebar-foreground placeholder:text-sidebar-foreground/50 h-auto w-full rounded-none border-0 bg-transparent p-0 text-base font-bold focus-visible:ring-0 focus-visible:ring-offset-0"})})}),(0,l.jsx)(r.C5,{className:"mt-1 text-xs text-red-400"})]})}}),(0,l.jsx)(E.$,{type:"submit",disabled:q,className:"bg-primary hover:bg-primary/90 text-sidebar-foreground flex h-9 w-full cursor-pointer items-center justify-center gap-2 rounded-full px-3 py-2 text-base font-bold",style:{boxShadow:"0px 5px 6px var(--shadow-primary-template-9)"},children:"Nạp tiá»n"})]})})]})]}),M.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex flex-col items-start justify-center gap-3",children:(0,l.jsx)("h2",{className:"text-base leading-5 font-bold text-white",children:"Giao dá»ch gần Ä\xe2y"})}),(0,l.jsx)("div",{className:"flex w-full flex-wrap items-stretch gap-6",children:M.map(e=>(0,l.jsx)(B,{transaction:e},e.id))})]})]}),(0,l.jsx)(k,{open:C,onClose:()=>{S(!1),window.dispatchEvent(new Event("refreshTransactions")),W()},initialAmount:j})]})}function M(){return(0,l.jsx)(n.A,{scrollable:!0,children:(0,l.jsx)(o.Suspense,{fallback:(0,l.jsx)(F,{}),children:(0,l.jsx)(D,{})})})}},21383:(e,t,a)=>{a.d(t,{A:()=>
1o});var l=a(95155),r=a(39180),s=a(64269),n=a(6554),i=a(72557);function o(e){var t,a;let{children:o,scrollable:c=!0,className:d="",openMarqueeTop:x=!0}=e,u=(0,r.r)(e=>e.config),m=(0,n.S)(e=>e.isAdminPath),p=null!=(a=null==u||null==(t=u.theme)?void 0:t.textmarquee)?a:"",f=(0,l.jsx)("div",{className:"relative flex min-h-[36px] w-full items-center justify-center overflow-hidden rounded-lg px-4 py-2",style:{background:"\n linear-gradient(\n 90deg,\n rgb(from var(--primary) calc(r + 49) calc(g + 56) calc(b + 111)) 0%,\n rgb(from var(--primary) calc(r + 104) calc(g + 120) calc(b + 92)) 22%,\n rgb(from var(--primary) calc(r + 70) calc(g + 4) calc(b + 96)) 70%,\n rgb(from var(--primary) calc(r + 89) calc(g - 19) calc(b + 63)) 100%\n )\n "},children:(0,l.jsxs)("div",{className:"[container-type:inline-size] relative w-full overflow-hidden",children:[(0,l.jsx)("span",{className:"animate-marquee absolute left-full text-[13px] font-normal whitespace-nowrap text-white",children:p}),(0,l.jsx)("span",{className:"invisible text-[13px]",children:"\xa0"})]})});return(0,l.jsx)(l.Fragment,{children:c?(0,l.jsx)(i.F,{className:(0,s.cn)("z-0 mx-auto h-[calc(100dvh-56px)] w-full max-w-full overflow-x-hidden bg-white sm:h-[calc(100dvh-64px)] md:h-[calc(100dvh-70px)] [&_[data-slot=scroll-area-viewport]]:max-w-full [&_[data-slot=scroll-area-viewport]]:overflow-x-hidden"),children:(0,l.jsxs)("div",{className:(0,s.cn)("mx-auto flex min-h-full w-full min-w-0 flex-col gap-6 overflow-x-hidden p-3 sm:p-6 sm:pt-0",d),children:[!m&&x&&p&&f,(0,l.jsx)("div",{className:"flex w-full min-w-0 flex-1 pb-4 sm:pb-8 md:pb-12",children:o})]})}):(0,l.jsx)("div",{className:"z-0 mx-auto flex h-full w-full bg-white",children:(0,l.jsxs)("div",{className:(0,s.cn)("mx-auto flex min-h-full w-full min-w-0 flex-col gap-6 overflow-x-hidden p-3 sm:p-6 sm:pt-0",d),children:[!m&&x&&p&&f,(0,l.jsx)("div",{className:"flex w-full flex-1",children:o})]})})})}a(12115)},22968:(e,t,a)=>{a.d(t,{Cf:()=>d,LC:()=>c,ZJ:()=>o,lG:()=>i});var l=a(95155),r=a(89511);a(12115);var s=a(64269),n=a(10051);function i(e){let{...t}=e;return(0,l.jsx)(r.bL,{"data-slot":"dialog",...t})}function o(e){let{...t}=e;return(0,l.jsx)(r.ZL,{"data-slot":"dialog-portal",...t})}function c(e){let{className:t,...a}=e;return(0,l.jsx)(r.hJ,{"data-slot":"dialog-overlay",className:(0,s.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 d(e){let{className:t,children:a,showCloseButton:i=!0,title:d,titleClassName:m="",headerClassName:p="",closeClassName:f="",...h}=e;return(0,l.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,l.jsx)(c,{}),(0,l.jsxs)(r.UC,{"data-slot":"dialog-content",className:(0,s.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] 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),...h,children:[(0,l.jsxs)(x,{className:p,children:[(0,l.jsx)(u,{className:d?"text-text-normal-template-3 h-full align-middle text-[20px] leading-[22px] font-semibold ".concat(m," "):"hidden",children:d}),i&&(0,l.jsxs)(r.bm,{"data-slot":"dialog-close",className:(0,s.cn)("sticky-0 focus:ring-primary-hover data-[state=open]:bg-accent data-[state=open]:text-muted-foreground right-0 z-[60] rounded-full bg-black/50 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",f),children:[(0,l.jsx)(n.F.CloseIcon,{className:"!h-6 !w-6 !text-white"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a]})]})}function x(e){let{className:t,...a}=e;return(0,l.jsx)("div",{"data-slot":"dialog-header",className:(0,s.cn)("sticky top-0 z-50 flex h-14 w-auto flex-row items-center justify-between gap-24 rounded-t-2xl bg-[#F3EAE2] px-8 py-4 text-center sm:text-left",t),...a})}function u(e){let{className:t,...a}=e;return(0,l.jsx)(r.hE,{"data-slot":"dialog-title",className:(0,s.cn)("text-normal text-base leading-none font-semibold",t),...a})}},32140:(e,t,a)=>{a.d(t,{U:()=>s});var l=a(25959),r=a(9829);let s=(0,l.v)()((e,t)=>({notifications:[],socket:null,isConnected:!1,currentToken:null,addNotification:t=>e(e=>({notifications:[...e.notifications,t]})),clearNotifications:()=>e({notifications:[]}),initSocket:a=>{let l=t();if(l.socket&&l.currentToken===a)return;l.socket&&l.socket.disconnect();let s=(0,r.io)("https://api.homeproxy.vn",{transports:["websocket"],auth:{token:a}});s.on("connect",()=>{e({isConnected:!0}),s.emit("register")}),s.on("connect_error",()=>{e({isConnected:!1})}),s.on("disconnect",()=>{e({isConnected:!1})}),s.on("transactionUpdate",e=>{t().addNotification(e)}),s.on("userproxyUpdate",e=>{t().addNotification(e)}),e({socket:s,currentToken:a})},disconnectSocket:()=>{let{socket:a}=t();a&&(a.disconnect(),e({socket:null,isConnected:!1,currentToken:null}))},emit:(e,a,l)=>{let{socket:r,isConnected:s}=t();r&&s&&r.emit(e,a,l)}}))},39180:(e,t,a)=>{a.d(t,{r:()=>r});var l=a(68019);let r=(0,a(25959).v)((e,t)=>({config:null,affiliateProgram:null,setConfig:t=>{var a,r;return e({config:{...t,theme:(null==t?void 0:t.theme)?{...t.theme,textmarquee:null!=(r=null!=(a=t.theme.textmarquee)?a:t.theme.textMarquee)?r:"",...t.theme.logo&&{logo:(0,l.V)(t.theme.logo,t.hostName)},...t.theme["logo-l"]&&{"logo-l":(0,l.V)(t.theme["logo-l"],t.hostName)}}:t.theme}})},setAffiliateProgram:t=>e({affiliateProgram:t}),getRotateUrl:()=>{var e,a;return null==(a=t().config)||null==(e=a.theme)?void 0:e.rotateUrl}}))},41052:(e,t,a)=>{a.d(t,{C5:()=>b,MJ:()=>h,Rr:()=>g,eI:()=>p,lR:()=>f,lV:()=>c,zB:()=>x});var l=a(95155),r=a(12115),s=a(32467),n=a(22544),i=a(64269),o=a(76444);let c=n.Op,d=r.createContext({}),x=e=>{let{...t}=e;return(0,l.jsx)(d.Provider,{value:{name:t.name},children:(0,l.jsx)(n.xI,{...t})})},u=()=>{let e=r.useContext(d),t=r.useContext(m),{getFieldState:a}=(0,n.xW)(),l=(0,n.lN)({name:e.name}),s=a(e.name,l);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:"".concat(i,"-form-item"),formDescriptionId:"".concat(i,"-form-item-description"),formMessageId:"".concat(i,"-form-item-message"),...s}},m=r.createContext({});function p(e){let{className:t,...a}=e,s=r.useId();return(0,l.jsx)(m.Provider,{value:{id:s},children:(0,l.jsx)("div",{"data-slot":"form-item",className:(0,i.cn)("grid gap-2",t),...a})})}function f(e){let{className:t,...a}=e,{error:r,formItemId:s}=u();return(0,l.jsx)(o.J,{"data-slot":"form-label","data-error":!!r,className:(0,i.cn)("data-[error=true]:text-destructive",t),htmlFor:s,...a})}function h(e){let{...t}=e,{error:a,formItemId:r,formDescriptionId:n,formMessageId:i}=u();return(0,l.jsx)(s.DX,{"data-slot":"form-control",id:r,"aria-describedby":a?"".concat(n," ").concat(i):"".concat(n),"aria-invalid":!!a,...t})}function g(e){let{className:t,...a}=e,{formDescriptionId:r}=u();return(0,l.jsx)("p",{"data-slot":"form-description",id:r,className:(0,i.cn)("text-muted-foreground text-sm",t),...a})}function b(e){var t;let{className:a,...r}=e,{error:s,formMessageId:n}=u(),o=s?String(null!=(t=null==s?void 0:s.message)?t:""):r.children;return o?(0,l.jsx)("p",{"data-slot":"form-message",id:n,className:(0,i.cn)("text-destructive text-sm",a),...r,children:o}):null}},67558:(e,t,a)=>{a.d(t,{DM:()=>o,L3:()=>n,L5:()=>i,RP:()=>r,Tq:()=>d,aN:()=>l,x8:()=>c});let l="Sá» tiá»n trong v\xed cá»§a bạn",r="VND",s="\xa0".concat(r);function n(e){let t="string"==typeof e?parseFloat(e):e;
1return isNaN(t)?"0":Math.trunc(t).toLocaleString("vi-VN")}function i(e){return"".concat(n(e)).concat(s)}let o="block min-w-0 max-w-full truncate whitespace-nowrap tabular-nums";function c(e){let t=Math.abs(Number(null!=e?e:0));return Number.isFinite(t)&&0!==t?Math.floor(Math.log10(t))+1:1}function d(e){return e>=10?{amount:"text-[clamp(13px,4cqi,22px)] font-bold tabular-nums tracking-tight leading-none",currency:"text-[clamp(11px,3cqi,15px)] font-normal leading-none",layout:"flex flex-col items-start gap-0.5 min-[1440px]:flex-row min-[1440px]:flex-wrap min-[1440px]:items-baseline min-[1440px]:gap-x-1.5"}:e>=9?{amount:"text-[clamp(14px,4.5cqi,26px)] font-bold tabular-nums tracking-tight leading-none 2xl:text-[clamp(16px,4cqi,32px)]",currency:"text-[clamp(12px,3.2cqi,17px)] font-normal leading-none 2xl:text-[clamp(13px,2.8cqi,20px)]",layout:"flex flex-col items-start gap-0.5 xl:flex-row xl:flex-wrap xl:items-baseline xl:gap-x-1.5"}:e>=7?{amount:"text-[clamp(16px,5cqi,30px)] font-bold tabular-nums tracking-tight leading-none sm:text-[26px] md:text-[30px] min-[1440px]:text-[34px] 2xl:text-[38px]",currency:"text-sm font-normal leading-none xs:text-[15px] sm:text-[17px] md:text-[19px] lg:text-[21px]",layout:"flex flex-wrap items-baseline gap-x-1 xs:gap-x-1.5 sm:gap-x-2"}:{amount:"text-[20px] font-bold tabular-nums tracking-tight leading-none xs:text-[22px] sm:text-[28px] md:text-[32px] min-[1440px]:text-[36px] 2xl:text-[40px]",currency:"text-sm font-normal leading-none xs:text-[15px] sm:text-[18px] md:text-[20px] lg:text-[22px]",layout:"flex flex-wrap items-baseline gap-x-1 xs:gap-x-1.5 sm:gap-x-2"}}},68019:(e,t,a)=>{a.d(t,{V:()=>l});let l=(e,t)=>{if(!e||"string"!=typeof e)return"";let a=e.trim();if(a.startsWith("https://")||a.startsWith("http://"))return a.replace("/api/v1","");if((e=>e.startsWith("/api/v1/files")||e.startsWith("/files/")||e.includes("/files/"))(a)){let e="https://api.homeproxy.vn".replace(/\/$/,"");if(e){let t=a.startsWith("/")?a:"/".concat(a);return"".concat(e).concat(t).replace("/api/v1","")}}let l=(t||"https://app.homeproxy.vn").trim().replace(/^https?:\/\//,"").replace(/\/$/,"");return l?a.startsWith("/")?"https://".concat(l).concat(a).replace("/api/v1",""):"https://".concat(l,"/").concat(a).replace("/api/v1",""):a}},72557:(e,t,a)=>{a.d(t,{F:()=>i});var l=a(95155),r=a(12115),s=a(83360),n=a(64269);let i=r.forwardRef((e,t)=>{let{className:a,children:r,...i}=e;return(0,l.jsxs)(s.bL,{ref:t,"data-slot":"scroll-area",className:(0,n.cn)("relative overflow-hidden",a),...i,children:[(0,l.jsx)(s.LM,{"data-slot":"scroll-area-viewport",className:(0,n.cn)("h-full w-full rounded-[inherit]",(null==a?void 0:a.includes("!rounded-none"))&&"!rounded-none"),children:r}),(0,l.jsx)(o,{}),(0,l.jsx)(s.OK,{})]})});i.displayName=s.bL.displayName;let o=r.forwardRef((e,t)=>{let{className:a,orientation:r="vertical",...i}=e;return(0,l.jsx)(s.VM,{ref:t,"data-slot":"scroll-area-scrollbar",orientation:r,className:(0,n.cn)("flex touch-none transition-colors select-none","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...i,children:(0,l.jsx)(s.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})});o.displayName=s.VM.displayName},75746:(e,t,a)=>{a.d(t,{k:()=>l});let l=(0,a(25959).v)()(e=>({user:null,setUser:t=>e({user:t}),updateCoin:t=>e(e=>({user:e.user?{...e.user,coin:Number(e.user.coin)+t}:null})),clearUser:()=>e({user:null})}))},76444:(e,t,a)=>{a.d(t,{J:()=>n});var l=a(95155);a(12115);var r=a(10489),s=a(64269);function n(e){let{className:t,...a}=e;return(0,l.jsx)(r.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})}},86456:(e,t,a)=>{a.d(t,{$:()=>o});var l=a(95155);a(12115);var r=a(32467),s=a(83101),n=a(64269);let i=(0,s.F)("inline-flex items-center hover:cursor-pointer justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[1px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs",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 border-primary bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 text-primary data-[active=true]:text-primary data-[active=true]:border-primary data-[active=true]:bg-primary/10",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-primary-hover 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-lg gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-lg px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:a,size:s,asChild:o=!1,...c}=e,d=o?r.DX:"button";return(0,l.jsx)(d,{"data-slot":"button",className:(0,n.cn)(i({variant:a,size:s,className:t})),...c})}}}]);
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.