1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5996],{832:(Z,O,n)=>{n.d(O,{W:()=>X});var v=n(73448),g=n(97048),E=n(112),C=n(31252),y=n(95448),d=n(50560),P=n(14912),U=n(87773),j=n(69399);const R=(0,P.w)(h=>function(i=null){h(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=i});function x(h,p){const{first:i,each:r,with:l=F,scheduler:a=p??E.M,meta:u=null}=(0,C.e)(h)?{first:h}:"number"==typeof h?{each:h}:h;if(null==i&&null==r)throw new TypeError("No timeout provided.");return(0,y.i)((c,S)=>{let w,T,I=null,A=0;const G=B=>{T=(0,j._)(S,a,()=>{try{w.unsubscribe(),(0,d.Uv)(l({meta:u,lastValue:I,seen:A})).subscribe(S)}catch($){S.error($)}},B)};w=c.subscribe((0,U.e)(S,B=>{T?.unsubscribe(),A++,S.next(I=B),r>0&&G(r)},void 0,void 0,()=>{T?.closed||T?.unsubscribe(),I=null})),!A&&G(null!=i?"number"==typeof i?i:+i-a.now():r)})}function F(h){throw new R(h)}var L=n(528),Y=n(83120);function H(h=1/0){let p;p=h&&"object"==typeof h?h:{count:h};const{count:i=1/0,delay:r,resetOnSuccess:l=!1}=p;return i<=0?L.Z:(0,y.i)((a,u)=>{let S,c=0;const w=()=>{let T=!1;S=a.subscribe((0,U.e)(u,I=>{l&&(c=0),u.next(I)},void 0,I=>{if(c++<i){const A=()=>{S?(S.unsubscribe(),S=null,w()):T=!0};if(null!=r){const G="number"==typeof r?(0,Y.k)(r):(0,d.Uv)(r(I,c)),B=(0,U.e)(u,()=>{B.unsubscribe(),A()},()=>{u.complete()});G.subscribe(B)}else A()}else u.error(I)})),T&&(S.unsubscribe(),S=null,w())};w()})}var M=n(36716),b=n(32116),z=n(94292);let X=(()=>{class h{http;photoService;constructor(i,r){this.http=i,this.photoService=r}uploadImage(i){var r=this;return new Promise(function(){var l=(0,v.c)(function*(a,u){try{const c=new FormData;c.append("fi",i),a((yield r.photoService.uploadPhotoToS3(c)).Location)}catch(c){u(c)}});return function(a,u){return l.apply(this,arguments)}}())}sendOtp(i){return new Promise((r,l)=>{i||l("No phone number, please refresh browser");const a=M.O.apiBase+"sendOTP",u={number:i.replace(/-/g,"")};this.http.post(a,u).subscribe(r,l)})}newUserG2FA(){return new Promise((i,r)=>{const l=new g.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});this.http.get("https://google-authenticator.p.rapidapi.com/new/",{headers:l,responseType:"text"}).subscribe(u=>{if(u.includes("Your new secret: ")){const c=u.split("Your new secret: ")[1].trim();i(c)}else r("No secret sent")},u=>r(u))})}enrollUserG2FA(i,r){return new Promise((l,a)=>{const u=new g.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let c=new g.i4;c=c.append("secret",i),c=c.append("account",r),c=c.append("issuer","NexGen Vendor"),this.http.get("https://google-authenticator.p.rapidapi.com/enroll/",{headers:u,responseType:"text",params:c}).subscribe(l,a)})}validateUserG2FA(i,r){return new Promise((l,a)=>{const u=new g.UD({"x-rapidapi-key":"4454e0f926mshef5aae0fb777da9p128cf5jsn4402fc8b7ca8"});let c=new g.i4;c=c.append("secret",i),c=c.append("code",r),this.http.get("https://google-authenticator.p.rapidapi.com/validate/",{headers:u,responseType:"text",params:c}).subscribe(w=>{l(w)},w=>a(w))})}createCustomer(i,r){const l={headers:new g.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+M.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},a=(new g.i4).set("description",i.description).set("email",i.email).set("phone",i.phone).set("name",i.name);return this.http.post(r,a,l).pipe(x(6e3),H(1))}checkCustomer(i){const r={headers:new g.UD({async:"true",crossDomain:"true","content-type":"application/json",authorization:"Bearer "+M.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})};return this.http.post(i,{},r).pipe(x(6e3),H(1))}attachPmToCustomer(i,r){const l={headers:new g.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+M.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},a=(new g.i4).set("customer",i.customer);return this.http.post(r,a,l).pipe(x(6e3),H(1))}stripePay(i,r){const l={headers:new g.UD({async:"true",crossDomain:"true","content-type":"application/x-www-form-urlencoded",authorization:"Bearer "+M.O.stripe.secret,"cache-control":"no-cache","Access-Control-Allow-Origin":"*"})},a=(new g.i4).set("amount",i.amount).set("currency",i.currency).set("customer",i.customer).set("payment_method",i.payment_method).set("confirm",i.confirm).set("error_on_requires_action",i.error_on_requires_action);return this.http.post(r,a,l).pipe(x(6e3),H(1))}postHttpData(i,r){return new Promise((l,a)=>{const u={headers:new g.UD({api_key:M.O.apiBaseKey})};try{this.http.post(i,r,u).pipe().subscribe({next:()=>{console.log("next....."),l(!0)},error:c=>{console.log("error.....",c),a(c)},complete:()=>console.log("completed.....")})}catch(c){a(c)}})}static \u0275fac=function(r){return new(r||h)(b.CoB(g.KK),b.CoB(z.s))};static \u0275prov=b.wxM({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},60338:(Z,O,n)=>{n.d(O,{W:()=>d});var v=n(91368),g=n(83068),E=n(44716),C=n(79992),y=n(32116);let d=(()=>{class P{static \u0275fac=function(R){return new(R||P)};static \u0275mod=y.a4G({type:P});static \u0275inj=y.s3X({imports:[v.MD,g.wZ,E.y,C.Y1]})}return P})()},28:(Z,O,n)=>{n.r(O),n.d(O,{CreditsPageModule:()=>h});var v=n(91368),g=n(44716),E=n(83068),C=n(89192),y=n(73448),d=n(32116),P=n(2132),U=n(87264),j=n(77816),R=n(62319),x=n(63528);const L=[{path:"",component:(()=>{class p{util;firebaseApi;userProvider;location;submitSpinner=!1;creditsPackage=100;autoTopOff=!1;constructor(r,l,a,u){this.util=r,this.firebaseApi=l,this.userProvider=a,this.location=u}ngOnInit(){var r=this;return(0,y.c)(function*(){r.autoTopOff=r.userProvider.loggedInUser.autoTopOff})()}selectCreditPackage(r){this.creditsPackage=r}cancel(){this.location.back()}static \u0275fac=function(l){return new(l||p)(d.GI1(P.e),d.GI1(U.H),d.GI1(j.e),d.GI1(v.oB))};static \u0275cmp=d.In1({type:p,selectors:[["app-credits"]],decls:6,vars:3,consts:[[1,"app-container"],[3,"contentWidth","hero"],[3,"creditsPage","navBack"],[1,"curs
1or",3,"click"]],template:function(l,a){1&l&&(d.I0R(0,"ion-content")(1,"div",0)(2,"app-split-page",1)(3,"app-need-credits",2),d.qCj("navBack",function(){return a.cancel()}),d.C$Y(),d.I0R(4,"p",3),d.qCj("click",function(){return a.cancel()}),d.OEk(5,"Cancel"),d.C$Y()()()()),2&l&&(d.yG2(2),d.E7m("contentWidth",25)("hero","assets/2fahero.svg"),d.yG2(),d.E7m("creditsPage",!0))},dependencies:[E._i,R.g,x.k],styles:["p[_ngcontent-%COMP%]{font-size:.9rem;text-align:center;color:gray;font-weight:700}"]})}return p})()}];let Y=(()=>{class p{static \u0275fac=function(l){return new(l||p)};static \u0275mod=d.a4G({type:p});static \u0275inj=d.s3X({imports:[C.qQ.forChild(L),C.qQ]})}return p})();var H=n(59952),M=n(48396),b=n(87560),z=n(25300),X=n(60338);let h=(()=>{class p{static \u0275fac=function(l){return new(l||p)};static \u0275mod=d.a4G({type:p});static \u0275inj=d.s3X({imports:[v.MD,g.y,E.wZ,Y,H.S,M.S,b.l,X.W,z.C]})}return p})()},59952:(Z,O,n)=>{n.d(O,{S:()=>C});var v=n(91368),g=n(83068),E=n(32116);let C=(()=>{class y{static \u0275fac=function(U){return new(U||y)};static \u0275mod=E.a4G({type:y});static \u0275inj=E.s3X({imports:[v.MD,g.wZ]})}return y})()}
1,79992:(Z,O,n)=>{n.d(O,{Y1:()=>nt,mO:()=>et});var v=n(32116),g=n(82700),E=n(70800),C=n(7400),y=n(54704),d=n(19212),P=n(66684),U=n(65800);function R(t,e,o,s){const f=window&&!!window.document&&window.document.documentElement;let m=f&&e?window:o;if(t&&(m=t&&f&&"string"==typeof t?function x(t,e,o){return(o?window.document:e).querySelector(t)}(t,o.nativeElement,s):t,!m))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return m}function F(t){return t&&!t.firstChange}const Y={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},H={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class M{constructor(e=!0){this.vertical=e,this.propsMap=e?Y:H}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function h(t){return["Window","global"].some(o=>Object.prototype.toString.call(t).includes(o))}function p(t,e){return t?e.document.documentElement:null}function i(t,e){const o=function u({container:t,isWindow:e,axis:o}){const{offsetHeightKey:s,clientHeightKey:f}=a(o);return c(t,e,s,f)}(e);return e.isWindow?function r(t,e,o){const{axis:s,container:f,isWindow:m}=o,{offsetHeightKey:D,clientHeightKey:K}=a(s),N=t+w(p(m,f),s,m),W=c(e.nativeElement,m,D,K),V=function S(t,e,o){const s=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[s]+w(t,e,o)}(e.nativeElement,s,m)+W;return{height:t,scrolled:N,totalToScroll:V,isWindow:m}}(o,t,e):function l(t,e,o){const{axis:s,container:f}=o;return{height:t,scrolled:f[s.scrollTopKey()],totalToScroll:f[s.scrollHeightKey()],isWindow:!1}}(o,0,e)}function a(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function c(t,e,o,s){if(isNaN(t[o])){const f=p(e,t);return f?f[s]:0}return t[o]}function w(t,e,o){const s=e.pageYOffsetKey(),f=e.scrollTopKey(),m=e.offsetTopKey();return isNaN(window.pageYOffset)?p(o,t)[f]:t.ownerDocument?t.ownerDocument.defaultView[s]:t[m]}function T(t,e={down:0,up:0},o){let s,f;if(t.totalToScroll<=0)return!1;const m=t.isWindow?t.scrolled:t.height+t.scrolled;return o?(s=(t.totalToScroll-m)/t.totalToScroll,f=(e?.down?e.down:0)/10):(s=t.scrolled/(t.scrolled+(t.totalToScroll-m)),f=(e?.up?e.up:0)/10),s<=f}class J{constructor(e){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,e)}updateScrollPosition(e){return this.lastScrollPosition=e}updateTotalToScroll(e){this.lastTotalToScroll!==e&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=e)}updateScroll(e,o){this.updateScrollPosition(e),this.updateTotalToScroll(o)}updateTriggeredFlag(e,o){o?this.triggered.down=e:this.triggered.up=e}isTriggeredScroll(e,o){return o?this.triggered.down===e:this.triggered.up===e}}const Q={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function tt(t){const{scrollDown:e,stats:{scrolled:o}}=t;return{type:e?Q.DOWN:Q.UP,payload:{currentScrollPosition:o}}}let et=(()=>{class t{constructor(o,s){this.element=o,this.zone=s,this.scrolled=new v._w7,this.scrolledUp=new v._w7,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:o,infiniteScrollDisabled:s,infiniteScrollDistance:f}){const m=F(o),D=F(s),K=F(f),N=!D&&!this.infiniteScrollDisabled||D&&!s.currentValue||K;(m||D||K)&&(this.destroyScroller(),N&&this.setup())}setup(){(function L(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=function k(t){const{scrollContainer:e,scrollWindow:o,element:s,fromRoot:f}
1=t,m=function z({windowElement:t,axis:e}){return function X(t,e){const o=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return{...t,container:o}}({axis:e,isWindow:h(t)},t)}({axis:new M(!t.horizontal),windowElement:R(e,o,s,f)}),D=new J({totalToScroll:i(s,m).totalToScroll}),N={up:t.upDistance,down:t.downDistance};return function _(t){let e=(0,E.w)(t.container,"scroll");return t.throttle&&(e=e.pipe((0,U.U)(t.throttle,void 0,{leading:!0,trailing:!0}))),e}({container:m.container,throttle:t.throttle}).pipe((0,C.O)(()=>(0,g.of)(i(s,m))),(0,y.k)(W=>function q(t,e,o){const{scrollDown:s,fire:f}=function A(t,e,o){const s=function I(t,e){return t<e.scrolled}(t,e);return{fire:T(e,o,s),scrollDown:s}}(t,e,o);return{scrollDown:s,fire:f,stats:e}}(D.lastScrollPosition,W,N)),(0,d.y)(({stats:W})=>D.updateScroll(W.scrolled,W.totalToScroll)),(0,P.I)(({fire:W,scrollDown:V,stats:{totalToScroll:rt}})=>function b(t,e,o){return!!(t&&e||!o&&e)}(t.alwaysCallback,W,D.isTriggeredScroll(rt,V))),(0,d.y)(({scrollDown:W,stats:{totalToScroll:V}})=>{D.updateTriggeredFlag(V,W)}),(0,y.k)(tt))}({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollC
1ontainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(o=>this.handleOnScroll(o))})}handleOnScroll({type:o,payload:s}){const f=o===Q.DOWN?this.scrolled:this.scrolledUp;(function ot(t){return t.observed??t.observers.length>0})(f)&&this.zone.run(()=>f.emit(s))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||t)(v.GI1(v.GMv),v.GI1(v.WW2))};static#e=this.\u0275dir=v.Sc5({type:t,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[v.SYr]})}return t})(),nt=(()=>{class t{static#t=this.\u0275fac=function(s){return new(s||t)};static#e=this.\u0275mod=v.a4G({type:t});static#o=this.\u0275inj=v.s3X({})}return t})()}}]);
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.