1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5929],{89180:function(e,t,r){r.d(t,{R:function(){return d}});var a=r(85893),n=r(9008),s=r.n(n);let o=r(83454).env.NEXT_PUBLIC_SITE_URL||"https://namag.app",l="Namag",i="".concat(o,"/images/og-image.png");function d(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:d=i,ogImageAlt:c="Namag â an AI-powered library for everything you save.",ogType:x="website",noindex:u=!1,skipSuffix:m=!1,children:h}=e,p=m||t===l?t:"".concat(t," | ").concat(l),b="".concat(o).concat(n);return(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:p}),(0,a.jsx)("meta",{name:"description",content:r}),(0,a.jsx)("link",{rel:"canonical",href:b}),u&&(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:b}),(0,a.jsx)("meta",{property:"og:type",content:x}),(0,a.jsx)("meta",{property:"og:site_name",content:l}),(0,a.jsx)("meta",{property:"og:image",content:d}),(0,a.jsx)("meta",{property:"og:image:alt",content:c}),(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:d}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:c}),h]})}},88320:function(e,t,r){r.d(t,{D:function(){return x}});var a=r(85893),n=r(67294),s=r(238),o=r(89121),l=r(67421),i=r(44265),d=r(99140);function c(e){let{user:t,size:r}=e,n="".concat(r,"px"),s=20===r?"w-5 h-5 text-[10px]":24===r?"w-6 h-6 text-[11px]":40===r?"w-10 h-10 text-base":"w-14 h-14 text-xl",o=(()=>{var e,r;let a=(null==t?void 0:null===(e=t.name)||void 0===e?void 0:e.trim())||(null==t?void 0:null===(r=t.email)||void 0===r?void 0:r.trim())||"";return a?a.charAt(0).toUpperCase():"?"})();return(null==t?void 0:t.picture)?(0,a.jsx)("img",{src:"/api/avatar?url=".concat(encodeURIComponent(t.picture)),alt:t.name||t.email||"",className:"".concat(s," rounded-full object-cover flex-shrink-0"),style:{width:n,height:n},referrerPolicy:"no-referrer"}):(0,a.jsx)("div",{className:"".concat(s," rounded-full flex items-center justify-center bg-black/[0.05] text-slate-600 border border-black/10 dark:bg-white/[0.06] dark:text-white/70 dark:border-white/15 font-semibold flex-shrink-0"),"aria-hidden":"true",children:o})}let x=e=>{let{onImportClick:t,onLogout:r,onOpenSettings:x,onOpenFeedback:u,triggerVariant:m="default"}=e,{t:h}=(0,l.$G)(),{tierExpiresAt:p,isFreeUser:b,isProUser:k,name:g,email:w,picture:f,isProfileLoading:j}=(0,i.a)(),v={name:g,email:w,picture:f},[y,N]=(0,n.useState)(!1),C=k?h("settings.tierPro"):h("settings.tierFree"),L=p?h("settings.tierExpires",{date:new Date(p).toLocaleDateString()}):null,S=g&&g.trim()||w&&w.split("@")[0]||"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s.v,{as:"div",className:"relative",children:["sidebarHeader"===m?(0,a.jsxs)(s.v.Button,{"aria-label":h("accountMenu.openLabel"),className:"flex items-center gap-2 px-2 py-1.5 rounded-lg hover:bg-slate-200/60 dark:hover:bg-white/5 transition-colors max-w-full min-w-0",children:[(0,a.jsx)(c,{user:v,size:24}),j&&!S?(0,a.jsx)("span",{className:"h-3.5 w-20 rounded bg-slate-200 dark:bg-white/10 animate-pulse","aria-hidden":"true"}):(0,a.jsx)("span",{className:"text-sm font-semibold text-slate-900 dark:text-white truncate min-w-0",children:S}),(0,a.jsx)("span",{className:"text-[10.5px] font-semibold uppercase tracking-[0.04em] text-slate-500 dark:text-white/40 flex-shrink-0",children:k?"PRO":"FREE"}),(0,a.jsx)("svg",{className:"w-3 h-3 text-slate-500 dark:text-white/40 flex-shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}):(0,a.jsxs)(s.v.Button,{"aria-label":h("accountMenu.openLabel"),className:"flex items-center gap-2 p-2 rounded-lg bg-slate-900/5 dark:bg-white/5 border border-slate-900/10 dark:border-white/10 hover:bg-slate-900/10 dark:hover:bg-white/10 hover:border-black/20 dark:hover:border-white/20 transition-all duration-200",children:[(0,a.jsx)(c,{user:v,size:20}
1),(0,a.jsx)("svg",{className:"w-3 h-3 text-slate-600 dark:text-white/70",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,a.jsx)(o.u,{as:n.Fragment,enter:"transition ease-out duration-150",enterFrom:"opacity-0 translate-y-1 scale-[0.98]",enterTo:"opacity-100 translate-y-0 scale-100",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 translate-y-0 scale-100",leaveTo:"opacity-0 translate-y-1 scale-[0.98]",children:(0,a.jsxs)(s.v.Items,{className:"absolute top-full mt-2 w-72 bg-white dark:bg-gray-900 border border-slate-200 dark:border-white/10 rounded-2xl shadow-2xl shadow-black/10 dark:shadow-black/40 z-50 overflow-hidden focus:outline-none ".concat("sidebarHeader"===m?"left-0":"right-0"),children:[(0,a.jsx)(s.v.Item,{disabled:!0,children:(0,a.jsxs)("div",{className:"px-5 pt-5 pb-4 border-b border-slate-100 dark:border-white/[0.06]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(c,{user:v,size:40}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[j&&!((null==v?void 0:v.name)||(null==v?void 0:v.email))?(0,a.jsx)("span",{className:"block h-3.5 w-24 rounded bg-slate-200 dark:bg-white/10 animate-pulse","aria-hidden":"true"}):(0,a.jsx)("p",{className:"text-sm font-semibold text-slate-900 dark:text-white truncate",children:(null==v?void 0:v.name)||(null==v?void 0:v.email)||""}),(null==v?void 0:v.email)&&(0,a.jsx)("p",{className:"text-xs text-slate-500 dark:text-white/50 truncate",children:v.email})]})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider rounded-md ".concat(k?"bg-primary text-on-accent":"bg-slate-200 text-slate-600 dark:bg-white/10 dark:text-white/70"),children:C}),k&&L&&(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-white/50 truncate",children:L}),k&&!L&&(0,a.jsx)("span",{className:"text-xs text-emerald-600 dark:text-emerald-400 font-medium",children:h("settings.active")}),b&&(0,a.jsxs)("button",{type:"button",onClick:()=>N(!0),className:"text-xs font-medium text-purple-600 dark:text-purple-400 hover:text-purple-700 dark:hover:text-purple-300 transition-colors ml-auto",children:[h("settings.upgrade")," â"]})]})]})}),(0,a.jsx)(s.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsxs)("button",{type:"button",onClick:x,className:"w-full flex items-center gap-2.5 px-5 py-3 text-sm border-b border-slate-100 dark:border-white/[0.06] text-slate-700 dark:text-white/80 ".concat(t?"bg-slate-50 dark:bg-white/[0.04]":""),children:[(0,a.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),h("settings.title")]})}}),(0,a.jsx)(s.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsxs)("button",{type:"button",onClick:u,className:"w-full flex items-center gap-2.5 px-5 py-3 text-sm border-b border-slate-100 dark:border-white/[0.06] text-slate-700 dark:text-white/80 ".concat(t?"bg-slate-50 dark:bg-white/[0.04]":""),children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),h("feedback.menuLabel")]})}}),t&&(0,a.jsx)(s.v.Item,{children:e=>{let{active:r}=e;return(0,a.jsxs)("button",{type:"button",onClick:t,className:"w-full flex items-center gap-2.5 px-5 py-3 text-sm text-slate-700 dark:text-white/80 ".concat(r?"bg-slate-50 dark:bg-white/[0.04]":""),children:[(0,a.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),(0,a.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,a.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),h("import.settings.importData")]})}}
1),(0,a.jsx)("div",{className:"border-b border-slate-100 dark:border-white/[0.06]"}),(0,a.jsx)(s.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsxs)("button",{type:"button",onClick:r,className:"w-full flex items-center gap-2.5 px-5 py-3 text-sm text-slate-600 dark:text-white/60 ".concat(t?"bg-red-50 dark:bg-red-500/10 text-red-600 dark:text-red-400":"hover:bg-red-50 dark:hover:bg-red-500/10 hover:text-red-600 dark:hover:text-red-400"),children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),h("mainApp.logout")]})}})]})})]}),(0,a.jsx)(d.x,{isOpen:y,onClose:()=>N(!1),source:"account_menu"})]})}},9928:function(e,t,r){r.d(t,{B:function(){return s}});var a=r(85893),n=r(67294);let s=e=>{let{message:t,onDismiss:r,duration:s=4e3}=e;return(0,n.useEffect)(()=>{let e=window.setTimeout(r,s);return()=>window.clearTimeout(e)},[r,s]),(0,a.jsxs)("div",{role:"status","aria-live":"polite",className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full bg-slate-900/95 dark:bg-slate-800/95 border border-slate-200/20 dark:border-white/10 backdrop-blur-md shadow-lg editor-toast-enter",children:[(0,a.jsx)("svg",{className:"w-4 h-4 text-emerald-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,a.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,a.jsx)("span",{className:"text-sm font-medium text-white",children:t})]})}},53158:function(e,t,r){r.d(t,{Pu:function(){return s},YW:function(){return c}});var a=r(67294);let n="noax.feedbackPrompt",s=10,o={firstSeenAt:null,snoozedUntil:null,lastSubmittedAt:null,optOut:!1},l=()=>{try{let e=window.localStorage.getItem(n);if(!e)return o;let t=JSON.parse(e);return{...o,...t}}catch(e){return o}},i=e=>{try{window.localStorage.setItem(n,JSON.stringify(e))}catch(e){}},d=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return!e.optOut&&!(t<s)&&!!e.firstSeenAt&&!(r-e.firstSeenAt<6048e5)&&(!e.snoozedUntil||!(e.snoozedUntil>r))&&(!e.lastSubmittedAt||!(r-e.lastSubmittedAt<7776e6))},c=()=>{let[e,t]=(0,a.useState)(o);(0,a.useEffect)(()=>{t(l())},[]);let r=(0,a.useCallback)(e=>{t(t=>{let r={...t,...e};return i(r),r})},[]),n=(0,a.useCallback)(e=>{e<s||t(e=>{if(e.firstSeenAt)return e;let t={...e,firstSeenAt:Date.now()};return i(t),t})},[]),c=(0,a.useCallback)(()=>{r({snoozedUntil:Date.now()+5184e6})},[r]),x=(0,a.useCallback)(()=>{r({optOut:!0})},[r]),u=(0,a.useCallback)(()=>{r({lastSubmittedAt:Date.now(),snoozedUntil:null})},[r]),m=(0,a.useCallback)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();return d(e,t,r)},[e]);return{state:e,isEligible:m,ensureFirstSeen:n,recordSnooze:c,recordOptOut:x,recordSubmitted:u}}}}]);
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.