PageSourceSearch

https://usatf.tv/chunk-BMAJD4VM.js

js usatf.tv collected 2026-10-02 06:23:48 UTC 11,538 bytes, 1 lines download raw bytes

1import{a as Y,b as Te}from"./chunk-MVTQS2TF.js";import"./chunk-RXMBD2RN.js";import{a as Ie}from"./chunk-KYWR4BDX.js";import{d as Ee}from"./chunk-2WTK5BR7.js";import"./chunk-S6DUGUKA.js";import{$ as l,$b as R,$e as Re,A as z,Ca as F,Cb as N,Fa as S,Ga as d,H as T,Jb as se,Jd as Ce,L as A,La as x,M as L,Ma as b,Na as O,Nb as le,Nd as ve,Q as y,Qe as Se,R as C,Ra as te,Rb as ce,Sa as f,Ta as w,Ua as ie,Ue as xe,Ve as be,Xa as U,Xb as pe,Yb as me,Ye as Oe,Za as ne,Zb as de,_ as J,_b as ue,_e as we,aa as m,c as H,cb as h,db as P,h as K,hb as oe,hc as fe,ia as g,ic as ge,j as E,jc as _e,jf as Me,k as I,ka as c,kc as V,l as q,m as B,nc as he,oc as Pe,pc as Q,pd as ye,rb as re,rc as D,s as Z,sa as s,sb as j,ta as p,ua as u,v as ee,va as $,wa as k,ya as v,yb as ae}from"./chunk-6ULPYS7P.js";import{j as X}from"./chunk-NF2EONNU.js";function Ne(t,o){if(t&1){let r=v();$(0,3),s(1,"div",4)(2,"strong",5),f(3),p(),s(4,"p",6),f(5," You subscription to "),s(6,"strong"),f(7),p(),f(8," has been suspended. Please update your payment details to reactivate it. "),p()(),s(9,"joymo-capture-payment-method",7),S("onPaymentDetailsCaptured",function(e){y(r);let n=d();return C(n.setPaymentDetails(e));}),p(),k();}if(t&2){let r=d();l(3),w(r.subscriptionWithPlan.subscription.requiredUserAction==null?null:r.subscriptionWithPlan.subscription.requiredUserAction.description),l(4),w(r.subscriptionWithPlan.plan.name),l(2),c("title",r.paymentDetailsTitle);}}var Ae=(()=>{let o=class o{constructor(i,e,n,a){this.ff=i,this.toastService=e,this.windowService=n,this.locale=a,this.paymentDetailsTitle="Payment details",this.updatePaymentDetailsTitle="Update payment details";}open(i,e,n){if(!i||!e)throw new Error("MissingFields");this.channel=i,this.subscriptionWithPlan=e,this.chargeAfterUpdate=n,this.periodicity=e.subscription.selectedConfig.periodicity,this.modal.open();}setPaymentDetails(i){return X(this,null,function*(){let{channel:e,subscriptionWithPlan:n}=this,a=i.paymentId,M=i.billingAddress;if(!e||!n||!a)throw new Error("Missing data");let _=yield I(ve(this.ff,e.docId,n.subscription.docId,a,M,this.chargeAfterUpdate));if(!_.success){this.capturePayment.getSetupIntent(),this.toastService.open(_.errorReason,{type:"error"});return;}this.toastService.open("Subscription updated successfully",{type:"success"}),this.modal.close(),this.windowService.document.location.reload();});}getPlanOption(i,e,n){let a=Se(i,e,this.locale,!1);if(!a.cardDetails.planPrices.find(_=>_.periodicity===n))throw new Error("Bad plan option");return a.selectedPeriodicity=n,a;}};o.ɵfac=function(e){return new(e||o)(m(ce),m(_e),m(V),m(oe));},o.ɵcmp=A({type:o,selectors:[["joymo-manage-subscription-payment"]],viewQuery:function(e,n){if(e&1&&(x(Q,5),x(Y,5)),e&2){let a;b(a=O())&&(n.modal=a.first),b(a=O())&&(n.capturePayment=a.first);}},standalone:!0,features:[U],decls:3,vars:2,consts:[["modal",""],[3,"title"],["yo-modal-content","",4,"ngIf"],["yo-modal-content",""],[1,"flex","flex-column","gap-12",2,"max-width","572px"],[1,"text-lg"],[1,"text-md-spacious"],[3,"onPaymentDetailsCaptured","title"]],template:function(e,n){e&1&&(s(0,"yo-modal",1,0),g(2,Ne,10,3,"ng-container",2),p()),e&2&&(c("title",n.updatePaymentDetailsTitle),l(2),c("ngIf",n.channel&&n.subscriptionWithPlan));},dependencies:[D,Y,N,j,Q,Te,fe,ge],encapsulation:2});let t=o;return t;})();var Ve=()=>({exact:!0});function De(t,o){if(t&1&&(s(0,"a",8),h(1,"async"),u(2,"yo-icon",9),s(3,"span"),F(4,1),p()()),t&2){let r=d();c("href",P(1,1,r.resetPasswordUrl$),J);}}function qe(t,o){if(t&1){let r=v();$(0),s(1,"joymo-info-block",10),S("onActionClick",function(){y(r);let e=te(3),n=d();return C(n.fixSubscriptionPayment(e));}),p(),u(2,"joymo-manage-subscription-payment",null,0),k();}if(t&2){let r=o.ngIf,i=d();l(),c("heading",i.userActionRequiredCtx.heading)("description",r==null||r.requiredUserAction==null?null:r.requiredUserAction.description)("actionLabel",i.userActionRequiredCtx.actionLabel);}}function Be(t,o){if(t&1&&(s(0,"span",25),f(1),p()),t&2){let r=d().ngIf;l(),w(r.email);}}function ze(t,o){if(t&1&&(s(0,"a",26),h(1,"async"),F(2,3),p()),t&2){let r=d(2);c("href",P(1,1,r.resetPasswordUrl$),J);}}function Je(t,o){if(t&1&&(s(0,"li")(1,"a",27),u(2,"yo-icon",28),f(3),p()()),t&2){let r=o.$implicit;l(),c("routerLink",r.route)("routerLinkActiveOptions",ne(4,Ve)),l(),c("icon",r.icon),l(),ie("",r.label," ");}}
1function Qe(t,o){if(t&1){let r=v();s(0,"section",11)(1,"div",12)(2,"div",13),u(3,"yo-avatar",14),g(4,Be,2,1,"span",15)(5,ze,3,3,"a",16),p(),u(6,"div",17),s(7,"div",18)(8,"nav")(9,"ul",19)(10,"div",20),g(11,Je,4,5,"li",21),h(12,"async"),p(),s(13,"li",22),S("click",function(){y(r);let e=d();return C(e.logOut());}),u(14,"yo-icon",23),s(15,"span"),F(16,2),p()()()()()(),s(17,"div",24),u(18,"router-outlet"),p()();}if(t&2){let r=o.ngIf,i=d();l(3),c("photoUrl",r.photoURL)("name",r.displayName)("email",r.email)("showName",!0),l(),c("ngIf",!i.canResetPassword&&r.displayName),l(),c("ngIf",i.canResetPassword),l(6),c("ngForOf",P(12,7,i.links$));}}var Le=(()=>{let o=class o{constructor(i,e,n,a,M,_,ke,Fe){this.authService=i,this.scopeService=e,this.windowService=n,this.metaService=a,this.accessControlService=M,this.profileService=_,this.router=ke,this.fs=Fe,this.canResetPassword=!1,this.destroy$=new H(),this.channel$=this.scopeService.listenToChannel(),this.resetPasswordUrl$=this.getResetPasswordUrl$(),this.requiresUserAction$=this.accessControlService.requiresUserAction$,this.userActionRequiredCtx={heading:"Action required",actionLabel:"Update payment details"},this.inactiveSubscriptionMessage="Subscription is inactive. Please update payment details",this.canResetPassword=this.checkIfUserCanResetPassword(),this.links$=this.profileService.getProfileRoutes$(),this.metaService.setTags({title:"My account",description:"A place to manage your account, subscriptions and tickets",image:"assets/logo.svg"}),this.user$=this.authService.user$.pipe(z(G=>G?E(G):(Oe.setBreadcrumb("Reached profile page with no user."),this.windowService.document.location.assign(this.scopeService.getHomepageUrl()),K)));}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete();}getResetPasswordUrl$(){return this.channel$.pipe(q(i=>this.authService.getAuthenticationUrl(i.docId,i.slug,void 0,"forgot-password")));}checkIfUserCanResetPassword(){let i=this.authService.getProviderIds();return i?i.length===1&&i.includes(se.PROVIDER_ID):!1;}fixSubscriptionPayment(i){B([this.scopeService.listenToChannel(),this.accessControlService.requiresUserAction$]).pipe(ee(1),z(([e,n])=>B([E(e),E(n),Ce(this.fs,e.docId,n.planId)])),Z(function(e){return e.every(n=>n!==void 0);})).subscribe(([e,n,a])=>{i.open(e,{subscription:n,plan:a},!0);});}logOut(){let i=I(this.scopeService.scope$.pipe(q(n=>this.scopeService.getHomepageUrlFromScope(n)))),e=this.authService.auth.signOut();Promise.all([i,e]).then(([n,a])=>{this.router.navigate([n]);});}};o.ɵfac=function(e){return new(e||o)(m(xe),m(Re),m(V),m(we),m(be),m(Me),m(me),m(le));},o.ɵcmp=A({type:o,selectors:[["joymo-profile"]],viewQuery:function(e,n){if(e&1&&x(Ie,5),e&2){let a;b(a=O())&&(n.cancelSubscription=a.first);}},hostAttrs:[1,"block"],standalone:!0,features:[U],decls:6,vars:7,consts:()=>{let i;i="Reset password";let e;e="Log out";let n;return n="Reset password",[["manageSubscriptionPayment",""],i,e,n,[1,"w-100","p-t-24","standard-margins"],["class","block md:none flex flex-align-center flex-justify-end profile_reset-link gap-4",3,"href",4,"ngIf"],[4,"ngIf"],["class","profile p-t-24 xs:gap-24 sm:gap-32 lg:p-t-48 h-100 standard-margins",4,"ngIf"],[1,"block","md:none","flex","flex-align-center","flex-justify-end","profile_reset-link","gap-4",3,"href"],["size","md","icon","lock"],["type","ERROR",3,"onActionClick","heading","description","actionLabel"],[1,"profile","p-t-24","xs:gap-24","sm:gap-32","lg:p-t-48","h-100","standard-margins"],[1,"profile_sidebar","sidebar","flex","flex-column","flex-align-start","h-100","w-100","gap-16","border-default"],[1,"sidebar_header","flex","flex-column","flex-align-center","md:flex-align-start","md:p-l-8","w-100"],[1,"m-b-8",3,"photoUrl","name","email","showName"],["class","text-sm text-secondary",4,"ngIf"],["class","profile_reset-link none md:block",3,"href",4,"ngIf"],[1,"separator"],[1,"sidebar_navigation","w-100","none","md:block"],[1,"flex","flex-column","gap-36"],[1,"flex","flex-column","gap-4"],[4,"ngFor","ngForOf"],[1,"sidebar_navigation-item","clickable","text-semibold","flex","flex-row","flex-justify-start","flex-align-center","gap-12","rounded-md","p-8",3,"click"],["icon","logout"],[1,"profile_content","w-100"],[1,"text-sm","text-secondary"],[1,"profile_reset-link","none","md:block",3,"href"],["routerLinkActive","bg-transparent",1,"sidebar_navigation-item","text-semibold","flex","flex-row","flex-justify-start","flex-align-center","gap-12","rounded-md","p-8",3,"routerLink","routerLinkActiveOptions"],[3,"icon"]];},template:function(e,n){e&1&&(s(0,"div",4),g(1,De,5,3,"a",5)(2,qe,4,3,"ng-container",6),h(3,"async"),p(),g(4,Qe,19,9,"section",7),h(5,"async")),e&2&&(l(),c("ngIf",n.canResetPassword),l(),c("ngIf",P(3,3,n.requiresUserAction$)),l(2),c("ngIf",P(5,5,n.user$)));},dependencies:[D,N,re,j,ae,Pe,he,R,pe,de,ue,ye,Ee,Ae],styles:[".profile[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;column-gap:12px}@media (min-width: 768px){.profile[_ngcontent-%COMP%]{grid-template-columns:1fr 2fr;column-gap:36px}}@media (min-width: 1280px){.profile[_ngcontent-%COMP%]{grid-template-columns:1fr 3fr}}.profile_reset-link[_ngcontent-%COMP%]{cursor:pointer;color:var(--text-highlight-color)}.profile_reset-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.profile[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]{border-bottom:1px solid var(--border-color);padding-bottom:24px}@media (min-width: 480px){.profile[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]{padding-bottom:32px}}@media (min-width: 768px){.profile[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]{padding-bottom:initial;padding-right:34px;border-bottom:none;border-right:1px solid var(--border-color)}}@media (min-width: 1280px){.profile[_ngcontent-%COMP%]   .sidebar[_ngcontent-%COMP%]{padding-right:48px}}.profile[_ngcontent-%COMP%]   .sidebar_navigation-item[_ngcontent-%COMP%]{color:var(--text-primary)}.profile[_ngcontent-%COMP%]   .sidebar_navigation-item[_ngcontent-%COMP%]:hover{transition:var(--animation-speed-fast);background-color:var(--bg-transparent-color)}"]});let t=o;return t;})();var Ye=[{path:"",component:Le,children:[{path:"channels",loadComponent:()=>import("./chunk-IHGHPTA2.js").then(t=>t.ProfileChannelsComponent)},{path:"tickets",loadComponent:()=>import("./chunk-4I7ICFHP.js").then(t=>t.ProfileTicketsComponent)},{path:"subscriptions",loadComponent:()=>import("./chunk-Y3OAVUCA.js").then(t=>t.ProfileSubscriptionsComponent)},{path:"privacy",loadComponent:()=>import("./chunk-D4TUM6KD.js").then(t=>t.ProfilePrivacyComponent)},{path:"integrations",children:[{path:"sport80",loadComponent:()=>import("./chunk-HGXG2OXX.js").then(t=>t.Sport80Component)}]},{path:"following",loadComponent:()=>import("./chunk-QA3WWVZZ.js").then(t=>t.ProfileFollowing)}]}],$e=(()=>{let o=class o{};o.ɵfac=function(e){return new(e||o)();},o.ɵmod=L({type:o}),o.ɵinj=T({imports:[R.forChild(Ye),R]});let t=o;return t;})();var Mt=(()=>{let o=class o{};o.ɵfac=function(e){return new(e||o)();},o.ɵmod=L({type:o}),o.ɵinj=T({imports:[$e]});let t=o;return t;})();export{Mt as ProfileModule};/**i18n:97d16af80b9e941913080ec17ee9bbcf9996ba7c137660b21174b8d4b6f2b4aa*/ //# sourceMappingURL=chunk-BMAJD4VM.js.map

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.