1import{a as pt,b as ut}from"./chunk-YCNFOTAD.js";import{a as dt}from"./chunk-ILRUTWFH.js";import{b as ot,c as at,d as st,e as rt,g as lt}from"./chunk-MVPWU56Q.js";import{a as nt}from"./chunk-CXPCPPOI.js";import{b as ct,c as mt}from"./chunk-6UVLSAJX.js";import{b as oe}from"./chunk-Z6PRV6M7.js";import"./chunk-PVDG46DZ.js";import{a as Ye,b as $e,c as Je}from"./chunk-4UUEYAO2.js";import"./chunk-GS37RU6G.js";import{a as fe}from"./chunk-MJHKSL2V.js";import"./chunk-OASEBQL4.js";import{a as de,b as pe}from"./chunk-AMHTXUJN.js";import{a as Xe,c as et,k as tt}from"./chunk-DBB3PKOU.js";import{b as it}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import{b as he}from"./chunk-VG7OHNZN.js";import"./chunk-MS4AQ6UA.js";import{b as Ue,c as Ze,d as Ke}from"./chunk-N7NZ2FMU.js";import{f as He}from"./chunk-F2TSTV3I.js";import"./chunk-XRMXGMS4.js";import"./chunk-Q4V6AKYI.js";import{a as Ge,b as Qe}from"./chunk-T3PLPHIG.js";import{b as Ne}from"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import{b as ae,c as se}from"./chunk-V46ZQKC5.js";import"./chunk-QNUNLKYK.js";import{b as qe,c as je}from"./chunk-YPNUJAUO.js";import{r as ge}from"./chunk-RE4JJFV5.js";import{d as X,e as ee,f as We,h as Fe,i as te,j as ie,k as ne}from"./chunk-COEKBYWO.js";import{m as Ae,q as Ve,r as Ie,t as De}from"./chunk-E2K2LIS4.js";import{a as ue}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as ce,b as me}from"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as Be,d as ze,e as Re,i as re,j as le}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{l as j,n as D,q as W}from"./chunk-YWHNFDXQ.js";import"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import"./chunk-GW33KQPR.js";import{T as H,U as N}from"./chunk-TUEKBDZZ.js";import"./chunk-RLPOKPIS.js";import{a as Le}from"./chunk-TPES7EAS.js";import{C as Oe,G as J,H as ke,c as Q,h as Y,m as $,z as Ee}from"./chunk-QXJM3TTT.js";import{B as L,D as G,F as q,x as Pe}from"./chunk-TMOIAHHX.js";import{$a as R,Db as ye,Fa as ve,Fb as V,Hc as Te,Ib as s,Jb as C,Kb as E,Lb as O,Mb as Se,Rb as M,Sb as w,Tb as v,Wa as u,Xa as g,_a as z,ab as _,bb as o,cb as n,db as T,ga as r,kb as P,mc as S,nc as k,o as d,oc as K,p,qb as h,sa as y,tb as c,za as I}from"./chunk-DJNWGYMM.js";import{ea as b,f as Z}from"./chunk-VOZAGDK7.js";import{a as F,b as B,j as xe}from"./chunk-E5QWB6YB.js";function Tt(a,m){if(a&1&&(o(0,"div",7)(1,"mat-icon"),s(2,"paid"),n(),o(3,"span"),s(4),S(5,"number"),S(6,"currency"),n()(),o(7,"p",2),s(8,"Estimates only \u2014 the final count is fixed when you press Send."),n()),a&2){let e=c();r(4),O(" Sending to ",k(5,2,e.data.priceEstimate.count)," recipients \u2014 about ",K(6,4,e.data.priceEstimate.chargeAmountCents/100,"USD")," if sent now. ")}}function Pt(a,m){if(a&1&&(o(0,"p",2),s(1),n()),a&2){let e=c();r(),Se(" ",e.data.unsubscribedCount," matching ",e.data.unsubscribedCount===1?"person has":"people have"," unsubscribed from site email and ",e.data.unsubscribedCount===1?"is":"are"," excluded. ")}}function Et(a,m){if(a&1){let e=P();o(0,"button",17),h("click",function(){d(e);let t=c(2);return t.search="",p(t.applySearch())}),o(1,"mat-icon"),s(2,"close"),n()()}}function Ot(a,m){a&1&&s(0," \u2014 select at least one team to send. ")}function kt(a,m){a&1&&s(0," \u2014 recipient count updates when you apply. ")}function At(a,m){if(a&1&&(o(0,"span",22),s(1),n()),a&2){let e=c().$implicit,i=c(2);r(),C((i.data.sportNames==null?null:i.data.sportNames[e.sport])||e.sport)}}function Vt(a,m){if(a&1&&(o(0,"span",22),s(1),n()),a&2){let e=c().$implicit;r(),C(e.state)}}function It(a,m){a&1&&(o(0,"span",23),s(1,"\u2014"),n())}function Dt(a,m){a&1&&(o(0,"span",24),s(1,"no unique recipients"),n())}function Wt(a,m){if(a&1&&(o(0,"span",22),s(1),n()),a&2){let e=c().$implicit;r(),C(e.count)}}function Ft(a,m){if(a&1){let e=P();o(0,"div",18)(1,"mat-checkbox",19),h("change",function(){let t=d(e).$implicit,l=c(2);return p(l.toggle(t.teamKey))}),o(2,"span",20),s(3),n()(),T(4,"span",21),u(5,At,2,1,"span",22),u(6,Vt,2,1,"span",22),u(7,It,2,0,"span",23)(8,Dt,2,0,"span",24)(9,Wt,2,1,"span",22),n()}if(a&2){let e=m.$implicit,i=c(2);V("zero",e.included&&e.count===0),r(),_("checked",i.selected.has(e.teamKey)),r(2),C(e.teamName),r(2),g(i.showSport&&e.sport?5:-1),r(),g(e.state?6:-1),r(),g(e.included?e.count===0?8:9:7)}}function Bt(a,m){if(a&1&&(o(0,"p",3)(1,"em"),s(2),n()()),a&2){let e=c(2);r(2),E('No teams match "',e.search,'".')}}function zt(a,m){if(a&1){let e=P();o(0,"div",8)(1,"mat-form-field",9)(2,"mat-icon",10),s(3,"search"),n(),o(4,"input",11),v("ngModelChange",function(t){d(e);let l=c();return w(l.search,t)||(l.search=t),p(t)}),h("ngModelChange",function(){d(e);let t=c();return p(t.applySearch())}),n(),u(5,Et,3,0,"button",12),n(),o(6,"button",13),h("click",function(){d(e);let t=c();return p(t.setAll(!0))}),s(7,"Select all"),n(),o(8,"button",13),h("click",function(){d(e);let t=c();return p(t.setAll(!1))}),s(9,"Select none"),n()(),o(10,"p",14),s(11),u(12,Ot,1,0)(13,kt,1,0),n(),o(14,"cdk-virtual-scroll-viewport",15),ve(15,Ft,10,7,"div",16),n(),u(16,Bt,3,1,"p",3)}if(a&2){let e=c();r(4),M("ngModel",e.search),r(),g(e.search?5:-1),r(),_("matTooltip",e.search?"Select every team matching the search":"Select every team"),r(2),_("matTooltip",e.search?"Deselect every team matching the search":"Deselect every team"),r(2),V("warn",e.selected.size===0),r(),O(" ",e.selected.size," of ",e.data.teams.length," teams selected "),r(),g(e.selected.size===0?12:e.selected.size<e.data.teams.length?13:-1),r(3),_("c
1dkVirtualForOf",e.visible)("cdkVirtualForTrackBy",e.trackKey),r(),g(e.visible.length?-1:16)}}function Rt(a,m){a&1&&(o(0,"p",3)(1,"em"),s(2,"No recipients matched the selected filters."),n()())}var _t=(()=>{class a{dialogRef;data;selected=new Set;search="";visible=[];showSport=!1;constructor(e,i){this.dialogRef=e,this.data=i,this.data.teams=this.data.teams||[];for(let t of this.data.teams)t.included&&this.selected.add(t.teamKey);this.visible=this.data.teams,this.showSport=new Set(this.data.teams.map(t=>t.sport).filter(Boolean)).size>1}trackKey=(e,i)=>i.teamKey;applySearch(){let e=(this.search||"").trim().toLowerCase();this.visible=e?this.data.teams.filter(i=>(i.teamName||"").toLowerCase().includes(e)):this.data.teams}toggle(e){this.selected.has(e)?this.selected.delete(e):this.selected.add(e)}setAll(e){for(let i of this.visible)e?this.selected.add(i.teamKey):this.selected.delete(i.teamKey)}apply(){this.dialogRef.close({excludedTeamKeys:this.data.teams.filter(e=>!this.selected.has(e.teamKey)).map(e=>e.teamKey)})}static \u0275fac=function(i){return new(i||a)(y(X),y(ee))};static \u0275cmp=I({type:a,selectors:[["teams-comm-preview-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],[1,"count"],[1,"estimate-note"],[1,"empty"],["align","end"],["mat-stroked-button","",3,"click"],["mat-flat-button","","color","primary",3,"click","disabled"],[1,"estimate"],[1,"picker-bar"],["appearance","outline","subscriptSizing","dynamic",1,"search"],["matPrefix",""],["matInput","","placeholder","Search teams",3,"ngModelChange","ngModel"],["mat-icon-button","","matSuffix","","aria-label","Clear search"],["mat-stroked-button","",3,"click","matTooltip"],[1,"selection-line"],["itemSize","48",1,"team-viewport"],["class","team-row",3,"zero",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["mat-icon-button","","matSuffix","","aria-label","Clear search",3,"click"],[1,"team-row"],[3,"change","checked"],[1,"team-name"],[1,"spacer"],[1,"meta"],["matTooltip","Recipient count updates when you apply",1,"meta"],[1,"meta","zero-note"]],template:function(i,t){i&1&&(o(0,"h2",0),s(1," Recipient Preview "),o(2,"span",1),s(3),n()(),o(4,"mat-dialog-content"),u(5,Tt,9,7),u(6,Pt,2,3,"p",2),u(7,zt,17,12)(8,Rt,3,0,"p",3),n(),o(9,"mat-dialog-actions",4)(10,"button",5),h("click",function(){return t.dialogRef.close()}),s(11,"Cancel"),n(),o(12,"button",6),h("click",function(){return t.apply()}),s(13,"Apply"),n()()),i&2&&(r(3),O("",t.data.totalCount," recipient",t.data.totalCount===1?"":"s"),r(2),g(!t.data.exempt&&t.data.priceEstimate?5:-1),r(),g(t.data.unsubscribedCount?6:-1),r(),g(t.data.teams.length?7:8),r(5),_("disabled",!t.data.teams.length||t.selected.size===0))},dependencies:[q,J,Q,Y,$,De,Ae,Ie,Ve,W,D,j,se,ae,ne,Fe,ie,te,le,re,ze,Re,N,H,me,ce,fe,he,L,G],styles:["h2[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:12px}.count[_ngcontent-%COMP%]{font-size:14px;font-weight:400;opacity:.7}mat-dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.estimate[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;background:#ff98001f}.estimate[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.estimate-note[_ngcontent-%COMP%]{font-size:12px;opacity:.65;margin:6px 0 12px}.picker-bar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.picker-bar[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{flex:1 1 220px}.picker-bar[_ngcontent-%COMP%] mat-icon[matPrefix][_ngcontent-%COMP%]{margin-right:6px;opacity:.6}.selection-line[_ngcontent-%COMP%]{font-size:12px;opacity:.7;margin:0 0 8px}.selection-line.warn[_ngcontent-%COMP%]{color:#b71c1c;opacity:1}.team-viewport[_ngcontent-%COMP%]{height:320px;border:1px solid rgba(0,0,0,.12);border-radius:6px}.team-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;height:48px;padding:0 12px;border-bottom:1px solid rgba(0,0,0,.06);font-size:13px;box-sizing:border-box}.team-row.zero[_ngcontent-%COMP%]{opacity:.55}.team-name[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.meta[_ngcontent-%COMP%]{font-size:12px;opacity:.7;white-space:nowrap}.zero-note[_ngcontent-%COMP%]{font-style:italic}.empty[_ngcontent-%COMP%]{padding:16px 0}"]})}return a})();function Ht(a,m){a&1&&(o(0,"section",7),T(1,"mat-progress-bar",17),o(2,"p",18),s(3,"Processing payment\u2026 please keep this window open."),n()())}var Ct=(()=>{class a{dialogRef;data;api;notify;cards=[];loadingCards=!0;paying=!1;decided=!1;pollTimer=null;_unsubscribeAll=new Z;constructor(e,i,t,l){this.dialogRef=e,this.data=i,this.api=t,this.notify=l,this.dialogRef.disableClose=!0}ngOnInit(){this.api.get("Billing/paymentMethods/card",!0).pipe(b(this._unsubscribeAll)).subscribe({next:e=>{this.cards=e?.cards||[],this.loadingCards=!1},error:()=>{this.cards=[],this.loadingCards=!1}})}confirmPayload(e){return B(F({},this.data.payload),{sendAttemptID:this.data.sendAttemptID,quoteID:this.data.quote.quoteID,cardID:e})}pay(e){this.paying||(this.paying=!0,this.postSend(B(F({},this.confirmPayload(e)),{mode:"confirm"})))}poll(){this.pollTimer=setTimeout(()=>{this.postSend(B(F({},this.confirmPayload(null)),{mode:"confirm"}),!0)},4e3)}postSend(e,i=!1){this.api.post("MailCampaign/sendTeamsCommunication",e,!0).pipe(b(this._unsubscribeAll)).subscribe({next:t=>this.handleResult(t),error:t=>{if(i){this.poll();return}this.paying=!1,this.notify.openErrorModal(t?.error||"The request failed. Please try again.")}})}handleResult(e){switch(e?.status){case"queued":this.decided=!0,this.dialogRef.close({action:"paid",result:e});return;case"paymentPending":this.paying=!0,this.poll();return;case"paymentFailed":this.paying=!1,this.notify.openErrorModal(e.reason||"The payment was declined. Please try another card."),e.quoteStillValid||(this.decided=!0,this.dialogRef.close({action:"expired"}));return;case"quoteExpired":this.decided=!0,this.notify.openWarningModal("This quote expired. Please review and send again."),this.dialogRef.close({action:"expired"});return;case"refunded":this.decided=!0,this.notify.openWarningModal("This campaign could not be sent, so your payment was refunded. Nothing was emailed \u2014 please try again, and contact support if it happens twice."),this.dialogRef.close({action:"expired"});return;case"requiresPayment":this.paying=!1,this.data.quote=e;return;default:this.paying=!1,this.notify.openErrorModal("Unexpected response. Please try again.")}}cancel(){this.abandonQuote(),this.decided=!0,this.dialogRef.close({action:"closed"})}abandonQuote(){this.decided||this.api.post("MailCampaign/abandonTeamsCommunicationQuote",{sendAttemptID:this.data.sendAttemptID},!0).subscribe({next:()=>{},error:()=>{}})}ngOnDestroy(){this.pollTimer&&clearTimeout(this.pollTimer),this.abandonQuote(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static \u0275fac=function(i){return new(i||a)(y(X),y(ee),y(ue),y(ge))};static \u0275cmp=I({type:a,selectors:[["teams-comm-payment-dialog"]],decls:44,vars:28,consts:[["stripeForm",""],["t
1itle","Confirm & Pay","titleId","teams-comm-payment-dialog-title","closeLabel","Close payment dialog",3,"closed","subtitle"],["aria-labelledby","teams-comm-payment-dialog-title"],["aria-labelledby","charge-summary-heading",1,"charge-summary","rpui-card"],["id","charge-summary-heading",1,"rpui-eyebrow"],[1,"charge-summary__item"],[1,"charge-summary__note"],["aria-label","Payment processing",1,"payment-panel","rpui-card"],["aria-labelledby","payment-method-heading",1,"payment-panel","rpui-card"],[1,"payment-panel__heading"],["id","payment-method-heading"],["aria-label","Total due",1,"payment-total"],["description","Team Communication Email Send",1,"w-100-p",3,"paymentCallBack","dialogMode","fullView","amount","cards","loading"],[1,"rpui-dialog-actions"],[1,"rpui-spacer"],["mat-button","","type","button",3,"click","disabled"],["mat-flat-button","","color","primary","type","button",3,"click","disabled"],["mode","indeterminate"],[1,"processing-note"]],template:function(i,t){if(i&1){let l=P();o(0,"rp-dialog-header",1),h("closed",function(){return d(l),p(t.cancel())}),n(),o(1,"mat-dialog-content",2)(2,"section",3)(3,"div",4),s(4,"Campaign"),n(),o(5,"dl")(6,"div",5)(7,"dt"),s(8,"Recipients"),n(),o(9,"dd"),s(10),S(11,"number"),n()(),o(12,"div",5)(13,"dt"),s(14,"Rate"),n(),o(15,"dd"),s(16),S(17,"currency"),S(18,"currency"),n()()(),o(19,"p",6),s(20,"No refunds \u2014 undelivered emails are not credited."),n()(),u(21,Ht,4,0,"section",7),o(22,"section",8)(23,"div",9)(24,"div")(25,"h3",10),s(26,"Payment method"),n(),o(27,"p"),s(28,"Select a saved card or enter a new card below."),n()(),o(29,"div",11)(30,"span"),s(31,"Total due"),n(),o(32,"strong"),s(33),S(34,"currency"),n()()(),o(35,"tinc-stripe",12,0),h("paymentCallBack",function(x){return d(l),p(t.pay(x))}),n()()(),o(37,"mat-dialog-actions",13),T(38,"span",14),o(39,"button",15),h("click",function(){return d(l),p(t.cancel())}),s(40,"Cancel"),n(),o(41,"button",16),h("click",function(){d(l);let x=ye(36);return p(x.handleSubmit())}),s(42),S(43,"currency"),n()()}if(i&2){let l=ye(36);_("subtitle",(t.data.payload==null?null:t.data.payload.subject)||""),r(10),C(k(11,18,t.data.quote.recipientCount)),r(6),O("",k(17,20,t.data.quote.rateCentsPer1000/100)," per 1,000 \xB7 ",k(18,22,t.data.quote.minimumCents/100)," minimum"),r(5),g(t.paying?21:-1),r(),V("payment-panel--hidden",t.paying),r(11),C(k(34,24,t.data.quote.chargeAmountCents/100)),r(2),_("dialogMode",!0)("fullView",!0)("amount",t.data.quote.chargeAmountCents)("cards",t.cards)("loading",t.loadingCards),r(4),_("disabled",t.paying),r(2),V("spinner",t.paying||l.processing),_("disabled",t.paying||l.isButtonDisabled()),r(),E(" Pay ",k(43,26,t.data.quote.chargeAmountCents/100)," & Send ")}},dependencies:[q,W,D,ne,ie,te,pe,de,dt,nt,L,G],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)}[_nghost-%COMP%]{display:flex;flex-direction:column;max-height:90vh;overflow:hidden;color:#122033}mat-dialog-content[_ngcontent-%COMP%]{flex:1 1 auto;box-sizing:border-box;min-height:0;max-height:72vh;padding:24px;overflow-x:hidden;background:#f7f9fc}.charge-summary[_ngcontent-%COMP%], .payment-panel[_ngcontent-%COMP%]{box-sizing:border-box}.charge-summary[_ngcontent-%COMP%] dl[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:12px 0 0}.charge-summary__item[_ngcontent-%COMP%]{min-width:0}.charge-summary[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{margin-bottom:2px;color:#64798c;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.charge-summary[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;color:#122033;font-size:14px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}.charge-summary__note[_ngcontent-%COMP%]{margin:12px 0 0;padding-top:12px;border-top:1px solid #e8edf3;color:#64798c;font-size:12px;line-height:1.4}.payment-panel[_ngcontent-%COMP%]{margin-top:16px}.payment-panel--hidden[_ngcontent-%COMP%]{display:none}.payment-panel__heading[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #e8edf3}.payment-panel__heading[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .payment-panel__heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.payment-panel__heading[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#10243f;font-size:14px;font-weight:700}.payment-panel__heading[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:2px;color:#64798c;font-size:12px;line-height:1.4}.payment-total[_ngcontent-%COMP%]{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end}.payment-total[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#64798c;font-size:11px;font-weight:600;text-transform:uppercase}.payment-total[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#10243f;font-size:20px;font-variant-numeric:tabular-nums;line-height:1.3}tinc-stripe[_ngcontent-%COMP%]{display:block;margin-top:12px}.processing-note[_ngcontent-%COMP%]{margin:12px 0 0;color:#64798c;font-size:13px}@media screen and (max-width:599px){mat-dialog-content[_ngcontent-%COMP%]{padding:16px}.charge-summary[_ngcontent-%COMP%], .payment-panel[_ngcontent-%COMP%]{padding:16px}.charge-summary[_ngcontent-%COMP%] dl[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr);gap:12px}.payment-panel__heading[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.payment-total[_ngcontent-%COMP%]{align-items:flex-start}}"]})}return a})();var we="2026-08-19",xt=(()=>{class a{sheetRef;version=we;constructor(e){this.sheetRef=e}close(){this.sheetRef.dismiss()}static \u0275fac=function(i){return new(i||a)(y(qe))};static \u0275cmp=I({type:a,selectors:[["teams-comm-terms-sheet"]],decls:53,vars:1,consts:[[1,"terms-sheet"],[1,"terms-header"],["id","teamsCommTermsTitle",1,"red-fg"],["mat-icon-button","","type","button","aria-label","Close terms and conditions",3,"click"],[1,"terms-body"],[1,"red-fg"],[1,"terms-version"],[1,"terms-actions"],["mat-stroked-button","","type","button",3,"click"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"div",1)(2,"h2",2),s(3,"Communicate With Teams \u2014 Terms & Conditions"),n(),o(4,"button",3),h("click",function(){return t.close()}),o(5,"mat-icon"),s(6,"close"),n()()(),o(7,"div",4)(8,"ol")(9,"li")(10,"strong"),s(11,"Send only as yourself."),n(),s(12," You are sending as the director this account belongs to. Do not let anyone else send under your login. "),n(),o(13,"li")(14,"strong"),s(1
15,"Association business only."),n(),s(16," Use these emails for league, tournament and registration matters. Do not send personal, political, or third-party advertising, and do not sell or trade the ability to send. "),n(),o(17,"li")(18,"strong"),s(19,"Stay inside your area."),n(),s(20," You may only reach the teams in the counties assigned to you. Do not try to work around that limit. "),n(),o(21,"li")(22,"strong"),s(23,"Write honestly."),n(),s(24," The subject line must match the message. Nothing abusive, harassing, discriminatory, deceptive, or unlawful. "),n(),o(25,"li")(26,"strong"),s(27,"Protect the recipients."),n(),s(28," Email addresses are never shown to you and must not be exported, copied, or reused anywhere outside this tool. "),n(),o(29,"li")(30,"strong"),s(31,"Unsubscribes are final."),n(),s(32," People who opted out are removed automatically. Do not contact them through another channel to get around it. "),n(),o(33,"li")(34,"strong"),s(35,"You pay when you send."),n(),s(36," The exact price is shown before the send is confirmed. Undelivered emails are not credited. "),n(),o(37,"li")(38,"strong",5),s(39,"Every send is recorded."),n(),s(40," We store your name, the time, your IP address, and your device details with each send, and we may review them. "),n(),o(41,"li")(42,"strong",5),s(43,"RegisterPlay can remove your access for cause."),n(),s(44," If you act in bad faith \u2014 break these terms, misrepresent who you are, send outside your area on purpose, or use these emails to harm someone, receive too many complaints, or otherwise abuse this tool \u2014 RegisterPlay may permanently remove your access to this tool. Serious cases will be reported to your association. "),T(45,"br")(46,"br"),s(47,"This service is used by all Register Play customers, please use it responsibly. "),n()(),o(48,"p",6),s(49),n()(),o(50,"div",7)(51,"button",8),h("click",function(){return t.close()}),s(52,"Close"),n()()()),i&2&&(r(49),E("Version ",t.version))},dependencies:[N,H,W,D,j],styles:[".terms-sheet[_ngcontent-%COMP%]{max-height:70vh;display:flex;flex-direction:column}.terms-sheet[_ngcontent-%COMP%] .terms-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.terms-sheet[_ngcontent-%COMP%] .terms-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:600}.terms-sheet[_ngcontent-%COMP%] .terms-body[_ngcontent-%COMP%]{overflow-y:auto;font-size:14px;line-height:1.55}.terms-sheet[_ngcontent-%COMP%] .terms-body[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:8px 0 0;padding-left:20px}.terms-sheet[_ngcontent-%COMP%] .terms-body[_ngcontent-%COMP%] li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-top:10px}.terms-sheet[_ngcontent-%COMP%] .terms-body[_ngcontent-%COMP%] .terms-version[_ngcontent-%COMP%]{margin:16px 0 0;font-size:12px;color:#000000a6}.terms-sheet[_ngcontent-%COMP%] .terms-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:12px}"]})}return a})();var _e=(a,m)=>m._key,Ut=(a,m)=>m.createdOn+m.subject;function Zt(a,m){a&1&&T(0,"mat-progress-bar",3)}function Kt(a,m){if(a&1&&s(0),a&2){let e=c();E(" in ",e.stateIDs.join(", ")," ")}}function Gt(a,m){if(a&1&&u(0,Kt,1,1),a&2){let e=m;g(e.stateIDs!=null&&e.stateIDs.length?0:-1)}}function Qt(a,m){if(a&1&&s(0),a&2){let e=c(4);E(" in ",e.options.allowedStateIDs.join(", ")," ")}}function Yt(a,m){if(a&1&&(o(0,"span",37),s(1),u(2,Gt,1,1)(3,Qt,1,1),s(4,") "),n()),a&2){let e,i=c(3);_("matTooltip",i.scopeCountyNames().join(", ")),r(),O(" (",i.scopeCountyNames().length," ",i.scopeCountyNames().length===1?"county":"counties"," "),r(),g((e=i.currentScope())?2:i.options.allowedStateIDs!=null&&i.options.allowedStateIDs.length?3:-1,e)}}function $t(a,m){a&1&&(o(0,"strong"),s(1,"\u2014 you have no counties assigned for this sport."),n())}function Jt(a,m){if(a&1&&(o(0,"div",4)(1,"mat-icon"),s(2,"info"),n(),o(3,"span"),s(4," You can send messages to teams in your assigned counties only. "),u(5,Yt,5,4,"span",37),u(6,$t,2,0,"strong"),n()()),a&2){let e=c(2);r(5),g(e.scopeCountyNames().length?5:-1),r(),g(e.form.sports.length&&!e.scopeCountyNames().length?6:-1)}}function Xt(a,m){if(a&1&&(o(0,"mat-option",9),s(1),n()),a&2){let e=m.$implicit;_("value",e._key),r(),C(e.name)}}function ei(a,m){if(a&1&&(o(0,"mat-option",9),s(1),n()),a&2){let e=m.$implicit;_("value",e._key),r(),C(e.name)}}function ti(a,m){if(a&1&&(o(0,"mat-option",9),s(1),n()),a&2){let e=m.$implicit,i=c(2);_("value",e._key),r(),O("",e.name,"",i.form.sports.length>
11?" \xB7 "+i.sportName(e.sport):"")}}function ii(a,m){if(a&1&&(o(0,"mat-option",9),s(1),n()),a&2){let e=m.$implicit;_("value",e._key),r(),C(e.name)}}function ni(a,m){if(a&1){let e=P();o(0,"mat-form-field",7)(1,"mat-label"),s(2,"States (optional)"),n(),o(3,"mat-select",38),v("ngModelChange",function(t){d(e);let l=c(2);return w(l.form.stateIDs,t)||(l.form.stateIDs=t),p(t)}),h("openedChange",function(t){d(e);let l=c(2);return p(l.onMultiSelectOpened(t,"stateIDs"))}),z(4,ii,2,2,"mat-option",9,_e),n()()}if(a&2){let e=c(2);r(3),M("ngModel",e.form.stateIDs),r(),R(e.statesForSports())}}function oi(a,m){if(a&1){let e=P();o(0,"mat-button-toggle-group",39),v("ngModelChange",function(t){d(e);let l=c(2);return w(l.form.qualificationType,t)||(l.form.qualificationType=t),p(t)}),h("change",function(){d(e);let t=c(2);return p(t.onQualificationChange())}),o(1,"mat-button-toggle",40),s(2,"All Qualified"),n(),o(3,"mat-button-toggle",41),s(4,"State"),n(),o(5,"mat-button-toggle",42),s(6,"National"),n()()}if(a&2){let e=c(2);M("ngModel",e.form.qualificationType)}}function ai(a,m){a&1&&(o(0,"span"),s(1,"Sending costs "),o(2,"strong"),s(3,"$1.00 per 1,000 recipients"),n(),s(4," ($1.00 minimum). You'll see the exact price before anything is sent."),n())}function si(a,m){a&1&&(o(0,"span"),s(1,"Sending costs "),o(2,"strong"),s(3,"$1.50 per 1,000 recipients"),n(),s(4," ($1.50 minimum). You'll see the exact price before anything is sent."),n())}function ri(a,m){if(a&1&&(o(0,"div",22)(1,"mat-icon"),s(2,"info_outline"),n(),u(3,ai,5,0,"span")(4,si,5,0,"span"),n()),a&2){let e=c(2);r(3),g(e.association=="nsa"||e.association=="bpa"?3:4)}}function li(a,m){a&1&&T(0,"mat-progress-bar",3)}function ci(a,m){if(a&1&&(o(0,"tr")(1,"td"),s(2),S(3,"date"),n(),o(4,"td"),s(5),n(),o(6,"td"),s(7),n(),o(8,"td"),s(9),S(10,"number"),n()()),a&2){let e=m.$implicit;r(2),C(K(3,4,e.createdOn,"MMM d, h:mm a")),r(3),C(e.senderName),r(2),C(e.subject),r(2),C(k(10,7,e.count))}}function mi(a,m){if(a&1&&(o(0,"mat-expansion-panel",43)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),s(3),n(),o(4,"mat-panel-description"),s(5,"Last 30 days"),n()(),o(6,"table",44)(7,"thead")(8,"tr")(9,"th"),s(10,"When"),n(),o(11,"th"),s(12,"Sender"),n(),o(13,"th"),s(14,"Subject"),n(),o(15,"th"),s(16,"Recipients"),n()()(),o(17,"tbody"),z(18,ci,11,9,"tr",null,Ut),n()()()),a&2){let e=c(3);r(3),E("Recent Sends (",e.recentSends.length,")"),r(15),R(e.recentSends)}}function di(a,m){if(a&1&&(o(0,"mat-card",23)(1,"mat-card-content"),u(2,li,1,0,"mat-progress-bar",3)(3,mi,20,1,"mat-expansion-panel",43),n()()),a&2){let e=c(2);r(2),g(e.recentLoading?2:3)}}function pi(a,m){if(a&1&&(s(0),S(1,"number")),a&2){let e=c(2);O(" ",k(1,2,e.previewTotalCount)," recipient",e.previewTotalCount===1?"":"s"," ")}}function ui(a,m){a&1&&s(0," Recipients not set \u2014 use Set Recipients to choose who gets this email ")}function gi(a,m){if(a&1&&s(0),a&2){let e=c(2);O(" \xB7 ",e.excludedTeamKeys.length," team",e.excludedTeamKeys.length===1?"":"s"," excluded ")}}function hi(a,m){if(a&1){let e=P();o(0,"button",45),h("click",function(){d(e);let t=c(2);return p(t.clearExclusions())}),o(1,"mat-icon"),s(2,"close"),n()()}}function fi(a,m){if(a&1){let e=P();u(0,Jt,7,2,"div",4),o(1,"mat-card",5)(2,"mat-card-content")(3,"div",6)(4,"mat-form-field",7)(5,"mat-label"),s(6,"Sports"),n(),o(7,"mat-select",8),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.sports,t)||(l.form.sports=t),p(t)}),h("selectionChange",function(){d(e);let t=c();return p(t.onSportsChange())})("openedChange",function(t){d(e);let l=c();return p(l.onMultiSelectOpened(t,"sports"))}),z(8,Xt,2,2,"mat-option",9,_e),n()(),o(10,"mat-form-field",7)(11,"mat-label"),s(12,"Seasons"),n(),o(13,"mat-select",8),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.teamSeasons,t)||(l.form.teamSeasons=t),p(t)}),h("selectionChange",function(t){d(e);let l=c();return p(l.onSeasonsChange(t.value))})("openedChange",function(t){d(e);let l=c();return p(l.onMultiSelectOpened(t,"teamSeasons"))}),o(14,"mat-select-trigger"),s(15),n(),o(16,"mat-option",9),s(17,"All Seasons"),n(),z(18,ei,2,2,"mat-option",9,_e),n()(),o(20,"mat-form-field",7)(21,"mat-label"),s(22,"Classes (optional)"),n(),o(23,"mat-select",10),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.classIDs,t)||(l.form.classIDs=t),p(t)}),h("openedChange",function(t){d(e);let l=c();return p(l.onMultiSelectOpened(t,"classIDs"))}),z(24,ti,2,3,"mat-option",9,_e),n()(),u(26,ni,6,1,"mat-form-field",7),n(),o(27,"div",11)(28,"div",12)(29,"div",13)(30,"label",14),s(31,"Qualification (berth)"),n(),o(32,"mat-slide-toggle",15),v("ngModelChange",function(t){d(e);let l=c();return w(l.qualificationEnabled,t)||(l.qualificationEnabled=t),p(t)}),h("change",function(){d(e);let t=c();return p(t.onQualificationChange())}),s(33),n()(),u(34,oi,7,1,"mat-button-toggle-group",16),n(),o(35,"div",12)(36,"label",14),s(37,"Send To (one or more)"),n(),o(38,"mat-button-toggle-group",17),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.contactTypes,t)||(l.form.contactTypes=t),p(t)}),h("change",function(){d(e);let t=c();return p(t.onContactTypesChange())}),o(39,"mat-button-toggle",18),s(40,"Head Coaches"),n(),o(41,"mat-button-toggle",19),s(42,"Coaches"),n(),o(43,"mat-button-toggle",20),s(44,"Players"),n()()(),o(45,"div",12)(46,"label",14),s(47,"Recipients"),n(),o(48,"button",21),h("click",function(){d(e);let t=c();return p(t.previewContacts())}),o(49,"mat-icon"),s(50,"groups"),n(),o(51,"span"),s(52),n()()()()()(),u(53,ri,5,1,"div",22),u(54,di,4,1,"mat-card",23),o(55,"mat-card",24)(56,"mat-card-content")(57,"mat-form-field",25)(58,"mat-label"),s(59,"Subject"),n(),o(60,"input",26),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.subject,t)||(l.form.subject=t),p(t)}),n()(),o(61,"div",27)(62,"editor",28),v("ngModelChange",function(t){d(e);let l=c();return w(l.form.htmlMessage,t)||(l.form.htmlMessage=t),p(t)}),n()()()(),o(63,"div",29)(64,"mat-icon"),s(65),n(),o(66,"span"),u(67,pi,2,4)(68,ui,1,0),u(69,gi,1,2),n(),u(70,hi,3,0,"button",30),n(),o(71,"div",31)(72,"mat-checkbox",32),v("ngModelChange",function(t){d(e);let l=c();return w(l.termsAccepted,t)||(l.termsAccepted=t),p(t)}),s(73," I have read and agree to the Communicate With Teams "),n(),o(74,"button",33),h("click",function(){d(e);let t=c();return p(t.openTerms())}),s(75,"Terms & Conditions"),n()(),o(76,"div",34)(77,"button",35),h("click",function(){d(e);let t=c();return p(t.sendTest())}),o(78,"mat-icon"),s(79,"mark_email_read"),n(),o(80,"span"),s(81),n()(),o(82,"button",36),h("click",function(){d(e);let t=c();return p(t.send())}),o(83,"mat-icon"),s(84,"send"),n(),o(85,"span"),s(86),n()()()}if(a&2){let e=c();g(e.fullAccess?-1:0),r(7),M("ngModel",e.form.sports),r(),R(e.sportsInScope()),r(5),M("ngModel",e.form.teamSeasons),r(2),C(e.seasonsTriggerLabel()),r(),_("value",e.ALL_SEASONS),r(2),R(e.options.seasons),r(5),M("ngModel",e.form.classIDs),_("disabled",!e.form.sports.length)("placeholder",e.form.sports.length?"":"Select a sport first"),r(),R(e.classesForSports()),r(2),g(e.association!="usasb"?26:-1),r(6),M("ngModel",e.qualificationEnabled),r(),E(" ",e.qualificationEnabled?"On":"Off"," "),r(),g(e.qualificationEnabled?34:-1),r(4),M("ngModel",e.form.contactTypes),r(10),V("spinner",e.previewing),_("disabled",e.previewing||e.sending||e.sendingTest),r(4),C(e.previewing?"Loading\u2026":"Set Recipients"),r(),g(e.exempt?-1:53),r(),g(e.recentLoading||e.recentSends.length?54:-1),r(6),M("ngModel",e.form.subject),r(2),_("init",e.editorConfig),M("ngModel",e.form.htmlMessage),_("licenseKey","gpl"),r(),V("excluding",e.excludedTeamKeys.length>0),r(2),C(e.excludedTeamKeys.length?"filter_alt":"group"),r(2),g(e.previewTotalCount!==null?67:68),r(2),g(e.excludedTeamKeys.length?69:-1),r(),g(e.excludedTeamKeys.length?70:-1),r(2),M("ngModel",e.termsAccepted),r(5),_("disabled",e.sendingTest||e.sending||e.previewing),r(4),C(e.sendingTest?"Sending Test\u2026":"Send Test"),r(),_("disabled",e.sending||e.previewing||e.sendingTest||!e.canSend()),r(4),C(e.sendButtonLabel())}}var yt=(()=>{class a{api;notify;cdr;dialog;bottomSheet;loading=!1;sending=!1;previewing=!1;sendingTest=!1;initLoaded=!1;association=Le.association??"usasb";termsAccepted=!1;fullAccess=!1;options={fullAccess:!1,allowedStateIDs:null,allowedCountyNames:null,scopeBySport:null,sports:[],seasons:[],classes:[],states:[]};qualificationEnabled=!1;exempt=!1;recentSends=[];recentLoading=!1;recentSeq=0;excludedTeamKeys=[];previewTotalCount=null;lastPriceEstimate=null;
1multiSnapshot=null;ALL_SEASONS="__allSeasons__";allSeasonsChecked=!1;skipContentReview=!1;form={sports:[],teamSeasons:[],classIDs:[],stateIDs:[],qualificationType:"all",contactTypes:["headCoaches"],subject:"",htmlMessage:""};editorConfig={base_url:"/tinymce",suffix:".min",placeholder:"Type here...",min_height:600,innerHeight:600,height:600,promotion:!1,statusbar:!1,branding:!1,forced_root_block:"div",end_container_on_empty_block:!0,remove_trailing_brs:!1,paste_as_text:!1,paste_auto_cleanup_on_paste:!1,paste_remove_styles:!1,paste_remove_styles_if_webkit:!1,paste_merge_formats:!0,smart_paste:!0,paste_data_images:!0,noneditable_class:"mceNonEditable",spellchecker_active:!0,spellchecker_language:"en_US",spellchecker_languages:"English (United States)=en_US,English (United Kingdom)=en_GB",typography_langs:["en-US"],typography_default_lang:"en-US",font_size_formats:"10px 12px 14px 16px 18px 20px 22px 24px 28px 32px 36px 40px 48px",font_family_formats:"Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago;Poppins=poppins; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats",details_initial_state:"collapsed",details_serialized_state:"collapsed",quickbars_image_toolbar:"alignleft aligncenter alignright | imageoptions",quickbars_selection_toolbar:"bold italic align | link openlink unlink h2 h3",quickbars_insert_toolbar:!1,contextmenu:"bold italic underline | link openlink unlink
1image editImage",relative_urls:!1,convert_urls:!1,link_default_target:"_blank",default_link_target:"_blank",style_formats:[{title:"Bold text",inline:"b"},{title:"Uppercase",inline:"span",styles:{textTransform:"uppercase"}},{title:"Lowercase",inline:"span",styles:{textTransform:"lowercase"}},{title:"Capitalize",inline:"span",styles:{textTransform:"capitalize"}},{title:"Red text",inline:"span",styles:{color:"#ff0000"}},{title:"Red header",block:"h1",styles:{color:"#ff0000"}},{title:"Highligted text",inline:"span",styles:{color:"#00ff00"}},{title:"Badge",inline:"span",styles:{display:"inline-block",border:"1px solid #2276d2","border-radius":"5px",padding:"2px 5px",margin:"0 2px",color:"#2276d2"}},{title:"Red Button",inline:"span",styles:{display:"inline-block",border:"1px solid #e50000","border-radius":"5px",padding:"2px 5px",margin:"10px 0px",color:"#fff",background:"#e50000"}},{title:"Underline",selector:"a",styles:{"text-decoration":"underline"},attributes:{target:"_blank",class:"bold text-underline"}},{title:"No Underline",selector:"a",styles:{"text-decoration":"none"}},{title:"Text Shadow (White)",selector:"span",styles:{"text-shadow":"2px 2px #ffffff"}},{title:"Text Shadow (Black)",selector:"span",styles:{"text-shadow":"2px 2px #000000"}},{title:"No Shadow",selector:"span",styles:{"text-shadow":"none"}}],image_class_list:[{title:"None",value:""},{title:"img-responsive",value:"img-responsive"}],style_formats_merge:!0,importcss_append:!0,image_caption:!0,image_description:!1,image_advtab:!0,table_column_resizing:"resizetable",tablecellvalign:"top",object_resizing:!0,table_sizing_mode:"auto",table_resize_bars:!0,autoresize_bottom_margin:20,images_file_types:"JPG,JPEG,jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp,WEBP",file_picker_types:"file image media",toolbar_mode:"sliding",mobile:{menubar:!1,toolbar_mode:"scrolling",toolbar:"undo redo | forecolor backcolor | bold italic | fontfamily fontsize | alignleft aligncenter alignright al
1ignjustify | link unlink | image media"},block_formats:"Header 1=h1; Header 2=h2; Header 3=h3; Header 4=h4; Header 5=h5; Heading 6=h6;",plugins:["advlist","autolink","lists","link","image","charmap","preview","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","directionality","emoticons","importcss","quickbars"],toolbar:"undo redo | bold italic underline | fontfamily fontsize lineheight | forecolor backcolor | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | strikethrough blockquote subscript superscript | link unlink |lists image media table | removeformat preview selectall insertdatetime code fullscreen uploadPDF wordButton excelButton pptButton",setup:e=>{e.ui.registry.addIcon("pdf",'<svg height="24px" width="24px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve"><path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/><path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/><polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/><path style="fill:#F15642;" d="M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 V416z"/><g><path style="fill:#FFFFFF;" d="M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"/><path style="fill:#FFFFFF;" d="M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"/><path style="fill:#FFFFFF;" d="M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"/> </g><path style="fill:#CAD1D8;" d="M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"/></svg>'),e.ui.registry.addIcon("word",'<svg width="24px" height="24px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="a" x1="4.494" y1="-1712.086" x2="13.832" y2="-1695.914" gradientTransform="translate(0 1720)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#2368c4"/><stop offset="0.5" stop-color="#1a5dbe"/><stop offset="1" stop-color="#1146ac"/></linearGradient></defs><title>file_type_word</title><path d="M28.806,3H9.705A1.192,1.192,0,0,0,8.512,4.191h0V9.5l11.069,3.25L30,9.5V4.191A1.192,1.192,0,0,0,28.806,3Z" style="fill:#41a5ee"/><path d="M30,9.5H8.512V16l11.069,1.95L30,16Z" style="fill:#2b7cd3"/><path d="M8.512,16v6.5L18.93,23.8,30,22.5V16Z" style="fill:#185abd"/><path d="M9.705,29h19.1A1.192,1.192,0,0,0,30,27.809h0V22.5H8.512v5.309A1.192,1.192,0,0,0,9.705,29Z" style="fill:#103f91"/><path d="M16.434,8.2H8.512V24.45h7.922a1.2,1.2,0,0,0,1.194-1.191V9.391A1.2,1.2,0,0,0,16.434,8.2Z" style="opacity:0.10000000149011612;isolation:isolate"/><path d="M15.783,8.85H8.512V25.1h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M15.783,8.85H8.512V23.8h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M15.132,8.85H8.512V23.8h6.62a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.132,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M3.194,8.85H15.132a1.193,1.193,0,0,1,1.194,1.191V21.959a1.193,1.193,0,0,1-1.194,1.191H3.194A1.192,1.192,0,0,1,2,21.959V10.041A1.192,1.192,0,0,1,3.194,8.85Z" style="fill:url(#a)"/><path d="M6.9,17.988c.023.184.039.344.046.481h.028c.01-.13.032-.287.065-.47s.062-.338.089-.465l1.255-5.407h1.624l1.3,5.326a7.761,7.761,0,0,1,.162,1h.022a7.6,7.6,0,0,1,.135-.975l1.039-5.358h1.477l-1.824,7.748H10.591L9.354,14.742q-.054-.222-.122-.578t-.084-.52H9.127q-.021.189-.084.561c-.042.249-.075.432-.1.552L7.78,19.871H6.024L4.19,12.127h1.5l1.131,5.418A4.469,4.469,0,0,1,6.9,17.988Z" style="fill:#fff"/></svg>'),e.ui.registry.addIcon("excel",'<svg width="24px" height="24px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="a" x1="4.494" y1="-2092.086" x2="13.832" y2="-2075.914" gradientTransform="translate(0 2100)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#18884f"/><stop offset="0.5" stop-color="#117e43"/><stop offset="1" stop-color="#0b6631"/></linearGradient></defs><title>file_type_excel</title><path d="M19.581,15.35,8.512,13.4V27.809A1.192,1.192,0,0,0,9.705,29h19.1A1.192,1.192,0,0,0,30,27.809h0V22.5Z" style="fill:#185c37"/><path d="M19.581,3H9.705A1.192,1.192,0,0,0,8.512,4.191h0V9.5L19.581,16l5.861,1.95L30,16V9.5Z" style="fill:#21a366"/><path d="M8.512,9.5H19.581V16H8.512Z" style="fill:#107c41"/>
1<path d="M16.434,8.2H8.512V24.45h7.922a1.2,1.2,0,0,0,1.194-1.191V9.391A1.2,1.2,0,0,0,16.434,8.2Z" style="opacity:0.10000000149011612;isolation:isolate"/><path d="M15.783,8.85H8.512V25.1h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M15.783,8.85H8.512V23.8h7.271a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.783,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M15.132,8.85H8.512V23.8h6.62a1.2,1.2,0,0,0,1.194-1.191V10.041A1.2,1.2,0,0,0,15.132,8.85Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M3.194,8.85H15.132a1.193,1.193,0,0,1,1.194,1.191V21.959a1.193,1.193,0,0,1-1.194,1.191H3.194A1.192,1.192,0,0,1,2,21.959V10.041A1.192,1.192,0,0,1,3.194,8.85Z" style="fill:url(#a)"/><path d="M5.7,19.873l2.511-3.884-2.3-3.862H7.758L9.013,14.6c.116.234.2.408.238.524h.017c.082-.188.169-.369.26-.546l1.342-2.447h1.7l-2.359,3.84,2.419,3.905H10.821l-1.45-2.711A2.355,2.355,0,0,1,9.2,16.8H9.176a1.688,1.688,0,0,1-.168.351L7.515,19.873Z" style="fill:#fff"/><path d="M28.806,3H19.581V9.5H30V4.191A1.192,1.192,0,0,0,28.806,3Z" style="fill:#33c481"/><path d="M19.581,16H30v6.5H19.581Z" style="fill:#107c41"/></svg>'),e.ui.registry.addIcon("ppt",'<svg width="24px" height="24px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient id="a" x1="4.494" y1="-1748.086" x2="13.832" y2="-1731.914" gradientTransform="translate(0 1756)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ca4c28"/><stop offset="0.5" stop-color="#c5401e"/><stop offset="1" stop-color="#b62f14"/></linearGradient></defs><title>file_type_powerpoint</title><path d="M18.93,17.3,16.977,3h-.146A12.9,12.9,0,0,0,3.953,15.854V16Z" style="fill:#ed6c47"/><path d="M17.123,3h-.146V16l6.511,2.6L30,16v-.146A12.9,12.9,0,0,0,17.123,3Z" style="fill:#ff8f6b"/><path d="M30,16v.143A12.905,12.905,0,0,1,17.12,29h-.287A12.907,12.907,0,0,1,3.953,16.143V16Z" style="fill:#d35230"/><path d="M17.628,9.389V23.26a1.2,1.2,0,0,1-.742,1.1,1.16,1.16,0,0,1-.45.091H7.027c-.182-.208-.358-.429-.521-.65a12.735,12.735,0,0,1-2.553-7.657v-.286A12.705,12.705,0,0,1,6.05,8.85c.143-.221.293-.442.456-.65h9.93A1.2,1.2,0,0,1,17.628,9.389Z" style="opacity:0.10000000149011612;isolation:isolate"/><path d="M16.977,10.04V23.911a1.15,1.15,0,0,1-.091.448,1.2,1.2,0,0,1-1.1.741H7.62q-.309-.314-.593-.65c-.182-.208-.358-.429-.521-.65a12.735,12.735,0,0,1-2.553-7.657v-.286A12.705,12.705,0,0,1,6.05,8.85h9.735A1.2,1.2,0,0,1,16.977,10.04Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M16.977,10.04V22.611A1.2,1.2,0,0,1,15.785,23.8H6.506a12.735,12.735,0,0,1-2.553-7.657v-.286A12.705,12.705,0,0,1,6.05,8.85h9.735A1.2,1.2,0,0,1,16.977,10.04Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M16.326,10.04V22.611A1.2,1.2,0,0,1,15.134,23.8H6.506a12.735,12.735,0,0,1-2.553-7.657v-.286A12.705,12.705,0,0,1,6.05,8.85h9.084A1.2,1.2,0,0,1,16.326,10.04Z" style="opacity:0.20000000298023224;isolation:isolate"/><path d="M3.194,8.85H15.132a1.193,1.193,0,0,1,1.194,1.191V21.959a1.193,1.193,0,0,1-1.194,1.191H3.194A1.192,1.192,0,0,1,2,21.959V10.041A1.192,1.192,0,0,1,3.194,8.85Z" style="fill:url(#a)"/><path d="M9.293,12.028a3.287,3.287,0,0,1,2.174.636,2.27,2.27,0,0,1,.756,1.841,2.555,2.555,0,0,1-.373,1.376,2.49,2.49,0,0,1-1.059.935A3.607,3.607,0,0,1,9.2,17.15H7.687v2.8H6.141V12.028ZM7.686,15.94H9.017a1.735,1.735,0,0,0,1.177-.351,1.3,1.3,0,0,0,.4-1.025q0-1.309-1.525-1.31H7.686V15.94Z" style="fill:#fff"/></svg>'),e.ui.registry.addButton("uploadPDF",{icon:"pdf",onAction:()=>{this.customFileUploader(e,"pdf")}}),e.ui.registry.addButton("wordButton",{icon:"word",onAction:()=>{this.customFileUploader(e,"word")}}),e.ui.registry.addButton("excelButton",{icon:"excel",onAction:()=>{this.customFileUploader(e,"excel")}}),e.ui.registry.addButton("pptButton",{icon:"ppt",onAction:()=>{this.customFileUploader(e,"ppt")}})},file_picker_callback:(e,i,t)=>{if(t.filetype=="file"&&e("mypage.html",{text:"My text"}),t.filetype=="image"){var l=document.createElement("input");l.setAttribute("type","file"),l.setAttribute("accept","image/*"),l.onchange=()=>{var f=l.files[0],x=new FileReader;x.onload=()=>{var A=x.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",oe(f.name,A),!0).subscribe(U=>{e(U.url,{title:f.name})},U=>{console.log("error",U)})},x.readAsDataURL(f)},l.click()}
1t.filetype=="media"&&e("movie.mp4",{source2:"alt.ogg",poster:"image.jpg"})},paste_preprocess:(e,i)=>xe(this,null,function*(){if(i.content.indexOf('src="blob:')>-1){i.preventDefault();let t=i.content.match(/src="([^"]*)"/)[1];i.content=yield this.customBlob(e,t),e.insertContent(i.content)}})};_unsubscribeAll=new Z;constructor(e,i,t,l,f){this.api=e,this.notify=i,this.cdr=t,this.dialog=l,this.bottomSheet=f}ngOnInit(){this.loadInit()}loadInit(){this.loading=!0,this.api.get("MailCampaign/teamsCommunicationInit",!0).pipe(b(this._unsubscribeAll)).subscribe({next:e=>{this.options={fullAccess:!!e?.fullAccess,allowedStateIDs:e?.allowedStateIDs||null,allowedCountyNames:e?.allowedCountyNames||null,scopeBySport:e?.scopeBySport||null,sports:e?.sports||[],seasons:e?.seasons||[],classes:e?.classes||[],states:e?.states||[]},this.fullAccess=this.options.fullAccess,this.exempt=!!e?.exempt,this.initLoaded=!0,this.loading=!1,this.cdr.markForCheck()},error:e=>{this.loading=!1,this.notify.openErrorModal(e?.error||"Unable to load filter options.")}})}classesForSports(){if(!this.form.sports.length)return[];let e=new Set(this.form.sports);return this.options.classes.filter(i=>e.has(i.sport))}sportName(e){return this.options.sports.find(i=>i._key===e)?.name||e||""}sportsInScope(){if(this.fullAccess||!this.options.scopeBySport)return this.options.sports;let e=this.options.scopeBySport;return this.options.sports.filter(i=>!!e[i._key])}currentScope(){if(this.fullAccess||!this.form.sports.length)return null;let e=new Set,i=new Set;for(let t of this.form.sports){let l=this.options.scopeBySport?.[t];for(let f of l?.stateIDs||[])e.add(f);for(let f of l?.countyNames||[])i.add(f)}return{stateIDs:[...e].sort(),countyNames:[...i].sort()}}statesForSports(){let e=this.currentScope();if(!e)return this.options.states;let i=new Set(e.stateIDs||[]);return this.options.states.filter(t=>i.has(t._key))}scopeCountyNames(){return this.currentScope()?.countyNames??this.options.allowedCountyNames??[]}onSportsChange(){let e=new Set(this.classesForSports().map(x=>x._key)),i=(this.form.classIDs||[]).filter(x=>e.has(x)),t=new Set(this.statesForSports().map(x=>x._key)),l=(this.form.stateIDs||[]).filter(x=>t.has(x)),f=i.length!==(this.form.classIDs||[]).length||l.length!==(this.form.stateIDs||[]).length;this.form.classIDs=i,this.form.stateIDs=l,f&&this.clearTeamSelection(),this.refreshRecentSends()}onSeasonsChange(e){let i=this.options.seasons.map(f=>f._key),t=(e||[]).filter(f=>f!==this.ALL_SEASONS),l=(e||[]).includes(this.ALL_SEASONS);l!==this.allSeasonsChecked?this.form.teamSeasons=l&&i.length?[this.ALL_SEASONS,...i]:[]:this.form.teamSeasons=i.length&&t.length===i.length?[this.ALL_SEASONS,...t]:t,this.allSeasonsChecked=this.form.teamSeasons.includes(this.ALL_SEASONS),this.refreshRecentSends()}selectedSeasons(){return(this.form.teamSeasons||[]).filter(e=>e!==this.ALL_SEASONS)}seasonsTriggerLabel(){let e=this.selectedSeasons();return e.length?this.allSeasonsChecked?"All Seasons":e.join(", "):""}onMultiSelectOpened(e,i){let t=[...this.form[i]||[]].sort().join(",");if(e){this.multiSnapshot=t;return}this.multiSnapshot!==null&&this.multiSnapshot!==t&&this.clearTeamSelection(),this.multiSnapshot=null}onQualificationChange(){this.clearTeamSelection()}onContactTypesChange(){this.previewTotalCount=null,this.lastPriceEstimate=null}clearTeamSelection(){this.previewTotalCount=null,this.lastPriceEstimate=null,this.excludedTeamKeys.length&&(this.excludedTeamKeys=[],this.notify.openInfoModal("Team selections were cleared because the recipient filters changed. All matching teams are selected again."))}clearExclusions(){this.excludedTeamKeys=[],this.previewTotalCount=null,this.lastPriceEstimate=null,this.refreshPreviewCount(),this.cdr.markForCheck()}refreshRecentSends(){let e=++this.recentSeq,i=this.selectedSeasons();if(!this.form.sports.length||!i.length){this.recentSends=[],this.recentLoading=!1;return}this.recentLoading=!0,this.api.post("MailCampaign/teamsCommunicationRecentSends",{sports:this.form.sports,teamSeasons:i},!0).pipe(b(this._unsubscribeAll)).subscribe({next:t=>{e===this.recentSeq&&(this.recentSends=Array.isArray(t)?t:[],this.recentLoading=!1,this.cdr.markForCheck())},error:()=>{e===this.recentSeq&&(this.recentSends=[],this.recentLoading=!1,this.cdr.markForCheck())}})}canSend(){return this.form.sports.length>0&&this.selectedSeasons().length>0&&(this.form.contactTypes||[]).length>
10&&(!this.qualificationEnabled||!!this.form.qualificationType)&&!!this.form.subject?.trim()&&!!this.form.htmlMessage?.trim()&&this.previewTotalCount!==null&&this.previewTotalCount>0&&this.termsAccepted}openTerms(){this.bottomSheet.open(xt)}termsClient(){return{version:we,userAgent:navigator.userAgent,language:navigator.language,platform:navigator.userAgentData?.platform??navigator.platform??null,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`,viewport:`${window.innerWidth}x${window.innerHeight}`}}sendButtonLabel(){return this.sending?"Sending\u2026":this.exempt?"Send":this.lastPriceEstimate&&this.previewTotalCount!==null?`Pay $${(this.lastPriceEstimate.chargeAmountCents/100).toFixed(2)} & Send`:"Pay & Send"}validateFilters(e){return this.form.sports.length?this.selectedSeasons().length?this.form.contactTypes?.length?this.qualificationEnabled&&!this.form.qualificationType?(this.notify.openWarningModal("Please select a qualification filter."),!1):e&&!this.form.subject?.trim()?(this.notify.openWarningModal("Subject is required."),!1):e&&!this.form.htmlMessage?.trim()?(this.notify.openWarningModal("Message body is required."),!1):!0:(this.notify.openWarningModal("Please select at least one recipient type."),!1):(this.notify.openWarningModal("Please select at least one season."),!1):(this.notify.openWarningModal("Please select at least one sport."),!1)}buildFilterPayload(){return{sports:this.form.sports,teamSeasons:this.selectedSeasons(),classIDs:this.form.classIDs||[],stateIDs:this.form.stateIDs||[],qualificationType:this.qual
1ificationEnabled?this.form.qualificationType:null,contactTypes:this.form.contactTypes||[],excludedTeamKeys:this.excludedTeamKeys||[],sendTo:"teams"}}previewContacts(){this.validateFilters(!1)&&(this.previewing=!0,this.api.post("MailCampaign/previewTeamsCommunicationRecipients",this.buildFilterPayload(),!0).pipe(b(this._unsubscribeAll)).subscribe({next:e=>{this.previewing=!1,this.previewTotalCount=e?.totalCount??0,this.lastPriceEstimate=e?.priceEstimate||null,this.dialog.open(_t,{width:"720px",maxWidth:"95vw",maxHeight:"85vh",autoFocus:!1,data:{teams:e?.teams||[],totalCount:e?.totalCount||0,priceEstimate:e?.priceEstimate||null,exempt:!!e?.exempt,unsubscribedCount:e?.unsubscribedCount||0,sportNames:Object.fromEntries(this.options.sports.map(i=>[i._key,i.name]))}}).afterClosed().pipe(b(this._unsubscribeAll)).subscribe(i=>{if(!i)return;let t=[...this.excludedTeamKeys].sort().join(",");this.excludedTeamKeys=i.excludedTeamKeys||[],t!==[...this.excludedTeamKeys].sort().join(",")&&this.refreshPreviewCount(),this.cdr.markForCheck()}),this.cdr.markForCheck()},error:e=>{this.previewing=!1,this.notify.openErrorModal(e?.error||"Preview failed.")}}))}refreshPreviewCount(){this.previewTotalCount=null,this.lastPriceEstimate=null,this.api.post("MailCampaign/previewTeamsCommunicationRecipients",this.buildFilterPayload(),!0).pipe(b(this._unsubscribeAll)).subscribe({next:e=>{this.previewTotalCount=e?.totalCount??0,this.lastPriceEstimate=e?.priceEstimate||null,this.cdr.markForCheck()},error:()=>this.cdr.markForCheck()})}sendTest(){if(!this.form.subject?.trim()){this.notify.openWarningModal("Subject is required.");return}if(!this.form.htmlMessage?.trim()){this.notify.openWarningModal("Message body is required.");return}let e={subject:this.form.subject.trim(),htmlMessage:this.form.htmlMessage,sendTo:"teams"};this.sendingTest=!0,this.api.post("MailCampaign/sendTeamsCommunicationTest",e,!0).pipe(b(this._unsubscribeAll)).subscribe({next:()=>{this.sendingTest=!1,this.notify.openInfoModal("A test copy has been queued to your email address.")},error:i=>{this.sendingTest=!1,this.notify.openErrorModal(i?.error||"Test send failed.")}})}buildSendPayload(){return B(F({},this.buildFilterPayload()),{subject:this.form.subject.trim(),htmlMessage:this.form.htmlMessage,skipContentReview:this.skipContentReview,termsAccepted:this.termsAccepted,termsClient:this.termsClient()})}send(){if(!this.validateFilters(!0))return;let e=this.buildSendPayload();this.skipContentReview=!1;let i=crypto.randomUUID();this.sending=!0,this.api.post("MailCampaign/sendTeamsCommunication",B(F({},e),{sendAttemptID:i,mode:"quote"}),!0).pipe(b(this._unsubscribeAll)).subscribe({next:t=>{this.sending=!1,this.handleSendResult(t,i,e)},error:t=>{this.sending=!1;let l=pt(t);if(l){this.openEmailReview(l);return}this.notify.openErrorModal(t?.error||"Send failed.")}})}handleSendResult(e,i,t){switch(e?.status){case"queued":this.notifyQueued(e),this.refreshRecentSends();return;case"requiresPayment":this.openPaymentDialog(i,e,t);return;case"paymentPending":this.notify.openInfoModal("This send is still finalizing. It will go out automatically \u2014 check Recent Sends in a minute.");return;case"quoteExpired":this.notify.openWarningModal("The previous quote expired. Please press Send again.");return;default:this.notify.openErrorModal("Unexpected response. Please try again.")}}notifyQueued(e){this.termsAccepted=!1;let i=`Your message has been queued to ${e.recipientCount} recipient${e.recipientCount===1?"":"s"}.`;e.chargedCents>0&&(i+=` $${(e.chargedCents/100).toFixed(2)} was charged`+(e.cardLast4?` to card ending ${e.cardLast4}.`:".")),this.notify.openInfoModal(i)}openPaymentDialog(e,i,t){this.dialog.open(Ct,{width:"620px",maxWidth:"95vw",maxHeight:"90vh",autoFocus:!1,ariaLabelledBy:"teams-comm-payment-dialog-title",data:{sendAttemptID:e,quote:i,payload:t}}).afterClosed().pipe(b(this._unsubscribeAll)).subscribe(l=>{this.refreshRecentSends(),l?.action==="paid"&&this.notifyQueued(l.result)})}openEmailReview(e){document.activeElement?.blur(),this.dialog.open(ut,{width:"560px",maxWidth:"95vw",maxHeight:"90vh",autoFocus:!1,data:e}).afterClosed().pipe(b(this._unsubscribeAll)).subscribe(i=>{i&&(this.form.htmlMessage="<p>"+i+"</p>",this.skipContentReview=!0,this.cdr.markForCheck(),this.notify.openToaster("Suggestion applied. Review it and send when you\u2019re ready.","info","Updated"))})}customBlob(e,i){return xe(this,null,function*(){this.notify.openToaster("Uploading image...","Uploading","info",1e3),this.cdr.detectChanges();let l=yield(yield fetch(i)).blob();return new Promise((f,x)=>{let A=new FileReader;
1A.readAsDataURL(l),A.onloadend=()=>{var U=A.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",oe("communication.jpg",U),!0).pipe(b(this._unsubscribeAll)).subscribe({next:Ce=>{this.notify.openToaster("Image uploaded successfully","Success","success"),this.cdr.detectChanges(),f(`<p><img src="${Ce.url}" /></p>`)},error:Ce=>{this.notify.openErrorModal("Error uploading image"),this.cdr.detectChanges(),console.log("error",Ce)}})}})})}fileUploading=!1;customFileUploader(e,i){var t=document.createElement("input");t.setAttribute("type","file"),i=="pdf"?t.setAttribute("accept","application/pdf"):i=="word"?t.setAttribute("accept",".doc, .docx"):i=="excel"?t.setAttribute("accept",".xls,.xlsx"):i=="ppt"?t.setAttribute("accept",".ppt,.pptx"):t.setAttribute("accept","image/*"),t.onchange=()=>{var l=t.files[0],f=new FileReader;f.onload=()=>{var x=f.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",oe(l.name,x),!0).subscribe(A=>{e.insertContent(`<p> 2 <a class="flex-start-center" href="${A.url}" target="_blank"> 3 <img src="https://file-storage.sfo3.cdn.digitaloceanspaces.com/${i}-icon.png" /> 4 <span class="ml-12">${l.name}</span> 5 </a> 6 </p>`),this.notify.openToaster(l.name+" uploaded successfully","success"),setTimeout(()=>{this.fileUploading=!1},500)},A=>{this.fileUploading=!1,this.notify.openErrorModal(A.error.message??"An error occurred while uploading the file. Please try again later.")})},f.readAsDataURL(l)},t.click()}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}static \u0275fac=function(i){return new(i||a)(y(ue),y(ge),y(Te),y(We),y(je))};static \u0275cmp=I({type:a,selectors:[["communicate-with-teams"]],decls:5,vars:3,consts:[[1,"communicate-with-teams","page-layout","carded","fullwidth","inner-scroll","fuse-white"],["matIcon","mail_outline","title","Communicate With Teams",3,"hideBanner"],[1,"content"],["mode","indeterminate"],[1,"scope-banner"],[1,"filters-card"],[1,"filters-grid"],["appearance","outline"],["multiple","","required","",3,"ngModelChange","selectionChange","openedChange","ngModel"],[3,"value"],["multiple","",3,"ngModelChange","openedChange","ngModel","disabled","placeholder"],[1,"toggle-row"],[1,"toggle-block"],[1,"toggle-label-row"],[1,"toggle-label"],["name","qualificationEnabled",3,"ngModelChange","change","ngModel"],["name","qualificationType",3,"ngModel"],["name","contactTypes","multiple","",3,"ngModelChange","change","ngModel"],["value","headCoaches"],["value","coaches"],["value","players"],["mat-stroked-button","","type","button","matTooltip","Choose which teams receive this message, and preview the recipients and the estimated price. Your draft is untouched.",1,"team-selection-btn","primary",3,"click","disabled"],[1,"pricing-line"],[1,"recent-card"],[1,"message-card"],["appearance","outline",1,"subject-field"],["matInput","","required","","maxlength","200",3,"ngModelChange","ngModel"],[1,"editor-wrap"],["name","htmlMessage",3,"ngModelChange","init","ngModel","licenseKey"],[1,"selection-chip"],["mat-icon-button","","matTooltip","Clear team exclusions \u2014 send to every matching team"],[1,"terms-agree"],[3,"ngModelChange","ngModel"],["type","button",1,"terms-link",3,"click"],[1,"actions-row"],["mat-stroked-button","","type","button","matTooltip","Send a test copy of this email to your own address.",1,"action-btn",3,"click","disabled"],["mat-raised-button","","color","primary","type","button",1,"action-btn",3,"click","disabled"],[3,"matTooltip"],["multiple","",3,"ngModelChange","openedChange","ngModel"],["name","qualificationType",3,"ngModelChange","change","ngModel"],["value","all"],["value","state"],["value","national"],[1,"recent-panel"],[1,"recent-table"],["mat-icon-button","","matTooltip","Clear team exclusions \u2014 send to every matching team",3,"click"]],template:function(i,t){i&1&&(o(0,"div",0),T(1,"page-header",1),o(2,"div",2),u(3,Zt,1,0,"mat-progress-bar",3),u(4,fi,87,34),n()()),i&2&&(r(),_("hideBanner",!0),r(2),g(t.loading?3:-1),r(),g(t.initLoaded?4:-1))},dependencies:[q,J,Q,Y,Ee,Oe,$,ke,it,mt,ct,W,D,j,Je,Ye,$e,tt,Xe,et,se,ae,Ne,lt,ot,at,rt,st,le,re,Be,N,H,me,ce,pe,de,Ke,Ue,Ze,He,Qe,Ge,fe,he,L,Pe],styles:["[_ngcontent-%COMP%]:root{--rp-nav
6y-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)}.communicate-with-teams[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:16px 24px 32px;width:100%}.communicate-with-teams[_ngcontent-%COMP%] .scope-banner[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:10px 14px;margin:0 0 12px;background:#fff8e1;border:1px solid #ffd54f;border-radius:6px;font-size:14px}.communicate-with-teams[_ngcontent-%COMP%] .scope-banner[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#f57c00}.communicate-with-teams[_ngcontent-%COMP%] .filters-card[_ngcontent-%COMP%], .communicate-with-teams[_ngcontent-%COMP%] .message-card[_ngcontent-%COMP%], .communicate-with-teams[_ngcontent-%COMP%] .recent-card[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.communicate-with-teams[_ngcontent-%COMP%] .terms-agree[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin:8px 0 4px;font-size:14px}.communicate-with-teams[_ngcontent-%COMP%] .terms-agree[_ngcontent-%COMP%] .terms-link[_ngcontent-%COMP%]{background:none;border:0;padding:0;font:inherit;color:#1a3668;text-decoration:underline;cursor:pointer}.communicate-with-teams[_ngcontent-%COMP%] .terms-agree[_ngcontent-%COMP%] .terms-link[_ngcontent-%COMP%]:focus-visible{outline:2px solid #244f7e;outline-offset:2px}.communicate-with-teams[_ngcontent-%COMP%] .pricing-line[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;color:#000000a6}.communicate-with-teams[_ngcontent-%COMP%] .pricing-line[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.communicate-with-teams[_ngcontent-%COMP%] .recent-panel[_ngcontent-%COMP%]{margin-top:0;box-shadow:none;border:1px solid rgba(0,0,0,.08)}.communicate-with-teams[_ngcontent-%COMP%] .recent-panel[_ngcontent-%COMP%] .recent-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13px}.communicate-with-teams[_ngcontent-%COMP%] .recent-panel[_ngcontent-%COMP%] .recent-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .communicate-with-teams[_ngcontent-%COMP%] .recent-panel[_ngcontent-%COMP%] .recent-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:4px 10px;border-bottom:1px solid rgba(0,0,0,.06)}.communicate-with-teams[_ngcontent-%COMP%] .recent-panel[_ngcontent-%COMP%] .recent-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600}.communicate-with-teams[_ngcontent-%COMP%] .filters-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.communicate-with-teams[_ngcontent-%COMP%] .filters-grid[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.communicate-with-teams[_ngcontent-%COMP%] .toggle-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:24px;margin-top:8px}.communicate-with-teams[_ngcontent-%COMP%] .toggle-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.communicate-with-teams[_ngcontent-%COMP%] .toggle-label[_ngcontent-%COMP%]{font-size:12px;color:#0009;text-transform:uppercase;letter-spacing:.04em}.communicate-with-teams[_ngcontent-%COMP%] .toggle-label-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.communicate-with-teams[_ngcontent-%COMP%] .team-selection-btn[_ngcontent-%COMP%]{align-self:flex-start;height:40px}.communicate-with-teams[_ngcontent-%COMP%] .team-selection-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:6px}.communicate-with-teams[_ngcontent-%COMP%] .subject-field[_ngcontent-%COMP%]{width:100%}.communicate-with-teams[_ngcontent-%COMP%] .editor-wrap[_ngcontent-%COMP%]{margin-top:4px;width:100%}.communicate-with-teams[_ngcontent-%COMP%] .selection-chip[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;
6gap:8px;padding:8px 0 0;font-size:13px;opacity:.8}.communicate-with-teams[_ngcontent-%COMP%] .selection-chip[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.communicate-with-teams[_ngcontent-%COMP%] .selection-chip.excluding[_ngcontent-%COMP%]{color:#e65100;opacity:1;font-weight:500}.communicate-with-teams[_ngcontent-%COMP%] .actions-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;padding:8px 0 24px}.communicate-with-teams[_ngcontent-%COMP%] .actions-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.communicate-with-teams[_ngcontent-%COMP%] .actions-row[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{height:52px;min-width:170px;padding:0 28px;font-size:15px;font-weight:500}.communicate-with-teams[_ngcontent-%COMP%] .actions-row[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:22px;width:22px;height:22px}"]})}return a})();var wn=[{path:"",pathMatch:"full",component:yt}];export{wn as communicateWithTeamsRoutes};
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.