PageSourceSearch

https://j2proxy.vn/_next/static/chunks/28272.e5bb74b61faf858e.js

js j2proxy.vn collected 2026-09-24 15:19:41 UTC 47,551 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28272,69423],{2030:(e,t,n)=>{n.d(t,{Cn:()=>r,Gb:()=>a,JL:()=>i});let r=[{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:[]}],i=[{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:"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:"AffiliateListIcon"},{title:"Danh s\xe1ch clicks",url:"/admin/affiliate-programs/clicks",icon:"Aff
1iliateClicksIcon"},{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:[]}],a=["liam","olivia","noah","ava","william","sophia","james","isabella","oliver","emma"]},6180:(e,t,n)=>{n.d(t,{C:()=>r,G:()=>i});let r=[{title:"Trang chủ",url:"/",icon:"OverViewIcon",isActive:!1,shortcut:["s","p"]},{title:"Proxy tĩnh",url:"/proxy-tinh",icon:"StaticProxyIcon",isActive:!1,shortcut:["p","v"]},{title:"Combo sản phẩm",url:"/combo-proxy",icon:"ComboProxyIcon",shortcut:["c","c"],isActive:!1,items:[]},{title:"Proxy xoay",url:"/proxy-xoay",icon:"RotateProxyIcon",isActive:!1,shortcut:["p","f"]},{title:"Key xoay",url:"/key-xoay",icon:"KeyRotateIcon",isActive:!1,shortcut:["p","n"]},{title:"Proxy Datacenter",url:"/proxy-datacenter",icon:"DataCenterIcon",shortcut:["c","c"],isActive:!1,items:[]},{title:"Đơn h\xe0ng",url:"/proxies",icon:"OrderIcon",isActive:!1,shortcut:["t","p"],items:[{title:"Đơn h\xe0ng Proxy tĩnh",url:"/proxies",shortcut:["p","v"]},{title:"Đơn h\xe0ng Datacenter",url:"/proxies-datacenter",shortcut:["p","u"]},{title:"Đơn h\xe0ng Proxy xoay",url:"/proxies-xoay",shortcut:["p","f"]},{title:"Đơn h\xe0ng Key xoay",url:"/keys-xoay",shortcut:["p","n"]}]},{title:"Lịch sử đơn h\xe0ng",url:"/don-hang",icon:"HistoryIcon",isActive:!1,shortcut:["l","d"]},{title:"Lịch sử giao dịch",url:"/lich-su",icon:"TransactionHistoryIcon",isActive:!1,shortcut:["l","g"]},{title:"Lịch sử đổi proxy",url:"/lich-su-doi-proxy",icon:"ChangeProxyHistoryIcon",isActive:!1,shortcut:["l","p"]},{title:"Tool Proxy",url:"/tool-proxy",icon:"ToolProxyIcon",isActive:!1,shortcut:["t","t"]},{title:"Kiểm tra Proxy",url:"/check-proxy",icon:"CheckProxyIcon",isActive:!1,shortcut:["k","p"]},{title:"Affiliate",url:"/affiliates",icon:"AffiliateIcon",isActive:!1,shortcut:["a","f"]},{title:"Hướng dẫn",url:"/huong-dan",icon:"GuideIcon",isActive:!1,shortcut:["h","d"]},{title:"Blogs",url:"/blogs",icon:"BlogIcon",isActive:!1,shortcut:["h","d"]},{title:"T\xe0i liệu API",url:"/tai-lieu-api",icon:"ApiDocumentIcon",isActive:!1,shortcut:["t","a"]},{title:"Hỗ trợ",url:"/ho-tro",isActive:!1,icon:"SupportIcon",shortcut:["h","d"]}],i=["liam","olivia","noah","ava","william","sophia","james","isabella","oliver","emma"]},6191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},7125:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},25667:(e,t,n)=>{n.d(t,{B8:()=>k,UC:()=>P,bL:()=>D,l9:()=>T});var r=n(12115),i=n(92556),a=n(3468),l=n(72431),o=n(76842),s=n(97602),c=n(66218),u=n(23558),d=n(68946),m=n(95155),p="Tabs",[h,x]=(0,a.A)(p,[l.RG]),f=(0,l.RG)(),[g,y]=h(p),v=r.forwardRef((e,t)=>
1{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:l="horizontal",dir:o,activationMode:h="automatic",...x}=e,f=(0,c.jH)(o),[y,v]=(0,u.i)({prop:r,onChange:i,defaultProp:null!=a?a:"",caller:p});return(0,m.jsx)(g,{scope:n,baseId:(0,d.B)(),value:y,onValueChange:v,orientation:l,dir:f,activationMode:h,children:(0,m.jsx)(s.sG.div,{dir:f,"data-orientation":l,...x,ref:t})})});v.displayName=p;var b="TabsList",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=y(b,n),o=f(n);return(0,m.jsx)(l.bL,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,m.jsx)(s.sG.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:t})})});w.displayName=b;var N="TabsTrigger",j=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,c=y(N,n),u=f(n),d=I(c.baseId,r),p=F(c.baseId,r),h=r===c.value;return(0,m.jsx)(l.q7,{asChild:!0,...u,focusable:!a,active:h,children:(0,m.jsx)(s.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...o,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,i.m)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||a||!e||c.onValueChange(r)})})})});j.displayName=N;var A="TabsContent",C=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:a,children:l,...c}=e,u=y(A,n),d=I(u.baseId,i),p=F(u.baseId,i),h=i===u.value,x=r.useRef(h);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(o.C,{present:a||h,children:n=>{let{present:r}=n;return(0,m.jsx)(s.sG.div,{"data-state":h?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:x.current?"0s":void 0},children:r&&l})}})});function I(e,t){return"".concat(e,"-trigger-").concat(t)}function F(e,t){return"".concat(e,"-content-").concat(t)}C.displayName=A;var D=v,k=w,T=j,P=C},26476:(e,t,n)=>{n.d(t,{J:()=>c});var r=n(95155),i=n(12115),a=n(7125),l=n(6191),o=n(64269),s=n(65142);function c(e){let{value:t,inputValue:n,onChange:c,onInputChange:u,min:d=1,max:m,step:p=1,allowEmpty:h=!1,disabled:x=!1,className:f,startAddon:g,startAddonClassName:y,minusButtonClassName:v,plusButtonClassName:b,inputWrapperClassName:w,inputClassName:N,minusIcon:j,plusIcon:A,inputProps:C}=e,I=i.useCallback(e=>{let t=Math.max(d,e);return null==m?t:Math.min(m,t)},[d,m]),F=""===t?d:t,D=!x&&p>0&&(""===t?h:F>d),k=!x&&p>0&&(""===t||null==m||F<m);return(0,r.jsxs)("div",{className:(0,o.cn)("mt-2 flex h-11 w-full items-center overflow-hidden rounded-[4px] border border-[#D5D5DC] bg-white",f),children:[g?(0,r.jsx)("div",{className:(0,o.cn)("flex shrink-0 items-center",y),children:g}):null,(0,r.jsx)("button",{type:"button",className:(0,o.cn)("flex h-10 w-10 items-center justify-center p-[10px]",v),disabled:!D,onClick:()=>c(I(F-p),{source:"minus"}),children:null!=j?j:(0,r.jsx)(a.A,{className:"h-5 w-5 text-[#6B6B6E]",strokeWidth:1.25})}),(0,r.jsx)("div",{className:(0,o.cn)("flex h-11 flex-1 items-center justify-center border-x border-[#D5D5DC] px-4 py-3 text-[16px] leading-5 font-bold text-[#272A36]",w),children:(0,r.jsx)(s.p,{type:"number",min:d,max:m,step:p,disabled:x,value:null!=n?n:t,onChange:e=>{if(null==u||u(e),u)return;let t=e.target.value;if(""===t)return void c(h?"":d,{source:"input"});let n=Number(t);Number.isFinite(n)&&c(I(n),{source:"input"})},...C,className:(0,o.cn)("no-spinner h-5 w-full border-0 bg-transparent p-0 text-center text-[16px] leading-5 font-bold text-[#272A36] shadow-none focus-visible:ring-0",N,null==C?void 0:C.className)})}),(0,r.jsx)("button",{type:"button",className:(0,o.cn)("flex h-10 w-10 items-center justify-center p-[10px]",b),disabled:!k,onClick:()=>c(I(F+p),{source:"plus"}),children:null!=A?A:(0,r.jsx)(l.A,{className:"h-5 w-5 text-[#6B6B6E]",strokeWidth:1.25})})]})}},28272:(e,t,n)=>{n.r(t),n.d(t,{default:()=>z});var r=n(95155),i=n(39180),a=n(97453),l=n(12115),o=n(74491),s=n(21383),c=n(33980),u=n(96950),d=n(78645),m=n(6180),p=n(13744),h=n(86091),x=n(7125),f=n(6191),g=n(15239),y=n(26476),v=n(86456),b=n(50846),w=n(8948),N=n(52448),j=n(13904),A=n(24902),C=n(10051);let I=["HTTP","SOCKS5"],F={VIETTEL:"/images/images-Template4/viettel.png",FPT:"/images/images-template-10/fpt.svg",VNPT:"/images/images-template-10/vnpt.svg",US:"/images/datacenter-us-flag.webp",CMC:"/images/datacenter-vn-flag.webp"},D={VIETTEL:"#FFA5A5",FPT:"#FFB080",VNPT:"#4B95DE",US:"#4B95DE",CMC:"#4B95DE"};function k(e){let{product:t,label:n,provider:i,redirect:a="/proxies"}=e,o=Number(t.price),s="US"===i||"CMC"===i,[c,u]=(0,l.useState)("1"),[k,T]=(0,l.useState)("1"),{form:P,isSubmitting:_,dayOfUse:z,quantity:B,unitLower:S,unitCapital:M,totalPrice:E,totalPriceBeforeDiscount:V,activeDiscount:L,activePercentOff:R,appliedDiscountPercent:U,payload:O,openLogin:q,setOpenLogin:G,paymentModal:K,setPaymentModal:H,onSubmit:J}=(0,d.y)({product:t,provider:i,randomUsers:m.G,isUsLikeProvider:s,defaultValues:{user:"",password:""},includeStaticFields:!1}),W="".concat(M," sử dụng");return(0,l.useEffect)(()=>{var e,t;u(String(null!=(e=P.getValues("dayOfUse"))?e:"")),T(String(null!=(t=P.getValues("quantity"))?t:""))},[P]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.lV,{...P,children:(0,r.jsxs)("form",{onSubmit:J,className:"mb-3 flex min-h-[500px] w-full min-w-0 flex-col gap-2.5 rounded-2xl border border-[#D4BDF5] bg-[#F6F5FF] p-4 sm:p-5 lg:min-h-[520px] lg:p-5 xl:min-h-[540px]",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,r.jsx)("div",{className:"flex h-8 w-[52px] shrink-0 items-center justify-center border-r sm:w-[58.18px]",style:{borderColor:D[i]},children:(0,r.jsx)(g.default,{src:F[i],alt:i,width:96,height:40,unoptimized:!0,className:"h-auto max-h-9 w-auto object-cover sm:max-h-10"})}),(0,r.jsx)("h3",{className:"text-primary text-[18px] leading-6 font-bold sm:text-[20px] sm:leading-[25px]",children:n})]}),(0,r.jsx)("div",{className:"flex min-h-[46px] w-full items-center justify-center rounded-full bg-[#312549] px-4 py-1.5 sm:px-6",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-baseline justify-center gap-x-1 gap-y-0.5 text-center",children:[(0,r.jsx)("span",{className:"text-[22px] leading-7 font-bold text-[#F3EFFF] sm:text-[26px] sm:leading-8",children:p.A.formatNum2(o)}),(0,r.jsxs)("span",{className:"text-[14px] leading-5 font-bold text-[#F3EFFF] sm:text-[16
1px]",children:["VNĐ/",S]})]})})]}),R>0?(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-[#FF8D28] p-1",children:(0,r.jsx)(C.F.DiscountIcon,{className:"h-5 w-5 text-white"})}),(0,r.jsxs)("div",{className:"text-[14px] leading-5 font-semibold text-[#FF8D28] sm:text-[16px] sm:leading-[21px]",children:["Mua ",null==L?void 0:L.minDay," ",S," giảm ",R," ","%"]})]}):null,(0,r.jsxs)("div",{className:"min-w-0 space-y-2.5",children:[(0,r.jsx)(b.zB,{control:P.control,name:"dayOfUse",render:e=>{var t;let{field:n}=e;return(0,r.jsxs)(b.eI,{className:"grid min-w-0 grid-cols-1 gap-x-4 gap-y-1 md:grid-cols-[100px_minmax(0,1fr)] md:items-center md:gap-x-6",children:[(0,r.jsx)(b.lR,{className:"text-[14px] leading-[18px] font-bold whitespace-nowrap text-black",children:W}),(0,r.jsx)(b.MJ,{children:(0,r.jsx)(y.J,{value:null!=(t=n.value)?t:"",inputValue:c,onChange:e=>{u(""===e?"":String(e)),n.onChange(""===e?1:e)},onInputChange:e=>(0,h.Wj)({form:P,name:"dayOfUse",nextValue:e.target.value,setInputValue:u,onValueChange:n.onChange}),min:1,step:1,className:"mt-0 h-[34px] w-full rounded border-0 bg-white",minusButtonClassName:"h-[34px] w-[34px] bg-[#EBEBEB] p-0 text-[#6B6B6E]",plusButtonClassName:"h-[34px] w-[34px] bg-[#EBEBEB] p-0 text-[#6B6B6E]",inputWrapperClassName:"h-[34px] border-x-0 px-0 py-0",inputClassName:"no-spinner h-[34px] flex-1 rounded-none border-none bg-white text-center text-[14px] font-bold text-black shadow-none focus-visible:ring-0",minusIcon:(0,r.jsx)(x.A,{className:"h-4 w-4"}),plusIcon:(0,r.jsx)(f.A,{className:"h-4 w-4"}),inputProps:{onKeyDown:h.Y$,onBlur:()=>(0,h.xf)({form:P,name:"dayOfUse",setInputValue:u,onValueChange:n.onChange,min:1})}})}),(0,r.jsx)(b.C5,{className:"md:col-start-2"})]})}}),(0,r.jsx)(b.zB,{control:P.control,name:"quantity",render:e=>{var t;let{field:n}=e;return(0,r.jsxs)(b.eI,{className:"grid min-w-0 grid-cols-1 gap-x-4 gap-y-1 md:grid-cols-[100px_minmax(0,1fr)] md:items-center md:gap-x-6",children:[(0,r.jsx)(b.lR,{className:"text-[14px] leading-[18px] font-bold text-black",children:"Số g\xf3i"}),(0,r.jsx)(b.MJ,{children:(0,r.jsx)(y.J,{value:null!=(t=n.value)?t:"",inputValue:k,onChange:e=>{T(""===e?"":String(e)),n.onChange(""===e?1:e)},onInputChange:e=>(0,h.Wj)({form:P,name:"quantity",nextValue:e.target.value,setInputValue:T,onValueChange:n.onChange}),min:1,step:1,className:"mt-0 h-[34px] w-full rounded border-0 bg-white",minusButtonClassName:"h-[34px] w-[34px] bg-[#EBEBEB] p-0 text-[#6B6B6E]",plusButtonClassName:"h-[34px] w-[34px] bg-[#EBEBEB] p-0 text-[#6B6B6E]",inputWrapperClassName:"h-[34px] border-x-0 px-0 py-0",inputClassName:"no-spinner h-[34px] flex-1 rounded-none border-none bg-white text-center text-[14px] font-bold text-black shadow-none focus-visible:ring-0",minusIcon:(0,r.jsx)(x.A,{className:"h-4 w-4"}),plusIcon:(0,r.jsx)(f.A,{className:"h-4 w-4"}),inputProps:{onKeyDown:h.Y$,onBlur:()=>(0,h.xf)({form:P,name:"quantity",setInputValue:T,onValueChange:n.onChange,min:1})}})}),(0,r.jsx)(b.C5,{className:"md:col-start-2"})]})}}),(0,r.jsx)(b.zB,{control:P.control,name:"protocolType",render:e=>{let{field:t}=e;return(0,r.jsxs)(b.eI,{className:"grid min-w-0 grid-cols-1 gap-x-4 md:grid-cols-[100px_minmax(0,1fr)] md:items-center md:gap-x-6",children:[(0,r.jsx)(b.lR,{className:"text-[14px] leading-[18px] font-bold text-black",children:"Giao thức"}),(0,r.jsxs)(N.l6,{value:t.value,onValueChange:t.onChange,children:[(0,r.jsx)(b.MJ,{children:(0,r.jsx)(N.bq,{className:"h-[34px] flex-1 justify-between rounded bg-white px-4 text-[14px] font-bold text-black shadow-none",children:(0,r.jsx)("span",{className:"flex-1 text-left",children:(0,r.jsx)(N.yv,{})})})}),(0,r.jsx)(N.gC,{children:I.map(e=>(0,r.jsx)(N.eb,{value:e,children:e},e))})]})]})}}),(0,r.jsx)(b.zB,{control:P.control,name:"user",render:e=>{let{field:t}=e;return(0,r.jsxs)(b.eI,{className:"grid min-w-0 grid-cols-1 gap-x-4 md:grid-cols-[100px_minmax(0,1fr)] md:items-center md:gap-x-6",children:[(0,r.jsx)(b.lR,{className:"text-[14px] leading-[18px] font-bold text-black",children:"T\xe0i khoản"}),(0,r.jsx)(b.MJ,{children:(0,r.jsx)(w.p,{value:t.value,placeholder:"Random",className:"h-[34px] flex-1 rounded bg-white px-4 text-[14px] text-black shadow-none focus-visible:ring-0",onChange:e=>t.onChange(e.target.value)})})]})}}),(0,r.jsx)(b.zB,{control:P.control,name:"password",render:e=>{let{field:t}=e;return(0,r.jsxs)(b.eI,{className:"grid min-w-0 grid-cols-1 gap-x-4 md:grid-cols-[100px_minmax(0,1fr)] md:items-center md:gap-x-6",children:[(0,r.jsx)(b.lR,{className:"text-[14px] leading-[18px] font-bold text-black",children:"Mật khẩu"}),(0,r.jsx)(b.MJ,{children:(0,r.jsx)(w.p,{value:t.value,placeholder:"Random",className:"h-[34px] flex-1 rounded bg-white px-4 text-[14px] text-black shadow-none focus-visible:ring-0",onChange:e=>t.onChange(e.target.value)})})]})}})]}),(0,r.jsxs)("div",{className:"mt-auto min-w-0 pt-2",children:[(0,r.jsxs)("div",{className:"mb-3 flex min-h-[48px] flex-wrap items-center justify-end gap-x-2 gap-y-1 border-t border-[#D4BDF5] pt-2 text-[16px]",children:[(0,r.jsx)("span",{className:"text-[15px] leading-5 font-normal text-black sm:text-[16
1px]",children:"Th\xe0nh tiền"}),U>0?(0,r.jsxs)("span",{className:"inline-flex h-[19px] items-center rounded-full bg-[#FF383C] px-1.5 text-[12px] leading-[15px] font-bold text-white",children:["-",U,"%"]}):null,(0,r.jsxs)("span",{className:"text-right text-[15px] leading-5 font-bold break-words text-[#FF0000] sm:text-[16px]",children:[p.A.formatNum2(Number(E))," VNĐ"]}),U>0&&Number(V)>Number(E)?(0,r.jsxs)("span",{className:"basis-full text-right text-[13px] leading-4 font-semibold text-[#8E8F94] line-through",children:[p.A.formatNum2(Number(V))," VNĐ"]}):null]}),(0,r.jsx)(v.$,{type:"submit",disabled:_,className:"bg-primary h-[34px] w-full rounded-full text-[14px] leading-[18px] font-bold text-[#F3EFFF] hover:brightness-110",children:"Thanh to\xe1n"})]})]})}),q&&(0,r.jsx)(j.A,{onCallBack:()=>G(!1)}),(0,r.jsx)(A.A,{open:K,onClose:()=>H(!1),payload:O,formParent:P,redirect:a})]})}let T={"combo-proxy-tinh":"Combo Proxy tĩnh","combo-datacenter-vn":"Combo Proxy Datacenter VN","combo-datacenter-us":"Combo Proxy Datacenter US"},P=(e,t)=>e.find(e=>{var n;return(null==(n=e.category)?void 0:n.slug)===t}),_={"combo-proxy-tinh":3,"combo-datacenter-vn":2,"combo-datacenter-us":2};function z(){let{initialProducts:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,a.ZA)("tab",a.tU.withDefault("combo-proxy-tinh")),d=(0,i.r)(e=>{var t;return null==(t=e.config)?void 0:t.merchantId}),{products:m,isLoading:p}=(0,o.m)(void 0!==e?void 0:d),h=null!=e?e:m,x=l.useMemo(()=>{let e=null!=h?h:[],t=P(e,"combo-tinh-vn-100"),n=P(e,"combo-dc-us-50"),r=P(e,"combo-dc-us-100"),i=P(e,"combo-dc-vn-50"),a=P(e,"combo-dc-vn-100"),l=t?["VIETTEL","VNPT","FPT"].map(e=>({product:t,provider:e,label:"Combo 100 Proxy",redirect:"/proxies"})):[];return{"combo-proxy-tinh":l,"combo-datacenter-vn":[i&&{product:i,provider:"CMC",label:"Combo 50 Proxy DC VN",redirect:"/proxies-datacenter"},a&&{product:a,provider:"CMC",label:"Combo 100 Proxy DC VN",redirect:"/proxies-datacenter"}].filter(Boolean),"combo-datacenter-us":[n&&{product:n,provider:"US",label:"Combo 50 Proxy DC US",redirect:"/proxies-datacenter"},r&&{product:r,provider:"US",label:"Combo 100 Proxy DC US",redirect:"/proxies-datacenter"}].filter(Boolean)}},[h]);return(0,r.jsx)(s.A,{scrollable:!0,openMarqueeTop:!0,children:(0,r.jsxs)("div",{className:"flex w-full min-w-0 flex-col items-start gap-4",children:[(0,r.jsx)(u.D,{title:"Combo sản phẩm"}),(0,r.jsx)("div",{className:"flex w-full min-w-0 flex-col items-start gap-4 roun
1ded-lg border border-[#DBD7FF] p-3 md:p-4",style:{background:"linear-gradient(135deg, #FFFFFF 0%, rgba(244,239,255,0.6) 50%, #FFFFFF 100%)"},children:(0,r.jsxs)(c.tU,{value:t,onValueChange:e=>n(e),className:"w-full",children:[(0,r.jsx)("div",{className:"flex w-full min-w-0 justify-start xl:justify-center",children:(0,r.jsx)(c.j7,{className:"mb-2 grid h-auto w-full grid-cols-1 gap-2 rounded-[20px] bg-[#F3EFFF] p-2 md:grid-cols-3 md:gap-3 xl:flex xl:w-auto xl:flex-wrap xl:justify-center xl:rounded-full xl:px-2 xl:py-2",children:Object.keys(T).map(e=>(0,r.jsx)(c.Xi,{value:e,className:"w-full rounded-full px-3 py-2 text-center text-[12px] font-bold leading-tight whitespace-normal text-[rgb(from_var(--primary)_calc(r_+_82)_calc(g_+_96)_calc(b_+_77))] data-[state=active]:bg-[rgb(from_var(--primary)_calc(r_-_21)_calc(g_-_9)_calc(b_-_71))] data-[state=active]:text-white md:text-[13px] xl:w-auto xl:px-4 xl:text-sm xl:whitespace-nowrap",children:T[e]},e))})}),Object.keys(T).map(e=>{var t;let n=x[e],i=(t=p?_[e]:n.length)>=3?"grid min-w-0 grid-cols-1 gap-4 md:gap-6 lg:grid-cols-2 xl:grid-cols-3":2===t?"grid min-w-0 grid-cols-1 gap-4 md:gap-6 lg:mx-auto lg:max-w-[880px] lg:grid-cols-2":"grid min-w-0 grid-cols-1 gap-4 md:gap-6 lg:mx-auto lg:max-w-[440px]",a="combo-proxy-tinh"===e?"h-[420px] sm:h-[560px]":"h-[500px] sm:h-[690px]";return(0,r.jsx)(c.av,{value:e,className:"mt-4 min-w-0 overflow-hidden",children:p?(0,r.jsx)("div",{className:i,children:Array.from({length:_[e]}).map((e,t)=>(0,r.jsx)("div",{className:"".concat(a," animate-pulse rounded-[18px] bg-white")},t))}):(0,r.jsx)("div",{className:i,children:n.map((t,n)=>(0,r.jsx)(k,{product:t.product,label:t.label,provider:t.provider,redirect:t.redirect},"".concat(e,"-").concat(t.product.id,"-").concat(t.provider,"-").concat(n)))})},e)})]})})]})})}},33980:(e,t,n)=>{n.d(t,{Xi:()=>s,av:()=>c,j7:()=>o,tU:()=>l});var r=n(95155);n(12115);var i=n(25667),a=n(64269);function l(e){let{className:t,...n}=e;return(0,r.jsx)(i.bL,{"data-slot":"tabs",className:(0,a.cn)("flex flex-col gap-2",t),...n})}function o(e){let{className:t,...n}=e;return(0,r.jsx)(i.B8,{"data-slot":"tabs-list",className:(0,a.cn)("inline-flex h-9 w-fit items-center justify-center",t),...n})}function s(e){let{className:t,...n}=e;return(0,r.jsx)(i.l9,{"data-slot":"tabs-trigger",className:(0,a.cn)("hover:bg-sidebar-hover-template-7 inline-flex cursor-pointer items-center justify-center gap-1.5 px-2 py-1 text-base font-normal whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...n})}function c(e){let{className:t,...n}=e;return(0,r.jsx)(i.UC,{"data-slot":"tabs-content",className:(0,a.cn)("flex-1 outline-none",t),...n})}},35389:(e,t,n)=>{n.d(t,{Ae:()=>m,F7:()=>c,Qg:()=>d,UF:()=>u,Vs:()=>h,Vz:()=>p});var r=n(13744),i=n(50688);let a={ngày:1,tuần:2,tháng:3},l=e=>[...e].sort((e,t)=>{var n,r;let i=((null==(n=e.category)?void 0:n.unit)||"").toLowerCase().trim(),l=((null==(r=t.category)?void 0:r.unit)||"").toLowerCase().trim();return(a[i]||999)-(a[l]||999)}),o=async()=>new URLSearchParams(window.location.search).get("previewTemplate")||("true"===sessionStorage.getItem("preview_mode")?sessionStorage.getItem("preview_template"):null),s=async e=>await o()?(0,i.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",n=await s(t);if(n){var i;return null!=(i=n.data)?i:[]}return r.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 u(e){let t="/api/v1/products?filter=category.categorytype.id:$eq:number:2",n=await s(t);if(n){var i;return l(null!=(i=n.data)?i:[])}return r.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return l(null!=(t=null==e?void 0:e.data)?t:[])}).catch(()=>[])}async function d(e){let t='/api/v1/products?filters={"provider":"CMC","category":{"categorytype":{"id":1}}}',n=await s(t);if(n){var i;return null!=(i=n.data)?i:[]}return r.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}}}',n=await s(t);if(n){var i;return null!=(i=n.data)?i:[]}return r.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',n=await s(t);if(n){var i;return null!=(i=n.data)?i:[]}return r.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 h(){let e="/api/v1/locations",t=await s(e);if(t){var n;return null!=(n=t.data)?n:[]}return r.A.fetchApi(e).then(e=>{var t;return null!=(t=null==e?void 0:e.data)?t:[]}).catch(()=>[])}}
1,52448:(e,t,n)=>{n.d(t,{bq:()=>m,eb:()=>g,gC:()=>f,l6:()=>u,um:()=>p,yv:()=>d});var r=n(95155),i=n(47887),a=n(12108),l=n(24033),o=n(12115),s=n(10051),c=n(64269);let u=i.bL;i.YJ;let d=i.WT,m=o.forwardRef((e,t)=>{let{className:n,children:a,...l}=e;return(0,r.jsxs)(i.l9,{ref:t,className:(0,c.cn)("border-border-template-5 ring-offset-background data-[placeholder]:text-muted-foreground flex h-10 w-full cursor-pointer items-center justify-between gap-2 rounded-lg border bg-white 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 [&>span]:text-black","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",n),...l,children:[a,(0,r.jsx)(i.In,{asChild:!0,children:(0,r.jsx)(s.F.ChevronsDownIcon,{className:"h-[24px] w-[24px] text-[rgb(from_var(--sidebar-foreground)_calc(r_-_73)_calc(g_-_73)_calc(b_-_72))]"})})]})});m.displayName=i.l9.displayName;let p=o.forwardRef((e,t)=>{let{className:n,children:a,...l}=e;return(0,r.jsxs)(i.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]",n),...l,children:[a,(0,r.jsx)(i.In,{asChild:!0,children:(0,r.jsx)(s.F.ChevronsDownIcon,{className:"h-[20px] w-[20px] text-[#161616]"})})]})});p.displayName=i.l9.displayName;let h=o.forwardRef((e,t)=>{let{className:n,...l}=e;return(0,r.jsx)(i.PP,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",n),...l,children:(0,r.jsx)(a.A,{className:"h-4 w-4"})})});h.displayName=i.PP.displayName;let x=o.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(i.wn,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",n),...a,children:(0,r.jsx)(l.A,{className:"h-4 w-4"})})});x.displayName=i.wn.displayName;let f=o.forwardRef((e,t)=>{let{className:n,children:a,position:l="popper",...o}=e;return(0,r.jsx)(i.ZL,{children:(0,r.jsxs)(i.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"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:l,...o,children:[(0,r.jsx)(h,{}),(0,r.jsx)(i.LM,{className:(0,c.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,r.jsx)(x,{})]})})});f.displayName=i.UC.displayName,o.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,r.jsx)(i.JU,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",n),...a})}).displayName=i.JU.displayName;let g=o.forwardRef((e,t)=>{let{className:n,children:a,...l}=e;return(0,r.jsx)(i.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",n),...l,children:(0,r.jsx)(i.p4,{children:a})})});g.displayName=i.q7.displayName,o.forwardRef((e,t)=>{let{className:n,...a}=e;
1return(0,r.jsx)(i.wv,{ref:t,className:(0,c.cn)("bg-muted -mx-1 my-1 h-px",n),...a})}).displayName=i.wv.displayName},66280:(e,t,n)=>{n.d(t,{Fp:()=>d,RT:()=>c,S1:()=>o,U1:()=>s,Zr:()=>u});var r=n(85400),i=n(96199),a=n(13744),l=n(39180);function o(){var e,t;let{config:n}=(0,l.r)(),i=null==n?void 0:n.merchantId,{data:o,error:s,isLoading:c}=(0,r.Ay)(i?["/api/v1/discount-rules",i]:null,e=>{let[t,n]=e;return a.A.fetchApi(t,void 0,{headers:{"x-merchant-id":n}}).then(e=>{var t,n;let r={};for(let[n,i]of Object.entries(null!=(t=null==e?void 0:e.rulesByCategory)?t:{}))r[n]=i.map(e=>({minDay:Number(e.minDay),maxDay:null==e.maxDay?"Infinity":Number(e.maxDay),discount:Number(e.discount)}));return{scope:null!=(n=null==e?void 0:e.scope)?n:null,rulesByCategory:r}})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{rulesByCategory:null!=(e=null==o?void 0:o.rulesByCategory)?e:{},scope:null!=(t=null==o?void 0:o.scope)?t:null,isLoading:c,error:s}}function s(){var e,t;let{data:n}=(0,i.wV)(),l=null==n||null==(e=n.user)?void 0:e.accessToken,{data:o,error:s,isLoading:c}=(0,r.Ay)(l?["/api/v1/discount-rules/admin-defaults",l]:null,e=>{let[t,n]=e;return a.A.fetchApi(t,n).then(e=>{var t,n;let r={};for(let[n,i]of Object.entries(null!=(t=null==e?void 0:e.rulesByCategory)?t:{}))r[n]=i.map(e=>({minDay:Number(e.minDay),maxDay:null==e.maxDay?"Infinity":Number(e.maxDay),discount:Number(e.discount)}));return{scope:null!=(n=null==e?void 0:e.scope)?n:null,rulesByCategory:r}})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{rulesByCategory:null!=(t=null==o?void 0:o.rulesByCategory)?t:{},isLoading:c,error:s}}function c(){var e;let{data:t}=(0,i.wV)(),n=null==t||null==(e=t.user)?void 0:e.accessToken,{data:l,error:o,isLoading:s,mutate:c}=(0,r.Ay)(n?["/api/v1/discount-rules/admin",n]:null,e=>{let[t,n]=e;return a.A.fetchApi(t,n).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!=l?l:[],isLoading:s,error:o,refetch:c}}async function u(e,t,n){return a.A.postApi("/api/v1/discount-rules/bulk-replace",n?{rules:t,effectiveFrom:n}:{rules:t},e).then(e=>e)}function d(){var e;let{data:t}=(0,i.wV)(),n=null==t||null==(e=t.user)?void 0:e.accessToken,{data:l,error:o,isLoading:s}=(0,r.Ay)(n?["/api/v1/categories?page=1&limit=50",n]:null,e=>{let[t,n]=e;return a.A.fetchApi(t,n).then(e=>{var t;return(null!=(t=null==e?void 0:e.data)?t:[]).map(e=>{var t,n,r,i;return{id:e.id,slug:null!=(n=e.slug)?n:"",name:null!=(i=null!=(r=e.name)?r:e.slug)?i:"",unit:e.unit,categorytypeId:null==(t=e.categorytype)?void 0:t.id}})})},{revalidateOnFocus:!1,dedupingInterval:3e5});return{categories:null!=l?l:[],isLoading:s,error:o}}},72431:(e,t,n)=>{n.d(t,{RG:()=>w,bL:()=>T,q7:()=>P});var r=n(12115),i=n(92556),a=n(49972),l=n(94446),o=n(3468),s=n(68946),c=n(97602),u=n(70222),d=n(23558),m=n(66218),p=n(95155),h="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},f="RovingFocusGroup",[g,y,v]=(0,a.N)(f),[b,w]=(0,o.A)(f,[v]),[N,j]=b(f),A=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(C,{...e,ref:t})})}));A.displayName=f;var C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:o=!1,dir:s,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:j=!1,...A}=e,C=r.useRef(null),I=(0,l.s)(t,C),F=(0,m.jH)(s),[D,T]=(0,d.i)({prop:g,defaultProp:null!=v?v:null,onChange:b,caller:f}),[P,_]=r.useState(!1),z=(0,u.c)(w),B=y(n),S=r.useRef(!1),[M,E]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(h,z),()=>e.removeEventListener(h,z)},[z]),(0,p.jsx)(N,{scope:n,orientation:a,dir:F,loop:o,currentTabStopId:D,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>_(!0),[]),onFocusableItemAdd:r.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>E(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:P||0===M?-1:0,"data-orientation":a,...A,ref:I,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!S.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(h,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=B().filter(e=>
1e.focusable);k([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),j)}}S.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>_(!1))})})}),I="RovingFocusGroupItem",F=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:o,children:u,...d}=e,m=(0,s.B)(),h=o||m,x=j(I,n),f=x.currentTabStopId===h,v=y(n),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:N}=x;return r.useEffect(()=>{if(a)return b(),()=>w()},[a,b,w]),(0,p.jsx)(g.ItemSlot,{scope:n,id:h,focusable:a,active:l,children:(0,p.jsx)(c.sG.span,{tabIndex:f?0:-1,"data-orientation":x.orientation,...d,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{a?x.onItemFocus(h):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>x.onItemFocus(h)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,x.orientation,x.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=x.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>k(n))}}),children:"function"==typeof u?u({isCurrentTabStop:f,hasTabStop:null!=N}):u})})});F.displayName=I;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var T=A,P=F},74491:(e,t,n)=>{n.d(t,{m:()=>l});var r=n(35389),i=n(85400);let a={revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:3e5,revalidateIfStale:!1};function l(e){let{data:t,isLoading:n}=(0,i.Ay)(e?["products-combo",e]:null,e=>{let[,t]=e;return(0,r.Vz)(t)},a);return{products:null!=t?t:[],isLoading:null!=n&&n}}},75507:(e,t,n)=>{function r(e){let{dayOfRenewal:t,selectedProxies:n,products:r,rulesByCategory:i,taxPercent:a}=e,l=0;for(let e of n){var o,s,c,u;let n=r.find(t=>{var n,r;return t.provider===(null==(r=e.proxy)||null==(n=r.ipaddress)?void 0:n.provider)}),d=null==n||null==(o=n.category)?void 0:o.id,m=d?null==i?void 0:i[d]:void 0,p=function(e,t,n,r){let i=Number(e||0)*Number(1)*Number(n||0),a=null==r?void 0:r.find(e=>{let t="Infinity"===e.maxDay?1/0:Number(e.maxDay);return n>=e.minDay&&n<=t});return a&&(i*=a.discount),Math.round(i)}(null==n?void 0:n.price,0,t,m),h=(null!=(u=null==(s=e.order)?void 0:s.hasTaxCode)?u:!!(null==(c=e.order)?void 0:c.taxCode))&&Number(a||0)>0?Math.round(p*Number(a||0)/100):0;l+=p+h}return Math.round(l)}function i(e){let{price:t,quantity:n,days:r,discountRules:i,hasDiscountConfig:a=!0}=e;if(!t||!n||!r)return null;let l=Number(t)*Number(n)*Number(r);
1if(a){let e=null==i?void 0:i.find(e=>{let t="Infinity"===e.maxDay?1/0:Number(e.maxDay);return r>=e.minDay&&r<=t});e&&(l*=e.discount)}return Math.round(l)}function a(e,t){let n=Number(e),r=Number(t);return n&&r&&!(n<=r)?Math.round((n-r)/n*100):null}n.d(t,{ZS:()=>r,Zz:()=>i,zJ:()=>a})},78645:(e,t,n)=>{n.d(t,{y:()=>h});var r=n(2030),i=n(66280),a=n(86091),l=n(75507);function o(e){let t=Number(e);if(!Number.isFinite(t))return 0;let n=100-100*t;return Number.isFinite(n)?Math.max(0,Math.min(100,Math.round(n))):0}var s=n(12115),c=n(66942),u=n(46671),d=n.n(u),m=n(96199),p=n(22544);function h(e){var t,n,u,h,x,f;let{product:g,provider:y,randomUsers:v=r.Gb,isUsLikeProvider:b,defaultValues:w,discountIntervalMs:N=3e3,includeStaticFields:j=!0}=e,A="thang"===(null!=(x=null==g||null==(t=g.category)?void 0:t.unit)?x:"ng\xe0y").toLowerCase()?"th\xe1ng":(null!=(f=null==g||null==(n=g.category)?void 0:n.unit)?f:"ng\xe0y").toLowerCase(),C=A.length>0?A.charAt(0).toUpperCase()+A.slice(1):A,{data:I,status:F}=(0,m.wV)(),[D,k]=(0,s.useState)(!1),[T,P]=(0,s.useState)(!1),[_,z]=(0,s.useState)({});(0,s.useEffect)(()=>{"authenticated"===F&&k(!1)},[F]);let B="US"===y||"CMC"===y,S=(null!=b?b:B)?a.Nq:a.nz,M=(0,p.mN)({resolver:(0,c.u)(S),defaultValues:{dayOfUse:1,quantity:1,protocolType:"HTTP",user:"",password:"",payment:"",...null!=w?w:{}},mode:"onChange",reValidateMode:"onChange"}),{formState:{isSubmitting:E}}=M,{rulesByCategory:V}=(0,i.S1)(),L=(null==(u=g.category)?void 0:u.id)?V[g.category.id]:void 0,R=(0,s.useMemo)(()=>(null!=L?L:[]).filter(e=>Number(e.discount)>0).slice().sort((e,t)=>Number(e.minDay)-Number(t.minDay)),[L]),U=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,[r,i]=(0,s.useState)(0);return(0,s.useEffect)(()=>{i(0)},[e,t]),(0,s.useEffect)(()=>{if(t<=1)return;let e=window.setInterval(()=>{i(e=>(e+1)%t)},n);return()=>window.clearInterval(e)},[n,t]),r}(null==(h=g.category)?void 0:h.id,R.length,N),O=M.watch("quantity"),q=M.watch("dayOfUse"),G=Number(g.price),K=Number(O),H=Number(q),J=Number.isFinite(K)&&Number.isFinite(H)&&K>=1&&H>=1,W=J?K:0,Z=J?H:0,$=(0,s.useMemo)(()=>(0,l.Zz)({price:G,quantity:W,days:Z,discountRules:L}),[L,G,Z,W]),X=(0,s.useMemo)(()=>(0,l.Zz)({price:G,quantity:O,days:q,hasDiscountConfig:!1}),[q,G,O]),Y=R[U],Q=Y?o(Number(Y.discount)):0,ee=(0,s.useMemo)(()=>(function(e,t){let n=e.find(e=>{let n=Number(e.minDay),r="Infinity"===e.maxDay?1/0:Number(e.maxDay);return t>=n&&t<=r});return n?o(Number(n.discount)):0})(R,Number(null!=q?q:0)),[q,R]);async function et(e){var t,n;if(!(null==I||null==(t=I.user)?void 0:t.accessToken))return void k(!0);let r=e.user&&"random"!==e.user.trim().toLowerCase()&&""!==e.user.trim()?e.user:"".concat(null!=(n=d().sample(v))?n:"admin").concat(Math.floor(1e3*Math.random())),i=e.password&&"random"!==e.password.trim().toLowerCase()&&""!==e.password.trim()?e.password:btoa(Math.random().toString()).substring(12).toLowerCase(),a={dayOfUse:e.dayOfUse,quantity:e.quantity,protocolType:e.protocolType,user:r,password:i,provider:y,product:{id:g.id}};j&&(a.isCdk=!1,a.rotateInterval=0),z({products:[a],total:$}),P(!0)}return{form:M,isSubmitting:E,unitLower:A,unitCapital:C,quantity:O,dayOfUse:q,totalPrice:$,totalPriceBeforeDiscount:X,discounts:R,discountIndex:U,activeDiscount:Y,activePercentOff:Q,appliedDiscountPercent:ee,payload:_,openLogin:D,paymentModal:T,setPaymentModal:P,setOpenLogin:k,onSubmit:M.handleSubmit(et)}}},86091:(e,t,n)=>{n.d(t,{Av:()=>p,EC:()=>b,Nq:()=>g,UU:()=>m,Wj:()=>u,Y$:()=>c,_m:()=>y,kH:()=>v,nz:()=>x,vH:()=>f,xf:()=>d,xm:()=>h});var r=n(15653);let i={shouldDirty:!0,shouldTouch:!0,shouldValidate:!0},a=r.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"}),l=r.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"}),o=r.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 s(e){let t=Number(e);return Number.isNaN(t)||t<1?null:t}function c(e){"-"===e.key&&e.preventDefault()}function u(e){let{form:t,name:n,nextValue:r,setInputValue:a,onValueChange:l}=e;if(!r){a(""),t.setValue(n,void 0,i);return}a(r);let o=s(r);null!==o&&l(o)}function d(e){let{form:t,name:n,setInputValue:r,onValueChange:i,min:a=1}=e,l=t.getValues(n),o="number"==typeof l?l:Number(String(null!=l?l:""));if(!Number.isFinite(o)||o<a){r(String(a)),i(a);return}r(String(o))}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",r={...t};
1return e.forEach(e=>{e in r||(r[e]=n)}),r}function p(e){let{form:t,name:n,nextValue:r,rowId:a,setInputValues:l,onValueChange:o}=e;if(!r){l(e=>({...e,[a]:""})),t.setValue(n,void 0,i);return}l(e=>({...e,[a]:r}));let c=s(r);null!==c&&o(c)}let h=r.z.object({location:r.z.string().optional(),dayOfUse:a,quantity:o,prefix_ip:r.z.string(),protocolType:r.z.string(),user:r.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:r.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:r.z.string().optional()}),x=h.omit({location:!0,prefix_ip:!0}),f=h.extend({dayOfUse:l,isCdk:r.z.boolean().optional(),rotateInterval:r.z.number().optional()}),g=x.extend({dayOfUse:l,isCdk:r.z.boolean().optional(),rotateInterval:r.z.number().optional()}),y=r.z.object({dayOfUse:a,quantity:o,protocolType:r.z.string(),user:r.z.string().min(2,{message:"T\xe0i khoản c\xf3 \xedt nhất 2 k\xed tự"}),password:r.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:r.z.number().min(0,"Thời gian xoay lớn hơn 0").int({message:"Phải l\xe0 số nguy\xean"}).optional(),isAutoRotate:r.z.boolean(),isCdk:r.z.boolean()}),v=r.z.object({autoRotate:r.z.boolean(),rotateTime:r.z.number({required_error:"Nhập số lớn hơn 0",invalid_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:r.z.enum(["day","week","month"]),user:r.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:r.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:a,quantity:o}),b=r.z.object({dayOfUse:r.z.record(r.z.string(),a),quantity:r.z.record(r.z.string(),o),protocolType:r.z.record(r.z.string(),r.z.string()),user:r.z.record(r.z.string(),r.z.string().min(2,{message:"T\xe0i khoản c\xf3 \xedt nhất 2 k\xed tự"})),password:r.z.record(r.z.string(),r.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:r.z.record(r.z.string(),r.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:r.z.record(r.z.string(),r.z.boolean()),isCdk:r.z.record(r.z.string(),r.z.boolean())})},96950:(e,t,n)=>{n.d(t,{D:()=>i});var r=n(95155);let i=e=>{let{title:t,description:n,showDiscountBadge:i=!1,discountBadgeText:a}=e;return(0,r.jsx)("div",{className:"mx-auto flex w-full items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mulish text-primary max-h-[20px] text-base leading-5 font-bold",children:t}),i&&a?(0,r.jsx)("span",{className:"font-mulish rounded-full bg-[#FE0000] px-2 py-1 font-bold text-white",children:a}):null]})})}}}]);

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.