PageSourceSearch

https://quackr.io/chunk-4CE3NNKA.js

js quackr.io collected 2026-09-24 10:15:30 UTC 5,795 bytes, 2 lines download raw bytes

1import{c as k}from"./chunk-VVDQOQ4G.js";import"./chunk-QEIZ7MRQ.js";import"./chunk-6IQZSIGN.js";import"./chunk-KVTX256F.js";import"./chunk-Z42KMUZT.js";import"./chunk-W6WPX4I6.js";import{c as P,e as M,f as _}from"./chunk-I42TWWPX.js";import{a as w}from"./chunk-476GAI4C.js";import{a as S}from"./chunk-5EMM2MFM.js";import{g as y,z as C}from"./chunk-TRANRIVZ.js";import{Ab as f,Dc as x,Ec as v,Fb as u,Gb as e,Hb as i,Ib as d,Xa as a,bc as h,eb as s,ga as c,ha as m,jb as g,nc as l,pc as b,yb as p}from"./chunk-3DJD6KKF.js";import"./chunk-K6BGTWCE.js";var E=t=>({"is-active":t}),I=()=>["/dashboard"];function L(t,O){if(t&1&&(e(0,"div",6),c(),e(1,"svg",8),d(2,"path",9),i(),m(),e(3,"span",10),l(4,"Error"),i(),e(5,"div"),l(6),i()()),t&2){let o=h();a(6),b(" ",o.rejectedMessage," ")}}function H(t,O){t&1&&(e(0,"div",11)(1,"span",12),c(),e(2,"svg",13),d(3,"circle",14),i(),e(4,"svg",15),d(5,"path",16),i()()(),m(),e(6,"h1",17),l(7,"Thank you, your payment has been processed."),i(),e(8,"h3",18),l(9,"Your balance has been automatically updated"),i(),e(10,"a",19),l(11," Go to Dashboard"),i()),t&2&&(a(10),u("routerLink",x(1,I)))}var Z=(()=>{class t{constructor(o,n,r,j,T){this.authService=o,this.http=n,this.seoService=r,this.router=j,this.activatedRoute=T,this.processing=!0,this.rejectedMessage=null}ngOnInit(){this.activatedRoute.queryParams.subscribe(o=>{o&&o.id?(this.processing=!0,this.http.post(`${w.api}stripe-payment`,{id:o.id}).subscribe(n=>{n.success||(this.rejectedMessage=n.error),this.processing=!1},n=>{this.processing=!1,this.rejectedMessage="Sorry there was an error processing your payment. Please contact us for further assistance."})):this.router.navigate(["/dashboard"])}),this.seoService.generateTags({title:"Top Up Successful"})}static{this.\u0275fac=function(n){return new(n||t)(s(k),s(C),s(S),s(M),s(P))}}static{this.\u0275cmp=g({type:t,selectors:[["app-top-up-success"]],decls:10,vars:5,consts:[[1,"md:h-screen","py-36","flex","items-center","bg-gradient-to-br","to-yellow-600/20","via-sky-600/20","from-blue-600/20"],[1,"absolute","inset-0"],[1,"container","relative"],[1,"flex","justify-center"],[1,"w-full","py-16","m-auto","px-6","bg-white","dark:bg-slate-900","shadow-md","dark:shadow-gray-800","rounded-md"],[1,"text-center"],["role","alert",1,"flex","items-center","p-4","mb-4","text-sm","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-gray-800","dark:text-red-400","dark:border-red-800"],["data-text","Processing payment, please do not refresh the page.",1,"loaderPayment","loaderPayment-default",3,"ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"inline-block","mb-6"],[1,"relative","inline-block"],["fill","currentColor","viewBox","0 0 100 100",1,"w-24","h-24","text-green-500"],["cx","50","cy","50","r","50"],["fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-white","absolute","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"text-3xl","font-bold","mb-4"],[1,"text-xl","mb-4"],[1,"py-2","px-5","inline-block","font-semibold","tracking-wide","border","align-middle","duration-500","text-base","text-center","bg-blue-600","hover:bg-blue-700","border-blue-600","hover:border-blue-700","text-white","rounded-md",3,"routerLink"]],template:function(n,r){n&1&&(e(0,"section",0),d(1,"div",1),e(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",3)(6,"div",5),p(7,L,7,1,"div",6),p(8,H,12,2),i()()()()()(),d(9,"div",7)),n&2&&(a(7),f(r.rejectedMessage?7:-1),a(),f(!r.processing&&!r.rejectedMessage?8:-1),a(),u("ngClass",v(3,E,r.processing)))},dependencies:[y,_],styles:['.loaderPayment[_ngcontent-%COMP%]{color:#fff;position:fixed;box-sizing:border-box;left:-9999px;top:-9999px;width:0;height:0;overflow:hidden;z-index:999999}.loaderPayment[_ngcontent-%COMP%]:after, .loaderPayment[_ngcontent-%COMP%]:before{box-sizing:border-box;display:none}.loaderPayment.is-active[_ngcontent-%COMP%]{background-color:#000000d9;width:100%;height:100%;left:0;top:0}.loaderPayment.is-active[_ngcontent-%COMP%]:after, .loaderPayment.is-active[_ngcontent-%COMP%]:before{display:block}@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_blink{0%{opacity:.5}to{opacity:1}}.loaderPayment[data-text][_ngcontent-%COMP%]:before{position:fixed;left:0;top:50%;color:currentColor;font-family:Helvetica,Arial,sans-serif;text-align:center;width:100%;font-size:14px}.loaderPayment[data-text=""][_ngcontent-%COMP%]:before{content:"Loading"}.loaderPayment[data-text][_ngcontent-%COMP%]:not([data-text=""]):before{content:attr(data-text)}.loaderPayment[data-text][data-blink][_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_blink 1s linear infinite alternate}.loaderPayment-default[data-text][_ngcontent-%COMP%]:before{top:calc(50% - 63px)}.loaderPayment-default[_ngcontent-%COMP%]:after{content:"";position:fixed;width:48px;height:48px;border:8px solid #fff;border-left-color:transparent;border-radius:50%;top:calc(50% - 24px);left:calc(50% - 24px);animation:_ngcontent-%COMP%_rotation 1s linear infinite}.loaderPayment-default[data-half][_ngcontent-%COMP%]:after{border-right-color:transparent}.loaderPayment-default[data-inverse][_ngcontent-%COMP%]:after{animation-direction:reverse}']})}}return t})();export{Z as TopUpSuccessComponent};
2/**i18n:ac22cbbecc24fecb8533e2037bf4912549a4c936e48a3c5f87e9a7b789f57b42*/

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.