PageSourceSearch

https://namag.app/_next/static/chunks/3211-692a10f26816e649.js

js namag.app collected 2026-10-02 01:14:36 UTC 12,774 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3211],{52808:function(e,t,r){r.d(t,{U:function(){return d}});var a=r(85893),n=r(67294),i=r(67421),o=r(41664),s=r.n(o),l=r(72428),c=r(41747);let d=e=>{let{isLoading:t=!1,variant:r="default",showTitle:o=!0}=e,{t:d}=(0,i.$G)(),[h,x]=(0,n.useState)(t),[m,g]=(0,n.useState)(null),p=async()=>{try{x(!0),g(null);let{codeVerifier:e,codeChallenge:t}=await (0,c.nN)();(0,c.gl)(e);let r=(0,c.aV)(),a=(0,l.iq)(r,t,"google-oauth2");window.location.href=a}catch(e){console.error("Login error:",e),g(d("login.errors.loginFailed")),x(!1)}},u=async()=>{try{x(!0),g(null);let{codeVerifier:e,codeChallenge:t}=await (0,c.nN)();(0,c.gl)(e);let r=(0,c.aV)(),a=(0,l.iq)(r,t,"apple");window.location.href=a}catch(e){console.error("Login error:",e),g(d("login.errors.loginFailed")),x(!1)}};return(0,a.jsxs)("div",{className:"w-full max-w-md relative z-10",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3 mb-8",children:[(0,a.jsx)("img",{src:"/images/logo.svg",alt:"Namag",className:"w-12 h-12 dark:invert-0 invert"}),(0,a.jsx)("span",{className:"text-2xl font-bold tracking-tight text-slate-900 dark:text-white",children:"Namag"})]}),o&&(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsx)("h1",{className:"text-3xl font-bold text-slate-900 dark:text-white mb-2",children:d("invite"===r?"login.header.inviteTitle":"login.header.title")}),(0,a.jsx)("p",{className:"text-slate-500 dark:text-white/60 text-base",children:d("invite"===r?"login.header.inviteSubtitle":"login.header.subtitle")})]}),m&&(0,a.jsx)("div",{className:"mb-6 p-4 bg-red-500/10 border border-red-500/30 rounded-lg",children:(0,a.jsx)("p",{className:"text-red-300 text-sm",children:m})}),(0,a.jsxs)("button",{onClick:p,disabled:h,className:"w-full bg-white dark:bg-white text-gray-900 py-3 rounded-xl font-semibold flex items-center justify-center gap-3 hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed relative overflow-hidden group border border-slate-200 dark:border-transparent",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-purple-500/10 to-transparent opacity-0 group-hover:opacity-100 animate-shine"}),(0,a.jsxs)("svg",{className:"w-5 h-5 ".concat(h?"animate-spin":""),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),(0,a.jsx)("span",{className:"relative",children:h?d("login.button.signingIn"):d("login.button.continueWithGoogle")})]}),(0,a.jsxs)("button",{onClick:u,disabled:h,className:"w-full bg-black text-white py-3 rounded-xl font-semibold flex items-center justify-center gap-3 hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300 disabled:opacity-70 disabled:cursor-not-allowed relative overflow-hidden group mt-3",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent opacity-0 group-hover:opacity-100 animate-shine"}),(0,a.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.09l-.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),(0,a.jsx)("span",{className:"relative",children:h?d("login.button.signingIn"):d("login.button.continueWithApple")})]}),(0,a.jsx)("div",{className:"text-center mt-8 text-slate-500 dark:text-white/50 text-sm",children:(0,a.jsxs)("p",{children:[d("login.footer.agreement")," ",(0,a.jsx)(s(),{href:"/terms",className:"text-purple-500 dark:text-purple-300 hover:text-purple-600 dar
1k:hover:text-purple-200 transition-colors",children:d("login.footer.terms")})," ",d("login.footer.and")," ",(0,a.jsx)(s(),{href:"/privacy",className:"text-purple-500 dark:text-purple-300 hover:text-purple-600 dark:hover:text-purple-200 transition-colors",children:d("login.footer.privacy")})]})})]})}},89180:function(e,t,r){r.d(t,{R:function(){return c}});var a=r(85893),n=r(9008),i=r.n(n);let o=r(83454).env.NEXT_PUBLIC_SITE_URL||"https://namag.app",s="Namag",l="".concat(o,"/images/og-image.png");function c(e){let{title:t,description:r="An AI-powered library that makes saving effortless and finding instant, so you actually benefit from what you save.",path:n="",ogImage:c=l,ogImageAlt:d="Namag — an AI-powered library for everything you save.",ogType:h="website",noindex:x=!1,skipSuffix:m=!1,children:g}=e,p=m||t===s?t:"".concat(t," | ").concat(s),u="".concat(o).concat(n);return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:p}),(0,a.jsx)("meta",{name:"description",content:r}),(0,a.jsx)("link",{rel:"canonical",href:u}),x&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,a.jsx)("meta",{property:"og:title",content:p}),(0,a.jsx)("meta",{property:"og:description",content:r}),(0,a.jsx)("meta",{property:"og:url",content:u}),(0,a.jsx)("meta",{property:"og:type",content:h}),(0,a.jsx)("meta",{property:"og:site_name",content:s}),(0,a.jsx)("meta",{property:"og:image",content:c}),(0,a.jsx)("meta",{property:"og:image:alt",content:d}),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{property:"og:locale",content:"en_US"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:p}),(0,a.jsx)("meta",{name:"twitter:description",content:r}),(0,a.jsx)("meta",{name:"twitter:image",content:c}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:d}),g]})}},72428:function(e,t,r){function a(e,t){if(!t)throw Error("Missing required env var: ".concat(e,". ")+"Set it in .env.local (see .env.local.example) or in your deploy environment.");return t}r.d(t,{iq:function(){return i},yQ:function(){return n}});let n={domain:a("NEXT_PUBLIC_AUTH0_DOMAIN","auth.namag.app"),clientId:a("NEXT_PUBLIC_AUTH0_CLIENT_ID","pStqJXxuO8mbRziCA8iTQSQdPwg49Cia"),audience:a("NEXT_PUBLIC_AUTH0_AUDIENCE","https://noax.eu.auth0.com/api/v2/"),redirectUri:"".concat(window.location.origin,"/auth/callback"),safariExtensionRedirectUri:"".concat(window.location.origin,"/safari-login/callback"),logoutRedirectUri:"".concat(window.location.origin),scope:"openid profile email offline_access",get authorizationEndpoint(){let e=n.domain;return"https://".concat(e,"/authorize")},get tokenEndpoint(){let e=n.domain;return"https://".concat(e,"/oauth/token")},get logoutEndpoint(){let e=n.domain;return"https://".concat(e,"/v2/logout")},get userInfoEndpoint(){let e=n.domain;return"https://".concat(e,"/userinfo")}},i=(e,t,r)=>{let a=new URLSearchParams({client_id:n.clientId,redirect_uri:n.redirectUri,response_type:"code",scope:n.scope,audience:n.audience,state:e,code_challenge:t,code_challenge_method:"S256"});return r&&a.append("connection",r),"".concat(n.authorizationEndpoint,"?").concat(a.toString())}},82865:function(e,t,r){r.d(t,{a2:function(){return m}});var a=r(85893),n=r(67294),i=r(41664),o=r.n(i),s=r(67421),l=r(67726);let c=()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t(!!(0,l.hP)())},[]),e},d=()=>(0,a.jsxs)(o(),{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/images/logo.svg",alt:"",className:"w-5 h-5 invert dark:invert-0"}),(0,a.jsx)("span",{className:"text-[14px] font-semibold tracking-[-0.02em] text-black dark:text-white",children:"Namag"})]}),h=e=>{let{minimal:t=!1}=e,{t:r}=(0,s.$G)(),n=c();return(0,a.jsx)("header",{className:"sticky top-0 z-40 backdrop-blur-md bg-white/80 dark:bg-black/60 border-b border-black/[0.06] dark:border-white/[0.06]",children:(0,a.jsxs)("nav",{className:"max-w-6xl mx-auto px-6 h-14 flex items-center gap-7",children:[(0,a.jsx)(d,{}),!t&&(0,a.jsxs)("div",{className:"hidden md:flex items-center gap-7 text-[13px] text-black/55 dark:text-white/55 tracking-[-0.01em]",children:[!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{href:"/#features",className:"hover:text-black dark:hover:text-white transition",children:r("header.features")}),(0,a.jsx)(o(),{href:"/#how",className:"hover:text-black dark:hover:text-white transition",children:r("header.howItWorks")})]}),(0,a.jsx)(o(),{href:"/pricing",className:"hover:text-black dark:hover:text-white transition",children:r("header.pricing")}),(0,a.jsx)(o(),{href:"/faq",className:"hover:text-black dark:hover:text-white transition",children:r("header.faq")})]}),(0,a.jsx)("div",{className:"ml-auto flex items-center gap-3 text-[13px]",children:n?(0,a.jsxs)(o(),{href:"/library",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-md bg-black dark:bg-white text-white dark:text-black font-medium hover:opacity-90 transition-[transform,opacity] duration-150 ease-spring active:scale-[0.97]",children:[r("header.myLibrary"),(0,a.jsx)("span",{"aria-hidden":"true",children:"→"})]}):(0,a.jsx)(a.Fragment,{children:!t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o(),{href:"/login",className:"text-black/55 dark:text-white/55 hover:text-black dark:hover:text-white transition",children:r("header.loginButton")}),(0,a.jsx)(o(),{href:"/waitlist",className:"inline-flex items-center px-3 py-1.5 rounded-md bg-black dark:bg-white text-white dark:text-black font-medium hover:opacity-90 transition-[transform,opacity] duration-150 ease-spring active:scale-[0.97]",children:r("landing.joinWaitlist")})]})})})]})})},x=()=>{let{t:e}=(0,s.$G)();return(0,a.jsx)("footer",{className:"px-6 py-8 border-t border-black/[0.08] dark:border-white/[0.08] text-black dark:text-white",children:(0,a.jsxs)("div",{className:"max-w-6xl mx-auto flex flex-col md:flex-row items-center gap-4 md:gap-7",children:[(0,a.jsx)(d,{}),(0,a.jsxs)("div",{className:"flex items-center gap-6 text-[12.5px] text-black/55 dark:text-white/55 tracking-[-0.005em]",children:[(0,a.jsx)(o(),{href:"/terms",className:"hover:text-black dark:hover:text-white transition",children:e("footer.terms")}),(0,a.jsx)(o(),{href:"/privacy",className:"hover:text-black dark:hover:text-white transition",children:e("footer.privacy")}),(0,a.jsx)(o(),{href:"/support",className:"hover:text-black dark:hover:text-white transition",children:e("footer.support")})]}),(0,a.jsx)("span",{className:"md:ml-auto text-[11.5px] text-black/55 dark:text-white/55 tracking-[-0.005em]",children:"\xa9 2026 Namag"})]})})},m=e=>{let{children:t,navMinimal:r=!1,hideFooter:n=!1,className:i}=e;return(0,a.jsxs)("div",{className:null!=i?i:"min-h-screen bg-white dark:bg-black antialiased selection:bg-violet-500/30 flex flex-col",children:[(0,a.jsx)(h,{minimal:r}),(0,a.jsx)("main",{className:"flex-1 flex flex-col",children:t}),!n&&(0,a.jsx)(x,{})]})}},41747:function(e,t,r){r.d(t,{Nn:function(){return c},Ri:function(){return h},aV:function(){return d},gl:function(){return s},gr:function(){return l},nN:function(){return o}});let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:43,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r="",a=new Uint8Array(e);crypto.getRandomValues(a);for(let n=0;n<e;n++)r+=t[a[n]%t.length];return r},n=async e=>{let t=new TextEncoder().encode(e);return crypto.subtle.digest("SHA-256",t)},i=e=>{let t=new Uint8Array(e),r="";for(let e=0;e<t.byteLength;e++)r+=String.fromCharCode(t[e]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},o=async()=>{let e=a(43),t=i(await n(e));return{codeVerifier:e,codeChallenge:t}},s=e=>
1{try{sessionStorage.setItem("pkce_verifier",e)}catch(e){console.error("Failed to store PKCE verifier:",e)}},l=()=>{try{return sessionStorage.getItem("pkce_verifier")}catch(e){console.error("Failed to get PKCE verifier:",e)}return null},c=()=>{try{sessionStorage.removeItem("pkce_verifier")}catch(e){console.error("Failed to clear PKCE verifier:",e)}},d=()=>{let e=a(32);return sessionStorage.setItem("oauth_state",e),e},h=e=>sessionStorage.getItem("oauth_state")===e&&(sessionStorage.removeItem("oauth_state"),!0)}}]);

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.