1import{a as G,b as u}from"./chunk-3JAH6CNL.js";import{b as O}from"./chunk-IR3IXP4R.js";import{Ab as M,Eb as A,Fb as g,Ra as f,Rb as d,X as S,Y as _,Z as k,ab as b,gc as P,hc as C,lb as w,mb as h,nb as v,wb as a,xb as l,yb as s,zb as E}from"./chunk-IIXPTABD.js";var I=class e{static \u0275fac=function(o){return new(o||e)};static \u0275cmp=b({type:e,selectors:[["app-or-divider"]],decls:5,vars:0,consts:[[1,"divider"],["aria-hidden","true",1,"divider-line"],[1,"divider-text"]],template:function(o,i){o&1&&(a(0,"div",0),s(1,"div",1),a(2,"span",2),d(3,"OR"),l(),s(4,"div",1),l())},styles:[".divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin:20px 0}.divider-line[_ngcontent-%COMP%]{flex:1;height:1px;background-color:var(--color-card-border)}.divider-text[_ngcontent-%COMP%]{font-family:var(--font-family);font-size:13px;font-weight:500;color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.05em}"]})};function V(e,t){e&1&&(s(0,"span",4),d(1," Signing in... "))}function N(e,t){e&1&&(k(),a(0,"svg",5),s(1,"path",6),l(),d(2," Continue with Google "))}function q(e,t){if(e&1){let o=E();a(0,"button",3),A("click",function(){S(o);let n=g();return _(n.googleClick.emit())}),h(1,V,2,0)(2,N,3,0),l()}if(e&2){let o=g();M("disabled",o.loading()),w("aria-busy",o.loading()),f(),v(o.loading()?1:2)}}function H(e,t){if(e&1){let o=E();a(0,"button",7),A("click",function(){S(o);let n=g();return _(n.facebookClick.emit())}),k(),a(1,"svg",8),s(2,"path",9),l(),d(3," Continue with Facebook "),l()}if(e&2){let o=g();M("disabled",o.loading()),w("aria-busy",o.loading())}}var U=class e{showGoogle=C(!0);showFacebook=C(!1);loading=C(!1);googleClick=P();facebookClick=P();static \u0275fac=function(o){return new(o||e)};static \u0275cmp=b({type:e,selectors:[["app-social-auth-buttons"]],inputs:{showGoogle:[1,"showGoogle"],showFacebook:[1,"showFacebook"],loading:[1,"loading"]},outputs:{googleClick:"googleClick",facebookClick:"facebookClick"},decls:3,vars:2,consts:[[1,"social-buttons"],["type","button","aria-label","Continue with Google",1,"btn-outline",3,"disabled"],["type","button","aria-label","Continue with Facebook",1,"btn-outline",3,"disabled"],["type","button","aria-label","Continue with Google",1,"btn-outline",3,"click","disabled"],["aria-hidden","true",1,"spinner"],["stroke","currentColor","fill","currentColor","stroke-width","0","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["d","M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"],["type","button","aria-label","Continue with Facebook",1,"btn-outline",3,"click","disabled"],["stroke","currentColor","fill","currentColor","stroke-width","0","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"fb-icon"],["d","M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"]],template:function(o,i){o&1&&(a(0,"div",0),h(1,q,3,3,"button",1),h(2,H,4,2,"button",2),l()),o&2&&(f(),v(i.showGoogle()?1:-1),f(),v(i.showFacebook()?2:-1))},styles:[".social-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.btn-outline[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;font-family:var(--font-family);font-size:15px;font-weight:500;color:var(--color-text-dark);background-color:transparent;border:1px solid rgba(0,0,0,.1);border-radius:var(--radius-button);padding:8px 16px;min-height:36px;cursor:pointer;line-height:22.5px;text-align:center;white-space:normal;box-shadow:0 1px 2px #0000000d}
1.btn-outline[_ngcontent-%COMP%]:hover{background-color:#fafafa}.btn-outline[_ngcontent-%COMP%]:active{box-shadow:none}.btn-outline[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.7}.btn-outline[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;flex-shrink:0}.spinner[_ngcontent-%COMP%]{width:16px;height:16px;flex-shrink:0;border:2px solid rgba(0,0,0,.15);border-top-color:var(--color-text-dark);border-radius:50%;animation:_ngcontent-%COMP%_social-spin .6s linear infinite}@keyframes _ngcontent-%COMP%_social-spin{to{transform:rotate(360deg)}}.fb-icon[_ngcontent-%COMP%]{color:var(--color-facebook)}"]})};var m=null;function R(){if(typeof document>"u")return m=null,null;let e=document.activeElement;return m=e&&e!==document.body?e:null,m}function p(){let e=m;m=null,e?.isConnected&&setTimeout(()=>{e.focus(),e.scrollIntoView?.({block:"center"})},0)}function y(e,t){if(!G(t)){u(t,"/app/signin");return}if(e&&t.startsWith("/app/")){e.navigateByUrl(t.slice(4));return}u(t,"/app/signin")}function z(e,t){let{identityApi:o,destroyRef:i,loadingSignal:n}=t;n.set(!0),o.googleLogin(e,t.returnUrl).pipe(O(i)).subscribe({next:c=>Z(c,t),error:()=>{n.set(!1),t.errorSignal.set("An error occurred. Please try again."),p()}})}function Z(e,t){let{errorSignal:o,loadingSignal:i,router:n,analyticsService:c}=t;if(e.requiresPasswordReset&&e.redirectUrl){y(n,e.redirectUrl);return}if(e.requiresLinking&&e.redirectUrl){y(n,e.redirectUrl);return}if(e.success&&e.requiresTwoFactor&&e.mfaCredential){t.onMfaRequired?t.onMfaRequired(e.mfaCredential,e.mfaMaskedEmail??""):y(n,`/app/verify-identity?credential=${encodeURIComponent(e.mfaCredential)}`),i.set(!1);return}if(e.success&&e.requiresEmailVerification&&e.redirectUrl){y(n,e.redirectUrl);return}if(e.success&&e.redirectUrl){if(e.jobSeekerId){c?.setUserId(e.jobSeekerId),(c?.trackLogin("google",e.jobSeekerId,t.authContext)||Promise.resolve()).then(()=>{t.onSuccess?t.onSuccess():u(e.redirectUrl,"/app/")});return}t.onSuccess?t.onSuccess():u(e.redirectUrl,"/app/");return}i.set(!1),o.set(e.errorMessage??"An error occurred. Please try again."),p()}function ee(e,t){let{identityApi:o,destroyRef:i,errorSignal:n,loadingSignal:c,ngZone:T,googleClientId:D}=t;if(n.set(""),e==="google"){if(!D){n.set("Google login is not configured.");return}if(!google?.accounts?.id){n.set("Google Sign-In is not available. Please try again.");return}google.accounts.id.disableAutoSelect(),google.accounts.id.initialize({client_id:D,callback:x=>T.run(()=>z(x.credential,t)),use_fedcm_for_prompt:!1});let r=document.createElement("div");r.style.cssText="position:absolute;opacity:0;pointer-events:none;",r.setAttribute("aria-hidden","true"),document.body.appendChild(r),google.accounts.id.renderButton(r,{type:"standard",size:"large",theme:"outline"});let B=r.querySelector('div[role="button"]');if(B){let x=R();B.click(),r.inert=!0,x?.focus?.()}setTimeout(()=>r.remove(),5e3);return}R(),c.set(!0),o.socialAuth(e).pipe(O(i)).subscribe({next:r=>{r.success&&r.redirectUrl?u(r.redirectUrl,"/app/signin"):(c.set(!1),n.set(r.errorMessage??"An error occurred. Please try again."),p())},error:()=>{c.set(!1),n.set("An error occurred. Please try again."),p()}})}export{I as a,U as b,R as c,p as d,ee as e};
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.