1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20947],{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"}]])},20305:(e,t,n)=>{n.d(t,{A:()=>r});var r=(0,n(30313).A)("outline","command","IconCommand",[["path",{d:"M7 9a2 2 0 1 1 2 -2v10a2 2 0 1 1 -2 -2h10a2 2 0 1 1 -2 2v-10a2 2 0 1 1 2 2h-10",key:"svg-0"}]])},27183:(e,t,n)=>{n.d(t,{$b:()=>r,Cm:()=>l,Hq:()=>a,MC:()=>o,bb:()=>i,oi:()=>s});let r="flex w-full min-w-0 flex-col gap-4 xl:flex-row xl:items-stretch",l="flex min-h-[297px] w-full min-w-0 flex-col justify-center overflow-hidden xl:h-[297px] xl:min-w-0 xl:flex-[748_1_0%]",a="flex min-h-[297px] w-full min-w-0 flex-col justify-between gap-3 xl:h-[297px] xl:min-w-0 xl:shrink-0 xl:flex-[372_1_0%] xl:overflow-hidden",i="h-[297px] w-full min-w-0 rounded-2xl xl:min-w-0 xl:flex-[748_1_0%]",s="h-[297px] w-full min-w-0 rounded-2xl xl:min-w-0 xl:shrink-0 xl:flex-[372_1_0%]",o="font-inter text-[14px] leading-[19px] font-semibold text-white"},30030:(e,t,n)=>{n.d(t,{q:()=>r});let r=[{name:"HTTP",value:"HTTP"},{name:"SOCKS5",value:"SOCKS"}
1]},30313:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(12115),l={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let a=(e,t,n,a)=>{let i=(0,r.forwardRef)((n,i)=>{let{color:s="currentColor",size:o=24,stroke:d=2,title:u,className:c,children:h,...x}=n;return(0,r.createElement)("svg",{ref:i,...l[e],width:o,height:o,className:["tabler-icon","tabler-icon-".concat(t),c].join(" "),..."filled"===e?{fill:s}:{strokeWidth:d,stroke:s},...x},[u&&(0,r.createElement)("title",{key:"svg-title"},u),...a.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(h)?h:[h]])});return i.displayName="".concat(n),i}},35389:(e,t,n)=>{n.d(t,{Ae:()=>h,F7:()=>d,Qg:()=>c,UF:()=>u,Vs:()=>p,Vz:()=>x});var r=n(13744),l=n(50688);let a={ngà y:1,tuần:2,tháng:3},i=e=>[...e].sort((e,t)=>{var n,r;let l=((null==(n=e.category)?void 0:n.unit)||"").toLowerCase().trim(),i=((null==(r=t.category)?void 0:r.unit)||"").toLowerCase().trim();return(a[l]||999)-(a[i]||999)}),s=async()=>new URLSearchParams(window.location.search).get("previewTemplate")||("true"===sessionStorage.getItem("preview_mode")?sessionStorage.getItem("preview_template"):null),o=async e=>await s()?(0,l.P)(e,"GET"):null;async function d(e){let t="/api/v1/products?filter=category.categorytype.id:$eq:number:1;provider:$in:string:VNPT,FPT,VIETTEL",n=await o(t);if(n){var l;return null!=(l=n.data)?l:[]}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 o(t);if(n){var l;return i(null!=(l=n.data)?l:[])}return r.A.fetchApi(t,"",{headers:{"x-merchant-id":e}}).then(e=>{var t;return i(null!=(t=null==e?void 0:e.data)?t:[])}).catch(()=>[])}async function c(e){let t='/api/v1/products?filters={"provider":"CMC","category":{"categorytype":{"id":1}}}',n=await o(t);if(n){var l;return null!=(l=n.data)?l:[]}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(e){let t='/api/v1/products?filters={"provider":"US","category":{"categorytype":{"id":1}}}',n=await o(t);if(n){var l;return null!=(l=n.data)?l:[]}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 x(e){let t='/api/v1/products?filters={"category":{"categorytype":{"id":4}}}&page=1&limit=50',n=await o(t);if(n){var l;return null!=(l=n.data)?l:[]}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(){let e="/api/v1/locations",t=await o(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(()=>[])}},42599:(e,t,n)=>{n.r(t),n.d(t,{default:()=>k});var r=n(95155),l=n(12115),a=n(96199),i=n(22544),s=n(66942),o=n(15239),d=n(7125),u=n(6191),c=n(13744),h=n(86091),x=n(75507),p=n(16899),m=n(47528),f=n(16762),g=n(88981),v=n(96398),w=n(42901),y=n(70081),b=n(66280),j=n(10596),C=n(30030),N=n(64269),z=n(27183);function k(e){var t;let{product:n,appConfig:k,initialVnProducts:T,initialUsProducts:V}=e,{data:A}=(0,a.wV)(),[_,M]=(0,l.useState)(!1),[q,S]=(0,l.useState)({}),[F,P]=(0,l.useState)(!1),[U,D]=(0,l.useState)("US"),I=void 0!==T||void 0!==V,{products:O}=(0,y.p)(I||null==k?void 0:k.merchantId),{products:B}=(0,w.b)(I||null==k?void 0:k.merchantId),L=null!=V?V:O,R=null!=T?T:B,E=(0,i.mN)({resolver:(0,s.u)(h.vH),defaultValues:{location:"random",dayOfUse:1,quantity:1,prefix_ip:"random",protocolType:"HTTP",user:"random",password:"random"},mode:"onChange",reValidateMode:"onChange"}),{watch:H,setValue:$,handleSubmit:J,control:K,formState:{errors:W}}=E,Z=H("quantity"),Y=H("dayOfUse"),G=Number(Z),Q=Number(Y),X=Number.isFinite(G)&&Number.isFinite(Q)&&G>=1&&Q>=1,ee=X?G:0,et=X?Q:0,en=(0,l.useMemo)(()=>{var e;let t="CMC"===U?R:L;return null!=(e=null!=n?n:t[0])?e:null},[n,L,R,U]),{rulesByCategory:er}=(0,b.S1)(),el=null==en||null==(t=en.category)?void 0:t.id,ea=el?er[el]:void 0,ei=(0,x.Zz)({price:null==en?void 0:en.price,quantity:ee,days:et,discountRules:ea}),es=(0,x.Zz)({price:null==en?void 0:en.originPrice,quantity:ee,days:et,hasDiscountConfig:!1}),eo=(0,x.zJ)(null==en?void 0:en.originPrice,null==en?void 0:en.price);async function ed(e){var t;if(!(null==A||null==(t=A.user)?void 0:t.accessToken))return void M(!0);if(!en)return;let n="random"===e.user?"user".concat(Math.floor(1e4*Math.random())):e.user,r="random"===e.password?Math.random().toString(36).slice(-12):e.password;S({products:[{dayOfUse:e.dayOfUse,quantity:e.quantity,prefix_ip:e.prefix_ip,protocolType:e.protocolType,user:n,password:r,provider:en.provider,product:{id:en.id}}],total:ei}),P(!0)}return(0,r.jsxs)(p.A,{scrollable:!0,children:[(0,r.jsx)(f.lV,{...E,children:(0,r.jsxs)("form",{onSubmit:J(ed),className:"flex w-full min-w-0 flex-col items-stretch gap-4",children:[(0,r.jsx)("div",{className:"flex flex-col items-start",children:(0,r.jsx)("h1",{className:"font-inter text-lg leading-[22px] font-bold text-white sm:text-[20px] sm:leading-[25px] md:leading-[29px]",children:"Proxy Datacenter"})}
1),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-4 rounded-[16px] bg-[#222433] p-4",children:[(0,r.jsx)("div",{className:"flex w-full justify-center",children:(0,r.jsx)("h2",{className:"font-inter text-[18px] leading-[25px] font-bold text-white",children:"Chá»n nh\xe0 mạng"})}),(0,r.jsx)("div",{className:"flex w-full min-w-0 flex-wrap items-center justify-center gap-6",children:[{key:"US",label:"Proxy US",img:"/images/images-template-7/ProxyUS.png"},{key:"CMC",label:"Proxy Datacenter VN",img:"/images/images-template-7/ProxyDataCenterVN.png"}].map(e=>{let t=U===e.key;return(0,r.jsx)("button",{type:"button",onClick:()=>D(e.key),className:(0,N.cn)("box-border flex h-12 w-full max-w-full min-w-0 flex-1 basis-[280px] cursor-pointer items-center justify-center overflow-hidden rounded-[12px] border-[1.5px] px-4 transition-colors",t?"border-[#FF6F00] bg-[#222433]":"border-transparent bg-white/5 hover:border-[#FF6F00]"),children:(0,r.jsx)(o.default,{src:e.img,alt:e.label,width:180,height:32,className:"h-8 max-h-8 w-auto max-w-full object-contain"})},e.key)})})]}),(0,r.jsxs)("div",{className:z.$b,children:[(0,r.jsxs)("div",{className:(0,N.cn)(z.Cm,"grid grid-cols-1 content-center gap-x-6 gap-y-6 rounded-2xl bg-[#222433] p-6 md:grid-cols-2"),children:[(0,r.jsx)(f.zB,{control:K,name:"location",render:e=>{var t;let{field:n}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"Äá»a Äiá»m"}),(0,r.jsx)(f.MJ,{children:(0,r.jsx)(m.p,{...n,value:null!=(t=n.value)?t:"random",className:(0,N.cn)("h-10 w-full min-w-0 rounded-[8px] border bg-transparent px-2.5 shadow-none",m.k)})}),(0,r.jsx)(f.C5,{})]})}}),(0,r.jsx)(f.zB,{control:K,name:"prefix_ip",render:e=>{var t;let{field:n}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"Äầu IP"}),(0,r.jsx)(f.MJ,{children:(0,r.jsx)(m.p,{...n,value:null!=(t=n.value)?t:"random",className:(0,N.cn)("h-10 w-full min-w-0 rounded-[8px] border bg-transparent px-2.5 shadow-none",m.k)})}),(0,r.jsx)(f.C5,{})]})}}),(0,r.jsx)(f.zB,{control:K,name:"dayOfUse",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"Th\xe1ng sá» dụng"}),(0,r.jsx)(f.MJ,{children:(0,r.jsx)(m.p,{type:"number",min:1,step:1,value:t.value>0?t.value:"",className:(0,N.cn)("h-10 w-full min-w-0 rounded-[8px] border bg-transparent px-2.5 shadow-none",m.k),onKeyDown:h.Y$,onChange:e=>{let n=e.target.value;if(""===n)return void t.onChange("");t.onChange(Number(n))},onBlur:()=>{(!t.value||t.value<1)&&t.onChange(1)}})}),(0,r.jsx)(f.C5,{})]})}}),(0,r.jsx)(f.zB,{control:K,name:"protocolType",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"Giao thức"}),(0,r.jsxs)(j.l6,{onValueChange:t.onChange,value:t.value,children:[(0,r.jsx)(f.MJ,{children:(0,r.jsx)(j.bq,{className:"h-10 w-full cursor-pointer rounded-[8px] px-2.5 text-left text-sm font-normal",children:(0,r.jsx)(j.yv,{placeholder:"HTTP"})})}),(0,r.jsx)(j.gC,{children:C.q.map(e=>(0,r.jsx)(j.eb,{value:e.value,className:"cursor-pointer",children:e.name},e.value))})]}),(0,r.jsx)(f.C5,{})]})}}),(0,r.jsx)(f.zB,{control:K,name:"user",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"T\xe0i khoản"}),(0,r.jsx)(f.MJ,{children:(0,r.jsx)(m.p,{placeholder:"random",value:"random"===t.value?"":t.value,className:(0,N.cn)("h-10 w-full min-w-0 rounded-[8px] border bg-transparent px-2.5 shadow-none",m.k),onChange:e=>t.onChange(e.target.value.trim()||"random")})}),(0,r.jsx)(f.C5,{})]})}}),(0,r.jsx)(f.zB,{control:K,name:"password",render:e=>{let{field:t}=e;return(0,r.jsxs)(f.eI,{children:[(0,r.jsx)(f.lR,{className:"font-inter text-[14px] leading-[19px] font-normal text-white",children:"Máºt khẩu"}),(0,r.jsx)(f.MJ,{children:(0,r.jsx)(m.p,{placeholder:"random",value:"random"===t.value?"":t.value,className:(0,N.cn)("h-10 w-full min-w-0 rounded-[8px] border bg-transparent px-2.5 shadow-none",m.k),onChange:e=>t.onChange(e.target.value||"random")})}),(0,r.jsx)(f.C5,{})]})}})]}),(0,r.jsxs)("div",{className:(0,N.cn)(z.Hq,"relative rounded-2xl bg-[#222433] p-4"),children:[eo?(0,r.jsxs)("span",{className:"font-mulish absolute -top-3 left-4 rounded-full bg-[#FE0000] px-2 py-1 font-bold text-white",children:["- ",eo," %"]}):null,(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:z.MC,children:"Sá» lượng"}),(0,r.jsxs)("div",{className:"flex items-center gap-5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>$("quantity",Math.max(1,Z-1),{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),className:"flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-[#DBDBDC]",children:(0,r.jsx)(d.A,{size:14})}),(0,r.jsx)(m.p,{type:"number",min:1,step:1,value:Z>
10?Z:"",onKeyDown:h.Y$,onChange:e=>{let t=e.target.value;if(""===t)return void $("quantity",void 0,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0});$("quantity",Math.max(1,Number(t)),{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})},onBlur:()=>{(!E.getValues("quantity")||1>E.getValues("quantity"))&&$("quantity",1,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})},onWheel:e=>e.currentTarget.blur(),className:(0,N.cn)("font-inter h-10 w-[56px] [appearance:textfield] rounded-[8px] border bg-transparent p-0 text-center text-base font-bold shadow-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",m.k)}),(0,r.jsx)("button",{type:"button",onClick:()=>$("quantity",Z+1,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),className:"flex h-6 w-6 items-center justify-center rounded-full bg-white/20 text-[#DBDBDC]",children:(0,r.jsx)(u.A,{size:14})})]})]}),(0,r.jsxs)("div",{className:"relative flex h-[160px] min-h-[160px] w-full shrink-0 flex-col justify-between gap-2 overflow-hidden rounded-2xl px-5 py-4 shadow-lg ".concat("CMC"===U?"bg-[#00AAC4]":"bg-[#FF734C]"),children:[(0,r.jsx)(()=>(0,r.jsx)("svg",{width:"165",height:"164",viewBox:"0 0 165 164",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute -top-[-70px] -right-10 z-0",children:(0,r.jsx)("path",{d:"M65.3152 14.1717C70.09 -4.72424 96.9374 -4.72424 101.712 14.1717V14.1717C104.578 25.5135 117.008 31.4993 127.662 26.6685V26.6685C145.412 18.6201 162.152 39.6103 150.355 55.1248V55.1248C143.275 64.437 146.345 77.8869 156.764 83.2048V83.2048C174.124 92.0646 168.15 118.239 148.665 118.689V118.689C136.97 118.96 128.368 129.746 130.707 141.208V141.208C134.604 160.304 110.415 171.953 97.9147 157V157C90.4116 148.025 76.6158 148.025 69.1126 157V157C56.612 171.953 32.4233 160.304 36.32 141.208V141.208C38.6589 129.746 30.0574 118.96 18.3622 118.689V118.689C-1.12246 118.239 -7.09658 92.0646 10.2631 83.2048V83.2048C20.6828 77.8869 23.7527 64.437 16.6722 55.1248V55.1248C4.87578 39.6103 21.6149 18.6201 39.3654 26.6685V26.6685C50.0196 31.4993 62.4492 25.5135 65.3152 14.1717V14.1717Z",fill:"white",fillOpacity:"0.15"})}),{}),(0,r.jsx)(()=>(0,r.jsx)("svg",{width:"166",height:"167",viewBox:"0 0 166 167",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute -top-[55px] -right-[-180px] z-0",children:(0,r.jsx)("path",{d:"M79.6452 11.0593C87.6684 -6.70253 114.097 -1.9814 115.475 17.4597C116.302 29.1288 127.485 37.207 138.823 34.3251C157.712 29.5236 170.499 53.1302 156.158 66.3286C147.551 74.2505 148.208 88.0307 157.53 95.098C173.061 106.872 162.577 131.588 143.317 128.605C131.756 126.815 121.392 135.92 121.679 147.615C122.157 167.099 96.2967 174.312 86.6203 157.394C80.8124 147.24 67.2316 144.814 58.2671 152.329C43.3318 164.851 21.5685 149.13 28.7625 131.017C33.0806 120.145 26.5098 108.014 15.0444 105.691C-4.05742 101.822 -5.33568 75.0048 13.3115 69.3357C24.504 65.933 29.8912 53.2325 24.5586 42.8203C15.6742 25.4732 35.8436 7.7537 51.9022 18.7981C61.5409 25.4271 74.8294 21.7204 79.6452 11.0593Z",fill:"white",fillOpacity:"0.15"})}),{}),(0,r.jsx)("div",{className:"absolute top-0 bottom-0 left-[-16px] z-10 flex flex-col justify-around py-3",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:"h-4 w-8 rounded-full bg-[#222433]"},e))}),(0,r.jsx)("div",{className:"absolute top-0 right-[-16px] bottom-0 z-10 flex flex-col justify-around py-3",children:[1,2,3,4].map(e=>(0,r.jsx)("div",{className:"h-4 w-8 rounded-full bg-[#222433]"},e))}),(0,r.jsxs)("div",{className:"relative z-20 flex min-w-0 items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-white shadow-sm",children:(0,r.jsx)(o.default,{src:"CMC"===U?"/images/images-template-7/vn.png":"/images/images-template-7/usa.png",alt:"CMC"===U?"VN":"USA",width:28,height:18,className:"object-contain"})}),(0,r.jsx)("span",{className:"font-inter min-w-0 truncate text-sm font-semibold text-white sm:text-base",children:"CMC"===U?"Proxy Datacenter Viá»t Nam":"Proxy Datacenter US"})]}),(0,r.jsxs)("div",{className:"relative z-20 flex flex-col items-center gap-1",children:[(0,r.jsx)("span",{className:"text-[14px] font-semibold text-blue-950/80",children:"Tá»ng thanh to\xe1n"}),(0,r.jsx)("div",{className:"h-[1px] w-[85%] bg-white/40"})]}),(0,r.jsx)("div",{className:"relative z-20 flex justify-center",children:(0,r.jsxs)("div",{className:"flex h-[38px] w-full items-center justify-center gap-2 rounded-lg shadow-inner",style:{background:"CMC"===U?"#002541":"#A43838"},children:[(0,r.jsxs)("span",{className:"font-inter text-[18px] font-black tracking-tight text-white",children:[c.A.formatNum2(Number(ei))," VNÄ"]}),es&&ei&&Number(es)>Number(ei)?(0,r.jsxs)("span",{className:"text-[18px] font-bold text-white/70 line-through",children:[c.A.formatNum2(Number(es))," VN","Ä"]}):null]})})]}),(0,r.jsx)("button",{type:"submit",className:"h-[35px] w-full shrink-0 cursor-pointer rounded-[999px] text-sm font-bold text-white transition-all hover:brightness-110 active:scale-[0.98]",style:{background:"linear-gradient(268.15deg, #FF6F00 1.4%, #FF9100 41%, #FF8000 98.32%)"},children:"Mua ngay"})]})]})]})}),_&&(0,r.jsx)(g.A,{onCallBack:()=>M(!1)}),(0,r.jsx)(v.A,{open:F,onClose:()=>P(!1),payload:q,formParent:E,redirect:"/proxies-datacenter"})]})}},42901:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(35389),l=n(85400);let a={revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:3e5,revalidateIfStale:!1};function i(e){let{data:t,isLoading:n}=(0,l.Ay)(e?["products-datacenter-vn",e]:null,e=>{let[,t]=e;return(0,r.Qg)(t)},a);return{products:null!=t?t:[],isLoading:null!=n&&n}}},70081:(e,t,n)=>{n.d(t,{p:()=>i});var r=n(35389),l=n(85400);let a={revalidateOnFocus:!1,revalidateOnReconnect:!1,dedupingInterval:3e5,revalidateIfStale:!1};function i(e){let{data:t,isLoading:n}=(0,l.Ay)(e?["products-datacenter-us",e]:null,e=>{let[,t]=e;return(0,r.Ae)(t)},a);return{products:null!=t?t:[],isLoading:null!=n&&n}}},86091:(e,t,n)=>{n.d(t,{Av:()=>x,EC:()=>y,Nq:()=>g,UU:()=>h,Wj:()=>u,Y$:()=>d,_m:()=>v,kH:()=>w,nz:()=>m,vH:()=>f,xf:()=>c,xm:()=>p});var r=n(15653);let l={shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}
1,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"}),i=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"}),s=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 o(e){let t=Number(e);return Number.isNaN(t)||t<1?null:t}function d(e){"-"===e.key&&e.preventDefault()}function u(e){let{form:t,name:n,nextValue:r,setInputValue:a,onValueChange:i}=e;if(!r){a(""),t.setValue(n,void 0,l);return}a(r);let s=o(r);null!==s&&i(s)}function c(e){let{form:t,name:n,setInputValue:r,onValueChange:l,min:a=1}=e,i=t.getValues(n),s="number"==typeof i?i:Number(String(null!=i?i:""));if(!Number.isFinite(s)||s<a){r(String(a)),l(a);return}r(String(s))}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",r={...t};return e.forEach(e=>{e in r||(r[e]=n)}),r}function x(e){let{form:t,name:n,nextValue:r,rowId:a,setInputValues:i,onValueChange:s}=e;if(!r){i(e=>({...e,[a]:""})),t.setValue(n,void 0,l);return}i(e=>({...e,[a]:r}));let d=o(r);null!==d&&s(d)}let p=r.z.object({location:r.z.string().optional(),dayOfUse:a,quantity:s,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()}),m=p.omit({location:!0,prefix_ip:!0}),f=p.extend({dayOfUse:i,isCdk:r.z.boolean().optional(),rotateInterval:r.z.number().optional()}),g=m.extend({dayOfUse:i,isCdk:r.z.boolean().optional(),rotateInterval:r.z.number().optional()}),v=r.z.object({dayOfUse:a,quantity:s,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()}),w=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:s}),y=r.z.object({dayOfUse:r.z.record(r.z.string(),a),quantity:r.z.record(r.z.string(),s),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())})}}]);
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.