PageSourceSearch

https://paper2gal.com/assets/MarkdownPage-DghJi6z7.js

js paper2gal.com collected 2026-10-09 22:39:51 UTC 4,344 bytes, 10 lines download raw bytes

1import{r as u,j as e}from"./react-vendor-CHQL15iE.js";import{am as L}from"./lucide-BFLOpGdB.js";import{M,e as O}from"./markdown-W-rE_H7s.js";const B=({url:l,title:f,onBack:v,language:R})=>{const[k,h]=u.useState(""),[y,x]=u.useState(!0);return u.useEffect(()=>{const t=l.toLowerCase().includes("terms"),A=t?"/terms":"/privacy",m=t?"Read the Paper2Galgame terms of service, platform usage rules, and account responsibilities.":"Read the Paper2Galgame privacy policy to understand how account, usage, and document data are handled.",a=t?"Terms of Service | Paper2Galgame":"Privacy Policy | Paper2Galgame",b=`${window.location.origin}${A}`,j=document.title,o=document.querySelector('meta[name="description"]'),r=document.querySelector('link[rel="canonical"]'),n=document.querySelector('meta[property="og:title"]'),s=document.querySelector('meta[property="og:description"]'),c=document.querySelector('meta[property="og:url"]'),p=document.querySelector('meta[property="twitter:title"]'),d=document.querySelector('meta[property="twitter:description"]'),i=document.querySelector('meta[property="twitter:url"]'),w=(o==null?void 0:o.getAttribute("content"))||"",S=(r==null?void 0:r.getAttribute("href"))||"",N=(n==null?void 0:n.getAttribute("content"))||"",P=(s==null?void 0:s.getAttribute("content"))||"",q=(c==null?void 0:c.getAttribute("content"))||"",E=(p==null?void 0:p.getAttribute("content"))||"",C=(d==null?void 0:d.getAttribute("content"))||"",G=(i==null?void 0:i.getAttribute("content"))||"";return document.title=a,o==null||o.setAttribute("content",m),r==null||r.setAttribute("href",b),n==null||n.setAttribute("content",a),s==null||s.setAttribute("content",m),c==null||c.setAttribute("content",b),p==null||p.setAttribute("content",a),d==null||d.setAttribute("content",m),i==null||i.setAttribute("content",b),()=>{document.title=j,o==null||o.setAttribute("content",w),r==null||r.setAttribute("href",S),n==null||n.setAttribute("content",N),s==null||s.setAttribute("content",P),c==null||c.setAttribute("content",q),p==null||p.setAttribute("content",E),d==null||d.setAttribute("content",C),i==null||i.setAttribute("content",G)}},[l]),u.useEffect(()=>{fetch(l).then(t=>{if(!t.ok)throw new Error("Failed to load content");return t.text()}).then(t=>{h(t),x(!1)}).catch(t=>{h("Error loading document."),x(!1)})},[l]),e.jsx("div",{className:"fixed inset-0 z-[100] bg-pink-50 overflow-y-auto custom-scrollbar p-4 md:p-8 flex flex-col items-center",children:e.jsxs("div",{className:"w-full max-w-4xl pb-16 md:pb-24",children:[e.jsxs("div",{className:"flex items-center mb-6 sticky top-0 md:relative bg-pink-50/80 backdrop-blur-md md:bg-transparent z-20 py-2 md:py-0",children:[e.jsx("button",{onClick:v,className:"p-2 md:p-3 bg-white hover:bg-pink-100 text-slate-500 hover:text-pink-500 rounded-xl transition-all shadow-sm border border-pink-100 mr-4",children:e.jsx(L,{className:"w-5 h-5 md:w-6 md:h-6"})}),e.jsx("h1",{className:"text-2xl md:text-3xl font-black text-slate-800 tracking-tight",children:f})]}),e.jsx("div",{className:"bg-white rounded-3xl shadow-xl p-6 md:p-12 border-4 border-white ring-4 ring-pink-100 min-h-[70vh]",children:y?e.jsx("div",{className:"flex justify-center items-center h-full text-pink-300",children:e.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-pink-400"})}):e.jsx("div",{className:`prose prose-pink prose-slate max-w-none md:prose-lg
2                prose-h1:text-center prose-h1:font-black prose-h1:text-3xl prose-h1:text-slate-800 prose-h1:mb-8
3                prose-h2:text-2xl prose-h2:font-bold prose-h2:text-slate-700 prose-h2:mt-10 prose-h2:mb-4 prose-h2:border-b prose-h2:border-pink-100 prose-h2:pb-2
4                prose-h3:text-xl prose-h3:font-bold prose-h3:text-slate-600 prose-h3:mt-8
5                prose-p:text-slate-600 prose-p:leading-relaxed prose-p:mb-5
6                prose-a:text-pink-500 prose-a:no-underline hover:prose-a:text-pink-600 hover:prose-a:underline
7                prose-li:text-slate-600 prose-li:my-1
8                prose-strong:text-slate-700 prose-strong:font-bold
9                prose-code:text-pink-600 prose-code:bg-pink-50 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded-md prose-code:before:content-none prose-code:after:content-none
10              `,children:e.jsx(M,{remarkPlugins:[O],children:k})})})]})})};export{B as default};

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.