PageSourceSearch

https://hhdcz04-python1.hf.space/static/js/async/2176.74f0c3455d.js

js hhdcz04-python1.hf.space collected 2026-10-03 16:56:00 UTC 3,505 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkreact_template=self.rspackChunkreact_template||[]).push([[2176],{23941(e,t,s){var l=s(42951),a=s(77599),r=s(61701),c=s(4750),n=s(73512),i=s(61625),d=s(92961);let{Title:m}=c.o5,o=e=>!!e&&"string"==typeof e&&/<\/?[a-z][\s\S]*>/i.test(e);s.d(t,{},{A:e=>{let{apiEndpoint:t,title:s,cacheKey:x,emptyMessage:g}=e,{t:p}=(0,i.Bd)(),[h,u]=(0,a.useState)(""),[y,j]=(0,a.useState)(!0),f=async()=>{let e=localStorage.getItem(x)||"";e&&(u(e),j(!1));try{let{success:s,message:l,data:a}=(await r.nC.get(t)).data;s&&a?(u(a),localStorage.setItem(x,a)):e||((0,r.Qg)(l||g),u(""))}catch(t){e||((0,r.Qg)(g),u(""))}finally{j(!1)}},v=(0,a.useMemo)(()=>{let e,t,s;return o(h)?((e=document.createElement("div")).innerHTML=h,t=Array.from(e.querySelectorAll("style")).map(e=>e.innerHTML).join("\n"),{content:(s=e.querySelector("body"))?s.innerHTML:h,styles:t}):{content:"",styles:""}},[h]);return((0,a.useEffect)(()=>{f()},[]),(0,a.useEffect)(()=>{let e="document-renderer-styles-".concat(x),{styles:t}=v;if(t){let s=document.getElementById(e);s||((s=document.createElement("style")).id=e,s.type="text/css",document.head.appendChild(s)),s.innerHTML=t}else{let t=document.getElementById(e);t&&t.remove()}return()=>{let t=document.getElementById(e);t&&t.remove()}},[x,v]),y)?(0,l.jsx)("div",{className:"classic-page-fill flex justify-center items-center",children:(0,l.jsx)(c.tK,{size:"large"})}):h&&""!==h.trim()?(e=>{try{return new URL(e.trim()),!0}catch(e){return!1}})(h)?(0,l.jsx)("div",{className:"classic-page-fill flex justify-center items-center bg-gray-50 p-4",children:(0,l.jsx)(c.Zp,{className:"max-w-md w-full",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)(m,{heading:4,className:"mb-4",children:s}),(0,l.jsx)("p",{className:"text-gray-600 mb-4",children:p("管理员设置了外部链接,点击下方按钮访问")}),(0,l.jsx)("a",{href:h.trim(),target:"_blank",rel:"noopener noreferrer",title:h.trim(),"aria-label":"".concat(p("访问"+s),": ").concat(h.trim()),className:"inline-block px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:p("访问"+s)})]})})}):o(h)?(0,l.jsx)("div",{className:"classic-page-fill bg-gray-50",children:(0,l.jsx)("div",{className:"max-w-4xl mx-auto py-12 px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"bg-white rounded-lg shadow-sm p-8",children:[(0,l.jsx)(m,{heading:2,className:"text-center mb-8",children:s}),(0,l.jsx)("div",{className:"prose prose-lg max-w-none",dangerouslySetInnerHTML:{__html:v.content}})]})})}):(0,l.jsx)("div",{className:"classic-page-fill bg-gray-50",children:(0,l.jsx)("div",{className:"max-w-4xl mx-auto py-12 px-4 sm:px-6 lg:px-8",children:(0,l.jsxs)("div",{className:"bg-white rounded-lg shadow-sm p-8",children:[(0,l.jsx)(m,{heading:2,className:"text-center mb-8",children:s}),(0,l.jsx)("div",{className:"prose prose-lg max-w-none",children:(0,l.jsx)(d.Ay,{content:h})})]})})}):(0,l.jsx)("div",{className:"classic-page-fill flex justify-center items-center bg-gray-50",children:(0,l.jsx)(c.Sv,{title:p("管理员未设置"+s+"内容"),image:(0,l.jsx)(n.I6,{style:{width:150,height:150}}),darkModeImage:(0,l.jsx)(n.sO,{style:{width:150,height:150}}),className:"p-8"})})}})},37459(e,t,s){s.r(t);var l=s(42951);s(77599);var a=s(61625),r=s(23941);s.d(t,{},{default:()=>{let{t:e}=(0,a.Bd)();return(0,l.jsx)(r.A,{apiEndpoint:"/api/privacy-policy",title:e("隐私政策"),cacheKey:"privacy_policy",emptyMessage:e("加载隐私政策内容失败...")})}})}}]);

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.