PageSourceSearch

https://paper2gal.com/assets/MobileApkPromptModal-BaOGB0mh.js

js paper2gal.com collected 2026-10-09 22:39:37 UTC 5,200 bytes, 1 lines download raw bytes

1import{r as g,j as e}from"./react-vendor-CHQL15iE.js";import{u,e as f,T as j}from"./main-Dck1T9BT.js";import{X as v,b as x,ak as N,N as w,al as I,D as p}from"./lucide-BFLOpGdB.js";import"./pdfjs-ji3DqnKJ.js";import"./markdown-W-rE_H7s.js";import"./katex-math-BxKHCrdI.js";const k="https://assert.paper2gal.com/assert/paper2galgame.apk",y=()=>{if(typeof navigator>"u")return!1;const n=navigator.userAgent||"";return/iPad|iPhone|iPod/.test(n)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1},$=({isOpen:n,onClose:d,language:b,shell:l="browser"})=>{const a=u(),t=f(),i=a&&Math.max(t.width,t.height)>=650&&Math.max(t.width,t.height)/Math.max(1,Math.min(t.width,t.height))>=1.25,s=j[b],r=g.useMemo(()=>y(),[]),h=[s.mobileIosInstallStep1,s.mobileIosInstallStep2,s.mobileIosInstallStep3,s.mobileIosInstallStep4];if(!n)return null;const m=l==="native-app"||l==="pwa";return e.jsx("div",{className:`absolute inset-0 z-[210] flex items-center justify-center bg-black/50 backdrop-blur-sm animate-fade-in ${a?"p-2":"p-4"}`,onClick:d,children:e.jsxs("div",{className:`bg-white/95 backdrop-blur-xl shadow-xl border-2 border-slate-200 rounded-2xl flex flex-col overflow-hidden animate-bounce-in ${a?"w-full":"max-w-md w-full max-h-[88vh]"}`,style:a?{maxWidth:"min(44rem, calc(var(--app-vw, 100vw) - 1rem))",maxHeight:"calc(var(--app-vh, 100dvh) - 1rem)"}:void 0,onClick:c=>c.stopPropagation(),children:[e.jsxs("div",{className:`flex items-center justify-between border-b border-slate-100 ${a?"px-4 py-3":"px-5 py-4"}`,children:[e.jsx("h2",{className:"font-black text-slate-800 text-lg",children:s.mobileApkPromptTitle}),e.jsx("button",{type:"button",onClick:d,className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors","aria-label":"关闭",children:e.jsx(v,{size:20})})]}),e.jsxs("div",{className:`${a?"p-4":"p-5"} min-h-0 ${i?"grid grid-cols-2 items-start":"flex flex-col"} gap-4 overflow-y-auto overscroll-contain custom-scrollbar`,children:[m?e.jsxs("div",{className:`rounded-xl border border-emerald-100 bg-emerald-50/80 p-3 space-y-3 ${i?"col-span-2":""}`,children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-800 font-black text-sm",children:[e.jsx(x,{size:18,className:"text-emerald-500"}),l==="native-app"?s.mobileNativeAppTitle:s.mobilePwaAppTitle]}),e.jsx("p",{className:"text-sm leading-relaxed text-slate-600",children:l==="native-app"?s.mobileNativeAppMessage:s.mobilePwaAppMessage}),e.jsxs("div",{className:"rounded-lg bg-white/70 border border-emerald-100 p-3 text-xs leading-relaxed text-slate-500",children:[e.jsx("span",{className:"font-bold text-slate-700",children:s.mobileAppUpdateTitle}),e.jsxs("span",{children:[" ",l==="native-app"?s.mobileNativeUpdateMessage:s.mobilePwaUpdateMessage]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:`text-slate-600 text-sm leading-relaxed ${i?"col-span-2":""}`,children:s.mobileAppInstallMessage||(r?s.mobileIosInstallMessage:s.mobileApkPromptMessage)}),e.jsxs("div",{className:"rounded-xl border border-blue-100 bg-blue-50/80 p-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-800 font-black text-sm",children:[e.jsx(N,{size:18,className:"text-blue-500"}),s.mobileIosInstallTitle]}),e.jsx("p",{className:"text-xs leading-relaxed text-slate-500",children:s.mobileIosInstallMessage}),e.jsx("div",{className:"space-y-2 text-sm text-slate-600",children:h.map((c,o)=>e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("span",{className:"font-black text-slate-400",children:[o+1,"."]}
1),e.jsxs("span",{className:"inline-flex items-center gap-1",children:[c,o===1&&e.jsx(w,{size:15,className:"text-blue-500"}),o===2&&e.jsx(I,{size:15,className:"text-slate-500"})]})]},o))})]}),e.jsxs("div",{className:"rounded-xl border border-amber-100 bg-amber-50/80 p-3 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-slate-800 font-black text-sm",children:[e.jsx(p,{size:18,className:"text-amber-500"}),s.mobileAndroidInstallTitle||s.mobileApkDownload]}),e.jsx("p",{className:"text-xs leading-relaxed text-slate-500",children:s.mobileApkPromptMessage}),e.jsxs("a",{href:k,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 w-full py-3 px-4 bg-gradient-to-r from-amber-500 to-amber-600 text-white font-bold rounded-xl hover:from-amber-600 hover:to-amber-700 transition-all shadow-lg",children:[e.jsx(p,{size:20}),s.mobileApkDownload]})]}),r&&e.jsxs("div",{className:`rounded-xl border border-slate-200 bg-slate-50 p-3 text-xs leading-relaxed text-slate-500 ${i?"col-span-2":""}`,children:[e.jsx("span",{className:"font-bold text-slate-700",children:s.mobileIosOnlyHintTitle||"iOS"}),e.jsxs("span",{children:[" ",s.mobileIosOnlyHint||s.mobileIosInstallMessage]})]})]}),e.jsxs("button",{type:"button",onClick:d,className:`${i?"col-span-2":""} ${r||m?"inline-flex items-center justify-center gap-2 w-full py-3 px-4 bg-slate-900 text-white font-bold rounded-xl hover:bg-black":"py-2.5 text-slate-500 font-medium hover:text-slate-700"} transition-all`,children:[(r||m)&&e.jsx(x,{size:18}),s.dialogConfirm]})]})]})})};export{$ 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.