PageSourceSearch

https://vendor.nexgentaxes.com/2183.e0eb2c5d7246787d.js

js nexgentaxes.com collected 2026-10-05 04:11:26 UTC 9,090 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2183],{832:(R,I,r)=>{r.d(I,{W:()=>F});var P=r(73448),u=r(97048),v=r(112),S=r(31252),f=r(95448),i=r(50560),D=r(14912),g=r(87773),E=r(69399);const T=(0,D.w)(l=>function(n=null){l(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function A(l,h){const{first:n,each:s,with:o=x,scheduler:c=h??v.M,meta:t=null}=(0,S.e)(l)?{first:l}:"number"==typeof l?{each:l}:l;if(null==n&&null==s)throw new TypeError("No timeout provided.");return(0,f.i)((e,a)=>{let p,d,m=null,O=0;const b=C=>{d=(0,E._)(a,c,()=>{try{p.unsubscribe(),(0,i.Uv)(o({meta:t,lastValue:m,seen:O})).subscribe(a)}catch(B){a.error(B)}},C)};p=e.subscribe((0,g.e)(a,C=>{d?.unsubscribe(),O++,a.next(m=C),s>0&&b(s)},void 0,void 0,()=>{d?.closed||d?.unsubscribe(),m=null})),!O&&b(null!=n?"number"==typeof n?n:+n-c.now():s)})}function x(l){throw new T(l)}var G=r(528),M=r(83120);function w(l=1/0){let h;h=l&&"object"==typeof l?l:{count:l};const{count:n=1/0,delay:s,resetOnSuccess:o=!1}=h;return n<=0?G.Z:(0,f.i)((c,t)=>{let a,e=0;const p=()=>{let d=!1;a=c.subscribe((0,g.e)(t,m=>{o&&(e=0),t.next(m)},void 0,m=>{if(e++<n){const O=()=>{a?(a.unsubscribe(),a=null,p()):d=!0};if(null!=s){const b="number"==typeof s?(0,M.k)(s):(0,i.Uv)(s(m,e)),C=(0,g.e)(t,()=>{C.unsubscribe(),O()},()=>{t.complete()});b.subscribe(C)}else O()}else t.error(m)})),d&&(a.unsubscribe(),a=null,p())};p()})}var y=r(36716),U=r(32116),L=r(94292);let F=(()=>{class l{http;photoService;constructor(n,s){this.http=n,this.photoService=s}uploadImage(n){var s=this;return new Promise(function(){var o=(0,P.c)(function*(c,t){try{const e=new FormData;e.append("fi",n),c((yield s.photoService.uploadPhotoToS3(e)).Location)}catch(e){t(e)}});return function(c,t){return o.apply(this,arguments)}}())}sendOtp(n){return new Promise((s,o)=>{n||o("No phone number, please refresh browser");const c=y.O.apiBase+"sendOTP",t={number:n.replace(/-/g,"")};this.http.post(c,t).subscribe(s,o)})}newUserG2FA(){return new Promise((n,s)=>{const o=new u.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});this.http.get("https://google-authenticator.p.rapidapi.com/new/",{headers:o,responseType:"text"}).subscribe(t=>{if(t.includes("Your new secret: ")){const e=t.split("Your new secret: ")[1].trim();n(e)}else s("No secret sent")},t=>s(t))})}enrollUserG2FA(n,s){return new Promise((o,c)=>{const t=new u.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let e=new u.i4;e=e.append("secret",n),e=e.append("account",s),e=e.append("issuer","NexGen Vendor"),this.http.get("https://google-authenticator.p.rapidapi.com/enroll/",{headers:t,responseType:"text",params:e}).subscribe(o,c)})}validateUserG2FA(n,s){return new Promise((o,c)=>{const t=new u.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let e=new u.i4;e=e.append("secret",n),e=e.append("code",s),this.http.get("https://google-authenticator.p.rapidapi.com/validate/",{headers:t,responseType:"text",params:e}).subscribe(p=>{o(p)},p=>c(p))})}createCustomer(n,s){const o={headers:new u.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+y.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},c=(new u.i4).set("description",n.description).set("email",n.email).set("phone",n.phone).set("name",n.name);return this.http.post(s,c,o).pipe(A(6e3),w(1))}checkCustomer(n){const s={headers:new u.UD({async:"true",crossDomain:"true","content-type":"application/json",authorization:"Bearer "+y.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})};return this.http.post(n,{},s).pipe(A(6e3),w(1))}attachPmToCustomer(n,s){const o={headers:new u.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+y.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},c=(new u.i4).set("customer",n.customer);return this.http.post(s,c,o).pipe(A(6e3),w(1))}stripePay(n,s){const o={headers:new u.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+y.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},c=(new u.i4).set("amount",n.amount).set("currency",n.currency).set("customer",n.customer).set("payment_method",n.payment_method).set("confirm",n.confirm).set("error_on_requires_action",n.error_on_requires_action);return this.http.post(s,c,o).pipe(A(6e3),w(1))}postHttpData(n,s){return new Promise((o,c)=>{const t={headers:new u.UD({api_key:y.O.apiBaseKey})};try{this.http.post(n,s,t).pipe().subscribe({next:()=>{console.log("next....."),o(!0)},error:e=>{console.log("error.....",e),c(e)},complete:()=>console.log("completed.....")})}catch(e){c(e)}})}static \u0275fac=function(s){return new(s||l)(U.CoB(u.KK),U.CoB(L.s))};static \u0275prov=U.wxM({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},79008:(R,I,r)=>
1{r.r(I),r.d(I,{StripeInfoPageModule:()=>s});var P=r(91368),u=r(44716),v=r(83068),S=r(89192),f=r(73448),i=r(32116),D=r(77816),g=r(2132),E=r(87264),T=r(94984),A=r(62319),x=r(54516);function G(o,c){1&o&&(i.I0R(0,"div",6)(1,"p"),i.OEk(2,"You started onboarding but did not complete it."),i.C$Y()())}function M(o,c){if(1&o&&(i.I0R(0,"div",4),i.yuY(1,G,3,0,"div",5),i.wR5(2,"app-stripe-pay"),i.C$Y()),2&o){const t=i.GaO();i.yG2(),i.E7m("ngIf",t.accountInfo&&!(null!=t.accountInfo&&null!=t.accountInfo.account&&t.accountInfo.account.details_submitted))}}function w(o,c){1&o&&(i.I0R(0,"div",7)(1,"div",8),i.wR5(2,"div")(3,"div")(4,"div"),i.C$Y()())}const U=[{path:"",component:(()=>{class o{userProvider;util;firebaseApi;stripe;submittingSpinner=!1;accountInfo;pageLoading=!1;loadedOnce=!1;constructor(t,e,a,p){this.userProvider=t,this.util=e,this.firebaseApi=a,this.stripe=p}ionViewWillEnter(){}retreiveStripeAccount(){var t=this;return(0,f.c)(function*(){try{t.loadedOnce||(t.pageLoading=!0),t.userProvider.loggedInUser.stripeAccountId&&(t.accountInfo=yield t.stripe.stripeRetreive(t.userProvider.loggedInUser.stripeAccountId))}catch{t.util.createErrorAlert(null,"Error loading stripe info")}finally{t.pageLoading=!1}})()}stripeLogin(){var t=this;return(0,f.c)(function*(){try{t.submittingSpinner=!0;const{loginLink:e}=yield t.stripe.stripeCreateLoginLink(t.userProvider.loggedInUser.stripeAccountId);t.openUrl(e)}catch(e){alert(e)}finally{t.submittingSpinner=!1}})()}stripeAccount(){var t=this;return(0,f.c)(function*(){try{if(t.submittingSpinner=!0,!t.userProvider.loggedInUser.stripeAccountId){const{accountId:a}=yield t.stripe.stripeCreateAccount();yield t.firebaseApi.updateOne("users",t.userProvider.loggedInUser.id,{stripeAccountId:a}),t.userProvider.loggedInUser.stripeAccountId=a}const{accountLink:e}=yield t.stripe.stripeCreateAccountLink(t.userProvider.loggedInUser.stripeAccountId);t.connectAlert(e)}catch(e){alert(e)}finally{t.submittingSpinner=!1}})()}connectAlert(t){var e=this;return(0,f.c)(function*(){var p;(yield e.util.createAlert("Connect to Stripe?",!0,"Click accept to complete the Stripe onboarding process.",{text:"Cancel",handler:(p=(0,f.c)(function*(){}),function(){return p.apply(this,arguments)})},{text:"Accept",handler:function(){var p=(0,f.c)(function*(){e.openUrl(t)});return function(){return p.apply(this,arguments)}}()})).present()})()}openUrl(t){let e="";/^http[s]?:\/\//.test(t)||(e+="http://"),e+=t,window.open(e,"_blank")}static \u0275fac=function(e){return new(e||o)(i.GI1(D.e),i.GI1(g.e),i.GI1(E.H),i.GI1(T.S))};static \u0275cmp=i.In1({type:o,selectors:[["app-stripe-info"]],decls:5,vars:5,consts:[[1,"app-container"],[3,"contentWidth","hero","headerText"],["class","not-loading",4,"ngIf"],["class","loading",4,"ngIf"],[1,"not-loading"],["id","mainContent",4,"ngIf"],["id","mainContent"],[1,"loading"],[1,"lds-facebook","app"]],template:function(e,a){1&e&&(i.I0R(0,"i
1on-content")(1,"div",0)(2,"app-split-page",1),i.yuY(3,M,3,1,"div",2)(4,w,5,0,"div",3),i.C$Y()()()),2&e&&(i.yG2(2),i.E7m("contentWidth",75)("hero","assets/stripehero.svg")("headerText",null!=a.accountInfo&&null!=a.accountInfo.account&&a.accountInfo.account.details_submitted?"Payment method Added!":"Payment method..."),i.yG2(),i.E7m("ngIf",!a.pageLoading),i.yG2(),i.E7m("ngIf",a.pageLoading))},dependencies:[P.u_,v._i,A.g,x.q],styles:["#mainContent[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9rem;color:gray;text-align:center}"]})}return o})()}];let L=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=i.a4G({type:o});static \u0275inj=i.s3X({imports:[S.qQ.forChild(U),S.qQ]})}return o})();var F=r(48396),l=r(59952),h=r(87560),n=r(59930);let s=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=i.a4G({type:o});static \u0275inj=i.s3X({imports:[P.MD,u.y,u.sl,v.wZ,L,F.S,l.S,h.l,n.o]})}return o})()},59952:(R,I,r)=>{r.d(I,{S:()=>S});var P=r(91368),u=r(83068),v=r(32116);let S=(()=>{class f{static \u0275fac=function(g){return new(g||f)};static \u0275mod=v.a4G({type:f});static \u0275inj=v.s3X({imports:[P.MD,u.wZ]})}return f})()}}]);

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.