PageSourceSearch

https://linkedinheadshots.ai/_next/static/chunks/5504-5161515186d5306c.js?dpl=dpl_88myv5wKdt3DwJxghNLwsyfTmDXb

js linkedinheadshots.ai collected 2026-10-05 12:14:13 UTC 9,185 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5504],{2077:function(e,t,r){r.d(t,{Login:function(){return h}});var l=r(7437),i=r(2869),n=r(5186),a=r(7992),o=r(7431),s=r(1863),c=r(2265),d=r(9501),u=r(8053);let m=(0,r(9763).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),f=e=>{let{toggleState:t}=e;return(0,l.jsx)("div",{className:"flex items-center justify-center min-h-[calc(100vh-73px)] p-4 sm:p-8",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 bg-neutral-50 dark:bg-neutral-900 border border-neutral-200 p-6 rounded-xl max-w-sm w-full",children:[(0,l.jsx)("h1",{className:"text-xl font-semibold",children:"Check your email to continue"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-sm",children:"We've emailed you a magic link to access your account."}),(0,l.jsx)("p",{className:"text-xs opacity-60",children:"Hint: it might be in your spam folder."})]}),(0,l.jsxs)(i.z,{onClick:t,variant:"outline",size:"sm",className:"w-full mt-4",children:[(0,l.jsx)(m,{className:"w-4 h-4 mr-2"}),"Go back"]})]})})};var p=r(9376),g=r(5863),x=r(1138);let h=e=>{var t;let{host:r,searchParams:m}=e,{supabase:h}=(0,o.$)(),[y,b]=(0,c.useState)(null),[w,j]=(0,c.useState)(!0),N=(0,p.useRouter)(),[I,_]=(0,c.useState)(!1),[C,S]=(0,c.useState)(!1),{toast:k}=(0,a.pm)(),[E,A]=(0,c.useState)(null),P=(0,c.useRef)(null),R=(0,c.useRef)(null),T=()=>{if(P.current&&window.turnstile){for(R.current&&(window.turnstile.remove(R.current),R.current=null);P.current.firstChild;)P.current.removeChild(P.current.firstChild);let e=window.turnstile.render(P.current,{sitekey:"0x4AAAAAABbMPHTZl5-anNB1",callback:e=>{console.log("Turnstile challenge success: ".concat(e)),A(e)},"expired-callback":()=>{console.log("Turnstile token expired."),A(null),T()},"error-callback":()=>{console.error("Turnstile challenge failed to load."),k({title:"CAPTCHA Error",description:"Failed to load CAPTCHA. Please refresh or try again later.",variant:"destructive"}),A(null)},theme:"auto","refresh-expired":"auto"});e&&(R.current=e)}};(0,c.useEffect)(()=>{let e=setInterval(()=>{window.turnstile&&P.current&&(T(),clearInterval(e))},100);return()=>clearInterval(e)},[]),(0,c.useEffect)(()=>{(async()=>{if(!h){j(!1);return}j(!0);let{data:{user:e},error:t}=await h.auth.getUser();if(b(e),j(!1),!t&&e){var r;(null===(r=e.app_metadata)||void 0===r?void 0:r.provider)==="google"&&e.email&&await (0,x._H)("google_registration","Google OAuth Registration",0,"EUR",{email:e.email,externalId:e.id});let t=(null==m?void 0:m.redirect_to)||"/",l=localStorage.getItem("postLoginPriceId"),i=localStorage.getItem("postLoginRedirectToPath");l&&i&&e?N.push(i):N.push("/login"===t?"/overview":t)}})()},[h,N,m]);let{register:L,handleSubmit:H,formState:{errors:O,isSubmitted:W}}=(0,d.cI)(),z=async(e,t)=>{if(!h)throw Error("Supabase client not available");let{error:r}=await h.auth.signInWithOtp({email:e,options:{emailRedirectTo:G,captchaToken:null===t?void 0:t}});if(r)throw console.error("Magic Link Error: ".concat(r.message)),r},F=async e=>{if(_(!0),!E){k({title:"CAPTCHA required",description:"Please complete the CAPTCHA challenge.",variant:"destructive"}),_(!1);return}try{(null==m?void 0:m.redirect_to)&&(null==m?void 0:m.price_id_select)&&(localStorage.setItem("postLoginRedirectTo",m.redirect_to),localStorage.setItem("postLoginPriceId",m.price_id_select)),await z(e.email,E),await (0,x._H)("email_registration","Email Registration",0,"EUR",{email:e.email,externalId:e.email}),_(!1),S(!0)}catch(e){_(!1),k({title:"Login Failed",description:e.message||"An unexpected error occurred. Please try again.",variant:"destructive",duration:5e3}),A(null),T()}},G="".concat(r,"/auth/callback?next=").concat(encodeURIComponent("/overview")),V=async()=>{if(!h){k({title:"Initialization Error",description:"Login service not ready. Please try again.",variant:"destructive"});return}(null==m?void 0:m.redirect_to)&&(null==m?void 0:m.price_id_select)&&(localStorage.setItem("postLoginRedirectToPath",m.redirect_to),localStorage.setItem("postLoginPriceId",m.price_id_select)),(0,x.Jh)("Continue with Google");let{data:e,error:t}=await h.auth.signInWithOAuth({provider:"google",options:{redirectTo:G}});t&&(console.error("Google Sign-In Error: ".concat(t.message)),k({title:"Google Sign-In Failed",description:t.message,variant:"destructive"}))};return C?(0,l.jsx)(f,{toggleState:()=>S(!1)}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex items-center justify-center min-h-[calc(100vh-73px)] p-4 sm:p-8",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4 bg-neutral-50 dark:bg-neutral-900 border border-neutral-200 p-6 rounded-xl max-w-sm w-full",children:[(0,l.jsx)("h1",{className:"text-xl",children:"Welcome"}),(0,l.jsx)("p",{className:"text-xs opacity-60",children:"Sign in or create an account to get started."}),(0,l.jsxs)(i.z,{onClick:V,variant:"outline",className:"font-semibold w-full",disabled:I,children:[(0,l.jsx)(u.P_r,{size:20,className:"mr-2"}),"Continue with Google"]}),(0,l.jsx)(v,{}),(0,l.jsx)("div",{ref:P,className:"my-4 flex justify-center h-16"}),(0,l.jsxs)("form",{onSubmit:H(F),className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"flex flex-col gap-4",children:(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(n.I,{type:"email",placeholder:"Email",...L("email",{required:!0,validate:{emailIsValid:e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)||"Please enter a valid email",emailDoesntHavePlus:e=>!e.includes("+")||"Email addresses with a '+' are not allowed for this service.",emailIsntDisposable:e=>!s.includes(e.split("@")[1])||"Please use a permanent email address"}})}),W&&O.email&&(0,l.jsx)("span",{className:"text-xs text-red-400",children:(null===(t=O.email)||void 0===t?void 0:t.message)||"Email is required to sign in"})]})}),(0,l.jsx)(i.z,{disabled:I||!E,variant:"outline",className:"w-full",type:"submit",children:I?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.Z,{className:"mr-2 h-4 w-4 animate-spin"})," Signing In..."]}):"Continue with Email"})]})]})})})},v=()=>(0,l.jsxs)("div",{className:"flex items-center my-1",children:[(0,l.jsx)("div",{className:"border-b flex-grow mr-2 opacity-50"}),(0,l.jsx)("span",{className:"text-sm opacity-50",children:"OR"}),(0,l.jsx)("div",{className:"border-b flex-grow ml-2 opacity-50"})]})},5186:function(e,t,r){r.d(t,{I:function(){return a}});var l=r(7437),i=r(2265),n=r(4508);let a=i.forwardRef((e,t)=>
1{let{className:r,type:i,...a}=e;return(0,l.jsx)("input",{type:i,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});a.displayName="Input"},8575:function(e,t,r){r.d(t,{e:function(){return n}});var l=r(2265);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return l.useCallback(function(...e){return t=>{let r=!1,l=e.map(e=>{let l=i(e,t);return r||"function"!=typeof l||(r=!0),l});if(r)return()=>{for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof r?r():i(e[t],null)}}}}(...e),e)}},7495:function(e,t,r){r.d(t,{Slot:function(){return o},Z8:function(){return a},sA:function(){return c}});var l=r(2265),i=r(8575),n=r(7437);function a(e){let t=function(e){let t=l.forwardRef((e,t)=>{var r,n;let a,o;let{children:s,...c}=e,d=l.isValidElement(s)?(a=null===(r=Object.getOwnPropertyDescriptor(s.props,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in a&&a.isReactWarning?s.ref:(a=null===(n=Object.getOwnPropertyDescriptor(s,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?s.props.ref:s.props.ref||s.ref:void 0,u=(0,i.e)(d,t);if(l.isValidElement(s)){let e=function(e,t){let r={...t};for(let l in t){let i=e[l],n=t[l];/^on[A-Z]/.test(l)?i&&n?r[l]=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let l=n(...t);return i(...t),l}:i&&(r[l]=i):"style"===l?r[l]={...i,...n}:"className"===l&&(r[l]=[i,n].filter(Boolean).join(" "))}return{...e,...r}}(c,s.props);return s.type!==l.Fragment&&(e.ref=u),l.cloneElement(s,e)}return l.Children.count(s)>1?l.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}(e),r=l.forwardRef((e,r)=>{let{children:i,...a}=e,o=l.Children.toArray(i),s=o.find(d);if(s){let e=s.props.children,i=o.map(t=>t!==s?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,n.jsx)(t,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,i):null})}return(0,n.jsx)(t,{...a,ref:r,children:i})});return r.displayName="".concat(e,".Slot"),r}var o=a("Slot"),s=Symbol("radix.slottable");function c(e){let t=e=>{let{children:t}=e;return(0,n.jsx)(n.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=s,t}function d(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}}}]);

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.