1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3085,17047],{3730:(e,t,a)=>{a.d(t,{Ke:()=>o,Nt:()=>s,R6:()=>i});var r=a(95155),n=a(57259);function s(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"collapsible",...t})}function i(e){let{...t}=e;return(0,r.jsx)(n.R6,{"data-slot":"collapsible-trigger",...t})}function o(e){let{...t}=e;return(0,r.jsx)(n.Ke,{"data-slot":"collapsible-content",...t})}},6259:(e,t,a)=>{a.d(t,{M5:()=>h,SQ:()=>d,_2:()=>c,lp:()=>u,lv:()=>p,mB:()=>x,nV:()=>m,rI:()=>o,ty:()=>l});var r=a(95155);a(12115);var n=a(47971),s=a(27937),i=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"dropdown-menu",...t})}function l(e){let{...t}=e;return(0,r.jsx)(n.l9,{"data-slot":"dropdown-menu-trigger",...t})}function d(e){let{className:t,sideOffset:a=4,...s}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{"data-slot":"dropdown-menu-content",sideOffset:a,className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...s})})}function c(e){let{className:t,inset:a,variant:s="default",...o}=e;return(0,r.jsx)(n.q7,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":s,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function u(e){let{className:t,inset:a,...s}=e;return(0,r.jsx)(n.JU,{"data-slot":"dropdown-menu-label","data-inset":a,className:(0,i.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...s})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(n.wv,{"data-slot":"dropdown-menu-separator",className:(0,i.cn)("bg-border -mx-1 my-1 h-px",t),...a})}function p(e){let{...t}=e;return(0,r.jsx)(n.Pb,{"data-slot":"dropdown-menu-sub",...t})}function m(e){let{className:t,inset:a,children:o,...l}=e;return(0,r.jsxs)(n.ZP,{"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:(0,i.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",t),...l,children:[o,(0,r.jsx)(s.A,{className:"ml-auto size-4"})]})}function h(e){let{className:t,...a}=e;return(0,r.jsx)(n.G5,{"data-slot":"dropdown-menu-sub-content",className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...a})}},14734:(e,t,a)=>{a.d(t,{F:()=>s});var r=a(12115),n=a(32140);function s(e){let{notifications:t,isConnected:a,clearNotifications:s,initSocket:i,disconnectSocket:o,emit:l}=(0,n.U)();(0,r.useEffect)(()=>{e&&i(e)},[e,i]);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)(()=>{o()},[o]),clearNotifications:(0,r.useCallback)(()=>s(),[s])}}},17763:(e,t,a)=>{a.d(t,{Wu:()=>o,Zp:()=>i});var r=a(95155),n=a(12115),s=a(64269);let i=n.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("border-none bg-card text-card-foreground relative flex w-full flex-col gap-4 rounded-lg px-6 pt-4 pb-6",a),...n})});i.displayName="Card",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("",a),...n})}).displayName="CardHeader",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",a),...n})}).displayName="CardTitle",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",a),...n})}).displayName="CardDescription";let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("",a),...n})});o.displayName="CardContent",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("w-full",a),...n})}).displayName="CardFooter"},20865:(e,t,a)=>{a.d(t,{CI:()=>c,IL:()=>l,Jv:()=>d,LN:()=>o,mD:()=>i});var r=a(96199),n=a(75746),s=a(69715);function i(){return window.location.host}function o(){let e="true"===sessionStorage.getItem("preview_mode")?new URLSearchParams(window.location.search).get("previewTemplate"):null;return e?"/?previewTemplate=".concat(e):"/"}function l(){return"true"===sessionStorage.getItem("preview_mode")}function d(e,t){return l()?(n.k.getState().setUser(s._o),Promise.resolve({code:null,error:null})):(0,r.Jv)(e,t)}function c(e){return l()?(n.k.getState().clearUser(),Promise.resolve(void 0)):(0,r.CI)(e)}},22493:(e,t,a)=>{a.d(t,{MQ:()=>c.a,pH:()=>w.a,qP:()=>k.a,uV:()=>i.a,z8:()=>N.a});var r=a(50408),n=a.n(r),s=a(39082),i=a.n(s),o=a(36397),l=a.n(o),d=a(32171),c=a.n(d),u=a(18642),x=a.n(u),p=a(93741),m=a.n(p),h=a(71526),f=a.n(h),g=a(57589),b=a.n(g),v=a(80070),w=a.n(v),j=a(62732),N=a.n(j),y=a(76568),k=a.n(y);(0,a(64269).cn)(n().variable,i().variable,l().variable,c().variable,x().variable,m().variable,f().variable,b().variable,w().variable,N().variable)},25819:(e,t,a)=>{a.d(t,{$:()=>l});var r=a(95155);a(12115);var n=a(32467),s=a(83101),i=a(64269);let o=(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 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:s,asChild:l=!1,...d}=e,c=l?n.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,i.cn)(o({variant:a,size:s,className:t})),...d})}},26333:(e,t,a)=>{a.d(t,{AM:()=>i,Wv:()=>o,dT:()=>d,hl:()=>l});var r=a(95155);a(12115);var n=a(82286),s=a(64269);function i(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"popover",...t})}function o(e){let{...t}=e;return(0,r.jsx)(n.l9,{"data-slot":"popover-trigger",...t})}function l(e){let{className:t,align:a="center",sideOffset:i=4,...o}=e;return(0,r.jsx)(n.ZL,{children:(0,r.jsx)(n.UC,{"data-slot":"popover-content",align:a,sideOffset:i,className:(0,s.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...o})})}function d(e){let{...t}=e;return(0,r.jsx)(n.Mz,{"data-slot":"popover-anchor",...t})}},33407:(e,t,a)=>{a.d(t,{a:()=>s});var r=a(95155),n=a(61504);let s=e=>{let{title:t,description:a,isOpen:s,onClose:i,children:o,className:l,titleClassName:d,headerClassName:c,showCloseButton:u=!0}=e;return(0,r.jsx)(n.lG,{open:s,onOpenChange:e=>{e||i()},children:(0,r.jsx)(n.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:o})})})}},35652:(e,t,a)=>{a.d(t,{E:()=>x,default:()=>u});var r=a(12115),n=a(20063),s=a(72378),i=a(13744),o=a(96199),l=a(20865);let d="__hp_utm",c=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];function u(){let e=(0,n.useSearchParams)(),{status:t}=(0,o.wV)();return(0,r.useEffect)(()=>{if("authenticated"===t)return;let a=e.get("utm_source"),r=e.get("utm_type"),n=s.A.get(d);if(a&&"mkt"===r&&!n){let t={};for(let a of c){let r=e.get(a);r&&(t[a]=r)}
1if(!t.utm_source)return;let a=window.location.pathname,r=a&&"/"!==a?"".concat(window.location.host).concat(a):window.location.host,n=(0,l.mD)();i.A.postApi("/api/v1/utms/utm-visit",{utmSource:t.utm_source,utmMedium:t.utm_medium,utmCampaign:t.utm_campaign,utmContent:t.utm_content,utmTerm:t.utm_term,domain:r,...n&&{domainSource:n}}).then(e=>{(null==e?void 0:e.valid)&&s.A.set(d,JSON.stringify(t),{expires:30,path:"/",sameSite:"lax"})}).catch(()=>{})}},[e,t]),null}function x(){s.A.remove(d,{path:"/"})}},48064:(e,t,a)=>{a.d(t,{Fm:()=>u,Qs:()=>p,YP:()=>d,cj:()=>o,h:()=>c,qp:()=>x});var r=a(95155);a(12115);var n=a(89511),s=a(65229),i=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"sheet",...t})}function l(e){let{...t}=e;return(0,r.jsx)(n.ZL,{"data-slot":"sheet-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(n.hJ,{"data-slot":"sheet-overlay",className:(0,i.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:o="right",...c}=e;return(0,r.jsxs)(l,{children:[(0,r.jsx)(d,{}),(0,r.jsxs)(n.UC,{"data-slot":"sheet-content",className:(0,i.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"===o&&"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"===o&&"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"===o&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===o&&"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)(n.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)(s.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,i.cn)("flex flex-col gap-1.5 p-4",t),...a})}function x(e){let{className:t,...a}=e;return(0,r.jsx)(n.hE,{"data-slot":"sheet-title",className:(0,i.cn)("text-foreground font-semibold",t),...a})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(n.VY,{"data-slot":"sheet-description",className:(0,i.cn)("text-muted-foreground text-sm",t),...a})}},50832:(e,t,a)=>{a.d(t,{$:()=>l,r:()=>o});var r=a(95155);a(12115);var n=a(32467),s=a(83101),i=a(64269);let o=(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 l(e){let{className:t,variant:a,size:s,asChild:l=!1,...d}=e,c=l?n.DX:"button";return(0,r.jsx)(c,{"data-slot":"button",className:(0,i.cn)(o({variant:a,size:s,className:t})),...d})}},61504:(e,t,a)=>{a.d(t,{Cf:()=>c,lG:()=>o});var r=a(95155);a(12115);var n=a(89511),s=a(65229),i=a(64269);function o(e){let{...t}=e;return(0,r.jsx)(n.bL,{"data-slot":"dialog",...t})}function l(e){let{...t}=e;return(0,r.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function d(e){let{className:t,...a}=e;return(0,r.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,i.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:o=!0,title:c,titleClassName:p="",headerClassName:m="",description:h,...f}=e;return(0,r.jsxs)(l,{"data-slot":"dialog-portal",children:[(0,r.jsx)(d,{}),(0,r.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,i.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:m,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}),o&&(0,r.jsxs)(n.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)(s.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,i.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)(n.hE,{"data-slot":"dialog-title",className:(0,i.cn)("text-normal text-base leading-none font-semibold",t),...a})}},66654:(e,t,a)=>{a.d(t,{$w:()=>i,KA:()=>s,fV:()=>l,rK:()=>o,tM:()=>d});var r=a(15653);let n=/^0[1-9]\d{8}$/,s=r.z.preprocess(e=>"string"==typeof e?e.trim().replace(/[^\d+]/g,"").replace(/^(\+?84)/,"0"):e,r.z.string().nonempty("Sá» Äiá»n thoại l\xe0 bắt buá»c").refine(e=>n.test(e),{message:"Sá» Äiá»n thoại kh\xf4ng hợp lá»"})),i=r.z.string().nonempty("Máºt khẩu l\xe0 bắt buá»c").regex(/^[a-zA-Z0-9@#$%^&*()_+!\-=.?]*$/,"Máºt khẩu chứa k\xfd tá»± kh\xf4ng hợp lá»").min(6,"Máºt khẩu tá»i thiá»u 6 k\xed tá»±");r.z.preprocess(e=>{if("string"!=typeof e)return e;let t=e.trim();return""===t?void 0:t},r.z.string().email("Email kh\xf4ng hợp lá»").optional().transform(e=>"string"==typeof e?e.toLowerCase():e));let o=r.z.preprocess(e=>"string"==typeof e?e.trim():e,r.z.string().nonempty("Email l\xe0 bắt buá»c").email("Email kh\xf4ng hợp lá»").transform(e=>e.toLowerCase())),l=r.z.string().min(1,"Há» l\xe0 bắt buá»c").max(50,"Tá»i Äa 50 k\xfd tá»±"),d=r.z.string().min(1,"T\xean l\xe0 bắt buá»c").max(50,"Tá»i Äa 50 k\xfd tá»±")},67558:(e,t,a)=>{a.d(t,{DM:()=>l,L3:()=>i,L5:()=>o,RP:()=>n,Tq:()=>c,aN:()=>r,x8:()=>d});let r="Sá» tiá»n trong v\xed cá»§a bạn",n="VND",s="\xa0".concat(n);function i(e){let t="string"==typeof e?parseFloat(e):e;
1return isNaN(t)?"0":Math.trunc(t).toLocaleString("vi-VN")}function o(e){return"".concat(i(e)).concat(s)}let l="block min-w-0 max-w-full truncate whitespace-nowrap tabular-nums";function d(e){let t=Math.abs(Number(null!=e?e:0));return Number.isFinite(t)&&0!==t?Math.floor(Math.log10(t))+1:1}function c(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"}}},77128:(e,t,a)=>{a.d(t,{h:()=>r});function r(e){return(e||"").split(":")[0].toLowerCase().trim(),!0}},77449:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ef});var r=a(95155),n=a(39180),s=a(3730),i=a(26333),o=a(82762),l=a(46767),d=a(64269),c=a(601),u=a(10951),x=a(25819),p=a(48064),m=a(32467),h=a(83101),f=a(12115);function g(e){let{className:t,...a}=e,{toggleSidebar:n,open:s}=(0,o.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,d.cn)("pointer-events-none absolute inset-y-0 right-0 z-20 w-0 border-0 bg-transparent p-0 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:border-transparent group-data-[collapsible=icon]:bg-transparent group-data-[collapsible=icon]:px-1 group-data-[collapsible=icon]:py-1 hover:cursor-pointer",t),...a,children:(0,r.jsx)("div",{className:"pointer-events-auto absolute top-1/2 right-0 flex translate-x-1/2 -translate-y-1/2 flex-col gap-2 drop-shadow-[0px_4px_3px_rgba(0,0,0,0.15)]",children:(0,r.jsxs)("svg",{className:"".concat(s?"top-50":"rotate-180"),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{width:"24",height:"24",rx:"8",transform:"matrix(0 -1 -1 0 24 24)",fill:"#DFF6FF"}),(0,r.jsx)("path",{d:"M8.6 12L14.6 18L16 16.6L11.4 12L16 7.4L14.6 6L8.6 12Z",fill:"#000E43"})]})})})}f.forwardRef((e,t)=>{let{side:a="left",variant:n="sidebar",collapsible:s="offcanvas",className:i,children:l,...u}=e,{isMobile:x,state:m,openMobile:h,setOpenMobile:f}=(0,o.cL)(),{config:g}=(0,c.L)();return"none"===s?(0,r.jsx)("div",{className:(0,d.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),ref:t,...u,children:l}):x?(0,r.jsxs)(p.cj,{open:h,onOpenChange:f,...u,children:[(0,r.jsx)(p.YP,{className:"fixed top-[var(--template-4-header-height,56px)] right-0 bottom-0 left-0 bg-black/50"}),(0,r.jsxs)(p.h,{"data-sidebar":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground top-[var(--template-4-header-height,56px)] h-[calc(100dvh-var(--template-4-header-height,56px))] 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)(p.Fm,{className:"sr-only",children:[(0,r.jsx)(p.qp,{children:"Sidebar"}),(0,r.jsx)(p.Qs,{children:"Displays the mobile sidebar."})]}),(0,r.jsx)("div",{className:"flex w-full flex-col",children:l})]})]}):(0,r.jsxs)("div",{ref:t,className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":"collapsed"===m?s:"","data-variant":n,"data-side":a,children:[(0,r.jsx)("div",{className:(0,d.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,d.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)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)",i),...u,children:(0,r.jsx)("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border sticky top-0 flex h-full min-h-0 w-full flex-col overflow-hidden 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:l})})]})}).displayName="Sidebar",f.forwardRef((e,t)=>
1{let{className:a,onClick:n,...s}=e,{toggleSidebar:i}=(0,o.cL)();return(0,r.jsxs)(x.$,{ref:t,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,d.cn)("h-5 w-5 hover:bg-transparent",a),onClick:e=>{null==n||n(e),i()},...s,children:[(0,r.jsx)(u.F.ArrowLeftRightIcon,{className:"text-sidebar-foreground !h-5 !w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger",f.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"content",className:(0,d.cn)("flex min-h-0 flex-1 flex-col overflow-x-hidden overflow-y-auto group-data-[collapsible=icon]:overflow-hidden",a),...n})}).displayName="SidebarContent",f.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"group",className:(0,d.cn)("relative flex min-w-0 flex-col",a),...n})}).displayName="SidebarGroup",f.forwardRef((e,t)=>{let{className:a,asChild:n=!1,...s}=e,i=n?m.DX:"div";return(0,r.jsx)(i,{ref:t,"data-sidebar":"group-label",className:(0,d.cn)("text-sidebar-foreground/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),...s})}).displayName="SidebarGroupLabe",f.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,"data-sidebar":"header",className:(0,d.cn)("flex w-full min-w-0 shrink-0 flex-col px-2 py-2 md:px-3",a),...n})}).displayName="SidebarHeader",f.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu",className:(0,d.cn)("flex w-full min-w-0 flex-col gap-3",a),...n})}).displayName="SidebarMenu";let b=f.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("li",{ref:t,"data-sidebar":"menu-item",className:(0,d.cn)("group/menu-item relative group-data-[collapsible=icon]:flex group-data-[collapsible=icon]:justify-center",a),...n})});b.displayName="SidebarMenuItem";let v=(0,h.F)("peer/menu-button flex p-3 rounded-[4px] 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-primary-hover hover:text-primary focus-visible:ring-2 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-gradient-to-r data-[active=true]:from-sidebar-from data-[active=true]:via-sidebar-from/10 data-[active=true]:to-sidebar-to 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-[48px] group-data-[collapsible=icon]:!p-[12px] group-data-[collapsible=icon]:justify-center [&>svg]:size-5 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-gradient-to-r hover:from-sidebar-from hover:via-sidebar-from/10 hover:to-sidebar-to hover:text-primary",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"}},defaultVariants:{variant:"default",size:"default"}}),w=f.forwardRef((e,t)=>{let{asChild:a=!1,isActive:n=!1,variant:s="default",size:i="default",tooltip:c,className:u,...x}=e,p=a?m.DX:"button",{isMobile:h,state:f}=(0,o.cL)(),g=(0,r.jsx)(p,{ref:t,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:(0,d.cn)(v({variant:s,size:i}),u),...x});return c?("string"==typeof c&&(c={children:c}),(0,r.jsxs)(l.m_,{children:[(0,r.jsx)(l.k$,{asChild:!0,children:g}),(0,r.jsx)(l.ZI,{side:"right",align:"center",hidden:"collapsed"!==f||h,...c})]})):g});function j(e){let{asChild:t=!1,size:a="md",isActive:n=!1,className:s,...i}=e,o=t?m.DX:"a";return(0,r.jsx)(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":a,"data-active":n,className:(0,d.cn)("text-primary ring-sidebar-ring hover:from-sidebar-from hover:to-sidebar-to hover:text-primary [&>svg]:text-primary flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden hover:bg-gradient-to-r focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:text-primary data-[active=true]:bg-none","sm"===a&&"text-xs","md"===a&&"text-sm","group-data-[collapsible=icon]:hidden",s),...i})}w.displayName="SidebarMenuButton",f.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,r.jsx)("ul",{ref:t,"data-sidebar":"menu-sub",className:(0,d.cn)("border-sidebar-border mx-0 flex min-w-0 translate-x-px flex-col gap-0.5 border-l px-0 py-0.5","group-data-[collapsible=icon]:hidden",a),...n})}).displayName="SidebarMenuSub",f.forwardRef((e,t)=>{let{...a}=e;return(0,r.jsx)("li",{ref:t,...a})}).displayName="SidebarMenuSubItem";let N=[{title:"Tạo má»i Proxy",url:"/tao-moi-proxy",icon:"PlusIcon",isActive:!0,shortcut:["t","p"],items:[{title:"Proxy tÄ©nh Viettel",url:"/proxy-tinh?provider=VIETTEL",icon:"ViettelIcon",shortcut:["p","v"]},{title:"Proxy tÄ©nh FPT",url:"/proxy-tinh?provider=FPT",icon:"FPTIcon",shortcut:["p","f"]},{title:"Proxy tÄ©nh VNPT",url:"/proxy-tinh?provider=VNPT",icon:"VNPTIcon",shortcut:["p","n"]},{title:"Datacenter US",url:"/proxy-datacenter",icon:"USproxy",shortcut:["p","n"]},{title:"Datacenter VN",url:"/proxy-datacenter-vn",icon:"VietNamIcon",shortcut:["d","v"]},{title:"Proxy xoay",url:"/proxy-xoay",icon:"RotateProxyIcon",shortcut:["p","x"]},{title:"Key xoay",url:"/key-xoay?type=keys-xoay",icon:"KeyRotateIcon",shortcut:["d","x"]}]},{title:"G\xf3i combo",url:"/combo-proxy",icon:"ComboIcon",isActive:!0,shortcut:["t","p"],items:[{title:"Combo proxy tÄ©nh",url:"/combo-proxy?type=combo-tinh",icon:"StaticComboIcon",shortcut:["p","v"]},{title:"Combo datacenter US",url:"/combo-proxy?type=combo-datacenter-us",icon:"USproxy",shortcut:["p","n"]},{title:"Combo datacenter VN",url:"/combo-proxy?type=combo-datacenter-vn",icon:"VietNamIcon",shortcut:["p","f"]}]},{title:"ÄÆ¡n h\xe0ng",url:"/quan-ly-don-hang",icon:"MenuIcon",shortcut:["q","d"],isActive:!1,items:[{title:"Proxy tÄ©nh Viettel",url:"/proxies?filter=ipaddress.provider:$eq:string:VIETTEL",icon:"ViettelIcon",shortcut:["d","v"]},{title:"Proxy tÄ©nh FPT",url:"/proxies?filter=ipaddress.provider:$eq:string:FPT",icon:"FPTIcon",shortcut:["d","f"]},{title:"Proxy tÄ©nh VNPT",url:"/proxies?filter=ipaddress.provider:$eq:string:VNPT",icon:"VNPTIcon",shortcut:["d","n"]},{title:"Proxy Datacenter US",url:"/proxies-datacenter",icon:"USproxy",shortcut:["d","n"]},{title:"Proxy Datacenter VN",url:"/proxies-datacenter-vn",icon:"VietNamIcon",shortcut:["d","v"]},{title:"Proxy xoay",url:"/proxies-xoay",icon:"RotateProxyIcon",shortcut:["d","x"]},{title:"Key xoay",url:"/keys-xoay?type=keys-xoay",icon:"KeyRotateIcon",shortcut:["d","x"]}]},{title:"Lá»ch sá»",url:"/lich-su",icon:"HistoryIcon",shortcut:["l","s"],isActive:!1,items:[{title:"Lá»ch sá» mua h\xe0ng",url:"/don-hang",icon:"CartIcon",shortcut:["l","m"]},{title:"Lá»ch sá» giao dá»ch",url:"/lich-su",icon:"TransactionHistoryIcon",shortcut:["l","g"]},{title:"Lá»ch sá» Äá»i Proxy",url:"/lich-su-doi-proxy",icon:"IpChangeLogIcon",shortcut:["l","d"]}]},{title:"Tool Proxy",url:"/tool-proxy",icon:"ToolProxyIcon",shortcut:["t","t"],isActive:!1,items:[]},{title:"Chương tr\xecnh Affiliate",url:"/affiliates",icon:"AffiliateIcon",isActive:!1,shortcut:["a","l"]},{title:"Hưá»ng dẫn",url:"/huong-dan",icon:"GuideIcon",shortcut:["h","d"],isActive:!1,items:[]},{title:"Blog",url:"/blogs",icon:"BlogIcon",shortcut:["g","g"],isActive:!1,items:[]},{title:"T\xe0i liá»u API",url:"/tai-lieu-api",icon:"ApiDocumentIcon",isActive:!1,shortcut:["t","a"],items:[{title:"X\xe1c thá»±c API",url:"/tai-lieu-api?tab=api-authentication",icon:"ApiTokenIcon",shortcut:["l","m"]},{title:"Trung t\xe2m proxy",url:"/tai-lieu-api?tab=proxy-center",icon:"ProxyCenterIcon",shortcut:["l","g"]}]},{title:"Há» trợ",url:"/ho-tro",icon:"SupportIcon",shortcut:["h","t"],isActive:!1,items:[]}];var y=a(75746),k=a(13744),C=a(76830),F=a(95585),_=a(96199),I=a(15239),A=a(52619),S=a.n(A),z=a(20063),T=a(86948),E=a(41052),L=a(65142),P=a(66942),V=a(22544),R=a(15653),M=a(18720),B=a(61362),H=a(52056),D=a(67558),U=a(60919),W=a(33407),q=a(50832),$=a(14734),O=a(72264),Z=a(22493),K=a(9379),J=a(79724),G=a(74022),Q=a(92666);let X={isNumber:"Sá» tiá»n phải l\xe0 sá»",notFound:"Sá» Äiá»n thoại kh\xf4ng tá»n tại"};function Y(e){var t,a,s,i,o,l,d,c,u,x,p,m,h,g,b,v,w,j,N,C;let{open:F,onClose:A}=e,S=(0,n.r)(e=>e.config),[z,Y]=(0,f.useState)({}),[ee,et]=(0,f.useState)(null),ea=(0,n.r)(e=>e.config),er=Math.max(1e3,Number(null!=(h=null==ea||null==(t=ea.setting)?void 0:t.minDeposit)?h:1e3)),en=(0,f.useMemo)(()=>R.z.object({amount:R.z.union([R.z.string(),R.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>=er,{message:"Sá» tiá»n phải ⥠".concat(k.A.formatNum2(er),"Ä")})}),[er]),es=(0,V.mN)({resolver:(0,P.u)(en),values:{amount:""}}),{formState:{isSubmitting:ei}}=es,{data:eo,status:el}=(0,_.wV)(),ed=(0,G.a)(),ec=(0,y.k)(e=>e.updateCoin),eu=(0,y.k)(e=>e.user),{notifications:ex,disconnect:ep,emit:em,isConnected:eh}=(0,$.F)(null==eo||null==(a=eo.user)?void 0:a.accessToken);async function ef(e){var t,a,n,s,i;try{if(e.amount<er)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(k.A.formatNum2(er),"Ä"),duration:5e3});let a=await ed.withBuyer(e);if(!a)return;let n=await k.A.postApi("/api/v1/transactions",a,null==eo||null==(t=eo.user)?void 0:t.accessToken,{headers:(0,Q.v)()});Y(n),M.toast.success("Tạo giao dá»ch th\xe0nh c\xf4ng",{duration:5e3,icon:(0,r.jsx)(B.A,{className:"h-4 w-4 text-green-600"})})}catch(e){if(e instanceof U.pe){let t=null==(a=e.response)?void 0:a.data;if(null==t?void 0:t.message)M.toast.error("Tạo giao dá»ch thất bại",{description:null!=(n=null==X?void 0:X[t.message])?n:t.message,duration:5e3,icon:(0,r.jsx)(H.A,{className:"h-4 w-4 text-red-500"})});else if(null==t?void 0:t.errors){if((0,G.S)(t.errors))return;(null==(s=t.errors)?void 0:s.user)?M.toast.error("Tạo giao dá»ch thất bại",{description:null!=(i=null==X?void 0:X[t.errors.user])?i:t.errors.user,duration:5e3,icon:(0,r.jsx)(H.A,{className:"h-4 w-4 text-red-500"})}):k.A.handleFormErrorFromResponse(es,t.errors,X)}}else M.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)(H.A,{className:"h-4 w-4 text-red-500"})})}}return((0,f.useEffect)(()=>{if(F)return()=>{Y({}),ep()}},[F]),(0,f.useEffect)(()=>{eh&&em("register")},[eh]),(0,f.useEffect)(()=>{let e=ex.find(e=>e.id==z.id);if(e){var t;Y({...z,...e}),M.toast.success("Thanh to\xe1n th\xe0nh c\xf4ng",{duration:5e3,icon:(0,r.jsx)(B.A,{className:"h-4 w-4 text-green-600"})}),(null==eu||null==(t=eu.role)?void 0:t.id)=="3"&&ec(Number(e.amount))}},[ex]),"unauthenticated"!==el&&eo)?(0,r.jsxs)(W.a,{title:(null==z?void 0:z.id)?"Thanh to\xe1n":"Nạp tiá»n",description:"",isOpen:F,onClose:A,className:"max-h-[90vh] w-[95vw] overflow-y-auto sm:!max-w-[749px] lg:max-h-[698px] lg:w-full",headerClassName:"bg-gradient-to-r from-[var(--from-modal-payment)] to-[var(--to-modal-payment)] px-10",children:[(0,r.jsxs)(T.Zp,{className:"mx-auto gap-14 rounded-b-[24px] border-none py-0 shadow-none",children:[(0,r.jsxs)(T.Wu,{className:"flex flex-col gap-12 px-10 pt-8",children:[(0,r.jsx)(E.lV,{...es,children:(0,r.jsxs)("form",{onSubmit:es.handleSubmit(ef),className:"flex flex-col gap-[28px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-6 md:gap-2",children:[(0,r.jsxs)("div",{className:(null==z?void 0:z.id)?"relative flex flex-col items-start gap-3 md:flex-row md:items-end md:gap-6":"",children:[(0,r.jsx)(E.zB,{name:"amount",render:e=>{let{field:t}=e;return(0,r.jsxs)(E.eI,{className:"w-full gap-1 ".concat((null==z?void 0:z.id)?"max-w-[405px]":"max-w-[442px]"),children:[(0,r.jsx)(E.lR,{className:"text-text-normal-template-3 text-[16px] leading-[22px] font-medium tracking-[0]",children:"Sá» tiá»n muá»n nạp"}),(0,r.jsx)(E.MJ,{children:(0,r.jsx)(L.p,{step:1,type:"number",min:0,placeholder:"Tá»i thiá»u l\xe0 ".concat(k.A.formatNum2(er)," VNÄ"),className:"no-spinner text-text-normal-template-3 border-border-template-3 h-[48px] items-center gap-[10px] rounded-[8px] border p-[10px] text-sm font-normal",...t,onChange:e=>t.onChange(e.target.value?+e.target.value:"")})}),(0,r.jsx)(E.C5,{})]})}}),(null==z?void 0:z.id)&&(0,r.jsx)(q.$,{className:"bg-primary hover:bg-primary/90 text-background flex h-12 w-full max-w-[240px] items-center justify-center gap-4 roun
1ded-[100px] text-[16px] font-bold md:absolute md:top-6 md:right-0 ".concat(Z.pH.className),disabled:ei,type:"submit",children:"Tạo QR chuyá»n tiá»n"}),!(null==z?void 0:z.id)&&(null==S||null==(s=S.setting)?void 0:s.depositBonus)&&0===S.setting.depositBonus.length&&(0,r.jsx)(q.$,{className:"bg-primary hover:bg-primary/90 text-background mt-4 flex h-12 w-full max-w-[220px] items-center justify-center gap-4 rounded-[100px] text-[16px] font-bold md:absolute md:top-28 md:right-4 md:mt-0 ".concat(Z.pH.className),disabled:ei,type:"submit",children:"Tạo QR chuyá»n tiá»n"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-3 sm:flex-row",children:[(0,r.jsxs)("span",{className:"text-[16px] leading-[22px] font-medium text-[#007AFF]",children:["Sá» dư hiá»n tại:"," ",(0,D.L5)(Number(null!=(g=null==eu?void 0:eu.coin)?g:0)+(null!=(v=null!=(b=null==eu||null==(i=eu.merchant)?void 0:i.promotionAmountRemaining)?b:null==eu||null==(o=eu.merchant)?void 0:o.amountRemaining)?v:0))]}),(0===Number(null==eu?void 0:eu.coin)||!(null==eu?void 0:eu.coin))&&(0,r.jsx)("span",{className:"text-primary text-[16px] leading-[22px] font-bold underline",children:"Nạp tiá»n ngay"})]})]}),!(null==z?void 0:z.id)&&(null==S||null==(l=S.setting)?void 0:l.depositBonus)&&S.setting.depositBonus.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-[16px]",children:[(0,r.jsx)("div",{className:"h-[1px] flex-1 bg-[#e5e5ea]"}),(0,r.jsx)("span",{className:"text-sm font-normal text-[#495061]",children:"Hoặc nạp tiá»n vá»i"}),(0,r.jsx)("div",{className:"h-[1px] flex-1 bg-[#e5e5ea]"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"text-text-normal-template-3 text-[16px] leading-[22px] font-medium tracking-[0]",children:"Nạp nhanh vá»i nhiá»u ưu Ä\xe3i"}),(0,r.jsx)("div",{className:"grid grid-cols-1 gap-[24px] sm:grid-cols-2 lg:grid-cols-3",children:null==S||null==(d=S.setting)?void 0:d.depositBonus.map(e=>{let t;return(0,r.jsxs)(q.$,{type:"button",onClick:()=>{var t;return t=e.min,void(es.setValue("amount",t),et(t))},className:"hover:bg-background relative flex min-h-[60px] w-full cursor-pointer flex-col items-start justify-center gap-[10px] rounded-[12px] bg-white px-3 py-2 transition-all sm:max-w-[207px] ".concat(ee===e.min?"shadow-[0_0_0_2px_#007AFF]":"shadow-[0_0_0_1px_#E5E5EA] hover:shadow-[0_0_0_2px_#007AFF]"),children:[(0,r.jsxs)("div",{className:"text-[12px] leading-[16px] font-normal tracking-[0px] text-[#3C3C43]/60",children:["Nạp từ ",k.A.formatNum2(e.min),"Ä"]}),(0,r.jsxs)("div",{className:"text-[16px] leading-[22px] font-semibold tracking-[0%] text-[#007AFF]",children:["Tặng ",(t=e.min*e.rate,new Intl.NumberFormat("vi-VN",{style:"currency",currency:"VND"}).format(t).replace(/\s?â«/g,"Ä").trim())]}),(0,r.jsx)("div",{className:"absolute top-0 right-0 flex h-[26px] min-w-[49px] items-center justify-center rounded-tr-[8px] rounded-bl-[16px] bg-[#007AFF] px-[5px]",children:(0,r.jsxs)("span",{className:"text-[12px] leading-[16px] font-medium tracking-[0px] text-white",children:["+",100*e.rate,"%"]})})]},e.min)})})]})]}),!(null==z?void 0:z.id)&&(null==S||null==(c=S.setting)?void 0:c.depositBonus)&&S.setting.depositBonus.length>0&&(0,r.jsx)(q.$,{className:"bg-primary hover:bg-primary/90 text-background mx-auto mt-8 flex h-14 w-full items-center justify-center gap-4 roun
1ded-[100px] text-[16px] font-bold sm:max-w-[496px] ".concat(Z.pH.className),disabled:ei,type:"submit",children:"Tạo QR chuyá»n tiá»n"}),(0,r.jsx)(J.I,{...ed.checkboxProps})]})}),(null==z?void 0:z.id)&&(0,r.jsxs)("div",{className:"flex w-full flex-col gap-8 md:flex-row",children:[(0,r.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center gap-4",children:(0,r.jsx)("div",{className:"relative",children:(0,r.jsxs)("div",{className:"relative flex h-[280.34px] w-[265.76px] items-center justify-center bg-white",children:[(0,r.jsx)("div",{className:"bg-background absolute top-0 z-10 h-[58.73px] w-[126.53px] gap-[8.01px] rounded-[12.81px] border-[2.4px] border-[#066765] bg-[#FFFFFF] p-[8.01px]",children:(0,r.jsx)(I.default,{src:"https://api.vietqr.io/img/".concat(null!=(w=null==(u=z.bankCode)?void 0:u.toUpperCase())?w:"MB",".png"),alt:null!=(j=null==z?void 0:z.bankName)?j:"MBBank",width:115,height:40,className:"h-auto w-[115px] object-contain"})}),(0,r.jsx)("div",{className:"absolute h-[8.23px] w-[15.8px] rounded-[15.55px] bg-[#11CECA]",style:{to
1p:"164.08px",left:0}}),(0,r.jsx)("div",{className:"absolute h-[8.23px] w-[15.8px] rounded-[15.55px] bg-[#11CECA]",style:{top:"164.08px",left:"249.96px"}}),(0,r.jsx)("svg",{className:"absolute left-0 !h-[43.92px] !w-[43.92px] overflow-hidden",style:{top:"25.62px"},viewBox:"0 0 53 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M48.0349 4.11719H13.7676C8.43781 4.11719 4.11719 8.43781 4.11719 13.7676V48.0349",stroke:"#11CECA",strokeWidth:"8.2346",strokeLinecap:"round"})}),(0,r.jsx)("svg",{className:"absolute right-0 !h-[43.92px] !w-[43.92px] overflow-hidden",style:{top:"25.62px"},viewBox:"0 0 53 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M4.11743 4.11719H38.3848C43.7145 4.11719 48.0352 8.43781 48.0352 13.7676V48.0349",stroke:"#11CECA",strokeWidth:"8.2346",strokeLinecap:"round"})}),(0,r.jsx)("svg",{className:"absolute left-0 !h-[43.92px] !w-[43.92px] overflow-hidden",style:{bottom:"0px"},viewBox:"0 0 53 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M48.0349 48.0352H13.7676C8.43781 48.0352 4.11719 43.7145 4.11719 38.3848V4.11743",stroke:"#11CECA",strokeWidth:"8.2346",strokeLinecap:"round"})}),(0,r.jsx)("svg",{className:"absolute right-0 !h-[43.92px] !w-[43.92px] overflow-hidden",style:{bottom:"0px"},viewBox:"0 0 53 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M4.11743 48.0352H38.3848C43.7145 48.0352 48.0352 43.7145 48.0352 38.3848V4.11743",stroke:"#11CECA",strokeWidth:"8.2346",strokeLinecap:"round"})}),(null==(x=z.status)?void 0:x.id)=="6"?(0,r.jsxs)("div",{className:"absolute flex flex-col items-center justify-center gap-3",style:{top:"47.07px",left:"26.97px"},children:[(0,r.jsx)(I.default,{className:"object-contain",src:"/images/correct.png",alt:"",width:211.81,height:211.81}),(0,r.jsx)("p",{className:"text-center text-2xl font-bold text-green-600",children:"Thanh to\xe1n th\xe0nh c\xf4ng!"})]}):z.qrCode&&(0,r.jsx)(I.default,{className:"absolute object-contain",style:{to
1p:"47.07px",left:"26.97px"},src:z.qrCode,alt:"",width:211.81,height:211.81})]})})}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-[19px]",children:[(0,r.jsxs)("div",{className:"flex h-[46px] w-full items-center justify-between gap-[17px] rounded-[8px] border-b border-[#FF9500] bg-[#FEF9F0] px-[12px]",children:[(0,r.jsx)("span",{className:"text-sm text-[#3C3C43]/60",children:"Sá» t\xe0i khoản"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base font-semibold text-[#1C1C1E]",children:null!=(N=null==z?void 0:z.accountNumber)?N:"02897909245688"}),(0,r.jsx)(q.$,{variant:"ghost",size:"icon",onClick:()=>{var e;navigator.clipboard.writeText(null!=(e=null==z?void 0:z.accountNumber)?e:"02897909245688"),M.toast.success("Ä\xe3 copy sá» t\xe0i khoản")},className:"h-5 w-5 text-[#8E8E93] hover:bg-transparent hover:text-[#3C3C43]",children:(0,r.jsx)(O.F.CopyIcon,{className:"h-5 w-5"})})]})]}),(0,r.jsxs)("div",{className:"flex h-[46px] w-full items-center justify-between gap-[17px] rounded-[8px] border-b border-[#FF9500] bg-[#FEF9F0] px-[12px]",children:[(0,r.jsx)("span",{className:"text-sm text-[#3C3C43]/60",children:"Chá»§ t\xe0i khoản"}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-base font-semibold text-[#1C1C1E]",children:null==z?void 0:z.accountName}),(0,r.jsx)(q.$,{variant:"ghost",size:"icon",onClick:()=>{var e;navigator.clipboard.writeText(null!=(e=null==z?void 0:z.accountName)?e:""),M.toast.success("Ä\xe3 copy chá»§ t\xe0i khoản")},className:"h-5 w-5 text-[#8E8E93] hover:bg-transparent hover:text-[#3C3C43]",children:(0,r.jsx)(O.F.CopyIcon,{className:"h-5 w-5"})})]})]}),(0,r.jsxs)("div",{className:"flex h-[46px] w-full items-center justify-between gap-[17px] rounded-[8px] border-b border-[#FF9500] bg-[#FEF9F0] px-[12px]",children:[(0,r.jsx)("span",{className:"text-sm text-[#3C3C43]/60",children:"Sá» tiá»n thanh to\xe1n"}),(0,r.jsx)("span",{className:"text-base font-semibold text-[#1C1C1E]",children:k.A.formatNum2(null!=(C=null==z?void 0:z.amount)?C:0)})]}),(0,r.jsxs)("div",{className:"flex h-[46px] w-full items-center justify-between gap-[17px] rounded-[8px] border-b border-[#FF9500] bg-[#FEF9F0] px-[12px]",children:[(0,r.jsx)("span",{className:"text-sm text-[#3C3C43]/60",children:"Ná»i dung chuyá»n khoản"}),(0,r.jsx)("div",{className:"flex items-center gap-2",children:(0,r.jsx)("span",{className:"text-base font-semibold text-[#1C1C1E]",children:null==z?void 0:z.description})})]}),(0,r.jsxs)("div",{className:"flex h-[46px] w-full items-center justify-between gap-[17px] rounded-[8px] border-b border-[#FF9500] bg-[#FEF9F0] px-[12px]",children:[(0,r.jsx)("span",{className:"text-sm text-[#3C3C43]/60",children:"Trạng th\xe1i"}),(0,r.jsx)("span",{className:"flex items-center gap-1 text-base font-semibold text-[#1C1C1E]",children:(null==(p=z.status)?void 0:p.id)=="6"?"Ä\xe3 thanh to\xe1n":(null==(m=z.status)?void 0:m.id)=="7"?"Ä\xe3 huá»·":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O.F.LoadingIcon,{className:"h-6 w-6 animate-spin text-[#FF9500]"})," ","Chưa thanh to\xe1n"]})})]})]})]})]}),(0,r.jsx)(T.wL,{className:"flex justify-center px-8 pb-4",children:(null==z?void 0:z.id)?(0,r.jsxs)("div",{className:"flex w-full items-center gap-[10px] rounded-[10px] bg-[#FBF5EE] p-[10px] md:w-[610px]",children:[(0,r.jsx)(O.F.ICircleIcon,{className:"shrink-0 text-[#91601C]",style:{width:"24px",height:"24px"}}),(0,r.jsx)("span",{className:"text-[12px] leading-[16px] font-normal text-[#91601C]",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.jsxs)("div",{className:"flex w-full items-center gap-[10px] rounded-[10px] bg-[#FBF5EE] p-[10px] md:w-[610px]",children:[(0,r.jsx)(O.F.ICircleIcon,{className:"shrink-0 text-[#91601C]",style:{width:"24px",height:"24px"}}),(0,r.jsx)("span",{className:"text-[12px] leading-[20px] font-normal text-[#91601C]",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 t
1iá»n tiá»n mặt hoặc chuyá»n khoản"})]})})]}),(0,r.jsx)(K.c,{...ed.dialogProps})]}):null}var ee=a(60249),et=a(57913),ea=a(17763);function er(e){var t,a,n,s;let{user:i,type:o="default"}=e,[l,c]=f.useState(!1),[u,x]=f.useState(!1),p=i?Number(i.coin)+(null!=(s=null!=(n=null==(t=i.merchant)?void 0:t.promotionAmountRemaining)?n:null==(a=i.merchant)?void 0:a.amountRemaining)?s:0):0;return(f.useEffect(()=>{i&&c(!1)},[i]),"default"!==o||i)?"mobile"===o?(0,r.jsxs)("div",{suppressHydrationWarning:!0,children:[(0,r.jsx)(et.$,{onClick:()=>{(null==i?void 0:i.id)?x(!0):c(!0)},variant:"ghost",size:"icon",className:"hover:bg-accent flex h-10 w-10 items-center justify-center rounded-md"}),l&&(0,r.jsx)(ee.A,{onCallBack:()=>c(!1)}),u&&(0,r.jsx)(Y,{open:u,onClose:()=>x(!1)})]}):(0,r.jsxs)("div",{className:"my-8 overflow-x-hidden",children:[(0,r.jsx)(ea.Zp,{className:"bg-sidebar-foreground rounded-2xl border-none p-3 shadow-none group-data-[collapsible=icon]:hidden",children:(0,r.jsx)(ea.Wu,{children:(0,r.jsx)("div",{className:"",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-auto items-center gap-10 overflow-hidden whitespace-nowrap",children:[(0,r.jsx)("p",{className:"text-sidebar text-sm leading-[21px] font-normal",children:"V\xed tiá»n cá»§a bạn"}),(0,r.jsx)("p",{className:"text-sidebar text-[20px] leading-[30px] font-semibold whitespace-nowrap",title:(0,D.L5)(p),children:(0,D.L5)(p)})]}),i?(0,r.jsx)(S(),{href:"/nap-tien",className:(0,d.cn)((0,et.r)({variant:"default"}),"text-sidebar-foreground bg-sidebar mt-4 h-10 w-full rounded-full text-base font-semibold group-data-[collapsible=icon]:hidden hover:brightness-110"),children:"Nạp tiá»n"}):(0,r.jsx)(et.$,{onClick:()=>c(!0),className:"text-sidebar-foreground bg-sidebar mt-4 h-10 w-full rounded-full text-base font-semibold group-data-[collapsible=icon]:hidden hover:brightness-110",size:"lg",children:"ÄÄng nháºp"})]})})})}),l&&(0,r.jsx)(ee.A,{onCallBack:()=>c(!1)}),u&&(0,r.jsx)(Y,{open:u,onClose:()=>x(!1)})]}):null}var en=a(3998),es=a(6259);function ei(e){let{className:t,showInfo:a=!1,user:n}=e;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:t,children:(0,r.jsx)("div",{className:"rounded-full flex items-center justify-center w-7 h-7 bg-primary",children:(0,r.jsx)(O.F.UserIcon,{className:"text-white"})})}),a&&(0,r.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,r.jsx)("span",{className:"truncate font-semibold",children:(null==n?void 0:n.firstName)||""}),(0,r.jsx)("span",{className:"truncate text-xs",children:(null==n?void 0:n.phone)||""})]})]})}var eo=a(85501),el=a(58255),ed=a(20865);function ec(){var e;let t=(0,y.k)(e=>e.user),a=(0,z.usePathname)(),n=null==a?void 0:a.startsWith("/admin"),[s,i]=f.useState(!1),[o,l]=f.useState(!1),[d,c]=f.useState(!1);return(0,r.jsxs)("div",{className:"hover:bg-sidebar-hover-template-4 flex h-12 w-full flex-row justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-row gap-2 px-4",children:[(0,r.jsx)(ei,{user:t,className:"h-[28px] w-[28px]"}),(0,r.jsx)("span",{className:"text-sidebar-foreground my-auto font-medium",children:((null==t?void 0:t.firstName)+" "+(null==t?void 0:t.lastName)).trim()})]}),(0,r.jsxs)(es.rI,{onOpenChange:c,children:[(0,r.jsx)(es.ty,{asChild:!0,children:(0,r.jsx)("div",{className:"flex flex-row items-center gap-3 pr-4 hover:cursor-pointer",children:(0,r.jsx)(F.A,{className:"text-sidebar-foreground h-4 w-6 transition-transform duration-200 hover:cursor-pointer ".concat(d?"rotate-90":"")})})}),(0,r.jsxs)(es.SQ,{className:"w-56 space-y-4 rounded-xl px-4 py-6 shadow-[4px_4px_4px_rgba(0,0,0,0.15)]",align:"end",sideOffset:10,forceMount:!0,children:[(null==t||null==(e=t.role)?void 0:e.id)=="2"&&(0,r.jsx)(es._2,{asChild:!0,className:"focus:bg-sidebar text-sidebar focus:text-white",children:(0,r.jsxs)(S(),{href:n?"/":"/admin/merchants",className:"flex items-center gap-2",children:[n?(0,r.jsx)(eo.A,{className:"h-4 w-4 text-[#239B00]"}):(0,r.jsx)(el.A,{className:"h-4 w-4 text-[#239B00]"}),n?"Trang Äại l\xfd":"Trang quản trá»"]})}),(0,r.jsx)(es._2,{asChild:!0,className:"focus:bg-sidebar text-sidebar focus:text-[#DFF6FF]",children:(0,r.jsxs)(S(),{href:"/users/me",className:"flex items-center gap-2",children:[(0,r.jsx)(C.F.UserNavIcon,{className:"h-4 w-4"}),"Th\xf4ng tin c\xe1 nh\xe2n"]})}),(0,r.jsx)(es._2,{asChild:!0,className:"focus:bg-sidebar text-sidebar focus:text-[#DFF6FF]",children:(0,r.jsxs)(S(),{href:"/users/me?action=change-password",className:"flex items-center gap-2",children:[(0,r.jsx)(C.F.KeyNavIcon,{className:"h-4 w-4"}),"Äá»i máºt khẩu"]})}),(0,r.jsxs)(es._2,{className:"focus:bg-sidebar text-sidebar focus:text-[#DFF6FF]",children:[(0,r.jsx)(C.F.ExitNavIcon,{className:"mr-2 h-4 w-4"}),(0,r.jsx)(en.$,{variant:"ghost",size:"sm",className:"h-fit flex-auto justify-start px-0 hover:!bg-transparent hover:!text-inherit",onClick:()=>(0,ed.CI)({callbackUrl:new URL("/",window.location.href).href,redirect:!0}),children:"ÄÄng xuất"})]})]})]}),o&&(0,r.jsx)(ee.A,{initFormType:"updateProfile",onCallBack:()=>l(!1)})]})}var eu=a(77128),ex=a(68019);let ep=new Set(["ViettelIcon","FPTIcon","VNPTIcon","USproxy","VietNamIcon"]),em=new Set(["USproxy","VietNamIcon"]);function eh(e){let{icon:t,iconName:a}=e,n=!!(a&&ep.has(a)),s=!!(a&&em.has(a));return(0,r.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center overflow-hidden",children:(0,r.jsx)(t,{className:(0,d.cn)(n?s?"h-auto w-5 object-contain":"h-6 w-auto object-cover":"size-5 shrink-0 md:size-5")})})}function ef(){var e,t,a,l;
1let c=(0,z.usePathname)(),u=(0,z.useSearchParams)(),{open:x,openMobile:p,isMobile:m}=(0,o.cL)(),{data:h,status:v}=(0,_.wV)(),A=(0,y.k)(e=>e.setUser),T=(0,y.k)(e=>e.user),E=(0,n.r)(e=>e.config),L=(0,n.r)(e=>e.affiliateProgram),P=null!=(l=null==E||null==(e=E.theme)?void 0:e.socials)?l:[],V=(0,eu.h)(null==E?void 0:E.hostName),R=f.useMemo(()=>N.map(e=>e.items?{...e,items:e.items.filter(e=>"/proxy-datacenter"!==e.url&&"/proxies-datacenter"!==e.url||V)}:e).filter(e=>"/proxy-datacenter"!==e.url&&"/proxies-datacenter"!==e.url||V),[V]),M={title:"HỠtrợ",url:"/ho-tro",icon:"SupportIcon",shortcut:["h","t"],isActive:!1,items:P.map(e=>{let t=e.name?e.name[0].toUpperCase()+e.name.slice(1)+"Icon":null;return{title:e.name,url:e.url,icon:C.F[t]?t:"SocialIcon",shortcut:["l","g"]}})};f.useEffect(()=>{"authenticated"===v&&k.A.fetchApi("/api/v1/auth/me",null==h?void 0:h.accessToken,{headers:{"x-merchant-id":null==E?void 0:E.merchantId}}).then(e=>A(e)).catch(()=>{})},[v,null==E?void 0:E.merchantId,h,A]);let B=!x&&!m,H=f.useRef(null),D=null==E||null==(t=E.theme)?void 0:t["logo-l"],U=null==E||null==(a=E.theme)?void 0:a.logo,W=null==E?void 0:E.hostName,q=f.useMemo(()=>{let e=D||U;return e?(0,ex.V)(e,W):""},[D,U,W]),$=f.useMemo(()=>{let e=U||D;return e?(0,ex.V)(e,W):"/icons/logo.svg"},[U,D,W]);return(0,r.jsxs)(o.Bx,{className:"relative",collapsible:"icon",suppressHydrationWarning:!0,children:[(0,r.jsxs)(o.Gh,{suppressHydrationWarning:!0,className:"w-full shrink-0 p-0",children:[(0,r.jsx)(S(),{href:"/",className:"flex h-[var(--template-4-header-height,52px)] w-full items-center justify-center px-1.5 md:px-2 lg:px-3",children:(x||p)&&q?(0,r.jsx)(I.default,{src:q,width:0,height:0,sizes:"100%",className:"mx-auto h-[32px] w-auto max-w-full object-contain sm:h-[36px] md:h-[40px]",alt:"logo"},q):(0,r.jsx)(I.default,{src:$,width:40,height:40,sizes:"40px",className:"h-7 w-7 object-contain md:h-8 md:w-8 lg:h-10 lg:w-10",alt:"logo"},$)}),m&&T&&(0,r.jsx)(ec,{}),m&&T&&(0,r.jsx)(er,{user:T,type:"default"})]}),(0,r.jsx)(o.Yv,{className:"min-h-0 flex-1 overflow-x-hidden overflow-y-auto px-0.5 pb-6 md:px-1 lg:px-2 lg:pb-8 2xl:p-4",suppressHydrationWarning:!0,children:(0,r.jsxs)(o.Cn,{className:"p-0",children:[(0,r.jsx)("div",{ref:H,className:"pointer-events-none absolute top-0 left-2 h-px w-full","aria-hidden":!0}),(0,r.jsx)(o.wZ,{className:"gap-[12px]",suppressHydrationWarning:!0,children:R.filter(e=>"/affiliates"!==e.url||L).map(e=>{var t,a;let n=e.icon?C.F[e.icon]:C.F.logo;"/ho-tro"===e.url&&(e=M);let l=(0,r.jsxs)(w,{tooltip:B?void 0:e.title,isActive:c===e.url,size:"lg",className:"hover:bg-sidebar-hover-template-4 data-[state=open]:hover:bg-sidebar-hover-template-4 data-[state=open]:hover:text-sidebar-foreground relative h-[44px] w-full min-w-0 cursor-pointer gap-1.5 rounded-[4px] p-1.5 transition-colors duration-200 group-data-[state=open]/collapsible:pr-1.5 data-[active=true]:bg-transparent md:h-[48px] md:gap-2 md:p-2 lg:h-[56px] lg:gap-3 lg:p-3 xl:h-[59px] xl:p-3.5 2xl:h-12 2xl:gap-2 2xl:p-3",suppressHydrationWarning:!0,children:[e.icon&&(0,r.jsx)(n,{className:"text-sidebar-foreground !h-5 !w-5 shrink-0 md:!h-[22px] md:!w-[22px] lg:!h-6 lg:!w-6"}),(0,r.jsx)("span",{className:"text-sidebar-foreground min-w-0 flex-1 truncate text-[13px] font-semibold group-data-[collapsible=icon]:hidden md:text-sm lg:text-[15px] xl:text-base",children:e.title}),!B&&(0,r.jsx)(F.A,{className:"text-sidebar-foreground ml-auto shrink-0 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]});return(null==e?void 0:e.items)&&(null==e||null==(t=e.items)?void 0:t.length)>0?B?(0,r.jsx)(b,{suppressHydrationWarning:!0,children:(0,r.jsxs)(i.AM,{children:[(0,r.jsx)(i.dT,{virtualRef:H}),(0,r.jsx)(i.Wv,{asChild:!0,children:l}),(0,r.jsx)(i.hl,{side:"right",align:"start",sideOffset:9,alignOffset:-15,avoidCollisions:!1,className:"h-[calc(100vh-var(--template-4-header-height,52px))] w-max min-w-56 rounded-l-none rounded-tr-[8px] rounded-br-[8px] border-none bg-white p-3 shadow-[4px_4px_2px_rgba(0,0,0,0.15)]",children:(0,r.jsx)("div",{className:"flex flex-col items-start gap-2",children:(()=>{var t;let a="/ho-tro"===e.url;return null==(t=e.items)?void 0:t.map(e=>
1{let t=e.icon?C.F[e.icon]:null,n=e.url.split("?")[0],s=u.get("filter"),i=u.get("provider"),o=u.get("tab"),l=u.get("type"),x=new URLSearchParams(e.url.split("?")[1]||""),p=x.get("filter"),m=x.get("provider"),h=x.get("tab"),f=x.get("type"),g=c===n&&(!p||s===p)&&(!m||i===m)&&(!h||o===h)&&(!f||l===f),b=(0,d.cn)("group flex h-10 w-full min-w-0 items-center gap-2 rounded-[4px] px-3 py-2 transition-colors duration-200 hover:bg-[#000E43]",g&&"bg-[#000E43]"),v=(0,d.cn)("min-w-0 flex-1 truncate text-sm font-semibold text-[#000E43] group-hover:text-[#DFF6FF]",g&&"text-[#DFF6FF]"),w=(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(eh,{icon:t,iconName:e.icon}),(0,r.jsx)("span",{className:v,children:e.title})]});return a?(0,r.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:b,children:w},e.title):(0,r.jsx)(S(),{prefetch:!1,href:e.url,className:b,children:w},e.title)})})()})})]})},e.title):(0,r.jsx)(s.Nt,{asChild:!0,defaultOpen:e.isActive,className:"group/collapsible",suppressHydrationWarning:!0,children:(0,r.jsxs)(b,{suppressHydrationWarning:!0,children:[(0,r.jsx)(s.R6,{asChild:!0,suppressHydrationWarning:!0,children:l}),(0,r.jsx)(s.Ke,{suppressHydrationWarning:!0,children:(0,r.jsx)(o.q9,{className:"relative mx-0 w-full min-w-0 space-y-0.5 border-l-0 p-0 pt-2 pl-1 md:pl-1.5 2xl:space-y-2 2xl:px-4",children:null==(a=e.items)?void 0:a.map(t=>{let a=t.icon?C.F[t.icon]:null,n="/ho-tro"===e.url,i=t.url.split("?")[0],l=u.get("filter"),d=u.get("provider"),x=u.get("tab"),p=u.get("type"),m=new URLSearchParams(t.url.split("?")[1]||""),h=m.get("filter"),f=m.get("provider"),g=m.get("tab"),b=m.get("type"),v=c===i&&(!h||l===h)&&(!f||d===f)&&(!g||x===g)&&(!b||p===b);if(t.items&&t.items.length>0){let e=c.startsWith(i);return(0,r.jsx)(s.Nt,{asChild:!0,defaultOpen:e,className:"group/nested",children:(0,r.jsxs)(o.Fg,{children:[(0,r.jsx)(s.R6,{asChild:!0,children:(0,r.jsxs)(j,{className:"hover:bg-sidebar-hover-template-4 h-9 w-full min-w-0 cursor-pointer px-2 py-1.5 transition-colors duration-200 md:h-10 md:px-2.5 md:py-2 lg:px-3",children:[a&&(0,r.jsx)(eh,{icon:a,iconName:t.icon}),(0,r.jsx)("span",{className:"text-sidebar-foreground min-w-0 flex-1 truncate text-xs font-semibold md:text-[13px] lg:text-sm",children:t.title}),(0,r.jsx)(F.A,{className:"text-sidebar-foreground ml-auto h-4 w-4 shrink-0 transition-transform duration-200 group-data-[state=open]/nested:rotate-90"})]})}),(0,r.jsx)(s.Ke,{children:(0,r.jsx)(o.q9,{className:"w-full min-w-0 border-l-0 px-0 pl-2 md:pl-3",children:t.items.map(e=>{let t=c===e.url;return(0,r.jsx)(o.Fg,{children:(0,r.jsx)(j,{asChild:!0,isActive:t,className:"hover:bg-sidebar-hover-template-4 data-[active=true]:bg-sidebar-hover-template-4 h-8 w-full min-w-0 px-2 py-1.5 transition-colors duration-200 md:h-9 md:px-2.5 lg:py-2",children:(0,r.jsx)(S(),{prefetch:!1,href:e.url,className:"flex min-w-0 items-center gap-2",children:(0,r.jsx)("span",{className:"text-sidebar-foreground truncate text-xs font-semibold md:text-sm",children:e.title})})})},e.title)})})})]})},t.title)}return(0,r.jsx)(o.Fg,{children:(0,r.jsx)(j,{asChild:!0,isActive:v,className:"hover:bg-sidebar-hover-template-4 data-[active=true]:bg-sidebar-hover-template-4 h-9 w-full min-w-0 px-2 py-1.5 transition-colors duration-200 md:h-10 md:px-2.5 md:py-2 lg:h-11 lg:px-3",children:n?(0,r.jsxs)("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"flex min-w-0 items-center gap-2",children:[a&&(0,r.jsx)(eh,{icon:a,iconName:t.icon}),(0,r.jsx)("span",{className:"text-sidebar-foreground min-w-0 flex-1 truncate text-xs font-normal md:text-sm",children:t.title})]}):(0,r.jsxs)(S(),{prefetch:!1,href:t.url,className:"flex min-w-0 items-center gap-2",children:[a&&(0,r.jsx)(eh,{icon:a,iconName:t.icon}),(0,r.jsx)("span",{className:"text-sidebar-foreground min-w-0 flex-1 truncate text-xs font-normal md:text-sm",children:t.title})]})})},t.title)})})})]})},e.title):(0,r.jsx)(b,{suppressHydrationWarning:!0,children:(0,r.jsx)(w,{asChild:!0,tooltip:e.title,isActive:c===e.url||c===e.url_other,size:"lg",className:"hover:bg-sidebar-hover-template-4 data-[active=true]:bg-sidebar-hover-template-4 relative h-10 w-full min-w-0 gap-1.5 p-1.5 transition-colors duration-200 md:h-11 md:gap-2 md:p-2 lg:h-14 lg:gap-3 lg:p-3 2xl:h-12",suppressHydrationWarning:!0,children:(0,r.jsxs)(S(),{prefetch:!0,href:e.url,className:"flex min-w-0 items-center gap-2",children:[(0,r.jsx)(n,{className:"text-sidebar-foreground !h-5 !w-5 shrink-0 md:!h-[22px] md:!w-[22px] lg:!h-6 lg:!w-6"}),(0,r.jsx)("span",{className:"text-sidebar-foreground min-w-0 flex-1 truncate text-[13px] font-semibold group-data-[collapsible=icon]:hidden md:text-sm lg:text-[15px] xl:text-base",children:e.title})]})})}
1,e.title)})})]})}),(0,r.jsx)(g,{className:"transition-all duration-200"})]})}},80389:(e,t,a)=>{a.d(t,{c:()=>o});var r=a(95155);a(12115);var n=a(55817),s=a(31719),i=a(64269);function o(e){let{className:t,...a}=e;return(0,r.jsx)(n.bL,{children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(n.pd,{className:(0,i.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)(n.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)(n.In,{visible:(0,r.jsx)(s.N5q,{}),hidden:(0,r.jsx)(s.V$C,{})})})]})})}},86948:(e,t,a)=>{a.d(t,{BT:()=>l,Wu:()=>d,ZB:()=>o,Zp:()=>s,aR:()=>i,wL:()=>c});var r=a(95155);a(12115);var n=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,n.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 o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,n.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,n.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,n.cn)("px-4",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-footer",className:(0,n.cn)("flex items-center px-4 [.border-t]:pt-6",t),...a})}},95307:(e,t,a)=>{a.d(t,{p7:()=>f,default:()=>p,G2:()=>h,Yk:()=>m});var r=a(12115),n=a(20063),s=a(72378),i=a(1474);let o=null,l=null;var d=a(39180),c=a(13744);let u="ref_data",x="ref_click_id";function p(){let e=(0,n.useSearchParams)(),{fingerprint:t,getFingerprint:a}=function(){let[e,t]=(0,r.useState)(o),[a,n]=(0,r.useState)(!o),[s,d]=(0,r.useState)(null),c=(0,r.useCallback)(async()=>{if(o)return o;try{l||(l=i.Ay.load());let e=await l,a=await e.get(),r={visitorId:a.visitorId,confidence:a.confidence.score};return o=r,t(r),r}catch(t){let e=t instanceof Error?t:Error("Failed to get fingerprint");return d(e),console.error("Fingerprint error:",e),null}},[]);return(0,r.useEffect)(()=>{o||(n(!0),c().finally(()=>n(!1)))},[c]),{fingerprint:e,isLoading:a,error:s,getFingerprint:c}}(),p=(0,d.r)(e=>e.config),m=null==p?void 0:p.merchantId,h=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{(async()=>{let r=e.get("ref");if(!r||!m||h.current)return;let n=e.get("cid");if(!n){let e=s.A.get(u);if(e)try{if(JSON.parse(e).referralCode===r)return}catch(e){}}h.current=!0;let i=t;i||(i=await a());let o={referralCode:r,landingUrl:window.location.href,referer:document.referrer||void 0,utmSource:e.get("utm_source")||void 0,utmMedium:e.get("utm_medium")||void 0,utmCampaign:e.get("utm_campaign")||void 0};n&&(o.cid=n),i&&(o.fingerprint=i.visitorId,o.fingerprintConfidence=i.confidence);try{let e=await c.A.postApi("/api/v1/clicks/track",o,"",{headers:{"x-merchant-id":m}});if(null==e?void 0:e.valid){let t=e.cookieMaxAge||2592e3,a=new Date(Date.now()+1e3*t),r={referralCode:e.referralCode,affiliateId:e.affiliateId,programId:e.programId,clickId:e.clickId,trackedAt:new Date().toISOString()};s.A.set(u,JSON.stringify(r),{expires:a,path:"/",sameSite:"lax"}),e.clickId&&s.A.set(x,e.clickId,{expires:a,path:"/",sameSite:"lax"}),console.log("[ReferralTracker] Tracked successfully:",e)}else console.warn("[ReferralTracker] Invalid referral:",null==e?void 0:e.error)}catch(e){console.error("[ReferralTracker] Track error:",e),h.current=!1}})()},[e,t,a,m]),null}function m(){let e=s.A.get(u);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}function h(){return s.A.get(x)}function f(){s.A.remove(u,{path:"/"}),s.A.remove(x,{path:"/"})}}}]);
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.