PageSourceSearch

https://app.pac-hub.com/667.4b56fd6081353fedd282.js

js pac-hub.com collected 2026-09-24 14:17:42 UTC 11,321 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkuniversal_demo=self.webpackChunkuniversal_demo||[]).push([[667],{14667:function(A,O,l){l.r(O),l.d(O,{PaymentProcessingModule:function(){return N}});var U=l(61511),b=l(43548),d=l(64762),f=l(90968),r=l(37531),i=l(31572),E=l(42590),M=l(5724),R=l(68544),I=l(14083),w=l(78697),D=l(75544),T=[{path:"",component:function(){function o(n,t,v,u,h,p,a,m,P){var e=this;this._authService=n,this._activatedRoute=t,this._utilService=v,this.router=u,this._sponsorService=h,this.location=p,this._nilSponsorPaymentService=a,this._collectiveService=m,this._collectiveDonationService=P,this.upgradeSubscription=function(s,c){e._authService.upgradeSubscripion({subID:s,sessionID:c}).subscribe(function(S){S&&e._utilService.showSuccessMessage(S.Message),e._authService.logOut(!1)},function(S){e.router.navigate([e.navigateUrl]),e.router.navigate(["/"+e.navigateUrl])})},this.expiredSubscriptionRenew=function(s){e._authService.renewSubscriptionExpired({sessionID:s}).subscribe({next:function(g){g&&e._utilService.showSuccessMessage(g.Message)},error:function(){e._utilService.showErrorMessage("something went wrong while renew subscription plan")},complete:function(){e._authService.logOut(!1)}})},this.renewSubscription=function(s){e._authService.renewSubscriptionPlan({sessionID:s}).subscribe(function(g){g?e._utilService.showSuccessMessage(g.Message):e._utilService.showErrorMessage("something went wrong while renew subscription plan"),e._authService.logOut()},function(g){e._authService.logOut(),e._utilService.showErrorMessage("something went wrong while renew subscription plan")})},this.sponsorOffer=function(s){e._sponsorService.sendAhleteOffer(s).subscribe({next:function(c){return(0,d.mG)(e,void 0,void 0,function(){return(0,d.Jh)(this,function(g){return this.router.navigate([this.navigateUrl]),this._utilService.showSuccessMessage(c.Message),[2]})})},error:function(c){e.router.navigate([e.navigateUrl])},complete:function(){sessionStorage.clear()}})},this.proSponsorOffer=function(s){e._nilSponsorPaymentService.proSponsorOffer(s).subscribe({next:function(c){return(0,d.mG)(e,void 0,void 0,function(){return(0,d.Jh)(this,function(g){return this._utilService.showSuccessMessage(c.Message),[2]})})},error:function(c){e._authService.logOut(!1)},complete:function(){e._authService.logOut(!1)}})},this.collectiveDonationOffer=function(s){e._collectiveDonationService.collectiveDonationRequest(s).subscribe({next:function(c){e.router.navigateByUrl(e.navigateUrl),e._utilService.showSuccessMessage(c.Message)},error:function(){e.router.navigateByUrl(e.navigateUrl)},complete:function(){sessionStorage.clear()}})},history.pushState(null,null,window.location.href),this.location.onPopState(function(){history.pushState(null,null,window.location.href)})}return o.prototype.onBeforeUnload=function(n){return alert("on before unload"),!1},o.prototype.ngOnDestroy=function(){window.removeEventListener("beforeunload",this.beforeUnloadHandler)},o.prototype.ngOnInit=function(){return(0,d.mG)(this,void 0,void 0,function(){var n,t=this;return(0,d.Jh)(this,function(v){switch(v.label){case 0:return this.preventBackNavigation(),window.addEventListener("beforeunload",this.beforeUnloadHandler),this.navigateUrl=sessionStorage.getItem(r.dR.NAVIGATE_TO_URL),[4,this._utilService.getSessionStorage(r.dR.DONATION_PAYMENT)];case 1:return n=v.sent(),this._activatedRoute.queryParams.subscribe(function(u){u.session_id&&(n?t.getDonationDataUsingSessionID(u.session_id):t.getDataUsingSessionID(u.session_id))}),[2]}})})},o.prototype.preventBackNavigation=function(){this.location.forward()},o.prototype.getDonationDataUsingSessionID=function(n){var t=this,v=this._collectiveService.getDonationStatusUsingSessionID(n).subscribe(function(u){if(u.data){if("pending"==u.data[0].status)return void t.getDataUsingSessionID(n);if("succeeded"===u.data[0].status||"failed"===u.data[0].status){var h=t._utilService.getSessionStorage(r.dR.USER_ID);t._collectiveService.collectiveUpdateStatus({userID:h,sessionId:n,status:u.data[0].status}).subscribe(function(a){return(0,d.mG)(t,void 0,void 0,function(){return(0,d.Jh)(this,function(m){return v.unsubscribe(),200===a.statusCode||200===a.StatusCode?"failed"===u.data[0].status?(this._utilService.showErrorMessage("please try again","Payment Failed"),this.router.navigate([this.navigateUrl])):"succeeded"===u.data[0].status?(this._utilService.setSessionStorage(r.dR.STRIPE_SESSION_RESPONSE,u),this.router.navigate([this.navigateUrl])):(this.router.navigate([this.navigateUrl]),this._utilService.showErrorMessage("please try again","Something Went Wrong")):this.router.navigate([this.navigateUrl]),[2]})})},function(a){sessionStorage.clear(),t.router.navigate([t.navigateUrl?t.navigateUrl:""])})}}})},o.prototype.getDataUsingSessionID=function(n){var t=this,v=this._utilService.getSessionStorage(r.dR.PAYMENT_TYPE);if(this._utilService.getSessionStorage(r.dR.SUBSCRIPTION_TYPE))var h=this._authService.getSubscriptionStatusUsingSessionID(n).subscribe(function(a){if
1(200==a.status)if(a.data){if("pending"==a.data)return void t.getDataUsingSessionID(n);if("succeeded"===a.data.status||"failed"===a.data.status){var m=t._utilService.getSessionStorage(r.dR.USER_ID),P=t._utilService.getSessionStorage(r.dR.IS_FIRST_TIME_PAYMENT);t._authService.updatePaymentStatus({userID:m,sessionId:n,status:a.data.status,firstTimePayment:P}).subscribe(function(s){return(0,d.mG)(t,void 0,void 0,function(){return(0,d.Jh)(this,function(c){return h.unsubscribe(),200===s.statusCode||200===s.StatusCode?(this._utilService.setLocalStorage(r.dR.STRIPE_SESSION_RESPONSE,a),"failed"===a.data.status?(this._utilService.showErrorMessage("please try again","Payment Failed"),this.router.navigate([this.navigateUrl])):"succeeded"===a.data.status?this.router.navigate(["/registration"]):(this.router.navigate([this.navigateUrl]),this._utilService.showErrorMessage("please try again","Something Went Wrong"))):this.router.navigate([this.navigateUrl]),[2]})})},function(s){t.router.navigate([t.navigateUrl?t.navigateUrl:""])})}}else 200===a.status&&(t.router.navigate([t.navigateUrl]),t._utilService.showErrorMessage(a.message))});else var p=this._authService.getStatusUsingSessionID(n).subscribe(function(a){if(a.data){if("pending"==a.data[0].status)return void t.getDataUsingSessionID(n);if("succeeded"===a.data[0].status||"failed"===a.data[0].status){var m=t._utilService.getSessionStorage(r.dR.USER_ID),P=t._utilService.getSessionStorage(r.dR.IS_FIRST_TIME_PAYMENT),e={userID:m,sessionId:n,status:a.data[0].status,firstTimePayment:P};v==(f.O5.sponsorOffer||f.O5.proSponsorOffer)&&delete e.firstTimePayment,t._authService.updatePaymentStatus(e).subscribe(function(s){return(0,d.mG)(t,void 0,void 0,function(){var c,g,S,_,y;return(0,d.Jh)(this,function(F){if(p.unsubscribe(),200===s.statusCode||200===s.StatusCode)if(this._utilService.setLocalStorage(r.dR.STRIPE_SESSION_RESPONSE,a),"failed"===a.data[0].status)this._utilService.showErrorMessage("please try again","Payment Failed"),this.router.navigate([this.navigateUrl]);else if("succeeded"===a.data[0].status)switch(v){case f.O5.registration:this.router.navigate(["/registration"]);break;case f.O5.expiredSubscriptionRenew:this.expiredSubscriptionRenew(n);break;case f.O5.subscriptionRenew:this.renewSubscription(n);break;case f.O5.upgradeSubscripion:c=this._utilService.getSessionStorage(r.dR.SUBSCRIPTION_ID),this.upgradeSubscription(c,n);break;case f.O5.sponsorOffer:(g=this._utilService.getSessionStorage(r.dR.OFFER_MAPPING_PERM)).transactionID=n,this.sponsorOffer(g);break;case f.O5.proSponsorOffer:(S=this._utilService.getSessionStorage(r.dR.OFFER_MAPPING_PERM)).transactionID=n,this.proSponsorOffer(S);break;case f.O5.COLLECTIVE_DONATION:(_=this._utilService.getSessionStorage(r.dR.COLLECTIVE_DONATION_PERM)).transactionID=n,this.collectiveDonationOffer(_);break;case f.O5.COLLECTIVE_OFFER:(y=this._utilService.getSessionStorage(r.dR.COLLECTIVE_OFFER_PERM)).transactionID=n,this.collectiveDonationOffer(y)}else this.router.navigate([this.navigateUrl]),this._utilService.showErrorMessage("please try again","Something Went Wrong");else this.router.navigate([this.navigateUrl]);return[2]})})},function(s){t.router.navigate([t.navigateUrl?t.navigateUrl:""])})}}else 200===a.status&&(t.paymentSubscription.unsubscribe(),t.router.navigate([t.navigateUrl]),t._utilService.showErrorMessage(a.message))})},o.prototype.beforeUnloadHandler=function(n){n.preventDefault(),n.returnValue="Are you sure you want to leave?"},o.\u0275fac=function(t){return new(t||o)(i.Y36(E.e),i.Y36(b.gz),i.Y36(M.f),i.Y36(b.F0),i.Y36(R.c),i.Y36(U.S$),i.Y36(I._),i.Y36(w.b),i.Y36(D.U))},o.\u0275cmp=i.Xpm({type:o,selectors:[["app-payment-processing"]],hostBindings:function(t,v){1&t&&i.NdJ("beforeunload",function(h){return v.onBeforeUnload(h)},!1,i.Jf7)},decls:12,vars:0,consts:[[1,"container"],[1,"loader"],[1,"loader--dot"],[1,"loader--text"],[1,"loading_text_payment"]],template:function(t,v){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i._UZ(2,"div",2),i._UZ(3,"div",2),i._UZ(4,"div",2),i._UZ(5,"div",2),i._UZ(6,"div",2),i._UZ(7,"div",2),i._UZ(8,"div",3),i.qZA(),i.TgZ(9,"div",4),i.TgZ(10,"span"),i._uU(11,"Payment is Processing. Please do not refresh or close browser"),i.qZA(),i.qZA(),i.qZA())},styles:['.container[_ngcontent-%COMP%]{height:100vh;width:100vw;font-family:Helvetica}.loader[_ngcontent-%COMP%]{height:20px;width:250px;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.loader--dot[_ngcontent-%COMP%]{animation-name:loader;animation-timing-function:ease-in-out;animation-duration:3s;animation-iteration-count:infinite;height:20px;width:20px;border-radius:100%;background-color:#000;position:absolute;border:2px solid white}.loader--dot[_ngcontent-%COMP%]:first-child{background-color:#8cc759;animation-delay:.5s}.loader--dot[_ngcontent-%COMP%]:nth-child(2){background-color:#8c6daf;animation-delay:.4s}.loader--dot[_ngcontent-%COMP%]:nth-child(3){background-color:#ef5d74;animation-delay:.3s}.loader--dot[_ngcontent-%COMP%]:nth-child(4){background-color:#f9a74b;animation-delay:.2s}.loader--dot[_ngcontent-%COMP%]:nth-child(5){background-color:#60beeb;animation-delay:.1s}.loader--dot[_ngcontent-%COMP%]:nth-child(6){background-color:#fbef5a;animation-delay:0s}.loader--text[_ngcontent-%COMP%]{position:absolute;top:200%;left:0;right:0;width:4rem;margin:auto}.loader--text[_ngcontent-%COMP%]:after{content:"Redirecting";font-weight:bold;animation-name:loading-text;animation-duration:3s;animation-iteration-count:infinite}@keyframes loader{15%{transform:translate(0)}45%{transform:translate(230px)}65%{transform:translate(230px)}95%{transform:translate(0)}}@keyframes loading-text{0%{content:"Redirecting."}25%{content:"Redirecting.."}50%{content:"Redirecting..."}75%{content:"Redirecting...."}}.loading_text_payment[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;font-size:larger;height:100vh;justify-content:center;align-items:center;margin-top:4.5rem}']}),o}(),data:{meta:{title:"PAC-Hub | Payment-Processing",override:!0}}}],x=function(){function o(){}return o.\u0275fac=function(t){return new(t||o)}
1,o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[[b.Bz.forChild(T)],b.Bz]}),o}(),N=function(){function o(){}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({providers:[I._],imports:[[U.ez,x]]}),o}()}}]);

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.