PageSourceSearch

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

js usasoftballofvirginia.com collected 2026-09-28 18:56:49 UTC 54,656 bytes, 6 lines download raw bytes

1import{a as Ft}from"./chunk-6HV6F6UQ.js";import{a as Q,b as Vt,c as Bt}from"./chunk-TFHCQGNH.js";import"./chunk-I2CWBCWA.js";import"./chunk-MNJI6Q4E.js";import{b as Pt,g as Et}from"./chunk-MVPWU56Q.js";import{c as Tt}from"./chunk-H42DXS2N.js";import{a as q,b as At}from"./chunk-DKZQI3JZ.js";import{e as kt}from"./chunk-UR5J6BCV.js";import{b as Ht,c as Dt}from"./chunk-6UVLSAJX.js";import{c as qe}from"./chunk-WRXG5L4C.js";import{b as gt,c as ht,d as ft,f as _t,g as xt,i as bt,j as Ct,l as yt,m as wt,o as vt,p as St,q as Mt,r as Rt}from"./chunk-IRVXRWZD.js";import{ha as it}from"./chunk-FMACHGU5.js";import{b as Z}from"./chunk-Z6PRV6M7.js";import{a as lt,b as st,c as mt}from"./chunk-4UUEYAO2.js";import"./chunk-MJHKSL2V.js";import{d as Qe,e as $e,g as Ge}from"./chunk-OASEBQL4.js";import{e as ze}from"./chunk-2MWBZL4H.js";import{a as Ne,b as Ze}from"./chunk-AMHTXUJN.js";import{a as dt,g as pt,k as ct}from"./chunk-DBB3PKOU.js";import{b as ut}from"./chunk-H3ZOHFO7.js";import"./chunk-CIKJJUSN.js";import"./chunk-RRZRS5BZ.js";import"./chunk-LY7WOQZN.js";import"./chunk-VG7OHNZN.js";import"./chunk-MS4AQ6UA.js";import{b as nt,d as at}from"./chunk-N7NZ2FMU.js";import{f as et}from"./chunk-F2TSTV3I.js";import"./chunk-XRMXGMS4.js";import"./chunk-Q4V6AKYI.js";import{a as ot,b as rt}from"./chunk-T3PLPHIG.js";import{b as tt}from"./chunk-2JW6ZMWV.js";import"./chunk-NIP74ZKI.js";import{c as He}from"./chunk-V46ZQKC5.js";import"./chunk-QNUNLKYK.js";import{r as Xe}from"./chunk-RE4JJFV5.js";import{e as Te,f as ke}from"./chunk-COEKBYWO.js";import"./chunk-E2K2LIS4.js";import{a as Ke}from"./chunk-KJKRX6VS.js";import"./chunk-2CRWMDGS.js";import{a as je,b as We}from"./chunk-4WMDX4SQ.js";import"./chunk-IQLKO45Z.js";import"./chunk-V6KBZVCY.js";import"./chunk-6FQQM4CE.js";import{a as De,e as Fe,i as Ie,j as Le}from"./chunk-VTTO24NQ.js";import"./chunk-Y5VOXWTF.js";import{l as Ae,n as Ve,q as Be}from"./chunk-YWHNFDXQ.js";import{a as Je,l as Ye}from"./chunk-FCTHY2PU.js";import"./chunk-DPVJW3LI.js";import{h as _e}from"./chunk-GW33KQPR.js";import{T as Ue,U as Oe,a as fe,x as Ee}from"./chunk-TUEKBDZZ.js";import{o as he}from"./chunk-RLPOKPIS.js";import"./chunk-TPES7EAS.js";import{A as Me,G as Re,H as Pe,c as xe,h as be,i as Ce,k as ye,m as we,n as ve,z as Se}from"./chunk-QXJM3TTT.js";import{A as ce,F as ue,J as ge,r as de,x as pe}from"./chunk-TMOIAHHX.js";import{$a as R,Db as H,Fa as F,Fb as P,Hc as me,Ib as r,Jb as f,Kb as N,Lb as oe,M as ne,Mb as re,Rb as E,Sb as T,Tb as k,Wa as x,Xa as b,_a as M,ab as h,ba as G,bb as i,cb as n,cc as W,db as w,dc as le,ga as s,hb as O,ib as j,kb as S,mc as I,nc as se,o as u,oc as L,p as g,qb as _,rc as z,sa as C,tb as p,xb as A,yb as V,za as ae,zb as B}from"./chunk-DJNWGYMM.js";import{ea as y,f as ie}from"./chunk-VOZAGDK7.js";import{a as ee,b as te,j as $}from"./chunk-E5QWB6YB.js";var Ot=["select"],jt=["teamSelectBox"],Wt=["allTeamsToggle"],zt=["editor"],Nt=o=>({width:o}),Zt=()=>[15,25,100],K=()=>[],Y=(o,m)=>m.key,qt=(o,m)=>m.host,Qt=(o,m)=>m.server,J=(o,m)=>m.to,$t=(o,m)=>m.reason;function Gt(o,m){if(o&1&&(i(0,"mat-button-toggle",23)(1,"div",41),r(2),n(),i(3,"div",42),r(4),n()()),o&2){let e=m.$implicit;h("value",e.key),s(2),f(e.initial),s(2),f(e.name)}}function Kt(o,m){if(o&1){let e=S();i(0,"div",12)(1,"div",39),r(2,"Send to"),n(),i(3,"mat-button-toggle-group",40),k("ngModelChange",function(t){u(e);let l=p();return T(l.messageParams.sendTo,t)||(l.messageParams.sendTo=t),g(t)}),M(4,Gt,5,3,"mat-button-toggle",23,Y),n()()}if(o&2){let e=p();s(3),E("ngModel",e.messageParams.sendTo),s(),R(e.sendToOptions)}}function Jt(o,m){if(o&1&&(i(0,"mat-option",23),r(1),n()),o&2){let e=m.$implicit;h("value",e.key),s(),f(e.name)}}function Yt(o,m){if(o&1){let e=S();i(0,"mat-form-field",13)(1,"mat-label"),r(2,"Send to"),n(),i(3,"mat-select",43),k("ngModelChange",function(t){u(e);let l=p();return T(l.messageParams.sendTo,t)||(l.messageParams.sendTo=t),g(t)}),M(4,Jt,2,2,"mat-option",23,Y),n()()}if(o&2){let e=p();s(3),E("ngModel",e.messageParams.sendTo),s(),R(e.sendToOptions)}}function Xt(o,m){if(o&1){let e=S();i(0,"mat-form-field",25)(1,"mat-label"),r(2,"Custom From Email"),n(),i(3,"input",44),k("ngModelChange",function(t){u(e);let l=p();return T(l.messageParams.sendFromCustom,t)||(l.messageParams.sendFromCustom=t),g(t)}),n(),i(4,"mat-icon",18),r(5,"mode_edit"),n()()}if(o&2){let e=p();s(3),E("ngModel",e.messageParams.sendFromCustom)}}function ei(o,m){o&1&&(i(0,"span",38),r(1,"Message has been sent!"),n())}function ti(o,m){o&1&&(i(0,"div",52),w(1,"mat-progress-bar",54),i(2,"div",55),r(3,"Loading template..."),n()())}function ii(o,m){if(o&1&&w(0,"iframe",53),o&2){let e=p(2);h("src",e.templatePreviewIframeSrc,G)}}function ni(o,m){if(o&1){let e=S();i(0,"div",45)(1,"div",46),r(2,"RP Email Template Preview"),n(),i(3,"div",47)(4,"button",48),_("click",function(){u(e);let t=p();return g(t.refreshTemplatePreview())}),r(5,"Refresh Template"),n(),i(6,"button",49),_("click",function(){u(e);let t=p();return g(t.closeTemplatePreview())}),i(7,"mat-icon",50),r(8,"close"),n()()()(),i(9,"div",51),x(10,ti,4,0,"div",52),x(11,ii,1,1,"iframe",53),n()}if(o&2){let e=p();s(4),P("spinner",e.loadingTemplatePreview),h("disabled",e.loadingTemplatePreview),s(6),b(e.loadingTemplatePreview?10:-1),s(),b(e.loadingTemplatePreview?-1:11)}}function ai(o,m){o&1&&(i(0,"th",76),r(1,"Sent On"),n())}function oi(o,m){if(o&1&&(i(0,"td",77),r(1),I(2,"date"),n()),o&2){let e=m.$implicit;s(),f(L(2,1,e.sentOn,"MMM dd, yyyy h:mm aa"))}}function ri(o,m){o&1&&(i(0,"th",78),r(1,"Subject"),n())}function li(o,m){if(o&1&&(i(0,"td",79),r(1),n()),o&2){let e=m.$implicit;s(),f(e.subject)}}function si(o,m){o&1&&(i(0,"th",76),r(1,"Recipients"),n())}function mi(o,m){if(o&1&&(i(0,"td",77),r(1),n()),o&2){let e=m.$implicit;s(),f(e.recipientCount??0)}}function di(o,m){o&1&&(i(0,"th",80),r(1,"Actions"),n())}function pi(o,m){if(o&1){let e=S();i(0,"button",81),_("click",function(){u(e);let t=p().$implicit,l=p(2),c=H(70);return g(l.previewMessage(t,c))}),r(1,"Preview"),n(),i(2,"button",82),_("click",function(){u(e);let t=p().$implicit,l=p(2);return g(l.openDeliveryReport(t))}),r(3,"Report"),n(),i(4,"button",83),_("click",function(){u(e);let t=p().$implicit,l=p(2);return g(l.load2Editor(t))}),r(5,"Reuse"),n()}if(o&2){let e=p().$implicit,a=p(2);P("spinner",e.loading),h("disabled",a.loadingReport),s(2),h("disabled",a.loadingReport),s(2),P("spinner",e.loading),h("disabled",a.loadingReport)}}function ci(o,m){if(o&1){let e=S();i(0,"button",84),_("click",function(){u(e);let t=p().$implicit,l=p(2),c=H(70);return g(l.previewMessage(t,c))}),i(1,"mat-icon"),r(2,"visibility"),n()(),i(3,"button",85),_("click",function(){u(e);let t=p().$implicit,l=p(2);return g(l.openDeliveryReport(t))}),i(4,"mat-icon"),r(5,"analytics"),n()(),i(6,"button",86),_("click",function(){u(e);let t=p().$implicit,l=p(2);return g(l.load2Editor(t))}),i(7,"mat-icon"),r(8,"upload_file"),n()()}if(o&2){let e=p().$implicit,a=p(2);P("spinner",e.loading),h("disabled",a.loadingReport),s(3),h("disabled",a.loadingReport),s(3),P("spinner",e.loading),h("disabled",a.loadingReport)}}function ui(o,m){if(o&1&&(i(0,"td",77),x(1,pi,6,7),x(2,ci,9,7),n()),o&2){let e=p(2);s(),b(e.isMobile?-1:1),s(),b(e.isMobile?2:-1)}}function gi(o,m){o&1&&w(0,"tr",87)}function hi(o,m){o&1&&w(0,"tr",88)}function fi(o,m){o&1&&(i(0,"tr",89)(1,"td",90),r(2,"No data found"),n()())}function _i(o,m){if(o&1){let e=S();w(0,"ngx-ui-loader",56),i(1,"div",57)(2,"div",46),r(3,"Mail History"),n(),i(4,"div",47)(5,"button",49),_("click",function(){u(e);let t=p();return g(t.closePreviousMessages())}),i(6,"mat-icon",50),r(7,"close"),n()()()(),i(8,"mat-form-field",58)(9,"mat-label"),r(10,"Filter"),n(),i(11,"input",59),_("keyup",function(t){u(e);let l=p();return g(l.applyFilter(t))}),n(),i(12,"mat-icon",18),r(13,"search"),n()(),i(14,"div",60)(15,"table",61),O(16,62),F(17,ai,2,0,"th",63)(18,oi,3,4,"td",64),j(),O(19,65),F(20,ri,2,0,"th",66)(21,li,2,1,"td",67),j(),O(22,68),F(23,si,2,0,"th",63)(24,mi,2,1,"td",64),j(),O(25,
169),F(26,di,2,0,"th",70)(27,ui,3,2,"td",64),j(),F(28,gi,1,0,"tr",71)(29,hi,1,0,"tr",72)(30,fi,3,0,"tr",73),n(),i(31,"div",74),w(32,"mat-paginator",75),n()()}if(o&2){let e=p();h("loaderId","loader-comm")("fgsSize",75),s(15),h("dataSource",e.dataSource),s(13),h("matHeaderRowDef",e.displayedColumns),s(),h("matRowDefColumns",e.displayedColumns),s(2),h("hidden",(e.dataSource==null||e.dataSource.filteredData==null?null:e.dataSource.filteredData.length)<=10),s(),h("pageSizeOptions",W(7,Zt))}}function xi(o,m){if(o&1&&(i(0,"mat-card",96)(1,"div",99)(2,"div",111),r(3,"Send Window"),n(),i(4,"div"),r(5),I(6,"date"),n(),i(7,"div"),r(8),I(9,"date"),n(),i(10,"div"),r(11),n()()()),o&2){let e=p(2);s(5),N("Start: ",L(6,3,e.dryRunResult.window.startSendOn,"MMM dd, yyyy h:mm:ss aa")),s(3),N("End: ",L(9,6,e.dryRunResult.window.endSendOn,"MMM dd, yyyy h:mm:ss aa")),s(3),N("Duration: ",e.formatDuration(e.dryRunResult.window.durationSeconds??0))}}function bi(o,m){if(o&1&&(i(0,"tr")(1,"td",112),r(2),n(),i(3,"td",104),r(4),n()()),o&2){let e=m.$implicit;s(2),f(e.host),s(2),f(e.count.toLocaleString())}}function Ci(o,m){o&1&&(i(0,"tr")(1,"td",113),r(2,"No scheduled emails."),n()())}function yi(o,m){if(o&1&&(i(0,"span",114),r(1),n()),o&2){let e=m.$implicit;s(),oe("",e.key,": ",e.value.toLocaleString())}}function wi(o,m){if(o&1&&(i(0,"tr")(1,"td",112),r(2),n(),i(3,"td",104),r(4),n(),i(5,"td",112),M(6,yi,2,2,"span",114,Y),I(8,"keyvalue"),n()()),o&2){let e=m.$implicit;s(2),f(e.server),s(2),f(e.count.toLocaleString()),s(2),R(se(8,2,e.byHost))}}function vi(o,m){o&1&&(i(0,"tr")(1,"td",115),r(2,"No scheduled emails."),n()())}function Si(o,m){if(o&1&&(i(0,"tr")(1,"td",112),r(2),n(),i(3,"td",104),r(4),n()()),o&2){let e=m.$implicit;s(2),f(e.reason),s(2),f(e.count.toLocaleString())}}function Mi(o,m){if(o&1&&(i(0,"li"),r(1),n()),o&2){let e=m.$implicit;s(),re("",e.to," (",e.host,") \u2014 ",e.reason)}}function Ri(o,m){if(o&1&&(i(0,"div",111),r(1,"Samples"),n(),i(2,"ul",118),M(3,Mi,2,3,"li",null,J),n()),o&2){let e=p(3);s(3),R(e.dryRunResult.unsendable.samples)}}function Pi(o,m){if(o&1&&(i(0,"mat-card",106)(1,"div",99)(2,"div",116),r(3,"Unsendable Recipients"),n(),i(4,"table",117)(5,"tr",102)(6,"th",103),r(7,"Reason"),n(),i(8,"th",104),r(9,"Count"),n()(),M(10,Si,5,2,"tr",null,$t),n(),x(12,Ri,5,0),n()()),o&2){let e=p(2);s(10),R(e.dryRunUnsendableEntries()),s(2),b(((e.dryRunResult==null||e.dryRunResult.unsendable==null?null:e.dryRunResult.unsendable.samples)??W(1,K)).length>0?12:-1)}}function Ei(o,m){if(o&1&&(i(0,"tr")(1,"td",112),r(2),n(),i(3,"td",112),r(4),n(),i(5,"td",112),r(6),n(),i(7,"td",112),r(8),I(9,"date"),n()()),o&2){let e=m.$implicit;s(2),f(e.to),s(2),f(e.host),s(2),f(e.mailServer),s(2),f(L(9,4,e.sendOn,"MMM dd HH:mm:ss.SSS"))}}function Ti(o,m){if(o&1&&(i(0,"tr")(1,"td",112),r(2),n(),i(3,"td",112),r(4),n(),i(5,"td",112),r(6),n(),i(7,"td",112),r(8),I(9,"date"),n()()),o&2){let e=m.$implicit;s(2),f(e.to),s(2),f(e.host),s(2),f(e.mailServer),s(2),f(L(9,4,e.sendOn,"MMM dd HH:mm:ss.SSS"))}}function ki(o,m){if(o&1){let e=S();i(0,"div",57)(1,"div",46),r(2,"Dry Run \u2014 Scheduled Distribution"),n(),i(3,"div",47)(4,"button",49),_("click",function(){u(e);let t=p();return g(t.closeDryRunDialog())}),i(5,"mat-icon",50),r(6,"close"),n()()()(),i(7,"div",91)(8,"div",92)(9,"span",93),r(10),n(),r(11," total recipients \u2014 "),i(12,"span",94),r(13),n(),r(14," scheduled, "),i(15,"span",95),r(16),n(),r(17," unsendable. "),n(),x(18,xi,12,9,"mat-card",96),i(19,"div",97)(20,"mat-card",98)(21,"div",99)(22,"div",100),r(23,"By Host"),n(),i(24,"table",101)(25,"tr",102)(26,"th",103),r(27,"Host"),n(),i(28,"th",104),r(29,"Count"),n()(),M(30,bi,5,2,"tr",null,qt),x(32,Ci,3,0,"tr"),n()()(),i(33,"mat-card",105)(34,"div",99)(35,"div",100),r(36,"By Server"),n(),i(37,"table",101)(38,"tr",102)(39,"th",103),r(40,"Server"),n(),i(41,"th",104),r(42,"Total"),n(),i(43,"th",103),r(44,"Host Breakdown"),n()(),M(45,wi,9,4,"tr",null,Qt),x(47,vi,3,0,"tr"),n()()()(),x(48,Pi,13,2,"mat-card",106),i(49,"div",107)(50,"mat-card",108)(51,"div",99)(52,"div",100),r(53,"First 10 (start of window)"),n(),i(54,"table",101)(55,"tr",102)(56,"th",103),r(57,"Recipient"),n(),i(58,"th",103),r(59,"Host"),n(),i(60,"th",103),r(61,"Server"),n(),i(62,"th",103),r(63,"Send On"),n()(),M(64,Ei,10,7,"tr",null,J),n()()(),i(66,"mat-card",108)(67,"div",99)(68,"div",100),r(69,"Last 10 (end of window)"),n(),i(70,"table",101)(71,"tr",102)(72,"th",103),r(73,"Recipient"),n(),i(74,"th",103),r(75,"Host"),n(),i(76,"th",103),r(77,"Server"),n(),i(78,"th",103),r(79,"Send On"),n()(),M(80,Ti,10,7,"tr",null,J),n()()()(),i(82,"div",109)(83,"button",110),_("click",function(){u(e);let t=p();return g(t.closeDryRunDialog())}),r(84,"Close"),n()()()}if(o&2){let e=p();s(10),f(((e.dryRunResult==null?null:e.dryRunResult.totalRecipients)??0).toLocaleStr
1ing()),s(3),f(((e.dryRunResult==null?null:e.dryRunResult.scheduledCount)??0).toLocaleString()),s(3),f(((e.dryRunResult==null?null:e.dryRunResult.unsendableCount)??0).toLocaleString()),s(2),b(!(e.dryRunResult==null||e.dryRunResult.window==null)&&e.dryRunResult.window.startSendOn||!(e.dryRunResult==null||e.dryRunResult.window==null)&&e.dryRunResult.window.endSendOn?18:-1),s(12),R(e.dryRunByHostEntries()),s(2),b(e.dryRunByHostEntries().length===0?32:-1),s(13),R(e.dryRunByServerEntries()),s(2),b(e.dryRunByServerEntries().length===0?47:-1),s(),b(((e.dryRunResult==null?null:e.dryRunResult.unsendableCount)??0)>0?48:-1),s(16),R((e.dryRunResult==null||e.dryRunResult.sample==null?null:e.dryRunResult.sample.first10)??W(7,K)),s(16),R((e.dryRunResult==null||e.dryRunResult.sample==null?null:e.dryRunResult.sample.last10)??W(8,K))}}function Ai(o,m){if(o&1){let e=S();i(0,"div",57)(1,"div",46),r(2,"Message Preview"),n(),i(3,"div",47)(4,"button",49),_("click",function(){u(e);let t=p();return g(t.closeMessagePreview())}),i(5,"mat-icon",50),r(6,"close"),n()()()(),i(7,"div",119),w(8,"iframe",120),n()}if(o&2){let e=p();s(8),h("src",e.messagePreviewIframeSrc,G)("title",e.selectedHistorySubject||"Message preview")}}var On=(()=>{class o{_platform;api;notify;ngxLoader;dialog;platform;local_data;router;cdr;_fuseConfigService;sanitizer;breakpointObserver;isMobile=!1;faInfoCircle=it;appearance={theme:"dark"};messageParams={sendAs:"email",sendTo:"currentSiteAdmins",subject:"",sendFrom:"",senderName:"",replyTo:"",jodit:"",rpComm:!0};sendToOptions=[{key:"currentSiteAdmins",initial:"CSA",name:"Current Site's Admins"},{key:"currentAssociationAdmins",initial:"CAA",name:"Current Association's Admins"},{key:"allSiteAdmins",initial:"ASA",name:"All Site Admins"},{key:"hq",initial:"HQ",name:"HQ"},{key:"currentSiteUIC",initial:"CSU",name:"Current Site's UIC"},{key:"currentAssociationUIC",initial:"CAU",name:"Current Association's UIC"},{key:"allUIC",initial:"AUI",name:"All UIC"},{key:"currentSiteCoaches",initial:"CSC",name:"Current Site's Coaches"},{key:"currentSitePlayers",initial:"CSP",name:"Current Site's Players"},{key:"currentSiteCoachesPlayers",initial:"CSCP",name:"Current Site's Coaches and Players"},{key:"currentSiteUmpires",initial:"CSM",name:"Current Site's Umpires"},{key:"currentSiteDirectors",initial:"CSD",name:"Current Site's Directors"},{key:"currentSiteClubAdmins",initial:"CSCA",name:"Current Site's Club Admins"},{key:"currentAssociationClubAdmins",initial:"CACA",name:"Current Association's Club Admins"},{key:"allClubAdmins",initial:"ACA",name:"All Club Admins"},{key:"newsletterSubscribers",initial:"NLS",name:"Current Site's Newsletter Subscribers"},{key:"tinc",initial:"TD",name:"tDuman"}];loading;formData={};isSmall=!1;isBrowser=!1;person={persona:{}};touchUi=!1;eventQS="";divisionQS="";roundQS="";editorIndex=0;previewDialogRef;messagePreviewDialogRef;templatePreviewDialogRef;messagePreviewIframeSrc=null;messagePreviewBlobUrl=null;selectedHistorySubject="";loadingTemplatePreview=!1;templatePreviewHtml="";templateRawHtml="";templateBodyPlaceholder="{{RP_COMMUNICATION_BODY}}";templatePreviewIframeSrc=null;templatePreviewBlobUrl=null;dryRunResult=null;dryRunDialogRef=null;select;filteredOptions=[];_unsubscribeAll;fuseConfig;displayedColumns=["sentOn","subject","recipientCount","actions"];dataSource=new Rt([]);paginator;sort;previewPanel;constructor(e,a,t,l,c,d,v,D,U,It,Lt,Ut){this._platform=e,this.api=a,this.notify=t,this.ngxLoader=l,this.dialog=c,this.platform=d,this.local_data=v,this.router=D,this.cdr=U,this._fuseConfigService=It,this.sanitizer=Lt,this.breakpointObserver=Ut,this._unsubscribeAll=new ie,this.isBrowser=ge(d),this.breakpointObserver.observe(["(max-width: 599px)"]).pipe(y(this._unsubscribeAll)).subscribe(X=>{this.isMobile=!!X.matches,this.isSmall=!!X.matches})}ngOnInit(){this._fuseConfigService.config.pipe(y(this._unsubscribeAll)).subscribe(e=>{this.fuseConfig=e}),this.person=JSON.parse(localStorage.getItem("person")),this.person==null?this.router.navigateByUrl("/pages/events"):(this.messageParams.senderName=[this.person.firstName,this.person.lastName].filter(
1Boolean).join(" "),this.messageParams.replyTo=this.person.email??""),this.ngxLoader.startLoader("loader-comm"),this.api.get("Comm",!0).pipe(y(this._unsubscribeAll)).subscribe({next:e=>{this.formData=e,this.messageParams.sendFrom=e.noReply,this.ngxLoader.stopLoader("loader-comm")},error:e=>{this.ngxLoader.stopLoader("loader-comm")}})}ngAfterViewInit(){}displayFn(e){return e?.name==""?"":e?.name=="All"||e==null?"All":e?.name+" - "+e?.dates}doFilter(e){if(e?.name!=null)return;let a=e.toLowerCase();this.filteredOptions=this.formData.events.filter(t=>t.name.toLowerCase().includes(a))}audienceSelected(){}submit(e,a,t){let l=Je(this.messageParams);if(l.sendFrom=="custom"&&(l.sendFrom=l.sendFromCustom),a==="previewRecipients"){this.previewRecipients(l);return}if(l.htmlMessage=this.messageParams.jodit,l.htmlMessage==null||l.htmlMessage==""||l.htmlMessage?.length<5)return this.notify.openWarningModal("Please enter a message");if(a==="dryRun"){this.dryRunSchedule(l,t);return}this.sendEmail(l)}paymentStatusChange(){this.messageParams.paymentStatus=="paid"&&(this.messageParams.waitlistStatus="all")}messageSent=!1;sendEmail(e){this.loading=!0,this.ngxLoader.startLoader("loader-comm"),this.api.post("MailCampaign/scheduleBulkEmailV2",e,!0).pipe(y(this._unsubscribeAll)).subscribe({next:a=>{this.loading=!1;let t=a?.scheduledCount??0,l=a?.unsendableCount??0,c=this.formatWindowEnd(a?.window?.endSendOn),d=`Your message has been queued. ${t.toLocaleString()} email${t===1?"":"s"} scheduled.`;l>0&&(d+=` ${l.toLocaleString()} could not be scheduled (no eligible server).`),c&&(d+=` Sending will complete around ${c}.`),this.notify.openInfoModal(d),this.messageSent=!0,this.ngxLoader.stopLoader("loader-comm")},error:a=>{this.loading=!1,this.notify.openErrorModal(a.error?a.error:"An error has occured"),this.ngxLoader.stopLoader("loader-comm")}})}dryRunSchedule(e,a){this.loading=!0,this.ngxLoader.startLoader("loader-comm"),this.api.post("MailCampaign/previewScheduleBulkEmailV2",e,!0).pipe(y(this._unsubscribeAll)).subscribe({next:t=>{this.loading=!1,this.ngxLoader.stopLoader("loader-comm"),this.dryRunResult=t??{},a&&this.openDryRunDialog(a)},error:t=>{this.loading=!1,this.notify.openErrorModal(t.error?t.error:"An error has occured"),this.ngxLoader.stopLoader("loader-comm")}})}openDryRunDialog(e){document.activeElement?.blur(),this.dryRunDialogRef=this.dialog.open(e,{width:this.isMobile?"98vw":"80vw",maxWidth:this.isMobile?"98vw":"80vw",height:this.isMobile?"95vh":"85vh",maxHeight:"95vh",autoFocus:!1})}closeDryRunDialog(){this.dryRunDialogRef?.close(),this.dryRunDialogRef=null}dryRunByHostEntries(){let e=this.dryRunResult?.byHost??{};return Object.keys(e).map(a=>({host:a,count:e[a]})).sort((a,t)=>t.count-a.count)}dryRunByServerEntries(){let e=this.dryRunResult?.byServer??{};return Object.keys(e).map(a=>({server:a,count:e[a]?.count??0,byHost:e[a]?.byHost??{}})).sort((a,t)=>t.count-a.count)}dryRunUnsendableEntries(){let e=this.dryRunResult?.unsendable?.byReason??{};return Object.keys(e).map(a=>({reason:a,count:e[a]}))}formatDuration(e){if(!e||e<=0)return"0s";let a=Math.floor(e/3600),t=Math.floor(e%3600/60),l=Math.round(e%60),c=[];return a>0&&c.push(`${a}h`),t>0&&c.push(`${t}m`),(l>0||c.length===0)&&c.push(`${l}s`),c.join(" ")}formatWindowEnd(e){if(!e)return"";try{let a=new Date(e);return isNaN(a.getTime())?"":a.toLocaleString()}catch{return""}}previewRecipients(e){this.loading=!0,this.ngxLoader.startLoader("loader-comm"),this.api.post("MailCampaign/previewRPCommunicationV2Recipients",e,!0).pipe(y(this._unsubscribeAll)).subscribe({next:a=>{this.loading=!1;let t=a?.recipients??[];this.messageParams.jodit=t.join(", "),this.notify.openInfoModal(`${a?.count??t.length} recipients loaded into Message field.`),this.ngxLoader.stopLoader("loader-comm")},error:a=>{this.loading=!1,this.notify.openErrorModal(a.error?a.error:"An error has occured"),this.ngxLoader.stopLoader("loader-comm")}})}openTemplatePreview(e){document.activeElement?.blur(),this.templatePreviewDialogRef=this.dialog.open(e,{width:this.isMobile?"98vw":"95vw",maxWidth:this.isMobile?"98vw":"95vw",height:(this.isMobile,"95vh"),maxHeight:"95vh",autoFocus:!1}),this.refreshTemplatePreview()}refreshTemplatePreview(){this.loadingTemplatePreview=!0;let a=`MailCampaign/rpCommunicationV2Template?rpComm=${this.messageParams?.rpComm!==!1}`;this.api.get(a,!0).pipe(y(this._unsubscribeAll)).subscribe({next:t=>{this.loadingTemplatePreview=!1,this.templateRawHtml=t?.templateHtml??"",this.templateBodyPlaceholder=t?.bodyPlaceholder??"{{RP_COMMUNICATION_BODY}}",this.renderTemplatePreview()},error:t=>{this.loadingTemplatePreview=!1,this.notify.openErrorModal(t.error?t.error:"An error has occured")}})}renderTemplatePreview(){let e=this.messageParams?.jodit??"";if(!this.templateRawHtml){this.templatePreviewHtml=e,this.updateTemplatePreviewIframeSource();return}if(this.templateBodyPlaceholder&&this.templateRawHtml.includes(this.templateBodyPlaceholder)){this.templatePreviewHtml=this.templateRawHtml.split(this.templateBodyPlaceholder).join(e),this.updateTemplatePreviewIframeSource();return}this.templatePreviewHtml=this.templateRawHtml+e,this.updateTemplatePreviewIframeSource()}updateTemplatePreviewIframeSource(){this.templatePreviewBlobUrl&&(URL.revokeObjectURL(this.templatePreviewBlobUrl),this.templatePreviewBlobUrl=null);let e=new Blob([this.templatePreviewHtml||""],{type:"text/html"});this.templatePreviewBlobUrl=URL.createObjectURL(e),this.templatePreviewIframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.templatePreviewBlobUrl)}closeTemplatePreview(){this.templatePreviewDialogRef?.close()}campainHistory=[];loadingReport;previousMessages(e){this.ngxLoader.startLoader("loader-comm"),this.api.get("MailCampaign/history",!0).pipe(y(this._unsubscribeAll)).subscribe({next:t=>{this.ngxLoader.stopLoader("loader-comm"),this.campainHistory=(t??[]).map(l
1=>te(ee({},l),{sentOn:l?.createdOn||l?.sentOn?new Date(l.createdOn||l.sentOn):null,recipientCount:Number.isFinite(l?.recipientCount)?l.recipientCount:0})),this.dataSource.data=this.campainHistory,setTimeout(()=>{this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort},250),this.cdr.detectChanges()},error:t=>{this.notify.openErrorModal(t.error?t.error:"An error has occured"),this.ngxLoader.stopLoader("loader-comm")}}),document.activeElement?.blur(),this.previewDialogRef=this.dialog.open(e,{width:this.isMobile?"95vw":"80vw",maxWidth:this.isMobile?"95vw":"80vw",height:this.isMobile?"95vh":"90vh",maxHeight:"95vh",autoFocus:!1})}applyFilter(e){let a=e.target.value;this.dataSource.filter=a.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}previewMessage(e,a){e.loading=!0,this.loadingReport=!0,this.api.get("MailCampaign/history/"+e._key,!0).pipe(y(this._unsubscribeAll)).subscribe({next:t=>{e.loading=!1,this.loadingReport=!1,this.selectedHistorySubject=e.subject??"",this.openMessagePreviewDialog(a,t?.htmlMessage??"")},error:t=>{e.loading=!1,this.loadingReport=!1,this.notify.openErrorModal(t.error?t.error:"An error has occured")}})}load2Editor(e){e.loading=!0,this.loadingReport=!0,this.api.get("MailCampaign/history/"+e._key,!0).pipe(y(this._unsubscribeAll)).subscribe({next:a=>{e.loading=!1,this.loadingReport=!1,this.editorIndex=1,this.hydrateMessageFromHistory(a),this.previewDialogRef?.close()},error:a=>{e.loading=!1,this.loadingReport=!1,this.notify.openErrorModal(a.error?a.error:"An error has occured")}})}openDeliveryReport(e){document.activeElement?.blur(),this.dialog.open(Ft,{width:this.isMobile?"95vw":"90vw",maxWidth:this.isMobile?"95vw":"90vw",height:this.isMobile?"95vh":"90vh",maxHeight:"95vh",autoFocus:!1,data:{campaignKey:e._key,subject:e.subject}})}hydrateMessageFromHistory(e){let a=e?.message??{};a.sendTo&&(this.messageParams.sendTo=a.sendTo),this.messageParams.subject=a.subject??this.messageParams.subject??"",this.messageParams.jodit=e?.htmlMessage??a.htmlMessage??"",this.applySendFromFromHistory(a.sendFrom),this.cdr.detectChanges()}applySendFromFromHistory(e){let a=(e??"").trim();if(!a)return;if([this.formData?.noReply,this.formData?.directorEmail].filter(l=>!!l).includes(a)){this.messageParams.sendFrom=a,this.messageParams.sendFromCustom="";return}this.messageParams.sendFrom="custom",this.messageParams.sendFromCustom=a}openMessagePreviewDialog(e,a){this.messagePreviewBlobUrl&&(URL.revokeObjectURL(this.messagePreviewBlobUrl),this.messagePreviewBlobUrl=null);let t=new Blob([a||"<p>No message body found.</p>"],{type:"text/html"});this.messagePreviewBlobUrl=URL.createObjectURL(t),this.messagePreviewIframeSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.messagePreviewBlobUrl),this.messagePreviewDialogRef=this.dialog.open(e,{width:this.isMobile?"95vw":"80vw",maxWidth:this.isMobile?"95vw":"80vw",height:this.isMobile?"95vh":"90vh",maxHeight:"95vh",autoFocus:!1})}closeMessagePreview(){this.messagePreviewDialogRef?.close()}closePreviousMessages(){this.previewDialogRef?.close()}teamSelectBox;teamSelect(){this.messageParams.allTeams?this.teamSelectBox.options.forEach(e=>e.select()):this.teamSelectBox.options.forEach(e=>e.deselect())}allTeamsToggle;untoggleAllTeams(){this.allTeamsToggle.checked=!1}editorComponent;config={selector:".tinymce-body",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",color:"#0000EE"},attributes:{target:"_blank",class:"bold text-underline text-blue-500"}},{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:function(a){this.customFileUploader(e,"ppt")}})},file_picker_callback:(e,a,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 c=l.files[0],d=new FileReader;d.onload=()=>{var v=d.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",Z(c.name,v),!0).subscribe(D=>{e(D.url,{title:c.name})},D=>{console.log("error",D)})},d.readAsDataURL(c)},l.click()}
1t.filetype=="media"&&e("movie.mp4",{source2:"alt.ogg",poster:"image.jpg"})},paste_preprocess:(e,a)=>$(this,null,function*(){if(a.content.indexOf('src="blob:')>-1){a.preventDefault();let t=a.content.match(/src="([^"]*)"/)[1];a.content=yield this.customBlob(e,t),e.insertContent(a.content)}})};customBlob(e,a){return $(this,null,function*(){this.ngxLoader.startLoader("loader-communicationImage"),this.notify.openToaster("Uploading image...","Uploading","info",1e3),this.cdr.detectChanges();let l=yield(yield fetch(a)).blob();return new Promise((c,d)=>{let v=new FileReader;v.readAsDataURL(l),v.onloadend=()=>{var D=v.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",Z("communication.jpg",D),!0).pipe(y(this._unsubscribeAll)).subscribe({next:U=>{this.ngxLoader.stopLoader("loader-communicationImage"),this.notify.openToaster("Image uploaded successfully","Success","success"),this.cdr.detectChanges(),c(`<p><img src="${U.url}" /></p>`)},error:U=>{this.ngxLoader.stopLoader("loader-communicationImage"),this.notify.openErrorModal("Error uploading image"),this.cdr.detectChanges(),console.log("error",U)}})}})})}fileUploading=!1;customFileUploader(e,a){var t=document.createElement("input");t.setAttribute("type","file"),a=="pdf"?t.setAttribute("accept","application/pdf"):a=="word"?t.setAttribute("accept",".doc, .docx"):a=="excel"?t.setAttribute("accept",".xls,.xlsx"):a=="ppt"?t.setAttribute("accept",".ppt,.pptx"):t.setAttribute("accept","image/*"),t.onchange=()=>{var l=t.files[0],c=new FileReader;c.onload=()=>{var d=c.result.split(",")[1];this.api.post4Upload("Cms/fileUpload/",Z(l.name,d),!0).subscribe(v=>{e.insertContent(`<p>
2						<a class="flex-start-center" href="${v.url}" target="_blank">
3							<img src="https://file-storage.sfo3.cdn.digitaloceanspaces.com/${a}-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)},v=>{this.fileUploading=!1,this.notify.openErrorModal(v.error.message??"An error occurred while uploading the file. Please try again later.")})},c.readAsDataURL(l)},t.click()}ngOnDestroy(){this.messagePreviewBlobUrl&&(URL.revokeObjectURL(this.messagePreviewBlobUrl),this.messagePreviewBlobUrl=null),this.templatePreviewBlobUrl&&(URL.revokeObjectURL(this.templatePreviewBlobUrl),this.templatePreviewBlobUrl=null),this._unsubscribeAll.next(!0),this._unsubscribeAll.complete()}static \u0275fac=function(a){return new(a||o)(C(fe),C(Ke),C(Xe),C(Qe),C(ke),C(ne),C(Te,8),C(_e),C(me),C(Ye),C(he),C(Ee))};static \u0275cmp=ae({type:o,selectors:[["rp-communication"]],viewQuery:function(a,t){if(a&1&&(A(Ot,5),A(q,5),A(Q,5),A(Pt,5),A(jt,5),A(Wt,5),A(zt,5)),a&2){let l;V(l=B())&&(t.select=l.first),V(l=B())&&(t.paginator=l.first),V(l=B())&&(t.sort=l.first),V(l=B())&&(t.previewPanel=l.first),V(l=B())&&(t.teamSelectBox=l.first),V(l=B())&&(t.allTeamsToggle=l.first),V(l=B())&&(t.editorComponent=l.first)}},decls:71,vars:33,consts:[["messageForm","ngForm"],["tmpTemplatePreview",""],["tmpPreviousMessages",""],["tmpDryRunResult",""],["tmpMessageBodyPreview",""],["id","notification","fusePerfectScrollbar","",1,"page-layout","simple","fullwidth"],["title","RP Communication","matIcon","campaign",3,"hideBanner"],[1,"content","px-24","mx-auto","mt-24",2,"min-height","800px",3,"ngStyle"],[1,"w-95-p","my-16","mx-auto"],[1,"text-right","mb-16"],["mat-raised-button","","aria-label","show previous messages",1,"primary",3,"click"],["name","messageForm",1,"w-100-p",3,"ngSubmit"],[1,"send-to-section","mb-12"],["appearance","outline"],[1,"my-20"],["appearance","outlined"],["appearance","outline",1,"mx-20","mt-20"],["matInput","","name","subject","required","",3,"ngModelChange","ngModel"],["matSuffix",""],["appearance","outline",1,"mx-20"],["matInput","","name","senderName",3,"ngModelChange","ngModel"],["matInput","","type","email","name","replyTo","email","",3,"ngModelChange","ngModel"],["name","sendFrom",3,"ngModelChange","ngModel"],[3,"value"],["value","custom"],["appearance","outline",1,"ml-16","mx-20"],[1,"mx-20","mb-16"],["name","rpComm","color","primary",3,"ngModelChange","ngModel"],[1,"font-size-12","mt-4","py-12","pl-8","grey-600"],["id","dvEditorContainer",1,"dvEditorContainer","mx-20"],["loaderId","loader-communicationImage",3,"fgsSize"],["name","jodit",3,"ngModelChange","init","ngModel","licenseKey"],[1,"example-card-footer"],[1,"text-center","mt-16"],["mat-raised-button","",1,"primary",3,"click","disabled"],["mat-raised-button","","title","Resolve recipients and plan the send schedule without writing anything or sending",1,"ml-16","blue",3,"click","disabled"],["mat-raised-button","",1,"ml-16","grey-300",3,"click","disabled"],["mat-raised-button","",1,"ml-16","accent",3,"click","disabled"],[1,"text-center","p-4","green-600"],[1,"bold","font-size-16"],["name","sendTo","hideSingleSelectionIndicator","true",1,"send-to-group",3,"ngModelChange","ngModel"],[1,"commButtonInitial"],[1,"commButtonText"],["name","sendTo",3,"ngModelChange","ngModel"],["matInput","","name","sendFromCustom",3,"ngModelChange","ngModel"],["fxLayout","row","fxLayoutAlign","space-between center",1,"primary"],[1,"h2","pl-8"],[1,"text-right"],["mat-raised-button","","color","accent",1,"mr-8",3,"click","disabled"],["mat-icon-button","","aria-label","close",3,"click"],[1,"close-icon"],[1,"template-preview-body"],[1,"template-preview-loading"],["title","RP communication email template preview","referrerpolicy","no-referrer",1,"template-preview-iframe",3,"src"],["mode","indeterminate"],[1,"mt-12"],[3,"loaderId","fgsSize"],[1,"primary",2,"display","flex","flex-direction","row","
6justify-content","space-between","align-items","center"],["appearance","outline",1,"w-100-p","mt-20"],["matInput","","placeholder","Search campaign history",3,"keyup"],[1,"table-responsive"],["mat-table","","matSort","",1,"w-100-p","table","table-striped","table-bordered","border-seperate",3,"dataSource"],["matColumnDef","sentOn"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","subject"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","recipientCount"],["matColumnDef","actions"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-header-row","","class","grey-200",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[3,"hidden"],["showFirstLastButtons","true",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell","",1,"text-center"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","",1,"center"],["mat-raised-button","","color","primary","aria-label","Preview message body",1,"mr-8",3,"click","disabled"],["mat-raised-button","","aria-label","Open delivery report",1,"mr-8","blue",3,"click","disabled"],["mat-raised-button","","color","accent","aria-label","Reuse message",3,"click","disabled"],["mat-icon-button","","aria-label","Preview message body",3,"click","disabled"],["mat-icon-button","","aria-label","Open delivery report",3,"click","disabled"],["mat-icon-button","","aria-label","Reuse message",3,"click","disabled"],["mat-header-row","",1,"grey-200"],["mat-row",""],[1,"mat-row"],["colspan","4",1,"mat-cell"],[1,"p-16",2,"overflow-y","auto","max-height","75vh"],[1,"mb-16"],[1,"font-size-18","bold"],[1,"green-600","bold"],[1,"red-600","bold"],["appearance","outlined",1,"mb-16"],[1,"flex",2,"display","flex","gap","16px","flex-wrap","wrap"],["appearance","outlined",2,"flex","1","min-width","280px"],[1,"p-12"],[1,"bold","mb-8"],[1,"w-100-p"],[1,"grey-200"],[1,"text-left","p-4"],[1,"text-right","p-4"],["appearance","outlined",2,"flex","2","min-width","360px"],["appearance","outlined",1,"mt-16"],[1,"flex","mt-16",2,"display","flex","gap","16px","flex-wrap","wrap"],["appearance","outlined",2,"flex","1","min-width","320px"],[1,"text-right","mt-16"],["mat-raised-button","",1,"grey-300",3,"click"],[1,"bold","mb-4"],[1,"p-4"],["colspan","2",1,"p-4","text-center"],[1,"mr-8"],["colspan","3",1,"p-4","text-center"],[1,"bold","mb-8","red-600"],[1,"w-100-p","mb-12"],[1,"m-0","pl-20"],[1,"history-preview-body"],["referrerpolicy","no-referrer",1,"history-preview-iframe",3,"src","title"]],template:function(a,t){if(a&1){let l=S();i(0,"div",5),w(1,"page-header",6),i(2,"div",7)(3,"div",8)(4,"div",9)(5,"button",10),_("click",function(){u(l);let d=H(66);return g(t.previousMessages(d))}),r(6,"Show Previous Messages"),n()(),i(7,"form",11,0),_("ngSubmit",function(){u(l);let d=H(8);return g(d.form.valid)}),x(9,Kt,6,1,"div",12),x(10,Yt,6,1,"mat-form-field",13),w(11,"hr",14),i(12,"mat-card",15)(13,"mat-form-field",16)(14,"mat-label"),r(15,"Subject"),n(),i(16,"input",17),k("ngModelChange",function(d){return u(l),T(t.messageParams.subject,d)||(t.messageParams.subject=d),g(d)}),n(),i(17,"mat-icon",18),r(18,"mode_edit"),n()(),i(19,"mat-form-field",19)(20,"mat-label"),r(21,"Sender Name"),n(),i(22,"input",20),k("ngModelChange",function(d){return u(l),T(t.messageParams.senderName,d)||(t.messageParams.senderName=d),g(d)}),n(),i(23,"mat-icon",18),r(24,"mode_edit"),n()(),i(25,"mat-form-field",19)(26,"mat-label"),r(27,"Reply-To Email"),n(),i(28,"input",21),k("ngModelChange",function(d){return u(l),T(t.messageParams.replyTo,d)||(t.messageParams.replyTo=d),g(d)}),n(),i(29,"mat-icon",18),r(30,"mode_edit"),n()(),i(31,"mat-form-field",19)(32,"mat-label"),r(33,"From Email"),n(),i(34,"mat-select",22),k("ngModelChange",function(d){return u(l),T(t.messageParams.sendFrom,d)||(t.messageParams.sendFrom=d),g(d)}),i(35,"mat-option",23),r(36),n(),i(37,"mat-option",23),r(38),n(),i(39,"mat-option",24),r(40,"Custom"),n()()(),x(41,Xt,6,1,"mat-form-field",25),i(42,"div",26)(43,"mat-slide-toggle",27),k("ngModelChange",function(d){return u(l),T(t.messageParams.rpComm,d)||(t.messageParams.rpComm=d
6),g(d)}),r(44," Use Register Play Branding "),n(),i(45,"div",28),r(46,"When off, emails use the site's default header & footer instead of the Register Play template."),n()(),i(47,"div",29),w(48,"ngx-ui-loader",30),i(49,"editor",31),k("ngModelChange",function(d){return u(l),T(t.messageParams.jodit,d)||(t.messageParams.jodit=d),g(d)}),n()(),i(50,"mat-card-footer",32)(51,"div",33)(52,"button",34),_("click",function(){return u(l),g(t.submit("jodit","send"))}),r(53,"Send"),n(),i(54,"button",35),_("click",function(){u(l);let d=H(68);return g(t.submit("jodit","dryRun",d))}),r(55,"Dry Run"),n(),i(56,"button",36),_("click",function(){return u(l),g(t.submit("jodit","previewRecipients"))}),r(57,"Test Filter (Populate Message)"),n(),w(58,"br")(59,"br"),i(60,"button",37),_("click",function(){u(l);let d=H(64);return g(t.openTemplatePreview(d))}),r(61,"Preview Template"),n(),x(62,ei,2,0,"span",38),n()()()()()()(),F(63,ni,12,5,"ng-template",null,1,z)(65,_i,33,8,"ng-template",null,2,z)(67,ki,85,9,"ng-template",null,3,z)(69,Ai,9,2,"ng-template",null,4,z)}if(a&2){let l=H(8);s(),h("hideBanner",!0),s(),h("ngStyle",le(31,Nt,t.fuseConfig.pageWidth&&!t.isMobile?t.fuseConfig.pageWidth+"%":"100%")),s(7),b(t.isMobile?-1:9),s(),b(t.isMobile?10:-1),s(6),E("ngModel",t.messageParams.subject),s(6),E("ngModel",t.messageParams.senderName),s(6),E("ngModel",t.messageParams.replyTo),s(6),E("ngModel",t.messageParams.sendFrom),s(),h("value",t.formData.noReply),s(),f(t.formData.noReply),s(),h("value",t.formData.directorEmail),s(),f(t.formData.directorEmail),s(3),b(t.messageParams.sendFrom=="custom"?41:-1),s(2),E("ngModel",t.messageParams.rpComm),s(5),h("fgsSize",75),s(),h("init",t.config),E("ngModel",t.messageParams.jodit),h("licenseKey","gpl"),s(3),P("spinner",t.loading),h("disabled",l.invalid||t.loading),s(2),P("spinner",t.loading),h("disabled",t.loading),s(2),P("spinner",t.loading),h("disabled",t.loading),s(4),P("spinner",t.loadingTemplatePreview),h("disabled",t.loading||t.loadingTemplatePreview),s(2),b(t.messageSent?62:-1)}},dependencies:[ue,de,Re,ve,xe,be,Ce,Se,Me,we,ye,Pe,Ge,$e,ut,Dt,Ht,qe,Oe,Ue,We,je,Ie,De,Fe,Le,at,nt,et,Be,Ve,Ae,ze,kt,Tt,Et,ct,dt,pt,Ze,Ne,tt,He,mt,lt,st,rt,ot,At,q,Bt,Q,Vt,Mt,gt,ft,Ct,_t,ht,yt,xt,bt,wt,vt,St,pe,ce],styles:["#notification[_ngcontent-%COMP%]   .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}#notification[_ngcontent-%COMP%]   .send-to-section[_ngcontent-%COMP%]{width:100%;min-width:0}#notification[_ngcontent-%COMP%]     .send-to-group.mat-button-toggle-group{border:none;box-shadow:none;display:flex;flex-wrap:wrap;gap:8px;width:100%;max-width:100%;margin-top:8px}#notification[_ngcontent-%COMP%]     .send-to-group .mat-button-toggle{flex:1 1 105px;min-width:105px;max-width:130px;height:auto;border:1px solid rgba(0,0,0,.12)!important;border-radius:4px!important}#notification[_ngcontent-%COMP%]     .send-to-group .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)!important}#notification[_ngcontent-%COMP%]     .send-to-group .mat-button-toggle.mat-button-toggle-checked{border-color:#4a6cf7!important;box-shadow:0 2px 8px #4a6cf726}#notification[_ngcontent-%COMP%]     .send-to-group .mat-button-toggle-label-content{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:8px 4px!important;line-height:normal!important;width:100%;white-space:normal!important}#notification[_ngcontent-%COMP%]   .dvTemplate[_ngcontent-%COMP%]{border:1px solid #aaa;border-radius:5px;margin:4px 8px;text-align:center;padding:4px;cursor:pointer}#notification[_ngcontent-%COMP%]   .dvTemplate[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;padding-bottom:4px;font-weight:700;white-space:nowrap}#notification[_ngcontent-%COMP%]   .dvTemplate[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border:1px solid #888;width:150px}mat-progress-bar[_ngcontent-%COMP%]{height:6px;border-radius:50px}.opened-count[_ngcontent-%COMP%]{color:#0099d3;margin-top:35px;margin-bottom:3px}.clicked-count[_ngcontent-%COMP%]{color:#3eb05b;margin-top:35px;margin-bottom:3px}.unsubs-count[_ngcontent-%COMP%]{color:#f8a326;margin-top:35px;margin-bottom:3px}.mat-card-header-text[_ngcontent-%COMP%]{margin:0!important;width:100%!important}.mat-mdc-icon-button[_ngcontent-%COMP%]{width:30px;height:30px;line-height:30px}.list-hide[_ngcontent-%COMP%]{display:none}.list-show[_ngcontent-%COMP%]{display:block}.commButtonInitial[_ngcontent-%COMP%]{margin-top:8px;font-size:32px;font-weight:700;line-height:32px}
6.commButtonText[_ngcontent-%COMP%]{white-space:normal;width:100%;max-width:110px;line-height:18px;text-align:center;font-size:12px}.selectBox[_ngcontent-%COMP%]{border:1px solid #e0e0e0;border-radius:5px;padding:4px;margin-left:16px;width:99%}.selectBox[_ngcontent-%COMP%]:hover{border:2px solid #888}.template-preview-body[_ngcontent-%COMP%]{height:calc(95vh - 90px);padding-top:12px}.template-preview-loading[_ngcontent-%COMP%]{padding:24px}.template-preview-iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:1px solid #d6d6d6;border-radius:4px;background:#fff}.history-preview-body[_ngcontent-%COMP%]{height:calc(95vh - 90px);padding-top:12px}.history-preview-iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:1px solid #d6d6d6;border-radius:4px;background:#fff}"]})}return o})();export{On as RpCommunicationComponent};

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.