PageSourceSearch

https://mathpal.study/assets/ApiKeyModal-BGZx0eta.js

js mathpal.study collected 2026-09-24 13:53:41 UTC 3,815 bytes, 1 lines download raw bytes

1import{j as e,T as c}from"./index-Du2OnknB.js";import{y as l,X as o,r as x,Z as m}from"./vendor-ui-J5w_n61H.js";import"./vendor-react-DWrb1CVO.js";import"./vendor-firebase-P8isnFtX.js";const N=({isOpen:d,onClose:t,hasKey:p,currentKey:h,lang:s,isQuotaExceeded:u,isManaged:b=!0,systemKeyAvailable:i=!1,daysRemaining:a=0})=>{const r=c[s];return d?e.jsx("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-slate-900/60 backdrop-blur-md p-3 animate-in fade-in duration-500",onClick:t,children:e.jsxs("div",{id:"tour-apikey-modal-content",className:"bg-white/90 dark:bg-slate-900/90 rounded-[3rem] w-full max-w-lg shadow-[0_32px_64px_-12px_rgba(0,0,0,0.4)] border border-white dark:border-slate-800 relative overflow-hidden animate-in zoom-in-95 duration-300",onClick:n=>n.stopPropagation(),children:[e.jsx("div",{className:"absolute -top-24 -right-24 w-64 h-64 rounded-full blur-[100px] transition-colors duration-700 bg-emerald-50/20"}),e.jsxs("div",{className:"relative z-10 p-8",children:[e.jsxs("div",{className:"flex flex-col items-center text-center mb-8",children:[e.jsx("div",{className:"w-20 h-20 rounded-[2rem] flex items-center justify-center mb-6 transition-all duration-500 shadow-2xl bg-gradient-to-br from-emerald-400 to-teal-600 text-white rotate-12",children:e.jsx(l,{className:"w-10 h-10"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-900 dark:text-white tracking-tight uppercase",children:r.managed_mode_title}),e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full animate-pulse bg-emerald-500"}),e.jsx("p",{className:"text-[10px] font-black text-slate-400 uppercase tracking-[0.2em]",children:"Secure AI Authentication"})]})]}),t&&e.jsx("button",{onClick:t,className:"absolute top-2 right-2 p-3 text-slate-400 hover:text-slate-600 dark:hover:text-white transition-colors",children:e.jsx(o,{className:"w-6 h-6"})})]}),e.jsx("div",{className:"space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500",children:e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-emerald-400 to-teal-500 rounded-[2rem] blur opacity-25 group-hover:opacity-50 transition duration-1000 group-hover:duration-200"}),e.jsxs("div",{className:"relative bg-white dark:bg-slate-800 border border-emerald-100 dark:border-emerald-900/50 p-6 rounded-[2rem] flex flex-col items-center gap-5 text-center shadow-sm",children:[e.jsx("div",{className:"p-3 bg-emerald-50 dark:bg-emerald-900/30 rounded-2xl",children:e.jsx(x,{className:"w-6 h-6 text-emerald-500"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("p",{className:"text-sm text-slate-600 dark:text-slate-300 font-bold leading-relaxed px-4",children:r.managed_mode_desc}),i&&a>0&&e.jsx("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-emerald-600 text-white rounded-2xl text-xs font-black shadow-lg shadow-emerald-500/20 uppercase tracking-wide",children:s==="vi"?`Còn ${a} ngày sử dụng đặc quyền`:`${a} days of privilege left`})]})]})]})})]}),e.jsxs("div",{className:"px-8 py-5 bg-slate-50 dark:bg-slate-950/50 border-t border-slate-100 dark:border-slate-800 flex items-center justify-center gap-6",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[9px] font-black text-slate-400 uppercase tracking-widest",children:[e.jsx(l,{className:"w-3.5 h-3.5 text-emerald-500"}),"End-to-End Encrypted"]}),e.jsx("div",{className:"w-1 h-1 rounded-full bg-slate-300 dark:bg-slate-700"}),e.jsxs("div",{className:"flex items-center gap-2 text-[9px] font-black text-slate-400 uppercase tracking-widest",children:[e.jsx(m,{className:"w-3.5 h-3.5 text-amber-500"}),"Powered by Gemini"]})]})]})}):null};export{N as ApiKeyModal};

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.