PageSourceSearch

https://usasoftballofvirginia.com/chunk-XKRPSQQM.js

js usasoftballofvirginia.com collected 2026-09-28 18:52:28 UTC 12,792 bytes, 3 lines download raw bytes

1import{i as be}from"./chunk-L7W3W6HF.js";import{a as I}from"./chunk-2FOUSL4U.js";import{a as A}from"./chunk-57Y5ABZS.js";import{a as ye}from"./chunk-RRZRS5BZ.js";import{a as R}from"./chunk-LY7WOQZN.js";import{b as ve}from"./chunk-T3PLPHIG.js";import{b as xe,c as T}from"./chunk-2JW6ZMWV.js";import{a as Ce}from"./chunk-NIP74ZKI.js";import{c as re}from"./chunk-V46ZQKC5.js";import{r as he}from"./chunk-RE4JJFV5.js";import{a as ue,b as fe}from"./chunk-4WMDX4SQ.js";import{a as ae,b as le,e as se,i as ce,j as de}from"./chunk-VTTO24NQ.js";import{l as ie,n as ne,q as oe}from"./chunk-YWHNFDXQ.js";import{i as ge,l as _e}from"./chunk-FCTHY2PU.js";import{h as W,i as j,n as Q}from"./chunk-GW33KQPR.js";import{T as me,U as pe}from"./chunk-TUEKBDZZ.js";import{B as J,C as Z,F as $,G as ee,H as te,c as z,h as U,i as G,k as Y,m as X,n as K,z as H}from"./chunk-QXJM3TTT.js";import{F as N,k as P,r as q}from"./chunk-TMOIAHHX.js";import{Db as w,Ib as l,Jb as L,Kb as D,Rb as S,Sb as k,Tb as V,Wa as u,Xa as f,ab as C,bb as a,cb as o,dc as E,ga as s,kb as h,la as B,o as m,p,qb as g,sa as _,tb as c,xb as b,yb as v,za as O,zb as y}from"./chunk-DJNWGYMM.js";import{ea as x,f as F}from"./chunk-VOZAGDK7.js";var ke=["loginForm"],Ve=i=>({"mt-36":i}),Me=i=>({"flex-direction":i});function Le(i,d){i&1&&(a(0,"mat-error",16),l(1,"Email is required."),o())}function Ee(i,d){i&1&&(a(0,"mat-error"),l(1,"Email is not valid."),o())}function Te(i,d){i&1&&(a(0,"mat-error",16),l(1,"Password is required "),o())}function Re(i,d){i&1&&(a(0,"mat-error",16),l(1,"Password must be min 8 character "),o())}function Ie(i,d){i&1&&(a(0,"div",21),l(1,"Your email address or password is incorrect, please try again!"),o())}function Ae(i,d){if(i&1){let t=h();a(0,"rp-captcha",25),g("payloadChange",function(e){m(t);let r=c(2);return p(r.altchaPayload=e)}),o()}}function Fe(i,d){if(i&1){let t=h();a(0,"mat-form-field",13)(1,"mat-label"),l(2,"Email"),o(),a(3,"input",14,1),V("ngModelChange",function(e){m(t);let r=c();return k(r.login.email,e)||(r.login.email=e),p(e)}),o(),a(5,"mat-icon",15),l(6,"email"),o(),u(7,Le,2,0,"mat-error",16),u(8,Ee,2,0,"mat-error"),o(),a(9,"mat-form-field",17)(10,"mat-label"),l(11,"Password"),o(),a(12,"input",18,2),V("ngModelChange",function(e){m(t);let r=c();return k(r.login.pass,e)||(r.login.pass=e),p(e)}),o(),a(14,"mat-icon",15),l(15,"vpn_key"),o(),u(16,Te,2,0,"mat-error",16),u(17,Re,2,0,"mat-error",16),o(),a(18,"div",19)(19,"a",20),g("click",function(){m(t);let e=c();return p(e.toggleSidebarOpen())}),l(20,"Forgot Password?"),o()(),u(21,Ie,2,0,"div",21),u(22,Ae,1,0,"rp-captcha",22),a(23,"div",23)(24,"button",24),l(25,"LOGIN"),o()()}if(i&2){let t=w(4),n=w(13),e=c(),r=w(10);s(3),S("ngModel",e.login.email),s(4),f(r.controls.email!=null&&r.controls.email.errors.required&&t.touched?7:-1),s(),f(r.controls.email!=null&&r.controls.email.errors.email?8:-1),s(4),S("ngModel",e.login.pass),s(4),f(r.controls.pass!=null&&r.controls.pass.errors.required&&n.touched?16:-1),s(),f((n.value==null?null:n.value.length)<8&&n.touched?17:-1),s(),C("ngStyle",E(10,Me,e.isMobile?"column":"row")),s(),C("routerLink","/auth/forgot-password"),s(2),f(e.errorMessage?21:-1),s(),f(e.captchaRequired?22:-1)}}function Be(i,d){i&1&&l(0," Sign in using your authenticator app ")}function Oe(i,d){i&1&&l(0," Enter a backup code ")}function De(i,d){i&1&&(l(0," Enter the 6-digit verification code generated by "),a(1,"b"),l(2,"your authenticator app"),o(),l(3,". "))}function Pe(i,d){i&1&&l(0," Enter one of the backup codes you saved when you turned on two-factor. ")}function qe(i,d){if(i&1){let t=h();a(0,"div",28)(1,"otp-input",35),g("completed",function(e){m(t);let r=c(2);return p(r.onOtpComplete(e))})("codeChange",function(e){m(t);let r=c(2);return p(r.code=e)}),o()()}}function Ne(i,d){if(i&1){let t=h();a(0,"mat-form-field",29)(1,"mat-label"),l(2,"Backup code"),o(),a(3,"input",36),V("ngModelChange",function(e){m(t);let r=c(2);return k(r.code,e)||(r.code=e),p(e)}),g("keyup.enter",function(){m(t);let e=c(2);return p(e.verify2FA())}),o(),a(4,"mat-icon",15),l(5,"vpn_key"),o()()}if(i&2){let t=c(2);s(3),S("ngModel",t.code)}}function We(i,d){if(i&1&&(a(0,"div",30),l(1),o()),i&2){let t=c(2);s(),L(t.codeError)}}function je(i,d){if(i&1){let t=h();a(0,"div",11)(1,"div",26),u(2,Be,1,0)(3,Oe,1,0),o(),a(4,"div",27),u(5,De,4,0)(6,Pe,1,0),o(),u(7,qe,2,0,"div",28)(8,Ne,6,1,"mat-form-field",29),u(9,We,2,1,"div",30),a(10,"button",31),g("
1click",function(){m(t);let e=c();return p(e.verify2FA())}),l(11," Continue "),o(),a(12,"div",32)(13,"a",33),g("click",function(){m(t);let e=c();return p(e.toggleBackupCode())}),l(14),o(),a(15,"a",34),g("click",function(){m(t);let e=c();return p(e.backToLogin())}),l(16,"Back to sign in"),o()()()}if(i&2){let t=c();s(2),f(t.useBackupCode?3:2),s(3),f(t.useBackupCode?6:5),s(2),f(t.useBackupCode?8:7),s(2),f(t.codeError?9:-1),s(),C("disabled",t.verifying),s(4),L(t.useBackupCode?"Use your authenticator app":"Sign in another way")}}function Qe(i,d){if(i&1){let t=h();a(0,"div",12)(1,"span",37),l(2,"Don't have an account?"),o(),a(3,"a",38),g("click",function(){m(t);let e=c();return p(e.toggleSidebarOpen())}),l(4,"Create an account"),o()()}i&2&&(s(3),C("routerLink","/auth/register"))}var Mt=(()=>{class i{_fuseConfigService;_formBuilder;membershipService;router;notify;_fuseSidebarService;_detectDevice;loginForm;isMobile=!1;errorMessage=!1;login={};step="credentials";challengeToken=null;code="";useBackupCode=!1;codeError=null;verifying=!1;_loginForm;otpInput;captcha;captchaRequired=!1;altchaPayload="";dontRedirect=!1;accountDeletionMode=!1;hideRegistration=!1;reload=new B;_unsubscribeAll;constructor(t,n,e,r,M,we,Se){this._fuseConfigService=t,this._formBuilder=n,this.membershipService=e,this.router=r,this.notify=M,this._fuseSidebarService=we,this._detectDevice=Se,this._unsubscribeAll=new F,this._detectDevice.subscribeToLayoutChanges().pipe(x(this._unsubscribeAll)).subscribe(ze=>{this._detectDevice.isBreakpointActive(R.mobile)&&(this.isMobile=!!this._detectDevice.isBreakpointActive(R.mobile))}),this._fuseConfigService.config={layout:{sidepanel:{hidden:!0}}}}ngOnInit(){this.isMobile=this.membershipService.isMobileDevice,this.accountDeletionMode&&(this.hideRegistration=!0)}onLoginSubmit(){if(this.step==="code"){this.verify2FA();return}this._loginForm.valid?(this.errorMessage=null,this.login.altcha=this.altchaPayload,this.membershipService.login(this.login).pipe(x(this._unsubscribeAll)).subscribe({next:t=>{if(this.errorMessage=null,t&&t.requires2FA){this.challengeToken=t.challengeToken,this.step="code",this.code="",this.useBackupCode=!1,this.codeError=null,this.login.pass="";return}this.completeLogin()},error:t=>{this.errorMessage=!0,this.captchaRequired=!0,this.altchaPayload="",this.captcha?.reset();let n=t.error?t.error:"An error has occured";typeof n=="string"&&n.startsWith("captchaRequired:")&&(n=n.substring(16)),this.notify.openAlertModal(n,T.ERROR)}})):this.notify.openWarningModal("Please fill all fields")}verify2FA(){if(this.verifying)return;let t=(this.code||"").trim();if(!t){this.codeError="Please enter your code.";return}this.codeError=null,this.verifying=!0,this.membershipService.login2FA(this.challengeToken,t).pipe(x(this._unsubscribeAll)).subscribe({next:()=>{this.verifying=!1,this.completeLogin()},error:n=>{this.verifying=!1;let e=n&&n.error?n.error:"That code didn't work. Please try again.";typeof e=="string"&&e.toLowerCase().indexOf("sign in again")>-1?(this.backToLogin(),this.notify.openAlertModal(e,T.ERROR)):(this.codeError=e,this.otpInput?.reset())}})}onOtpComplete(t){this.code=t,this.verify2FA()}toggleBackupCode(){this.useBackupCode=!this.useBackupCode,this.code="",this.codeError=null}backToLogin(){this.step="credentials",this.challengeToken=null,this.co
1de="",this.codeError=null,this.useBackupCode=!1,this.verifying=!1,this.login.pass=""}completeLogin(){this.errorMessage=null,this.step="credentials",this.challengeToken=null,this.code="",this.codeError=null,this.verifying=!1,this.dontRedirect?this.reload.emit(!0):(this.router.navigateByUrl("/pages/dashboard"),this._fuseSidebarService.getSidebar("loginPanel")?.toggleOpen())}toggleSidebarOpen(){this._fuseSidebarService.getSidebar("loginPanel")?.toggleOpen()}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(n){return new(n||i)(_(_e),_($),_(Ce),_(W),_(he),_(ge),_(ye))};static \u0275cmp=O({type:i,selectors:[["login-v2"]],viewQuery:function(n,e){if(n&1&&(b(ke,5),b(I,5),b(A,5)),n&2){let r;v(r=y())&&(e._loginForm=r.first),v(r=y())&&(e.otpInput=r.first),v(r=y())&&(e.captcha=r.first)}},inputs:{dontRedirect:"dontRedirect",accountDeletionMode:"accountDeletionMode",hideRegistration:"hideRegistration"},outputs:{reload:"reload"},decls:14,vars:7,consts:[["loginForm","ngForm"],["email","ngModel"],["pass","ngModel"],["id","login-2","fxLayout","row","fxLayoutAlign","start",1,"inner-scroll"],["id","login-form-wrapper","fusePerfectScrollbar","",1,"animate-slide-in-x"],["id","login-form",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"dropdown-header","primary"],[1,"dropdown-heading","font-size-20","p-12"],["mat-icon-button","",1,"toggle-sidebar-open","mr-8",3,"click"],[1,"secondary-text"],["name","form",1,"mt-36","text-center",3,"ngSubmit"],[1,"two-factor-step"],["fxLayout","column","fxLayoutAlign","center center",1,"register","mt-12"],["appearance","outline",1,"w-95-p"],["matInput","","name","username","id","email","type","email","required","",1,"form-control",3,"ngModelChange","ngModel"],["matSuffix",""],[1,"red-900-fg"],["appearance","outline","hintLabel","Min 8 characters",1,"w-95-p"],["matInput","","type","password","name","password","minlength","8","required","",1,"form-control",3,"ngModelChange","ngModel"],["fxLayoutAlign","end center",1,"remember-forgot-password",3,"ngStyle"],[1,"forgot-password","mr-32","text-bold",3,"click","routerLink"],[1,"message-box","error","mb-12"],["auto","onload",1,"mb-12"],[1,"text-center","mt-20"],["mat-raised-button","","aria-label","LOG IN","type","submit",1,"primary","submit-button"],["auto","onload",1,"mb-12",3,"payloadChange"],[1,"tf-title"],[1,"tf-subtitle"],[1,"tf-code-wrap"],["appearance","outline",1,"tf-backup-field"],[1,"message-box","error"],["mat-raised-button","","type","button","aria-label","Continue",1,"primary","tf-continue",3,"click","disabled"],[1,"tf-links"],[1,"tf-link",3,"click"],[1,"tf-link","tf-link-muted",3,"click"],[3,"completed","codeChange"],["matInput","","name","backupCode","autocomplete","off","maxlength","9",3,"ngModelChange","keyup.enter","ngModel"],[1,"text"],[1,"link","text-bold",3,"click","routerLink"]],template:function(n,e){if(n&1){let r=h();a(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),l(5),o(),a(6,"button",8),g("click",function(){return m(r),p(e.toggleSidebarOpen())}),a(7,"mat-icon",9),l(8,"close"),o()()(),a(9,"form",10,0),g("ngSubmit",function(){return m(r),p(e.onLoginSubmit())}),u(11,Fe,26,12),u(12,je,17,6,"div",11),o(),u(13,Qe,5,1,"div",12),o()()()}n&2&&(s(2),C("ngClass",E(5,Ve,!e.isMobile&&!e.accountDeletionMode)),s(3),D(" ",e.accountDeletionMode?"Login to Delete Your Account":"LOGIN TO YOUR ACCOUNT"," "),s(6),f(e.step==="credentials"?11:-1),s(),f(e.step==="code"?12:-1),s(),f(e.step==="credentials"&&!e.hideRegistration?13:-1))},dependencies:[Q,j,xe,be,ve,oe,ne,ie,re,de,ce,ae,le,se,pe,me,te,K,z,U,G,H,J,Z,fe,ue,ee,X,Y,N,P,q,I,A],styles:[`login-2{display:flex;flex-direction:column;flex:1 1 auto;width:280px;min-width:280px;max-width:280px;z-index:99}login-2 .mat-slide-toggle-content{flex:1}@keyframes slideInX{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.anim-slide-in-x{animation:slideInX .2s cubic-bezier(0,0,.2,1) .3s both}
2`,`.two-factor-step{text-align:center;max-width:320px;margin:0 auto;padding:4px 4px 8px}.two-factor-step .tf-title{font-size:20px;font-weight:700;line-height:1.25;margin-bottom:8px}.two-factor-step .tf-subtitle{color:#0000008c;font-size:14px;line-height:1.45;margin:0 auto 20px;max-width:300px}.two-factor-step .tf-code-wrap{display:flex;justify-content:center;margin-bottom:4px}.two-factor-step .tf-backup-field{width:100%}.two-factor-step .message-box{margin:12px auto;text-align:center}.two-factor-step .tf-continue{display:block;width:100%;max-width:260px;height:44px;margin:16px auto 0}.two-factor-step .tf-links{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:20px}
2.two-factor-step .tf-links .tf-link{cursor:pointer;font-size:14px;font-weight:600;color:#3949ab;text-decoration:none}.two-factor-step .tf-links .tf-link:hover{text-decoration:underline}.two-factor-step .tf-links .tf-link-muted{font-weight:500;color:#00000080}.two-factor-step .tf-links .tf-link-muted:hover{color:#000000bf;text-decoration:underline}
3`],encapsulation:2})}return i})();export{Mt as a};

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.