1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9674,12700],{2030:(e,t,r)=>{r.d(t,{Cn:()=>l,Gb:()=>s,JL:()=>a});let l=[{title:"Overview",url:"/",icon:"OverviewIcon",isActive:!0,shortcut:["o","o"],items:[{title:"Proxy TÄ©nh",url:"/proxy-tinh",shortcut:["s","s"]},{title:"Proxy Xoay",url:"/proxy-xoay",shortcut:["r","r"]},{title:"Key Xoay",url:"/key-xoay",shortcut:["k","k"]},{title:"Proxy Datacenter",url:"/proxy-datacenter",shortcut:["u","u"]},{title:"Combo Proxy",url:"/combo-proxy",shortcut:["c","c"]},{title:"Proxy Marketplace",url:"/proxy-marketplace",shortcut:["m","p"]}],url_other:"/"},{title:"Chương tr\xecnh affiliate",url:"/affiliates",icon:"AffiliateProgramsIcon",isActive:!0,items:[]},{title:"Check Proxy",url:"/check-proxy",icon:"CheckProxyIcon",shortcut:["c","c"],isActive:!1,items:[]},{title:"ÄÆ¡n h\xe0ng tÄ©nh",url:"/proxies",icon:"ShoppingCardIcon",shortcut:["o","o"],isActive:!1,items:[]},{title:"ÄÆ¡n h\xe0ng Proxy Datacenter",url:"/proxies-datacenter",icon:"ShoppingCardIcon",shortcut:["o","o"],isActive:!1,items:[]},{title:"ÄÆ¡n h\xe0ng xoay",url:"/proxies-xoay",icon:"ShoppingCardIcon",shortcut:["o","o"],isActive:!0,items:[{title:"Proxy xoay",url:"/proxies-xoay",shortcut:["s","s"]},{title:"Key xoay",url:"/keys-xoay",shortcut:["r","r"]}]},{title:"Lá»ch sá» mua h\xe0ng",url:"/don-hang",icon:"OrderHistoryIcon",shortcut:["h","h"],isActive:!1,items:[]},{title:"Lá»ch sá» giao dá»ch",url:"/lich-su",icon:"TransactionHistoryIcon",shortcut:["o","o"],isActive:!1,items:[]},{title:"Lá»ch sá» Äá»i proxy",url:"/lich-su-doi-proxy",icon:"ChangeProxyHistoryIcon",shortcut:["p","p"],isActive:!1,items:[]},{title:"Tool Proxy",url:"/tool-proxy",icon:"ToolProxyIcon",shortcut:["t","t"],isActive:!1,items:[]},{title:"Blogs",url:"/blogs",icon:"BlogIcon",shortcut:["g","g"],isActive:!1,items:[]},{title:"B\xe0i viết hưá»ng dẫn",url:"/huong-dan",icon:"GuildIcon",shortcut:["g","g"],isActive:!1,items:[]},{title:"T\xe0i liá»u API",url:"/tai-lieu-api",icon:"apiDocument",isActive:!1,items:[]},{title:"Há» trợ",url:"/ho-tro",icon:"SupportIcon",shortcut:["g","g"],isActive:!1,items:[]}],a=[{title:"Äại l\xfd",url:"/admin/merchants",icon:"AdminMerchants",isActive:!0,items:[{title:"Tá»ng quan",url:"/admin/merchants",icon:"AdminOverview"},{title:"Ng\xe2n h\xe0ng",url:"/admin/merchants/banking",icon:"BankIcon"},{title:"H\xf3a ÄÆ¡n Äiá»n tá»",url:"/admin/merchants/einvoice",icon:"EinvoiceIcon"},{title:"Gá»i mail",url:"/admin/merchants/send-mail",icon:"SendMailIcon"},{title:"Gi\xe1",url:"/admin/merchants/price",icon:"AdminPrice"},{title:"Giao diá»n",url:"/admin/merchants/interface",icon:"InterfaceIcon"},{title:"Templates",url:"/admin/merchants/templates",icon:"TemplateIcon"},{title:"SEO Google",url:"/admin/merchants/seo",icon:"SeoIcon"},{title:"Sitemap",url:"/admin/merchants/sitemap",icon:"SitemapIcon"}]},{title:"Th\xf4ng b\xe1o",url:"/admin/notifications",icon:"NotificationIcon",isActive:!0,items:[{title:"C\xe0i Äặt th\xf4ng b\xe1o",url:"/admin/notifications/settings"},{title:"Th\xf4ng b\xe1o",url:"/admin/notifications/alerts"}]},{title:"Äại l\xfd con",url:"/admin/sub-merchants",icon:"AdminMerchants",isActive:!0,items:[{title:"Ch\xednh s\xe1ch",url:"/admin/sub-merchants/policies",icon:"AdminSubMerchants"},{title:"Cost",url:"/admin/sub-merchants/costs",icon:"AdminSubMerchants"},{title:"Danh s\xe1ch Äại l\xfd",url:"/admin/sub-merchants/list",icon:"AdminSubMerchants"},{title:"Danh s\xe1ch ngưá»i d\xf9ng",url:"/admin/sub-merchants/users",icon:"AdminSubMerchants"},{title:"Lá»ch sá» giao dá»ch",url:"/admin/sub-merchants/transactions",icon:"AdminSubMerchants"},{title:"ÄÆ¡n h\xe0ng",url:"/admin/sub-merchants/orders",icon:"AdminSubMerchants"}]},{title:"Chương tr\xecnh affiliate",url:"/admin/affiliate-programs",icon:"AffiliateProgramsIcon",isActive:!0,items:[{title:"Ch\xednh s\xe1ch affiliate",url:"/admin/affiliate-programs/policies",icon:"AffiliatePoliciesIcon"},{title:"Thiết láºp",url:"/admin/affiliate-programs/settings",icon:"AffiliateSettingsIcon"},{title:"Danh s\xe1ch Affiliate",url:"/admin/affiliate-programs/affiliates",icon:"Aff
1iliateListIcon"},{title:"Danh s\xe1ch clicks",url:"/admin/affiliate-programs/clicks",icon:"AffiliateClicksIcon"},{title:"Danh s\xe1ch user ÄÆ°á»£c giá»i thiá»u",url:"/admin/affiliate-programs/referrals",icon:"AffiliateReferralsIcon"},{title:"Danh s\xe1ch hoa há»ng",url:"/admin/affiliate-programs/commissions",icon:"AffiliateCommissionsIcon"},{title:"Danh s\xe1ch r\xfat tiá»n",url:"/admin/affiliate-programs/payouts",icon:"AffiliatePayoutsIcon"}]},{title:"Danh s\xe1ch sản phẩm",url:"/admin/products",icon:"AdminProducts",isActive:!1,items:[]},{title:"Danh s\xe1ch ngưá»i d\xf9ng",url:"/admin/users",icon:"AdminUsers",isActive:!1,items:[]},{title:"Danh mục blog",url:"/admin/blog-categories",icon:"FolderTree",isActive:!1,items:[]},{title:"Blogs",url:"/admin/blogs",icon:"FileText",isActive:!1,items:[]},{title:"B\xe0i viết hưá»ng dẫn",url:"/admin/huong-dan",icon:"GuildIcon",isActive:!1,items:[]},{title:"Ngưá»i d\xf9ng proxies",url:"/admin/users-proxies",icon:"AdminUsersProxies",isActive:!1,items:[{title:"Proxy TÄ©nh",url:"/admin/users-proxies/static",items:[{title:"Proxy d\xe2n cư",url:"/admin/users-proxies/static/residential",items:[]},{title:"Proxy datacenter US",url:"/admin/users-proxies/static/datacenter",items:[]}]},{title:"Proxy Xoay",url:"/admin/users-proxies/rotate",items:[]}]},{title:"Lá»ch sá» nạp",url:"/admin/transactions",icon:"AdminTransactions",isActive:!1,items:[]},{title:"Lá»ch sá» lợi nhuáºn",url:"/admin/profit-history",icon:"AdminProfitLogs",isActive:!1,items:[]},{title:"Biến Äá»ng sá» dư",url:"/admin/merchant-logs",icon:"AdminMerchantLogs",isActive:!1,items:[]},{title:"Y\xeau cầu cá»§a t\xf4i",url:"/admin/my-approvals",icon:"AffiliateListIcon",isActive:!1,items:[]},{title:"Files",url:"/admin/files",icon:"AdminFiles",isActive:!1,items:[]}],s=["liam","olivia","noah","ava","william","sophia","james","isabella","oliver","emma"]},4224:(e,t,r)=>{r.d(t,{G:()=>n});var l=r(35389),a=r(85400);let s={revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:3e5,revalidateIfStale:!1};function n(e){let{data:t,isLoading:r}=(0,a.Ay)(e?["products-static",e]:null,e=>{let[,t]=e;return(0,l.F7)(t)},s),{data:n,isLoading:i}=(0,a.Ay)("locations",()=>(0,l.Vs)(),s);return{products:null!=t?t:[],locations:null!=n?n:[],isLoading:r||i}}},9674:(e,t,r)=>{r.r(t),r.d(t,{default:()=>F});var l=r(95155),a=r(7007),s=r(42348),n=r(12115),i=r(12700),o=r(13744),c=r(78194),d=r(30030),u=r(86091),m=r(60475),p=r(57913),x=r(54591),h=r(10489),f=r(83101),g=r(64269);let v=(0,f.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),b=n.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,l.jsx)(h.b,{ref:t,className:(0,g.cn)(v(),r),...a})});b.displayName=h.b.displayName;var y=r(24058);function w(e){let{className:t,...r}=e;return(0,l.jsx)(y.bL,{"data-slot":"radio-group",className:(0,g.cn)("grid gap-3",t),...r})}function N(e){let{className:t,...r}=e;return(0,l.jsx)(y.q7,{"data-slot":"radio-group-item",className:(0,g.cn)("group focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 relative flex !h-7 !w-7 shrink-0 items-center justify-center rounded-full transition-[color,box-shadow] outline-none hover:cursor-pointer hover:bg-[#1d1b20]/[0.08] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),...r,children:(0,l.jsx)("span",{className:"group-data-[state=checked]:border-primary flex size-5 items-center justify-center rounded-full border-2 border-[#808081]",children:(0,l.jsx)(y.C1,{"data-slot":"radio-group-indicator",className:"bg-primary size-2.5 rounded-full"})})})}var j=r(61589),A=r(60249),k=r(15239),C=r(46199),_=r(76830);function E(e){var t,r,a,s;let{product:n,locations:h}=e,f={viettel:{border:"#FFCEC0",bg:"#FFE6DE"},fpt:{border:"#FFD272",bg:"#FFEABE"},vnpt:{border:"#C4E8FF",bg:"#DFF6FF"}},g=null!=(a=null==(t=n.provider)?void 0:t.toLowerCase())?a:"viettel",v=f[g]||f.viettel,{form:y,isSubmitting:E,totalPrice:z,originTotalPrice:I,openLogin:D,payload:F,paymentModal:T,setPaymentModal:P,onSubmit:S}=(0,i.k)({product:n,defaultValues:{user:"",password:""}}),B=e=>{let t=Number(y.getValues("dayOfUse"))||0;y.setValue("dayOfUse",Math.max(1,t+e),{shouldValidate:!0})},M=e=>{let t=Number(y.getValues("quantity"))||0;y.setValue("quantity",Math.max(1,t+e),{shouldValidate:!0})};return(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(m.lV,{...y,children:(0,l.jsxs)("form",{onSubmit:y.handleSubmit(S),className:"flex w-full flex-col gap-4 roun
1ded-lg bg-white p-4 shadow-[0px_4px_4px_rgba(0,0,0,0.1)] sm:p-5 2xl:rounded-[8px] 2xl:p-4",children:[(0,l.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center self-start rounded-[4px] border bg-white sm:self-auto",style:{borderColor:v.border},children:(0,l.jsx)(k.default,{src:"/images/images-Template4/".concat(g,".png"),width:0,height:0,className:"h-auto w-9 object-contain",alt:"logo"})}),(0,l.jsx)(m.zB,{control:y.control,name:"location",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"flex min-w-0 flex-1 flex-col space-y-0 md:w-[calc(100%-184px)] md:flex-none 2xl:w-[calc(100%-266px)]",children:[(0,l.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-start gap-2 rounded-[4px] border border-[#E8E8E9] bg-white px-4 py-3 lg:min-h-12 lg:flex-row lg:flex-wrap lg:items-center lg:justify-between lg:gap-x-6 lg:gap-y-2 lg:py-2",children:[(0,l.jsx)(m.lR,{className:"shrink-0 text-sm font-semibold text-black",children:"Chá»n khu vá»±c"}),(0,l.jsx)(m.MJ,{children:(0,l.jsxs)(w,{onValueChange:t.onChange,value:t.value,className:"flex w-full flex-row flex-wrap items-center justify-start gap-x-8 gap-y-3 lg:w-auto lg:flex-1 lg:justify-end lg:gap-x-12 lg:gap-y-2",children:[(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(N,{value:"random",id:"random"}),(0,l.jsx)(b,{htmlFor:"random",className:"cursor-pointer text-sm font-normal whitespace-nowrap text-black",children:"Ngẫu nhi\xean"})]}),h.length>0?h.slice(0,3).map(e=>(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(N,{value:e.slug,id:e.slug}),(0,l.jsx)(b,{htmlFor:e.slug,className:"cursor-pointer text-sm font-normal whitespace-nowrap text-black",children:e.name})]},e.id)):(0,l.jsxs)(l.Fragment,{children:[c.B.map(e=>(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(N,{value:e.value,id:e.value.toLowerCase()}),(0,l.jsx)(b,{htmlFor:e.value.toLowerCase(),className:"cursor-pointer text-sm font-normal whitespace-nowrap text-black",children:e.name})]},e.value)),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,l.jsx)(N,{value:"HN",id:"hn"}),(0,l.jsx)(b,{htmlFor:"hn",className:"cursor-pointer text-sm font-normal whitespace-nowrap text-black",children:"H\xe0 Ná»i"})]})]})]})})]}),(0,l.jsx)(m.C5,{})]})}})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-3 rounded-[4px] border border-[#E8E8E9] bg-[#F5F5F6] p-4 2xl:border-0 2xl:shadow-[inset_0_0_0_1px_#E8E8E9]",children:[(0,l.jsx)(m.zB,{control:y.control,name:"dayOfUse",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"w-full space-y-0",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"Ng\xe0y sá» dụng"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex h-11 w-full flex-1 items-center gap-3 overflow-hidden rounded-[4px] border border-[#E8E8E9] bg-white px-3 transition-[border-color,box-shadow] focus-within:!border-[#3976F9] focus-within:!shadow-[0px_4px_6px_rgba(27,86,214,0.1)] hover:border-[rgba(57,118,249,0.2)]",children:[(0,l.jsx)("button",{type:"button",onClick:()=>B(-1),className:"flex size-8 shrink-0 items-center justify-center rounded-[4px] text-[#636364] hover:cursor-pointer hover:bg-[#E8E8E9]",children:(0,l.jsx)(_.F.MinusIcon,{className:"size-5"})}),(0,l.jsx)("div",{className:"flex h-6 flex-1 items-center justify-center border-x border-[#D4D4D5]",children:(0,l.jsx)("input",{type:"number",min:1,step:1,placeholder:"Nháºp sá» ng\xe0y",value:t.value>0?t.value:"",className:"w-full flex-1 [appearance:textfield] bg-transparent text-center text-sm font-semibold text-black outline-none placeholder:text-[#BDBDBF] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",onKeyDown:u.Y$,onChange:e=>{let r=e.target.value;if(""===r)return void t.onChange("");
1t.onChange(+r)},onBlur:()=>{(!t.value||t.value<1)&&t.onChange(1)}})}),(0,l.jsx)("button",{type:"button",onClick:()=>B(1),className:"flex size-8 shrink-0 items-center justify-center rounded-[4px] text-[#636364] hover:cursor-pointer hover:bg-[#E8E8E9]",children:(0,l.jsx)(_.F.PlusIcon,{className:"size-5"})})]})})]}),(0,l.jsx)(m.C5,{className:"mt-1 sm:pl-[152px] 2xl:pl-[250px]"})]})}}),(0,l.jsx)(m.zB,{control:y.control,name:"quantity",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"w-full space-y-0",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"Sá» lượng"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex h-11 w-full flex-1 items-center gap-3 overflow-hidden rounded-[4px] border border-[#E8E8E9] bg-white px-3 transition-[border-color,box-shadow] focus-within:!border-[#3976F9] focus-within:!shadow-[0px_4px_6px_rgba(27,86,214,0.1)] hover:border-[rgba(57,118,249,0.2)]",children:[(0,l.jsx)("button",{type:"button",onClick:()=>M(-1),className:"flex size-8 shrink-0 items-center justify-center rounded-[4px] text-[#636364] hover:cursor-pointer hover:bg-[#E8E8E9]",children:(0,l.jsx)(_.F.MinusIcon,{className:"size-5"})}),(0,l.jsx)("div",{className:"flex h-6 flex-1 items-center justify-center border-x border-[#D4D4D5]",children:(0,l.jsx)("input",{type:"number",min:1,step:1,placeholder:"Nháºp sá» lượng",value:t.value,className:"w-full flex-1 [appearance:textfield] bg-transparent text-center text-sm font-semibold text-black outline-none placeholder:text-[#BDBDBF] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",onKeyDown:u.Y$,onChange:e=>{let r=e.target.value;if(""===r)return void t.onChange("");t.onChange(+r)},onBlur:()=>{(!t.value||t.value<1)&&t.onChange(1)}})}),(0,l.jsx)("button",{type:"button",onClick:()=>M(1),className:"flex size-8 shrink-0 items-center justify-center rounded-[4px] text-[#636364] hover:cursor-pointer hover:bg-[#E8E8E9]",children:(0,l.jsx)(_.F.PlusIcon,{className:"size-5"})})]})})]}),(0,l.jsx)(m.C5,{className:"mt-1 sm:pl-[152px] 2xl:pl-[250px]"})]})}}),(0,l.jsx)(m.zB,{control:y.control,name:"dayOfUse",render:()=>(0,l.jsx)(m.eI,{className:"w-full space-y-0",children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"ÄÆ¡n gi\xe1"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex h-11 w-full flex-1 items-center justify-between rounded-[4px] border border-[#E8E8E9] bg-[#E8E8E9] px-3",children:[(0,l.jsxs)("span",{className:"text-sm font-bold text-[#E2372A]",children:[o.A.formatNum2(n.price)," Ä"]}),(0,l.jsx)("span",{className:"text-sm text-[#636364]",children:"/ Ng\xe0y"})]})})]})})}),(0,l.jsx)(m.zB,{control:y.control,name:"prefix_ip",render:()=>(0,l.jsx)(m.eI,{className:"w-full space-y-0",children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"Äầu IP"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsx)("div",{className:"flex h-11 w-full flex-1 items-center rounded-[4px] border border-[#E8E8E9] bg-[#E8E8E9] px-3",children:(0,l.jsx)("span",{className:"text-sm text-[#636364]",children:"Ngẫu nhi\xean"})})})]})})}),(0,l.jsx)(m.zB,{control:y.control,name:"protocolType",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"w-full space-y-0",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"Giao thức"}),(0,l.jsxs)(j.l6,{onValueChange:t.onChange,value:t.value,children:[(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsx)(j.bq,{className:"group h-11 w-full rounded-[4px] border border-[#
1E8E8E9] bg-white text-left text-[16px] font-semibold text-black hover:border-[rgba(57,118,249,0.2)] data-[state=open]:!border-[#3976F9] data-[state=open]:!shadow-[0px_4px_6px_rgba(27,86,214,0.1)] data-[state=open]:ring-0",icon:(0,l.jsx)(_.F.ChevronDownIcon,{className:"size-5 rounded-[4px] p-1 text-[#636364] transition-transform group-hover:bg-[#E8E8E9] group-data-[state=open]:rotate-180"}),children:(0,l.jsx)(j.yv,{placeholder:"HTTP"})})}),(0,l.jsx)(j.gC,{className:"w-[var(--radix-select-trigger-width)] rounded-[4px] border-[rgba(57,118,249,0.2)] p-0 shadow-[0px_4px_6px_rgba(27,86,214,0.1)]",viewportClassName:"p-3",children:d.q.map(e=>(0,l.jsx)(j.eb,{value:e.value,className:"rounded-[4px] px-2.5 py-1.5 text-sm text-[#636364] focus:bg-[#E8E8E9] focus:text-black",children:e.name},e.value))})]})]}),(0,l.jsx)(m.C5,{className:"mt-1 sm:pl-[152px] 2xl:pl-[250px]"})]})}}),(0,l.jsx)(m.zB,{control:y.control,name:"user",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"w-full space-y-0",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"T\xe0i khoản"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsx)(x.p,{type:"text",placeholder:"random",value:"random"===t.value?"":t.value,className:"h-11 flex-1 rounded-[4px] border border-[#E8E8E9] bg-white text-sm font-normal text-black placeholder:text-[#BDBDBF] hover:border-[rgba(57,118,249,0.2)] focus-visible:!border-[#3976F9] focus-visible:!shadow-[0px_4px_6px_rgba(27,86,214,0.1)] focus-visible:ring-0",onChange:e=>t.onChange(e.target.value.trim())})})]}),(0,l.jsx)(m.C5,{className:"mt-1 sm:pl-[152px] 2xl:pl-[250px]"})]})}}),(0,l.jsx)(m.zB,{control:y.control,name:"password",render:e=>{let{field:t}=e;return(0,l.jsxs)(m.eI,{className:"w-full space-y-0",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 sm:flex-row sm:items-center sm:gap-6",children:[(0,l.jsx)(m.lR,{className:"w-full shrink-0 text-sm font-semibold text-black sm:w-36 2xl:w-[226px]",children:"Máºt khẩu"}),(0,l.jsx)(m.MJ,{className:"w-full min-w-0 flex-1",children:(0,l.jsx)(x.p,{type:"text",placeholder:"random",value:"random"===t.value?"":t.value,className:"h-11 flex-1 rounded-[4px] border border-[#E8E8E9] bg-white text-sm font-normal text-black placeholder:text-[#BDBDBF] hover:border-[rgba(57,118,249,0.2)] focus-visible:!border-[#3976F9] focus-visible:!shadow-[0px_4px_6px_rgba(27,86,214,0.1)] focus-visible:ring-0",onChange:e=>t.onChange(e.target.value)})})]}),(0,l.jsx)(m.C5,{className:"mt-1 sm:pl-[152px] 2xl:pl-[250px]"})]})}}),(0,l.jsxs)("div",{className:"flex flex-col items-start justify-end gap-2 border-t border-[#E8E8E9] pt-4 sm:flex-row sm:items-center sm:gap-4 2xl:mt-1 2xl:border-t-0 2xl:shadow-[inset_0_1px_0_0_#E8E8E9]",children:[(0,l.jsx)("p",{className:"text-base font-semibold text-black sm:text-lg sm:leading-[23px]",children:"Th\xe0nh tiá»n"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-base font-semibold text-[#E2372A] sm:text-lg sm:leading-[23px]",children:z?o.A.formatNum2(z):""}),(0,l.jsx)("span",{className:"text-base font-semibold text-[#E2372A] sm:text-lg sm:leading-[23px]",children:"VNÄ"}),I&&z&&Number(I)>Number(z)?(0,l.jsxs)("span",{className:"text-sm font-semibold text-[#BDBDBF] line-through",children:[o.A.formatNum2(I)," VN","Ä"]}):null]})]})]}),(0,l.jsx)(p.$,{type:"submit",disabled:E,className:"bg-primary h-11 w-full rounded-[4px] text-base font-semibold text-white hover:bg-[rgb(from_var(--primary)_calc(r_-_15)_calc(g_-_26)_calc(b_-_50))]",children:"Mua h\xe0ng"})]})}),D&&(0,l.jsx)(A.A,{}),(0,l.jsx)(C.A,{open:T,onClose:()=>P(!1),payload:F,formParent:y,redirect:"/proxies?filter=ipaddress.provider:$eq:string:".concat(null!=(s=null==(r=n.provider)?void 0:r.toUpperCase())?s:"VIETTEL")})]})}var z=r(78125),I=r(22493),D=r(4224);function F(e){let{appConfig:t,searchParams:r,initialProducts:i,initialLocations:o}=e,{products:c,locations:d,isLoading:u}=(0,D.G)(void 0!==i||null==t?void 0:t.merchantId),m=null!=i?i:c,[p,x]=(0,n.use
1State)(0),h=null==r?void 0:r.provider;if((0,n.useEffect)(()=>{if(!u&&h&&m.length>0){let e=m.findIndex(e=>{var t;return(null==(t=e.provider)?void 0:t.toUpperCase())===h.toUpperCase()});-1!==e&&x(e)}},[h,u,m]),u)return(0,l.jsx)(a.A,{scrollable:!1,className:"bg-[#f5f5f6]",children:(0,l.jsx)("div",{className:"flex w-full flex-col gap-4",children:(0,l.jsx)("div",{className:"h-fit",children:(0,l.jsx)(z.A,{})})})});if(0===m.length)return(0,l.jsx)(a.A,{scrollable:!1,className:"bg-[#f5f5f6]",children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,l.jsx)("h2",{className:"text-sm leading-[130%] font-semibold sm:text-base 2xl:text-[18px] ".concat(I.z8.className),children:"Proxy d\xe2n cư tÄ©nh"}),(0,l.jsx)("p",{className:"text-center",children:"Kh\xf4ng c\xf3 sản phẩm"})]})});let f=m[p];return(0,l.jsx)(a.A,{scrollable:!0,children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,l.jsx)("div",{className:"flex items-center gap-3",children:(0,l.jsxs)("h1",{className:"text-sm leading-[130%] font-semibold text-[#000E43] sm:text-base 2xl:text-[18px] ".concat(I.z8.className),children:["Tạo má»i Proxy d\xe2n cư tÄ©nh ",(null==f?void 0:f.provider)||""]})}),(0,l.jsx)("div",{children:(0,l.jsx)(n.Suspense,{fallback:(0,l.jsx)(s.A,{className:"text-primary animate-spin"}),children:(0,l.jsx)(E,{product:f,locations:null!=o?o:d},null==f?void 0:f.id)})})]})})}},12700:(e,t,r)=>{r.d(t,{k:()=>x});var l=r(2030),a=r(66280),s=r(86091),n=r(75507),i=r(66942),o=r(46671),c=r.n(o),d=r(96199),u=r(12115),m=r(22544);let p={dayOfUse:1,quantity:1,prefix_ip:"random",protocolType:"HTTP",user:"random",password:"random",payment:"",location:"random"};function x(e){var t,r,o;let{product:x,defaultValues:h,totalPriceOverride:f,originTotalPriceOverride:g,buildPayload:v,onPayloadBuilt:b,onAuthRequired:y,openPaymentOnSubmit:w=!0}=e,{data:N,status:j}=(0,d.wV)(),[A,k]=(0,u.useState)("1"),[C,_]=(0,u.useState)("1"),E=(0,m.mN)({resolver:(0,i.u)(s.xm),defaultValues:{...p,...h},mode:"onChange",reValidateMode:"onChange"}),{formState:{isSubmitting:z}}=E,{rulesByCategory:I}=(0,a.S1)(),D=(null==x||null==(t=x.category)?void 0:t.id)?I[x.category.id]:void 0,F=E.watch("quantity"),T=E.watch("dayOfUse"),P=Number(F),S=Number(T),B=Number.isFinite(P)&&P>=1?P:0,M=Number.isFinite(S)&&S>=1?S:0,L=(0,n.Zz)({price:Number(null!=(r=null==x?void 0:x.price)?r:0),quantity:B,days:M,discountRules:D}),U=(0,n.Zz)({price:Number(null!=(o=null==x?void 0:x.originPrice)?o:0),quantity:B,days:M,hasDiscountConfig:!1}),V=null!=f?f:L,q=null!=g?g:U,[O,R]=(0,u.useState)(!1),[H,G]=(0,u.useState)({}),[J,$]=(0,u.useState)(!1),K=async e=>{var t,r;if(!(null==N||null==(t=N.user)?void 0:t.accessToken)){R(!0),null==y||y();return}if(v){let t=v({values:e,product:x,totalPrice:Number(null!=V?V:0),originTotalPrice:q});if(!t)return;G(t),null==b||b(t),w&&$(!0);return}let a={...e};"random"===a.location&&delete a.location,"random"===a.prefix_ip&&(a.prefix_ip=""),a.user&&"random"!==a.user.toLowerCase()||(a.user=(null!=(r=c().sample(l.Gb))?r:"admin")+Math.floor(1e3*Math.random())),a.password&&"random"!==a.password.toLowerCase()||(a.password=btoa(Math.random().toString()).substring(12).toLowerCase());let s={products:[{...a,provider:x.provider,product:{id:x.id}}],total:V};G(s),null==b||b(s),w&&$(!0)};return(0,u.useEffect)(()=>{"authenticated"===j&&R(!1)},[j,R]),{session:N,status:j,form:E,isSubmitting:z,dayOfUseInputValue:A,setDayOfUseInputValue:k,quantityInputValue:C,setQuantityInputValue:_,wQuantity:F,wDayOfUse:T,totalPrice:V,originTotalPrice:q,openLogin:O,setOpenLogin:R,payload:H,paymentModal:J,setPaymentModal:$,onSubmit:K}}},30030:(e,t,r)=>{r.d(t,{q:()=>l});let l=[{name:"HTTP",value:"HTTP"},{name:"SOCKS5",value:"SOCKS"}
1]},35389:(e,t,r)=>{r.d(t,{Ae:()=>m,F7:()=>c,Qg:()=>u,UF:()=>d,Vs:()=>x,Vz:()=>p});var l=r(13744),a=r(50688);let s={ngà y:1,tuần:2,tháng:3},n=e=>[...e].sort((e,t)=>{var r,l;let a=((null==(r=e.category)?void 0:r.unit)||"").toLowerCase().trim(),n=((null==(l=t.category)?void 0:l.unit)||"").toLowerCase().trim();return(s[a]||999)-(s[n]||999)}),i=async()=>new URLSearchParams(window.location.search).get("previewTemplate")||("true"===sessionStorage.getItem("preview_mode")?sessionStorage.getItem("preview_template"):null),o=async e=>await i()?(0,a.P)(e,"GET"):null;async function c(e){let t="/api/v1/products?filter=category.categorytype.id:$eq:number:1;provider:$in:string:VNPT,FPT,VIETTEL",r=await o(t);if(r){var a;return null!=(a=r.data)?a:[]}return l.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}async function d(e){let t="/api/v1/products?filter=category.categorytype.id:$eq:number:2",r=await o(t);if(r){var a;return n(null!=(a=r.data)?a:[])}return l.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return n(null!=(t=null==e?void 0:e.data)?t:[])}).catch(()=>[])}async function u(e){let t='/api/v1/products?filters={"provider":"CMC","category":{"categorytype":{"id":1}}}',r=await o(t);if(r){var a;return null!=(a=r.data)?a:[]}return l.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}async function m(e){let t='/api/v1/products?filters={"provider":"US","category":{"categorytype":{"id":1}}}',r=await o(t);if(r){var a;return null!=(a=r.data)?a:[]}return l.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}async function p(e){let t='/api/v1/products?filters={"category":{"categorytype":{"id":4}}}&page=1&limit=50',r=await o(t);if(r){var a;return null!=(a=r.data)?a:[]}return l.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}async function x(){let e="/api/v1/locations",t=await o(e);if(t){var r;return null!=(r=t.data)?r:[]}return l.A.fetchApi(e).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}},61589:(e,t,r)=>{r.d(t,{bq:()=>m,eb:()=>f,gC:()=>h,l6:()=>d,yv:()=>u});var l=r(95155),a=r(47887),s=r(12108),n=r(24033),i=r(12115),o=r(76830),c=r(64269);let d=a.bL;a.YJ;let u=a.WT,m=i.forwardRef((e,t)=>{let{className:r,children:s,icon:n,iconClassName:i,...d}=e;return(0,l.jsxs)(a.l9,{ref:t,className:(0,c.cn)("border-input ring-offset-background data-[placeholder]:text-muted-foreground flex h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-lg border px-3 py-2.5 text-sm whitespace-nowrap shadow-[4px_4px_8px_0_var(--shadow-proxy-input))] focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","data-[state=open]:border-primary data-[state=open]:ring-primary/20 data-[state=open]:ring-[3px]","[&>*:first-child]:min-w-0 [&>*:first-child]:flex-1 [&>*:first-child]:overflow-hidden [&>*:first-child]:text-ellipsis [&>*:first-child]:whitespace-nowrap",r),...d,children:[s,(0,l.jsx)(a.In,{asChild:!0,children:null!=n?n:(0,l.jsx)(o.F.ChevronsDownSolidIcon,{className:(0,c.cn)("text-icon-template-3 h-[14px] w-[14px]",i)})})]})});m.displayName=a.l9.displayName,i.forwardRef((e,t)=>{let{className:r,children:s,...n}=e;return(0,l.jsxs)(a.l9,{ref:t,className:(0,c.cn)("border-input ring-offset-background data-[placeholder]:text-muted-foreground flex h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-lg border px-3 py-2.5 text-sm whitespace-nowrap shadow-[4px_4px_8px_0_var(--shadow-proxy-input))] focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","data-[state=open]:border-primary data-[state=open]:ring-primary/20 data-[state=open]:ring-[3px]",r),...n,children:[s,(0,l.jsx)(a.In,{asChild:!0,children:(0,l.jsx)(o.F.ChevronsDownIcon,{className:"h-[20px] w-[20px] text-[#161616]"})})]})}).displayName=a.l9.displayName;let p=i.forwardRef((e,t)=>{let{className:r,...n}=e;
1return(0,l.jsx)(a.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,l.jsx)(s.A,{className:"h-4 w-4"})})});p.displayName=a.PP.displayName;let x=i.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,l.jsx)(a.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,l.jsx)(n.A,{className:"h-4 w-4"})})});x.displayName=a.wn.displayName;let h=i.forwardRef((e,t)=>{let{className:r,viewportClassName:s,children:n,position:i="popper",...o}=e;return(0,l.jsx)(a.ZL,{children:(0,l.jsxs)(a.UC,{ref:t,className:(0,c.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"===i&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:i,...o,children:[(0,l.jsx)(p,{}),(0,l.jsx)(a.LM,{className:(0,c.cn)("p-1","popper"===i&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",s),children:n}),(0,l.jsx)(x,{})]})})});h.displayName=a.UC.displayName,i.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,l.jsx)(a.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})}).displayName=a.JU.displayName;let f=i.forwardRef((e,t)=>{let{className:r,children:s,...n}=e;return(0,l.jsx)(a.q7,{ref:t,className:(0,c.cn)("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...n,children:(0,l.jsx)(a.p4,{children:s})})});f.displayName=a.q7.displayName,i.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,l.jsx)(a.wv,{ref:t,className:(0,c.cn)("bg-muted -mx-1 my-1 h-px",r),...s})}).displayName=a.wv.displayName},66280:(e,t,r)=>{r.d(t,{Fp:()=>u,RT:()=>c,S1:()=>i,U1:()=>o,Zr:()=>d});var l=r(85400),a=r(96199),s=r(13744),n=r(39180);function i(){var e,t;let{config:r}=(0,n.r)(),a=null==r?void 0:r.merchantId,{data:i,error:o,isLoading:c}=(0,l.Ay)(a?["/api/v1/discount-rules",a]:null,e=>{let[t,r]=e;return s.A.fetchApi(t,void 0,{headers:{"x-merchant-id":r}}).then(e=>{var t,r;let l={};for(let[r,a]of Object.entries(null!=(t=null==e?void 0:e.rulesByCategory)?t:{}))l[r]=a.map(e=>({minDay:Number(e.minDay),maxDay:null==e.maxDay?"Infinity":Number(e.maxDay),discount:Number(e.discount)}));return{scope:null!=(r=null==e?void 0:e.scope)?r:null,rulesByCategory:l}})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{rulesByCategory:null!=(e=null==i?void 0:i.rulesByCategory)?e:{},scope:null!=(t=null==i?void 0:i.scope)?t:null,isLoading:c,error:o}}function o(){var e,t;let{data:r}=(0,a.wV)(),n=null==r||null==(e=r.user)?void 0:e.accessToken,{data:i,error:o,isLoading:c}=(0,l.Ay)(n?["/api/v1/discount-rules/admin-defaults",n]:null,e=>{let[t,r]=e;return s.A.fetchApi(t,r).then(e=>{var t,r;let l={};for(let[r,a]of Object.entries(null!=(t=null==e?void 0:e.rulesByCategory)?t:{}))l[r]=a.map(e=>({minDay:Number(e.minDay),maxDay:null==e.maxDay?"Infinity":Number(e.maxDay),discount:Number(e.discount)}));return{scope:null!=(r=null==e?void 0:e.scope)?r:null,rulesByCategory:l}})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{rulesByCategory:null!=(t=null==i?void 0:i.rulesByCategory)?t:{},isLoading:c,error:o}}function c(){var e;let{data:t}=(0,a.wV)(),r=null==t||null==(e=t.user)?void 0:e.accessToken,{data:n,error:i,isLoading:o,mutate:c}=(0,l.Ay)(r?["/api/v1/discount-rules/admin",r]:null,e=>{let[t,r]=e;return s.A.fetchApi(t,r).then(e=>(null!=e?e:[]).map(e=>({id:e.id,scope:e.scope,categoryId:e.categoryId,categorytypeId:e.categorytypeId,minDay:Number(e.minDay),maxDay:null==e.maxDay?"Infinity":Number(e.maxDay),discount:Number(e.discount),effectiveFrom:e.effectiveFrom,effectiveTo:e.effectiveTo})))},{revalidateOnFocus:!1});return{rules:null!=n?n:[],isLoading:o,error:i,refetch:c}}async function d(e,t,r){return s.A.postApi("/api/v1/discount-rules/bulk-replace",r?{rules:t,effectiveFrom:r}:{rules:t},e).then(e=>e)}function u(){var e;let{data:t}=(0,a.wV)(),r=null==t||null==(e=t.user)?void 0:e.accessToken,{data:n,error:i,isLoading:o}=(0,l.Ay)(r?["/api/v1/categories?page=1&limit=50",r]:null,e=>{let[t,r]=e;return s.A.fetchApi(t,r).then(e=>{var t;return(null!=(t=null==e?void 0:e.data)?t:[]).map(e=>{var t,r,l,a;return{id:e.id,slug:null!=(r=e.slug)?r:"",name:null!=(a=null!=(l=e.name)?l:e.slug)?a:"",unit:e.unit,categorytypeId:null==(t=e.categorytype)?void 0:t.id}})})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{categories:null!=n?n:[],isLoading:o,error:i}}},75507:(e,t,r)=>{function l(e){let{dayOfRenewal:t,selectedProxies:r,products:l,rulesByCategory:a,taxPercent:s}=e,n=0;for(let e of r){var i,o,c,d;let r=l.find(t=>{var r,l;return t.provider===(null==(l=e.proxy)||null==(r=l.ipaddress)?void 0:r.provider)}),u=null==r||null==(i=r.category)?void 0:i.id,m=u?null==a?void 0:a[u]:void 0,p=function(e,t,r,l){let a=Number(e||0)*Number(1)*Number(r||0),s=null==l?void 0:l.find(e=>{let t="Infinity"===e.maxDay?1/0:Number(e.maxDay);return r>=e.minDay&&r<=t});return s&&(a*=s.discount),Math.round(a)}(null==r?void 0:r.price,0,t,m),x=(null!=(d=null==(o=e.order)?void 0:o.hasTaxCode)?d:!!(null==(c=e.order)?void 0:c.taxCode))&&Number(s||0)>0?Math.round(p*Number(s||0)/100):0;n+=p+x}return Math.round(n)}function a(e){let{price:t,quantity:r,days:l,discountRules:a,hasDiscountConfig:s=!0}=e;if(!t||!r||!l)return null;let n=Number(t)*Number(r)*Number(l);if(s){let e=null==a?void 0:a.find(e=>{let t="Infinity"===e.maxDay?1/0:Number(e.maxDay);return l>=e.minDay&&l<=t});e&&(n*=e.discount)}return Math.round(n)}function s(e,t){let r=Number(e),l=Number(t);return r&&l&&!(r<=l)?Math.round((r-l)/r*100):null}r.d(t,{ZS:()=>l,Zz:()=>a,zJ:()=>s})},78125:(e,t,r)=>{r.d(t,{A:()=>a});var l=r(95155);function a(){return(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4 roun
1ded-2xl bg-white p-4 shadow-[0px_4px_4px_rgba(0,0,0,0.1)] sm:gap-5 sm:p-6 lg:flex-row lg:items-stretch lg:gap-6",children:[(0,l.jsx)("div",{className:"flex min-h-[120px] w-full shrink-0 items-center justify-center rounded-lg border border-gray-200 bg-gray-100 lg:w-[280px] lg:max-w-[320px]",children:(0,l.jsx)("div",{className:"h-20 w-20 animate-pulse rounded-lg bg-gray-300 sm:h-24 sm:w-24"})}),(0,l.jsx)("div",{className:"min-w-0 flex-1",children:(0,l.jsxs)("div",{className:"flex h-full w-full flex-col items-center justify-center gap-4 rounded-lg border border-gray-200 bg-white p-4 shadow-[0px_4px_4px_rgba(0,0,0,0.1)] sm:gap-5 sm:p-5 lg:gap-6",children:[(0,l.jsx)("div",{className:"h-7 w-32 animate-pulse rounded-lg bg-gray-200"}),(0,l.jsx)("div",{className:"flex w-full flex-row flex-wrap items-center justify-center gap-x-5 gap-y-3 sm:gap-x-8 lg:justify-between",children:Array.from({length:4}).map((e,t)=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"h-6 w-6 animate-pulse rounded-full bg-gray-200"}),(0,l.jsx)("div",{className:"h-5 w-20 animate-pulse rounded-lg bg-gray-200"})]},t))})]})})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-6 rounded-2xl bg-white p-4 sm:p-6 shadow-[0px_4px_4px_rgba(0,0,0,0.1)]",children:[(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4 roun
1ded-lg border border-gray-200 bg-gray-50 p-4 sm:p-6",children:[Array.from({length:7}).map((e,t)=>(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 sm:gap-6 px-0 sm:px-8",children:[(0,l.jsx)("div",{className:"h-5 w-32 animate-pulse rounded-lg bg-gray-200"}),(0,l.jsx)("div",{className:"h-[46px] w-full min-w-0 flex-1 animate-pulse rounded-lg bg-gray-200 sm:h-[53px]"})]},t)),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 sm:gap-6 px-0 sm:px-8",children:[(0,l.jsx)("div",{className:"h-5 w-32 animate-pulse rounded-lg bg-gray-200"}),(0,l.jsx)("div",{className:"flex flex-1 items-center justify-end h-[53px]",children:(0,l.jsx)("div",{className:"h-[13.5px] w-[22.5px] animate-pulse rounded-full bg-gray-200"})})]}),(0,l.jsx)("div",{className:"h-[2px] w-full bg-gray-200"}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between sm:justify-end gap-2 sm:gap-4 px-0 sm:px-8",children:[(0,l.jsx)("div",{className:"h-7 w-24 animate-pulse rounded-lg bg-gray-200"}),(0,l.jsx)("div",{className:"h-7 w-40 animate-pulse rounded-lg bg-gray-200"})]})]}),(0,l.jsx)("div",{className:"h-12 w-full animate-pulse rounded-lg bg-gray-200"})]})]})})}},78194:(e,t,r)=>{r.d(t,{B:()=>l});let l=[{name:"Há» Ch\xed Minh",value:"HCM"},{name:"B\xecnh Dương",value:"BDG"}]},86091:(e,t,r)=>{r.d(t,{Av:()=>p,EC:()=>y,Nq:()=>g,UU:()=>m,Wj:()=>d,Y$:()=>c,_m:()=>v,kH:()=>b,nz:()=>h,vH:()=>f,xf:()=>u,xm:()=>x});var l=r(15653);let a={shouldDirty:!0,shouldTouch:!0,shouldValidate:!0},s=l.z.number({required_error:"Nháºp sá» lá»n hÆ¡n 0",invalid_type_error:"Nháºp sá» lá»n hÆ¡n 0"}).min(1,{message:"Nháºp sá» lá»n hÆ¡n 0"}),n=l.z.number({required_error:"Nháºp sá» lá»n hÆ¡n 0",invalid_type_error:"Nháºp sá» lá»n hÆ¡n 0"}).min(1,{message:"Nháºp sá» lá»n hÆ¡n 0"}),i=l.z.number({required_error:"Nháºp sá» lá»n hÆ¡n 0",invalid_type_error:"Nháºp sá» lá»n hÆ¡n 0"}).min(1,{message:"Nháºp sá» lá»n hÆ¡n 0"});function o(e){let t=Number(e);return Number.isNaN(t)||t<1?null:t}function c(e){"-"===e.key&&e.preventDefault()}function d(e){let{form:t,name:r,nextValue:l,setInputValue:s,onValueChange:n}=e;if(!l){s(""),t.setValue(r,void 0,a);return}s(l);let i=o(l);null!==i&&n(i)}function u(e){let{form:t,name:r,setInputValue:l,onValueChange:a,min:s=1}=e,n=t.getValues(r),i="number"==typeof n?n:Number(String(null!=n?n:""));if(!Number.isFinite(i)||i<s){l(String(s)),a(s);return}l(String(i))}function m(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",l={...t};return e.forEach(e=>{e in l||(l[e]=r)}),l}function p(e){let{form:t,name:r,nextValue:l,rowId:s,setInputValues:n,onValueChange:i}=e;if(!l){n(e=>({...e,[s]:""})),t.setValue(r,void 0,a);return}n(e=>({...e,[s]:l}));let c=o(l);null!==c&&i(c)}let x=l.z.object({location:l.z.string().optional(),dayOfUse:s,quantity:i,prefix_ip:l.z.string(),protocolType:l.z.string(),user:l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=2,{message:"T\xe0i khoản phải c\xf3 \xedt nhất 2 k\xed tá»±"}),password:l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=9,{message:"Máºt khẩu phải tá»i thiá»u 9 k\xed tá»±"}),payment:l.z.string().optional()}),h=x.omit({location:!0,prefix_ip:!0}),f=x.extend({dayOfUse:n,isCdk:l.z.boolean().optional(),rotateInterval:l.z.number().optional()}),g=h.extend({dayOfUse:n,isCdk:l.z.boolean().optional(),rotateInterval:l.z.number().optional()}),v=l.z.object({dayOfUse:s,quantity:i,protocolType:l.z.string(),user:l.z.string().min(2,{message:"T\xe0i khoản c\xf3 \xedt nhất 2 k\xed tá»±"}),password:l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=9,{message:"Máºt khẩu phải tá»i thiá»u 9 k\xed tá»±"}),rotateInterval:l.z.number().min(0,"Thá»i gian xoay lá»n hÆ¡n 0").int({message:"Phải l\xe0 sá» nguy\xean"}).optional(),isAutoRotate:l.z.boolean(),isCdk:l.z.boolean()}),b=l.z.object({autoRotate:l.z.boolean(),rotateTime:l.z.number({required_error:"Nháºp sá» lá»n hÆ¡n 0",invali
1d_type_error:"Nháºp sá» lá»n hÆ¡n 0"}).min(0,{message:"Nháºp sá» lá»n hÆ¡n 0"}).int({message:"Phải l\xe0 sá» nguy\xean"}),duration:l.z.enum(["day","week","month"]),user:l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=2,{message:"T\xe0i khoản phải c\xf3 \xedt nhất 2 k\xed tá»±"}),password:l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=9,{message:"Máºt khẩu phải tá»i thiá»u 9 k\xed tá»±"}),dayOfUse:s,quantity:i}),y=l.z.object({dayOfUse:l.z.record(l.z.string(),s),quantity:l.z.record(l.z.string(),i),protocolType:l.z.record(l.z.string(),l.z.string()),user:l.z.record(l.z.string(),l.z.string().min(2,{message:"T\xe0i khoản c\xf3 \xedt nhất 2 k\xed tá»±"})),password:l.z.record(l.z.string(),l.z.string().refine(e=>!e||""===e.trim()||"random"===e.toLowerCase()||e.length>=9,{message:"Máºt khẩu phải tá»i thiá»u 9 k\xed tá»±"})),rotateInterval:l.z.record(l.z.string(),l.z.number({invalid_type_error:"Thá»i gian xoay lá»n hÆ¡n 0"}).min(0,"Thá»i gian xoay lá»n hÆ¡n 0").int({message:"Phải l\xe0 sá» nguy\xean"}).optional()),isAutoRotate:l.z.record(l.z.string(),l.z.boolean()),isCdk:l.z.record(l.z.string(),l.z.boolean())})}}]);
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.