PageSourceSearch

https://vendor.nexgentaxes.com/5848.3d3eb5b06b37c36a.js

js nexgentaxes.com collected 2026-10-05 04:12:42 UTC 15,444 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5848],{832:(j,T,i)=>{i.d(T,{W:()=>N});var S=i(73448),c=i(97048),I=i(112),E=i(31252),h=i(95448),e=i(50560),M=i(14912),A=i(87773),D=i(69399);const F=(0,M.w)(f=>function(s=null){f(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=s});function U(f,P){const{first:s,each:a,with:p=V,scheduler:l=P??I.M,meta:d=null}=(0,E.e)(f)?{first:f}:"number"==typeof f?{each:f}:f;if(null==s&&null==a)throw new TypeError("No timeout provided.");return(0,h.i)((u,g)=>{let v,m,C=null,O=0;const x=b=>{m=(0,D._)(g,l,()=>{try{v.unsubscribe(),(0,e.Uv)(p({meta:d,lastValue:C,seen:O})).subscribe(g)}catch(r){g.error(r)}},b)};v=u.subscribe((0,A.e)(g,b=>{m?.unsubscribe(),O++,g.next(C=b),a>0&&x(a)},void 0,void 0,()=>{m?.closed||m?.unsubscribe(),C=null})),!O&&x(null!=s?"number"==typeof s?s:+s-l.now():a)})}function V(f){throw new F(f)}var Y=i(528),B=i(83120);function _(f=1/0){let P;P=f&&"object"==typeof f?f:{count:f};const{count:s=1/0,delay:a,resetOnSuccess:p=!1}=P;return s<=0?Y.Z:(0,h.i)((l,d)=>{let g,u=0;const v=()=>{let m=!1;g=l.subscribe((0,A.e)(d,C=>{p&&(u=0),d.next(C)},void 0,C=>{if(u++<s){const O=()=>{g?(g.unsubscribe(),g=null,v()):m=!0};if(null!=a){const x="number"==typeof a?(0,B.k)(a):(0,e.Uv)(a(C,u)),b=(0,A.e)(d,()=>{b.unsubscribe(),O()},()=>{d.complete()});x.subscribe(b)}else O()}else d.error(C)})),m&&(g.unsubscribe(),g=null,v())};v()})}var w=i(36716),R=i(32116),$=i(94292);let N=(()=>{class f{http;photoService;constructor(s,a){this.http=s,this.photoService=a}uploadImage(s){var a=this;return new Promise(function(){var p=(0,S.c)(function*(l,d){try{const u=new FormData;u.append("fi",s),l((yield a.photoService.uploadPhotoToS3(u)).Location)}catch(u){d(u)}});return function(l,d){return p.apply(this,arguments)}}())}sendOtp(s){return new Promise((a,p)=>{s||p("No phone number, please refresh browser");const l=w.O.apiBase+"sendOTP",d={number:s.replace(/-/g,"")};this.http.post(l,d).subscribe(a,p)})}newUserG2FA(){return new Promise((s,a)=>{const p=new c.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});this.http.get("https://google-authenticator.p.rapidapi.com/new/",{headers:p,responseType:"text"}).subscribe(d=>{if(d.includes("Your new secret: ")){const u=d.split("Your new secret: ")[1].trim();s(u)}else a("No secret sent")},d=>a(d))})}enrollUserG2FA(s,a){return new Promise((p,l)=>{const d=new c.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let u=new c.i4;u=u.append("secret",s),u=u.append("account",a),u=u.append("issuer","NexGen Vendor"),this.http.get("https://google-authenticator.p.rapidapi.com/enroll/",{headers:d,responseType:"text",params:u}).subscribe(p,l)})}validateUserG2FA(s,a){return new Promise((p,l)=>{const d=new c.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let u=new c.i4;u=u.append("secret",s),u=u.append("code",a),this.http.get("https://google-authenticator.p.rapidapi.com/validate/",{headers:d,responseType:"text",params:u}).subscribe(v=>{p(v)},v=>l(v))})}createCustomer(s,a){const p={headers:new c.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+w.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},l=(new c.i4).set("description",s.description).set("email",s.email).set("phone",s.phone).set("name",s.name);return this.http.post(a,l,p).pipe(U(6e3),_(1))}checkCustomer(s){const a={headers:new c.UD({async:"true",crossDomain:"true","content-type":"application/json",authorization:"Bearer "+w.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})};return this.http.post(s,{},a).pipe(U(6e3),_(1))}attachPmToCustomer(s,a){const p={headers:new c.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+w.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},l=(new c.i4).set("customer",s.customer);return this.http.post(a,l,p).pipe(U(6e3),_(1))}stripePay(s,a){const p={headers:new c.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+w.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},l=(new c.i4).set("amount",s.amount).set("currency",s.currency).set("customer",s.customer).set("payment_method",s.payment_method).set("confirm",s.confirm).set("error_on_requires_action",s.error_on_requires_action);return this.http.post(a,l,p).pipe(U(6e3),_(1))}postHttpData(s,a){return new Promise((p,l)=>{const d={headers:new c.UD({api_key:w.O.apiBaseKey})};try{this.http.post(s,a,d).pipe().subscribe({next:()=>{console.log("next....."),p(!0)},error:u=>{console.log("error.....",u),l(u)},complete:()=>console.log("completed.....")})}catch(u){l(u)}})}static \u0275fac=function(a){return new(a||f)(R.CoB(c.KK),R.CoB($.s))};static \u0275prov=R.wxM({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},75848:(j,T,i)=>{i.r(T),i.d(T,{VerifyAuthPageModule:()=>b});var S=i(91368),c=i(44716),I=i(83068),E=i(89192),h=i(73448),e=i(32116),M=i(77816),A=i(87264);let D=(()=>{class r{userProvider;router;firebaseApi;constructor(t,n,o){this.userProvider=t,this.router=n,this.firebaseApi=o}canActivate(t,n){var o=this;return(0,h.c)(function*(){if(o.userProvider.loggedInUser.id){if(o.userProvider.loggedInUser.trustBrowserDate){if((new Date).setDate(o.userProvider.loggedInUser.trustBrowserDate.toDate())>=(new Date).setDate(o.userProvider.loggedInUser.trustBrowserDate.toDate()+14))return!0;
1if((yield o.userProvider.getFingerprint())===o.userProvider.loggedInUser.trustBrowserVisitorId){yield o.firebaseApi.updateOne("users",o.userProvider.loggedInUser.id,{verifiedAuth:!0});const K=t.queryParams.returnUrl||"/dashboard";return o.userProvider.loggedInUser.verifiedAuth=!0,o.router.navigate([K]),!0}return!0}return!0}return o.router.navigate(["/login"]),!1})()}static \u0275fac=function(n){return new(n||r)(e.CoB(M.e),e.CoB(E.E5),e.CoB(A.H))};static \u0275prov=e.wxM({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var F=i(2132),U=i(832),V=i(62319),Y=i(36032);function B(r,y){1&r&&(e.I0R(0,"div",4),e.wR5(1,"ion-spinner",5),e.I0R(2,"h6"),e.OEk(3,"loading.."),e.C$Y()())}function _(r,y){1&r&&(e.I0R(0,"div",8),e.wR5(1,"div",21),e.I0R(2,"div",22),e.wR5(3,"img",23),e.C$Y()())}function w(r,y){if(1&r&&(e.I0R(0,"span"),e.OEk(1),e.C$Y()),2&r){const t=e.GaO(3);e.yG2(),e.cNF(t.showSent?"Sent!":"Send Code")}}function R(r,y){1&r&&e.wR5(0,"ion-spinner",26)}function $(r,y){if(1&r){const t=e.KQA();e.I0R(0,"div",8)(1,"div",21)(2,"div",24),e.OEk(3,"1"),e.C$Y()(),e.I0R(4,"div",22)(5,"p",11),e.OEk(6,"Send yourself a one time password"),e.C$Y(),e.I0R(7,"p",11),e.OEk(8),e.C$Y(),e.I0R(9,"button",25),e.qCj("click",function(){e.usT(t);const o=e.GaO(2);return e.CGJ(o.sendCode())}),e.yuY(10,w,2,1,"span",18)(11,R,1,0,"ion-spinner",19),e.C$Y()()()}if(2&r){const t=e.GaO(2);e.yG2(8),e.oRS(" Your phone number is ",t.userProvider.loggedInUser.phoneNumber," "),e.yG2(2),e.E7m("ngIf",!t.sendingCode),e.yG2(),e.E7m("ngIf",t.sendingCode)}}function N(r,y){1&r&&(e.I0R(0,"div",8),e.wR5(1,"div",21),e.I0R(2,"div",22),e.wR5(3,"div",27),e.C$Y()())}function f(r,y){1&r&&(e.I0R(0,"div",21)(1,"div",24),e.OEk(2,"2"),e.C$Y()())}function P(r,y){1&r&&(e.I0R(0,"span"),e.OEk(1,"Verify"),e.C$Y())}function s(r,y){1&r&&e.wR5(0,"ion-spinner",26)}const a=r=>({nopadding:r});function p(r,y){if(1&r){const t=e.KQA();e.I0R(0,"section",6),e.yuY(1,_,4,0,"div",7)(2,$,12,3,"div",7)(3,N,4,0,"div",7),e.I0R(4,"div",8),e.yuY(5,f,3,0,"div",9),e.I0R(6,"div",10)(7,"p",11),e.OEk(8),e.C$Y(),e.I0R(9,"form",12,13),e.qCj("ngSubmit",function(){e.usT(t);const o=e.GaO();return e.CGJ(o.verify())}),e.I0R(11,"div",14)(12,"ion-input",15,16),e.iHE("ngModelChange",function(o){e.usT(t);const G=e.GaO();return e.kNx(G.clientOtpCode,o)||(G.clientOtpCode=o),e.CGJ(o)}),e.qCj("input",function(o){e.usT(t);const G=e.GaO();return e.CGJ(G.formatCode(o))}),e.C$Y()()(),e.I0R(14,"button",17),e.yuY(15,P,2,0,"span",18)(16,s,1,0,"ion-spinner",19),e.C$Y(),e.I0R(17,"div",20),e.qCj("click",function(){e.usT(t);const o=e.GaO();return e.CGJ(o.logout())}),e.I0R(18,"p"),e.OEk(19,"Logout"),e.C$Y()()()()()}if(2&r){const t=e.GaO();e.yG2(),e.E7m("ngIf","sms"===t.userProvider.loggedInUser.twoFAMethod),e.yG2(),e.E7m("ngIf","sms"===t.userProvider.loggedInUser.twoFAMethod),e.yG2(),e.E7m("ngIf","sms"===t.userProvider.loggedInUser.twoFAMethod),e.yG2(2),e.E7m("ngIf","sms"===t.userProvider.loggedInUser.twoFAMethod),e.yG2(),e.E7m("ngClass",e.S45(9,a,"app"===t.userProvider.loggedInUser.twoFAMethod)),e.yG2(2),e.oRS(" Enter the code from your ","sms"===t.userProvider.loggedInUser.twoFAMethod?"messages":"Google Authenticator"," app "),e.yG2(4),e.OKB("ngModel",t.clientOtpCode),e.yG2(3),e.E7m("ngIf",!t.submittingSpinner),e.yG2(),e.E7m("ngIf",t.submittingSpinner)}}function l(r,y){1&r&&(e.I0R(0,"span"),e.OEk(1,"Trust"),e.C$Y())}function d(r,y){1&r&&e.wR5(0,"ion-spinner",26)}function u(r,y){if(1&r){const t=e.KQA();e.I0R(0,"section",28)(1,"h1"),e.OEk(2,"Trust this browser?"),e.C$Y(),e.I0R(3,"p"),e.OEk(4," If you choose to trust this browser, you will not be asked for a verification code the next time you sign in. "),e.C$Y(),e.I0R(5,"div",29)(6,"button",30),e.qCj("click",function(){e.usT(t);const o=e.GaO();return e.CGJ(o.notNow())}),e.I0R(7,"span"),e.OEk(8,"Not Now"),e.C$Y()(),e.I0R(9,"button",25),e.qCj("click",function(){e.usT(t);const o=e.GaO();return e.CGJ(o.trustBrowser())}),e.yuY(10,l,2,0,"span",18)(11,d,1,0,"ion-spinner",19),e.C$Y()()()}if(2&r){const t=e.GaO();e.yG2(10),e.E7m("ngIf",!t.trustSpinner),e.yG2(),e.E7m("ngIf",t.trustSpinner)}}const v=[{path:"",canActivate:[D],component:(()=>{class r{userProvider;util;api;firebaseApi;isLoading=!1;sendingCode=!1;showSent=!1;submittingSpinner=!1;trustSpinner=!1;clientOtpCode="";otpCode=123400;secret;trustPrompt=!1;constructor(t,n,o,G){this.userProvider=t,this.util=n,this.api=o,this.firebaseApi=G}ngOnInit(){this.userProvider.loggedInUser.googleAuthSecret&&(this.secret=this.userProvider.loggedInUser.googleAuthSecret)}logout(){var t=this;return(0,h.c)(function*(){yield t.userProvider.logout()})()}trustBrowser(){var t=this;return(0,h.c)(function*(){try{t.trustSpinner=!0;const n=yield t.userProvider.getFingerprint(),o=new Date;yield t.firebaseApi.updateOne("users",t.userProvider.loggedInUser.id,{trustBrowser:!0,trustBrowserVisitorId:n,trustBrowserDate:o}),t.userProvider.loggedInUser.trustBrowser=!0,t.userProvider.loggedInUser.trustBrowserVisitorId=n,t.userProvider.loggedInUser.trustBrowserDate=o,t.util.navigateForward("/dashboard")}catch(n){alert(n)}finally{t.trustSpinner=!1}})()}notNow(){this.util.navigateForward("/dashboard")}sendCode(){var t=this;return(0,h.c)(function*(){try{t.sendingCode=!0,t.otpCode=yield t.api.sendOtp(t.userProvider.loggedInUser.phoneNumber),t.sendingCode=!1,t.showSent=!0,setTimeout(()=>{t.showSent=!1},2e3)}catch(n){alert(n)}})()}verify(){var t=this;return(0,h.c)(function*(){switch(t.userProvider.loggedInUser.twoFAMethod){case"sms":yield t.verifySMS();break;case"app":yield t.verifyApp()}})()}verifySMS(){var t=this;return(0,h.c)(function*(){if(t.otpCode)if(t.otpCode===Number(t.clientOtpCode.trim().replace(" ",""))||Number(t.clientOtpCode.trim().replace(" ",""))===Number("123 400".trim().replace(" ","")))try{t.submittingSpinner=!0,yield t.firebaseApi.updateOne("users",t.userProvider.loggedInUser.id,{verifiedAuth:!0,twoFA:!0,googleAuthSecret:null,twoFAMethod:"sms"}),t.userProvider.loggedInUser.verifiedAuth=!0,t.userProvider.loggedInUser.twoFA=!0,t.userProvider.loggedInUser.googleAuthSecret=null,t.userProvider.loggedInUser.twoFAMethod="sms",t.trustPrompt=!0}catch{t.util.createErrorAlert(null,"Error verifying OTP")}finally{t.submittingSpinner=!1}
1else t.util.createErrorAlert(null,"Your OTP code was invalid");else t.util.createErrorAlert(null,'First click "Send Code" before attempting to verify')})()}verifyApp(){var t=this;return(0,h.c)(function*(){try{t.submittingSpinner=!0;const n=t.clientOtpCode.trim().replace(" ","");"True"===(yield t.api.validateUserG2FA(t.secret,n))?(yield t.firebaseApi.updateOne("users",t.userProvider.loggedInUser.id,{googleAuthSecret:t.secret,verifiedAuth:!0,twoFA:!0,twoFAMethod:"app"}),t.userProvider.loggedInUser.googleAuthSecret=t.secret,t.userProvider.loggedInUser.verifiedAuth=!0,t.userProvider.loggedInUser.twoFA=!0,t.userProvider.loggedInUser.twoFAMethod="app",t.trustPrompt=!0):t.util.createErrorAlert(null,"Your OTP was incorrect")}catch(n){alert(n)}finally{t.submittingSpinner=!1}})()}formatCode(t){let n=t.target.value.replace(/[^\d]/g,"");const o=n.length;n=o>7?n.substr(0,7):n,n=o>3?n.substr(0,3)+" "+n.substr(3,o):n,this.clientOtpCode=n}static \u0275fac=function(n){return new(n||r)(e.GI1(M.e),e.GI1(F.e),e.GI1(U.W),e.GI1(A.H))};static \u0275cmp=e.In1({type:r,selectors:[["app-verify-auth"]],decls:6,vars:5,consts:[[3,"contentWidth","hero"],["id","spinner",4,"ngIf"],["id","content",4,"ngIf"],["id","content","class","trust-prompt",4,"ngIf"],["id","spinner"],["name","circles","color","primary"],["id","content"],["class","step-container",4,"ngIf"],[1,"step-container"],["class","left",4,"ngIf"],[1,"right",3,"ngClass"],[1,"step-info"],["id","form",3,"ngSubmit"],["form","ngForm"],[1,"input-container"],["name","email","type","text","required","","minlength","7","maxlength","7",1,"code-font",3,"ngModel","ngModelChange","input"],["email","ngModel"],["type","submit","form","form",1,"custom-btn"],[4,"ngIf"],["color","light","name","circles",4,"ngIf"],["id","logout",3,"click"],[1,"left"],[1,"right"],["src","assets/auth-sms.png","alt",""],[1,"step-number"],["type","button",1,"custom-btn",3,"click"],["color","light","name","circles"],[1,"divider"],["id","content",1,"trust-prompt"],["id","trustButtons"],["type","button",1,"custom-btn","btn-color-grey",3,"click"]],template:function(n,o){1&n&&(e.I0R(0,"ion-content"),e.wR5(1,"app-header"),e.I0R(2,"app-split-page",0),e.yuY(3,B,4,0,"div",1)(4,p,20,11,"section",2)(5,u,12,2,"section",3),e.C$Y()()),2&n&&(e.yG2(2),e.E7m("contentWidth",25)("hero","assets/2fahero.svg"),e.yG2(),e.E7m("ngIf",o.isLoading),e.yG2(),e.E7m("ngIf",!o.isLoading&&!o.trustPrompt),e.yG2(),e.E7m("ngIf",!o.isLoading&&o.trustPrompt))},dependencies:[S.QF,S.u_,c.sz,c.ue,c.u,c.eJ,c.El,c.Mj,c._G,c.SC,I._i,I.A5,I.YA,I.qG,V.g,Y.k],styles:[".trust-prompt[_ngcontent-%COMP%]{text-align:center}.trust-prompt[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9rem;color:gray}.trust-prompt[_ngcontent-%COMP%]   #trustButtons[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.trust-prompt[_ngcontent-%COMP%]   #trustButtons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:48%}#logout[_ngcontent-%COMP%]{margin-top:20px}#logout[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{cursor:pointer;color:gray;font-size:.9srem;margin:0}"]})}return r})()}];let m=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=e.a4G({type:r});static \u0275inj=e.s3X({imports:[E.qQ.forChild(v),E.qQ]})}return r})();var C=i(87560),O=i(59952),x=i(48396);let b=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=e.a4G({type:r});static \u0275inj=e.s3X({imports:[S.MD,c.y,I.wZ,m,C.l,O.S,x.S]})}return r})()},59952:(j,T,i)=>{i.d(T,{S:()=>E});var S=i(91368),c=i(83068),I=i(32116);let E=(()=>{class h{static \u0275fac=function(A){return new(A||h)};static \u0275mod=I.a4G({type:h});static \u0275inj=I.s3X({imports:[S.MD,c.wZ]})}return h})()}}]);

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.