PageSourceSearch

https://usasoftballofvirginia.com/chunk-CXPCPPOI.js

js usasoftballofvirginia.com collected 2026-09-28 19:01:53 UTC 9,922 bytes, 1 lines download raw bytes

1import{a as se,b as le,c as ce}from"./chunk-GS37RU6G.js";import{g as ie}from"./chunk-OASEBQL4.js";import{d as pe}from"./chunk-N7NZ2FMU.js";import{a as de}from"./chunk-NIP74ZKI.js";import{r as ae}from"./chunk-RE4JJFV5.js";import{a as ne}from"./chunk-KJKRX6VS.js";import{j as ee}from"./chunk-VTTO24NQ.js";import{n as Z,q as $}from"./chunk-YWHNFDXQ.js";import{l as oe}from"./chunk-FCTHY2PU.js";import{U as te,x as X}from"./chunk-TUEKBDZZ.js";import{a as re}from"./chunk-TPES7EAS.js";import{G as H,H as J,h as q,i as G,k as U,m as Y,n as K}from"./chunk-QXJM3TTT.js";import{F as z,k as L}from"./chunk-TMOIAHHX.js";import{$a as I,Fb as F,Ib as m,Jb as v,Nb as N,Rb as A,Sb as j,Tb as R,Wa as c,Xa as p,_a as T,ab as g,bb as d,cb as l,db as V,dc as W,ec as Q,ga as o,hb as B,ib as D,kb as b,la as _,o as u,p as C,qb as x,sa as f,tb as s,xb as M,yb as w,za as P,zb as S}from"./chunk-DJNWGYMM.js";import{ea as h,f as O}from"./chunk-VOZAGDK7.js";import{j as k}from"./chunk-E5QWB6YB.js";var me=["cardElement"],fe=["stripeForm"],ue=(t,a)=>({hideForm:t,showForm:a}),Ce=t=>({"w-100-p":t}),ge=(t,a)=>a.last4;function he(t,a){t&1&&(d(0,"div",8),m(1,"Payment Method"),l())}function _e(t,a){if(t&1&&(d(0,"mat-radio-button",11),m(1),l()),t&2){let e=a.$implicit;g("value",e),o(),N("",e.brand," - ",e.last4," (Exp. ",e.exp_month??e.expMonth,"-",e.exp_year??e.expYear,")")}}function be(t,a){if(t&1&&T(0,_e,2,5,"mat-radio-button",11,ge),t&2){let e=s(4);I(e.cards)}}function xe(t,a){if(t&1&&c(0,be,2,0),t&2){let e=s(3);p(e.cards.length>0?0:-1)}}function ve(t,a){if(t&1){let e=b();d(0,"div",9)(1,"mat-radio-group",10),R("ngModelChange",function(i){u(e);let n=s(2);return j(n.selectedCard,i)||(n.selectedCard=i),C(i)}),x("change",function(){u(e);let i=s(2);return C(i.cardChanged())}),c(2,xe,1,1),d(3,"mat-radio-button",11),m(4,"New Card"),l()()()}if(t&2){let e=s(2);o(),A("ngModel",e.selectedCard),o(),p(e.cards?2:-1),o(),g("value",null)}}function ye(t,a){if(t&1&&(B(0),c(1,he,2,0,"div",8),c(2,ve,5,3,"div",9),D()),t&2){let e=s();o(),p(e.dialogMode?-1:1),o(),p(e.cards?2:-1)}}function Me(t,a){if(t&1&&(d(0,"p",12),m(1),l()),t&2){let e=s(2);o(),v(e.cardErrors)}}function we(t,a){if(t&1){let e=b();d(0,"div",6),c(1,Me,2,1,"p",12),d(2,"button",13),x("click",function(){u(e);let i=s();return C(i.handleSubmit())}),m(3),l()()}if(t&2){let e=s();o(),p(e.cardErrors?1:-1),o(),F("spinner",e.loading||e.processing),g("disabled",e.isButtonDisabled())("ngClass",W(6,Ce,e.isMobile)),o(),v(e.btnText)}}function Se(t,a){if(t&1&&(d(0,"p",7),m(1),l()),t&2){let e=s();o(),v(e.cardErrors)}}var Ze=(()=>{class t{api;membership;notify;_fuseConfigService;breakpointObserver;amount;cards=[];description;btnText;loading;cardCollection=!1;addCardMode;saveOnly;saveCard=!1;emitPaymentMethod=!1;dialogMode=!1;loadingChange=new _;cardChange=new _;fullView;buttonDisabled;cardElement;paymentCallBack=new _;stripeForm;stripe;card;selectedCard;cardErrors;formComplete=!1;confirmation;processing=!1;_unsubscribeAll;fuseConfig;isMobile=!1;constructor(e,r,i,n,E){this.api=e,this.membership=r,this.notify=i,this._fuseConfigService=n,this.breakpointObserver=E,this._unsubscribeAll=new O,this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(h(this._unsubscribeAll)).subscribe(y=>{this.isMobile=!!y.matches})}ngOnInit(){this._fuseConfigService.config.pipe(h(this._unsubscribeAll)).subscribe(r=>{this.fuseConfig=r}),this.stripe=Stripe(re.stripeKey);let e=this.stripe.elements();this.card=e.create("card",{style:{}}),this.card.mount(this.cardElement.nativeElement),this.card.addEventListener("change",r=>{this.selectedCard=null,r.complete?this.formComplete=!0:this.cardErrors=r.error&&r.error.message}),this.btnText||(this.btnText="Pay")}resetCardElement(){this.card&&this.card.clear()}ngAfterViewInit(){setTimeout(()=>{this.cards?this.cards.length==1?(this.selectedCard=this.cards[0],this.cardChanged()):this.cards.length==0&&(this.selectedCard=null):this.selectedCard=null},1e3)}handleForm(e){return k(this,null,function*(){if(e&&e.preventDefault(),!this.selectedCard){if(this.processing=!0,this.emitPaymentMethod){let i=yield this.stripe.createPaymentMethod({type:"card",card:this.card});i.error?(this.cardErrors=i.error.message,this.processing=!1):(this.processing=!1,this.paymentCallBack.emit(i.paymentMethod.id));return}var r=yield this.stripe.createToken(this.card).then(function(i){return i});if(r.error)this.cardErrors=r.error.message,this.processing=!1;else{let i={exp:r.token.card.exp_month+"/"+r.token.card.exp_year,last4:r.token.card.last4,brand:r.token.card.brand,cardLast4:r.token.card.last4,cardType:r.token.card.brand,cardID:r.token.id};this.api.get("Billing/"+r.token.id,!0).pipe(h(this._unsubscribeAll)).subscribe({next:n=>
1{i.cardID=n.cardID,this.cardChange.emit(i),this.processing=!1,this.paymentCallBack.emit(n.cardID)},error:n=>{this.processing=!1,this.notify.openErrorModal(n.error)}})}}})}toCardInfo(e){return{cardID:e.id,exp:(e.exp_month??e.expMonth)+"/"+(e.exp_year??e.expYear),cardLast4:e.last4,cardType:e.brand,last4:e.last4,brand:e.brand}}cardChanged(){this.selectedCard&&this.cardChange.emit(this.toCardInfo(this.selectedCard))}handleSubmit(){this.amount===0&&!this.saveCard?this.processWithoutPayment():this.selectedCard?this.payWithSavedCard():this.handleForm()}isButtonDisabled(){return this.loading||this.processing||this.buttonDisabled?!0:this.amount==0||this.saveOnly?!1:this.amount>0?!this.selectedCard&&!this.formComplete:this.formComplete?!1:!this.selectedCard}payWithSavedCard(){this.paymentCallBack.emit(this.selectedCard.id)}processWithoutPayment(){this.paymentCallBack.emit(null)}ngOnDestroy(){this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(r){return new(r||t)(f(ne),f(de),f(ae),f(oe),f(X))};static \u0275cmp=P({type:t,selectors:[["tinc-stripe"]],viewQuery:function(r,i){if(r&1&&(M(me,7),M(fe,5)),r&2){let n;w(n=S())&&(i.cardElement=n.first),w(n=S())&&(i.stripeForm=n.first)}},inputs:{amount:"amount",cards:"cards",description:"description",btnText:"btnText",loading:"loading",cardCollection:"cardCollection",addCardMode:"addCardMode",saveOnly:"saveOnly",saveCard:"saveCard",emitPaymentMethod:"emitPaymentMethod",dialogMode:"dialogMode",fullView:"fullView",buttonDisabled:"buttonDisabled"},outputs:{loadingChange:"loadingChange",cardChange:"cardChange",paymentCallBack:"paymentCallBack"},decls:9,vars:8,consts:[["stripeForm",""],["cardElement",""],[1,"stripe-form","mt-12"],[3,"submit"],[2,"max-width","min(100%, 600px)","margin","0 auto",3,"ngClass"],[1,"my-12"],[1,"text-center","mt-32","mb-52"],["role","alert",1,"stripe-form__error"],[1,"pl-8","py-8","grey-300"],[2,"max-height","200px","overflow-y","auto"],["name","selectedCard",1,"card-radio-group",3,"ngModelChange","change","ngModel"],[1,"card-radio-button",3,"value"],[1,"font-weight-900","mb-40","p-8","red-100"],["mat-raised-button","",1,"primary","btn-larger",3,"click","disabled","ngClass"]],template:function(r,i){if(r&1){let n=b();d(0,"div",2)(1,"form",3,0),x("submit",function(y){return u(n),C(i.handleForm(y))}),c(3,ye,3,2,"ng-container"),d(4,"div",4),V(5,"div",5,1),l(),c(7,we,4,8,"div",6)(8,Se,2,1,"p",7),l()()}r&2&&(F("stripe-form--dialog",i.dialogMode),o(3),p((i.amount>0||i.cardCollection)&&!i.addCardMode?3:-1),o(),g("ngClass",Q(5,ue,i.selectedCard!=null||i.amount==0&&!i.cardCollection,i.selectedCard==null||i.cardCollection)),o(3),p(i.dialogMode?i.cardErrors?8:-1:7))},dependencies:[z,L,te,H,K,q,G,Y,U,$,Z,ee,pe,ie,ce,se,le,J],styles:["[_ngcontent-%COMP%]:root{--rp-navy-900: #10243f;--rp-navy-800: #143b67;--rp-navy-700: #1a3668;--rp-navy-600: #244f7e;--rp-text: #122033;--rp-text-muted: #64798c;--rp-text-subtle: #667085;--rp-divider: #dce5ee;--rp-divider-soft: #e8edf3;--rp-border-control: #8792a5;--rp-surface: #ffffff;--rp-surface-tint: #f2f7fc;--rp-surface-head: #eef2f6;--rp-surface-sunken: #f7f9fc;--rp-ok-bg: #eaf6ea;--rp-ok-border: #7fb583;--rp-ok-fg: #2e7d32;--rp-warn-bg: #fff3e0;--rp-warn-border: #c9922f;--rp-warn-fg: #9a4a00;--rp-danger-bg: #ffebee;--rp-danger-border: #d97b7b;--rp-danger-fg: #c62828;--rp-info-bg: #eef2fb;--rp-info-border: #8fa6cf;--rp-info-fg: #244f7e;--rp-neutral-bg: #f1f3f6;--rp-neutral-border: #9aa4b2;--rp-neutral-fg: #5a6b7d;--rp-gold-bg: #fdf6e3;--rp-gold-ring: #d4a531;--rp-gold-fg: #6b4700;--rp-silver-bg: #f1f3f6;--rp-silver-ring: #9ba5b1;--rp-silver-fg: #48535f;--rp-bronze-bg: #f8ede6;--rp-bronze-ring: #c4855f;--rp-bronze-fg: #6e3b1d;--rp-focus-ring: #244f7e;--rp-radius-control: 6px;--rp-radius-card: 8px;--rp-radius-row: 10px;--rp-radius-panel: 16px;--rp-shadow-card: 0 1px 3px rgba(15, 31, 53, .05);--rp-shadow-panel: 0 1px 3px rgba(15, 31, 53, .04), 0 8px 32px rgba(15, 31, 53, .07)}.StripeElement[_ngcontent-%COMP%]{margin:1rem 0;background-color:#fff;padding:8px 12px;border-radius:4px;border:1px solid transparent;box-shadow:0 1px 3px #e6ebf1;
1-webkit-transition:box-shadow .15s ease;transition:box-shadow .15s ease}.StripeElement--focus[_ngcontent-%COMP%]{box-shadow:0 1px 3px #cfd7df}.StripeElement--invalid[_ngcontent-%COMP%]{border-color:#fa755a}.StripeElement--webkit-autofill[_ngcontent-%COMP%]{background-color:#fefde5!important}.card-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column}.card-radio-button[_ngcontent-%COMP%]{margin:5px}.hideForm[_ngcontent-%COMP%]{display:none}.stripe-form--dialog[_ngcontent-%COMP%]{margin-top:0!important}.stripe-form--dialog[_ngcontent-%COMP%]   .StripeElement[_ngcontent-%COMP%]{margin:8px 0 0;border-color:#8792a5;border-radius:6px;box-shadow:none}.stripe-form--dialog[_ngcontent-%COMP%]   .StripeElement--focus[_ngcontent-%COMP%]{border-color:#244f7e;box-shadow:0 0 0 3px #244f7e29}.stripe-form--dialog[_ngcontent-%COMP%]   .card-radio-button[_ngcontent-%COMP%]{margin:4px 0}.stripe-form__error[_ngcontent-%COMP%]{margin:12px 0 0;padding:8px 12px;border:1px solid #d97b7b;border-radius:6px;background:#ffebee;color:#c62828;font-size:13px;font-weight:600;line-height:1.4}"]})}return t})();export{Ze as a};

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.