PageSourceSearch

https://j2proxy.vn/_next/static/chunks/5019.3ed08ae304ff366a.js

js j2proxy.vn collected 2026-10-02 02:14:52 UTC 29,899 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5019],{861:(e,t,s)=>{s.d(t,{Qg:()=>n,bL:()=>o});var a=s(12115),l=s(97602),r=s(95155),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),i=a.forwardRef((e,t)=>(0,r.jsx)(l.sG.span,{...e,ref:t,style:{...n,...e.style}}));i.displayName="VisuallyHidden";var o=i},1524:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{S:()=>a});let a=(0,s(25959).v)(e=>({pathname:"",isAdminPath:!1,setPathname:t=>e({pathname:t,isAdminPath:t.startsWith("/admin")})}))},12108:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},12774:(e,t,s)=>{s.d(t,{v:()=>v});var a=s(95155),l=s(13744),r=s(20865),n=s(15653);let i=n.z.object({firstName:n.z.string().min(1,"Họ l\xe0 bắt buộc"),lastName:n.z.string().min(1,"T\xean l\xe0 bắt buộc"),email:n.z.string().optional(),phone:n.z.string().optional(),userName:n.z.string().optional(),password:n.z.string().optional(),oldPassword:n.z.string().optional(),confirmPassword:n.z.string().optional()}).refine(e=>!e.password||!(e.password.trim().length>0)||e.oldPassword&&e.oldPassword.trim().length>0,{message:"Vui l\xf2ng nhập mật khẩu cũ khi thay đổi mật khẩu",path:["oldPassword"]}).refine(e=>{if(e.password&&e.password.trim().length>0){var t;return 0===(null!=(t=e.confirmPassword)?t:"").length||e.password===e.confirmPassword}return!0},{message:"X\xe1c nhận mật khẩu kh\xf4ng khớp",path:["confirmPassword"]}),o={incorrectOldPassword:"Mật khẩu cũ kh\xf4ng ch\xednh x\xe1c",duplicateUserName:"T\xean đăng nhập đ\xe3 tồn tại",duplicateEmail:"Email đ\xe3 được sử dụng",duplicatePhone:"Số điện thoại đ\xe3 được sử dụng"};var c=s(66942),d=s(60919),x=s(61362),h=s(52056),m=s(96199),p=s(12115),u=s(22544),f=s(18720);function v(e){let{initialData:t,onSuccess:s}=e,{data:n}=(0,m.wV)(),[v,g]=(0,p.useState)("info"),[j,N]=(0,p.useState)(!1),y=(0,p.useMemo)(()=>{var e,s,a,l,r;return{firstName:null!=(e=null==t?void 0:t.firstName)?e:"",lastName:null!=(s=null==t?void 0:t.lastName)?s:"",email:null!=(a=null==t?void 0:t.email)?a:"",phone:null!=(l=null==t?void 0:t.phone)?l:"",userName:null!=(r=null==t?void 0:t.userName)?r:"",password:"",oldPassword:"",confirmPassword:""}},[null==t?void 0:t.firstName,null==t?void 0:t.lastName,null==t?void 0:t.email,null==t?void 0:t.phone,null==t?void 0:t.userName]),w=(0,u.mN)({resolver:(0,c.u)(i),values:y}),{formState:{isSubmitting:b}}=w;async function k(e){var t,i,c,m,p;let u=!!((null==(t=e.password)?void 0:t.trim())&&(null==(i=e.oldPassword)?void 0:i.trim()));try{let t={firstName:e.firstName,lastName:e.lastName};if(u&&(t.password=e.password,t.oldPassword=e.oldPassword),await l.A.patchApi("/api/v1/auth/me",t,null==n||null==(c=n.user)?void 0:c.accessToken),u){f.toast.success("Đổi mật khẩu th\xe0nh c\xf4ng. Vui l\xf2ng đăng nhập lại.",{duration:3e3,icon:(0,a.jsx)(x.A,{className:"h-4 w-4 text-green-600"})}),setTimeout(()=>(0,r.CI)({callbackUrl:"/"}),2e3);return}f.toast.success("Cập nhật th\xf4ng tin th\xe0nh c\xf4ng",{duration:5e3,icon:(0,a.jsx)(x.A,{className:"h-4 w-4 text-green-600"})}),null==s||s(e)}catch(e){if(e instanceof d.pe){let t=null==(m=e.response)?void 0:m.data;(null==t?void 0:t.message)?f.toast.error("Cập nhật th\xf4ng tin lỗi",{description:null!=(p=null==o?void 0:o[t.message])?p:t.message,duration:5e3,icon:(0,a.jsx)(h.A,{className:"h-4 w-4 text-red-500"})}):(null==t?void 0:t.errors)&&l.A.handleFormErrorFromResponse(w,t.errors,o)}else f.toast.error("Cập nhật th\xf4ng tin lỗi",{description:"Lỗi kết nối đến m\xe1y chủ.",duration:5e3,icon:(0,a.jsx)(h.A,{className:"h-4 w-4 text-red-500"})})}}return{form:w,onSubmit:k,isSubmitting:b,activeTab:v,setActiveTab:g,openChangePassword:j,setOpenChangePassword:N}}},15239:(e,t,s)=>{s.d(t,{default:()=>l.a});var a=s(54652),l=s.n(a)},18794:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(95155);s(12115);var l=s(86948),r=s(20243);function n(){return(0,a.jsxs)(l.Zp,{className:"mx-auto w-full",children:[(0,a.jsxs)(l.aR,{children:[(0,a.jsx)(r.E,{className:"h-8 w-48"})," "]}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(r.E,{className:"h-4 w-16"})," ",(0,a.jsx)(r.E,{className:"h-32 w-full rounded-lg"})," "]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(r.E,{className:"h-4 w-24"})," ",(0,a.jsx)(r.E,{className:"h-10 w-full"})," "]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(r.E,{className:"h-4 w-20"})," ",(0,a.jsx)(r.E,{className:"h-10 w-full"})," "]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(r.E,{className:"h-4 w-16"})," ",(0,a.jsx)(r.E,{className:"h-10 w-full"})," "]})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(r.E,{className:"h-4 w-24"})," ",(0,a.jsx)(r.E,{className:"h-32 w-full"})," "]}),(0,a.jsx)(r.E,{className:"h-10 w-28"})]})})]})}},19408:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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"}
1],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},20305:(e,t,s)=>{s.d(t,{A:()=>a});var a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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"}]])},20865:(e,t,s)=>{s.d(t,{CI:()=>d,IL:()=>o,Jv:()=>c,LN:()=>i,mD:()=>n});var a=s(96199),l=s(75746),r=s(69715);function n(){return window.location.host}function i(){let e="true"===sessionStorage.getItem("preview_mode")?new URLSearchParams(window.location.search).get("previewTemplate"):null;return e?"/?previewTemplate=".concat(e):"/"}function o(){return"true"===sessionStorage.getItem("preview_mode")}function c(e,t){return o()?(l.k.getState().setUser(r._o),Promise.resolve({code:null,error:null})):(0,a.Jv)(e,t)}function d(e){return o()?(l.k.getState().clearUser(),Promise.resolve(void 0)):(0,a.CI)(e)}},21786:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},24316:(e,t,s)=>{s.d(t,{s:()=>n});var a=s(13744),l=s(96199),r=s(85400);function n(){let{data:e,status:t}=(0,l.wV)(),{data:s,mutate:n}=(0,r.Ay)("authenticated"===t?"/api/v1/auth/me":null,t=>a.A.fetchApi(t,null==e?void 0:e.accessToken).then(e=>null!=e?e:null).catch(()=>null),{revalidateOnFocus:!1});return{user:null!=s?s:null,mutate:n}}},30313:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(12115),l={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,s,r)=>{let n=(0,a.forwardRef)((s,n)=>{let{color:i="currentColor",size:o=24,stroke:c=2,title:d,className:x,children:h,...m}=s;return(0,a.createElement)("svg",{ref:n,...l[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,a.createElement)("title",{key:"svg-title"},d),...r.map(e=>{let[t,s]=e;return(0,a.createElement)(t,s)}),...Array.isArray(h)?h:[h]])});return n.displayName="".concat(s),n}},31018:(e,t,s)=>{s.d(t,{c:()=>o});var a=s(95155);s(12115);var l=s(55817),r=s(31719),n=s(64269),i=s(10951);function o(e){let{className:t,...s}=e;return(0,a.jsx)(l.bL,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"text-icon hover:text-icon absolute top-1/2 left-3 !h-5 !w-5 -translate-y-1/2",children:(0,a.jsx)(i.F.KeyIcon,{className:"text-icon pointer-events-none !h-5 !w-5"})}),(0,a.jsx)(l.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),...s}),(0,a.jsx)(l.lM,{id:s.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,a.jsx)(l.In,{visible:(0,a.jsx)(i.F.EyeOpenIcon,{className:"text-icon !h-5 !w-5"}),hidden:(0,a.jsx)(r.V$C,{className:"text-icon !h-5 !w-5"})})})]})})}},34604:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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"}]])},54652:(e,t,s)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{default:function(){return o},getImageProps:function(){return i}});let a=s(28140),l=s(75040),r=s(81356),n=a._(s(71124));function i(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let o=r.Image},57268:(e,t,s)=>{s.d(t,{b:()=>c});var a=s(12115),l=s(97602),r=s(95155),n="horizontal",i=["horizontal","vertical"],o=a.forwardRef((e,t)=>{var s;let{decorative:a,orientation:o=n,...c}=e,d=(s=o,i.includes(s))?o:n;return(0,r.jsx)(l.sG.div,{"data-orientation":d,...a?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...c,ref:t})});o.displayName="Separator";var c=o},62774:(e,t,s)=>{s.r(t),s.d(t,{default:()=>A});var a=s(95155),l=s(2649),r=s(23117),n=s(31018),i=s(10951),o=s(41052),c=s(25819),d=s(64240),x=s(13744),h=s(75746),m=s(12115);let p=(0,s(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=s(71360),f=s(21786),v=s(30273),g=s(15239);function j(e){let{initialAvatar:t="/images/user.svg",userName:s="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),[j,N]=(0,m.useState)(!1),[y,w]=(0,m.useState)(!1),b=(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 s=null==(t=e.target)?void 0:t.result;d(s),h(!1),null==n||n(s)},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?w(!0):"dragleave"===e.type&&w(!1)},M=()=>{d("/images/user.svg"),h(!1),N(!1),null==n||n(null),b.current&&(b.current.value="")},[C,I]=(0,m.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative h-25 w-25",children:[(0,a.jsxs)("div",{className:"group",children:[(0,a.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,a.jsx)(g.default,{src:o,alt:"Avatar",width:0,height:0,className:"h-25 w-25 rounded-full object-cover"})}),o&&(0,a.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&&N(!0)},children:(0,a.jsx)(p,{className:"text-primary-foreground h-8 w-8"})})]}),(0,a.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,a.jsx)(i.F.PencilIcon,{className:"!pointer-events-auto text-primary hover:text-sidebar-foreground !h-5 !w-5 "})})]}),j&&o&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:()=>N(!1),children:(0,a.jsxs)("div",{className:"flex max-h-full max-w-4xl flex-col gap-6",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"text-primary-foreground flex items-center justify-between",children:[(0,a.jsx)("h3",{className:"text-lg font-medium",children:"Xem ảnh đại diện"}),(0,a.jsx)(c.$,{onClick:()=>N(!1),className:"bg-transparent transition-colors hover:bg-transparent",title:"Đ\xf3ng modal",children:(0,a.jsx)(i.F.XIcon,{className:"text-primary-foreground !h-5 !w-5"})})]}),(0,a.jsx)(g.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,a.jsx)("div",{className:"flex justify-center",children:(0,a.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,a.jsx)(u.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"font-semibold",children:"X\xf3a ảnh n\xe0y"})]})})]})}),(0,a.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,a.jsxs)(l.Zp,{className:"bg-primary-foreground w-full max-w-md rounded-lg p-6",children:[(0,a.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(y?"border-primary bg-blue-50":"border-gray-300 hover:border-gray-400"),onDragEnter:A,onDragLeave:A,onDragOver:A,onDrop:e=>{e.preventDefault(),e.stopPropagation(),w(!1),e.dataTransfer.files&&e.dataTransfer.files[0]&&k(e.dataTransfer.files[0])},children:[(0,a.jsx)(f.A,{className:"mx-auto h-12 w-12"}),(0,a.jsx)("p",{className:"text-icon",children:"K\xe9o thả ảnh v\xe0o đ\xe2y hoặc"}),(0,a.jsx)(c.$,{onClick:()=>{var e;return null==(e=b.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,a.jsx)("p",{className:"mt-2",children:"Hỗ trợ: JPG, PNG, GIF (tối đa 5MB)"})]}),(0,a.jsx)("input",{ref:b,type:"file",accept:"image/*",onChange:e=>{var t;let s=null==(t=e.target.files)?void 0:t[0];s&&k(s)},className:"hidden"}),o&&(0,a.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,a.jsx)(u.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:"X\xf3a ảnh hiện tại"})]})]})})]})}var N=s(12774);function y(e){var t,s,p,u,f,v;let{initialData:y,pageTitle:w,onSuccess:b}=e,k=(0,h.k)(e=>e.user),[A,M]=(0,m.useState)(!1),{form:C,onSubmit:I,isSubmitting:P,openChangePassword:z,setOpenChangePassword:S}=(0,N.v)({initialData:y,onSuccess:b});return(0,a.jsxs)(l.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,a.jsx)(l.aR,{children:(0,a.jsx)(l.ZB,{className:"text-text-normal text-left text-2xl font-semibold",children:w})}),(0,a.jsx)(l.Wu,{children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-6 xl:flex-row xl:items-start",children:[(0,a.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,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:"Thay đổi ảnh đại diện"}),(0,a.jsx)(j,{})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:"Thay đổi th\xf4ng tin c\xe1 nh\xe2n"}),(0,a.jsx)(o.lV,{...C,children:(0,a.jsxs)("form",{onSubmit:C.handleSubmit(I),className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,a.jsx)(o.zB,{control:C.control,name:"firstName",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{className:"flex-1",children:[(0,a.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Họ",(0,a.jsx)("span",{className:"text-error",children:"*"})]}),(0,a.jsx)(o.MJ,{children:(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.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,a.jsx)(r.p,{className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,a.jsx)(o.C5,{})]})}}),(0,a.jsx)(o.zB,{control:C.control,name:"lastName",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{className:"flex-1",children:[(0,a.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["T\xean",(0,a.jsx)("span",{className:"text-error",children:"*"})]}),(0,a.jsx)(o.MJ,{children:(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.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,a.jsx)(r.p,{className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,a.jsx)(o.C5,{})]})}})]}),(0,a.jsx)(o.zB,{control:C.control,name:"email",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{className:"relative",children:[(0,a.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Email",(0,a.jsx)("span",{className:"text-error",children:"*"})]}),(0,a.jsx)(o.MJ,{children:(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.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,a.jsx)(r.p,{disabled:!0,className:"placeholder:text-text-normal text-text-normal h-10 pl-10",...t})]})}),(0,a.jsx)(o.C5,{})]})}}),(0,a.jsx)(o.zB,{control:C.control,name:"phone",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{className:"relative",children:[(0,a.jsxs)(o.lR,{className:"text-text-normal text-sm font-normal",children:["Số điện thoại",(0,a.jsx)("span",{className:"text-error",children:"*"})]}),(0,a.jsx)(o.MJ,{children:(0,a.jsxs)("div",{className:"relative w-full",children:[(0,a.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,a.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,a.jsx)(o.C5,{})]})}}),(0,a.jsx)("div",{className:"transition-all duration-700 ".concat(z?"max-h-full opacity-100":"hidden max-h-0 opacity-0"),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,a.jsx)("h3",{className:"text-text-normal text-sm font-semibold",children:"Đổi mật khẩu"}),(0,a.jsx)(c.$,{onClick:()=>S(!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,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,a.jsx)(o.zB,{control:C.control,name:"oldPassword",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{children:[(0,a.jsx)(o.lR,{className:"text-sm font-normal",children:"Mật khẩu cũ"}),(0,a.jsx)(o.MJ,{children:(0,a.jsx)(n.c,{placeholder:"Nhập mật khẩu cũ",className:"placeholder:text-text-normal h-10 pl-10",...t})}),(0,a.jsx)(o.C5,{})]})}}),(0,a.jsx)(o.zB,{control:C.control,name:"password",render:e=>{let{field:t}=e;return(0,a.jsxs)(o.eI,{children:[(0,a.jsx)(o.lR,{className:"text-sm font-normal",children:"Mật khẩu mới"}),(0,a.jsx)(o.MJ,{children:(0,a.jsx)(n.c,{placeholder:"Nhập mật khẩu mới",className:"placeholder:text-text-normal h-10 pl-10",...t})}),(0,a.jsx)(o.C5,{})]})}})]}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Để trống nếu kh\xf4ng muốn thay đổi mật khẩu"})]})}),(0,a.jsxs)(c.$,{className:"bg-primary flex h-12 w-full items-center justify-center py-2.5 pr-4 pl-3",size:"lg",disabled:P,type:"submit",children:[(0,a.jsx)("span",{className:"text-primary-foreground text-sm font-semibold",children:"Cập nhật"}),(0,a.jsx)(i.F.CheckIcon,{className:"text-primary-foreground !h-5 !w-5"})]}),!z&&(0,a.jsx)(c.$,{onClick:()=>S(!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,a.jsxs)("div",{className:"order-1 flex max-w-[361px] flex-col gap-6 sm:w-[361px] xl:order-2",children:[(0,a.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,a.jsxs)("div",{className:"flex flex-row items-center justify-start gap-2",children:[(0,a.jsx)("div",{className:"bg-primary flex h-6 w-6 items-center justify-center rounded-full",children:(0,a.jsx)(i.F.Wallet2Icon,{className:"text-primary-foreground !h-4 !w-4"})}),(0,a.jsx)("span",{className:"text-text-normal text-base font-semibold",children:"V\xed tiền của bạn"})]}),(0,a.jsx)("div",{className:"flex gap-3",children:(0,a.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==(s=k.merchant)?void 0:s.amountRemaining)?v:0)):0,"đ"]})}),(0,a.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,a.jsx)(i.F.MoneyIcon,{className:"group-hover/depositbutton:text-primary-foreground text-primary !h-5 !w-5"}),(0,a.jsx)("span",{className:"group-hover/depositbutton:text-primary-foreground text-primary text-sm font-semibold",children:"Nạp tiền"})]})]}),(0,a.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,a.jsxs)("div",{id:"user-right",className:"relative grid w-full p-0",children:[(0,a.jsxs)("div",{className:"bg-primary relative col-start-1 row-start-1 h-24 overflow-hidden rounded-lg",children:[(0,a.jsx)("div",{className:"bg-ellipse absolute top-[63px] right-[251px] h-[137px] w-[137px] rounded-full bg-[#4e77ff] blur-[75px]"}),(0,a.jsx)("div",{className:"bg-ellipse absolute bottom-[26px] left-[219px] h-[141px] w-[141px] rounded-full bg-[#4e77ff] blur-[75px]"})]}),(0,a.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,a.jsx)(g.default,{src:"/images/user.svg",alt:"Avatar",width:0,height:0,className:"h-32 w-32 rounded-full object-cover"}),(0,a.jsxs)("div",{className:"flex max-w-80 flex-col items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:"text-text-normal h-6 text-xl font-semibold",children:"".concat(C.getValues().firstName," ").concat(C.getValues().lastName)}),(0,a.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,a.jsx)("div",{id:"divider",className:"border-border-divider w-full max-w-80 border-1"}),(0,a.jsx)("span",{className:"text-text-normal h-[19px] text-base font-semibold",children:"Th\xf4ng tin c\xe1 nh\xe2n"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsx)(i.F.UserIcon,{className:"text-icon !h-5 !w-5"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"M\xe3 t\xe0i khoản ID"}),(0,a.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:"2930182"})]})]}),(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsx)(i.F.EmailIcon,{className:"text-icon !h-5 !w-5"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Email"}),(0,a.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:C.getValues().email||""})]})]}),(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsx)(i.F.PhoneIcon,{className:"text-icon !h-5 !w-5"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Số điện thoại"}),(0,a.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:C.getValues().phone||""})]})]}),(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsx)(i.F.Calendar2Icon,{className:"text-icon !h-5 !w-5"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Ng\xe0y đăng k\xfd"}),(0,a.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,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsx)(i.F.ClockIcon,{className:"text-icon !h-5 !w-5"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("span",{className:"text-blur h-[17px] text-sm font-normal",children:"Truy cập lần cuối"}),(0,a.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:"unknow"})]})]})]})]})]})]})}),A&&(0,a.jsx)(d.A,{open:A,onClose:()=>M(!1)})]})}var w=s(49008),b=s(18794),k=s(24316);function A(){let{user:e,mutate:t}=(0,k.s)();return(0,a.jsx)(w.A,{scrollable:!0,className:"bg-background-blur",openMarqueeTop:!0,openMarqueeBottom:!1,children:(0,a.jsx)(m.Suspense,{fallback:(0,a.jsx)(b.A,{}),children:(0,a.jsx)(y,{initialData:e,pageTitle:"Th\xf4ng tin c\xe1 nh\xe2n",onSuccess:function(s){e&&t({...e,firstName:s.firstName,lastName:s.lastName},{revalidate:!0})}})})})}},70198:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});
1let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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,s)=>{s.d(t,{A:()=>a});let a=(0,s(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.