1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18548],{14734:(e,t,a)=>{a.d(t,{F:()=>n});var r=a(12115),s=a(32140);function n(e){let{notifications:t,isConnected:a,clearNotifications:n,initSocket:o,disconnectSocket:i,emit:l}=(0,s.U)();(0,r.useEffect)(()=>{e&&o(e)},[e,o]);let d=(0,r.useCallback)((e,t,a)=>{l(e,t,a)},[l]);return{socket:null,notifications:t,isConnected:a,emit:d,disconnect:(0,r.useCallback)(()=>{i()},[i]),clearNotifications:(0,r.useCallback)(()=>n(),[n])}}},25819:(e,t,a)=>{a.d(t,{$:()=>l});var r=a(95155);a(12115);var s=a(32467),n=a(83101),o=a(64269);let i=(0,n.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 hover:bg-primary/90",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",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 l(e){let{className:t,variant:a,size:n,asChild:l=!1,...d}=e,c=l?s.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,o.cn)(i({variant:a,size:n,className:t})),...d})}},33407:(e,t,a)=>{a.d(t,{a:()=>n});var r=a(95155),s=a(61504);let n=e=>{let{title:t,description:a,isOpen:n,onClose:o,children:i,className:l,titleClassName:d,headerClassName:c,showCloseButton:u=!0}=e;return(0,r.jsx)(s.lG,{open:n,onOpenChange:e=>{e||o()},children:(0,r.jsx)(s.Cf,{className:l,title:t,description:a,titleClassName:null!=d?d:"",headerClassName:null!=c?c:"",showCloseButton:u,onOpenAutoFocus:e=>{e.preventDefault()},children:(0,r.jsx)("div",{className:"min-w-0",children:i})})})}},38867:(e,t,a)=>{a.d(t,{A:()=>T});var r=a(95155),s=a(75746),n=a(14734),o=a(13744),i=a(51042),l=a(3574),d=a(16348),c=a(66942),u=a(60919),x=a(61362),p=a(52056),h=a(96199),m=a(15239),f=a(12115),g=a(22544),b=a(18720),v=a(15653),w=a(72264),j=a(50832),N=a(33407),y=a(57268),k=a(64269);let _=f.forwardRef((e,t)=>{let{className:a,orientation:s="horizontal",decorative:n=!0,...o}=e;return(0,r.jsx)(y.b,{ref:t,decorative:n,orientation:s,className:(0,k.cn)("shrink-0 bg-border-template-3","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",a),...o})});_.displayName=y.b.displayName;var z=a(9379),C=a(79724),F=a(74022),S=a(92666);let R=v.z.object({amount:v.z.number().min(1e3,"Sá» tiá»n lá»n hÆ¡n 1000")}),L={isNumber:"Sá» tiá»n phải l\xe0 sá»",notFound:"Sá» Äiá»n thoại kh\xf4ng tá»n tại"};function T(e){var t,a,v,y,k,T,A,E,M,B;let{open:D,onClose:I}=e,[V,q]=(0,f.useState)({}),Q=(0,g.mN)({resolver:(0,c.u)(R),values:{amount:0}}),{formState:{isSubmitting:Z}}=Q,{data:$}=(0,h.wV)(),O=(0,F.a)(),P=(0,s.k)(e=>e.updateCoin),U=(0,s.k)(e=>e.user),{notifications:W,disconnect:G,emit:H,isConnected:X}=(0,n.F)(null==$||null==(t=$.user)?void 0:t.accessToken);async function J(e){var t,a,s,n,i;try{let a=await O.withBuyer(e);if(!a)return;let s=await o.A.postApi("/api/v1/transactions",a,null==$||null==(t=$.user)?void 0:t.accessToken,{headers:(0,S.v)()});q(s),b.toast.success("Tạo giao dá»ch th\xe0nh c\xf4ng",{duration:5e3,icon:(0,r.jsx)(x.A,{className:"text-success h-4 w-4"})})}catch(e){if(e instanceof u.pe){let t=null==(a=e.response)?void 0:a.data;if(null==t?void 0:t.message)b.toast.error("Tạo giao dá»ch thất bại",{description:null!=(s=null==L?void 0:L[t.message])?s:t.message,duration:5e3,icon:(0,r.jsx)(p.A,{className:"text-error h-4 w-4"})});else if(null==t?void 0:t.errors){if((0,F.S)(t.errors))return;(null==(n=t.errors)?void 0:n.user)?b.toast.error("Tạo giao dá»ch thất bại",{description:null!=(i=null==L?void 0:L[t.errors.user])?i:t.errors.user,duration:5e3,icon:(0,r.jsx)(p.A,{className:"text-error h-4 w-4"})}):o.A.handleFormErrorFromResponse(Q,t.errors,L)}}else b.toast.error("Tạo giao dá»ch thất bại",{description:"Lá»i kết ná»i Äến m\xe1y chá»
1§.",duration:5e3,icon:(0,r.jsx)(p.A,{className:"text-error h-4 w-4"})})}}return(0,f.useEffect)(()=>{if(D)return()=>{q({}),G()}},[D]),(0,f.useEffect)(()=>{X&&H("register")},[X]),(0,f.useEffect)(()=>{let e=W.find(e=>e.id==V.id);if(e){var t;q({...V,...e}),b.toast.success("Thanh to\xe1n th\xe0nh c\xf4ng",{duration:5e3,icon:(0,r.jsx)(x.A,{className:"text-success h-4 w-4"})}),(null==U||null==(t=U.role)?void 0:t.id)=="3"&&P(Number(e.amount))}},[W]),(0,r.jsxs)(N.a,{title:"Nạp tiá»n v\xe0o v\xed Äá» thanh to\xe1n",titleClassName:"text-xl font-semibold text-text-normal",description:"",isOpen:D,onClose:I,className:"h-auto w-[calc(100vw-2rem)] overflow-x-hidden overflow-y-visible sm:w-[583px] sm:max-w-[583px]",children:[(0,r.jsxs)(i.Zp,{className:"mx-auto w-full gap-3 border-none px-4 pt-2 pb-3 shadow-none sm:gap-4 sm:px-6 sm:pt-3",children:[(0,r.jsxs)(i.Wu,{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"text-text-normal h-[17px] text-sm font-semibold",children:"Nạp tiá»n bằng c\xe1ch chuyá»n khoản ng\xe2n h\xe0ng"}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("p",{className:"text-normal text-text-normal text-sm font-normal sm:h-[17px]",children:"*Vui l\xf2ng tạo QR thanh to\xe1n nháºn tiá»n sau 1-3 ph\xfat"}),(0,r.jsx)("p",{className:"text-normal text-text-normal text-sm font-normal sm:h-[17px]",children:"*Sai ná»i dung hoặc 10 ph\xfat kh\xf4ng l\xean tiá»n cần li\xean há» Äá» kiá»m tra"})]}),(0,r.jsx)(l.lV,{...Q,children:(0,r.jsx)("form",{onSubmit:Q.handleSubmit(J),className:"space-y-5",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-end",children:[(0,r.jsx)(l.zB,{name:"amount",render:e=>{let{field:t}=e,a=0===t.value||""===t.value||null==t.value?"":t.value;return(0,r.jsxs)(l.eI,{children:[(0,r.jsx)(l.MJ,{children:(0,r.jsx)(d.p,{step:1,type:"number",placeholder:"Nháºp sá» tiá»n",className:"border-border-divider h-12 [appearance:auto] gap-2 rounded-lg border-1 px-3 py-2.5",value:a,onChange:e=>t.onChange(e.target.value?+e.target.value:"")})}),(0,r.jsx)(l.C5,{})]})}}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(C.I,{...O.checkboxProps,className:"self-start whitespace-nowrap"}),(0,r.jsxs)(j.$,{className:"flex h-12 w-auto flex-row gap-2 rounded-lg px-4 py-2.5",size:"lg",disabled:Z,type:"submit",children:[(0,r.jsx)(w.F.QRIcon,{className:"text-sidebar-foreground !h-6 !w-6"}),(0,r.jsx)("p",{className:"text-sidebar-foreground text-sm font-semibold",children:"Tạo QR code Bank"})]})]})]})})}),(0,r.jsx)("span",{className:"text-notification-badge h-[30px] text-start text-[12px] leading-tight font-normal",children:"*Sá» dư trong t\xe0i khoản ÄÆ°á»£c sá» dụng Äá» mua c\xe1c dá»ch vụ tr\xean web, kh\xf4ng há» trợ ho\xe0n lại tiá»n tiá»n mặt hoặc chuyá»n khoản"})]})]}),(null==V?void 0:V.id)&&(0,r.jsx)(i.wL,{className:"mx-auto flex w-full flex-row rounded-lg shadow-[0_3px_4px_0_var(--shadow-deposit-modal)]",children:(0,r.jsxs)("div",{className:"flex w-full flex-col gap-4 sm:flex-row sm:gap-0",children:[(0,r.jsxs)("div",{className:"bg-info-qr-deposit flex flex-col gap-4 roun
1ded-lg px-4 py-4 sm:py-6",children:[(0,r.jsxs)("div",{className:"flex h-[50px] flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"Sá» tiá»n cần thanh to\xe1n"}),(0,r.jsxs)("span",{className:"text-primary text-2xl font-semibold",children:[o.A.formatNum(null!=(T=null==V?void 0:V.amount)?T:0),"Ä"]})]}),(0,r.jsxs)("div",{className:"flex h-[38px] flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"Ná»i dung chuyá»n khoản"}),(0,r.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:null==V?void 0:V.description})]}),(0,r.jsxs)("div",{className:"flex h-[38px] flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"Trạng th\xe1i"}),(0,r.jsx)("span",{className:"my-auto flex gap-1 text-sm font-semibold",children:(null==(a=V.status)?void 0:a.id)=="6"?(0,r.jsx)("span",{className:"text-success",children:"Ä\xe3 thanh to\xe1n"}):(null==(v=V.status)||v.id,(0,r.jsx)("span",{className:"text-error",children:"Chưa thanh to\xe1n"}))})]}),(0,r.jsx)("div",{className:"border-border-divider mx-auto w-full border-1 sm:max-w-[170px]"}),(0,r.jsxs)("div",{className:"flex h-[38px] flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"Sá» t\xe0i khoản"}),(0,r.jsx)("span",{className:"text-text-normal text-sm font-semibold",children:null!=(A=null==V?void 0:V.accountNumber)?A:"02897909245688"})]}),(0,r.jsxs)("div",{className:"flex h-[55px] flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"Ng\xe2n h\xe0ng"}),(0,r.jsx)("span",{className:"text-text-normal h-[34px] max-w-[200px] text-sm font-semibold",children:null!=(E=null==V?void 0:V.bankName)?E:"Ng\xe2n h\xe0ng TMCP Qu\xe2n Äá»i"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-normal",children:"T\xean chá»§ t\xe0i khoản"}),(0,r.jsx)("span",{className:"text-text-normal h-[17px] text-sm font-semibold",children:null==V?void 0:V.accountName})]})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 roun
1ded-lg bg-white p-6",children:[(0,r.jsx)(w.F.VietQRIcon,{className:"!h-9 !w-[111px]"}),(0,r.jsx)("div",{className:"h-50 w-50",children:(null==(y=V.status)?void 0:y.id)=="6"?(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-3",children:[(0,r.jsx)(m.default,{className:"m-auto object-contain",src:"/images/correct.png",alt:"",width:110,height:110}),(0,r.jsx)("p",{className:"text-center text-2xl font-bold text-green-600",children:"Thanh to\xe1n th\xe0nh c\xf4ng!"})]}):V.qrCode&&(0,r.jsxs)("div",{className:"relative flex size-full items-center justify-center rounded-[12px] border border-[#FF9500] bg-gradient-to-b from-[rgba(255,243,227,0.2)] to-[#FFF3E3] p-4",children:[(0,r.jsx)("span",{className:"pointer-events-none absolute -top-1 -left-1 size-6 rounded-tl-[8px] border-t-[3px] border-l-[3px] border-[#FF9500]"}),(0,r.jsx)("span",{className:"pointer-events-none absolute -top-1 -right-1 size-6 rounded-tr-[8px] border-t-[3px] border-r-[3px] border-[#FF9500]"}),(0,r.jsx)("span",{className:"pointer-events-none absolute -bottom-1 -left-1 size-6 rounded-bl-[8px] border-b-[3px] border-l-[3px] border-[#FF9500]"}),(0,r.jsx)("span",{className:"pointer-events-none absolute -right-1 -bottom-1 size-6 rounded-br-[8px] border-r-[3px] border-b-[3px] border-[#FF9500]"}),(0,r.jsx)(m.default,{className:"m-auto object-contain",src:V.qrCode,alt:"",width:300,height:300})]})}),(0,r.jsxs)("div",{className:"flex justify-center",children:[(0,r.jsx)(m.default,{className:"my-auto mr-6 h-fit w-[111px]",src:"/images/napas.png",alt:"",width:0,height:0,sizes:"100vw"}),(0,r.jsx)(_,{orientation:"vertical",className:"!h-auto w-[2px] bg-[#D0D4DD]"}),(0,r.jsx)(m.default,{className:"h-fit w-[111px]",src:"https://api.vietqr.io/img/".concat(null!=(M=null==(k=V.bankCode)?void 0:k.toUpperCase())?M:"MB",".png"),alt:null!=(B=null==V?void 0:V.bankName)?B:"MBBank",width:111,height:40,sizes:"100vw"})]})]})]})})]}),(0,r.jsx)(z.c,{...O.dialogProps})]})}},48064:(e,t,a)=>{a.d(t,{Fm:()=>u,Qs:()=>p,YP:()=>d,cj:()=>i,h:()=>c,qp:()=>x});var r=a(95155);a(12115);var s=a(89511),n=a(65229),o=a(64269);function i(e){let{...t}=e;return(0,r.jsx)(s.bL,{"data-slot":"sheet",...t})}function l(e){let{...t}=e;return(0,r.jsx)(s.ZL,{"data-slot":"sheet-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(s.hJ,{"data-slot":"sheet-overlay",className:(0,o.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed z-50 bg-black/50",t),...a})}function c(e){let{className:t,children:a,side:i="right",...c}=e;return(0,r.jsxs)(l,{children:[(0,r.jsx)(d,{}),(0,r.jsxs)(s.UC,{"data-slot":"sheet-content",className:(0,o.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===i&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===i&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===i&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===i&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...c,children:[a,(0,r.jsxs)(s.bm,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,r.jsx)(n.A,{className:"size-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"sheet-header",className:(0,o.cn)("flex flex-col gap-1.5 p-4",t),...a})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(s.hE,{"data-slot":"sheet-title",className:(0,o.cn)("text-foreground font-semibold",t),...a})}function p(e){let{className:t,...a}=e;
1return(0,r.jsx)(s.VY,{"data-slot":"sheet-description",className:(0,o.cn)("text-muted-foreground text-sm",t),...a})}},50832:(e,t,a)=>{a.d(t,{$:()=>l,r:()=>i});var r=a(95155);a(12115);var s=a(32467),n=a(83101),o=a(64269);let i=(0,n.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 l(e){let{className:t,variant:a,size:n,asChild:l=!1,...d}=e,c=l?s.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,o.cn)(i({variant:a,size:n,className:t})),...d})}},51042:(e,t,a)=>{a.d(t,{Wu:()=>i,Zp:()=>o,wL:()=>l});var r=a(95155),s=a(12115),n=a(64269);let o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("bg-card text-card-foreground relative flex w-full flex-col gap-4 roun
1ded-lg border-0 px-6",a),...s})});o.displayName="Card",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("",a),...s})}).displayName="CardHeader",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("leading-none font-semibold tracking-tight",a),...s})}).displayName="CardTitle",s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("text-muted-foreground text-sm",a),...s})}).displayName="CardDescription";let i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("",a),...s})});i.displayName="CardContent";let l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,className:(0,n.cn)("w-full",a),...s})});l.displayName="CardFooter"},61504:(e,t,a)=>{a.d(t,{Cf:()=>c,lG:()=>i});var r=a(95155);a(12115);var s=a(89511),n=a(65229),o=a(64269);function i(e){let{...t}=e;return(0,r.jsx)(s.bL,{"data-slot":"dialog",...t})}function l(e){let{...t}=e;return(0,r.jsx)(s.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(s.hJ,{"data-slot":"dialog-overlay",className:(0,o.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 c(e){let{className:t,children:a,showCloseButton:i=!0,title:c,titleClassName:p="",headerClassName:h="",description:m,...f}=e;return(0,r.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{}),(0,r.jsxs)(s.UC,{"data-slot":"dialog-content",className:(0,o.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] min-w-0 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),...f,children:[(0,r.jsxs)(u,{className:h,children:[(0,r.jsx)(x,{className:c?"text-text-normal-template-3 h-full align-middle text-[18px] leading-5 font-semibold ".concat(p," "):"hidden",children:c}),i&&(0,r.jsxs)(s.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-primary data-[state=open]:bg-accent data-[state=open]:text-muted-foreground rounded-xs 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",children:[(0,r.jsx)(n.A,{className:"!h-6 !w-6 text-neutral-900"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]}),a]})]})}function u(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("sticky top-0 z-50 flex h-12 w-auto flex-row items-center justify-between rounded-t-[24px] bg-[#F3EAE2] px-8 py-4 text-center sm:text-left",t),...a})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(s.hE,{"data-slot":"dialog-title",className:(0,o.cn)("text-normal text-base leading-none font-semibold",t),...a})}},80389:(e,t,a)=>{a.d(t,{c:()=>i});var r=a(95155);a(12115);var s=a(55817),n=a(31719),o=a(64269);function i(e){let{className:t,...a}=e;return(0,r.jsx)(s.bL,{children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(s.pd,{className:(0,o.cn)("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 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/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...a}),(0,r.jsx)(s.lM,{id:a.id+"btn-toggle",className:"absolute top-1/2 right-2 -translate-y-1/2 text-gray-500 hover:text-gray-700",children:(0,r.jsx)(s.In,{visible:(0,r.jsx)(n.N5q,{}),hidden:(0,r.jsx)(n.V$C,{})})})]})})}},81003:(e,t,a)=>{a.d(t,{q4:()=>m,Uj:()=>g,cL:()=>s.cL});var r=a(95155),s=a(82762),n=a(46767),o=a(64269),i=a(601),l=a(10951),d=a(25819),c=a(48064),u=a(12115);function x(e){let{width:t=24,height:a=24,className:s=""}=e;return(0,r.jsx)("svg",{width:t,height:a,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:s,children:(0,r.jsx)("path",{d:"M20 11.3572H8M8 11.3572L12.5 6.85718M8 11.3572L12.5 15.8572M5 3V21",stroke:"#8A92A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}var p=a(32467),h=a(83101);function m(e){let{className:t,...a}=e,{toggleSidebar:n,open:i}=(0,s.cL)();return(0,r.jsx)("button",{"data-sidebar":"collapse-trigger","data-slot":"sidebar-collapse-trigger","aria-label":"Thu gá»n thanh Äiá»u hưá»ng",tabIndex:0,onClick:n,title:"Thu gá»n thanh Äiá»u hưá»ng",className:(0,o.cn)("absolute top-[30px] left-[calc(100%+1px)] z-auto -ml-px","group-data-[collapsible=icon]:top-[30px]","2xl:top-[13px] 2xl:group-data-[collapsible=icon]:top-[13px]",t),...a,children:(0,r.jsx)("div",{className:(0,o.cn)("flex h-10 w-10 cursor-pointer items-center justify-center rounded-tr-[6px] rounded-br-[6px] border border-l-0 border-[#
1E2E5E5] bg-white p-2 shadow-[4px_4px_8px_0_rgba(0,0,0,0.08)] transition-all duration-200","group-data-[collapsible=icon]:h-10 group-data-[collapsible=icon]:w-10 group-data-[collapsible=icon]:rounded-tr-[6px] group-data-[collapsible=icon]:rounded-br-[6px] group-data-[collapsible=icon]:border group-data-[collapsible=icon]:border-l-0 group-data-[collapsible=icon]:bg-white group-data-[collapsible=icon]:p-2","2xl:h-[28px] 2xl:w-[28px] 2xl:p-0.5 2xl:group-data-[collapsible=icon]:h-[28px] 2xl:group-data-[collapsible=icon]:w-[28px] 2xl:group-data-[collapsible=icon]:p-0.5"),children:(0,r.jsx)(x,{className:(0,o.cn)("text-primary transition-transform duration-200",i?"":"rotate-180")})})})}u.forwardRef((e,t)=>{let{side:a="left",variant:n="sidebar",collapsible:l="offcanvas",className:d,children:u,...x}=e,{isMobile:p,state:h,openMobile:m,setOpenMobile:f}=(0,s.cL)(),{config:g}=(0,i.L)();return"none"===l?(0,r.jsx)("div",{className:(0,o.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",d),ref:t,...x,children:u}):p?(0,r.jsxs)(c.cj,{open:m,onOpenChange:f,...x,children:[(0,r.jsx)(c.YP,{className:"fixed top-[64px] right-0 bottom-0 left-0 bg-black/50"}),(0,r.jsxs)(c.h,{"data-sidebar":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground mt-16 h-full w-(--sidebar-width) overflow-y-auto p-0 shadow-[4px_4px_8px_0_rgba(0,0,0,0.04)] [&>button]:hidden",style:{"--sidebar-width":g.SIDEBAR_WIDTH_MOBILE},side:a,children:[(0,r.jsxs)(c.Fm,{className:"sr-only",children:[(0,r.jsx)(c.qp,{children:"Sidebar"}),(0,r.jsx)(c.Qs,{children:"Displays the mobile sidebar."})]}),(0,r.jsx)("div",{className:"flex w-full flex-col",children:u})]})]}):(0,r.jsxs)("div",{ref:t,className:"group peer text-sidebar-foreground hidden md:block","data-state":h,"data-collapsible":"collapsed"===h?l:"","data-variant":n,"data-side":a,children:[(0,r.jsx)("div",{className:(0,o.cn)("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===n||"inset"===n?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,r.jsx)("div",{className:(0,o.cn)("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===n||"inset"===n?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"outline-border outline group-data-[collapsible=icon]:w-(--sidebar-width-icon)",d),...x,children:(0,r.jsx)("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border relative sticky top-0 flex h-full w-full flex-col overflow-visible shadow-[4px_4px_8px_0_var(--shadow-sidebar)] group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",children:u})})]})}).displayName="Sidebar",u.forwardRef((e,t)=>{let{className:a,onClick:n,...i}=e,{toggleSidebar:c}=(0,s.cL)();return(0,r.jsxs)(d.$,{ref:t,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,o.cn)("h-5 w-5 hover:bg-transparent",a),onClick:e=>{null==n||n(e),c()},...i,children:[(0,r.jsx)(l.F.ArrowLeftRightIcon,{className:"text-sidebar-foreground !h-5 !w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"content",className:(0,o.cn)("flex min-h-0 flex-col overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...s})}).displayName="SidebarContent",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"group",className:(0,o.cn)("relative flex min-w-0 flex-col",a),...s})}).displayName="SidebarGroup",u.forwardRef((e,t)=>{let{className:a,asChild:s=!1,...n}=e,i=s?p.DX:"div";return(0,r.jsx)(i,{ref:t,"data-sidebar":"group-label",className:(0,o.cn)("text-sidebar-foreground
1/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear outline-none focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...n})}).displayName="SidebarGroupLabe",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"header",className:(0,o.cn)("flex h-16 w-full flex-col px-6 py-2",a),...s})}).displayName="SidebarHeader",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu",className:(0,o.cn)("flex w-full min-w-0 flex-col gap-3",a),...s})}).displayName="SidebarMenu",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("li",{ref:t,"data-sidebar":"menu-item",className:(0,o.cn)("group/menu-item relative flex h-full w-full flex-row justify-around",a),...s})}).displayName="SidebarMenuItem";let f=(0,h.F)("peer/menu-button flex p-3 rounded-lg items-center gap-2 overflow-hidden text-left text-sm outline-none text-[#152752] ring-sidebar-ring transition-[width,height,padding] hover:cursor-pointer hover:bg-none! hover:bg-sidebar-active-template-3! hover:text-primary! focus-visible:ring-2 active:bg-sidebar active:text-black disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-none! data-[active=true]:bg-sidebar-active-template-3! data-[active=true]:font-medium data-[active=true]:text-primary data-[state=open]:hover:bg-sidebar data-[state=open]:hover:text-black group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0",{variants:{variant:{default:"",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-gradient-to-r hover:from-sidebar-from hover:to-sidebar-to hover:text-primary hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),g=u.forwardRef((e,t)=>{let{asChild:a=!1,isActive:i=!1,variant:l="default",size:d="default",tooltip:c,className:u,...x}=e,h=a?p.DX:"button",{isMobile:m,state:g}=(0,s.cL)(),b=(0,r.jsx)(h,{ref:t,"data-sidebar":"menu-button","data-size":d,"data-active":i,className:(0,o.cn)(f({variant:l,size:d}),u),...x});return c?("string"==typeof c&&(c={children:c}),(0,r.jsxs)(n.m_,{children:[(0,r.jsx)(n.k$,{asChild:!0,children:b}),(0,r.jsx)(n.ZI,{side:"right",align:"center",hidden:"collapsed"!==g||m,...c})]})):b});g.displayName="SidebarMenuButton",u.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu-sub",className:(0,o.cn)("border-sidebar-border flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...s})}).displayName="SidebarMenuSub",u.forwardRef((e,t)=>{let{...a}=e;return(0,r.jsx)("li",{ref:t,...a})}).displayName="SidebarMenuSubItem"},86948:(e,t,a)=>{a.d(t,{BT:()=>l,Wu:()=>d,ZB:()=>i,Zp:()=>n,aR:()=>o,wL:()=>c});var r=a(95155);a(12115);var s=a(64269);function n(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",t),...a})}function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...a})}function d(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-4",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-footer",className:(0,s.cn)("flex items-center px-4 [.border-t]:pt-6",t),...a})}}}]);
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.