1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[7903],{19218(e,r,t){t.r(r),t.d(r,{component:()=>p});var s=t(72361),n=t(53540),a=t(6702),o=t(61631),l=t(60032),i=t(18434),c=t(67267),u=t(64577);async function h(){return(await u.FH.get("/api/about")).data}function m(){let{t:e}=(0,a.Bd)(),r=new Date().getFullYear();return(0,s.jsx)("div",{className:"flex min-h-[60vh] items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"max-w-2xl space-y-6 text-center",children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(o._qO,{className:"text-muted-foreground h-24 w-24"})}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold",children:e("No About Content Set")}),(0,s.jsx)("p",{className:"text-muted-foreground",children:e("The administrator has not configured any about content yet. You can set it in the settings page, supporting HTML or URL.")})]}),(0,s.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,s.jsxs)("p",{children:[e("New API Project Repository:")," ",(0,s.jsx)("a",{href:"https://github.com/QuantumNous/new-api",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("https://github.com/QuantumNous/new-api")})]}),(0,s.jsxs)("p",{className:"text-muted-foreground",children:[(0,s.jsx)("a",{href:"https://github.com/QuantumNous/new-api",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("NewAPI")})," ","© ",r," ",(0,s.jsx)("a",{href:"https://github.com/QuantumNous",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("QuantumNous")})," ",e("| Based on")," ",(0,s.jsx)("a",{href:"https://github.com/songquanpeng/one-api",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("One API")})," ","© 2023"," ",(0,s.jsx)("a",{href:"https://github.com/songquanpeng",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("JustSong")})]}),(0,s.jsxs)("p",{className:"text-muted-foreground",children:[e("This project must be used in compliance with the")," ",(0,s.jsx)("a",{href:"https://github.com/QuantumNous/new-api/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("AGPL v3.0 License")}),"."]})]})]})})}let p=function(){let{t:e}=(0,a.Bd)(),{data:r,isLoading:t}=(0,n.I)({queryKey:["about-content"],queryFn:h}),o=r?.data?.trim()??"",u=o.length>0,p=u&&function(e){try{let r=new URL(e);return"http:"===r.protocol||"https:"===r.protocol}catch{return!1}}(o),x=u&&!p&&/<\/?[a-z][\s\S]*>/i.test(o);return t?(0,s.jsx)(c.si,{children:(0,s.jsxs)("div",{className:"mx-auto flex max-w-4xl flex-col gap-4 py-12",children:[(0,s.jsx)(i.E,{className:"h-8 w-[45%]"}),(0,s.jsx)(i.E,{className:"h-4 w-full"}),(0,s.jsx)(i.E,{className:"h-4 w-[90%]"}),(0,s.jsx)(i.E,{className:"h-4 w-[80%]"})]})}):u?p?(0,s.jsx)(c.si,{showMainContainer:!1,children:(0,s.jsx)("iframe",{src:o,className:"h-[calc(100vh-3.5rem)] w-full border-0",title:e("About")})}):(0,s.jsx)(c.si,{children:(0,s.jsx)("div",{className:"mx-auto max-w-6xl px-4 py-8",children:x?(0,s.jsx)("div",{className:"prose prose-neutral dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:o}}):(0,s.jsx)(l.o,{className:"prose-neutral dark:prose-invert max-w-none",children:o})})}):(0,s.jsx)(c.si,{children:(0,s.jsx)(m,{})})}}}]);
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.