PageSourceSearch

https://prod.mechai.app/chunk-X5MOEKNJ.js

js mechai.app collected 2026-09-25 03:04:50 UTC 10,858 bytes, 4 lines download raw bytes

1import{a as $}from"./chunk-LEMFTY43.js";import{c as U,d as k,f as K,g as W,j as Y,n as q,o as J,x as Q,z as X}from"./chunk-QO327RTO.js";import"./chunk-4MYWE7CD.js";import{a as V}from"./chunk-RS4X3CMD.js";import{i as D}from"./chunk-EWPP756Y.js";import"./chunk-I5EQON52.js";import{a as Z}from"./chunk-WJYI5X5F.js";import{b as j,c as H,d as z}from"./chunk-G6PWMA7J.js";import{Gb as T,Jd as R,Kc as I,Qb as d,Qc as a,Rb as e,Rc as c,Sb as r,Sc as y,Tb as u,Wc as N,Xb as M,Yb as O,ac as S,cc as v,db as n,ec as w,fd as B,mb as h,oa as E,oc as P,pa as b,qa as x,ra as f,sb as L,sc as s,tc as C,uc as p,xd as G,yb as _,yd as A,zd as F}from"./chunk-IQ6SK2BU.js";import"./chunk-6ACFICIG.js";import"./chunk-FE7444LI.js";import"./chunk-OXDKANHF.js";import"./chunk-XUHYVR5R.js";var tt=t=>({provider:t});function et(t,g){t&1&&(e(0,"p",22),s(1),a(2,"translate"),r()),t&2&&(n(),p(" ",c(2,1,"V2.LOGIN.EMAIL_INVALID")," "))}function it(t,g){if(t&1&&(e(0,"div",23)(1,"p",24),s(2),r()()),t&2){let i=w(2);n(2),p(" ",i.errorMessage," ")}}function nt(t,g){if(t&1){let i=S();M(0),e(1,"form",12),v("ngSubmit",function(){E(i);let l=w();return b(l.onSubmit())}),e(2,"div",13)(3,"label",14),s(4),a(5,"translate"),r(),e(6,"div",15),x(),e(7,"svg",16),u(8,"path",17),r(),f(),u(9,"input",18),a(10,"translate"),a(11,"translate"),r(),_(12,et,3,3,"p",19),r(),_(13,it,3,1,"div",20),e(14,"button",21),s(15),a(16,"translate"),r()(),O()}if(t&2){let i,o,l,m=w();n(),d("formGroup",m.form),n(3),p(" ",c(5,9,"V2.LOGIN.EMAIL_LABEL")," "),n(5),T("aria-label",c(10,11,"V2.LOGIN.EMAIL_LABEL"))("placeholder",c(11,13,"V2.LOGIN.EMAIL_PLACEHOLDER"))("aria-invalid",(i=m.form.get("email"))!=null&&i.touched&&((i=m.form.get("email"))!=null&&i.invalid)?"true":null)("aria-describedby",(o=m.form.get("email"))!=null&&o.touched&&((o=m.form.get("email"))!=null&&o.hasError("email"))?"forgot-email-error":null),n(3),d("ngIf",((l=m.form.get("email"))==null?null:l.touched)&&((l=m.form.get("email"))==null?null:l.hasError("email"))),n(),d("ngIf",m.errorMessage),n(2),p(" ",c(16,15,"V2.LOGIN.SEND_RESET")," ")}}function rt(t,g){t&1&&(e(0,"div",3)(1,"div",27),x(),e(2,"svg",28),u(3,"path",29),r()(),f(),e(4,"h2",30),s(5),a(6,"translate"),r(),e(7,"p",31),s(8),a(9,"translate"),r()()),t&2&&(n(5),C(c(6,2,"V2.LOGIN.RESET_EMAIL_SENT")),n(3),p(" ",c(9,4,"V2.LOGIN.RESET_EMAIL_DESC")," "))}function ot(t,g){if(t&1){let i=S();e(0,"div",3)(1,"div",32),x(),e(2,"svg",33),u(3,"path",34),r()(),f(),e(4,"h2",30),s(5),a(6,"translate"),r(),e(7,"p",31),s(8),a(9,"translate"),r(),e(10,"button",35),v("click",function(){E(i);let l=w(2);return b(l.onBackToLogin())}),s(11),a(12,"translate"),r()()}if(t&2){let i=w(2);n(5),p(" ",y(6,3,"V2.LOGIN.RESET_FEDERATED_TITLE",I(11,tt,i.federatedProvider))," "),n(3),p(" ",y(9,6,"V2.LOGIN.RESET_FEDERATED_DESC",I(13,tt,i.federatedProvider))," "),n(3),p(" ",c(12,9,"V2.LOGIN.BACK_TO_LOGIN")," ")}}function at(t,g){if(t&1){let i=S();e(0,"div",3)(1,"div",32),x(),e(2,"svg",33),u(3,"path",34),r()(),f(),e(4,"h2",30),s(5),a(6,"translate"),r(),e(7,"p",31),s(8),a(9,"translate"),r(),e(10,"button",35),v("click",function(){E(i);let l=w(2);return b(l.onBackToLogin())}),s(11),a(12,"translate"),r()()}t&2&&(n(5),C(c(6,3,"V2.LOGIN.RESET_AMBIGUOUS_TITLE")),n(3),p(" ",c(9,5,"V2.LOGIN.RESET_AMBIGUOUS_DESC")," "),n(3),p(" ",c(12,7,"V2.LOGIN.BACK_TO_LOGIN")," "))}function lt(t,g){if(t&1&&(e(0,"div",25),_(1,rt,10,6,"div",26)(2,ot,13,15,"div",26)(3,at,13,9,"div",26),r()),t&2){let i=w();d("ngSwitch",i.resultView),n(),d("ngSwitchCase","sent"),n(),d("ngSwitchCase","federated"),n(),d("ngSwitchCase","ambiguous")}}var _t=(()=>{class t{constructor(i,o,l,m){this.fb=i,this.router=o,this.translate=l,this.cdr=m,this.resultView=null,this.errorMessage="",this.federatedProvider="",this.form=this.fb.group({email:["",[k.required,k.email]]})}async onSubmit(){if(this.errorMessage="",this.form.invalid||this.form.pristine||!this.form.value.email){this.form.markAllAsTouched();return}this.form.markAsPristine();let i=this.form.value.email.trim(),o=[];try{o=(await V.fetchSignInMethodsForEmail({email:i})).signInMethods??[]}catch{o=[]}if(o.length>0&&!o.includes("password")){o.includes("google.com")?(this.federatedProvider="Google",this.resultView="federated"):o.includes("apple.com")?(this.federatedProvider="Apple",this.resultView="federated"):this.resultView="ambiguous",this.cdr.markForCheck();return}try{await V.sendPasswordResetEmail({email:i,actionCodeSettings:{url:$(),handleCodeInApp:!1}})}catch{this.errorMessage=this.translate.instant("V2.LOGIN.RESET_SEND_ERROR"),this.cdr.markForCheck();return}this.resultView=o.includes("password")?"sent":"ambiguous",this.cdr.markForCheck()}onBack(){this.router.navigate(["/v2/login/email"])}onBackToLogin(){this.router.navigate(["/v2/login"])}static{this.\u0275fac=function(o){return new(o||t)(h(Q),h(D),h(j),h(B))}}static{this.\u0275cmp=L({type:t,selectors:[["app-v2-forgot-password"]],decls:20,vars:11,consts:[["confirmationTpl",""],[1,"login-page","tw-min-h-[100dvh]","tw-bg-mech-bg","tw-flex","tw-items-center","tw-justify-center","tw-p-4"],[1,"login-card","tw-bg-mech-surface","tw-rounded-[40px]","tw-p-8","md:tw-p-12","tw-max-w-md","tw-w-full","tw-shadow-2xl","tw-shadow-blue-500/5","tw-space-y-8","tw-border","t
1w-border-mech-border"],[1,"tw-text-center","tw-space-y-4"],[1,"tw-flex","tw-justify-center"],[1,"tw-w-16","tw-h-16","tw-rounded-2xl","tw-bg-mech-primary","tw-flex","tw-items-center","tw-justify-center","tw-shadow-lg","tw-shadow-blue-500/20"],["cssClass","tw-w-10 tw-h-10 tw-text-white"],[1,"tw-text-3xl","tw-font-[900]","tw-text-mech-text","tw-tracking-tight"],[1,"tw-text-mech-text-muted","tw-text-sm","tw-font-medium","tw-mt-2"],[4,"ngIf","ngIfElse"],[1,"tw-text-center"],[1,"tw-text-sm","tw-text-mech-text-muted","hover:tw-text-mech-text","tw-font-medium","tw-cursor-pointer","tw-bg-transparent","tw-border-none","tw-p-0","tw-transition-colors",2,"font-family","'Inter', sans-serif",3,"click"],[1,"tw-space-y-5",3,"ngSubmit","formGroup"],[1,"tw-space-y-2"],["for","forgot-email",1,"tw-block","tw-text-[10px]","tw-font-bold","tw-uppercase","tw-tracking-widest","tw-text-mech-text-muted","tw-ml-1",2,"font-family","'Inter', sans-serif"],[1,"tw-relative"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","stroke-width","2","aria-hidden","true",1,"auth-input-leading","tw-absolute","tw-left-4","tw-top-1/2","tw--translate-y-1/2","tw-w-5","tw-h-5","tw-text-mech-text-muted","tw-pointer-events-none"],["stroke-linecap","round","stroke-linejoin","round","d","M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"],["id","forgot-email","formControlName","email","type","email","autocomplete","email",1,"auth-input-control","tw-w-full","tw-bg-mech-surface-2","tw-border-none","tw-rounded-2xl","tw-pl-12","tw-pr-4","tw-py-4","tw-text-sm","tw-text-mech-text","tw-outline-none","focus:tw-ring-2","focus:tw-ring-mech-primary","tw-transition-shadow",2,"font-family","'Inter', sans-serif"],["id","forgot-email-error","class","tw-text-xs tw-ml-1","style","color: var(--color-danger-text)",4,"ngIf"],["role","alert","aria-live","polite","class","tw-rounded-2xl tw-p-4 tw-text-center","style",`
2                        background: color-mix(in srgb, var(--color-danger) 12%, transparent);
3                        border: 1px solid color-mix(in srgb, var(--color-danger) 40%, transparent);
4                    `,4,"ngIf"],["type","submit",1,"mech-btn-primary","tw-w-full","tw-py-4","tw-text-sm"],["id","forgot-email-error",1,"tw-text-xs","tw-ml-1",2,"color","var(--color-danger-text)"],["role","alert","aria-live","polite",1,"tw-rounded-2xl","tw-p-4","tw-text-center",2,"background","color-mix(in srgb, var(--color-danger) 12%, transparent)","border","1px solid color-mix(in srgb, var(--color-danger) 40%, transparent)"],[1,"tw-text-sm","tw-font-medium",2,"color","var(--color-danger-text)"],[3,"ngSwitch"],["class","tw-text-center tw-space-y-4",4,"ngSwitchCase"],[1,"tw-w-16","tw-h-16","tw-rounded-full","tw-flex","tw-items-center","tw-justify-center","tw-mx-auto",2,"background","color-mix(in srgb, var(--color-success) 12%, transparent)"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","stroke-width","2","aria-hidden","true",1,"tw-w-8","tw-h-8",2,"color","var(--color-success)"],["stroke-linecap","round","stroke-linejoin","round","d","M5 13l4 4L19 7"],[1,"tw-text-xl","tw-font-[800]","tw-text-mech-text"],[1,"tw-text-sm","tw-text-mech-text-muted"],[1,"tw-w-16","tw-h-16","tw-rounded-full","tw-bg-mech-primary/10","tw-flex","tw-items-center","tw-justify-center","tw-mx-auto"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","stroke-width","2",1,"tw-w-8","tw-h-8","tw-text-mech-primary"],["stroke-linecap","round","stroke-linejoin","round","d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],["type","button",1,"mech-btn-primary","tw-w-full","tw-py-4","tw-text-sm",3,"click"]],template:function(o,l){if(o&1&&(e(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),u(5,"app-mech-logo",6),r()(),e(6,"div")(7,"h1",7),s(8),a(9,"translate"),r(),e(10,"p",8),s(11),a(12,"translate"),r()()(),_(13,nt,17,17,"ng-container",9)(14,lt,4,4,"ng-template",null,0,N),e(16,"div",10)(17,"button",11),v("click",function(){return l.onBack()}),s(18),a(19,"translate"),r()()()()),o&2){let m=P(15);n(8),p(" ",c(9,5,"V2.LOGIN.RESET_PASSWORD_TITLE")," "),n(3),C(c(12,7,"V2.LOGIN.RESET_PASSWORD_DESC")),n(2),d("ngIf",!l.resultView)("ngIfElse",m),n(5),p(" ",c(19,9,"V2.LOGIN.BACK_TO_EMAIL_LOGIN")," ")}},dependencies:[R,G,A,F,X,Y,U,K,W,J,q,Z,z,H],styles:["[_nghost-%COMP%]{display:block}.login-page[_ngcontent-%COMP%]{box-sizing:border-box;height:100dvh;min-height:100dvh;align-items:flex-start;padding-block:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior-y:contain;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--color-text)}.login-card[_ngcontent-%COMP%]{flex:0 0 auto;margin-block:auto;animation:_ngcontent-%COMP%_login-card-enter .4s cubic-bezier(.16,1,.3,1) both}.auth-back-row[_ngcontent-%COMP%]{position:sticky;top:max(0px,env(safe-area-inset-top));z-index:2;width:calc(100% + 16px);margin-block:-8px;margin-inline:-8px;border-radius:12px;background:color-mix(in srgb,var(--color-surface) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}@media(max-width:399px){.login-page[_ngcontent-%COMP%]{padding-inline:12px}.login-card[_ngcontent-%COMP%]{min-width:0;padding:24px;border-radius:32px}.login-card[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{overflow-wrap:anywhere}.auth-input-leading[_ngcontent-%COMP%]{display:none}.auth-input-control[_ngcontent-%COMP%]{padding-left:16px}}@keyframes _ngcontent-%COMP%_login-card-enter{0%{opacity:0;transform:scale(.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}"]})}}return t})();export{_t as V2ForgotPasswordComponent};

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.