1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15395],{1524:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},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")})}))},12108:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},19408:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},20305:(e,t,a)=>{a.d(t,{A:()=>l});var l=(0,a(30313).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},20386:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]])},21786:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},24033:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},30313:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(12115),s={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let r=(e,t,a,r)=>{let n=(0,l.forwardRef)((a,n)=>{let{color:i="currentColor",size:o=24,stroke:c=2,title:d,className:x,children:h,...m}=a;return(0,l.createElement)("svg",{ref:n,...s[e],width:o,height:o,className:["tabler-icon","tabler-icon-".concat(t),x].join(" "),..."filled"===e?{fill:i}:{strokeWidth:c,stroke:i},...m},[d&&(0,l.createElement)("title",{key:"svg-title"},d),...r.map(e=>{let[t,a]=e;return(0,l.createElement)(t,a)}),...Array.isArray(h)?h:[h]])});return n.displayName="".concat(a),n}},31018:(e,t,a)=>{a.d(t,{c:()=>o});var l=a(95155);a(12115);var s=a(55817),r=a(31719),n=a(64269),i=a(10951);function o(e){let{className:t,...a}=e;return(0,l.jsx)(s.bL,{children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("div",{className:"text-icon hover:text-icon absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2",children:(0,l.jsx)(i.F.KeyIcon,{className:"text-icon pointer-events-none !h-5 !w-5"})}),(0,l.jsx)(s.pd,{className:(0,n.cn)("placeholder:text-icon selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 gap-2 rounded-lg border bg-transparent px-3 py-2.5 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary focus-visible:ring-primary/20 hover:border-primary/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","pr-[40px]","truncate overflow-hidden text-ellipsis whitespace-nowrap",t),...a}),(0,l.jsx)(s.lM,{id:a.id+"btn-toggle",className:"absolute top-1/2 right-2 -translate-y-1/2 text-gray-500 hover:cursor-pointer hover:text-gray-700",children:(0,l.jsx)(s.In,{visible:(0,l.jsx)(i.F.EyeOpenIcon,{className:"text-icon !h-5 !w-5"}),hidden:(0,l.jsx)(r.V$C,{className:"text-icon !h-5 !w-5"})})})]})})}},34604:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},57268:(e,t,a)=>{a.d(t,{b:()=>c});var l=a(12115),s=a(97602),r=a(95155),n="horizontal",i=["horizontal","vertical"],o=l.forwardRef((e,t)=>
1{var a;let{decorative:l,orientation:o=n,...c}=e,d=(a=o,i.includes(a))?o:n;return(0,r.jsx)(s.sG.div,{"data-orientation":d,...l?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...c,ref:t})});o.displayName="Separator";var c=o},62774:(e,t,a)=>{a.r(t),a.d(t,{default:()=>A});var l=a(95155),s=a(2649),r=a(23117),n=a(31018),i=a(10951),o=a(41052),c=a(25819),d=a(64240),x=a(13744),h=a(75746),m=a(12115);let p=(0,a(71847).A)("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);var u=a(71360),f=a(21786),v=a(30273),j=a(15239);function g(e){let{initialAvatar:t="/images/user.svg",userName:a="T\xean ngưá»i d\xf9ng",userDescription:r="Thay Äá»i th\xf4ng tin c\xe1 nh\xe2n",onAvatarChange:n}=e,[o,d]=(0,m.useState)(t),[x,h]=(0,m.useState)(!1),[g,y]=(0,m.useState)(!1),[N,b]=(0,m.useState)(!1),w=(0,m.useRef)(null),k=e=>{if(e&&e.type.startsWith("image/")){if(e.size>5242880)return void alert("File qu\xe1 lá»n! Vui l\xf2ng chá»n file nhá» hÆ¡n 5MB.");let t=new FileReader;t.onload=e=>{var t;let a=null==(t=e.target)?void 0:t.result;d(a),h(!1),null==n||n(a)},t.readAsDataURL(e)}else alert("Vui l\xf2ng chá»n file ảnh hợp lá»!")},A=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?b(!0):"dragleave"===e.type&&b(!1)},M=()=>{d("/images/user.svg"),h(!1),y(!1),null==n||n(null),w.current&&(w.current.value="")},[C,I]=(0,m.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative h-25 w-25",children:[(0,l.jsxs)("div",{className:"group",children:[(0,l.jsx)("div",{className:"flex h-25 w-25 items-center justify-center overflow-hidden rounded-full border-4 border-gray-200 bg-gray-100 ".concat(o?"cursor-pointer":""),children:(0,l.jsx)(j.default,{src:o,alt:"Avatar",width:0,height:0,className:"h-25 w-25 rounded-full object-cover"})}),o&&(0,l.jsx)("div",{className:"absolute inset-0 flex cursor-pointer items-center justify-center rounded-full bg-black/50 opacity-0 transition-opacity duration-200 group-hover:opacity-100",onClick:()=>{o&&y(!0)},children:(0,l.jsx)(p,{className:"text-primary-foreground h-8 w-8"})})]}),(0,l.jsx)(c.$,{type:"button",className:"bg-[color-mix(in_oklab,var(--primary),white_94%)] hover:bg-primary-hover absolute right-0 bottom-0 flex h-7 w-7 items-center justify-center gap-2.5 rounded-full p-1",children:(0,l.jsx)(i.F.PencilIcon,{className:"!pointer-events-auto text-primary hover:text-sidebar-foreground !h-5 !w-5 "})})]}),g&&o&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:()=>y(!1),children:(0,l.jsxs)("div",{className:"flex max-h-full max-w-4xl flex-col gap-6",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"text-primary-foreground flex items-center justify-between",children:[(0,l.jsx)("h3",{className:"text-lg font-medium",children:"Xem ảnh Äại diá»n"}),(0,l.jsx)(c.$,{onClick:()=>y(!1),className:"bg-transparent transition-colors hover:bg-transparent",title:"Ä\xf3ng modal",children:(0,l.jsx)(i.F.XIcon,{className:"text-primary-foreground !h-5 !w-5"})})]}),(0,l.jsx)(j.default,{width:0,height:0,src:o,alt:"Avatar lá»n",className:"h-full max-h-[70vh] w-full max-w-full rounded-lg object-contain shadow-2xl"}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)(c.$,{variant:"destructive",onClick:M,className:"flex transform items-center space-x-3 rounded-lg px-6 py-3 text-white shadow-lg transition-colors hover:scale-105 hover:bg-red-700",title:"X\xf3a ảnh n\xe0y v\xe0 quay vá» mặc Äá»nh",children:[(0,l.jsx)(u.A,{className:"h-5 w-5"}),(0,l.jsx)("span",{className:"font-semibold",children:"X\xf3a ảnh n\xe0y"})]})})]})}),(0,l.jsx)(v.a,{title:"Chá»n ảnh Äại diá»n",titleClassName:"font-semibold text-xl h-6 text-normal",description:"",isOpen:C,onClose:()=>{I(!1)},className:"w-fit",children:(0,l.jsxs)(s.Zp,{className:"bg-primary-foreground w-full max-w-md rounded-lg p-6",children:[(0,l.jsxs)("div",{className:"text-icon flex flex-col gap-4 roun
1ded-lg border-2 border-dashed p-8 text-center text-sm font-normal transition-colors ".concat(N?"border-primary bg-blue-50":"border-gray-300 hover:border-gray-400"),onDragEnter:A,onDragLeave:A,onDragOver:A,onDrop:e=>{e.preventDefault(),e.stopPropagation(),b(!1),e.dataTransfer.files&&e.dataTransfer.files[0]&&k(e.dataTransfer.files[0])},children:[(0,l.jsx)(f.A,{className:"mx-auto h-12 w-12"}),(0,l.jsx)("p",{className:"text-icon",children:"K\xe9o thả ảnh v\xe0o Ä\xe2y hoặc"}),(0,l.jsx)(c.$,{onClick:()=>{var e;return null==(e=w.current)?void 0:e.click()},className:"text-primary-foreground hover:bg-primary/90 rounded-lg px-4 py-2 transition-colors",children:"Chá»n file"}),(0,l.jsx)("p",{className:"mt-2",children:"Há» trợ: JPG, PNG, GIF (tá»i Äa 5MB)"})]}),(0,l.jsx)("input",{ref:w,type:"file",accept:"image/*",onChange:e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&k(a)},className:"hidden"}),o&&(0,l.jsxs)(c.$,{variant:"destructive",onClick:M,className:"text-primary-foreground flex w-full items-center justify-center space-x-2 rounded px-4 py-2 transition-colors",children:[(0,l.jsx)(u.A,{className:"h-4 w-4"}),(0,l.jsx)("span",{children:"X\xf3a ảnh hiá»n tại"})]})]})})]})}var y=a(12774);function N(e){var t,a,p,u,f,v;let{initialData:N,pageTitle:b,onSuccess:w}=e,k=(0,h.k)(e=>e.user),[A,M]=(0,m.useState)(!1),{form:C,onSubmit:I,isSubmitting:F,openChangePassword:z,setOpenChangePassword:V}=(0,y.v)({initialData:N,onSuccess:w});return(0,l.jsxs)(s.Zp,{className:"bg-background-blur flex w-full max-w-[100%] flex-col justify-center gap-4 roun
1ded-none border-none py-0 shadow-none xl:justify-start",children:[(0,l.jsx)(s.aR,{children:(0,l.jsx)(s.ZB,{className:"text-text-normal text-left text-2xl font-semibold",children:b})}),(0,l.jsx)(s.Wu,{children:(0,l.jsxs)("div",{className:"flex w-full flex-col items-center gap-6 xl:flex-row xl:items-start",children:[(0,l.jsxs)("div",{className:"bg-background order-2 flex h-full w-full flex-1 flex-col gap-9 rounded-lg px-6 pt-4 pb-6 shadow-[0_4px_30px_0_var(--shadow-userinfo)] lg:h-[830px] xl:order-1",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:"Thay Äá»i ảnh Äại diá»n"}),(0,l.jsx)(g,{})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:"Thay Äá»i th\xf4ng tin c\xe1 nh\xe2n"}),(0,l.jsx)(o.lV,{...C,children:(0,l.jsxs)("form",{onSubmit:C.handleSubmit(I),className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,l.jsx)(o.zB,{control:C.control,name:"firstName",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{className:"flex-1",children:[(0,l.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Há»",(0,l.jsx)("span",{className:"text-error",children:"*"})]}),(0,l.jsx)(o.MJ,{children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(i.F.UserIcon,{className:"text-icon pointer-events-none absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2"}),(0,l.jsx)(r.p,{className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,l.jsx)(o.C5,{})]})}}),(0,l.jsx)(o.zB,{control:C.control,name:"lastName",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{className:"flex-1",children:[(0,l.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["T\xean",(0,l.jsx)("span",{className:"text-error",children:"*"})]}),(0,l.jsx)(o.MJ,{children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(i.F.UserIcon,{className:"text-icon pointer-events-none absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2"}),(0,l.jsx)(r.p,{className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,l.jsx)(o.C5,{})]})}})]}),(0,l.jsx)(o.zB,{control:C.control,name:"email",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{className:"relative",children:[(0,l.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Email",(0,l.jsx)("span",{className:"text-error",children:"*"})]}),(0,l.jsx)(o.MJ,{children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(i.F.EmailIcon,{className:"text-icon pointer-events-none absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2"}),(0,l.jsx)(r.p,{disabled:!0,className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,l.jsx)(o.C5,{})]})}}),(0,l.jsx)(o.zB,{control:C.control,name:"phone",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{className:"relative",children:[(0,l.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Sá» Äiá»n thoại",(0,l.jsx)("span",{className:"text-error",children:"*"})]}),(0,l.jsx)(o.MJ,{children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsx)(i.F.PhoneIcon,{className:"text-icon pointer-events-none absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2"}),(0,l.jsx)(r.p,{disabled:!0,placeholder:"Nháºp sá» Äiá»n thoại",className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,l.jsx)(o.C5,{})]})}}),(0,l.jsx)("div",{className:"transition-all duration-700 ".concat(z?"max-h-full opacity-100":"hidden max-h-0 opacity-0"),children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,l.jsx)("h3",{className:"text-text-normal text-sm font-semibold",children:"Äá»i máºt khẩu"}),(0,l.jsx)(c.$,{onClick:()=>V(!1),type:"button",variant:"link",className:"text-primary flex h-[17px] h-fit cursor-pointer items-center justify-start p-0 pl-1 text-sm font-semibold",children:"Ẩn"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,l.jsx)(o.zB,{control:C.control,name:"oldPassword",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{children:[(0,l.jsx)(o.lR,{className:"text-sm font-normal",children:"Máºt khẩu cÅ©"}),(0,l.jsx)(o.MJ,{children:(0,l.jsx)(n.c,{placeholder:"Nháºp máºt khẩu cÅ©",className:"placeholder:text-text-normal h-10 pl-10",...t})}),(0,l.jsx)(o.C5,{})]})}}),(0,l.jsx)(o.zB,{control:C.control,name:"password",render:e=>{let{field:t}=e;return(0,l.jsxs)(o.eI,{children:[(0,l.jsx)(o.lR,{className:"text-sm font-normal",children:"Máºt khẩu má»i"}),(0,l.jsx)(o.MJ,{children:(0,l.jsx)(n.c,{placeholder:"Nháºp máºt khẩu má»i",className:"placeholder:text-text-normal h-10 pl-10",...t})}),(0,l.jsx)(o.C5,{})]})}})]}),(0,l.jsx)("p",{className:"text-sm text-gray-500",children:"Äá» trá»ng nếu kh\xf4ng muá»n thay Äá»i máºt khẩu"})]})}),(0,l.jsxs)(c.$,{className:"bg-primary flex h-12 w-full items-center justify-center py-2.5 pr-4 pl-3",size:"lg",disabled:F,type:"submit",children:[(0,l.jsx)("span",{className:"text-primary-foreground text-sm font-semibold",children:"Cáºp nháºt"}),(0,l.jsx)(i.F.CheckIcon,{className:"text-primary-foreground !h-5 !w-5"})]}),!z&&(0,l.jsx)(c.$,{onClick:()=>V(!0),type:"button",variant:"link",className:"text-primary flex h-[17px] h-fit cursor-pointer items-center justify-start p-0 pl-1 text-sm font-semibold",children:"Äá»i máºt khẩu?"})]})})]})]}),(0,l.jsxs)("div",{className:"order-1 flex max-w-[361px] flex-col gap-6 sm:w-[361px] xl:order-2",children:[(0,l.jsxs)("div",{className:"bg-background flex flex-col gap-4 roun
1ded-lg p-6 shadow-[0_4px_30px_0_var(--shadow-userinfo)]",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center justify-start gap-2",children:[(0,l.jsx)("div",{className:"bg-primary flex h-6 w-6 items-center justify-center rounded-full",children:(0,l.jsx)(i.F.Wallet2Icon,{className:"text-primary-foreground !h-4 !w-4"})}),(0,l.jsx)("span",{className:"text-text-normal text-base font-semibold",children:"V\xed tiá»n cá»§a bạn"})]}),(0,l.jsx)("div",{className:"flex gap-3",children:(0,l.jsxs)("span",{className:"text-primary h-9 text-3xl font-semibold",children:[k?x.A.formatNum(Number(k.coin)+(null!=(v=null!=(f=null==(t=k.merchant)?void 0:t.promotionAmountRemaining)?f:null==(a=k.merchant)?void 0:a.amountRemaining)?v:0)):0,"Ä"]})}),(0,l.jsxs)(c.$,{variant:"outline",size:"sm",className:"group/depositbutton border-border-btn-deposit hover:bg-primary h-12 w-full flex-auto items-center justify-center border-[1.5px] px-0 py-2.5 pr-4 pl-3 hover:cursor-pointer",onClick:()=>M(!0),children:[(0,l.jsx)(i.F.MoneyIcon,{className:"group-hover/depositbutton:text-primary-foreground text-primary !h-5 !w-5"}),(0,l.jsx)("span",{className:"group-hover/depositbutton:text-primary-foreground text-primary text-sm font-semibold",children:"Nạp tiá»n"})]})]}),(0,l.jsxs)("div",{className:"relative flex flex-col gap-4 roun
1ded-lg px-5 py-6 shadow-[0_4px_30px_0_var(--shadow-userinfo2)]",children:[(0,l.jsxs)("div",{id:"user-right",className:"relative grid w-full p-0",children:[(0,l.jsxs)("div",{className:"bg-primary relative col-start-1 row-start-1 h-24 overflow-hidden rounded-lg",children:[(0,l.jsx)("div",{className:"bg-ellipse absolute top-[63px] right-[251px] h-[137px] w-[137px] rounded-full bg-[#4e77ff] blur-[75px]"}),(0,l.jsx)("div",{className:"bg-ellipse absolute bottom-[26px] left-[219px] h-[141px] w-[141px] rounded-full bg-[#4e77ff] blur-[75px]"})]}),(0,l.jsxs)("div",{className:"z-10 col-start-1 row-start-1 mt-9 flex w-full flex-col items-center justify-center gap-2",children:[(0,l.jsx)(j.default,{src:"/images/user.svg",alt:"Avatar",width:0,height:0,className:"h-32 w-32 rounded-full object-cover"}),(0,l.jsxs)("div",{className:"flex max-w-80 flex-col items-center justify-center gap-2",children:[(0,l.jsx)("span",{className:"text-text-normal h-6 text-xl font-semibold",children:"".concat(C.getValues().firstName," ").concat(C.getValues().lastName)}),(0,l.jsx)("span",{className:"".concat((null==k||null==(p=k.status)?void 0:p.id)===1?"bg-success":"bg-error"," text-primary-foreground w-fit gap-2.5 rounded-[100px] px-3 py-1 text-sm font-semibold"),children:(null==k||null==(u=k.status)?void 0:u.id)===1?"Ä\xe3 k\xedch hoạt":"Chưa k\xedch hoạt"})]})]})]}),(0,l.jsx)("div",{id:"divider",className:"border-border-divider w-full max-w-80 border-1"}),(0,l.jsx)("span",{className:"text-text-normal h-[19px] text-base font-semibold",children:"Th\xf4ng tin c\xe1 nh\xe2n"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,l.jsx)(i.F.UserIcon,{className:"text-icon !h-5 !w-5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"M\xe3 t\xe0i khoản ID"}),(0,l.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:"2930182"})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,l.jsx)(i.F.EmailIcon,{className:"text-icon !h-5 !w-5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Email"}),(0,l.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:C.getValues().email||""})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,l.jsx)(i.F.PhoneIcon,{className:"text-icon !h-5 !w-5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Sá» Äiá»n thoại"}),(0,l.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:C.getValues().phone||""})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,l.jsx)(i.F.Calendar2Icon,{className:"text-icon !h-5 !w-5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Ng\xe0y ÄÄng k\xfd"}),(0,l.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:k?x.A.formatDate(k.createdAt):"Chưa r\xf5 ng\xe0y ÄÄng k\xfd"})]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,l.jsx)(i.F.ClockIcon,{className:"text-icon !h-5 !w-5"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Truy cáºp lần cuá»i"}),(0,l.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:"unknow"})]})]})]})]})]})]})}),A&&(0,l.jsx)(d.A,{open:A,onClose:()=>M(!1)})]})}var b=a(49008),w=a(18794),k=a(24316);function A(){let{user:e,mutate:t}=(0,k.s)();return(0,l.jsx)(b.A,{scrollable:!0,className:"bg-background-blur",openMarqueeTop:!0,openMarqueeBottom:!1,children:(0,l.jsx)(m.Suspense,{fallback:(0,l.jsx)(w.A,{}),children:(0,l.jsx)(N,{initialData:e,pageTitle:"Th\xf4ng tin c\xe1 nh\xe2n",onSuccess:function(a){e&&t({...e,firstName:a.firstName,lastName:a.lastName},{revalidate:!0})}})})})}},70198:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]])},71360:(e,t,a)=>{a.d(t,{A:()=>l});
1let l=(0,a(71847).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},77931:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},82214:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},87763:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("ReceiptText",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]])},91169:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},93669:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(71847).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])}}]);
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.