1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19757],{3998:(e,t,l)=>{l.d(t,{$:()=>o,r:()=>i});var a=l(95155);l(12115);var r=l(32467),n=l(83101),s=l(64269);let i=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none 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 cursor-pointer",{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 bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 hover:border-primary/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent 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-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function o(e){let{className:t,variant:l,size:n,asChild:o=!1,...d}=e,c=o?r.DX:"button";return(0,a.jsx)(c,{"data-slot":"button",className:(0,s.cn)(i({variant:l,size:n,className:t})),...d})}},6554:(e,t,l)=>{l.d(t,{S:()=>a});let a=(0,l(25959).v)(e=>({pathname:"",isAdminPath:!1,setPathname:t=>e({pathname:t,isAdminPath:t.startsWith("/admin")})}))},11186:(e,t,l)=>{l.d(t,{bg:()=>m,bq:()=>h,eb:()=>p,gC:()=>x,l6:()=>c,yv:()=>u});var a=l(95155),r=l(12115),n=l(47887),s=l(24033),i=l(5917),o=l(12108),d=l(64269);function c(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"select",...t})}function u(e){let{...t}=e;return(0,a.jsx)(n.WT,{"data-slot":"select-value",...t})}function h(e){let{className:t,size:l="default",children:r,icon:i,iconClassName:o,...c}=e;return(0,a.jsxs)(n.l9,{"data-slot":"select-trigger","data-size":l,className:(0,d.cn)("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=md]:h-10 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...c,children:[r,(0,a.jsx)(n.In,{asChild:!0,children:null!=i?i:(0,a.jsx)(s.A,{className:(0,d.cn)("size-4 opacity-50",o)})})]})}function x(e){let{className:t,children:l,position:r="popper",...s}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsxs)(n.UC,{"data-slot":"select-content",className:(0,d.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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,...s,children:[(0,a.jsx)(f,{}),(0,a.jsx)(n.LM,{className:(0,d.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:l}),(0,a.jsx)(v,{})]})})}function m(e){let{onLoadMore:t}=e,l=r.useRef(null);return r.useEffect(()=>{let e=l.current;if(!e||!t)return;let a=new IntersectionObserver(e=>{let[l]=e;l.isIntersecting&&t()},{threshold:.1});return a.observe(e),()=>a.disconnect()},[t]),(0,a.jsx)("div",{ref:l,className:"h-1"})}function p(e){let{className:t,children:l,...r}=e;return(0,a.jsxs)(n.q7,{"data-slot":"select-item",className:(0,d.cn)("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...r,children:[(0,a.jsx)("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:(0,a.jsx)(n.VF,{children:(0,a.jsx)(i.A,{className:"size-4"})})}),(0,a.jsx)(n.p4,{children:l})]})}function f(e){let{className:t,...l}=e;return(0,a.jsx)(n.PP,{"data-slot":"select-scroll-up-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...l,children:(0,a.jsx)(o.A,{className:"size-4"})})}function v(e){let{className:t,...l}=e;return(0,a.jsx)(n.wn,{"data-slot":"select-scroll-down-button",className:(0,d.cn)("flex cursor-default items-center justify-center py-1",t),...l,children:(0,a.jsx)(s.A,{className:"size-4"})})}},21383:(e,t,l)=>{l.d(t,{A:()=>
1o});var a=l(95155),r=l(39180),n=l(64269),s=l(6554),i=l(72557);function o(e){var t,l;let{children:o,scrollable:d=!0,className:c="",openMarqueeTop:u=!0}=e,h=(0,r.r)(e=>e.config),x=(0,s.S)(e=>e.isAdminPath),m=null!=(l=null==h||null==(t=h.theme)?void 0:t.textmarquee)?l:"",p=(0,a.jsx)("div",{className:"relative flex min-h-[36px] w-full items-center justify-center overflow-hidden rounded-lg px-4 py-2",style:{background:"\n linear-gradient(\n 90deg,\n rgb(from var(--primary) calc(r + 49) calc(g + 56) calc(b + 111)) 0%,\n rgb(from var(--primary) calc(r + 104) calc(g + 120) calc(b + 92)) 22%,\n rgb(from var(--primary) calc(r + 70) calc(g + 4) calc(b + 96)) 70%,\n rgb(from var(--primary) calc(r + 89) calc(g - 19) calc(b + 63)) 100%\n )\n "},children:(0,a.jsxs)("div",{className:"[container-type:inline-size] relative w-full overflow-hidden",children:[(0,a.jsx)("span",{className:"animate-marquee absolute left-full text-[13px] font-normal whitespace-nowrap text-white",children:m}),(0,a.jsx)("span",{className:"invisible text-[13px]",children:"\xa0"})]})});return(0,a.jsx)(a.Fragment,{children:d?(0,a.jsx)(i.F,{className:(0,n.cn)("z-0 mx-auto h-[calc(100dvh-56px)] w-full max-w-full overflow-x-hidden bg-white sm:h-[calc(100dvh-64px)] md:h-[calc(100dvh-70px)] [&_[data-slot=scroll-area-viewport]]:max-w-full [&_[data-slot=scroll-area-viewport]]:overflow-x-hidden"),children:(0,a.jsxs)("div",{className:(0,n.cn)("mx-auto flex min-h-full w-full min-w-0 flex-col gap-6 overflow-x-hidden p-3 sm:p-6 sm:pt-0",c),children:[!x&&u&&m&&p,(0,a.jsx)("div",{className:"flex w-full min-w-0 flex-1 pb-4 sm:pb-8 md:pb-12",children:o})]})}):(0,a.jsx)("div",{className:"z-0 mx-auto flex h-full w-full bg-white",children:(0,a.jsxs)("div",{className:(0,n.cn)("mx-auto flex min-h-full w-full min-w-0 flex-col gap-6 overflow-x-hidden p-3 sm:p-6 sm:pt-0",c),children:[!x&&u&&m&&p,(0,a.jsx)("div",{className:"flex w-full flex-1",children:o})]})})})}l(12115)},24902:(e,t,l)=>{l.d(t,{A:()=>F});var a=l(95155),r=l(39180),n=l(41052),s=l(64269),i=l(22968),o=l(66942),d=l(20063),c=l(12115),u=l(22544),h=l(15653),x=l(10051),m=l(86456),p=l(86948),f=l(65142),v=l(11186),g=l(75746),b=l(13744),j=l(64240),w=l(60919),y=l(61362),N=l(52056),k=l(96199),C=l(18720),z=l(58247);let A=h.z.object({taxCodeId:h.z.string().optional(),mst:h.z.string().nonempty({message:"Mst l\xe0 bắt buá»c"}),email:h.z.string().optional(),companyName:h.z.string().optional(),address:h.z.string().optional(),buyer:h.z.string().optional()}),M={notEnoughCoin:"T\xe0i khoản kh\xf4ng Äá»§ tiá»n",notFound:"Sá» Äiá»n thoại kh\xf4ng tá»n tại",notEnoughProxy:"Kh\xf4ng Äá»§ proxy"};function T(e){var t,l,r,s;let{payload:i,open:h,onClose:x,formParent:T,redirect:_="/proxies"}=e,L=(0,g.k)(e=>e.user),V={mst:"",taxCodeId:"chon",address:"",email:null!=(t=null==L?void 0:L.email)?t:"",buyer:null!=(s="".concat(null!=(l=null==L?void 0:L.firstName)?l:""," ").concat(null!=(r=null==L?void 0:L.lastName)?r:"").trim())?s:""},I=(0,u.mN)({resolver:(0,o.u)(A),values:V}),{formState:{isSubmitting:F}}=I,{data:B}=(0,k.wV)(),E=(0,d.useRouter)(),[S,P]=(0,c.useState)([]),R=(0,g.k)(e=>e.updateCoin),[W,q]=(0,c.useState)(!1),J=I.watch("taxCodeId");async function O(e){var t,l,r,n,s,o,d,c;try{let n={...i};if("chon"===e.taxCodeId?n.taxCode={id:(await b.A.postApi("/api/v1/tax-codes",e,(null==B?void 0:B.user).accessToken)).id}:n.taxCode={id:e.taxCodeId},"WALLET"===i.paymentMethod){let e="/api/v1/orders";if((null==L||null==(t=L.role)?void 0:t.id)=="2"&&(e+="/merchant"),(null==L?void 0:L.coin)>=i.total){let t=await b.A.postApi(e,n,null==B||null==(l=B.user)?void 0:l.accessToken);(null==L||null==(r=L.role)?void 0:r.id)=="3"&&"WALLET"===n.paymentMethod&&R(-t.amount),C.toast.success("Mua h\xe0ng th\xe0nh c\xf4ng",{duration:5e3,icon:(0,a.jsx)(y.A,{className:"h-4 w-4 text-green-600"})}),E.push(_)}else x(),q(!0)}}catch(e){if(e instanceof w.pe){let t=null==(n=e.response)?void 0:n.data;(null==t?void 0:t.message)?C.toast.error("Xá» l\xfd ÄÆ¡n h\xe0ng lá»i",{description:null!=(s=null==M?void 0:M[t.message])?s:t.message,duration:5e3,icon:(0,a.jsx)(N.A,{className:"h-4 w-4 text-red-500"})}):(null==t?void 0:t.errors)&&((null==(o=t.errors)?void 0:o.user)?C.toast.error("Xá» l\xfd ÄÆ¡n h\xe0ng lá»i",{description:null!=(d=null==M?void 0:M[t.errors.user])?d:t.errors.user,duration:5e3,icon:(0,a.jsx)(N.A,{className:"h-4 w-4 text-red-500"})}):(b.A.handleFormErrorFromResponse(T,null==(c=t.errors)?void 0:c.products[0],M),x()))}else C.toast.error("Xá» l\xfd ÄÆ¡n h\xe0ng lá»i",{description:"Lá»i kết ná»i Äến m\xe1y chá»
1§.",duration:5e3,icon:(0,a.jsx)(N.A,{className:"h-4 w-4 text-red-500"})})}}return(0,c.useEffect)(()=>{var e,t,l,a,r,n,s,i,o;if("chon"===J)I.setValue("mst",""),I.setValue("address",""),I.setValue("buyer",null!=(l="".concat(null!=(e=null==L?void 0:L.firstName)?e:""," ").concat(null!=(t=null==L?void 0:L.lastName)?t:"").trim())?l:""),I.setValue("companyName",""),I.setValue("email",null!=(a=null==L?void 0:L.email)?a:"");else{let e=S.find(e=>e.id===J);I.setValue("mst",null!=(r=null==e?void 0:e.mst)?r:""),I.setValue("address",null!=(n=null==e?void 0:e.address)?n:""),I.setValue("buyer",null!=(s=null==e?void 0:e.buyer)?s:""),I.setValue("companyName",null!=(i=null==e?void 0:e.companyName)?i:""),I.setValue("email",null!=(o=null==e?void 0:e.email)?o:"")}},[J,L]),(0,c.useEffect)(()=>{h&&(null==B?void 0:B.user).accessToken&&b.A.fetchApi("/api/v1/tax-codes?page=1&limit=1000",(null==B?void 0:B.user).accessToken).then(e=>{var t;return P(null!=(t=e.data)?t:[])}).catch(()=>{})},[h,B]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.a,{title:"Th\xf4ng tin thuế",description:"",isOpen:h,onClose:x,children:(0,a.jsx)(p.Zp,{className:"mx-auto w-full min-w-90 gap-6 border-none shadow-none",children:(0,a.jsx)(p.Wu,{className:"",children:(0,a.jsx)(n.lV,{...I,children:(0,a.jsxs)("form",{onSubmit:I.handleSubmit(O),className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-5",children:[(0,a.jsx)(n.zB,{control:I.control,name:"taxCodeId",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{className:"w-full",children:[(0,a.jsx)(n.lR,{children:"Tax"}),(0,a.jsxs)(v.l6,{onValueChange:e=>t.onChange(e),...t,children:[(0,a.jsx)(n.MJ,{children:(0,a.jsx)(v.bq,{className:"w-full",children:(0,a.jsx)(v.yv,{placeholder:"Chá»n mst Ä\xe3 lưu"})})}),(0,a.jsxs)(v.gC,{children:[(0,a.jsx)(v.eb,{value:"chon",children:"Chá»n"},"chon"),S.length>0&&S.map(e=>(0,a.jsx)(v.eb,{value:e.id,children:e.mst},e.id))]})]}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsx)(n.zB,{control:I.control,name:"mst",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{children:[(0,a.jsx)(n.lR,{children:"MST"}),(0,a.jsx)(n.MJ,{children:(0,a.jsx)(f.p,{placeholder:"Mst",...t})}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsx)(n.zB,{control:I.control,name:"buyer",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{children:[(0,a.jsx)(n.lR,{children:"Ngưá»i mua"}),(0,a.jsx)(n.MJ,{children:(0,a.jsx)(f.p,{placeholder:"Ngưá»i mua",...t})}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsx)(n.zB,{control:I.control,name:"companyName",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{children:[(0,a.jsx)(n.lR,{children:"T\xean C\xf4ng ty"}),(0,a.jsx)(n.MJ,{children:(0,a.jsx)(f.p,{placeholder:"T\xean C\xf4ng ty",...t})}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsx)(n.zB,{control:I.control,name:"email",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{children:[(0,a.jsx)(n.lR,{children:"Email"}),(0,a.jsx)(n.MJ,{children:(0,a.jsx)(f.p,{placeholder:"Email",...t})}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsx)(n.zB,{control:I.control,name:"address",render:e=>{let{field:t}=e;return(0,a.jsxs)(n.eI,{children:[(0,a.jsx)(n.lR,{children:"Äá»a chá»"}),(0,a.jsx)(n.MJ,{children:(0,a.jsx)(f.p,{placeholder:"Äá»a chá»",...t})}),(0,a.jsx)(n.C5,{})]})}})]}),(0,a.jsx)(m.$,{className:"h-12 w-full",size:"lg",disabled:F,type:"submit",children:"Thanh to\xe1n"})]})})})})}),W&&(0,a.jsx)(j.A,{open:W,onClose:()=>q(!1)})]})}var _=l(34510);let L=h.z.object({paymentMethod:h.z.string().nonempty("Phương thức thanh to\xe1n l\xe0 bắt buá»c"),withTaxCode:h.z.boolean()});function V(e){let{checked:t,disabled:l}=e;return(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center",children:(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:"var(--primary)",strokeWidth:"1.5",fill:"white"}),t&&(0,a.jsx)("path",{d:"M6 10L9 13L14 7",stroke:"var(--primary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function I(e){let{checked:t,disabled:l}=e;return(0,a.jsx)("div",{className:"flex h-5 w-5 items-center justify-center",children:(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"19",height:"19",rx:"3.5",stroke:t?"var(--primary)":"#B6B6B7",fill:t?"var(--primary)":"white"}),t&&(0,a.jsx)("path",{d:"M6 10L9 13L14 7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}function F(e){var t,l,h,p;let{payload:f,open:v,onClose:g,formParent:j,redirect:w="/proxies"}=e,y=(0,u.mN)({resolver:(0,o.u)(L),values:{paymentMethod:"WALLET",withTaxCode:!1}}),{formState:{isSubmitting:N}}=y,k=(0,d.useRouter)(),[C,z]=(0,c.useState)(!1),A=(0,r.r)(e=>e.config),{submit:M,refData:F}=(0,_.U)({payload:f,redirect:w,formParent:j,onClose:g,onOpenTaxcodeModal:()=>z(!0),onNotEnoughCoin:()=>k.push("/nap-tien")});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.lG,{open:v,onOpenChange:g,children:(0,a.jsx)(i.Cf,{headerClassName:"!bg-transparent !h-0 !p-0 !min-h-0",showCloseButton:!1,className:"!fixed !top-[50%] !left-[50%] !h-auto !w-[calc(100vw-32px)] !max-w-[431px] !translate-x-[-50%] !translate-y-[-50%] !border-0 !bg-transparent !p-0 !shadow-none",children:(0,a.jsxs)("div",{className:"relative flex flex-col items-center gap-6 rounded-lg bg-white p-2",children:[(0,a.jsx)("button",{onClick:g,className:"group absolute top-4 right-4 z-10 flex h-5 w-5 cursor-pointer items-center justify-center transition-transform duration-300 hover:rotate-90",children:(0,a.jsx)(x.F.CloseIcon,{className:"h-5 w-5 text-[rgb(from_var(--primary)_calc(r_+_53)_calc(g_+_62)_calc(b_+_57))]"})}),(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-2 rounded p-4",style:{background:"linear-gradient(100.86deg, #FFFFFF 0%, rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111) / 0) 100%)",border:"1px solid rgb(from var(--primary) calc(r + 149) calc(g + 169) calc(b + 111))"},children:[(0,a.jsx)("div",{className:"flex w-full items-center justify-center pb-2",children:(0,a.jsx)("h2",{className:"text-primary pb-2 text-center text-base leading-5 font-bold",style:{borderBottom:"1px solid rgb(from var(--primary) calc(r + 142) calc(g + 143) calc(b + 101))"},children:"Chá»n h\xecnh thức thanh to\xe1n"})}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-4 pt-2",children:[(0,a.jsx)("span",{className:"text-sm leading-[18px] font-bold text-black",children:"Lá»±a chá»n giao thức"}),(0,a.jsx)(n.lV,{...y,children:(0,a.jsxs)("form",{onSubmit:y.handleSubmit(M),className:"flex w-full flex-col gap-4",children:[[{label:"Thanh to\xe1n qua v\xed cá»§a t\xf4i",value:"WALLET",disabled:!1},{label:"Thanh to\xe1n qua ng\xe2n h\xe0ng",value:"BANK",disabled:!0},{label:"Thanh to\xe1n qua v\xed momo",value:"MOMO",disabled:!0}].map(e=>(0,a.jsx)(n.zB,{control:y.control,name:"paymentMethod",render:t=>{let{field:l}=t;return(0,a.jsxs)("div",{className:(0,s.cn)("flex w-full items-center gap-2",e.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"),onClick:()=>!e.disabled&&l.onChange(e.value),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(e.disabled||l.onChange(e.value))},role:"radio","aria-checked":l.value===e.value,tabIndex:e.disabled?-1:0,children:[(0,a.jsx)(V,{checked:l.value===e.value,disabled:e.disabled}),(0,a.jsx)("span",{className:"text-sm leading-[18px] font-normal text-black",children:e.label})]})}},e.value)),(null==A||null==(t=A.theme)?void 0:t.taxPercent)&&(0,a.jsx)(n.zB,{control:y.control,name:"withTaxCode",render:e=>{var t;let{field:l}=e;return(0,a.jsxs)(n.eI,{className:"flex w-full flex-row items-center justify-start gap-2",children:[(0,a.jsx)(n.MJ,{children:(0,a.jsx)("div",{className:"cursor-pointer",onClick:()=>l.onChange(!l.value),children:(0,a.jsx)(I,{checked:l.value})})}),(0,a.jsx)(n.lR,{className:"cursor-pointer text-sm leading-[18px] font-normal text-black",onClick:()=>l.onChange(!l.value),children:"Thanh to\xe1n k\xe8m xuất ho\xe1 ÄÆ¡n (".concat(null==A||null==(t=A.theme)?void 0:t.taxPercent,"%)")}),(0,a.jsx)(n.C5,{})]})}}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-4",children:[(0,a.jsx)("span",{className:"text-base leading-5 font-bold text-black",children:"Tá»ng tiá»n"}),(0,a.jsx)("span",{className:"text-primary text-base leading-5 font-bold",children:(null==A||null==(l=A.theme)?void 0:l.taxPercent)&&y.watch("withTaxCode")?"".concat(b.A.formatNum2(Math.round(f.total+f.total*Number(null!=(p=null==A||null==(h=A.theme)?void 0:h.taxPercent)?p:1)/100))," VNÄ"):"".concat(b.A.formatNum2(Math.round(f.total))," VNÄ")})]}),(0,a.jsx)(m.$,{onClick:y.handleSubmit(M),className:"flex h-9 w-full items-center justify-center rounded-full px-3 py-2 text-base font-bold text-white ".concat(N?"cursor-not-allowed bg-gray-400":"bg-primary hover:bg-primary/90 curs
1or-pointer"),disabled:N,type:"button",children:"Thanh to\xe1n"})]})})]})]})]})})}),(0,a.jsx)(T,{open:C,onClose:()=>z(!1),payload:{...f,...y.getValues(),...F&&{refData:F}},formParent:j})]})}},65142:(e,t,l)=>{l.d(t,{p:()=>n});var a=l(95155);l(12115);var r=l(64269);function n(e){let{className:t,type:l,...n}=e;return(0,a.jsx)("input",{type:l,"data-slot":"input",className:(0,r.cn)("file:text-foreground 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 file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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),...n})}},72557:(e,t,l)=>{l.d(t,{F:()=>i});var a=l(95155),r=l(12115),n=l(83360),s=l(64269);let i=r.forwardRef((e,t)=>{let{className:l,children:r,...i}=e;return(0,a.jsxs)(n.bL,{ref:t,"data-slot":"scroll-area",className:(0,s.cn)("relative overflow-hidden",l),...i,children:[(0,a.jsx)(n.LM,{"data-slot":"scroll-area-viewport",className:(0,s.cn)("h-full w-full rounded-[inherit]",(null==l?void 0:l.includes("!rounded-none"))&&"!rounded-none"),children:r}),(0,a.jsx)(o,{}),(0,a.jsx)(n.OK,{})]})});i.displayName=n.bL.displayName;let o=r.forwardRef((e,t)=>{let{className:l,orientation:r="vertical",...i}=e;return(0,a.jsx)(n.VM,{ref:t,"data-slot":"scroll-area-scrollbar",orientation:r,className:(0,s.cn)("flex touch-none transition-colors select-none","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",l),...i,children:(0,a.jsx)(n.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})});o.displayName=n.VM.displayName},80389:(e,t,l)=>{l.d(t,{c:()=>i});var a=l(95155);l(12115);var r=l(55817),n=l(31719),s=l(64269);function i(e){let{className:t,...l}=e;return(0,a.jsx)(r.bL,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.pd,{className:(0,s.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),...l}),(0,a.jsx)(r.lM,{id:l.id+"btn-toggle",className:"absolute top-1/2 right-2 -translate-y-1/2 text-gray-500 hover:text-gray-700",children:(0,a.jsx)(r.In,{visible:(0,a.jsx)(n.N5q,{}),hidden:(0,a.jsx)(n.V$C,{})})})]})})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.