1/*! LICENSE: 6412.ec1257b406.js.LICENSE.txt */ 2"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[6412],{39369(e,t,s){function r(e){try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}function n(e){return/<!doctype html|<html[\s>]|<head[\s>]|<body[\s>]|<style[\s>]|<script[\s>]|<\/?[a-z][\s\S]*>/i.test(e)}s.d(t,{q:()=>r,y:()=>n})},35143(e,t,s){s.r(t),s.d(t,{component:()=>d});var r=s(79015),n=s(43866);let a=(0,s(40946).A)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]]);var o=s(89077),l=s(51571),i=s(93375),c=s(93539),h=s(39369),u=s(63228);async function m(){return(await u.FH.get("/api/about")).data}function p(){let{t:e}=(0,o.Bd)(),t=new Date().getFullYear();return(0,r.jsx)("div",{className:"flex min-h-[60vh] items-center justify-center p-8",children:(0,r.jsxs)("div",{className:"max-w-2xl space-y-6 text-center",children:[(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(a,{className:"text-muted-foreground h-24 w-24"})}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h2",{className:"text-2xl font-bold",children:e("No About Content Set")}),(0,r.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,r.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,r.jsxs)("p",{children:[e("New API Project Repository:")," ",(0,r.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,r.jsxs)("p",{className:"text-muted-foreground",children:[(0,r.jsx)("a",{href:"https://github.com/QuantumNous/new-api",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("NewAPI")})," ","© ",t," ",(0,r.jsx)("a",{href:"https://github.com/QuantumNous",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("QuantumNous")})," ",e("| Based on")," ",(0,r.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,r.jsx)("a",{href:"https://github.com/songquanpeng",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:e("JustSong")})]}),(0,r.jsxs)("p",{className:"text-muted-foreground",children:[e("This project must be used in compliance with the")," ",(0,r.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 d=function(){let{t:e}=(0,o.Bd)(),{data:t,isLoading:s}=(0,n.I)({queryKey:["about-content"],queryFn:m}),a=t?.data?.trim()??"",u=a.length>0,d=u&&(0,h.q)(a),x=u&&(0,h.y)(a);return s?(0,r.jsx)(l.si,{children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-4xl flex-col gap-4 py-12",children:[(0,r.jsx)(c.E,{className:"h-8 w-[45%]"}),(0,r.jsx)(c.E,{className:"h-4 w-full"}),(0,r.jsx)(c.E,{className:"h-4 w-[90%]"}),(0,r.jsx)(c.E,{className:"h-4 w-[80%]"})]})}):u?d?(0,r.jsx)(l.si,{showMainContainer:!1,children:(0,r.jsx)("iframe",{src:a,className:"h-[calc(100vh-3.5rem)] w-full border-0",title:e("About"),sandbox:"allow-forms allow-popups allow-popups-to-escape-sandbox allow-scripts"})}):x?(0,r.jsx)(l.si,{showMainContainer:!1,children:(0,r.jsx)(i.K,{mode:"html",htmlVariant:"isolated",content:a,className:"prose-neutral dark:prose-invert max-w-none"})}):(0,r.jsx)(l.si,{children:(0,r.jsx)("div",{className:"mx-auto max-w-6xl px-4 py-8",children:(0,r.jsx)(i.K,{mode:"markdown",content:a,className:"prose-neutral dark:prose-invert max-w-none"})})}):(0,r.jsx)(l.si,{children:(0,r.jsx)(p,{})})}}}]);
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.