vendor: 11,089 bytes, lines 1-22
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,571736,e=>{"use strict";var t=e.i(380630),n=Object.defineProperty,r=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,o=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=t.createContext({}),u=t.forwardRef((e,n)=>{let u;var m,g,f,h,x,{value:b,onChange:v,maxLength:y,textAlign:w="left",pattern:j,placeholder:k,inputMode:N="numeric",onComplete:C,pushPasswordManagerStrategy:S="increase-width",pasteTransformer:E,containerClassName:A,noScriptCSSFallback:P=p,render:M,children:D}=e,T=((e,t)=>{var n={};for(var r in e)i.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&l)for(var r of l(e))0>t.indexOf(r)&&s.call(e,r)&&(n[r]=e[r]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[I,R]=t.useState("string"==typeof T.defaultValue?T.defaultValue:""),O=null!=b?b:I,B=(u=t.useRef(),t.useEffect(()=>{u.current=O}),u.current),W=t.useCallback(e=>{null==v||v(e),R(e)},[v]),L=t.useMemo(()=>j?"string"==typeof j?new RegExp(j):j:null,[j]),F=t.useRef(null),G=t.useRef(null),_=t.useRef({value:O,onChange:W,isIOS:"u">typeof window&&(null==(g=null==(m=null==window?void 0:window.CSS)?void 0:m.supports)?void 0:g.call(m,"-webkit-touch-callout","none"))}),U=t.useRef({prev:[null==(f=F.current)?void 0:f.selectionStart,null==(h=F.current)?void 0:h.selectionEnd,null==(x=F.current)?void 0:x.selectionDirection]});t.useImperativeHandle(n,()=>F.current,[]),t.useEffect(()=>{let e=F.current,t=G.current;if(!e||!t)return;function n(){if(document.activeElement!==e){Y(null),q(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,a=e.maxLength,l=e.value,i=U.current.prev,s=-1,o=-1,c;if(0!==l.length&&null!==t&&null!==n){let e=t===n,r=t===l.length&&l.length<a;if(e&&!r){if(0===t)s=0,o=1,c="forward";else if(t===a)s=t-1,o=t,c="backward";else if(a>1&&l.length>1){let e=0;if(null!==i[0]&&null!==i[1]){c=t<i[1]?"backward":"forward";let n=i[0]===i[1]&&i[0]<a;"backward"!==c||n||(e=-1)}s=e+t,o=e+t+1}}-1!==s&&-1!==o&&s!==o&&F.current.setSelectionRange(s,o,c)}let u=-1!==s?s:t,d=-1!==o?o:n,p=null!=c?c:r;Y(u),q(d),U.current.prev=[u,d,p]}if(_.current.value!==e.value&&_.current.onChange(e.value),U.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&V(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";d(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),d(e.sheet,`[data-input-otp]:autofill { ${t} }`),d(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),d(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),d(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let a=new ResizeObserver(r);return a.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),a.disconnect()}},[]);let[X,$]=t.useState(!1),[z,V]=t.useState(!1),[H,Y]=t.useState(null),[Q,q]=t.useState(null);t.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=F.current)||e.dispatchEvent(new Event("input"));let a=null==(t=F.current)?void 0:t.selectionStart,l=null==(n=F.current)?void 0:n.selectionEnd,i=null==(r=F.current)?void 0:r.selectionDirection;null!==a&&null!==l&&(Y(a),q(l),U.current.prev=[a,l,i])},0),setTimeout(e,10),setTimeout(e,50)},[O,z]),t.useEffect(()=>{void 0!==B&&O!==B&&B.length<y&&O.length===y&&(null==C||C(O))},[y,C,B,O]);let K=function(e){let{containerRef:n,inputRef:r,pushPasswordManagerStrategy:a,isFocused:l}=e,[i,s]=t.useState(!1),[o,c]=t.useState(!1),[u,d]=t.useState(!1),p=t.useMemo(()=>"none"!==a&&("increase-width"===a||"experimental-no-flickering"===a)&&i&&o,[i,o,a]),m=t.useCallback(()=>{let e=n.current,t=r.current;if(!e||!t||u||"none"===a)return;let l=e.getBoundingClientRect().left+e.offsetWidth,i=e.getBoundingClientRect().top+e.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(l-18,i)===e||(s(!0),d(!0))},[n,r,u,a]);return t.useEffect(()=>{let e=n.current;if(!e||"none"===a)return;function t(){c(window.innerWidth-e.getBoundingClientRect().right>=40)}t();let r=setInterval(t,1e3);return()=>{clearInterval(r)}},[n,a]),t.useEffect(()=>{let e=l||document.activeElement===r.current;if("none"===a||!e)return;let t=setTimeout(m,0),n=setTimeout(m,2e3),i=setTimeout(m,5e3),s=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(t),clearTimeout(n),clearTimeout(i),clearTimeout(s)}},[r,l,a,m]),{hasPWMBadge:i,willPushPWMBadge:p,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:G,inputRef:F,pushPasswordManagerStrategy:S,isFocused:z}),J=t.useCallback(e=>{let t=e.currentTarget.value.slice(0,y);t.length>0&&L&&!L.test(t)?e.preventDefault():("string"==typeof B&&t.length<B.length&&document.dispatchEvent(new Event("selectionchange")),W(t))},[y,W,B,L]),Z=t.useCallback(()=>{var e;if(F.current){let t=Math.min(F.current.value.length,y-1),n=F.current.value.length;null==(e=F.current)||e.setSelectionRange(t,n),Y(t),q(n)}V(!0)},[y]),ee=t.useCallback(e=>{var t,n;let r=F.current;if(!E&&(!_.current.isIOS||!e.clipboardData||!r))return;let a=e.clipboardData.getData("text/plain"),l=E?E(a):a;e.preventDefault();let i=null==(t=F.current)?void 0:t.selectionStart,s=null==(n=F.current)?void 0:n.selectionEnd,o=(i!==s?O.slice(0,i)+l+O.slice(s):O.slice(0,i)+l+O.slice(i)).slice(0,y);if(o.length>0&&L&&!L.test(o))return;r.value=o,W(o);let c=Math.min(o.length,y-1),u=o.length;r.setSelectionRange(c,u),Y(c),q(u)},[y,W,L,O]),et=t.useMemo(()=>({position:"relative",cursor:T.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[T.disabled]),en=t.useMemo(()=>({position:"absolute",inset:0,width:K.willPushPWMBadge?`calc(100% + ${K.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:K.willPushPWMBadge?`inset(0 ${K.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:w,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[K.PWM_BADGE_SPACE_WIDTH,K.willPushPWMBadge,w]),er=t.useMemo(()=>t.createElement("input",r(((e,t)=>{for(var n in t||(t={}))i.call(t,n)&&o(e,n,t[n]);if(l)for(var n of l(t))s.call(t,n)&&o(e,n,t[n]);return e})({autoComplete:T.autoComplete||"one-time-code"},T),a({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===O.length||void 0,"data-input-otp-mss":H,"data-input-otp-mse":Q,inputMode:N,pattern:null==L?void 0:L.source,"aria-placeholder":k,style:en,maxLength:y,value:O,ref:F,onPaste:e=>{var t;ee(e),null==(t=T.onPaste)||t.call(T,e)},onChange:J,onMouseOver:e=>{var t;$(!0),null==(t=T.onMouseOver)||t.call(T,e)},onMouseLeave:e=>{var t;$(!1),null==(t=T.onMouseLeave)||t.call(T,e)},onFocus:e=>{var t;Z(),null==(t=T.onFocus)||t.call(T,e)},onBlur:e=>{var t;V(!1),null==(t=T.onBlur)||t.call(T,e)}}))),[J,Z,ee,N,en,y,Q,H,T,null==L?void 0:L.source,O]),ea=t.useMemo(()=>({slots:Array.from({length:y}).map((e,t)=>{var n;let r=z&&null!==H&&null!==Q&&(H===Q&&t===H||t>=H&&t<Q),a=void 0!==O[t]?O[t]:null;return{char:a,placeholderChar:void 0!==O[0]?null:null!=(n=null==k?void 0:k[t])?n:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:z,isHovering:!T.disabled&&X}),[z,X,y,Q,H,T.disabled,O]),el=t.useMemo(()=>M?M(ea):t.createElement(c.Provider,{value:ea},D),[D,ea,M]);return t.createElement(t.Fragment,null,null!==P&&t.createElement("noscript",null,t.createElement("style",null,P)),t.createElement("div",{ref:G,"data-input-otp-container":!0,style:et,className:A},el,t.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},er)))});function d(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}u.displayName="Input";var p=` 2[data-input-otp] { 3 --nojs-bg: white !important; 4 --nojs-fg: black !important; 5 6 background-color: var(--nojs-bg) !important; 7 color: var(--nojs-fg) !important; 8 caret-color: var(--nojs-fg) !important; 9 letter-spacing: .25em !important; 10 text-align: center !important; 11 border: 1px solid var(--nojs-fg) !important; 12 border-radius: 4px !important; 13 width: 100% !important; 14} 15@media (prefers-color-scheme: dark) { 16 [data-input-otp] { 17 --nojs-bg: black !important; 18 --nojs-fg: white !important; 19 } 20}`;e.s(["OTPInput",()=>u,"REGEXP_ONLY_DIGITS",()=>"^\\d+$"])},975721,e=>{"use strict";var t=e.i(511075),n=e.i(380630),r=e.i(33307),a=e.i(30673),l=e.i(597963),i=e.i(550649);let s=(0,l.default)(()=>e.A(140195),{loadableGenerated:{modules:[643313]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"relative",style:{paddingBottom:"141%"}})}),o=[{id:"dev",labels:{en:"Developer",ru:"РазÑабоÑÑик",fr:"Développeur",de:"Entwickler",pt:"Desenvolvedor",es:"Desarrollador"}},{id:"pm",labels:{en:"Product Manager",ru:"ÐÑодакÑ-менеджеÑ",fr:"Chef de produit",de:"Produktmanager",pt:"Gerente de Produto",es:"Product Manager"}},{id:"uiux",labels:{en:"UX/UI Designer",ru:"UX/UI ÐизайнеÑ",fr:"Designer UX/UI",de:"UX/UI-Designer",pt:"Designer UX/UI",es:"Diseñador UX/UI"}},{id:"data-analyst",labels:{en:"Data Analyst",ru:"ÐналиÑик даннÑÑ ",fr:"Analyste de données",de:"Datenanalyst",pt:"Analista de Dados",es:"Analista de Datos"}},{id:"marketer",labels:{en:"Marketer",ru:"ÐаÑкеÑолог",fr:"Marketeur",de:"Marketing-Experte",pt:"Profissional de Marketing",es:"Especialista en Marketing"}},{id:"qa",labels:{en:"QA Engineer",ru:"QA ÐнженеÑ",fr:"Ingénieur QA",de:"QA-Ingenieur",pt:"Engenheiro de QA",es:"Ingeniero QA"}},{id:"graphic-designer",labels:{en:"Graphic Designer",ru:"ÐÑаÑиÑеÑкий дизайнеÑ",fr:"Designer graphique",de:"Grafikdesigner",pt:"Designer Gráfico",es:"Diseñador Gráfico"}}],c=(0,n.memo)(function(e){let{index:n,isCurrent:r,label:a,onClick:l}=e;return(0,t.jsx)("button",{onClick:l,className:` 21 h-1.5 rounded-full transition-all duration-500 22 ${r?"bg-accent w-8 shadow-lg shadow-accent/50":"bg-muted-foreground
22/30 w-1.5 hover:bg-muted-foreground/50"} 23 `,"aria-label":`Show ${a} CV`})});function u(){let e=(0,r.useLocale)(),l=(0,i.resolveLocale)(e),u="en"===l||"ru"===l?l:"en",[d,p]=(0,n.useState)(0),[m,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(m)return;let e=setInterval(()=>{p(e=>(e+1)%o.length)},4e3);return()=>clearInterval(e)},[m]);let f=(0,n.useCallback)(()=>g(!0),[]),h=(0,n.useCallback)(()=>g(!1),[]),x=(0,n.useCallback)(e=>()=>p(e),[]),b=(0,n.useCallback)(e=>()=>p(e),[]),v=(0,i.pickLocale)(l,o[d].labels);return(0,t.jsxs)("div",{className:"relative w-[280px] sm:w-[320px] lg:w-[360px] xl:w-[400px] 2xl:w-[440px]",onMouseEnter:f,onMouseLeave:h,children:[(0,t.jsx)(s,{className:"cv-atropos",activeOffset:40,shadowScale:1.05,rotateXMax:12,rotateYMax:12,highlight:!0,children:(0,t.jsx)("div",{className:"relative",style:{paddingBottom:"141%"},children:o.map((e,n)=>{let r=n===d,s=n===(d-1+o.length)%o.length,c=n===(d+1)%o.length,p="translateX(100%) scale(0.8)",m=0,g=0;r?(p="translateX(0) translateY(0) rotate(0deg) scale(1)",m=1,g=30):s?(p="translateX(-15px) translateY(15px) rotate(-2deg) scale(0.94)",m=.4,g=20):c&&(p="translateX(15px) translateY(30px) rotate(2deg) scale(0.88)",m=.2,g=10);let f=(0,i.pickLocale)(l,e.labels);return(0,t.jsx)("div",{className:"absolute inset-0 cv-card-wrapper",style:{transform:p,opacity:m,zIndex:g,transition:"transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1)"},onClick:b(n),children:(0,t.jsx)("div",{className:` 24 cv-card w-full h-full overflow-hidden cursor-pointer 25 ${r?"cv-card-active":""} 26 `,"data-atropos-offset":r?"5":"0",children:(0,t.jsx)(a.default,{src:`/cv-examples/${e.id}-${u}.svg`,alt:f,fill:!0,className:"object-cover",style:{background:"white"},loading:0===n?"eager":"lazy",priority:0===n,fetchPriority:0===n?"high":"auto",sizes:"(max-width: 640px) 280px, (max-width: 1024px) 320px, (max-width: 1280px) 360px, 440px"})})},e.id)})})}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex gap-1.5",children:o.map((e,n)=>{let r=(0,i.pickLocale)(l,e.labels);return(0,t.jsx)(c,{index:n,isCurrent:n===d,label:r,onClick:x(n)},n)})}),(0,t.jsx)("span",{className:"font-mono text-sm text-muted-foreground tracking-wide",children:v})]})]})}e.s(["CVShowcase",()=>u])},712217,e=>{"use strict";var t=e.i(567935),n=e.i(291587);function r(){let{user:e,accessToken:r,isLoading:a}=(0,n.useUser)();return{user:e,accessToken:r,isLoading:a,signInWithGoogle:t.signInWithGoogle}}e.s(["useAuth",()=>r])},768931,e=>{"use strict";var t=e.i(511075),n=e.i(635585),r=e.i(975721);function a(e){let{children:a}=e,l=(0,n.useTranslations)("landing.authPage");return(0,t.jsxs)("div",{className:"min-h-screen flex bg-background",children:[(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 sm:p-8 lg:p-12",children:(0,t.jsx)("div",{className:"w-full max-w-sm animate-fade-up",children:a})}),(0,t.jsx)("div",{className:"hidden lg:flex flex-1 bg-muted/30 items-center justify-center p-8 lg:p-12 border-l border-border",children:(0,t.jsxs)("div",{className:"max-w-lg animate-fade-up animate-fade-up-delay-1",children:[(0,t.jsx)(r.CVShowcase,{}),(0,t.jsxs)("div",{className:"mt-10 text-center",children:[(0,t.jsx)("h2",{className:"text-xl font-semibold text-foreground mb-2 font-display",children:l("cvShowcaseTitle")}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:l("cvShowcaseDescription")})]})]})})]})}e.s(["AuthLayout",()=>a])},709376,e=>{"use strict";var t=e.i(511075),n=e.i(380630),r=e.i(30673),a=e.i(191133),l=e.i(635
26585),i=e.i(33307),s=e.i(571736),o=e.i(786886),c=e.i(187660),u=e.i(63362),d=e.i(971840),p=e.i(534780),m=e.i(621678),g=e.i(757249);function f(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let a=e.length;return(0,g.useCombineMotionValues)(n.filter(m.isMotionValue),function(){let t="";for(let r=0;r<a;r++){t+=e[r];let a=n[r];a&&(t+=(0,m.isMotionValue)(a)?a.get():a)}return t})}var h=e.i(208070),x=e.i(276694),b=e.i(279693),v=e.i(385545),y=e.i(12488),w=e.i(922039),j=e.i(418881),k=e.i(905319);e.i(486637);var N=e.i(47206);let C=["idle","tap","menu"],S=[{key:"menuShare",highlighted:!1},{key:"menuOpenInBrowser",highlighted:!0},{key:"menuRefresh",highlighted:!1}];function E(e){let{app:a}=e,i=(0,l.useTranslations)("landing.authPage.inAppWebview"),s=(0,x.useReducedMotion)(),[o,c]=(0,n.useState)("idle"),u=(0,n.useRef)(null),[m,g]=(0,n.useState)({x:0,y:0});(0,n.useEffect)(()=>{if(s)return;let e=window.setInterval(()=>{c(e=>{let t=C.indexOf(e);return C[(t+1)%C.length]})},2200);return()=>window.clearInterval(e)},[s]),(0,n.useEffect)(()=>{let e=u.current;if(!e)return;let t=(e,t)=>{let n=Math.max(0,Math.round(e-68)),r=Math.max(0,Math.round(t-64));g(e=>e.x===n&&e.y===r?e:{x:n,y:r})};if(t(e.offsetWidth,e.offsetHeight),"u"<typeof ResizeObserver)return;let n=new ResizeObserver(e=>{let[n]=e;n&&t(n.contentRect.width,n.contentRect.height)});return n.observe(e),()=>n.disconnect()},[]);let y=(0,N.getAppDisplayName)(a)??i("appFallback"),E=(0,h.useMotionValue)(0),P=(0,h.useMotionValue)(0),M=(0,b.useSpring)(E,{stiffness:150,damping:18}),D=(0,b.useSpring)(P,{stiffness:150,damping:18}),T=(0,v.useTransform)(D,[-100,100],[4,-4]),I=(0,v.useTransform)(M,[-100,100],[-4,4]),R=(0,v.useTransform)(M,[-100,100],["30%","70%"]),O=(0,v.useTransform)(D,[-100,100],["30%","70%"]),B=f`radial-gradient(circle at ${R} ${O}, rgba(255,255,255,0.08), transparent 50%)`,W=()=>{E.set(0),P.set(0)};return(0,t.jsx)("div",{className:"mx-auto w-full max-w-[420px] select-none",style:{perspective:"1000px"},onMouseMove:e=>{if(s)return;let t=e.currentTarget.getBoundingClientRect();E.set(e.clientX-t.left-t.width/2),P.set(e.clientY-t.top-t.height/2)},onMouseLeave:W,onTouchMove:e=>{if(s)return;let t=e.touches[0];if(!t)return;let n=e.currentTarget.getBoundingClientRect();E.set(t.clientX-n.left-n.width/2),P.set(t.clientY-n.top-n.height/2)},onTouchEnd:W,onTouchCancel:W,"aria-hidden":!0,children:(0,t.jsxs)(p.motion.div,{style:{rotateX:s?0:T,rotateY:s?0:I,transformStyle:"preserve-3d"},className:"relative overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-black/40",children:[!s&&(0,t.jsx)(p.motion.div,{className:"pointer-events-none absolute inset-0 z-10 opacity-60",style:{background:B},animate:{opacity:[.4,.7,.4]},transition:{duration:4,repeat:1/0,ease:"easeInOut"}}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border/50 bg-background/60 px-3 py-2.5",children:[(0,t.jsx)(k.X,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground/70"}),(0,t.jsx)("span",{className:"text-[12px] font-semibold tracking-tight text-foreground",children:y}),(0,t.jsxs)(p.motion.span,{className:"relative inline-flex shrink-0",animate:"tap"!==o||s?{scale:1}:{scale:[1,.88,1]},transition:{duration:.6,times:[0,.5,1]},children:[(0,t.jsx)(p.motion.span,{className:"absolute -inset-1 rounded-lg bg-foreground
26/25",animate:"idle"!==o||s?{opacity:0}:{scale:[1,1.4,1],opacity:[.4,0,.4]},transition:{duration:1.6,repeat:"idle"!==o||s?0:1/0,ease:"easeOut"}}),(0,t.jsx)("span",{className:"relative inline-flex h-7 w-7 items-center justify-center rounded-md border border-foreground bg-foreground/10 shadow-sm",children:(0,t.jsx)(j.MoreHorizontal,{className:"h-4 w-4 text-foreground"})})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 border-b border-border/40 bg-background/40 px-3 py-1.5",children:[(0,t.jsx)(w.Lock,{className:"h-2.5 w-2.5 shrink-0 text-muted-foreground/70"}),(0,t.jsx)("span",{className:"truncate text-[10px] text-muted-foreground/80",children:"roasted.cv"})]}),(0,t.jsx)("div",{ref:u,className:"relative h-32 overflow-hidden bg-muted/10",children:(0,t.jsxs)(p.motion.div,{className:"absolute left-0 top-0 flex flex-col items-center gap-1.5 px-2 py-2",animate:s?{x:0,y:0}:{x:[0,m.x,m.x,0,0],y:[0,m.y,0,m.y,0]},transition:{duration:14,repeat:s?0:1/0,ease:"linear",times:[0,.4,.5,.9,1]},children:[(0,t.jsx)(r.default,{src:"/logo.png",alt:"",width:40,height:40,className:"opacity-60"}),(0,t.jsx)("span",{className:"text-[10px] tracking-wide text-muted-foreground/70",children:"roasted.cv"})]})}),(0,t.jsxs)(d.AnimatePresence,{children:["tap"===o&&!s&&(0,t.jsx)(p.motion.span,{initial:{opacity:0,scale:.4},animate:{opacity:[0,.9,.9,.6],scale:[.4,1.1,.85,1]},exit:{opacity:0,scale:1.5},transition:{duration:1.8,times:[0,.25,.5,1]},className:"pointer-events-none absolute right-3 top-2.5 z-40 h-7 w-7 rounded-full bg-foreground
26/40 shadow-lg backdrop-blur-sm"},"tap-pointer"),"tap"===o&&!s&&(0,t.jsx)(p.motion.span,{initial:{opacity:.6,scale:.6},animate:{opacity:0,scale:3},transition:{duration:1.2,delay:.4},className:"pointer-events-none absolute right-3 top-2.5 z-30 h-7 w-7 rounded-full border-2 border-foreground"},"tap-ripple"),"menu"===o&&(0,t.jsx)(p.motion.div,{initial:{opacity:0,y:-8,scale:.92},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.95},transition:{duration:.35,ease:"easeOut"},className:"pointer-events-none absolute right-2 top-[48px] z-30 w-44 overflow-hidden rounded-md border border-border bg-card shadow-2xl",children:S.map(e=>(0,t.jsx)(A,{label:i(e.key),highlighted:e.highlighted},e.key))},"menu")]})]})})}function A(e){let{label:n,highlighted:r}=e;return r?(0,t.jsxs)(p.motion.div,{initial:{backgroundColor:"rgba(255, 255, 255, 0)"},animate:{backgroundColor:"rgba(255, 255, 255, 0.12)"},transition:{duration:.5,delay:.35},className:"flex items-center gap-2 border-y border-border px-2.5 py-2 text-[10px] font-medium text-foreground",children:[(0,t.jsx)(y.ExternalLink,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:n})]}):(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-2 text-[10px] text-muted-foreground/60",children:[(0,t.jsx)("span",{className:"h-3 w-3 shrink-0 rounded bg-muted-foreground/20"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:n})]})}var P=e.i(760243),M=e.i(335596),D=e.i(403486),T=e.i(970362),I=e.i(712217),R=e.i(567935),O=e.i(985446),B=e.i(764376);let W="auth_form";function L(){let e,d=(0,l.useTranslations)("landing.authPage"),p=(0,l.useTranslations)("landing.auth"),m=(0,a.useRouter)(),g=(0,i.useLocale)(),f=(0,a.useSearchParams)(),{signInWithGoogle:h,isLoading:x}=(0,I.useAuth)(),[b,v]=(0,n.useState)("email"),[y,w]=(0,n.useState)(""),[j,k]=(0,n.useState)(""),[C,S]=(0,n.useState)(null),[A,L]=(0,n.useState)(!1),[F,G]=(0,n.useState)(0),[_,U]=(0,n.useState)(!1),[X,$]=(0,n.useState)(""),z=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(F<=0)return;let e=setTimeout(()=>G(e=>e-1),1e3);return()=>clearTimeout(e)},[F]);let{app:V,isInApp:H,platform:Y}=(0,N.useInAppBrowser)(),[Q,q]=(0,n.useState)(!1),[K,J]=(0,n.use
26State)(!1),Z=(0,n.useRef)(!1),ee=(0,n.useRef)(null),et=(0,n.useRef)(!1);(0,n.useEffect)(()=>{H&&V&&!Z.current&&(Z.current=!0,B.landingAnalytics.authInappWebviewBlocked({app:V,source:W}))},[H,V]);let en=(0,n.useCallback)(async()=>{V&&(await (0,T.copyToClipboard)(window.location.href),q(!0),B.landingAnalytics.authInappOpenInBrowserClick({app:V,method:"copy",source:W}),setTimeout(()=>q(!1),2e3))},[V]),er=(0,n.useCallback)(()=>{V&&(B.landingAnalytics.authInappOpenInBrowserClick({app:V,method:"intent",source:W}),window.location.href=(0,N.buildAndroidChromeIntent)(window.location.href))},[V]),ea=(0,n.useCallback)(()=>{et.current=!0,J(!1)},[]),el=(0,n.useCallback)(async()=>{if(B.landingAnalytics.authGoogleClick(W),H&&V)return void J(!0);let e=(0,O.resolvePostAuthRedirect)(f)??void 0,t=f.get("intent")??void 0;try{await h(e,t),B.landingAnalytics.authSuccess({method:"google",source:W})}catch(e){B.landingAnalytics.authError({method:"google",error:String(e),source:W})}},[h,f,H,V]),ei=async e=>{if(e?.preventDefault(),y&&!A){S(null),L(!0),B.landingAnalytics.authOtpSend({source:W});try{let{error:e}=await (0,R.sendEmailOtp)(y);if(e){S(e.message),B.landingAnalytics.authError({method:"otp",error:e.message,source:W}),L(!1);return}v("code"),G(30),k(""),z.current=null}catch(t){let e=t instanceof Error?t.message:d("genericError");S(e),B.landingAnalytics.authError({method:"otp",error:e,source:W})}finally{L(!1)}}},es=(0,n.useCallback)(()=>{let e=new URLSearchParams,t=(0,O.resolvePostAuthRedirect)(f),n=f.get("intent");t&&e.set(O.AUTH_REDIRECT_PARAM,t),n&&e.set("intent",n);let r=e.toString();return`/${g}/auth/callback${r?`?${r}`:""}`},[f,g]),eo=(0,n.useCallback)(async e=>{if(6===e.length&&!A){S(null),L(!0),B.landingAnalytics.authOtpVerifySubmit({source:W});try{let{error:t}=await (0,R.verifyEmailOtp)(y,e);if(t){S(d("codeStep.invalidCode")),B.landingAnalytics.authOtpVerifyError({source:W,error:t.message}),k(""),z.current=null;return}B.landingAnalytics.authOtpVerifySuccess({source:W}),B.landingAnalytics.authSuccess({method:"otp",source:W}),m.push(es())}catch(t){let e=t instanceof Error?t.message:d("genericError");S(e),B.landingAnalytics.authOtpVerifyError({source:W,error:e})}finally{L(!1)}}},[y,A,m,d,es]);(0,n.useEffect)(()=>{"code"===b&&6===j.length&&z.current!==j&&(z.current=j,eo(j))},[j,b,eo]);let ec=async()=>{if(!(F>0)&&!A){S(null),B.landingAnalytics.authOtpResend({source:W}),L(!0);try{let{error:e}=await (0,R.sendEmailOtp)(y);if(e)return void S(e.message);G(30),k(""),z.current=null}finally{L(!1)}}},eu=async e=>{e.preventDefault(),S(null),L(!0),B.landingAnalytics.authEmailSubmit(W);try{let{error:e}=await (0,R.signInWithEmail)(y,X);e?(S(e.message),B.landingAnalytics.authError({method:"email",error:e.message,source:W})):(B.landingAnalytics.authSuccess({method:"email",source:W}),m.push(es()))}catch{S(d("genericError")),B.landingAnalytics.authError({method:"email",error:d("genericError"),source:W})}finally{L(!1)}};return(0,t.jsxs)("div",{className:"w-full text-center",children:[(0,t.jsxs)(P.Link,{href:"/",className:"inline-flex items-center gap-2.5 mb-10 hover:opacity-80 transition-opacity",children:[(0,t.jsx)(r.default,{src:"/logo.png",alt:"Roasted.cv",width:36,height:36}),(0,t.jsxs)("span",{className:"font-semibold text-xl tracking-tight text-foreground",children:["roasted",(0,t.jsx)("span",{className:"text-accent",children:".cv"})]})]}),"email"===b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold text-foreground mb-2 font-display",children:d("loginTitle")}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm mb-8 max-w-xs mx-auto",children:d("loginSubtitle")}),(0,t.jsx)(M.GoogleSignInButton,{onClick:el,isLoading:x,label:p("google"),loadingLabel:p("loading"),className:"w-full justify-center",variant:"default"}),(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-border"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"px-3 bg-background text-muted-foreground",children:d("orDivider")})})]}),(0,t.jsxs)("form",{onSubmit:ei,className:"space-y-4 text-left",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm text-muted-foreground mb-1.5",children:d("email")}),(0,t.jsx)("input",{id:"email",ref:ee,type:"email",autoComplete:"email",value:y,onChange:e=>w(e.target.value),required:!0,className:"w-full px-4 py-2.5 bg-input border border-border rounded-lg text-foreground placeholder-muted-foreground focus:outline-none focus:border-ring focus:ring-1 focus:ring-ring transition-colors",placeholder:d("emailPlaceholder")})]}),_&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm text-muted-foreground mb-1.5",children:d("password")}),(0,t.jsx)("input",{id:"password",type:"password",autoComplete:"current-password",value:X,onChange:e=>$(e.target.value),required:_,className:"w-full px-4 py-2.5 bg-input border border-border rounded-lg text-foreground placeholder-muted-foreground focus:outline-none focus:border-ring focus:ring-1 focus:ring-ring transition-colors",placeholder:d("passwordPlaceholder")})]}),C&&(0,t.jsx)("p",{role:"alert",className:"text-destructive text-sm",children:C}),_?(0,t.jsx)("button",{type:"button",onClick:eu,disabled:A||!y||!X,className:"w-full py-2.5 bg-accent hover:bg-accent/90 text-accent-foreground font-medium rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:A?d("loading"):d("loginButton")}):(0,t.jsx)("button",{type:"submit",disabled:A||!y,className:"w-full py-2.5 bg-accent hover:bg-accent/90 text-accent-foreground font-medium rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:A?d("loading"):d("sendCodeButton")}),(0,t.jsx)("button",{type:"button",onClick:()=>{_||B.landingAnalytics.authPasswordFallbackOpen({source:W}),U(e=>!e),S(null)}
26,className:"block mx-auto text-xs text-muted-foreground/70 hover:text-muted-foreground transition-colors",children:_?d("hidePassword"):d("usePassword")})]}),(0,t.jsx)("p",{className:"mt-8 text-xs text-muted-foreground/70",children:d("termsNotice")}),V&&(0,t.jsx)(D.Dialog,{open:K,onOpenChange:J,children:(0,t.jsx)(D.DialogContent,{className:"max-w-[calc(100%-2rem)] gap-0 overflow-hidden rounded-3xl p-0 sm:max-w-2xl",onCloseAutoFocus:e=>{et.current&&(e.preventDefault(),ee.current?.focus(),et.current=!1)},children:(0,t.jsxs)("div",{className:"relative flex flex-col gap-7 p-6 sm:p-10",children:[(0,t.jsxs)(D.DialogHeader,{className:"space-y-3 text-center",children:[(0,t.jsx)(D.DialogTitle,{className:"text-balance text-center text-3xl font-bold leading-[1.05] tracking-tight sm:text-4xl",children:d("inAppWebview.title")}),(0,t.jsx)(D.DialogDescription,{className:"text-balance text-center text-sm leading-relaxed text-muted-foreground",children:(e=(0,N.getAppDisplayName)(V))?d("inAppWebview.descriptionApp",{app:e}):d("inAppWebview.descriptionGeneric")})]}),(0,t.jsx)(E,{app:V}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)(u.Button,{onClick:en,size:"lg",className:"w-full text-sm font-medium",children:[Q?(0,t.jsx)(c.Check,{className:"h-4 w-4"}):(0,t.jsx)(o.Copy,{className:"h-4 w-4"}),Q?d("inAppWebview.linkCopied"):d("inAppWebview.copyLink")]}),"android"===Y&&"ios-webview"!==V&&(0,t.jsx)(u.Button,{variant:"outline",onClick:er,size:"lg",className:"w-full text-sm font-medium",children:d("inAppWebview.openInChrome")})]}),(0,t.jsxs)("p",{className:"text-center text-xs text-muted-foreground",children:[d("inAppWebview.fallbackHint")," ",(0,t.jsx)("button",{type:"button",onClick:ea,className:"text-foreground underline underline-offset-2 hover:no-underline focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:d("inAppWebview.useEmailCta")})]})]})})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold text-foreground mb-2 font-display",children:d("codeStep.title")}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm mb-8 max-w-xs mx-auto",children:d("codeStep.subtitle",{email:y})}),(0,t.jsx)(s.OTPInput,{maxLength:6,value:j,onChange:k,pattern:s.REGEXP_ONLY_DIGITS,autoFocus:!0,disabled:A,containerClassName:"flex justify-center gap-2 mb-4",render:e=>{let{slots:n}=e;return(0,t.jsx)(t.Fragment,{children:n.map((e,n)=>(0,t.jsx)("div",{className:["w-12 h-14 flex items-center justify-center text-xl font-mono font-semibold bg-input border border-border rounded-lg transition-all",e.isActive?"border-accent ring-2 ring-accent/30":"",C?"border-destructive":""].join(" "),children:e.char??(e.hasFakeCaret?(0,t.jsx)("span",{className:"w-px h-6 bg-foreground animate-pulse"}):"")},n))})}}),C&&(0,t.jsx)("p",{role:"alert",className:"text-destructive text-sm mb-4",children:C}),(0,t.jsx)("button",{type:"button",onClick:()=>eo(j),disabled:A||6!==j.length,className:"w-full py-2.5 bg-accent hover:bg-accent/90 text-accent-foreground font-medium rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:A?d("loading"):d("codeStep.verifyButton")}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-2 text-sm",children:[(0,t.jsx)("button",{type:"button",onClick:ec,disabled:F>0||A,className:"text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:F>0?d("codeStep.resendIn",{seconds:F}):d("codeStep.resendCode")}),(0,t.jsx)("button",{type:"button",onClick:()=>{v("email"),k(""),S(null),z.current=null},className:"text-xs text-muted-foreground/70 hover:text-muted-foreground transition-colors",children:d("codeStep.changeEmail")})]})]})]})}e.s(["AuthForm",()=>L],709376)}]);
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.