1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9229],{861:(e,s,a)=>{a.d(s,{Qg:()=>n,bL:()=>i});var t=a(12115),r=a(97602),d=a(95155),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=t.forwardRef((e,s)=>(0,d.jsx)(r.sG.span,{...e,ref:s,style:{...n,...e.style}}));l.displayName="VisuallyHidden";var i=l},11647:(e,s,a)=>{a.d(s,{E:()=>i});var t=a(95155);a(12115);var r=a(32467),d=a(83101),n=a(64269);let l=(0,d.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",Cancelled:"bg-[#FFEDDB] text-[#F37A00] border-none",Completed:"bg-[#D8FFD9] text-[#00B507] border-none",AwaitingPayment:"bg-[#E9F0FF] text-[#0053F3] border-none"}},defaultVariants:{variant:"default"}});function i(e){let{className:s,variant:a,asChild:d=!1,...i}=e,o=d?r.DX:"span";return(0,t.jsx)(o,{"data-slot":"badge",className:(0,n.cn)(l({variant:a}),s),...i})}},34172:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(71847).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},65142:(e,s,a)=>{a.d(s,{p:()=>d});var t=a(95155);a(12115);var r=a(64269);function d(e){let{className:s,type:a,...d}=e;return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",s),...d})}},75426:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(71847).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},77214:(e,s,a)=>{a.r(s),a.d(s,{default:()=>V});var t=a(95155),r=a(60183),d=a(13406),n=a(71847);let l=(0,n.A)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);var i=a(34172),o=a(89559);let c=(0,n.A)("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);var x=a(12115),m=a(96199),h=a(86948),p=a(11647),g=a(3998),b=a(23327),u=a(76907),j=a(35299),f=a(4072);let y=(0,n.A)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);var N=a(5917),v=a(75426),w=a(18720),k=a(13744);let T=[{code:200,name:"OK",description:"Th\xe0nh c\xf4ng"},{code:201,name:"CREATED",description:"Tạo resource th\xe0nh c\xf4ng"},{code:401,name:"UNAUTHORIZED",description:"Chưa x\xe1c thá»±c hoặc token kh\xf4ng hợp lá»"},{code:403,name:"FORBIDDEN",description:"Kh\xf4ng c\xf3 quyá»n truy cáºp"},{code:404,name:"NOT_FOUND",description:"Kh\xf4ng t\xecm thấy resource"},{code:422,name:"UNPROCESSABLE_ENTITY",description:"Dữ liá»u kh\xf4ng hợp lá»"},{code:500,name:"INTERNAL_SERVER_ERROR",description:"Lá»i server ná»i bá»"}];function P(){return(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 dark:border-slate-700 shadow-lg",children:[(0,t.jsx)("div",{className:"bg-gradient-to-r from-slate-700 to-slate-800 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"p-1 rounded-md bg-white/10",children:(0,t.jsx)(b.A,{className:"size-4 text-white"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"Tá»ng hợp Status Code"}),(0,t.jsx)("p",{className:"text-white/90 text-sm leading-tight mt-0.5",children:"C\xe1c m\xe3 trạng th\xe1i HTTP ÄÆ°á»£c sá» dụng trong API"})]})]})}),(0,t.jsx)(h.Wu,{className:"p-5",children:(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:T.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border p-3 transition-all duration-200 hover:shadow-md ".concat(e.code>=200&&e.code<300?"bg-gradient-to-r from-emerald-50 to-emerald-100/50 dark:from-emerald-950/30 dark:to-emerald-900/20 border-emerald-200 dark:border-emerald-800":"bg-gradient-to-r from-red-50 to-red-100/50 dark:from-red-950/30 dark:to-red-900/20 border-red-200 dark:border-red-800"),children:[(0,t.jsx)("div",{className:"text-sm font-bold px-3 py-1.5 rounded-md text-white shrink-0 min-w-[50px] text-center shadow-sm ".concat(e.code>=200&&e.code<300?"bg-emerald-600":"bg-red-600"),children:e.code}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"font-bold text-sm text-text-normal truncate",children:e.name}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1 leading-relaxed",children:e.description})]})]},e.code))})})]})}function A(){let{data:e}=(0,m.wV)(),[s,a]=(0,x.useState)([]),[r,d]=(0,x.useState)(null),[n,l]=(0,x.useState)(!1),[i,o]=(0,x.useState)(!0),[T,P]=(0,x.useState)(!1),[A,I]=(0,x.useState)(!1);(0,x.useEffect)(()=>{(null==e?void 0:e.accessToken)?E():o(!1)},[null==e?void 0:e.accessToken]);let E=async()=>{try{o(!0);let s=null==e?void 0:e.accessToken,t=await k.A.fetchApi("/api/v1/users/me/api-tokens",s);a(t);let r=t.find(e=>e.isActive);d(r||null)}catch(e){console.error("Error fetching API tokens:",e)}finally{o(!1)}},S=async()=>{let t=null==e?void 0:e.accessToken;if(!t)return void w.toast.error("Vui l\xf2ng ÄÄng nháºp Äá» sá» dụng chức nÄng n\xe0y!");try{l(!0);let e=await k.A.fetchApi("/api/v1/users/me/api-tokens/generate",t);d(e),a([...s,e]),w.toast.success("API Token activated successfully!")}catch(e){console.error("Error generating API token:",e),w.toast.error("Failed to generate API token")}finally{l(!1)}},z=async()=>
1{if(r)try{l(!0);let t=null==e?void 0:e.accessToken;await k.A.deleteApi("/api/v1/users/me/api-tokens/".concat(r.id),t),d(null),a(s.map(e=>e.id===r.id?{...e,isActive:!1}:e)),w.toast.success("API Token disabled")}catch(e){console.error("Error disabling API token:",e),w.toast.error("Failed to disable API token")}finally{l(!1)}},R=(e,s)=>{navigator.clipboard.writeText(e),"token"===s?(P(!0),setTimeout(()=>P(!1),2e3)):(I(!0),setTimeout(()=>I(!1),2e3)),w.toast.success("Copied!")},q=null!==r;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 dark:border-slate-700 shadow-lg",children:[(0,t.jsx)("div",{className:"bg-gradient-to-r from-primary to-primary/80 px-4 py-3",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"p-2 rounded-lg bg-white/10 shadow-lg",children:(0,t.jsx)(u.A,{className:"size-5 text-white"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"Phương thức x\xe1c thá»±c API"}),(0,t.jsx)("p",{className:"text-white/90 text-sm leading-relaxed mt-0.5",children:"Nhiá»u API chá» y\xeau cầu Bearer Token. Má»t sá» API y\xeau cầu x-merchant-id (sẽ ÄÆ°á»£c chá» Äá»nh)"})]})]}),(0,t.jsx)("div",{className:"flex-shrink-0",children:i?(0,t.jsxs)(g.$,{size:"sm",disabled:!0,className:"h-10 px-4 bg-white/20",children:[(0,t.jsx)(j.A,{className:"size-4 animate-spin mr-2 text-white"}),(0,t.jsx)("span",{className:"text-sm font-medium text-white",children:"Loading..."})]}):q?(0,t.jsx)(g.$,{size:"sm",variant:"destructive",onClick:z,disabled:n,className:"h-10 px-4 bg-red-600 hover:bg-red-700 text-white shadow-md",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{className:"size-4 animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Processing..."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.A,{className:"size-4 mr-2"}),(0,t.jsx)("span",{className:"text-sm font-semibold",children:"Disable API"})]})}):(0,t.jsx)(g.$,{size:"sm",onClick:S,disabled:n,className:"h-10 px-4 bg-emerald-600 hover:bg-emerald-700 text-white shadow-md",children:n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A,{className:"size-4 animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Processing..."})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{className:"size-4 mr-2"}),(0,t.jsx)("span",{className:"text-sm font-semibold !text-white",children:"Active API"})]})})})]})}),(0,t.jsx)(h.Wu,{className:"space-y-3 p-5",children:(0,t.jsxs)("div",{className:"bg-slate-50 dark:bg-slate-900/50 rounded-lg p-4 space-y-3 border border-slate-200 dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"p-1.5 rounded-md bg-primary/10",children:(0,t.jsx)(c,{className:"size-4 text-primary"})}),(0,t.jsx)("h3",{className:"font-bold text-base text-text-normal",children:"Th\xf4ng tin x\xe1c thá»±c API"})]}),q?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-gradient-to-r from-emerald-50 to-emerald-100/50 dark:from-emerald-950/30 dark:to-emerald-900/20 border border-emerald-200 dark:border-emerald-800 rounded-lg shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[(0,t.jsx)("div",{className:"size-3 rounded-full bg-emerald-500 animate-pulse shadow-lg shadow-emerald-500/50"}),(0,t.jsx)("span",{className:"text-sm font-bold text-emerald-700 dark:text-emerald-400",children:"API Token Active"})]}),(0,t.jsx)(p.E,{className:"bg-emerald-600 hover:bg-emerald-700 text-white text-xs px-2.5 py-1 shadow-sm",children:"ACTIVE"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-bold text-text-normal",children:"Authorization"}),(0,t.jsx)(g.$,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 hover:bg-slate-200 dark:hover:bg-slate-700 rounded-md transition-colors",onClick:()=>R("Bearer ".concat(r.token),"token"),children:T?(0,t.jsx)(N.A,{className:"size-4 text-emerald-500"}):(0,t.jsx)(v.A,{className:"size-4"})})]}),(0,t.jsxs)("code",{className:"block w-full rounded-lg bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 p-4 text-sm text-slate-50 font-mono border-l-4 border-emerald-500 overflow-x-auto break-all shadow-lg",children:["Authorization: Bearer ",r.token]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-bold text-text-normal",children:"x-merchant-id"}),(0,t.jsx)(g.$,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 hover:bg-slate-200 dark:hover:bg-slate-700 rounded-md transition-colors",onClick:()=>R(r.merchantId,"merchant"),children:A?(0,t.jsx)(N.A,{className:"size-4 text-emerald-500"}):(0,t.jsx)(v.A,{className:"size-4"})})]}),(0,t.jsxs)("code",{className:"block w-full rounded-lg bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 p-4 text-sm text-slate-50 font-mono border-l-4 border-emerald-500 overflow-x-auto break-all shadow-lg",children:["x-merchant-id: ",r.merchantId]})]})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-10 space-y-4",children:[(0,t.jsx)("div",{className:"p-5 rounded-full bg-gradient-to-br from-slate-100 to-slate-200 dark:from-slate-800 dark:to-slate-700 shadow-lg",children:(0,t.jsx)(c,{className:"size-10 text-slate-600 dar
1k:text-slate-400"})}),(0,t.jsxs)("div",{className:"text-center space-y-2",children:[(0,t.jsx)("p",{className:"text-base font-bold text-text-normal",children:"Kh\xf4ng c\xf3 API Token active"}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["Nhấn ",(0,t.jsx)("strong",{className:"text-emerald-600 dark:text-emerald-400",children:"Active API"})," Äá» tạo token má»i"]})]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-red-50 to-red-100/50 dark:from-red-950/30 dark:to-red-900/20 border border-red-200 dark:border-red-800 shadow-sm",children:[(0,t.jsx)(b.A,{className:"size-4 text-red-600 dark:text-red-400 mt-0.5 shrink-0"}),(0,t.jsxs)("div",{className:"text-sm",children:[(0,t.jsx)("p",{className:"font-bold text-red-700 dark:text-red-400 mb-1.5",children:"Lưu \xfd quan trá»ng:"}),(0,t.jsxs)("ul",{className:"space-y-1 list-disc list-inside leading-relaxed text-red-800 dark:text-red-300",children:[(0,t.jsx)("li",{className:"break-words",children:"Bạn cần k\xedch hoạt API Token Äá» sá» dụng c\xe1c API"}),(0,t.jsx)("li",{className:"break-words",children:"Bạn c\xf3 thá» v\xf4 hiá»u h\xf3a v\xe0 tạo token má»i bất cứ l\xfac n\xe0o"})]})]})]})]})})]})})}var I=a(86259);let E=e=>{let{code:s}=e,[a,r]=(0,x.useState)(!1);return(0,t.jsxs)("div",{className:"relative group w-full",children:[(0,t.jsx)(g.$,{size:"sm",variant:"ghost",className:"absolute right-2 top-2 z-10 opacity-0 group-hover:opacity-100 transition-all duration-200 h-7 w-7 p-0 hover:bg-slate-700 rounded",onClick:()=>{navigator.clipboard.writeText(s),r(!0),setTimeout(()=>r(!1),2e3),w.toast.success("Ä\xe3 sao ch\xe9p!")},children:a?(0,t.jsx)(N.A,{className:"size-3.5 text-green-400"}):(0,t.jsx)(v.A,{className:"size-3.5 text-slate-300"})}),(0,t.jsx)("div",{className:"no-scrollbar max-h-[280px] w-full max-w-full overflow-y-auto rounded-lg border border-slate-700/50 bg-gradient-to-br from-slate-950 via-slate-900 to-slate-950 shadow-lg",children:(0,t.jsx)("pre",{className:"p-4 text-sm leading-relaxed",children:(0,t.jsx)("code",{className:"block font-mono break-words whitespace-pre-wrap text-slate-50",children:s})})})]})},S=e=>{let{name:s,type:a,required:r,description:d}=e;return(0,t.jsx)("div",{className:"flex flex-col md:flex-row md:items-start gap-2 py-3 px-3 border-b last:border-0 hover:bg-slate-50/50 dark:hover:bg-slate-800/30 transition-colors duration-150",children:(0,t.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,t.jsx)("code",{className:"text-sm font-semibold text-primary bg-primary/10 px-2 py-1 rounded-md border border-primary/20 break-all",children:s}),(0,t.jsx)(p.E,{variant:"outline",className:"text-[11px] px-2 py-0.5 h-5 font-medium border-slate-300 dark:border-slate-600",children:a}),r&&(0,t.jsx)(p.E,{variant:"destructive",className:"text-[11px] px-2 py-0.5 h-5 font-medium",children:"Required"})]}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed break-words",children:d})]})})};var z=a(55635);function R(e){let{hostName:s}=e;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"h-1 w-1 rounded-full bg-primary"}),(0,t.jsx)("h2",{className:"text-xl font-bold text-text-normal",children:"API Endpoints - Tá»ng quan"})]}),(0,t.jsxs)(d.tU,{defaultValue:"deposit",className:"space-y-4",children:[(0,t.jsxs)(d.j7,{className:"grid w-full grid-cols-2 h-auto p-1.5 gap-2 bg-slate-100 dark:bg-slate-800/50 rounded-xl",children:[(0,t.jsx)(d.Xi,{value:"deposit",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"bg-emerald-600 hover:bg-emerald-700 text-white text-xs px-2 py-0.5 h-5 shadow-sm",children:"POST"}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:"Nạp tiá»n"})]})}),(0,t.jsx)(d.Xi,{value:"me",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"bg-blue-600 hover:bg-blue-700 text-white text-xs px-2 py-0.5 h-5 shadow-sm",children:"GET"}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:"Th\xf4ng tin TK"})]})})]}
1),(0,t.jsx)(d.av,{value:"deposit",className:"space-y-4 mt-0",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 dark:border-slate-700 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"bg-white text-emerald-700 hover:bg-white text-xs px-2 py-1 h-6 font-bold shadow-md",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Nạp tiá»n"})]}),(0,t.jsx)("p",{className:"text-white/95 mt-2 text-sm leading-relaxed",children:"Tạo giao dá»ch nạp tiá»n v\xe0o t\xe0i khoản, trả vá» th\xf4ng tin chuyá»n khoản v\xe0 m\xe3 QR"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/transactions")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>"}),(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-blue-50 to-blue-100/50 dark:from-blue-950/30 dark:to-blue-900/20 border border-blue-200 dark:border-blue-800 shadow-sm",children:[(0,t.jsx)(b.A,{className:"size-4 text-blue-600 dark:text-blue-400 mt-0.5 shrink-0"}),(0,t.jsxs)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:["API n\xe0y ",(0,t.jsx)("strong",{className:"text-blue-700 dark:text-blue-300",children:"chá» y\xeau cầu"})," Bearer Token từ response API ÄÄng nháºp"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Request Body"]}),(0,t.jsx)("div",{className:"rounded-lg border bg-background overflow-hidden",children:(0,t.jsx)(S,{name:"amount",type:"number",required:!0,description:"Sá» tiá»n cần nạp (ÄÆ¡n vá»: VNÄ, tá»i thiá»u 10,000)"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({amount:1e5},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({code:"TXN20250113001234",accountName:"ACCOUNT NAME",bankCode:"BANK CODE",bankName:"BANK NAME",accountNumber:"0123456789",amount:1e5,qrCode:"QR CODE",status:"PENDING",description:"Nạp tiá»n v\xe0o t\xe0i khoản - TXN20250113001234",createdAt:"2025-01-13T10:30:00.000Z"},null,2)})]})]})]})}
1),(0,t.jsx)(d.av,{value:"me",className:"space-y-4 mt-0",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 dark:border-slate-700 shadow-lg hover:shadow-xl transition-shadow duration-300",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"bg-white text-blue-700 hover:bg-white text-xs px-2 py-1 h-6 font-bold shadow-md",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Lấy th\xf4ng tin t\xe0i khoản"})]}),(0,t.jsx)("p",{className:"text-white/95 mt-2 text-sm leading-relaxed",children:"Lấy th\xf4ng tin chi tiết cá»§a t\xe0i khoản Äang ÄÄng nháºp"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/auth/me")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Headers"]}),(0,t.jsx)(E,{code:"Authorization: Bearer <accessToken>"}),(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-blue-50 to-blue-100/50 dark:from-blue-950/30 dark:to-blue-900/20 border border-blue-200 dark:border-blue-800 shadow-sm",children:[(0,t.jsx)(b.A,{className:"size-4 text-blue-600 dark:text-blue-400 mt-0.5 shrink-0"}),(0,t.jsxs)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:["API n\xe0y ",(0,t.jsx)("strong",{className:"text-blue-700 dark:text-blue-300",children:"chá» y\xeau cầu"})," Bearer Token từ response API ÄÄng nháºp"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-primary to-primary/70"}),"Request Body"]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-slate-50 to-slate-100/50 dark:from-slate-900/30 dark:to-slate-800/20 border border-slate-200 dark:border-slate-700 shadow-sm",children:[(0,t.jsx)(b.A,{className:"size-4 text-slate-600 dark:text-slate-400 mt-0.5 shrink-0"}),(0,t.jsxs)("p",{className:"text-sm text-slate-700 dark:text-slate-300 leading-relaxed",children:["API n\xe0y ",(0,t.jsx)("strong",{className:"text-slate-800 dark:text-slate-200",children:"kh\xf4ng y\xeau cầu"})," request body"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"font-bold text-base flex items-center gap-2 text-text-normal",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({id:"550e8400-e29b-41d4-a716-446655440000",coin:"5000000",phone:"0123456789",userName:"john_doe",email:"[email protected]",fullName:"Nguyá»
n VÄn A",merchant:{id:"660e8400-e29b-41d4-a716-446655440000",code:"MERCHANT001",name:"Merchant"},role:{id:"role-id",name:"USER",description:"Ngưá»i d\xf9ng th\xf4ng thưá»ng"},status:{id:"status-id",name:"ACTIVE",description:"T\xe0i khoản Äang hoạt Äá»ng"},createdAt:"2024-01-01T00:00:00.000Z",updatedAt:"2025-01-13T10:30:00.000Z"},null,2)})]})]})]})})]})]})}function q(e){let{hostName:s}=e;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"bg-primary h-1 w-1 rounded-full"}),(0,t.jsx)("h2",{className:"text-text-normal text-xl font-bold",children:"API Endpoints - Proxy TÄ©nh"})]}),(0,t.jsxs)(d.tU,{defaultValue:"products",className:"space-y-4",children:[(0,t.jsxs)(d.j7,{className:"grid h-auto w-full grid-cols-5 ga
1p-2 rounded-xl bg-slate-100 p-1.5 dark:bg-slate-800/50",children:[(0,t.jsx)(d.Xi,{value:"products",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-blue-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-blue-700",children:"GET"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"DS Sản phẩm"})]})}),(0,t.jsx)(d.Xi,{value:"order",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Tạo ÄÆ¡n"})]})}),(0,t.jsx)(d.Xi,{value:"list",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-blue-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-blue-700",children:"GET"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"DS Ä\xe3 mua"})]})}),(0,t.jsx)(d.Xi,{value:"change",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Äá»i th\xf4ng tin"})]})}),(0,t.jsx)(d.Xi,{value:"renewal",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Gia hạn"})]})})]}),(0,t.jsx)(d.av,{value:"products",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-blue-700 shadow-md hover:bg-white",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Lấy danh s\xe1ch sản phẩm Proxy tÄ©nh"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Lấy danh s\xe1ch tất cả c\xe1c g\xf3i Proxy tÄ©nh c\xf3 sẵn"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.oX)(s,1)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-amber-200 bg-gradient-to-r from-amber-50 to-amber-100/50 p-3 shadow-sm dark:border-amber-800 dark:from-amber-950/30 dark:to-amber-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-amber-600 dar
1k:text-amber-400"}),(0,t.jsxs)("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsx)("strong",{className:"text-amber-700 dark:text-amber-300",children:"Lưu \xfd:"})," ","API n\xe0y y\xeau cầu cả Bearer Token v\xe0 x-merchant-id"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"data",type:"array",description:"Danh s\xe1ch sản phẩm proxy"}),(0,t.jsx)(S,{name:"data[].id",type:"string",description:"ID sản phẩm"}),(0,t.jsx)(S,{name:"data[].name",type:"string",description:"T\xean g\xf3i proxy"}),(0,t.jsx)(S,{name:"data[].provider",type:"string",description:"Nh\xe0 mạng (VIETTEL, FPT, VNPT)"}),(0,t.jsx)(S,{name:"data[].price",type:"number",description:"Gi\xe1 sản phẩm (VNÄ)"}),(0,t.jsx)(S,{name:"data[].category",type:"object",description:"Th\xf4ng tin danh mục"}),(0,t.jsx)(S,{name:"total",type:"number",description:"Tá»ng sá» sản phẩm"}),(0,t.jsx)(S,{name:"hasNextPage",type:"boolean",description:"C\xf3 trang tiếp theo hay kh\xf4ng"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({data:[{id:"550e8400-e29b-41d4-a716-446655440000",name:"Proxy TÄ©nh VIETTEL",provider:"VIETTEL",price:5e4,category:{categorytype:{id:1,name:"Proxy TÄ©nh"},description:"Proxy tÄ©nh chất lượng cao"},merchant:{id:"660e8400-e29b-41d4-a716-446655440000",code:"MERCHANT001"},status:{name:"ACTIVE"},imageUrl:"https://example.com/image.jpg"}],total:15,hasNextPage:!1},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"order",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Tạo ÄÆ¡n h\xe0ng Proxy tÄ©nh"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Tạo ÄÆ¡n h\xe0ng mua Proxy tÄ©nh má»i"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"paymentMethod",type:"string",required:!0,description:'Phương thức thanh to\xe1n (gi\xe1 trá»: "WALLET")'}),(0,t.jsx)(S,{name:"products",type:"array",required:!0,description:"Danh s\xe1ch sản phẩm cần mua"}),(0,t.jsx)(S,{name:"products[].dayOfUse",type:"number",required:!0,description:"Sá» ng\xe0y sá» dụng"}),(0,t.jsx)(S,{name:"products[].password",type:"string",required:!0,description:"Máºt khẩu proxy mong muá»n"}),(0,t.jsx)(S,{name:"products[].user",type:"string",required:!0,description:"Username proxy mong muá»n"}),(0,t.jsx)(S,{name:"products[].protocolType",type:"string",required:!0,description:'Loại giao thức: "HTTP" hoặc "SOCKS"'}),(0,t.jsx)(S,{name:"products[].location",type:"string",description:"M\xe3 v\xf9ng: BDG, HCM, HNI (Loại bá» trưá»ng n\xe0y Äá» RANDOM) "}),(0,t.jsx)(S,{name:"products[].provider",type:"string",required:!0,description:"Nh\xe0 mạng: VIETTEL, FPT, VNPT"}),(0,t.jsx)(S,{name:"products[].quantity",type:"number",required:!0,description:"Sá» lượng proxy muá»n mua"}),(0,t.jsx)(S,{name:"products[].product.id",type:"string",required:!0,description:"ID sản phẩm từ API danh s\xe1ch"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dar
1k:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({paymentMethod:"WALLET",products:[{dayOfUse:30,password:"mypass123",user:"myuser",protocolType:"HTTP",location:"HCM",provider:"VIETTEL",quantity:5,product:{id:"550e8400-e29b-41d4-a716-446655440000"}}]},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"orderId",type:"string",description:"ID ÄÆ¡n h\xe0ng"}),(0,t.jsx)(S,{name:"status",type:"string",description:"Trạng th\xe1i ÄÆ¡n h\xe0ng"}),(0,t.jsx)(S,{name:"amount",type:"number",description:"Tá»ng sá» tiá»n"}),(0,t.jsx)(S,{name:"createdAt",type:"string",description:"Thá»i gian tạo ÄÆ¡n"}),(0,t.jsx)(S,{name:"products",type:"array",description:"Danh s\xe1ch sản phẩm Ä\xe3 Äặt"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({orderId:"ORD20250113001234",status:"SUCCESS",amount:25e4,createdAt:"2025-01-13T10:30:00.000Z",products:[{id:"550e8400-e29b-41d4-a716-446655440000",quantity:5,price:5e4}]},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"list",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-blue-700 shadow-md hover:bg-white",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Xem danh s\xe1ch Proxy Ä\xe3 mua"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Lấy danh s\xe1ch tất cả Proxy tÄ©nh Ä\xe3 mua"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:"".concat((0,z.KB)(s,"/users/proxies"),'?sort=[{"orderBy":"createdAt","order":"desc"}]&filters={"proxy":{"ipaddress":{"categorytype":{"id":1}}}}')}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-blue-200 bg-gradient-to-r from-blue-50 to-blue-100/50 p-3 shadow-sm dark:border-blue-800 dark:from-blue-950/30 dark:to-blue-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-blue-600 dark:text-blue-400"}),(0,t.jsxs)("div",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsxs)("p",{className:"mb-2",children:[(0,t.jsx)("strong",{className:"text-blue-700 dark:text-blue-300",children:"Lá»c theo ÄÆ¡n h\xe0ng:"})," ","Nếu muá»n lấy danh s\xe1ch proxy theo ÄÆ¡n h\xe0ng vừa tạo, th\xeam parameter sau v\xe0o URL:"]}),(0,t.jsx)("code",{className:"block rounded border border-blue-200 bg-white px-3 py-2 font-mono text-xs dark:border-blue-700 dark:bg-slate-800",children:"&filter=orderId:$eq:string:{orderId}"}),(0,t.jsxs)("p",{className:"mt-2 text-xs text-slate-600 dark:text-slate-400",children:["Trong Ä\xf3"," ",(0,t.jsx)("code",{className:"rounded bg-blue-100 px-1 dark:bg-blue-900",children:"{orderId}"})," ","l\xe0 ID ÄÆ¡n h\xe0ng nháºn ÄÆ°á»£c từ API tạo ÄÆ¡n (v\xed dụ: ORD20250113001234)"]})]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"data",type:"array",description:"Danh s\xe1ch proxy Ä\xe3 mua"}),(0,t.jsx)(S,{name:"data[].id",type:"number",description:"ID proxy"}),(0,t.jsx)(S,{name:"data[].code",type:"string",description:"M\xe3 proxy"}),(0,t.jsx)(S,{name:"data[].protocol",type:"string",description:"Giao thức (HTTP/SOCKS)"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.domain",type:"string",description:"Domain proxy"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.location",type:"string",description:"Vá» tr\xed (HCM, HNI, BDG)"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.provider",type:"string",description:"Nh\xe0 mạng"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.ip",type:"string",description:"Äá»a chá» IP"}),(0,t.jsx)(S,{name:"data[].proxy.username",type:"string",description:"Username ÄÄng nháºp proxy"}),(0,t.jsx)(S,{name:"data[].proxy.password",type:"string",description:"Password ÄÄng nháºp proxy"}),(0,t.jsx)(S,{name:"data[].proxy.port",type:"number",description:"Cá»ng kết ná»i"}),(0,t.jsx)(S,{name:"data[].status.name",type:"string",description:"Trạng th\xe1i proxy"}),(0,t.jsx)(S,{name:"data[].expiredAt",type:"number",description:"Thá»i gian hết hạn (timestamp)"}),(0,t.jsx)(S,{name:"total",type:"number",description:"Tá»ng sá» proxy"}),(0,t.jsx)(S,{name:"hasNextPage",type:"boolean",description:"C\xf3 trang tiếp theo hay kh\xf4ng"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({data:[{id:12345,code:"PROXY-001",protocol:"HTTP",proxy:{ipaddress:{domain:"domain.vn",location:"HCM",provider:"VIETTEL",ip:"123.45.67.89"},username:"myuser",password:"mypass123",port:8080},status:{name:"ACTIVE"},expiredAt:17366976e5}],total:10,hasNextPage:!1},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"change",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Äá»i th\xf4ng tin Proxy"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Thay Äá»i th\xf4ng tin ÄÄng nháºp v\xe0 cấu h\xecnh proxy"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders/change-info-proxies")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"userProxyIds",type:"array<number>",required:!0,description:"Danh s\xe1ch ID proxy cần thay Äá»i th\xf4ng tin"}),(0,t.jsx)(S,{name:"username",type:"string",required:!0,description:"Username má»i cho proxy"}),(0,t.jsx)(S,{name:"password",type:"string",required:!0,description:"Máºt khẩu má»i cho proxy"}),(0,t.jsx)(S,{name:"protocol",type:"string",required:!0,description:'Giao thức má»i: "HTTP" hoặc "SOCKS"'})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({userProxyIds:[12345,12346],username:"newuser",password:"newpass456",protocol:"SOCKS"},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"updated",type:"boolean",description:"Trạng th\xe1i cáºp nháºt (true/false)"}),(0,t.jsx)(S,{name:"message",type:"string",description:"Th\xf4ng b\xe1o kết quả"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({updated:!0,message:"Ä\xe3 cáºp nháºt th\xf4ng tin proxy th\xe0nh c\xf4ng"},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"renewal",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Gia hạn Proxy tÄ©nh"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Gia hạn thá»i gian sá» dụng cho c\xe1c Proxy Ä\xe3 mua"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders/renewal-proxies")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"userProxyIds",type:"array<number>",required:!0,description:"Danh s\xe1ch ID proxy cần gia hạn"}),(0,t.jsx)(S,{name:"dayOfRenewal",type:"number",required:!0,description:"Sá» ng\xe0y muá»n gia hạn th\xeam"}),(0,t.jsx)(S,{name:"isRenewal",type:"boolean",required:!0,description:"Lu\xf4n lu\xf4n c\xf3 gi\xe1 trá» false"}),(0,t.jsx)(S,{name:"categoryTypeId",type:"number",required:!0,description:"ID loại danh mục (Proxy tÄ©nh = 1)"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dar
1k:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({userProxyIds:[12345,12346,12347],dayOfRenewal:30,isRenewal:!1,categoryTypeId:1},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"success",type:"boolean",description:"Trạng th\xe1i gia hạn (true/false)"}),(0,t.jsx)(S,{name:"message",type:"string",description:"Th\xf4ng b\xe1o kết quả"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({success:!0,message:"Ä\xe3 gia hạn proxy th\xe0nh c\xf4ng"},null,2)})]})]})]})})]})]})}function C(e){let{hostName:s}=e;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"bg-primary h-1 w-1 rounded-full"}),(0,t.jsx)("h2",{className:"text-text-normal text-xl font-bold",children:"API Endpoints - Proxy Xoay"})]}),(0,t.jsxs)(d.tU,{defaultValue:"products",className:"space-y-4",children:[(0,t.jsxs)(d.j7,{className:"grid h-auto w-full grid-cols-6 gap-2 rounded-xl bg-slate-100 p-1.5 dark:bg-slate-800/50",children:[(0,t.jsx)(d.Xi,{value:"products",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-blue-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-blue-700",children:"GET"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"DS Sản phẩm"})]})}),(0,t.jsx)(d.Xi,{value:"order",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Tạo ÄÆ¡n"})]})}),(0,t.jsx)(d.Xi,{value:"list",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-blue-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-blue-700",children:"GET"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"DS Ä\xe3 mua"})]})}),(0,t.jsx)(d.Xi,{value:"rotate",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-blue-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-blue-700",children:"GET"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Xoay IP"})]})}),(0,t.jsx)(d.Xi,{value:"change",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Äá»i th\xf4ng tin"})]})}),(0,t.jsx)(d.Xi,{value:"renewal",className:"rounded-lg px-4 py-3 text-sm transition-all duration-200 data-[state=active]:bg-white data-[state=active]:shadow-md dark:data-[state=active]:bg-slate-700",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(p.E,{className:"h-5 bg-emerald-600 px-2 py-0.5 text-xs text-white shadow-sm hover:bg-emerald-700",children:"POST"}),(0,t.jsx)("span",{className:"truncate text-sm font-medium",children:"Gia hạn"})]})})]}),(0,t.jsx)(d.av,{value:"products",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-blue-700 shadow-md hover:bg-white",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Lấy danh s\xe1ch sản phẩm Proxy xoay"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Lấy danh s\xe1ch tất cả c\xe1c g\xf3i Proxy xoay c\xf3 sẵn"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.oX)(s,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-amber-200 bg-gradient-to-r from-amber-50 to-amber-100/50 p-3 shadow-sm dark:border-amber-800 dark:from-amber-950/30 dark:to-amber-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-amber-600 dark:text-amber-400"}),(0,t.jsxs)("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsx)("strong",{className:"text-amber-700 dark:text-amber-300",children:"Lưu \xfd:"})," ","API n\xe0y y\xeau cầu cả Bearer Token v\xe0 x-merchant-id"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"data",type:"array",description:"Danh s\xe1ch sản phẩm proxy"}),(0,t.jsx)(S,{name:"data[].id",type:"string",description:"ID sản phẩm"}),(0,t.jsx)(S,{name:"data[].name",type:"string",description:"T\xean g\xf3i proxy"}),(0,t.jsx)(S,{name:"data[].provider",type:"string",description:"Nh\xe0 mạng (VIETTEL, FPT, VNPT)"}),(0,t.jsx)(S,{name:"data[].price",type:"number",description:"Gi\xe1 sản phẩm (VNÄ)"}),(0,t.jsx)(S,{name:"data[].category",type:"object",description:"Th\xf4ng tin danh mục"}),(0,t.jsx)(S,{name:"total",type:"number",description:"Tá»ng sá» sản phẩm"}),(0,t.jsx)(S,{name:"hasNextPage",type:"boolean",description:"C\xf3 trang tiếp theo hay kh\xf4ng"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({data:[{id:"550e8400-e29b-41d4-a716-446655440000",name:"Proxy Xoay VIETTEL",provider:"VIETTEL",price:8e4,category:{categorytype:{id:2,name:"Proxy Xoay"},description:"Proxy xoay chất lượng cao"},merchant:{id:"660e8400-e29b-41d4-a716-446655440000",code:"MERCHANT001"},status:{name:"ACTIVE"},imageUrl:"https://example.com/image.jpg"}],total:15,hasNextPage:!1},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"order",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Tạo ÄÆ¡n h\xe0ng Proxy xoay"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Tạo ÄÆ¡n h\xe0ng mua Proxy xoay má»i"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"paymentMethod",type:"string",required:!0,description:'Phương thức thanh to\xe1n (gi\xe1 trá»: "WALLET")'}),(0,t.jsx)(S,{name:"products",type:"array",required:!0,description:"Danh s\xe1ch sản phẩm cần mua"}),(0,t.jsx)(S,{name:"products[].dayOfUse",type:"number",required:!0,description:"Sá» ng\xe0y sá» dụng"}),(0,t.jsx)(S,{name:"products[].rotateInterval",type:"number",required:!0,description:"0 = kh\xf4ng xoay, 1 = 1 ph\xfat xoay 1 lần, n = n ph\xfat xoay 1 lần"}),(0,t.jsx)(S,{name:"products[].password",type:"string",required:!0,description:"Máºt khẩu proxy mong muá»n"}),(0,t.jsx)(S,{name:"products[].user",type:"string",required:!0,description:"Username bá» trá»ng"}),(0,t.jsx)(S,{name:"products[].protocolType",type:"string",required:!0,description:'Loại giao thức: "HTTP" hoặc "SOCKS"'}),(0,t.jsx)(S,{name:"products[].location",type:"string",description:"M\xe3 v\xf9ng: BDG, HCM, HNI (Loại bá» trưá»ng n\xe0y Äá» RANDOM) "}),(0,t.jsx)(S,{name:"products[].provider",type:"string",required:!0,description:"Nh\xe0 mạng: VIETTEL, FPT, VNPT"}),(0,t.jsx)(S,{name:"products[].quantity",type:"number",required:!0,description:"Sá» lượng proxy muá»n mua"}),(0,t.jsx)(S,{name:"products[].product.id",type:"string",required:!0,description:"ID sản phẩm từ API danh s\xe1ch"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({paymentMethod:"WALLET",products:[{dayOfUse:30,rotateInterval:5,password:"mypass123",user:"myuser",protocolType:"HTTP",location:"HCM",provider:"VIETTEL",quantity:5,product:{id:"550e8400-e29b-41d4-a716-446655440000"}}]},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"orderId",type:"string",description:"ID ÄÆ¡n h\xe0ng"}),(0,t.jsx)(S,{name:"status",type:"string",description:"Trạng th\xe1i ÄÆ¡n h\xe0ng"}),(0,t.jsx)(S,{name:"amount",type:"number",description:"Tá»ng sá» tiá»n"}),(0,t.jsx)(S,{name:"createdAt",type:"string",description:"Thá»i gian tạo ÄÆ¡n"}),(0,t.jsx)(S,{name:"products",type:"array",description:"Danh s\xe1ch sản phẩm Ä\xe3 Äặt"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({orderId:"ORD20250113001234",status:"SUCCESS",amount:4e5,createdAt:"2025-01-13T10:30:00.000Z",products:[{id:"550e8400-e29b-41d4-a716-446655440000",quantity:5,price:8e4}]},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"list",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-blue-700 shadow-md hover:bg-white",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Xem danh s\xe1ch Proxy Ä\xe3 mua"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Lấy danh s\xe1ch tất cả Proxy xoay Ä\xe3 mua"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:"".concat((0,z.KB)(s,"/users/proxies"),'?sort=[{"orderBy":"createdAt","order":"desc"}]&filters={"proxy":{"ipaddress":{"categorytype":{"id":2}}}}')}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-blue-200 bg-gradient-to-r from-blue-50 to-blue-100/50 p-3 shadow-sm dark:border-blue-800 dark:from-blue-950/30 dark:to-blue-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-blue-600 dark:text-blue-400"}),(0,t.jsxs)("div",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsxs)("p",{className:"mb-2",children:[(0,t.jsx)("strong",{className:"text-blue-700 dark:text-blue-300",children:"Lá»c theo ÄÆ¡n h\xe0ng:"})," ","Nếu muá»n lấy danh s\xe1ch proxy theo ÄÆ¡n h\xe0ng vừa tạo, th\xeam parameter sau v\xe0o URL:"]}),(0,t.jsx)("code",{className:"block rounded border border-blue-200 bg-white px-3 py-2 font-mono text-xs dark:border-blue-700 dark:bg-slate-800",children:"&filter=orderId:$eq:string:{orderId}"}),(0,t.jsxs)("p",{className:"mt-2 text-xs text-slate-600 dark:text-slate-400",children:["Trong Ä\xf3"," ",(0,t.jsx)("code",{className:"rounded bg-blue-100 px-1 dark:bg-blue-900",children:"{orderId}"})," ","l\xe0 ID ÄÆ¡n h\xe0ng nháºn ÄÆ°á»£c từ API tạo ÄÆ¡n"]})]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"data",type:"array",description:"Danh s\xe1ch proxy Ä\xe3 mua"}),(0,t.jsx)(S,{name:"data[].id",type:"number",description:"ID proxy"}),(0,t.jsx)(S,{name:"data[].code",type:"string",description:"M\xe3 proxy"}),(0,t.jsx)(S,{name:"data[].protocol",type:"string",description:"Giao thức (HTTP/SOCKS)"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.domain",type:"string",description:"Domain proxy"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.location",type:"string",description:"Vá» tr\xed (HCM, HNI, BDG)"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.provider",type:"string",description:"Nh\xe0 mạng"}),(0,t.jsx)(S,{name:"data[].proxy.ipaddress.ip",type:"string",description:"Äá»a chá» IP"}),(0,t.jsx)(S,{name:"data[].proxy.username",type:"string",description:"Username ÄÄng nháºp proxy"}),(0,t.jsx)(S,{name:"data[].proxy.password",type:"string",description:"Password ÄÄng nháºp proxy"}),(0,t.jsx)(S,{name:"data[].proxy.port",type:"number",description:"Cá»ng kết ná»i"}),(0,t.jsx)(S,{name:"data[].proxy.rotateInterval",type:"number",description:"Thá»i gian xoay IP (ph\xfat)"}),(0,t.jsx)(S,{name:"data[].status.name",type:"string",description:"Trạng th\xe1i proxy"}),(0,t.jsx)(S,{name:"data[].expiredAt",type:"number",description:"Thá»i gian hết hạn (timestamp)"}),(0,t.jsx)(S,{name:"total",type:"number",description:"Tá»ng sá» proxy"}),(0,t.jsx)(S,{name:"hasNextPage",type:"boolean",description:"C\xf3 trang tiếp theo hay kh\xf4ng"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({data:[{id:12345,code:"PROXY-ROTATE-001",protocol:"HTTP",proxy:{ipaddress:{domain:"domain.vn",location:"HCM",provider:"VIETTEL",ip:"123.45.67.89"},username:"myuser",password:"mypass123",port:8080,rotateInterval:5},status:{name:"ACTIVE"},expiredAt:17366976e5}],total:10,hasNextPage:!1},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"rotate",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-blue-700 shadow-md hover:bg-white",children:"GET"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Xoay IP Proxy"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Thá»±c hiá»n xoay IP cho proxy ngay láºp tức"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/proxies/{id}/rotate")}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-blue-200 bg-gradient-to-r from-blue-50 to-blue-100/50 p-3 shadow-sm dark:border-blue-800 dark:from-blue-950/30 dark:to-blue-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-blue-600 dark:text-blue-400"}),(0,t.jsxs)("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsx)("strong",{className:"text-blue-700 dark:text-blue-300",children:"Lưu \xfd:"})," ","Thay thế"," ",(0,t.jsx)("code",{className:"rounded bg-blue-100 px-1 dark:bg-blue-900",children:"{id}"})," ","bằng ID cá»§a proxy cần xoay IP (lấy từ API danh s\xe1ch Ä\xe3 mua)"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Authorization: Bearer <accessToken>"}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border border-amber-200 bg-gradient-to-r from-amber-50 to-amber-100/50 p-3 shadow-sm dark:border-amber-800 dark:from-amber-950/30 dark:to-amber-900/20",children:[(0,t.jsx)(b.A,{className:"mt-0.5 size-4 shrink-0 text-amber-600 dark:text-amber-400"}),(0,t.jsxs)("p",{className:"text-sm leading-relaxed text-slate-700 dark:text-slate-300",children:[(0,t.jsx)("strong",{className:"text-amber-700 dark:text-amber-300",children:"Lưu \xfd:"})," ","API n\xe0y chá» y\xeau cầu Bearer Token"]})]})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"status",type:"string",description:'Trạng th\xe1i xoay IP (gi\xe1 trá»: "success")'}),(0,t.jsx)(S,{name:"proxy",type:"string",description:"Th\xf4ng tin proxy Äầy Äá»§ (format: ip:port:username:password)"}),(0,t.jsx)(S,{name:"ip",type:"string",description:"Äá»a chá» IP má»i sau khi xoay"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({status:"success",proxy:"123.45.67.89:4263:elyse45707:ndu3odgwnjy5",ip:"123.45.67.89"},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"change",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Äá»i th\xf4ng tin Proxy"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Thay Äá»i th\xf4ng tin ÄÄng nháºp v\xe0 cấu h\xecnh proxy"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders/change-info-proxies")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"userProxyIds",type:"array<number>",required:!0,description:"Danh s\xe1ch ID proxy cần thay Äá»i th\xf4ng tin"}),(0,t.jsx)(S,{name:"password",type:"string",required:!0,description:"Máºt khẩu má»i cho proxy"}),(0,t.jsx)(S,{name:"rotateInterval",type:"number",required:!0,description:"Thá»i gian xoay IP (t\xednh theo ph\xfat)"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({userProxyIds:[12345,12346],password:"newpass456",rotateInterval:10},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"updated",type:"boolean",description:"Trạng th\xe1i cáºp nháºt (true/false)"}),(0,t.jsx)(S,{name:"message",type:"string",description:"Th\xf4ng b\xe1o kết quả"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({updated:!0,message:"Ä\xe3 cáºp nháºt th\xf4ng tin proxy th\xe0nh c\xf4ng"},null,2)})]})]})]})}),(0,t.jsx)(d.av,{value:"renewal",className:"mt-0 space-y-4",children:(0,t.jsxs)(h.Zp,{className:"overflow-hidden border border-slate-200 shadow-lg transition-shadow duration-300 hover:shadow-xl dark:border-slate-700",children:[(0,t.jsxs)("div",{className:"bg-gradient-to-r from-emerald-600 to-emerald-700 px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)(p.E,{className:"h-6 bg-white px-2 py-1 text-xs font-bold text-emerald-700 shadow-md hover:bg-white",children:"POST"}),(0,t.jsx)("h3",{className:"text-base font-bold text-white",children:"API Gia hạn Proxy xoay"})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-white/95",children:"Gia hạn thá»i gian sá» dụng cho c\xe1c Proxy Ä\xe3 mua"})]}),(0,t.jsxs)(h.Wu,{className:"space-y-4 p-5",children:[(0,t.jsxs)("div",{className:"space-y-2.5",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Endpoint"]}),(0,t.jsx)(E,{code:(0,z.KB)(s,"/orders/renewal-proxies")})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 rounded-full bg-gradient-to-r"}),"Headers"]}),(0,t.jsx)(E,{code:"Content-Type: application/json\nAuthorization: Bearer <accessToken>\nx-merchant-id: <merchantId>"})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"from-primary to-primary/70 size-2 roun
1ded-full bg-gradient-to-r"}),"Request Body"]}),(0,t.jsxs)("div",{className:"bg-background overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"userProxyIds",type:"array<number>",required:!0,description:"Danh s\xe1ch ID proxy cần gia hạn"}),(0,t.jsx)(S,{name:"dayOfRenewal",type:"number",required:!0,description:"Sá» ng\xe0y muá»n gia hạn th\xeam"}),(0,t.jsx)(S,{name:"isRenewal",type:"boolean",required:!0,description:"Lu\xf4n lu\xf4n c\xf3 gi\xe1 trá» false"}),(0,t.jsx)(S,{name:"categoryTypeId",type:"number",required:!0,description:"ID loại danh mục (Proxy xoay = 2)"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Request"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({userProxyIds:[12345,12346,12347],dayOfRenewal:30,isRenewal:!1,categoryTypeId:2},null,2)})]}),(0,t.jsx)(I.Separator,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("h4",{className:"text-text-normal flex items-center gap-2 text-base font-bold",children:[(0,t.jsx)("div",{className:"size-2 rounded-full bg-gradient-to-r from-emerald-500 to-emerald-600"}),"Response th\xe0nh c\xf4ng (200)"]}),(0,t.jsxs)("div",{className:"bg-background hidden overflow-hidden rounded-lg border",children:[(0,t.jsx)(S,{name:"success",type:"boolean",description:"Trạng th\xe1i gia hạn (true/false)"}),(0,t.jsx)(S,{name:"message",type:"string",description:"Th\xf4ng b\xe1o kết quả"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-r from-slate-200 to-transparent dark:from-slate-700"}),(0,t.jsx)("p",{className:"text-sm font-semibold text-slate-600 dark:text-slate-400",children:"V\xed dụ Response"}),(0,t.jsx)("div",{className:"h-px flex-1 bg-gradient-to-l from-slate-200 to-transparent dark:from-slate-700"})]}),(0,t.jsx)(E,{code:JSON.stringify({success:!0,message:"Ä\xe3 gia hạn proxy th\xe0nh c\xf4ng"},null,2)})]})]})]})})]})]})}var O=a(39180),D=a(18776);function V(){let{config:e}=(0,O.r)(),s=null==e?void 0:e.hostName;return(0,t.jsx)(r.default,{scrollable:!0,children:(0,t.jsxs)("div",{className:"w-full space-y-6",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"p-2 rounded-xl bg-gradient-to-br from-primary to-primary/80 shadow-lg shadow-primary/20",children:(0,t.jsx)(l,{className:"size-6 text-white"})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("h1",{className:"text-2xl md:text-3xl font-bold text-text-normal bg-gradient-to-r from-slate-900 to-slate-700 dark:from-slate-100 dark:to-slate-300 bg-clip-text text-transparent",children:"API Documentation"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"T\xe0i liá»u API Äầy Äá»§ v\xe0 dá»
sá» dụng cho developer"})]})]}),(0,t.jsx)(A,{})]}),(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)(d.tU,{defaultValue:"overview",className:"space-y-6",children:[(0,t.jsxs)(d.j7,{className:"grid w-full grid-cols-4 h-auto p-1.5 gap-2 bg-slate-100 dark:bg-slate-800/50 rounded-xl",children:[(0,t.jsx)(d.Xi,{value:"overview",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(l,{className:"size-4"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Tá»ng quan"})]})}),(0,t.jsx)(d.Xi,{value:"proxy-static",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(i.A,{className:"size-4"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Proxy TÄ©nh"})]})}),(0,t.jsx)(d.Xi,{value:"proxy-rotated",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(o.A,{className:"size-4"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Proxy Xoay"})]})}),(0,t.jsx)(d.Xi,{value:"key-rotate",className:"text-sm py-3 px-4 data-[state=active]:bg-white dark:data-[state=active]:bg-slate-700 data-[state=active]:shadow-md transition-all duration-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)(c,{className:"size-4"}),(0,t.jsx)("span",{className:"text-sm font-medium",children:"Key Xoay"})]})})]}),(0,t.jsxs)(d.av,{value:"overview",className:"space-y-6 mt-0",children:[(0,t.jsx)(R,{hostName:s||""}),(0,t.jsx)(P,{})]}),(0,t.jsxs)(d.av,{value:"proxy-static",className:"space-y-6 mt-0",children:[(0,t.jsx)(q,{hostName:s||""}),(0,t.jsx)(P,{})]}),(0,t.jsxs)(d.av,{value:"proxy-rotated",className:"space-y-6 mt-0",children:[(0,t.jsx)(C,{hostName:s||""}),(0,t.jsx)(P,{})]}),(0,t.jsxs)(d.av,{value:"key-rotate",className:"space-y-6 mt-0",children:[(0,t.jsx)(D.A,{hostName:s||""}),(0,t.jsx)(P,{})]})]})})]})})}},89559:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(71847).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])}}]);
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.