PageSourceSearch

https://nestmatch-app-v3.vercel.app/_next/static/chunks/7020-76b35cd03c099b95.js

js nestmatch-app-v3.vercel.app collected 2026-10-03 07:22:34 UTC 8,482 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72d8f5e7-bf18-4914-9763-c1aabf5f31fb",e._sentryDebugIdIdentifier="sentry-dbid-72d8f5e7-bf18-4914-9763-c1aabf5f31fb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7020],{58866:function(e,t,i){i.d(t,{Z:function(){return d}});var a=i(57437),n=i(2265),s=i(80605),o=i(1188),l=i(48614),r=i(89345);let c={enter:e=>({opacity:0,x:16*e}),center:{opacity:1,x:0},exit:e=>({opacity:0,x:-16*e})};function d(e){let{callbackUrl:t}=e,[i,d]=(0,n.useState)("email"),[u,x]=(0,n.useState)(""),[m,h]=(0,n.useState)(""),[f,p]=(0,n.useState)(!1),[g,b]=(0,n.useState)(null);async function y(e){e.preventDefault(),b(null),p(!0);try{let e=await fetch("/api/auth/email/request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:u})}),i=await e.json().catch(()=>({}));if(!e.ok){var t;b(null!==(t=i.error)&&void 0!==t?t:"Couldn't send the code — try again");return}d("code")}catch(e){b("Couldn't send the code — check your connection")}finally{p(!1)}}async function j(e){e.preventDefault(),b(null),p(!0);try{var i;let e=await (0,s.signIn)("email-code",{email:u,code:m,redirect:!1,callbackUrl:t});if(!e||e.error){b("That code is incorrect or has expired");return}window.location.href=null!==(i=e.url)&&void 0!==i?i:t}catch(e){b("Something went wrong — try again")}finally{p(!1)}}return(0,a.jsx)(o.E.div,{layout:!0,transition:{duration:.25,ease:[.22,1,.36,1]},className:"w-full mb-4",children:(0,a.jsx)(l.M,{mode:"wait",custom:"code"===i?1:-1,initial:!1,children:"email"===i?(0,a.jsxs)(o.E.form,{custom:1,variants:c,initial:"enter",animate:"center",exit:"exit",transition:{duration:.22,ease:[.22,1,.36,1]},onSubmit:y,className:"w-full",children:[(0,a.jsx)("input",{type:"email",required:!0,autoComplete:"email",value:u,onChange:e=>x(e.target.value),placeholder:"[email protected]",className:"w-full px-4 py-3 rounded-xl border border-stone-200 text-sm text-forest placeholder:text-taupe focus:outline-none focus:border-sage mb-2"}),(0,a.jsx)(l.M,{initial:!1,children:g&&(0,a.jsx)(o.E.p,{initial:{opacity:0,height:0,marginBottom:0},animate:{opacity:1,height:"auto",marginBottom:8},exit:{opacity:0,height:0,marginBottom:0},transition:{duration:.18},className:"text-xs text-error overflow-hidden",children:g})}),(0,a.jsxs)(o.E.button,{type:"submit",disabled:f,whileTap:{scale:.98},className:"w-full flex items-center justify-center gap-2 px-6 py-3.5 rounded-xl bg-white border border-stone-200 text-stone-700 font-medium hover:bg-stone-50 hover:border-stone-300 transition-all disabled:opacity-50",children:[(0,a.jsx)(r.Z,{className:"w-4 h-4",strokeWidth:1.8}),f?"Sending…":"Continue with email"]})]},"email"):(0,a.jsxs)(o.E.form,{custom:1,variants:c,initial:"enter",animate:"center",exit:"exit",transition:{duration:.22,ease:[.22,1,.36,1]},onSubmit:j,className:"w-full",children:[(0,a.jsxs)("p",{className:"text-xs text-forest/60 mb-2",children:["Enter the code sent to ",u]}),(0,a.jsx)("input",{type:"text",inputMode:"numeric",autoComplete:"one-time-code",required:!0,maxLength:6,value:m,onChange:e=>h(e.target.value.replace(/\D/g,"")),placeholder:"6-digit code",className:"w-full px-4 py-3 rounded-xl border border-stone-200 text-sm text-forest placeholder:text-taupe focus:outline-none focus:border-sage mb-2 tracking-[0.3em] text-center"}),(0,a.jsx)(l.M,{initial:!1,children:g&&(0,a.jsx)(o.E.p,{initial:{opacity:0,height:0,marginBottom:0},animate:{opacity:1,height:"auto",marginBottom:8},exit:{opacity:0,height:0,marginBottom:0},transition:{duration:.18},className:"text-xs text-error overflow-hidden",children:g})}),(0,a.jsx)(o.E.button,{type:"submit",disabled:f||6!==m.length,whileTap:{scale:.98},className:"w-full px-6 py-3.5 rounded-xl bg-forest text-cream font-medium hover:bg-forest/90 transition-all disabled:opacity-50 mb-2",children:f?"Verifying…":"Sign in"}),(0,a.jsx)("button",{type:"button",onClick:()=>{d("email"),h(""),b(null)},className:"w-full text-xs text-forest/50 hover:text-forest transition-colors",children:"Use a different email"})]},"code")})})}},77020:function(e,t,i){i.d(t,{Z:function(){return f}});var a=i(57437),n=i(2265),s=i(54887),o=i(48614),l=i(1188),r=i(80605),c=i(32489),d=i(61178),u=i(6830),x=i(91723),m=i(82023),h=i(58866);function f(e){let{open:t,onSkip:i,callbackUrl:f="/results"}
1=e,[p,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g(!0)},[]);let b=(0,a.jsx)(o.M,{children:t&&(0,a.jsxs)(l.E.div,{className:"fixed inset-0 z-[9999] flex items-center justify-center px-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},children:[(0,a.jsx)(l.E.div,{className:"absolute inset-0 bg-forest/40 backdrop-blur-sm",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},"aria-hidden":!0}),(0,a.jsxs)(l.E.div,{className:"relative z-10 soft-card p-8 max-w-sm w-full text-center",initial:{opacity:0,y:24,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},transition:{duration:.32,ease:[.22,1,.36,1]},role:"dialog","aria-modal":"true","aria-labelledby":"login-gate-title",children:[(0,a.jsx)("button",{onClick:i,"aria-label":"Close",className:"absolute top-4 right-4 w-7 h-7 flex items-center justify-center rounded-full text-forest/40 hover:text-forest hover:bg-stone/40 transition-colors",children:(0,a.jsx)(c.Z,{className:"w-4 h-4",strokeWidth:1.8})}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-6",children:[(0,a.jsx)("img",{src:"/images/icon_round.png",alt:"NestMatch",className:"h-7 w-auto"}),(0,a.jsx)("span",{className:"font-serif text-xl tracking-[-0.02em] text-forest",children:"nestmatch"})]}),(0,a.jsx)("h2",{id:"login-gate-title",className:"font-serif text-2xl leading-snug text-forest mb-5",children:"Sign in for"}),(0,a.jsx)("ul",{className:"text-left space-y-2.5 mb-7",children:[{icon:d.Z,label:"Saved shortlists"},{icon:u.Z,label:"Side-by-side comparisons"},{icon:x.Z,label:"Pick up where you left off"},{icon:m.Z,label:"Personalised recommendations"}].map(e=>{let{icon:t,label:i}=e;return(0,a.jsxs)("li",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"flex items-center justify-center w-7 h-7 rounded-full bg-sage/15 flex-shrink-0",children:(0,a.jsx)(t,{className:"w-3.5 h-3.5 text-sage",strokeWidth:1.8})}),(0,a.jsx)("span",{className:"text-sm text-forest/75 leading-snug",children:i})]},i)})}),(0,a.jsxs)("button",{onClick:()=>(0,r.signIn)("google",{callbackUrl:f}),className:"w-full flex items-center justify-center gap-3 px-6 py-3.5 rounded-xl bg-white border border-stone-200 text-stone-700 font-medium hover:bg-stone-50 hover:border-stone-300 transition-all active:scale-[0.98] mb-4",children:[(0,a.jsxs)("svg",{className:"w-5 h-5 shrink-0",viewBox:"0 0 24 24","aria-hidden":!0,children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",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"})]}),"Continue with Google"]}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"h-px flex-1 bg-stone-200"}),(0,a.jsx)("span",{className:"text-[11px] text-taupe uppercase tracking-wide",children:"or"}),(0,a.jsx)("div",{className:"h-px flex-1 bg-stone-200"})]}),(0,a.jsx)(h.Z,{callbackUrl:f}),(0,a.jsxs)("button",{onClick:i,className:"inline-flex items-center gap-1.5 text-sm text-forest/60 hover:text-forest transition-colors",children:[(0,a.jsx)("span",{children:"No thanks, show my matches"}),(0,a.jsx)("svg",{className:"w-3.5 h-3.5 shrink-0",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M3 8h10M9 4l4 4-4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]})});return p?s.createPortal(b,document.body):null}}}]);

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.