PageSourceSearch

https://members.seattlechamber.com/atlas/chunk-BMKLHRBF.js

js seattlechamber.com collected 2026-10-02 03:30:10 UTC 265,152 bytes, 2 lines download raw bytes

1import{a as mi,b as qr,c as jr,d as Qr,e as ci,f as Hr}from"./chunk-53HMPXE2.js";import{a as Qn}from"./chunk-WHBGUACM.js";import{a as Ni,b as Gn}from"./chunk-TTNHB4YN.js";import{a as Gr,b as Zr}from"./chunk-MQC2YKXX.js";import"./chunk-4EO3COSW.js";import"./chunk-AO6EENYW.js";import"./chunk-MNXT3EZP.js";import{a as Hn,b as bt}from"./chunk-Q3S4W56Y.js";import{a as pi}from"./chunk-DAUVOF4D.js";import"./chunk-HSJLEOYO.js";import{$ as zt,$d as Ht,$f as He,$g as Ar,Aa as K,Ab as Ae,Ae as Un,Ag as ii,Ah as zr,Ba as Ce,Bc as Ut,Bd as Ve,Bg as ni,Bh as _t,Cd as Le,Cg as gr,Ch as Ct,Da as fn,Dd as pt,Df as ut,Dg as fr,Eb as In,Ec as ot,Ed as We,Ef as $n,Eg as vt,Fa as un,Fb as De,Fc as st,Fd as de,Fg as Mt,G as mn,Ga as f,Gd as Tn,Ge as qn,Gg as Oe,Gh as di,Ha as P,Hb as wn,Hd as Oi,Hg as ur,Hh as Vr,Ia as S,Id as jt,Ig as ri,J as Nt,Ja as $,Jc as lt,Jd as An,Jg as hr,Ka as Vt,Kc as Fe,Kd as ve,Ke as jn,Kg as vr,La as hn,Lc as qt,Ld as Qt,Lg as yr,M as rt,Ma as vn,Md as Dn,Me as Se,Mg as _r,Mh as Lr,N as ie,Nd as Fn,Ne as Yt,Nf as er,Ng as Cr,Od as Et,Og as Sr,P as cn,Pa as D,Pc as Be,Pd as Bn,Pg as yt,Qa as F,Qd as ye,Qg as Ir,R as o,Ra as B,Rc as dt,Rg as Ui,S as re,Sa as ae,Sd as Wn,Se as Zn,Sg as wr,Ta as Lt,Td as se,Tg as Er,Th as kr,Ub as En,Uc as Wi,Ud as Ke,Ug as ai,Va as Di,Vc as oe,Vg as br,W as gn,Wa as Ee,Wb as Bi,Wc as Rn,Wd as ke,Wf as tr,Wg as xr,X as M,Xb as Q,Xf as ir,Xg as Rr,Ya as yn,Yf as nr,Yg as Pr,Za as wt,Zd as On,Zf as rr,Zg as Mr,Zh as Ur,_ as U,_a as kt,_d as Ue,_f as W,_g as Tr,ab as d,ac as bn,ae as qe,ag as Ie,ah as oi,bb as m,be as Nn,bg as Xt,bh as Dr,c as Ai,cb as Y,cg as Ye,dc as xn,dg as Vi,ea as x,eb as Fi,ec as q,eg as Je,fb as Te,fg as ar,ge as je,gg as or,hb as at,he as pe,hg as sr,if as Kn,ig as xt,ja as g,je as zn,jg as lr,jh as Fr,ka as l,ke as me,kf as Jt,kg as xe,kh as Br,la as s,le as Qe,lg as Xe,lh as Wr,m as dn,ma as N,mb as _n,me as mt,mg as Rt,mh as si,ne as ct,ng as Li,ob as Cn,oe as ce,og as $e,oh as Or,p as pn,pb as J,pe as gt,pg as ki,qb as j,qe as ft,qf as Yn,qg as $t,qh as li,ra as z,rf as Jn,rg as Pt,s as we,se as Gt,sf as ge,sg as ei,sh as qi,t as Ot,ta as O,te as Zt,tf as zi,tg as dr,th as ji,ua as y,ue as Kt,uf as Xn,ug as pr,uh as Nr,v as te,vd as ze,ve as Vn,vg as mr,we as Ln,wg as ti,x as I,xd as Pn,xe as kn,xg as ht,y as w,ya as G,yb as H,yd as Mn,yg as Ge,za as Z,zb as Sn,zd as be,zg as cr}from"./chunk-RF5BZFFS.js";import{a as it,b as nt,i as Me}from"./chunk-ODN5LVDJ.js";var Yr=(()=>{let n=class n{constructor(r,a,e,p,u,c){this._tokenStorageService=r,this._identityProviderService=a,this._profileService=e,this._userService=p,this._EventsService=u,this._router=c}canActivate(r,a){let e=this.isEventSubmissionRoute(a.url);if(this._tokenStorageService.hasValidUserTypeAccessToken()===!0){let p=this._tokenStorageService.getUserTypeAccessToken(),u=this._tokenStorageService.getUserTypeInfoFromToken(p);return this.getUserProfileId(u).then(c=>c?this._profileService.getProfileExtended(c).then(h=>h.Member||h.RelatedProfiles.some(T=>T.Member===!0)?!0:(this._router.navigateByUrl("/access-denied"),!1)):!1)}return e?this._EventsService.getEventSubmissionSettings().then(p=>p.RequireLogin?(this.initiateAuthFlowRequest(),!1):!0):(this.initiateAuthFlowRequest(),Promise.resolve(!1))}isEventSubmissionRoute(r){return r.toLowerCase().includes("/eventsubmission")}initiateAuthFlowRequest(){this._identityProviderService.initialize(),this._identityProviderService.authorizeCodeFlowRequestCode(window.location.href)}getUserProfileId(r){return Me(this,null,function*(){switch(r.UserType){case Bi.ProfileUser:return r.id;case Bi.BackOfficeUser:return(yield this._userService.getUser(r.id))?.ProfileId??null;default:return null}})}};n.\u0275fac=function(a){return new(a||n)(te(lt),te(Pn),te(Le),te(We),te(de),te(dt))},n.\u0275prov=we({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var At=class{constructor(){this.EventName="",this.EventType="",this.EventDate=new Date,this.EventTime="",this.EventEndDate=new Date,this.EndTime="",this.Email="",this.Address1="",this.Address2="",this.City="",this.State="",this.Zip="",this.Descr="",this.Location="",this.YourName="",this.YourPhone="",this.YourEmail=""}};var Da=["communityEventSubmissionForm"];function Fa(i,n){if(i&1&&(l(0,"h1"),f(1),d(2,"titlecase"),s()),i&2){let t=y();o(),P(m(2,1,t.eventSubmissionSettings.PageTitle))}}function Ba(i,n){if(i&1&&(l(0,"strong",48),f(1),d(2,"ucfirst"),s()),i&2){let t=y();o(),P(m(2,1,t.eventSubmissionSettings.ConfirmationMessage))}}function Wa(i,n){if(i&1){let t=z();l(0,"div",5)(1,"re-captcha",49),O("resolved",function(a){I(t);let e=y();
1return w(e.onReCaptchaResponse(a))}),s()()}if(i&2){let t=y();o(),g("siteKey",t.recaptchaSiteKey)}}var ea=(()=>{let n=class n{constructor(r,a,e,p,u){this._eventService=r,this._userService=a,this._notificationService=e,this._translationService=p,this._configService=u,this.eventTypes=[],this.formData=new At,this.isSaving=!1,this.eventSubmissionSettings={},this.submissionSuccess=!1,this.isValid=!1,this.recaptchaSiteKey="",this.getValidationResult=()=>(this.reCaptchaResponseToken&&(this.isValid=!0),this.isValid)}ngOnInit(){this._configService.getRecaptchaSiteKey().then(r=>{this.recaptchaSiteKey=r}),this._eventService.getEventTypes().then(r=>{this.eventTypes=r}),this._userService.getCurrentUserProfileExtended().then(r=>{r&&(this.formData.YourName=r.ReportName,this.formData.YourPhone=r.WorkPhone,this.formData.YourEmail=r.Email)}),this._eventService.getEventSubmissionSettings().then(r=>{this.eventSubmissionSettings=r,this.eventSubmissionSettings.PageTitle||(this.eventSubmissionSettings.PageTitle=this._translationService.getInstantTitlecase("events.community-event-submission.title")),this.eventSubmissionSettings.ConfirmationMessage||(this.eventSubmissionSettings.ConfirmationMessage=this._translationService.getInstantCapitalizeFirstCharacter("events.community-event-submission.confirmation-message"))})}submitEvent(){this.isSaving=!0,this.formData.EventTime=this.formData.EventTime,this.formData.EndTime=this.formData.EndTime,this._eventService.postEventsubmission(this.formData,this.reCaptchaResponseToken).then(()=>{this._notificationService.translateSuccess("common.success"),this.isSaving=!1,this.submissionSuccess=!0,this.formData=new At},r=>{this._notificationService.translateError(r.error.Message),this.isSaving=!1})}startDateChanged(r){this.formData.EventEndDate=r}onReCaptchaResponse(r){this.reCaptchaResponseToken=r,r===null?this.isValid=!1:this.isValid=!0}};n.\u0275fac=function(a){return new(a||n)(M(de),M(We),M(st),M(oe),M(be))},n.\u0275cmp=U({type:n,selectors:[["wl-community-event-submission"]],viewQuery:function(a,e){if(a&1&&G(Da,5),a&2){let p;Z(p=K())&&(e.communityEventSubmissionForm=p.first)}},standalone:!1,decls:122,vars:129,consts:[["communityEventSubmissionForm","ngForm"],["startDate",""],[1,"container"],[4,"ngIf"],["class","mb-10",4,"ngIf"],[1,"form-group"],["for","event-name"],["type","text","name","event-name","id","event-name",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-group",3,"hidden"],["for","event-type"],["id","event-type","styleClass","w-100","name","event-type",3,"ngModelChange","options","ngModel","placeholder"],["fxLayout","row","fxLayoutGap","10px"],["for","start-date"],["name","startDate",3,"ngModelChange","onDateChanged","ngModel"],["for","start-time"],["inputCssClass","form-control","name","endTime",3,"ngModelChange","ngModel"],["for","end-date"],["name","endDate",3,"ngModelChange","ngModel","minDate"],["for","end-time"],["for","event-email-address"],["type","text","name","event-email-address","id","event-email-address",1,"form-control",3,"ngModelChange","ngModel"],["for","address-1"],["type","text","name","address-1","id","address-1",1,"form-control",3,"ngModelChange","ngModel","placeholder"],["type","text","name","address-2","id","address-2",1,"form-control","mt-10",3,"ngModelChange","ngModel","placeholder"],["fxFlex","1 1 auto"],["for","city"],["type","text","name","city","id","city",1,"form-control",3,"ngModelChange","ngModel"],[2,"max-width","70px"],["for","state"],["name","state",3,"ngModelChange","ngModel","skipPreSelect"],[2,"max-width","100px"],["for","zip"],["type","text","name","zip","id","zip",1,"form-control",3,"ngModelChange","ngModel"],[1,"form-group",2,"max-width","100%"],["for","wysiwyg"],["name","descr",3,"ngModelChange","ngModel"],["for","location"],["name","location","id","location",3,"ngModelChange","ngModel"],["for","submitter-name"],["type","text","name","submitter-name","id","submitter-name",1,"form-control",3,"ngModelChange","ngModel"],["for","submitter-phone"],["type","text","name","submitter-phone","id","submitter-phone",1,"form-control",3,"ngModelChange","ngModel"],["for","submitter-email"],["type","text","name","submitter-email","id","submitter-email",1,"form-control",3,"ngModelChange","ngModel"],["class","form-group",4,"ngIf"],[2,"text-align","right"],["type","submit",1,"btn","btn-primary",3,"click","disabled"],[3,"show"],[1,"mb-10"],[3,"resolved","siteKey"]],template:function(a,e){if(a&1){let p=z();l(0,"div",2),x(1,Fa,3,3,"h1",3)(2,Ba,3,3,"strong",4),l(3,"form",null,0)(5,"div",5)(6,"label",6),f(7),d(8,"translate"),d(9,"ucfirst"),s(),l(10,"input",7),B("ngModelChange",function(c){return I(p),F(e.formData.EventName,c)||(e.formData.EventName=c),w(c)}),s()(),l(11,"div",8)(12,"label",9),f(13),d(14,"translate"),d(15,"ucfirst"),s(),l(16,"p-select",10),d(17,"translate"),d(18,"ucfirst"),B("ngModelChange",function(c){return I(p),F(e.formData.EventType,c)||(e.formData.EventType=c),w(c)}),s()(),l(19,"div",5)(20,"div",11)(21,"div")(22,"label",12),f(23),d(24,"translate"),d(25,"ucfirst"),s(),l(26,"wl-date-selector",13,1),B("ngModelChange",function(c){return I(p),F(e.formData.EventDate,c)||(e.formData.EventDate=c),w(c)}),O("onDateChanged",function(c){return I(p),w(e.startDateChanged(c))}),s()(),l(28,"div")(29,"label",14),f(30),d(31,"translate"),d(32,"ucfirst"),s(),l(33,"wl-time-selector",15),B("ngModelChange",function(c){return I(p),F(e.formData.EventTime,c)||(e.formData.EventTime=c),w(c)}),s()()()(),l(34,"div",5)(35,"div",11)(36,"div")(37,"label",16),f(38),d(39,"translate"),d(40,"ucfirst"),s(),l(41,"wl-date-selector",17),B("ngModelChange",function(c){return I(p),F(e.formData.EventEndDate,c)||(e.formData.EventEndDate=c),w(c)}),s()(),l(42,"div")(43,"label",18),f(44),d(45,"translate"),d(46,"ucfirst"),s(),l(47,"wl-time-selector",15),B("ngModelChange",function(c){return I(p),F(e.formData.EndTime,c)||(e.formData.EndTime=c),w(c)}),s()()()(),l(48,"div",5)(49,"label",19),f(50),d(51,"translate"),d(52,"ucfirst"),s(),l(53,"input",20),B("ngModelChange",function(c){return I(p),F(e.formData.Email,c)||(e.formData.Email=c),w(c)}),s()(),l(54,"div",5)(55,"label",21),f(56),d(57,"translate"),d(58,"ucfirst"),s(),l(59,"input",22),d(60,"translate"),d(61,"ucfirst"),B("ngModelChange",function(c){return I(p),F(e.formData.Address1,c)||(e.formData.Address1=c),w(c)}),s(),l(62,"input",23),d(63,"translate"),d(64,"ucfirst"),B("ngModelChange",function(c){return I(p),F(e.formData.Address2,c)||(e.formData.Address2=c),w(c)}),s()(),l(65,"div",5)(66,"div",11)(67,"div",24)(68,"label",25),f(69),d(70,"translate"),d(71,"ucfirst"),s(),l(72,"input",26),B("ngModelChange",function(c){return I(p),F(e.formData.City,c)||(e.formData.City=c),w(c)}),s()(),l(73,"div",27)(74,"label",28),f(75),d(76,"translate"),d(77,"ucfirst"),s(),l(78,"wl-state-selector",29),B("ngModelChange",function(c){return I(p),F(e.formData.State,c)||(e.formData.State=c),w(c)}),s()(),l(79,"div",30)(80,"label",31),f(81),d(82,"translate"),d(83,"ucfirst"),s(),l(84,"input",32),B("ngModelChange",function(c){return I(p),F(e.formData.Zip,c)||(e.formData.Zip=c),w(c)}),s()()()(),l(85,"div",33)(86,"label",34),f(87),d(88,"translate"),d(89,"ucfirst"),s(),l(90,"wl-wysiwyg-editor",35),B("ngModelChange",function(c){return I(p),F(e.formData.Descr,c)||(e.formData.Descr=c),w(c)}),s()(),l(91,"div",33)(92,"label",36),f(93),d(94,"translate"),d(95,"ucfirst"),s(),l(96,"textarea",37),B("ngModelChange",function(c){return I(p),F(e.formData.Location,c)||(e.formData.Location=c),w(c)}),s()(),l(97,"div",5)(98,"label",38),f(99),d(100,"translate"),d(101,"ucfirst"),s(),l(102,"input",39),B("ngModelChange",function(c){return I(p),F(e.formData.YourName,c)||(e.formData.YourName=c),w(c)}),s()(),l(103,"div",5)(104,"label",40),f(105),d(106,"translate"),d(107,"ucfirst"),s(),l(108,"input",41),B("ngModelChange",function(c){return I(p),F(e.formData.YourPhone,c)||
1(e.formData.YourPhone=c),w(c)}),s()(),l(109,"div",5)(110,"label",42),f(111),d(112,"translate"),d(113,"ucfirst"),s(),l(114,"input",43),B("ngModelChange",function(c){return I(p),F(e.formData.YourEmail,c)||(e.formData.YourEmail=c),w(c)}),s()(),x(115,Wa,2,1,"div",44),l(116,"div",45)(117,"button",46),O("click",function(){return I(p),w(e.submitEvent())}),N(118,"wl-busy",47),f(119),d(120,"translate"),d(121,"uppercase"),s()()()()}a&2&&(o(),g("ngIf",e.eventSubmissionSettings==null?null:e.eventSubmissionSettings.PageTitle),o(),g("ngIf",e.submissionSuccess),o(5),P(m(9,51,m(8,49,"events.community-event-submission.event-name"))),o(3),D("ngModel",e.formData.EventName),o(),g("hidden",e.eventSubmissionSettings.HideEventType),o(2),P(m(15,55,m(14,53,"events.community-event-submission.event-type"))),o(3),g("placeholder",ae(m(18,59,m(17,57,"events.community-event-submission.select-event-type"))))("options",e.eventTypes),D("ngModel",e.formData.EventType),o(7),P(m(25,63,m(24,61,"events.community-event-submission.start-date"))),o(3),D("ngModel",e.formData.EventDate),o(4),P(m(32,67,m(31,65,"events.community-event-submission.start-time"))),o(3),D("ngModel",e.formData.EventTime),o(5),P(m(40,71,m(39,69,"events.community-event-submission.end-date"))),o(3),D("ngModel",e.formData.EventEndDate),g("minDate",e.formData.EventEndDate),o(3),P(m(46,75,m(45,73,"events.community-event-submission.end-time"))),o(3),D("ngModel",e.formData.EndTime),o(3),P(m(52,79,m(51,77,"events.community-event-submission.event-email-address"))),o(3),D("ngModel",e.formData.Email),o(3),P(m(58,83,m(57,81,"events.community-event-submission.physical-address"))),o(3),g("placeholder",ae(m(61,87,m(60,85,"events.community-event-submission.address-1")))),D("ngModel",e.formData.Address1),o(3),g("placeholder",ae(m(64,91,m(63,89,"events.community-event-submission.address-2")))),D("ngModel",e.formData.Address2),o(7),P(m(71,95,m(70,93,"events.community-event-submission.city"))),o(3),D("ngModel",e.formData.City),o(3),P(m(77,99,m(76,97,"events.community-event-submission.state"))),o(3),D("ngModel",e.formData.State),g("skipPreSelect",!0),o(3),P(m(83,103,m(82,101,"events.community-event-submission.zip"))),o(3),D("ngModel",e.formData.Zip),o(3),P(m(89,107,m(88,105,"events.community-event-submission.wysiwyg"))),o(3),D("ngModel",e.formData.Descr),o(3),P(m(95,111,m(94,109,"events.community-event-submission.location"))),o(3),D("ngModel",e.formData.Location),o(3),P(m(101,115,m(100,113,"events.community-event-submission.submitter-name"))),o(3),D("ngModel",e.formData.YourName),o(3),P(m(107,119,m(106,117,"events.community-event-submission.submitter-phone"))),o(3),D("ngModel",e.formData.YourPhone),o(3),P(m(113,123,m(112,121,"events.community-event-submission.submitter-email"))),o(3),D("ngModel",e.formData.YourEmail),o(),g("ngIf",e.re
1captchaSiteKey),o(2),g("disabled",!e.isValid),o(),g("show",e.isSaving),o(),S(" ",m(121,127,m(120,125,"common.submit"))," "))},dependencies:[ut,ze,zr,Ct,di,Vr,j,gt,pe,me,Qe,ce,mt,qe,Ht,On,qn,ot,Sn,H,q],styles:[".form-group[_ngcontent-%COMP%]{max-width:475px}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block}.form-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%]{background:#fafafa;box-shadow:0 1px 6px #0003,0 0 3px #0003;border-radius:8px;padding:27px}"]});let i=n;return i})();var le=class{constructor(){this.EventId=0,this.StartTime="",this.EndTime="",this.StartDate=new Date,this.EndDate=new Date,this.IsAllDay=!1,this.EventType="",this.Descr="",this.DateCreated=new Date,this.DateChanged=new Date,this.Location="",this.Phone="",this.Email="",this.RelatedWebsite="",this.EventName="",this.MaxAttendees=0,this.Address1="",this.Address2="",this.City="",this.State="",this.Zip="",this.ZipExt="",this.OrgEvent=!1,this.IsPublic=!1,this.MembersOnly=!1,this.Internal=!1,this.ProfileId=0,this.Closed=!1,this.AssignedTo=0,this.DisableRegistration=!1,this.SendQuestionsToEmail="",this.SpecialRegistrationUrl="",this.ProjectId=0,this.FreeEvent=!1,this.AcceptAmex=!1,this.AcceptMasterCard=!1,this.AcceptVisa=!1,this.AcceptDiscover=!1,this.AcceptBillSignUp=!1,this.AcceptPayAtDoor=!1,this.AcceptCreditCard=!1,this.AcceptPo=!1,this.AcceptBillSignUpFee=0,this.AcceptPayAtDoorFee=0,this.AcceptCreditCardFee=0,this.AcceptPoFee=0,this.MapLink="",this.WeatherLink="",this.EntityId=0,this.ConfirmationMessage="",this.MinAttendees=0,this.MinAttendeesActionDate=new Date,this.ImageFileName="",this.ImageCaption="",this.ShortDescr="",this.ShowMap=!1,this.UseOrgAddress=!1,this.ImageUrl="",this.RepeatingEventId=0,this.FeaturedEvent=!1,this.CcGatewayId=0,this.ShowAttendeeDetail=!1,this.AttendeeDetailThreshold=0,this.ShowAttendees=!1,this.ShareEnabled=!1,this.ShareInstructions="",this.Venue="",this.Version=0,this.RegEmailVisible=0,this.RegEmailRequired=0,this.RegPrefixVisible=0,this.RegPrefixRequired=0,this.RegFNameVisible=0,this.RegFNameRequired=0,this.RegLNameVisible=0,this.RegLNameRequired=0,this.RegNameForBadgeVisible=0,this.RegNameForBadgeRequired=0,this.RegCompanyNameVisible=0,this.RegCompanyNameRequired=0,this.RegAddressVisible=0,this.RegAddressRequired=0,this.RegPhoneVisible=0,this.RegPhoneRequired=0,this.RegMobileVisible=0,this.RegMobileRequired=0,this.ShowWeatherLink=!1,this.AttendeeGoal=0,this.SalesGoal=0,this.RegTitleVisible=0,this.RegTitleRequired=0,this.Status=0,this.TimeZoneId=0,this.TimeZoneName="",this.PendingAttendees=0,this.AttendingAttendees=0,this.PotentialAttendees=0,this.SpecialDetailsPageURL="",this.PaymentMethods=new Array,this.Items=new Array,this.EventDateTimes=new Array,this.StartDateTimeUtc=new Date,this.EndDateTimeUtc=new Date,this.PublicRegistrationEndDateUtc=new Date,this.Latitude="",this.Longitude=""}};var Na=["profileOrgDupChecker"],za=["profileIndDupChecker"];function Va(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function La(i,n){if(i&1){let t=z();l(0,"div",21)(1,"label",40),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",6)(6,"wl-related-profile-selector",41),B("ngModelChange",function(a){I(t);let e=y();return F(e.registration.Registration.relatedProfileId,a)||(e.registration.Registration.relatedProfileId=a),w(a)}),O("onProfileChanged",function(a){I(t);let e=y();return w(e.relatedProfileChanged(a))}),s()()()}if(i&2){let t=y();o(2),P(m(4,6,m(3,4,"events.registration.wizard.contact.profile-related-lookup-label"))),o(4),D("ngModel",t.registration.Registration.relatedProfileId),g("relatedProfileId",t.registration.Registration.ProfileId)("disabled",t._checkingMainContact)}}function ka(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Ua(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function qa(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function ja(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Qa(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Ha(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Ga(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Za(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Ka(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}function Ya(i,n){i&1&&(l(0,"label",39),f(1,"*"),s())}var ta=(()=>{let n=class n{constructor(r,a,e,p,u,c){this._profileService=p,this.registration=new ve,this.event=new le,this.initialLoadComplete=!1,this._checkingMainContact=!1,this.loadData=()=>{this.initialLoadComplete=!0,this._checkingMainContact=!1,this.allowSelectiveProfileAssignment=this._configSettingService.getConfigSettingValueFromCollectionAsBoolean("SelectiveProfileAssignment",this.configSettings);let h=this._userService.getCurrentUserProfileExtended().then(T=>(this.currentUserProfile=T,T.ProfileId>0&&(this.isLoggedIn=!0),Promise.resolve(!0)));
1Promise.all([h]).then(()=>{if(this.registration.Registration.LoggedInProfileId=0,this.isLoggedIn==!0)if(this.registration.Registration.LoggedInProfileId=this.currentUserProfile.ProfileId,this.currentUserProfile.OrgInd==!0){this.registration.Registration.ProfileId=this.currentUserProfile.ProfileId,this.registration.Registration.relatedProfileId=0;let T=new Ke;this._utilService.mapSafe(this.currentUserProfile,T),this.registrationProfileChanged(T)}else this.allowSelectiveProfileAssignment==!0?this._profileService.getMainOrFirstRelatedOrg(this.currentUserProfile.ProfileId).then(T=>{T||(T=new zi),this.registration.Registration.ProfileId=T.ProfileId,this.registration.Registration.relatedProfileId=this.currentUserProfile.ProfileId,this.registration.Registration.relatedProfileIsOrg=this.currentUserProfile.OrgInd,this.registration.Registration.ForceMemberPricing=!T.Member&&this.currentUserProfile.Member;let b=new Ke;this._utilService.mapSafe(T,b);let C=new Ke;this._utilService.mapSafe(this.currentUserProfile,C),this.registrationProfileChanged(b),this.relatedProfileChanged(C)}):this._profileService.getMainOrFirstRelatedOrg(this.currentUserProfile.ProfileId).then(T=>{T||(T=new zi),this.registration.Registration.ProfileId=this.currentUserProfile.ProfileId,this.currentUserProfile.OrgInd?this.registration.Registration.relatedProfileId=T.ProfileId:this.registration.Registration.relatedProfileId=this.currentUserProfile.ProfileId;let b=new Ke;this._utilService.mapSafe(T,b);let C=new Ke;this._utilService.mapSafe(this.currentUserProfile,C),this.registrationProfileChanged(C),this.relatedProfileChanged(b)})})},this.getValidationResult=()=>{let h=new ge;if(h.isValid=!0,this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.Email)||this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.FName)||this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.LName)||this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.OrgName)?h.isValid=!0:(h.isValid=!1,h.errors.push(this._translationService.getInstant("events.registration.wizard.contact.add-registration-name-validation-error"))),!this.verifyAllRequiredFieldsAreSet()){h.isValid=!1;let b=this._translationService.getInstant("events.registration.wizard.contact.contact-required-fields-validation-error")+": ";for(let C of this.requiredFieldsNotPopulated)b=b+" "+C+" ";h.errors.push(b)}return h},this.registrationProfileChanged=h=>{this.initialLoadComplete==!0&&(this.registration.IsEdit==!1||h.ProfileId!=this.registration.Registration.ProfileId)&&(this.registration.Registration.ProfileId=h.ProfileId,this.registration.Registration.IsMember=h.Member||this.currentUserProfile&&this.currentUserProfile.Member,this.registration.Registration.OrgName=h.OrgName,this.registration.Registration.Prefix=h.Prefix,this.registration.Registration.FName=h.FirstName,this.registration.Registration.LName=h.LastName,this.registration.Registration.Title=h.Title,this.registration.Registration.Address1=h.Address1,this.registration.Registration.Address2=h.Address2,this.registration.Registration.City=h.City,this.registration.Registration.State=h.State,this.registration.Registration.Zip=h.Zip,this.registration.Registration.Email=h.Email,this.registration.Registration.Phone=h.WorkPhone,this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Phone)&&(this.registration.Registration.Phone=h.CellPhone),this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Phone)&&(this.registration.Registration.Phone=h.HomePhone),this._regProfileEmail=h.Email,!this.registration.IsEdit&&h.ProfileId>0||(this.registration.Registration.relatedProfileId=0,this.relatedProfileChanged(new Ke)),this.onRegistrationProfileChanged.emit(h))},this.relatedProfileChanged=h=>{this.initialLoadComplete==!0&&h.ProfileId!=this.registration.Registration.CommunicateWithProfileId&&(this.registration.Registration.CommunicateWithProfileId=h.ProfileId,h.OrgInd?this.registration.Registration.OrgName=h.OrgName:(this.registration.Registration.Prefix=h.Prefix,this.registration.Registration.Title=h.Title,this.registration.Registration.FName=h.FirstName,this.registration.Registration.LName=h.LastName),h.ProfileId>0&&(this.allowSelectiveProfileAssignment||!h.OrgInd)?this.registration.Registration.Email=h.Email:h.ProfileId==0&&(this.registration.Registration.Email=this._regProfileEmail))},this.onOrgNameChange=h=>{if(this.registration.Registration.OrgName==""){this.profileOrgDupChecker&&this.profileOrgDupChecker.hide();return}this.registration.Registration.ProfileId<=0&&this.registration.Registration.CreateProfile==!0&&this.profileOrgDupChecker.getPossibleDuplicates(this.registration.Registration.OrgName).then(T=>{this.profileOrgDupChecker&&(T.length>0?this.profileOrgDupChecker.show():this.profileOrgDupChecker.hide())})},this.onLastNameChange=()=>{if(this.registration.Registration.LName==""){this.profileIndDupChecker&&this.profileIndDupChecker.hide();return}if(this.registration.Registration.ProfileId<=0&&this.registration.Registration.CreateProfile==!0&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.OrgName)){let h=this.registration.Registration.LName;this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.FName)&&(h=this.registration.Registration.FName+" "+this.registration.Registration.LName),this.profileIndDupChecker.getPossibleDuplicates(h).then(T=>{T.length>0?this.profileIndDupChecker.show():this.profileIndDupChecker.hide()})}},this.onDupCheckerOrgNameProfileSelected=h=>{this.registrationProfileChanged(h)},this.onDupCheckerIndNameProfileSelected=h=>{this.registrationProfileChanged(h)},this.displayField=h=>h==1||h==3,this.requiredField=h=>h==1||h==3,this.verifyAllRequiredFieldsAreSet=()=>{let h=!0;return this.requiredFieldsNotPopulated=new Array,this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Address1)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.address1"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.City)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.city"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.State)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.state"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Zip)&&
1(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.zip"))),this.displayField(this.event.RegCompanyNameVisible)&&this.requiredField(this.event.RegCompanyNameRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.OrgName)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.organization-name"))),this.displayField(this.event.RegEmailVisible)&&this.requiredField(this.event.RegEmailRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Email)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.email"))),this.displayField(this.event.RegFNameVisible)&&this.requiredField(this.event.RegFNameRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.FName)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.first-name"))),this.displayField(this.event.RegLNameVisible)&&this.requiredField(this.event.RegLNameRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.LName)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.last-name"))),this.displayField(this.event.RegPhoneVisible)&&this.requiredField(this.event.RegPhoneRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Phone)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.phone"))),this.displayField(this.event.RegTitleVisible)&&this.requiredField(this.event.RegTitleRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Title)&&(h=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.title"))),h},this._utilService=r,this._translationService=a,this._registrationService=e,this._configSettingService=u,this._userService=c,this.onRegistrationProfileChanged=new re,this.registrationId=0,this.initialLoadComplete=!1,this.allowSelectiveProfileAssignment=!1,this.isLoggedIn=!1,this.requiredFieldsNotPopulated=new Array,this.userInfo=new qt,this.isLoggedIn=!1,this.currentUserProfile=new Ve,this._regProfileEmail=""}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(M(Q),M(oe),M(se),M(Le),M(Se),M(We))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-contact"]],viewQuery:function(a,e){if(a&1&&(G(Na,5),G(za,5)),a&2){let p;Z(p=K())&&(e.profileOrgDupChecker=p.first),Z(p=K())&&(e.profileIndDupChecker=p.first)}},outputs:{onRegistrationProfileChanged:"onRegistrationProfileChanged"},standalone:!1,decls:112,vars:99,consts:[["regState",""],[1,"container-fluid"],[1,"form-horizontal"],[1,"form-group",3,"hidden"],["for","registrationContactOrgName",1,"col-sm-3","col-lg-2","control-label"],["class","text-danger",4,"ngIf"],[1,"col-sm-9","col-lg-10"],["type","text","name","registrationContactOrgName",1,"form-control",3,"ngModelChange","blur","ngModel"],["class","form-group",4,"ngIf"],["for","registrationPrefix",1,"col-sm-3","col-lg-2","control-label"],[1,"col-sm-3","col-lg-2"],["type","text","name","registrationPrefix",1,"form-control",3,"ngModelChange","ngModel"],["for","registrationFirstName",1,"col-sm-3","col-lg-2","control-label"],["type","text","name","registrationFirstName",1,"form-control",3,"ngModelChange","ngModel"],["for","registrationLastName",1,"col-sm-3","col-lg-2","control-label"],["type","text","name","registrationLastName",1,"form-control",3,"ngModelChange","blur","ngModel"],["for","registrationTitle",1,"col-sm-3","col-lg-2","control-label"],["type","text","name","registrationTitle",1,"form-control",3,"ngModelChange","ngModel"],["for","registrationEmail",1,"col-sm-3","col-lg-2","control-label"],["type","text","name","registrationEmail",1,"form-control",3,"ngModelChange","ngModel"],["for","registrationAddress1",1,"col-sm-3","col-lg-2","control-label"],[1,"form-group"],[1,"col-sm-12"],["type","text","name","registrationAddress1",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","registrationAddress2",1,"form-control",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-sm-5"],["for","registrationCity",1,"col-sm-12"],["type","text","name","registrationCity",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-sm-3"],["for","registrationState",1,"col-sm-12"],[3,"ngModelChange","skipPreSelect","ngModel"],[1,"col-sm-4"],["for","registrationZip",1,"col-sm-12"],["type","text","name","registrationZip",1,"form-control",3,"ngModelChange","ngModel"],["for","registrationCountry",1,"col-sm-12"],[3,"ngModelChange","ngModel"],["for","registrationPhone",1,"col-sm-3","col-lg-2","control-label"],["type","text","name","registrationPhone",1,"form-control",3,"ngModelChange","ngModel"],[1,"text-danger"],["for","profileRelatedLookup",1,"col-sm-3","col-lg-2","control-label"],["name","profileRelatedLookup",3,"ngModelChange","onProfileChanged","ngModel","relatedProfileId","disabled"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"div",2)(2,"h3"),f(3),d(4,"translate"),d(5,"titlecase"),s(),l(6,"div",3)(7,"label",4),f(8),d(9,"translate"),d(10,"titlecase"),x(11,Va,2,0,"label",5),s(),l(12,"div",6)(13,"input",7),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.OrgName,c)||(e.registration.Registration.OrgName=c),w(c)}),O("blur",function(c){return I(p),w(e.onOrgNameChange(c))}),s()()(),x(14,La,7,8,"div",8),l(15,"div",3)(16,"label",9),f(17),d(18,"translate"),d(19,"titlecase"),x(20,ka,2,0,"label",5),s(),l(21,"div",10)(22,"input",11),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Prefix,c)||(e.registration.Registration.Prefix=c),w(c)}),s()()(),l(23,"div",3)(24,"label",12),f(25),d(26,"translate"),d(27,"titlecase"),x(28,Ua,2,0,"label",5),s(),l(29,"div",6)(30,"input",13),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.FName,c)||(e.registration.Registration.FName=c),w(c)}),s()()(),l(31,"div",3)(32,"label",14),f(33),d(34,"translate"),d(35,"titlecase"),x(36,qa,2,0,"label",5),s(),l(37,"div",6)(38,"input",15),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.LName,c)||(e.registration.Registration.LName=c),w(c)}),O("blur",function(){return I(p),w(e.onLastNameChange())}),s()()(),l(39,"div",3)(40,"label",16),f(41),d(42,"translate"),d(43,"titlecase"),x(44,ja,2,0,"label",5),s(),l(45,"div",6)(46,"input",17),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Title,c)||(e.registration.Registration.Title=c),w(c)}),s()()(),l(47,"div",3)(48,"label",18),f(49),d(50,"translate"),d(51,"titlecase"),x(52,Qa,2,0,"label",5),s(),l(53,"div",6)(54,"input",19),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Email,c)||(e.registration.Registration.Email=c),w(c)}),s()()(),l(55,"div",3)(56,"label",20),f(57),d(58,"translate"),d(59,"titlecase"),x(60,Ha,2,0,"label",5),s(),l(61,"div",6)(62,"div",21)(63,"div",22)(64,"input",23),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Address1,c)||(e.registration.Registration.Address1=c),w(c)}),s()()(),l(65,"div",21)(66,"div",22)(67,"input",24),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Address2,c)||(e.registration.Registration.Address2=c),w(c)}),s()()(),l(68,"div",25)(69,"div",26)(70,"div",21)(71,"label",27),f(72),d(73,"translate"),d(74,"titlecase"),x(75,Ga,2,0,"label",5),s(),l(76,"div",22)(77,"input",28),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.City,c)||(e.registration.Registration.City=c),w(c)}),s()()()(),l(78,"div",29)(79,"div",21)(80,"label",30),f(81),d(82,"translate"),d(83,"titlecase"),x(84,Za,2,0,"label",5),s(),l(85,"div",22)(86,"wl-state-selector",31,0),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.State,c)||(e.registration.Registration.State=c),w(c)}),s()()()(),l(88,"div",32)(89,"div",25)(90,"label",33),f(91),d(92,"translate"),d(93,"titlecase"),x(94,Ka,2,0,"label",5),s(),l(95,"div",22)(96,"input",34),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Zip,c)||(e.registration.Registration.Zip=c),w(c)}),s()()()()(),l(97,"div",25)(98,"label",35),f(99),d(100,"translate"),d(101,"titlecase"),s(),l(102,"div",22)(103,"wl-country-selector",36),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Country,c)||(e.registration.Registration.Country=c),w(c)}),s()()()()(),l(104,"div",3)(105,"label",37),f(106),d(107,"translate"),d(108,"titlecase"),x(109,Ya,2,0,"label",5),s(),l(110,"div",6)(111,"input",38),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.Phone,c)||
1(e.registration.Registration.Phone=c),w(c)}),s()()()()()}a&2&&(o(3),P(m(5,49,m(4,47,"events.registration.wizard.contact.title"))),o(3),g("hidden",!e.displayField(e.event.RegCompanyNameVisible)),o(2),S(" ",m(10,53,m(9,51,"events.registration.wizard.contact.org-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegCompanyNameRequired)),o(2),D("ngModel",e.registration.Registration.OrgName),o(),g("ngIf",e.currentUserProfile.OrgInd&&e.isLoggedIn),o(),g("hidden",!e.displayField(e.event.RegPrefixVisible)),o(2),S(" ",m(19,57,m(18,55,"events.registration.wizard.contact.prefix-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegPrefixRequired)),o(2),D("ngModel",e.registration.Registration.Prefix),o(),g("hidden",!e.displayField(e.event.RegFNameVisible)),o(2),S(" ",m(27,61,m(26,59,"events.registration.wizard.contact.first-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegFNameRequired)),o(2),D("ngModel",e.registration.Registration.FName),o(),g("hidden",!e.displayField(e.event.RegLNameVisible)),o(2),S(" ",m(35,65,m(34,63,"events.registration.wizard.contact.last-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegLNameRequired)),o(2),D("ngModel",e.registration.Registration.LName),o(),g("hidden",!e.displayField(e.event.RegTitleVisible)),o(2),S(" ",m(43,69,m(42,67,"events.registration.wizard.contact.title-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegTitleRequired)),o(2),D("ngModel",e.registration.Registration.Title),o(),g("hidden",!e.displayField(e.event.RegEmailVisible)),o(2),S(" ",m(51,73,m(50,71,"events.registration.wizard.contact.email-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegEmailRequired)),o(2),D("ngModel",e.registration.Registration.Email),o(),g("hidden",!e.displayField(e.event.RegAddressVisible)),o(2),S(" ",m(59,77,m(58,75,"events.registration.wizard.contact.address-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(4),D("ngModel",e.registration.Registration.Address1),o(3),D("ngModel",e.registration.Registration.Address2),o(5),S(" ",m(74,81,m(73,79,"events.registration.wizard.contact.city-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),D("ngModel",e.registration.Registration.City),o(4),S(" ",m(83,85,m(82,83,"events.registration.wizard.contact.state-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),g("skipPreSelect",!0),D("ngModel",e.registration.Registration.State),o(5),S(" ",m(93,89,m(92,87,"events.registration.wizard.contact.zip-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),D("ngModel",e.registration.Registration.Zip),o(3),P(m(101,93,m(100,91,"events.registration.wizard.contact.country-label"))),o(4),D("ngModel",e.registration.Registration.Country),o(),g("hidden",!e.displayField(e.event.RegPhoneVisible)),o(2),S(" ",m(108,97,m(107,95,"events.registration.wizard.contact.phone-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegPhoneRequired)),o(2),D("ngModel",e.registration.Registration.Phone))},dependencies:[ut,$n,li,j,pe,me,ce,H,q],encapsulation:2});let i=n;return i})();function Xa(i,n){if(i&1){let t=z();l(0,"li",4)(1,"a",5),d(2,"translate"),d(3,"titlecase"),O("click",function(a){let e=I(t).index,p=y();return a.preventDefault(),w(p.handleAttendeeLinkClick(e))}),l(4,"span",6),f(5),s(),l(6,"span",6),f(7),d(8,"translate"),d(9,"titlecase"),s()()()}if(i&2){let t=n.$implicit,r=n.index;o(),g("title",t.FName||t.LName?t.FName+" "+t.FName:m(3,9,m(2,7,"events.registration.wizard.attendees.attendee-tab-prefix"))+(r+1)),o(3),g("hidden",!t.FName&&!t.LName),o(),$("",t.FName," ",t.LName),o(),g("hidden",t.FName||t.LName),o(),$("",m(9,13,m(8,11,"events.registration.wizard.attendees.attendee-tab-prefix")),"",r+1)}}var ia=(()=>{let n=class n{constructor(){this.attendees=[],this.enableNewButton=!1,this.onAddAttendee=new re,this.onAttendeeClick=new re}handleNewAttendeeClick(){this.onAddAttendee.emit()}handleAttendeeLinkClick(r){r<0||!this.attendees||this.onAttendeeClick.emit(r)}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-attendee-tab-nav"]],inputs:{attendees:"attendees",enableNewButton:"enableNewButton"},outputs:{onAddAttendee:"onAddAttendee",onAttendeeClick:"onAttendeeClick"},standalone:!1,decls:7,vars:7,consts:[["type","button",1,"btn","btn-primary","btn-sm","wl-add-attendee-btn",3,"click","hidden"],[1,"glyphicon","glyphicon-plus"],[1,"list-unstyled","wl-attendee-links"],["class","wc-truncate-ellipsis",4,"ngFor","ngForOf"],[1,"wc-truncate-ellipsis"],["href","#",3,"click","title"],[3,"hidden"]],template:function(a,e){a&1&&(l(0,"button",0),O("click",function(){return e.handleNewAttendeeClick()}),N(1,"span",1),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"ul",2),x(6,Xa,10,15,"li",3),s()),a&2&&(g("hidden",!e.enableNewButton),o(2),S(" ",m(4,5,m(3,3,"events.registration.wizard.attendees.new-attendee-button-label")),`
2`),o(4),g("ngForOf",e.attendees))},dependencies:[J,H,q],styles:[".wl-add-attendee-btn[_ngcontent-%COMP%]{margin-bottom:0}.wl-attendee-links[_ngcontent-%COMP%]{margin-top:5px}"]});let i=n;return i})();var Re=(()=>{let n=class n{constructor(r,a){this.getEventCustomRegFields=e=>{let p="Event/"+e.toString()+"/CustomFields?PageSize=0&PageNumber=0&OrderBy=DisplayOrder:Asc,Id:Asc";return this._apiService.get(p)},this.getEventCustomRegField=e=>{let p="EventItemCustomField/"+e.toString();return this._apiService.get(p)},this.upsertEventCustomRegField=e=>{let p="";return p="Event/"+e.EventId.toString()+"/CustomFields",e.Id>0?this._apiService.put(p,e):this._apiService.post(p,e)},this.deleteEventCustomRegField=e=>{let p="";return p="EventItemCustomField/"+e.toString(),this._apiService.delete(p).then(()=>Promise.resolve())},this._apiService=r,this._utilService=a}reorderCustomFields(r,a){let e="/Event/"+r+"/OrderCustomFields";return this._apiService.post(e,a)}};n.\u0275fac=function(a){return new(a||n)(te(Fe),te(Q))},n.\u0275prov=we({token:n,factory:n.\u0275fac});let i=n;return i})();var Pe=(function(i){return i[i.Hidden=0]="Hidden",i[i.RegistrationOnly=1]="RegistrationOnly",i[i.AttendeeOnly=2]="AttendeeOnly",
2i[i.BothRegistrationAndAttendee=3]="BothRegistrationAndAttendee",i})(Pe||{});var ui=class{constructor(){this.ResponseId=0,this.EventCustomRegFieldId=0,this.EventId=0,this.ProfileId=0,this.SignUpId=0,this.AttendeeId=0,this.Response="",this.DateCreated=new Date,this.DateChanged=new Date,this.ChangedBy="",this.EventCustomRegFieldAvailValuesId=0,this.RegistrationHeaderId=0,this.AttendeeHeaderId=0,this.Descr="",this.CustomField=new kr}};function eo(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2);o(),P(t.customField.FieldName)}}function to(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2);o(),P(t.customField.Descr)}}function io(i,n){if(i&1&&(l(0,"span"),f(1),d(2,"currency"),s()),i&2){let t=y(2);o(),S(" (",m(2,1,t.customField.Amount),") ")}}function no(i,n){if(i&1){let t=z();l(0,"div",2)(1,"label")(2,"input",7),B("ngModelChange",function(a){I(t);let e=y();return F(e.response.Response,a)||(e.response.Response=a),w(a)}),s(),x(3,eo,2,1,"span",6)(4,to,2,1,"span",6)(5,io,3,3,"span",6),s()()}if(i&2){let t=y();o(2),D("ngModel",t.response.Response),o(),g("ngIf",!t.customField.Descr),o(),g("ngIf",t.customField.Descr),o(),g("ngIf",t.customField.Amount>0)}}function ro(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2);o(),P(t.customField.FieldName)}}function ao(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2);o(),P(t.customField.Descr)}}function oo(i,n){i&1&&(l(0,"label",9),f(1,"*"),s())}function so(i,n){if(i&1&&(l(0,"label",2),x(1,ro,2,1,"span",6)(2,ao,2,1,"span",6)(3,oo,2,0,"label",8),s()),i&2){let t=y();o(),g("ngIf",!t.customField.Descr),o(),g("ngIf",t.customField.Descr),o(),g("ngIf",t.requiredField(t.customField.Required))}}function lo(i,n){if(i&1&&N(0,"option",13),i&2){let t=n.$implicit,r=y(2);g("value",t.Id)("disabled",t.UnitsAvailable>0&&t.UnitsAvailable<=t.UnitsTaken&&t.Id!=(r.response==null?null:r.response.EventCustomRegFieldAvailValuesId))("text",r.getAvailableValueOptionTextForDropdownType(t))}}function po(i,n){if(i&1){let t=z();l(0,"select",10),B("ngModelChange",function(a){I(t);let e=y();return F(e.response.EventCustomRegFieldAvailValuesId,a)||(e.response.EventCustomRegFieldAvailValuesId=a),w(a)}),O("ngModelChange",function(){I(t);let a=y();return w(a.onDropdownSelectedValueChange())}),l(1,"option",11),f(2,"Select one..."),s(),x(3,lo,1,3,"option",12),s()}if(i&2){let t=y();D("ngModel",t.response.EventCustomRegFieldAvailValuesId),o(),g("value",0),o(2),g("ngForOf",t.customField==null?null:t.customField.AvailableValues)}}function mo(i,n){if(i&1){let t=z();l(0,"input",14),B("ngModelChange",function(a){I(t);let e=y();return F(e.response.Response,a)||(e.response.Response=a),w(a)}),s()}if(i&2){let t=y();D("ngModel",t.response.Response)}}function co(i,n){if(i&1){let t=z();l(0,"input",15),B("ngModelChange",function(a){I(t);let e=y();return F(e.response.Response,a)||(e.response.Response=a),w(a)}),s()}if(i&2){let t=y();D("ngModel",t.response.Response)}}function go(i,n){if(i&1){let t=z();l(0,"textarea",10),B("ngModelChange",function(a){I(t);let e=y();return F(e.response.Response,a)||(e.response.Response=a),w(a)}),s()}if(i&2){let t=y();D("ngModel",t.response.Response)}}function fo(i,n){i&1&&(l(0,"div"),f(1),d(2,"translate"),d(3,"titlecase"),s()),i&2&&(o(),S(" ",m(3,3,m(2,1,"events.registration.shared.custom-field.no-longer-available"))," "))}var na=(()=>{let n=class n{get isCheckBox(){return this.customField&&this.customField.UiControlType=="Checkbox"}get isDropDownList(){return this.customField&&this.customField.UiControlType=="DropdownList"}get isInteger(){return this.customField&&this._utilService.startswith(this.customField.UiControlType,"NumberInputDecim")}get isDecimal(){return this.customField&&this._utilService.startswith(this.customField.UiControlType,"NumberInputNoDecim")}get isTextBox(){return this.customField&&this.customField.UiControlType=="TextboxSingleLine"}get isTextArea(){return this.customField&&this.customField.UiControlType=="TextboxMultiLine"}constructor(r,a){this._translateService=r,this.responseChange=new re,this.getValidationResult=()=>{let e=new ge;return e.isValid=!0,this.customField.UiControlType=="DropdownList",e},this.hasItemsAvailable=()=>{if(this.customField.UiControlType!="DropdownList"||this.response.EventCustomRegFieldAvailValuesId<=0)return!1;let e=this.response&&this.customField.AvailableValues.find(p=>p.Id==this.response.EventCustomRegFieldAvailValuesId);return e&&e&&e.UnitsAvailable>0&&e.UnitsTaken>=e.UnitsAvailable},this.requiredField=e=>e==this.signUpOrAttendeeType&&this.signUpOrAttendeeType>0||e==3,this._utilService=a,this.signUpOrAttendeeType=0}ngOnInit(){}onDropdownSelectedValueChange(){if(this.customField.UiControlType!="DropdownList")return;let r=this.customField.AvailableValues.find(a=>a.Id==this.response.EventCustomRegFieldAvailValuesId);this.response&&(this.response.Response=r?r.Value:""),this.responseChange.emit(this.response)}getAvailableValueOptionTextForDropdownType(r){let a="";return r.UnitsAvailable>r.UnitsTaken?a=" "+(r.UnitsAvailable-r.UnitsTaken).toString()+" "+this._translateService.instant("common.available"):r.UnitsAvailable>0&&(a=" ("+this._translateService.instant("common.unavailable")+")"),r.Amount>
20&&(a=" ("+r.Amount.toLocaleString("en-US",{style:"currency",currency:"USD"})+") "+a),(r.Descr&&r.Descr.search(/\S/)>-1?r.Descr:r.Value)+a}};n.\u0275fac=function(a){return new(a||n)(M(xn),M(Q))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-custom-reg-field"]],inputs:{customField:"customField",response:"response",signUpOrAttendeeType:"signUpOrAttendeeType"},outputs:{responseChange:"responseChange"},standalone:!1,decls:9,vars:7,consts:[[1,"form-group"],["class","col-xs-12",4,"ngIf"],[1,"col-xs-12"],["class","form-control",3,"ngModel","ngModelChange",4,"ngIf"],["class","form-control","type","text",3,"ngModel","ngModelChange",4,"ngIf"],["class","form-control","type","number",3,"ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"form-control",3,"ngModelChange","ngModel"],[3,"value"],[3,"value","disabled","text",4,"ngFor","ngForOf"],[3,"value","disabled","text"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["type","number",1,"form-control",3,"ngModelChange","ngModel"]],template:function(a,e){a&1&&(l(0,"div",0),x(1,no,6,4,"div",1)(2,so,4,3,"label",1),l(3,"div",2),x(4,po,4,3,"select",3)(5,mo,1,1,"input",4)(6,co,1,1,"input",5)(7,go,1,1,"textarea",3)(8,fo,4,5,"div",6),s()()),a&2&&(o(),g("ngIf",e.isCheckBox),o(),g("ngIf",!e.isCheckBox),o(2),g("ngIf",e.isDropDownList),o(),g("ngIf",e.isTextBox),o(),g("ngIf",e.isInteger||e.isDecimal),o(),g("ngIf",e.isTextArea),o(),g("ngIf",e.hasItemsAvailable()))},dependencies:[J,j,Zt,Kt,pe,ft,je,Gt,me,ce,H,De,q],encapsulation:2});let i=n;return i})();function ho(i,n){if(i&1){let t=z();l(0,"wl-registration-custom-reg-field",1),O("responseChange",function(a){I(t);let e=y();return w(e.onResponseChange(a))}),s()}if(i&2){let t=n.$implicit,r=y();g("customField",t.customField)("response",t.response)("signUpOrAttendeeType",r.signUpOrAttendeeType)}}var hi=(()=>{let n=class n{get responses(){return this._responses}set responses(r){this._responses=r,this._originalGivenResponses=[].concat(r),this.setupCustomFields()}get customFields(){return this._customFields}set customFields(r){this._customFields=r,this.setupCustomFields()}get visibilityFilter(){return this._customFieldVisibility}set visibilityFilter(r){this._customFieldVisibility=r,this.setupCustomFields()}get eventItemIds(){return this._eventItemIds}set eventItemIds(r){this._eventItemIds=r,this.setupCustomFields()}constructor(r){this._revenueItemService=r,this.responseChange=new re,this.customFieldsAndResponses=[],this._responses=[],this._originalGivenResponses=[],this._customFields=[],this._customFieldVisibility=[],this._eventItemIds=[]}setupCustomFields(){this._customFields||(this._customFields=[]),this.customFieldsAndResponses=this._customFields.filter(r=>this._eventItemIds.some(a=>r.EventItemIds.indexOf(a)>=0)).filter(r=>this._customFieldVisibility.indexOf(r.Visible)>=0).map(r=>({customField:r,response:this.getOrCreateResponseForCustomField(r)})).filter(r=>!!r.response),setTimeout(()=>{for(;this._responses.length;)this._responses.pop();this.customFieldsAndResponses.map(r=>r.response).forEach(r=>this._responses.push(r))})}onResponseChange(r){if(r.CustomField.ItemNum>0&&r.CustomField.AvailableValues&&r.CustomField.AvailableValues.length){let a=r.CustomField.AvailableValues.find(e=>e.Id==r.EventCustomRegFieldAvailValuesId);this._revenueItemService.getItemTaxAmount(r.CustomField.ItemNum,a.Amount).then(e=>{a.TaxAmount=e,this.responseChange.emit(r)})}else this.responseChange.emit(r)}getOrCreateResponseForCustomField(r){let a=null;if(this._originalGivenResponses){let e=this._originalGivenResponses.find(p=>p.EventCustomRegFieldId==r.Id);e&&(a=e)}return a==null&&(a=new ui,this._originalGivenResponses.push(a)),a.CustomField==null&&(a.CustomField=JSON.parse(JSON.stringify(r))),a.CustomField.Amount=r.Amount,a.CustomField.AvailableValues=r.AvailableValues,a.CustomField.Descr=r.Descr,a.CustomField.DisplayOrder=r.DisplayOrder,a.CustomField.EventId=r.EventId,a.CustomField.EventItemIds=r.EventItemIds,a.CustomField.FieldName=r.FieldName,a.CustomField.Required=r.Required,a.CustomField.StaffOnly=r.StaffOnly,a.CustomField.UiControlType=r.UiControlType,a.CustomField.Id=a.EventCustomRegFieldId=r.Id,a.CustomField.Visible=r.Visible,a.CustomField.ItemNum=r.ItemNum,a}};n.\u0275fac=function(a){return new(a||n)(M(Xn))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-custom-reg-fields"]],inputs:{responses:"responses",signUpOrAttendeeType:"signUpOrAttendeeType",customFields:"customFields",visibilityFilter:"visibilityFilter",eventItemIds:"eventItemIds"},outputs:{responseChange:"responseChange"},standalone:!1,decls:1,vars:1,consts:[[3,"customField","response","signUpOrAttendeeType","responseChange",4,"ngFor","ngForOf"],[3,"responseChange","customField","response","signUpOrAttendeeType"]],template:function(a,e){a&1&&x(0,ho,1,3,"wl-registration-custom-reg-field",0),a&2&&g("ngForOf",e.customFieldsAndResponses)},dependencies:[J,na],encapsulation:2});let i=n;return i})();var vo=["profileIndDupChecker"],yo=(i,n)=>[i,n];function _o(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Co(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function So(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Io(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function wo(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Eo(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function bo(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function xo(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Ro(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Po(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Mo(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function To(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Ao(i,n){i&1&&(l(0,"label",41),f(1,"*"),s())}function Do(i,n){if(i&1){let t=z();l(0,"li")(1,"div",3)(2,"label")(3,"input",42),B("ngModelChange",function(a){let e=I(t).$implicit;return F(e.Selected,a)||(e.Selected=a),w(a)}),O("ngModelChange",function(){let a=I(t).$implicit,e=y();return w(e.attendeeItemSelectionChanged(a))}),s(),f(4),s()()()}if(i&2){let t=n.$implicit;o(),g("hidden",t.AttendeesForItem<=0),o(2),D("ngModel",t.Selected),o(),S(" ",t.Descr," ")}}function Fo(i,n){i&1&&(l(0,"div",24)(1,"div",23)(2,"h4"),f(3),d(4,"translate"),d(5,"titlecase"),s()()()),i&2&&(o(3),P(m(5,3,m(4,1,"events.registration.wizard.attendees.custom-reg-field-title"))))}var aa=(()=>{let n=class n{get attendee(){return this._attendee}set attendee(r){this._attendee=r,r&&(this._copiedValuesProfileId=r.ProfileId),this.updateSelectedItemsList()}get eventItems(){return this._attendeeEventItems}set eventItems(r){this._attendeeEventItems=r,this.updateSelectedItemsList()}constructor(r,a,e,p,u,c){this._utilService=r,this._eventItemService=a,this._translationService=e,this._registrationService=p,this._userService=u,this._eventCustomRegFieldService=c,this.searchAllProfiles=!1,this.allPossibleCustomFields=[],this.editingRegistration=!1,this.registrationProfileId=0,this.event=new le,this.responseChange=new re,this.onItemSelectionChanged=new re,this.remove=ne
2w re,this._attendee=new Qt,this._attendeeEventItems=[],this._eventFieldVisibleRequiredEnum=Pe,this._selectedEventItemIds=[],this._copiedValuesProfileId=0,this._lastChosenProfile=null,this._uniqueId=0,this.isLoggedIn=!1,this.signUpOrAttendeeType=2,this.requiredField=h=>h==2||h==3,this.searchAllProfiles=!1,this.availableEventItems=new Array,this.canAddNewAttendee=!1,this.isLoggedIn=!1,this.currentUserProfile=new Ve}ngOnInit(){this._uniqueId=n.ComponentUniqueId++,this._userService.getCurrentUserProfileExtended().then(r=>{this.currentUserProfile=r,this.currentUserProfile.ProfileId>0&&(this.isLoggedIn=!0)})}ngOnChanges(r){let a="";this.updateSelectedItemsList()}getValidationResult(){let r=new ge;return r.isValid=!0,r}displayField(r){return(r&2)>0}updateProfileInfo(r,a){if(r.ProfileId>0&&(r.ProfileId!=a.ProfileId||r.LastName!=a.LName||r.FirstName!=a.FName||r.Email!=a.Email)){let e=a.OrgName;this._utilService.isNullEmptyOrWhitespace(e);let p=a.FName,u=a.LName,c=a.Email;this._utilService.map(r,a),this._copiedValuesProfileId=r.ProfileId,a.Phone=r.WorkPhone,r.OrgInd==!0?(a.ProfileId=this.registrationProfileId,a.OrgName=r.OrgName,a.FName=p,a.LName=u,a.NameForBadge=(p+" "+u).trim()):(a.ProfileId=r.ProfileId,a.Prefix=r.Prefix,a.Title=r.Title,a.FName=r.FirstName,a.LName=r.LastName,a.NameForBadge=r.ReportName,a.OrgName=e)}}profileChanged(r,a){this._lastChosenProfile=r,a.AttendeeId<=0&&this.updateProfileInfo(r,a)}relatedProfileChanged(r,a){this._lastChosenProfile=r,a.AttendeeId<=0&&this.updateProfileInfo(r,a)}attendeeItemSelectionChanged(r){this.updateSelectedItemsList(),this.onItemSelectionChanged.emit(r)}onResponseChange(r){this.responseChange.emit(r)}onIndivNameChange(r){if(r.AttendeeId>0)return;let a=r.LName;this._utilService.isNotNullEmptyOrWhitespace(r.FName)&&(a=r.FName+" "+r.LName),r.NameForBadge=a}onLastNameChange(r){if(r.ProfileId<=0&&r.CreateProfile==!0){let a=r.LName;this._utilService.isNotNullEmptyOrWhitespace(r.FName)&&(a=r.FName+" "+r.LName),this.profileIndDupChecker.getPossibleDuplicates(a).then(e=>{e.length>0?this.profileIndDupChecker.show():this.profileIndDupChecker.hide()})}}onDupCheckerIndNameProfileSelected(r,a){this._lastChosenProfile=r,this.updateProfileInfo(r,a)}updateSelectedItemsList(){this._selectedEventItemIds=this.attendee.Items.filter(r=>r.Selected).map(r=>r.EventItemId)}handleCopyProfileInfoClick(){this.updateProfileInfo(this._lastChosenProfile,this.attendee)}handleRemoveAttendeeClick(){this.remove.emit(this.attendee)}};n.ComponentUniqueId=0,n.\u0275fac=function(a){return new(a||n)(M(Q),M(ye),M(oe),M(se),M(We),M(Re))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-attendee"]],viewQuery:function(a,e){if(a&1&&G(vo,5),a&2){let p;Z(p=K())&&(e.profileIndDupChecker=p.first)}},inputs:{attendee:"attendee",eventItems:"eventItems",searchAllProfiles:"searchAllProfiles",allPossibleCustomFields:[0,"customFields","allPossibleCustomFields"],editingRegistration:"editingRegistration",registrationProfileId:"registrationProfileId",event:"event"},outputs:{responseChange:"responseChange",onItemSelectionChanged:"onItemSelectionChanged",remove:"remove"},standalone:!1,features:[Ee([ye,Re]),mn],decls:140,vars:144,consts:[["attendeeRelatedProfileSelectorComponent",""],[1,"form-group","wl-attendee-row"],[1,"col-lg-5"],[3,"hidden"],[1,"form-group",3,"hidden"],[1,"col-sm-3","control-label"],[1,"col-sm-9"],[3,"ngModelChange","onProfileChanged","onProfilesLoaded","ngModel","relatedProfileId","includeSelectValue"],["for","attendeeContactOrgName",1,"col-sm-3","control-label"],["class","text-danger",4,"ngIf"],["type","text",1,"form-control",3,"ngModelChange","name","ngModel"],["for","attendeePrefix",1,"col-sm-3","control-label"],["for","attendeeFirstName",1,"col-sm-3","control-label"],["for","attendeeLastName",1,"col-sm-3","control-label"],["type","text",1,"form-control",3,"ngModelChange","blur","name","ngModel"],["for","attendeeTitle",1,"col-sm-3","control-label"],["for","attendeeEmail",1,"col-sm-3","control-label"],["for","attendeePhone",1,"col-sm-3","control-label"],[1,"col-lg-5",3,"hidden"],[1,"form-group"],["for","attendeeAddress1",1,"col-sm-3","col-lg-12","hidden-lg","control-label"],["for","attendeeAddress1",1,"col-lg-12","visible-lg-block"],[1,"col-sm-9","col-lg-12"],[1,"col-sm-12"],[1,"row"],[1,"col-sm-3"],["for","attendeeCity",1,"col-sm-12"],[1,"col-sm-5"],["for","attendeeState",1,"col-sm-12"],[3,"ngModelChange","skipPreSelect","name","ngModel"],[1,"col-sm-4"],["for","attendeeZip",1,"col-sm-12"],[1,"col-sm-offset-4","col-lg-2"],["type","button",1,"btn","btn-danger",3,"click"],[1,"glyphicon","glyphicon-trash"],[1,"list-unstyled"],[4,"ngFor","ngForOf"],[1,"col-sm-8"],[1,"container-fluid"],["class","row",4,"ngIf"],[3,"responseChange","customFields","responses","visibilityFilter","eventItemIds","signUpOrAttendeeType"],[1,"text-danger"],["type","checkbox",3,"ngModelChange","ngModel"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"label",5),f(5),d(6,"translate"),d(7,"titlecase"),s(),l(8,"div",6)(9,"wl-related-profile-selector",7,0),B("ngModelChange",function(c){return I(p),F(e.attendee.ProfileId,c
2)||(e.attendee.ProfileId=c),w(c)}),O("onProfileChanged",function(c){return I(p),w(e.relatedProfileChanged(c,e.attendee))})("onProfilesLoaded",function(c){return I(p),w(e.attendee.searchAllProfiles=e.attendee.ProfileId>0&&!c)}),s()()()(),l(11,"div",4)(12,"label",8),f(13),d(14,"translate"),d(15,"titlecase"),x(16,_o,2,0,"label",9),s(),l(17,"div",6)(18,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.OrgName,c)||(e.attendee.OrgName=c),w(c)}),s()()(),l(19,"div",4)(20,"label",11),f(21),d(22,"translate"),d(23,"titlecase"),x(24,Co,2,0,"label",9),s(),l(25,"div",6)(26,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Prefix,c)||(e.attendee.Prefix=c),w(c)}),s()()(),l(27,"div",4)(28,"label",12),f(29),d(30,"translate"),d(31,"titlecase"),x(32,So,2,0,"label",9),s(),l(33,"div",6)(34,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.FName,c)||(e.attendee.FName=c),w(c)}),O("ngModelChange",function(){return I(p),w(e.onIndivNameChange(e.attendee))}),s()()(),l(35,"div",4)(36,"label",13),f(37),d(38,"translate"),d(39,"titlecase"),x(40,Io,2,0,"label",9),s(),l(41,"div",6)(42,"input",14),B("ngModelChange",function(c){return I(p),F(e.attendee.LName,c)||(e.attendee.LName=c),w(c)}),O("blur",function(){return I(p),w(e.onLastNameChange(e.attendee))})("ngModelChange",function(){return I(p),w(e.onIndivNameChange(e.attendee))}),s()()(),l(43,"div",4)(44,"label",15),f(45),d(46,"translate"),d(47,"titlecase"),x(48,wo,2,0,"label",9),s(),l(49,"div",6)(50,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Title,c)||(e.attendee.Title=c),w(c)}),s()()(),l(51,"div",4)(52,"label",5),f(53),d(54,"translate"),d(55,"titlecase"),x(56,Eo,2,0,"label",9),s(),l(57,"div",6)(58,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.NameForBadge,c)||(e.attendee.NameForBadge=c),w(c)}),s()()(),l(59,"div",4)(60,"label",16),f(61),d(62,"translate"),d(63,"titlecase"),x(64,bo,2,0,"label",9),s(),l(65,"div",6)(66,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Email,c)||(e.attendee.Email=c),w(c)}),s()()(),l(67,"div",4)(68,"label",17),f(69),d(70,"translate"),d(71,"titlecase"),x(72,xo,2,0,"label",9),s(),l(73,"div",6)(74,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Phone,c)||(e.attendee.Phone=c),w(c)}),s()()()(),l(75,"div",18)(76,"div",19)(77,"label",20),f(78),d(79,"translate"),d(80,"titlecase"),x(81,Ro,2,0,"label",9),s(),l(82,"label",21),f(83),d(84,"translate"),d(85,"titlecase"),x(86,Po,2,0,"label",9),s(),l(87,"div",22)(88,"div",19)(89,"div",23)(90,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Address1,c)||(e.attendee.Address1=c),w(c)}),s()()(),l(91,"div",19)(92,"div",23)(93,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Address2,c)||(e.attendee.Address2=c),w(c)}),s()()(),l(94,"div",24)(95,"div",25)(96,"div",19)(97,"label",26),f(98),d(99,"translate"),d(100,"titlecase"),x(101,Mo,2,0,"label",9),s(),l(102,"div",23)(103,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.City,c)||(e.attendee.City=c),w(c)}),s()()()(),l(104,"div",27)(105,"div",19)(106,"label",28),f(107),d(108,"translate"),d(109,"titlecase"),x(110,To,2,0,"label",9),s(),l(111,"div",23)(112,"wl-state-selector",29),B("ngModelChange",function(c){return I(p),F(e.attendee.State,c)||(e.attendee.State=c),w(c)}),s()()()(),l(113,"div",30)(114,"div",24)(115,"label",31),f(116),d(117,"translate"),d(118,"titlecase"),x(119,Ao,2,0,"label",9),s(),l(120,"div",23)(121,"input",10),B("ngModelChange",function(c){return I(p),F(e.attendee.Zip,c)||(e.attendee.Zip=c),w(c)}),s()()()()()()()(),l(122,"div",32)(123,"p")(124,"button",33),O("click",function(){return I(p),w(e.handleRemoveAttendeeClick())}),N(125,"span",34),f(126),d(127,"translate"),d(128,"titlecase"),s()(),l(129,"h3"),f(130),d(131,"translate"),d(132,"titlecase"),s(),l(133,"ul",35),x(134,Do,5,3,"li",36),s()()(),l(135,"div",24)(136,"div",37)(137,"div",38),x(138,Fo,6,5,"div",39),l(139,"wl-registration-custom-reg-fields",40),O("responseChange",function(c){return I(p),w(e.onResponseChange(c))}),s()()()()}a&2&&(o(2),g("hidden",e.attendee.CreateProfile),o(),g("hidden",e.isLoggedIn==!1||e.registrationProfileId==0),o(2),S(" ",m(7,79,m(6,77,"events.registration.wizard.attendees.profile-lookup-label"))," "),o(4),D("ngModel",e.attendee.ProfileId),g("relatedProfileId",e.registrationProfileId)("includeSelectValue",!0),o(2),g("hidden",!e.displayField(e.event.RegCompanyNameVisible)),o(2),S(" ",m(15,83,m(14,81,"events.registration.wizard.contact.org-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegCompanyNameRequired)),o(2),g("name","attendeeContactOrgName-"+e._uniqueId),D("ngModel",e.attendee.OrgName),o(),g("hidden",!e.displayField(e.event.RegPrefixVisible)),o(2),S(" ",m(23,87,m(22,85,"events.registration.wizard.contact.prefix-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegPrefixRequired)),o(2),g("name","attendeePrefix-"+e._uniqueId),D("ngModel",e.attendee.Prefix),o(),g("hidden",!e.displayField(e.event.RegFNameVisible)),o(2),S(" ",m(31,91,m(30,89,"events.registration.wizard.contact.first-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegFNameRequired)),o(2),g("name","attendeeFirstName-"+e._uniqueId),D("ngModel",e.attendee.FName),o(),g("hidden",!e.displayField(e.event.RegLNameVisible)),o(2),S(" ",m(39,95,m(38,93,"events.registration.wizard.contact.last-name-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegLNameRequired)),o(2),g("name","attendeeLastName-"+e._uniqueId),D("ngModel",e.attendee.LName),o(),g("hidden",!e.displayField(e.event.RegTitleVisible)),o(2),S(" ",m(47,99,m(46,97,"events.registration.wizard.contact.title-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegTitleRequired)),o(2),g("name","attendeeTitle-"+e._uniqueId),D("ngModel",e.attendee.Title),o(),g("hidden",!e.displayField(e.event.RegNameForBadgeVisible)),o(2),S(" ",m(55,103,m(54,101,"events.registration.wizard.attendees.name-for-badge-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegNameForBadgeRequired)),o(2),g("name","attendeeNameForBadge-"+e._uniqueId),D("ngModel",e.attendee.NameForBadge),o(),g("hidden",!e.displayField(e.event.RegEmailVisible)),o(2),S(" ",m(63,107,m(62,105,"events.registration.wizard.contact.email-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegEmailRequired)),o(2),g("name","attendeeEmail-"+e._uniqueId),D("ngModel",e.attendee.Email),o(),g("hidden",!e.displayField(e.event.RegPhoneVisible)),o(2),S(" ",m(71,111,m(70,109,"events.registration.wizard.contact.phone-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegPhoneRequired)),o(2),g("name","attendeePhone-"+e._uniqueId),D("ngModel",e.attendee.Phone),o(),g("hidden",!e.displayField(e.event.RegAddressVisible)),o(3),S(" ",m(80,115,m(79,113,"events.registration.wizard.contact.address-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),S(" ",m(85,119,m(84,117,"events.registration.wizard.contact.address-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(4),g("name","attendeeAddress1-"+e._uniqueId),D("ngModel",e.attendee.Address1),o(3),g("name","attendeeAddress2-"+e._uniqueId),D("ngModel",e.attendee.Address2),o(5),S(" ",m(100,123,m(99,121,"events.registration.wizard.contact.city-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),g("name","attendeeCity-"+e._uniqueId),D("ngModel",e.attendee.City),o(4),S(" ",m(109,127,m(108,125,"events.registration.wizard.contact.state-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),g("skipPreSelect",!0)("name","attendeeState-"+e._uniqueId),D("ngModel",e.attendee.State),o(4),S(" ",m(118,131,m(117,129,"events.registration.wizard.contact.zip-label"))," "),o(3),g("ngIf",e.requiredField(e.event.RegAddressRequired)),o(2),g("name","attendeeZip-"+e._uniqueId),D("ngModel",e.attendee.Zip),o(5),S(" ",m(128,135,m(127,133,"events.registration.wizard.attendees.remove-attendee-button-label"))," "),o(4),P(m(132,139,m(131,137,"events.registration.wizard.attendees.assign-items-label"))),o(4),g("ngForOf",e.attendee.Items),o(4),g("ngIf",e.attendee.CustomFieldResponses==null?null:e.attendee.CustomFieldResponses.length),o(),g("customFields",e.allPossibleCustomFields)("responses",e.attendee.CustomFieldResponses)("visibilityFilter",kt(14
21,yo,e._eventFieldVisibleRequiredEnum.AttendeeOnly,e._eventFieldVisibleRequiredEnum.BothRegistrationAndAttendee))("eventItemIds",e._selectedEventItemIds)("signUpOrAttendeeType",e.signUpOrAttendeeType))},dependencies:[ut,li,J,j,pe,je,me,ce,hi,H,q],styles:[".wl-event-reg-wiz-misc-fields-open-close-icon[_ngcontent-%COMP%]{transform-origin:center center;transform:rotate(-90deg);transition:transform .2s ease-out}.wl-event-reg-wiz-misc-fields-close-open[_ngcontent-%COMP%]   .wl-event-reg-wiz-misc-fields-open-close-icon[_ngcontent-%COMP%]{transform:rotate(0)}.wl-attendee-row[_ngcontent-%COMP%]     .form-control-static{padding-bottom:0}"]});let i=n;return i})();function Wo(i,n){if(i&1&&(l(0,"p"),N(1,"wl-busy",8),s()),i&2){let t=y();o(),g("show",t._loading)}}function Oo(i,n){i&1&&(l(0,"p"),f(1),d(2,"translate"),s()),i&2&&(o(),P(m(2,1,"events.registration.wizard.attendees.no-attendees-added")))}function No(i,n){if(i&1){let t=z();l(0,"div")(1,"div",9)(2,"span",6),f(3),s(),l(4,"span",6),f(5),d(6,"translate"),d(7,"titlecase"),s()(),l(8,"wl-registration-wizard-attendee",10),O("responseChange",function(a){let e=I(t).$implicit,p=y();return w(p.onResponseChange(a,e))})("onItemSelectionChanged",function(a){let e=I(t).$implicit,p=y();return w(p.attendeeItemSelectionChanged(a,e))})("remove",function(){let a=I(t).$implicit,e=y();return w(e.removeAttendee(a))}),s()()}if(i&2){let t=n.$implicit,r=n.index,a=y();un(Lt("wc-event-reg-wiz-attendee highlight-box has-violator-tag wc-event-reg-wiz-attendee-",r)),o(),g("id",ae("divAttendee"+(r+1).toString())),o(),g("hidden",!t.FName&&!t.LName),o(),$("",t.FName," ",t.LName),o(),g("hidden",t.FName||t.LName),o(),$("",m(7,20,m(6,18,"events.registration.wizard.attendees.attendee-tab-prefix")),"",r+1),o(3),g("attendee",t)("eventItems",t.Items)("customFields",a.allPossibleCustomFields)("searchAllProfiles",a.searchAllProfiles)("editingRegistration",a.registration==null?null:a.registration.IsEdit)("registrationProfileId",a.registrationProfile&&a.registrationProfile.OrgInd?a.registrationProfile.ProfileId:0)("event",a.event)}}var oa=(()=>{let n=class n{constructor(r,a,e,p,u,c,h,T){this._el=c,this.registration=new ve,this.registrationProfile=null,this.customFieldResponseChangeEmitter=new re,this.event=new le,this.initialLoadComplete=!1,this._eventFieldVisibleRequiredEnum=Pe,this._iAmAsloAnAttendeeConfigSetting=!1,this._loading=!1,this.signUpOrAttendeeType=2,this.loadData=()=>{let b=[];return this._loading=!0,b.push(this.updateAllPossibleCustomFields()),this.registrationId>0&&b.push(this._registrationService.getRegistrationAttendeesMin(this.registrationId).then(C=>{this.registration.Attendees=C,this.registration.Attendees.forEach((v,_)=>{v.Items&&v.Items.forEach(E=>E.Selected=!0),this.addAllowedRegistrationAttendeeItemsToAttendee(v,!1)})})),this._iAmAsloAnAttendeeConfigSetting=this._configSettingService.getConfigSettingValueFromCollectionAsBoolean("IAmAlsoAnAttendee",this.configSettings),Promise.all(b).then(()=>{this.initialLoadComplete=!0,this._loading=!1},()=>this._loading=!1)},this.getValidationResult=()=>{let b=new ge;b.isValid=!0;let C=this.registration.Attendees.filter(E=>this._utilService.isNotNullEmptyOrWhitespace(E.Email)||this._utilService.isNotNullEmptyOrWhitespace(E.FName)||this._utilService.isNotNullEmptyOrWhitespace(E.LName));if(!this.registration.Attendees.some(E=>!E.Items.some(R=>R.Selected&&R.AttendeesForItem>0))==!1?(b.isValid=!1,b.errors.push(this._translationService.getInstant("events.registration.wizard.attendees.attendees-not-assigned-to-item-validation-error"))):b.isValid=!0,!this.verifyAllRequiredFieldsAreSet()){b.isValid=!1;let E=this._translationService.getInstant("events.registration.wizard.attendees.attendee-required-fields-validation-error")+": ";for(let R of this.requiredFieldsNotPopulated)E=E+" "+R+" ";b.errors.push(E)}return b},this.updateAvailableAttendeeRegistrationItems=b=>{if(this.updateCanAddNewAttendee(),this.canAddNewAttendee&&b){for(let v of this.registration.Attendees)this.addAllowedRegistrationAttendeeItemsToAttendee(v,!1);let C=this.registration.Attendees.filter(v=>!v.Items.some(_=>_.Selected));if(C.length){let v=this.registration.Items.filter(_=>_.AttendeesForItem>0&&this.getAttendeesRemainigForRegistrationItem(_.EventItemId)>0);for(;C.length&&v.length;){let _=v[0],R=C[0].Items.find(A=>A.EventItemId==_.EventItemId);if(R)R.Selected=!0;else break;C=this.registration.Attendees.filter(A=>!A.Items.some(V=>V.Selected)),v=this.registration.Items.filter(A=>A.AttendeesForItem>0&&this.getAttendeesRemainigForRegistrationItem(A.EventItemId)>0)}}for(this.updateCanAddNewAttendee();this.canAddNewAttendee;)this.newAttendee();for(let v of this.registration.Attendees)this.addAllowedRegistrationAttendeeItemsToAttendee(v,!0);this.updateCanAddNewAttendee()}else if(b&&this.registration.Attendees&&this.registration.Attendees.length){let C=this.registration.Items.filter(R=>R.AttendeesForItem>0&&(!R.Quantity||R.Quantity<=0));if(C.length){let R=C.map(A=>A.EventItemId);for(let A of this.registration.Attendees.filter(V=>V.Items.some(ee=>R.indexOf(ee.EventItemId)>-1)))A.Items=A.Items.filter(V=>R.indexOf(V.EventItemId)<0);this.registration.Attendees.filter(A=>A.AttendeeId>
20&&!A.Items.length).forEach(A=>{let V=this.registration.Attendees.indexOf(A);V>=0&&this.registration.Attendees.splice(V,1)})}let v=R=>R.filter(A=>A.AttendeesForItem>0).filter(A=>this.getAttendeesForRegistrationItem(A.EventItemId).length>0&&this.getAttendeesRemainigForRegistrationItem(A.EventItemId)<0),_=v(this.registration.Items);for(;_.length;)_.forEach(R=>{let A=this.registration.Attendees.map(V=>V.Items.filter(ee=>ee.EventItemId==R.EventItemId&&ee.Selected)).filter(V=>V.length>0);A.length&&(A[A.length-1][0].Selected=!1)}),_=v(this.registration.Items);let E=0;for(let R of this.registration.Items)R.Quantity>0&&(E=E+R.Quantity*R.AttendeesForItem);this.registration.Attendees.length>E&&(this.registration.Attendees.length=E),this.updateCanAddNewAttendee()}},this.updateAllPossibleCustomFields=()=>this._eventCustomRegFieldService.getEventCustomRegFields(this.event.EventId).then(b=>{this.allPossibleCustomFields=new Array;for(let C of b.Result)C.StaffOnly||this.allPossibleCustomFields.push(C)}),this.getRegistrationItem=b=>{let C=this.registration.Items.filter(v=>v.EventItemId==b);return C.length>0?C[0]:new Et},this.getAttendeesForRegistrationItem=b=>{let C=new Array;for(let v of this.registration.Attendees)for(let _ of v.Items)_.Selected==!0&&_.EventItemId==b&&C.push(v);return C},this.getAttendeesRemainigForRegistrationItem=b=>{let C=0,v=this.getRegistrationItem(b);if(v.Quantity>0){let E=this.getAttendeesForRegistrationItem(b).length;C=v.AttendeesForItem*v.Quantity-E}return C},this.addAllowedRegistrationAttendeeItemsToAttendee=(b,C)=>{let v=!1;for(let _ of this.registration.Items.filter(E=>E.AttendeesForItem>0&&E.Quantity>0)){let E=b.Items.filter(R=>R.EventItemId==_.EventItemId);if(E.length)E[0]&&(E[0].DisplayOrder=_.DisplayOrder,E[0].AttendeesForItem=_.AttendeesForItem);else{let R=new Dn;this._utilService.map(_,R),R.Remaining=this.getAttendeesRemainigForRegistrationItem(_.EventItemId),C&&(R.Selected=R.Remaining>0),b.Items.push(R),v=!0}}v&&b.Items.sort((_,E)=>_.DisplayOrder<E.DisplayOrder?-1:_.DisplayOrder>E.DisplayOrder?1:_.Descr.toLocaleLowerCase()<E.Descr.toLocaleLowerCase()?-1:_.Descr.toLocaleLowerCase()>E.Descr.toLocaleLowerCase()?1:0)},this.getPotentialAttendeesForRegistrationItem=b=>{let C=0,v=this.getRegistrationItem(b);if(C=v.AttendeesForItem,v.Quantity>0){C=v.AttendeesForItem*v.Quantity;let _=this.getAttendeesForRegistrationItem(b);C-_.length}return C<0&&(C=0),C},this.attendeeItemSelectionChanged=(b,C)=>{if(b.Selected&&this.getAttendeesRemainigForRegistrationItem(b.EventItemId)<0){let _=this.registration.Attendees.filter(E=>E!=C).map(E=>E.Items.filter(R=>R.EventItemId==b.EventItemId&&R.Selected)).filter(E=>E.length>0);_.length&&(_[0][0].Selected=!1)}this.updateCanAddNewAttendee()},this.newAttendee=()=>{let b=new Qt;b.OrgName=this.registration.Registration.OrgName,b.Email=this.registration.Registration.Email,b.ProfileId=0,this.registration.Attendees.length<=0&&this._iAmAsloAnAttendeeConfigSetting&&(this._utilService.mapSafe(this.registration.Registration,b),b.NameForBadge=b.FName+" "+b.LName,this.registration.Registration.relatedProfileId>0&&this.registration.Registration.relatedProfileIsOrg==!1?b.ProfileId=this.registration.Registration.relatedProfileId:b.ProfileId=0),this.addAllowedRegistrationAttendeeItemsToAttendee(b,!0),this.registration.Attendees.push(b),this.updateCanAddNewAttendee()},this.removeAttendee=b=>{this._utilService.arrayRemoveEntry(this.registration.Attendees,b),this.updateCanAddNewAttendee()},this.updateCanAddNewAttendee=()=>{let b=!1;for(let C of this.registration.Items)C.Quantity>0&&this.getAttendeesRemainigForRegistrationItem(C.EventItemId)>0&&(b=!0);this.canAddNewAttendee!=b&&(this.canAddNewAttendee=b)},this.onResponseChange=(b,C)=>{this.customFieldResponseChangeEmitter.emit(b)},this.requiredField=b=>b==2||b==3,this.verifyAllRequiredFieldsAreSet=()=>{let b=!0,C=1,v=this._translationService.getInstant("events.registration.wizard.attendees.attendee-label");this.requiredFieldsNotPopulated=new Array;for(let _ of this.registration.Attendees){this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Address1)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.address1"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(_.City)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.city"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(_.State)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.state"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Zip)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.zip"))),this.displayField(this.event.RegCompanyNameVisible)&&this.requiredField(this.event.RegCompanyNameRequired)&&this._utilService.isNullEmptyOrWhitespace(_.OrgName)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.organization-name"))),this.displayField(this.event.RegEmailVisible)&&this.requiredField(this.event.RegEmailRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Email)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.email"))),this.displayField(this.event.RegFNameVisible)&&this.requiredField(this.event.RegFNameRequired)&&this._utilService.isNullEmptyOrWhitespace(_.FName)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.first-name"))),this.displayField(this.event.RegLNameVisible)&&this.requiredField(this.event.RegLNameRequired)&&this._utilService.isNullEmptyOrWhitespace(_.LName)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.last-name"))),this.displayField(this.event.RegNameForBadgeVisible)&&this.requiredField(this.event.RegNameForBadgeRequired)&&this._utilService.isNullEmptyOrWhitespace(_.
2NameForBadge)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.name-for-badge"))),this.displayField(this.event.RegPhoneVisible)&&this.requiredField(this.event.RegPhoneRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Phone)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.phone"))),this.displayField(this.event.RegPrefixVisible)&&this.requiredField(this.event.RegPrefixRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Prefix)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.prefix"))),this.displayField(this.event.RegTitleVisible)&&this.requiredField(this.event.RegTitleRequired)&&this._utilService.isNullEmptyOrWhitespace(_.Title)&&(b=!1,this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+this._translationService.getInstant("common.personal-information.title")));for(let E of _.CustomFieldResponses)(E.CustomField.Required==2||E.CustomField.Required==3)&&this._utilService.isNullEmptyOrWhitespace(E.Response)&&(this.requiredFieldsNotPopulated.push(v+" "+C.toString()+" "+E.CustomField.FieldName+" "+this._translationService.getInstant("common.required")),b=!1);C=C+1}return b},this._utilService=r,this._eventItemService=a,this._translationService=e,this._eventCustomRegFieldService=u,this._registrationService=p,this._configSettingService=h,this._changeDetector=T,this.searchAllProfiles=!1,this.availableEventItems=new Array,this.canAddNewAttendee=!1,this.allPossibleCustomFields=new Array,this.requiredFieldsNotPopulated=new Array}setWillBeLoadingNext(){this._loading=!0}addNewAttendee(){this._loading||(this.newAttendee(),setTimeout(()=>this.scrollToAttendee(this.registration.Attendees.length-1)))}scrollToAttendee(r){this.scrollToElement(".wc-event-reg-wiz-attendee-"+r)}scrollToElement(r){let a=jQuery(r,this._el.nativeElement).offset(),e=jQuery(window),p=e.offset()||{top:0},u=a.top-p.top-20,c=e.height(),h=e.scrollTop(),T=h+c-60;(u<h||u>T)&&e.animate({scrollY:u},{duration:900,step:b=>window.scrollTo(0,b)})}displayField(r){return(r&2)>0}};n.\u0275fac=function(a){return new(a||n)(M(Q),M(ye),M(oe),M(se),M(Re),M(Nt),M(Se),M(at))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-attendees"]],inputs:{registrationProfile:"registrationProfile"},outputs:{customFieldResponseChangeEmitter:"customFieldResponseChange"},standalone:!1,features:[Ee([ye,Re])],decls:19,vars:20,consts:[[1,"container-fluid"],[1,"form-horizontal"],[1,"hidden-lg"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"glyphicon","glyphicon-plus"],[4,"ngIf"],[3,"hidden"],[3,"class",4,"ngFor","ngForOf"],[3,"show"],[1,"violator-tag","bg-default",3,"id"],[3,"responseChange","onItemSelectionChanged","remove","attendee","eventItems","customFields","searchAllProfiles","editingRegistration","registrationProfileId","event"]],template:function(a,e){a&1&&(l(0,"div",0)(1,"div",1)(2,"h3"),f(3),d(4,"translate"),d(5,"titlecase"),l(6,"span",2)(7,"button",3),O("click",function(){return e.addNewAttendee()}),N(8,"span",4),f(9),d(10,"translate"),d(11,"titlecase"),s()()(),x(12,Wo,2,1,"p",5)(13,Oo,3,3,"p",5),l(14,"p",6),f(15),d(16,"translate"),d(17,"titlecase"),s(),x(18,No,9,22,"div",7),s()()),a&2&&(o(3),S(" ",m(5,10,m(4,8,"events.registration.wizard.attendees.title"))," "),o(4),g("disabled",!e.canAddNewAttendee||e._loading),o(2),S(" ",m(11,14,m(10,12,"events.registration.wizard.attendees.new-attendee-button-label"))," "),o(3),g("ngIf",e._loading),o(),g("ngIf",!e._loading&&!e.registration.Attendees.length),o(),g("hidden",e.canAddNewAttendee||e.registration.Attendees.length<=0),o(),S(" ",m(17,18,m(16,16,"events.registration.wizard.attendees.all-attendees-have-been-added-label"))," "),o(3),g("ngForOf",e.registration.Attendees))},dependencies:[ze,J,j,aa,H,q],styles:[".wc-event-reg-wiz-attendee[_ngcontent-%COMP%]{margin-top:25px}"]});let i=n;return i})();var Vo=(i,n)=>[i,n];function Lo(i,n){if(i&1&&(l(0,"div",20),f(1),s()),i&2){let t=y(2).$implicit;o(),P(t.LongDescription)}}function ko(i,n){if(i&1&&(l(0,"div",21)(1,"em"),f(2),d(3,"translate"),s()()),i&2){let t=y(2).$implicit;o(2),$("",t.AttendeesForItem," ",m(3,2,"events.registration.wizard.items.attendees-included"))}}function Uo(i,n){i&1&&(l(0,"div",21)(1,"em"),f(2),d(3,"translate"),s()()),i&2&&(o(2),P(m(3,1,"events.registration.wizard.items.ticket-has-no-attendees-label")))}function qo(i,n){i&1&&(l(0,"div",21)(1,"em"),f(2),d(3,"translate"),s()()),i&2&&(o(2),P(m(3,1,"events.registration.wizard.items.see-below-for-additional-information")))}function jo(i,n){if(i&1&&(l(0,"span",22),d(1,"translate"),d(2,"titlecase"),f(3),d(4,"currency"),s()),i&2){let t=y(2).$implicit;g("title",m(2,4,m(1,2,t.MembersOnly?"events.registration.wizard.items.member-price-label":"events.registration.wizard.items.non-member-price-label"))),o(3),P(m(4,6,t.NonMemberPrice))}}function Qo(i,n){if(i&1&&(l(0,"span")(1,"span",23),d(2,"translate"),d(3,"titlecase"),f(4),d(5,"currency"),s(),f(6,"/"),l(7,"span",22),d(8,"translate"),d(9,"titlecase"),f(10),d(11,"currency"),s()()),i&2){let t=y(2).$implicit;o(),g("title",m(3,6,m(2,4,"events.registration.wizard.items.member-price-label"))),o(3),P(m(5,8,t.MemberPrice)),o(3),g("title",m(9,12,m(8,10,"events.registration.wizard.items.non-member-price-label"))),o(3),P(m(11,14,t.NonMemberPrice))}}function Ho(i,n){if(i&1){let t=z();l(0,"input",24),B("ngModelChange",function(a){I(t);let e=y(2).$implicit;return F(e.Quantity,a)||(e.Quantity=a),w(a)}),O("ngModelChange",function(){I(t);let a=y(3);return w(a.quantityChanged())}),s()}if(i&2){let t=y(2),r=t.$implicit,a=t.index,e=y();g("name",Lt("eventItemQuantity_",a))("hidden",r.MaxItemsAvail>0&&r.Remaining<1),D("ngModel",r.Quantity),g("min",0)("max",e.getMaxItemInput(r))}}function Go(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2).$implicit,r=y();o(),P(r.getRestrictedItemMessageOrDefault(t))}}function Zo(i,n){if(i&1&&(l(0,"span"),f(1),s()),i&2){let t=y(2).$implicit,r=y();o(),P(r.getTeaserMessageOrDefault(t))}}function Ko(i,n){if(i&1&&(l(0,"p",25),f(1),d(2,"translate"),d(3,"ucfirst"),d(4,"translate"),s()),i&2){let t=y(2).$implicit;o(),Vt(" ",m(3,5,m(2,3,"events.registration.wizard.attendees.reg-limit-prepend")),"",t.LimitPerRegistration,"",m(4,7,"events.registration.wizard.attendees.reg-limit-postpend")," ")}}function Yo(i,n){if(i&1&&(l(0,"div",12)(1,"div",13)(2,"strong"),f(3),d(4,"translate"),d(5,"titlecase"),s()(),l(6,"div"),f(7),d(8,"currency"),s()()),i&2){let t=y(2).$implicit;o(3),P(m(5,4,m(4,2,"events.registration.wizard.items.total-label"))),o(4),P(m(8,6,t.DisplayPrice))}}function Jo(i,n){if(i&1&&(l(0,"div",2)(1,"div",3),f(2),x(3,Lo,2,1,"div",10)(4,ko,4,4,"div",11)(5,Uo,4,3,"div",11)(6,qo,4,3,"div",11),s(),l(7,"div",12)(8,"div",13)(9,"strong"),f(10),d(11,"translate"),d(12,"titlecase"),s()(),l(13,"div"),x(14,jo,5,8,"span",14)(15,Qo,12,16,"span",15),s()(),l(16,"div",12)(17,"div",13)(18,"strong"),f(19),d(20,"translate"),d(21,"titlecase"),s()(),x(22,Ho,1,6,"input",16)(23,Go,2,1,"span",15)(24,Zo,2,1,"span",15),l(25,"div")(26,"strong"),x(27,Ko,5,9,"p",17),l(28,"span",18),f(29),d(30,"translate"),d(31,"titlecase"),s(),l(32,"span",18),f(33),d(34,"translate"),d(35,"titlecase"),s()()()(),x(36,Yo,9,8,"div",19),s()),i&2){let t=y().$implicit,r=y();o(2),S(" ",t.Descr," "),o(),g("ngIf",t.LongDescription),o(),g("ngIf",t.AttendeesForItem>1),o(),g("ngIf",t.AttendeesForItem<=0),o(),g("ngIf",t.Quantity>0&&r.hasCustomRegFields(t.EventItemId)),o(4),P(m(12,21,m(11,19,"events.registration.wizard.items.price-label"))),o(4),g("ngIf",!t.HasMemberPricing),o(),g("ngIf",t.HasMemberPricing),o(4),P(m(21,25,m(20,23,"events.registration.wizard.items.quantity-label"))),o(3),g("ngIf",r.userIsRestrictedFromChoosingItem(t)==!1),o(),g("ngIf",r.isLoggedIn==!0&&r.userIsRestrictedFromChoosingItem(t)),o(),g("ngIf",r.isLoggedIn==!1&&r.userIsRestrictedFromChoosingItem(t)),o(3),g("ngIf",t.LimitPerRegistration&&t.Quantity>t.LimitPerRegistration),o(),g("hidden",t.MaxItemsAvail<1||t.Remaining<1),o(),$("(",t.Remaining,"\xA0",m(31,29,m(30,27,"events.registration.wizard.items.items-available-text")),")"),o(3),g("hidden",t.MaxItemsAvail<1||t.Remaining>0),o(),S("(",m(35,33,m(34,31,"events.registration.wizard.attendees.item-sold-out-label")),")"),o(3),g("ngIf",t.Quantity>0)}}function Xo(i,n){if(i&1&&(l(0,"div",8),x(1,Jo,37,35,"div",9),s()),i&2){let t=n.$implicit,r=y();o(),g("ngIf",!r.userIsRestrictedFromViewingItem(t))}}function $o(i,n){i&1&&(l(0,"div",26)(1,"div",27)(2,"h4"),f(3),d(4,"translate"),d(5,"titlecase"),s()()()),i&2&&(o(3),P(m(5,3,m(4,1,"events.registration.wizard.items.custom-reg-field-title"))))}var sa=(()=>{let n=class n{get registration(){return this._registration}set registration(r){this._registration=r,this.updateSelectedItemQuantityTracking()}constructor(r,a,e,p,u,c,h,T,b,C){this.event=new le,this.initialLoadComplete=!1,this._registration=new ve,this._eventFieldVisibleRequiredEnum=Pe,this._selectedEventItemIds=[],this.allPossibleCustomFields=[],this.signUpOrAttendeeType=1,this.loadData=()=>{let v=[],_=[],E=[];return v.push(this._eventCustomRegFieldService.getEventCustomRegFields(this.event.EventId).then(R=>{for(let A of R.Result)A.StaffOnly||this.allPossibleCustomFields.push(A)})),v.push(this._userService.getCurrentUserProfileExtended().then(R=>{if(R.ProfileId>0){this.isLoggedIn=!0,this.currentUserProfile=R;for(var A of this.currentUserProfile.RelatedProfiles)A.Member&&(this.registration.Registration.IsRelatedToMember=!0);this._changeDetector.detectChanges()}})),this.event.EventId&&this.registration.IsEdit&&(v.push(this._registrationService.getRegistrationCustomFieldResponses(this.registrationId).then(R=>{_=R})),v.push(this._registrationService.getRegistrationItemsMin(this.registrationId).then(R=>{E=R}))),Promise.all(v).then(()=>
2{if(!this.event.EventId)return;this.registration.Items=new Array,this.originalItems=new Array;let R=this._utilService.getDateWithoutTime(new Date);for(let A of this.event.Items)if(A.IsPublic&&this._utilService.getDateWithoutTime(A.StartDate)<=R&&this._utilService.getDateWithoutTime(A.EndDate)>=R){let V=new Et;this._utilService.map(A,V),V.Selected=!1;for(let L of E)L.EventItemId==A.EventItemId&&this._utilService.mapSafe(L,V);this.registration.Items.push(V);let ee=new Et;this._utilService.mapSafe(V,ee),this.originalItems.push(ee)}if(this.updateSelectedItemQuantityTracking(),this.registration.IsEdit){let A=new Array;for(let V of _)(V.CustomField.Visible==Pe.RegistrationOnly||V.CustomField.Visible==Pe.BothRegistrationAndAttendee)&&(V.AttendeeHeaderId==null||V.AttendeeHeaderId<=0)&&A.push(V);this.registration.Registration.EventCustomRegFieldResponses=A}return this.onRegistrationItemsChanged.emit(this.registration.Items),this.getItemTotals(),this.initialLoadComplete=!0,this.registration.Items})},this.getValidationResult=()=>{let v=new ge;v.isValid=!0;let _=this.registration.Items.filter(E=>E.Quantity>0);if(_.length<=0&&(v.isValid=!1,v.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.no-item-selected-validation-message"))),_.find(E=>E.LimitPerRegistration>0&&E.Quantity>E.LimitPerRegistration)&&(v.isValid=!1,v.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.item-quantity-greater-than-limit"))),_.find(E=>E.MaxItemsAvail>0&&E.Quantity>E.Remaining)&&(v.isValid=!1,v.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.item-quantity-greater-than-remaining"))),this.registration.Registration.EventCustomRegFieldResponses)for(let E of this.registration.Registration.EventCustomRegFieldResponses)(E.CustomField.Required==1||E.CustomField.Required==3)&&this._utilService.isNotNullOrUndefined(E.Response)&&this._utilService.isNullEmptyOrWhitespace(E.Response)&&(v.isValid=!1,v.errors.push(E.CustomField.FieldName+" "+this._translationService.getInstant("common.required")));return v},this.getMaxItemInput=v=>{let _=v.LimitPerRegistration?v.LimitPerRegistration:999999999;return v.MaxItemsAvail>0&&(_=Math.min(_,v.Remaining)),_},this.getItemTotals=()=>{this.registration.Items.forEach(_=>_.Quantity=Math.round(_.Quantity));let v=this.registration.Items.filter(_=>_.Quantity>0);this.onRegistrationItemsChanged.emit(v),setTimeout(()=>{this.itemTotal=0;let _=0;this._registrationService.calculateTotals(this.registration),this.checkIfItemsHaveChanged(),this.itemTotal=this.registration.Registration.PreTaxAmount})},this.quantityChanged=()=>{this.updateSelectedItemQuantityTracking(),setTimeout(()=>this.getItemTotals())},this.hasCustomRegFields=v=>this.registration.Registration.EventCustomRegFieldResponses&&this.registration.Registration.EventCustomRegFieldResponses.some(_=>(_.CustomField.Visible==Pe.RegistrationOnly||_.CustomField.Visible==Pe.BothRegistrationAndAttendee)&&_.CustomField.EventItemIds&&_.CustomField.EventItemIds.some(E=>E==v)),this.showCustomFields=()=>this.registration.Registration.EventCustomRegFieldResponses.length>0,this.onResponseChange=v=>{this.getItemTotals()},this.checkIfItemsHaveChanged=()=>{if(this.registration.ItemsChanged=!1,this.registration.ItemsChanged==!1&&this.registration.IsEdit){let v=0;for(let _ of this.registration.Items)this.originalItems[v].EventItemId==_.EventItemId&&(this.originalItems[v].Quantity!=_.Quantity||this.originalItems[v].ExtendedPrice!=_.ExtendedPrice)&&(this.registration.ItemsChanged=!0),v=v+1}},this.userHasRequiredAffCode=v=>{let _=!1;if(this.isLoggedIn){for(let E of v)for(let R of this.currentUserProfile.Affiliations)if(this._utilService.toLowerTrim(R.AffCode)==this._utilService.toLowerTrim(E))return _=!0,_}return _},this.userIsMemberOrRelatedToMember=()=>{let v=!1;if(this.isLoggedIn){if(this.currentUserProfile.Member)v=!0;else for(let _ of this.currentUserProfile.RelatedProfiles)if(_.Member){v=!0;break}}return v},this.userIsRestrictedFromChoosingItem=v=>{let _=!1;if(v.MembersOnly&&(v.AllowRelateProfileMemberPrice?_=!this.userIsMemberOrRelatedToMember():_=!this.currentUserProfile.Member),v.RestrictForAff
2iliations){_=!0;for(let E of this.currentUserProfile.Affiliations)for(let R of v.AffiliationRestrictions)if(this._utilService.toLowerTrim(R)==this._utilService.toLowerTrim(E.AffCode)){_=!1;break}}return _},this.getRestrictedItemMessageOrDefault=v=>v.RestrictForAffiliations||v.MembersOnly?this._utilService.isNotNullEmptyOrWhitespace(v.RestrictedMessage)?v.RestrictedMessage:this._translationService.getInstant("events.registration.wizard.items.logged-in-but-item-restricted-message"):"",this.getTeaserMessageOrDefault=v=>v.RestrictForAffiliations||v.MembersOnly?this._utilService.isNotNullEmptyOrWhitespace(v.TeaserMessage)?v.TeaserMessage:this._translationService.getInstant("events.registration.wizard.items.log-in-above-message"):"",this.userIsRestrictedFromViewingItem=v=>{let _=!1;return this.userIsRestrictedFromChoosingItem(v)&&v.ShowForEligibleUsersOnly==!0&&(_=!0),_},this._utilService=r,this._eventItemService=a,this._translationService=e,this._eventCustomRegFieldService=p,this._registrationService=u,this._configSettingService=c,this._affCodeService=h,this._profileService=T,this._userService=C,this.availableItems=new Array,this.onRegistrationItemsChanged=new re,this.itemTotal=0,this.registrationId=0,this.originalItems=new Array,this.isLoggedIn=!1,this.currentUserProfile=new Ve,this._changeDetector=b}ngOnInit(){}updateSelectedItemQuantityTracking(){let r=this.registration&&this.registration.Items?this.registration.Items:[];this._selectedEventItemIds=r.filter(a=>a.Quantity>0).map(a=>a.EventItemId)}};n.\u0275fac=function(a){return new(a||n)(M(Q),M(ye),M(oe),M(Re),M(se),M(Se),M(Yt),M(Le),M(at),M(We))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-items"]],outputs:{onRegistrationItemsChanged:"onRegistrationItemsChanged"},standalone:!1,features:[Ee([ye,Re,se,Yt])],decls:30,vars:35,consts:[[1,"container-fluid"],[1,"form-horizontal"],[1,"form-group"],[1,"col-sm-4"],[1,"col-sm-2","text-right","hidden-xs"],["class","highlight-box-xs",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[3,"responseChange","customFields","responses","visibilityFilter","eventItemIds","signUpOrAttendeeType"],[1,"highlight-box-xs"],["class","form-group",4,"ngIf"],["class","f-10",4,"ngIf"],["class","text-indent",4,"ngIf"],[1,"col-sm-2","text-right","text-left-xs"],[1,"visible-xs-block"],[3,"title",4,"ngIf"],[4,"ngIf"],["type","number","class","form-control-static text-right","style","max-width: 4em",3,"name","hidden","ngModel","min","max","ngModelChange",4,"ngIf"],["class","limit-warning",4,"ngIf"],[3,"hidden"],["class","col-sm-2 text-right text-left-xs",4,"ngIf"],[1,"f-10"],[1,"text-indent"],[3,"title"],[1,"break",3,"title"],["type","number",1,"form-control-static","text-right",2,"max-width","4em",3,"ngModelChange","name","hidden","ngModel","min","max"],[1,"limit-warning"],[1,"row"],[1,"col-sm-12"]],template:function(a,e){a&1&&(l(0,"div",0)(1,"div",1)(2,"h3"),f(3),d(4,"translate"),d(5,"titlecase"),s(),l(6,"div",2)(7,"div",3)(8,"strong"),f(9),d(10,"translate"),d(11,"titlecase"),s()(),l(12,"div",4)(13,"strong"),f(14),d(15,"translate"),d(16,"titlecase"),s()(),l(17,"div",4)(18,"strong"),f(19),d(20,"translate"),d(21,"titlecase"),s()(),l(22,"div",4)(23,"strong"),f(24),d(25,"translate"),d(26,"titlecase"),s()()(),x(27,Xo,2,1,"div",5)(28,$o,6,5,"div",6),l(29,"wl-registration-custom-reg-fields",7),O("responseChange",function(u){return e.onResponseChange(u)}),s()()()),a&2&&(o(3),P(m(5,14,m(4,12,"events.registration.wizard.items.title"))),o(6),P(m(11,18,m(10,16,"events.registration.wizard.items.event-item-name-label"))),o(5),P(m(16,22,m(15,20,"events.registration.wizard.items.price-label"))),o(5),P(m(21,26,m(20,24,"events.registration.wizard.items.quantity-label"))),o(5),P(m(26,30,m(25,28,"events.registration.wizard.items.total-label"))),o(3),g("ngForOf",e.registration.Items),o(),g("ngIf",e.showCustomFields()),o(),g("customFields",e.allPossibleCustomFields)("responses",e.registration.Registration.EventCustomRegFieldResponses)("visibilityFilter",kt(32,Vo,e._eventFieldVisibleRequiredEnum.RegistrationOnly,e._eventFieldVisibleRequiredEnum.BothRegistrationAndAttendee))("eventItemIds",e._selectedEventItemIds)("signUpOrAttendeeType",e.signUpOrAttendeeType))},dependencies:[J,j,pe,ft,me,Ln,Vn,ce,hi,ot,H,De,q],styles:["@media only screen and (min-width:768px)and (max-width:989px){.break[_ngcontent-%COMP%]{word-break:break-word}}.limit-warning[_ngcontent-%COMP%]{font-size:.85em;color:#a94442;margin:0}"]});let i=n;return i})();var Bt=class{constructor(){this.FeeTypeId=0,this.FeeType=""}};var vi=(()=>{let n=class n{constructor(r,a,e){this._translationService=e,this.getEventPaymentMethods=p=>{let u="Event/"+p.toString()+"/EventPaymentMethods";return this._apiService.get(u).then(c=>{if(!c)return c;let h=c.map(T=>{let b="";switch(T.PaymentMethodId){case 1:b="enum.payment-method-type.bill-later";break;case 2:b="enum.payment-method-type.pay-at-door";break;case 3:b="enum.payment-method-type.credit-card";break;case 4:b="enum.payment-method-type.purchase-order";break;case 5:b="enum.payment-method-type.cash-check";break}return b?this._translationService.getTitlecase(b).then(C=>T.Descr=C):Promise.resolve("")});return Promise.all(h).then(()=>c)})},this.getEventPaymentMethod=p=>{let u="EventPaymentMethod/"+p.toString();return this._apiService.get(u)},this.getPaymentMethodFeeTypes=()=>{let p=new Bt,u=new Bt;p.FeeType="Flat Fee",p.FeeTypeId=0,u.FeeType="Percent",u.FeeTypeId=1;let c=new Array;return c.push(p),c.push(u),c},this.upsertEventPaymentMethod=p=>this._apiService.post("EventPaymentMethods",p).then(c=>{p.EventPaymentMethodId=c}),this.updateEventPaymentMethodAccepted=(p,u,c)=>{let h="Event/"+p.toString()+"/PaymentMethod/"+u.toString()+"/"+c.toString();this._apiService.put(h,null)},this._apiService=r,this._utilService=a}};n.\u0275fac=function(a){return new(a||n)(te(Fe),te(Q),te(oe))},n.\u0275prov=we({token:n,factory:n.\u0275fac});let i=n;return i})();var yi=(()=>{let n=class n{constructor(r,a){this.getEventPromoCodes=e=>{let p="Event/"+e.toString()+"/PromoCodes?PageSize=9999";return this._apiService.get(p)},this.getEventPromoCode=e=>{let p="PromoCode/"+e.toString();return this._apiService.get(p)},this.upsertEventPromoCode=e=>{if(e.PromoCodeId>0){let p="PromoCode/"+e.PromoCodeId;return this._apiService.put(p,e)}else return this._apiService.post("PromoCodes",e).then(u=>{e.PromoCodeId=u})},this.deleteEventPromoCode=e=>this._apiService.delete("PromoCode/"+e),this.exportPromoCodes=e=>{let p="Event/"+e.toString()+"/PromoCodes/Export";return this._apiService.get(p)},this.exportPromoCode=(e,p)=>{let u="PromoCode/"+e.toString()+"/"+p.toString()+"/Export";return this._apiService.get(u)},this._apiService=r,this._utilService=a}};n.\u0275fac=function(a){return new(a||n)(te(Fe),te(Q))},n.\u0275prov=we({token:n,factory:n.\u0275fac});let i=n;return i})();var tt=class{constructor(){this.ProfileBenefitId=0,this.EventBenefitId=0,this.BenefitTypeId=0,this.BenefitType="",this.QuantityToApply=0,this.ValueToApply=0,this.ProfileId=0,this.LimitType=0,this.RegistrationId=0,this.LimitAmount=0,this.EventPriceId=0}};var as=["creditCardInputComponent"];function os(i,n){if(i&1){let t=z();l(0,"div",4)(1,"label",5),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",6)(6,"div",31)(7,"input",32),B("ngModelChange",function(a){I(t);let e=y();return F(e.promoCodeToApply,a)||(e.promoCodeToApply=a),w(a)}),s(),l(8,"span",33)(9,"button",34),O("click",function(){I(t);let a=y();return w(a.applyPromoCode())}),f(10),d(11,"translate"),d(12,"titlecase"),s(),f(13),s()()()()}if(i&2){let t=y();o(2),S(" ",m(4,7,m(3,5,"events.registration.wizard.payment-info.apply-promo-code-title"))," "),o(5),D("ngModel",t.promoCodeToApply),o(2),g("disabled",t.promoCodeToApply==""),o(),S(" ",m(12,11,m(11,9,"common.apply"))," "),o(3),S(" ",t.selectedPromoCode," ")}}function ss(i,n){i&1&&(l(0,"span",35),f(1),d(2,"translate"),s()),i&2&&(o(),P(m(2,1,"events.registration.wizard.payment-info.this-is-not-a-valid-promo-code")))}function ls(i,n){i&1&&(l(0,"span",35),f(1),d(2,"translate"),s()),i&2&&(o(),P(m(2,1,"events.registration.wizard.payment-info.promo-code-not-available")))}function ds(i,n){if(i&1&&(l(0,"span"),f(1),d(2,"currency"),s()),i&2){let t=y().$implicit;o(),P(m(2,1,t.Discount))}}function ps(i,n){if(i&1&&(l(0,"span"),f(1),d(2,"percent"),s()),i&2){let t=y().$implicit;o(),P(m(2,1,t.Discount/100))}}function ms(i,n){if(i&1){let t=z();l(0,"li",39)(1,"div",1)(2,"div",9)(3,"div",40),f(4),s(),l(5,"div",41),x(6,ds,3,3,"span",30)(7,ps,3,3,"span",30),s(),l(8,"div",17)(9,"span",33)(10,"button",42),O("click",function(){let a=I(t).$implicit,e=y(2);return w(e.removePromoCode(a.PromoCodeId))}),N(11,"span",43),f(12),d(13,"translate"),d(14,"titlecase"),s()()()()()()}if(i&2){let t=n.$implicit,r=y(2);o(4),S(" ",t.Name," "),o(2),g("ngIf",t.DiscountType==r.promoCodeDiscountType.Dollar),o(),g("ngIf",t.DiscountType==r.promoCodeDiscountType.Percent),o(5),S(" ",m(14,6,m(13,4,"common.remove"))," ")}}function cs(i,n){if(i&1&&(l(0,"div",4)(1,"div",36)(2,"ul",37),x(3,ms,15,8,"li",38),s()()()),i&2){let t=y();o(3),g("ngForOf",t.registration.PromoCodes)}}function gs(i,n){if(i&1&&(l(0,"option",25),f(1),s()),i&2){let t=n.$implicit;g("value",t.EventBenefitId),o(),S(" ",t.BenefitType," ")}}function fs(i,n){if(i&1){let t=z();l(0,"div",4)(1,"label",44),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",45)(6,"select",46),B("ngModelChange",function(a){I(t);let e=y();return F(e.selectedEventBenefit.EventBenefitId,a)||(e.selectedEventBenefit.EventBenefitId=a),w(a)}),O("ngModelChange",function(a){I(t);let e=y();return w(e.onBenefitChange(a))}),l(7,"option",25),f(8),d(9,"translate"),d(10,"titlecase"),s(),x(11,gs,2,2,"option",26),s()()()}if(i&2){let t=y();o(2),S(" ",m(4,7,m(3,5,"events.registration.wizard.payment-info.use-member-benefits-label"))," "),o(4),D("ngModel",t.selectedEventBenefit.EventBenefitId),o(),g("value",0),o(),P(m(10,11,m(9,9,"events.registration.wizard.payment-info.select-a-benefit-label"))),o(3),g("ngForOf",t.availableBenefitsToUse)}}function us(i,n){if(i&1&&(l(0,"div",4)(1,"label",44),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",45),f(6),d(7,"currency"),s()()),i&2){let t=y();o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.profile-benefits-amount-remaining-label"))," "),o(4),S(" ",m(7,6,t.selectedProfileBenefit.ValueRemaining)," ")}}function hs(i,n){if(i&1&&(l(0,"div",4)(1,"label",44),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",45),f(6),s()()),i&2){let t=y();o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.profile-benefits-quantity-remaining-label"))," "),o(4),S(" ",t.selectedProfileBenefit.QuantityRemaining," ")}}function vs(i,n){i&1&&(l(0,"label",52),f(1),d(2,"translate"),d(3,"titlecase"),s()),i&2&&(o(),S(" ",m(3,3,m(2,1,"events.registration.wizard.payment-info.benefit-amount-to-use-label"))," "))}function ys(i,n){i&1&&(l(0,"label",52),f(1),d(2,"translate"),d(3,"titlecase"),s()),i&2&&(o(),S(" ",m(3,3,m(2,1,"events.registration.wizard.payment-info.benefit-quantity-to-use-label"))," "))}function _s(i,n){if(i&1){let t=z();l(0,"input",53),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.selectedRegistrationBenefit.ValueToApply,a)||(e.selectedRegistrationBenefit.ValueToApply=a),w(a)}),s()}if(i&2){let t=y(2);D("ngModel",t.selectedRegistrationBenefit.ValueToApply),g("step",.01)("placeholder",0)}}function Cs(i,n){if(i&1){let t=z();l(0,"input",54),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.selectedRegistrationBenefit.QuantityToApply,a)||(e.selectedRegistrationBenefit.QuantityToApply=a),w(a)}),O("ngModelChange",function(a){I(t);let e=y(2);return w(e.onBenefitQuantityToApplyChange(a))}),s()}if(i&2){let t=y(2);D("ngModel",t.selectedRegistrationBenefit.QuantityToApply),g("step",1)("placeholder",0)}}function Ss(i,n){if(i&1){let t=z();l(0,"button",42),O("click",function(){I(t);let a=y(2);return w(a.removeBenefits())}),f(1),d(2,"translate"),d(3,"titlecase"),s()}
2i&2&&(o(),S(" ",m(3,3,m(2,1,"common.remove"))," "))}function Is(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",44),x(2,vs,4,5,"label",47)(3,ys,4,5,"label",47),s(),l(4,"div",45)(5,"div",31),x(6,_s,1,3,"input",48)(7,Cs,1,3,"input",49),l(8,"span",33)(9,"button",50),O("click",function(){I(t);let a=y();return w(a.applyBenefit())}),f(10),d(11,"translate"),d(12,"titlecase"),s(),x(13,Ss,4,5,"button",51),s()()()()}if(i&2){let t=y();o(2),g("ngIf",t.selectedEventBenefit.LimitType==0),o(),g("ngIf",t.selectedEventBenefit.LimitType==1),o(3),g("ngIf",t.selectedEventBenefit.LimitType==0),o(),g("ngIf",t.selectedEventBenefit.LimitType==1),o(3),S(" ",m(12,8,m(11,6,"common.apply"))," "),o(3),g("ngIf",t.registration.Registration.BenefitsToApplyTotal>0)}}function ws(i,n){if(i&1&&(l(0,"div",9)(1,"div",10),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",11),f(6),d(7,"currency"),s()()),i&2){let t=y().$implicit;o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.additional-cost"))," "),o(4),S(" ",m(7,6,t.AdditionalCost)," ")}}function Es(i,n){if(i&1&&(l(0,"div",4)(1,"div",55)(2,"div",1)(3,"div",9)(4,"div",10),f(5),l(6,"div"),f(7),d(8,"currency"),s()(),l(9,"div",11),f(10),d(11,"currency"),s()(),x(12,ws,8,8,"div",12),s()()()),i&2){let t=n.$implicit,r=y();o(5),S(" ",t.EventItem.Descr,": "),o(2),$(" ",t.EventItem.Quantity," x ",m(8,5,r.registration.Registration.IsMember&&t.EventItem.HasMemberPricing?t.EventItem.MemberPrice:t.EventItem.NonMemberPrice)," "),o(3),S(" ",m(11,7,t.ItemTotal)," "),o(2),g("ngIf",t.AdditionalCost>0)}}function bs(i,n){if(i&1&&(l(0,"div",9)(1,"div",10),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",11),f(6),d(7,"currency"),s()()),i&2){let t=y();o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.promo-codes-applied"))," "),o(4),S("-",m(7,6,t.registration.Registration.DiscountTotal))}}function xs(i,n){if(i&1&&(l(0,"div",9)(1,"div",10),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",11),f(6),d(7,"currency"),s()()),i&2){let t=y();o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.benefits-applied"))," "),o(4),S("-",m(7,6,t.registration.Registration.BenefitsToApplyTotal))}}function Rs(i,n){i&1&&(l(0,"div",4)(1,"div",56),N(2,"hr"),s()())}function Ps(i,n){if(i&1&&(l(0,"div",4)(1,"div",6)(2,"strong"),f(3),d(4,"translate"),d(5,"titlecase"),d(6,"translate"),d(7,"titlecase"),s()(),l(8,"div",16)(9,"strong"),f(10),d(11,"currency"),s()()()),i&2){let t=y();o(3),$(" ",m(5,5,m(4,3,"events.registration.wizard.payment-info.additional-payment-label")),"\xA0",m(7,9,m(6,7,"common.revenue.amount"))," "),o(7),P(m(11,11,t.registration.Registration.AdditionalPaymentAmountForEdit))}}function Ms(i,n){if(i&1&&(l(0,"option",57),f(1),s()),i&2){let t=n.$implicit,r=y();g("value",t.PaymentMethodId)("selected",t.PaymentMethodId==r.registration.Registration.PaymentOption?!0:null),o(),S(" ",t.Descr," ")}}function Ts(i,n){if(i&1&&(l(0,"option",25),f(1),s()),i&2){let t=n.$implicit;g("value",t.CcPaymentProfileId),o(),S(" ",t.CardNumber," ")}}function As(i,n){if(i&1){let t=z();l(0,"div")(1,"div",4)(2,"div",5),f(3),d(4,"translate"),d(5,"titlecase"),s(),l(6,"div",6)(7,"wl-payment-type-selector",58),B("ngModelChange",function(a){I(t);let e=y();return F(e.registration.Registration.OverridePaymentypeId,a)||(e.registration.Registration.OverridePaymentypeId=a),w(a)}),s()()(),l(8,"div",4)(9,"label",5),f(10),d(11,"translate"),d(12,"titlecase"),s(),l(13,"div",6)(14,"input",59),B("ngModelChange",function(a){I(t);let e=y();return F(e.registration.Registration.CheckNum,a)||(e.registration.Registration.CheckNum=a),w(a)}),s()()()()}if(i&2){let t=y();o(3),S(" ",m(5,6,m(4,4,"events.registration.wizard.payment-info.payment-type-label"))," "),o(4),D("ngModel",t.registration.Registration.OverridePaymentypeId),o(3),S(" ",m(12,10,m(11,8,"events.registration.wizard.payment-info.check-number-label"))," "),o(4),D("ngModel",t.registration.Registration.CheckNum)}}function Ds(i,n){i&1&&(l(0,"div",4)(1,"div",18)(2,"h3"),f(3),d(4,"translate"),d(5,"titlecase"),s()()()),i&2&&(o(3),P(m(5,3,m(4,1,"events.registration.wizard.payment-info.modification-options-label"))))}function Fs(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",18)(2,"input",60),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.DoNotModifyInvoice,a)||(e.registration.ModificationOptions.DoNotModifyInvoice=a),w(a)}),s(),f(3),d(4,"translate"),d(5,"titlecase"),s()()}if(i&2){let t=y(2);o(2),D("ngModel",t.registration.ModificationOptions.DoNotModifyInvoice),o(),S(" ",m(5,4,m(4,2,"events.registration.wizard.payment-info.modification-options-do-not-modify-invoice-label"))," ")}}function Bs(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",6)(2,"label")(3,"input",61),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.CreateUnappliedPayments,a)||(e.registration.ModificationOptions.CreateUnappliedPayments=a),w(a)}),s(),f(4),d(5,"translate"),d(6,"titlecase"),s()(),l(7,"div",6)(8,"label")(9,"input",62),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.RefundCreditCardPayments,a)||(e.registration.ModificationOptions.RefundCreditCardPayments=a),w(a)}),s(),f(10),d(11,"translate"),d(12,"titlecase"),s()()()}if(i&2){let t=y(2);o(3),D("ngModel",t.registration.ModificationOptions.CreateUnappliedPayments),o(),S(" ",m(6,6,m(5,4,"events.registration.wizard.payment-info.modification-options-create-unapplied-payments-label"))," "),o(5),D("ngModel",t.registration.ModificationOptions.RefundCreditCardPayments),o(),S(" ",m(12,10,m(11,8,"events.registration.wizard.payment-info.modification-options-refund-credit-card-payments-label"))," ")}}function Ws(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",6),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",6)(6,"wl-adjustment-type-selector",63),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.PaymentAdjustmentTypeId,a)||(e.registration.ModificationOptions.PaymentAdjustmentTypeId=a),w(a)}),s()()()}if(i&2){let t=y(2);o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.modification-options-payment-adjustment-type-label"))," "),o(4),D("ngModel",t.registration.ModificationOptions.PaymentAdjustmentTypeId)}}function Os(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",6),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",6)(6,"wl-adjustment-type-selector",64),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.InvoiceAdjustmentTypeId,a)||(e.registration.ModificationOptions.InvoiceAdjustmentTypeId=a),w(a)}),s()()()}if(i&2){let t=y(2);o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.modification-options-invoice-adjustment-type-label"))," "),o(4),D("ngModel",t.registration.ModificationOptions.InvoiceAdjustmentTypeId)}}function Ns(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",6),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",6)(6,"wl-payment-type-selector",65),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.UnappliedPaymentPaymentypeId,a)||(e.registration.ModificationOptions.UnappliedPaymentPaymentypeId=a),w(a)}),s()()()}if(i&2){let t=y(2);o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.modification-options-unapplied-payment-paymen-type-label"))," "),o(4),D("ngModel",t.registration.ModificationOptions.UnappliedPaymentPaymentypeId)}}function zs(i,n){if(i&1){let t=z();l(0,"div",4)(1,"div",41),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"div",19)(6,"textarea",66),B("ngModelChange",function(a){I(t);let e=y(2);return F(e.registration.ModificationOptions.Notes,a)||(e.registration.ModificationOptions.Notes=a),w(a)}),s()()()}if(i&2){let t=y(2);o(2),S(" ",m(4,4,m(3,2,"events.registration.wizard.payment-info.modification-options-notes-label"))," "),o(4),D("ngModel",t.registration.ModificationOptions.Notes)}}function Vs(i,n){if(i&1&&(l(0,"div"),x(1,Ds,6,5,"div",3)(2,Fs,6,6,"div",3)(3,Bs,13,12,"div",3)(4,Ws,7,6,"div",3)(5,Os,7,6,"div",3)(6,Ns,7,6,"div",3)(7,zs,7,6,"div",3),s()),i&2){let t=y();o(),g("ngIf",t.registration.IsEdit),o(),g("ngIf",t.registration.IsEdit),o(),g("ngIf",t.registration.IsEdit&&t.registration.Registration.AdditionalPaymentAmountForEdit<0&&t.registration.ModificationOptions.DoNotModifyInvoice==!1),o(),g("ngIf",t.registration.IsEdit&&t.originalAmountPaid>0&&t.registration.ModificationOptions.DoNotModifyInvoice==!1),o(),g("ngIf",t.registration.IsEdit&&t.registration.ModificationOptions.DoNotModifyInvoice==!1),o(),g("ngIf",t.registration.IsEdit&&t.registration.ModificationOptions.CreateUnappliedPayments&&t.registration.ModificationOptions.DoNotModifyInvoice==!1),o(),g("ngIf",t.registration.IsEdit&&t.registration.ModificationOptions.DoNotModifyInvoice==!1)}}var la=(()=>{let n=class n{constructor(r,a,e,p,u,c,h,T,b){this.promoCodeDiscountType=Bn,this.registration=new ve,this.event=new le,this.initialLoadComplete=!1,this.gatewayCustomerProfile=new qr,this.selectedGatewayPaymentProfile=new jt,this.benefitsAcceptDaysPastDueAmount=0,this.loadData=()=>{this.benefitsAcceptDaysPastDueAmount=this._configSettingService.getConfigSettingValueFromCollectionAsInteger("BenefitsAcceptDaysPastDueAmount",this.configSettings),(!this.benefitsAcceptDaysPastDueAmount||this.benefitsAcceptDaysPastDueAmount<0)&&(this.benefitsAcceptDaysPastDueAmount=0);let C=this._paymentMethodService.getEventPaymentMethods(this.event.EventId).then(R=>{this.allPaymentMethodsAllowedForEvent=R,this.updateAvailablePaymentMethods()}),v=this._eventPromoCodesService.getEventPromoCodes(this.event.EventId).then(R=>{this.eventPromoCodes=R}),_=this._registrationService.getRegistrationAmountPaid(this.registrationId).then(R=>{this.registration.Registration.PaymentAmount=R,this.registration.Registration.AlreadyPaidAmountForEdit=R,this.originalAmountPaid=R,this.getItemTotals(),this.initialLoadComplete=!0}),E=this._registrationService.getRegistrationPromoCodes(this.registrationId).then(R=>{this.registration.PromoCodes=R});Promise.all([C,v,_,E]),this.checkCardOnFileConfig(),this.refreshBenefits(),this.checkCardConnect()},this.getValidationResult=()=>{let C=new ge;if(C.isValid=!0,this.registration&&this.registration.ModificationOptions&&this.registration.ModificationOptions.DoNotModifyInvoice)return C;let v=this.registration.Items.filter(_=>_.Quantity>0&&_.ExtendedPrice>0);if(this.registration.Registration.AdditionalPaymentAmountForEdit>0){let _=this.selectedGatewayPaymentProfile&&this.selectedGatewayPaymentProfile.CcPaymentProfileId>0;v.length>0&&this.registration.Registration.PaymentOption==3&&!_&&(C=this.creditCardInputComponent.getValidationResult()),C.isValid==!1||(this.registration.Registration.PaymentOption==1||this.registration.Registration.PaymentOption==2?C.isValid=!0:this._utilService.isNullOrLessThanOrEqualToZero(this.registration.Registration.PaymentOption)&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.payment-option-payment-info-needed-validation-error")))),this.registration.Registration.PaymentOption===3&&this.registration.Registration.AdditionalPaymentAmountForEdit>0&&!_&&!this.registration.Registration.CreditCardPayment.CreditCardContactInfo.State&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info-state-required")))}return this.registration.IsEdit&&this.registration.ItemsChanged&&this.registration.ModificationOptions.CreateUnappliedPayments==!0&&this.registration.ModificationOptions.UnappliedPaymentPaymentypeId<=0&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.modification-option-unapplied-payment-type-needed-validation-error"))),this.registration.IsEdit&&this.registration.ItemsChanged&&this.originalAmountPaid>0&&this.registration.ModificationOptions.PaymentAdjustmentTypeId<=0&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.modification-option-payment-adjustment-type-needed-validation-error"))),this.registration.IsEdit&&this.registration.ItemsChanged&&this.registration.ModificationOptions.InvoiceAdjustmentTypeId<=0&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.modification-option-invoice-adjustment-type-needed-validation-error"))),this.registration.Registration.TotalAmount>0&&this.hasEventItemPaymentMethodMismatch&&(C.isValid=!1,C.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.event-item-payment-method-mismatch-vali
2dation-message"))),C},this.checkCardConnect=()=>{this._creditCardGatewayService.hasCardConnectCreditCardGateways().then(C=>{C&&(this.creditCardInputComponent.useCardConnect=!0)})},this.checkCardOnFileConfig=()=>{this._creditCardService.hasCreditCardOnFileEnabled().then(C=>{this.hasCreditCardOnFileEnabled=C})},this.loadCardOnFileData=(C,v)=>{this._creditCardService.getGatewayCustomerProfile(C,v).then(_=>{this.gatewayCustomerProfile=_,this.gatewayPaymentProfiles=this.gatewayCustomerProfile.PaymentProfiles})},this.onGatewayPaymentProfileChange=C=>{var v=parseInt(C),_=this.gatewayPaymentProfiles.find(E=>E.CcPaymentProfileId==v);_||(_=new jt),this.selectedGatewayPaymentProfile=_,this.copySelectedCardOnFile()},this.updateAvailablePaymentMethods=()=>{this.hasEventItemPaymentMethodMismatch=!1,this.paymentMethods=new Array;let C=new Array;for(let _ of this.registration.Items)_.Quantity>0&&C.push(_.EventItemId);let v=new An;for(let _ of this.allPaymentMethodsAllowedForEvent)if(_.Accept&&_.EventItemPaymentMethods.length>0){let E=new Array;for(let R of _.EventItemPaymentMethods)R.Accept==!0&&E.push(R.EventItemId);E.length>0&&C.every(A=>E.indexOf(A)>-1)&&(this.paymentMethods.push(_),_.PaymentMethodId==3&&(v=_))}this.paymentMethods.length==0&&(this.hasEventItemPaymentMethodMismatch=!0),this.paymentMethods.length==0&&this.hasEventItemPaymentMethodMismatch==!1&&this.paymentMethods.push(v),this.paymentMethods.length>0&&(v.PaymentMethodId>0&&v.Accept?(this.registration.Registration.PaymentOption=v.PaymentMethodId,this.hasCreditCardOnFileEnabled==!0&&this.loadCardOnFileData(this.registration.Registration.LoggedInProfileId,0)):this.registration.Registration.PaymentOption=this.paymentMethods[0].PaymentMethodId),this.updateRegistrationWithSelectedPaymentMethod()},this.updateRegistrationWithSelectedPaymentMethod=()=>{for(let C of this.paymentMethods)C.PaymentMethodId==this.registration.Registration.PaymentOption&&(this.registration.Registration.SelectedPaymentMethod=C,C.PaymentMethodId==3&&this.copyContactInfoToCCContactInfo())},this.onPaymentOptionChange=C=>{this.registration.Registration.PaymentOption=parseInt(C),this.updateRegistrationWithSelectedPaymentMethod(),this._registrationService.calculateTotals(this.registration),this.hasCreditCardOnFileEnabled==!0&&this.gatewayPaymentProfiles.length<=1&&this.loadCardOnFileData(this.registration.Registration.LoggedInProfileId,0)},this.applyPromoCode=()=>{this.showInvalidPromoCodeMessage=!1,this.showPromocodeNotAvailable=!1;let C=!1,v=!1;if(this._utilService.isNotNullEmptyOrWhitespace(this.promoCodeToApply)){for(let _ of this.eventPromoCodes)if(this._utilService.toLowerTrim(_.Code)==this._utilService.toLowerTrim(this.promoCodeToApply)||this._utilService.toLowerTrim(_.Name)==this._utilService.toLowerTrim(this.promoCodeToApply)){let E=new Date(_.EndDate.getFullYear(),_.EndDate.getMonth(),_.EndDate.getDate(),0,0,0),R=new Date;R=new Date(R.getFullYear(),R.getMonth(),R.getDate(),0,0,0);let A=new Date(_.StartDate.getFullYear(),_.StartDate.getMonth(),_.StartDate.getDate(),0,0,0);_.MaxUses>0&&_.Used>=_.MaxUses||A>R||E<R?v=!0:this.registration.PromoCodes.some(V=>V.Code==_.Code)||this.registration.PromoCodes.push(_),C=!0}}C==!1?this.showInvalidPromoCodeMessage=!0:v&&(this.showPromocodeNotAvailable=!0),this.selectedPromoCode=0,this.promoCodeToApply="",this.getItemTotals()},this.hidePromoCode=(C,v)=>this.registration.PromoCodes.some(_=>_.PromoCodeId==C)||v.length>0&&!v.some(_=>this.registration.Items.some(E=>E.EventItemId==_&&E.Quantity>0)),this.showPromoCodes=()=>this.eventPromoCodes.some(C=>C.EventItemIds.length==0)||this.registration.Items.some(C=>C.Quantity>0&&this.eventPromoCodes.some(v=>v.EventItemIds.some(_=>_==C.EventItemId))),this.removePromoCode=C=>{this.showInvalidPromoCodeMessage=!1;let v=this.registration.PromoCodes.findIndex(_=>_.PromoCodeId==C);v>-1&&this.registration.PromoCodes.splice(v,1),this.getItemTotals()},this.getItemTotals=()=>{this._registrationService.calculateTotals(this.registration)},this.quantityChanged=()=>{this.getItemTotals()},this.refreshBenefits=()=>{if(this.hasBenefitsThatCanBeUsed=!1,this.availableEventBenefits=new Array,this.availableProfileBenefits=new Array,this.availableBenefitsToUse=new Array,this.registration.Registration.ProfileId>
20){let C=this._benefitService.getEventBenefits(this.event.EventId).then(_=>{let E=this.registration.Items.filter(R=>R.Quantity>0).map(R=>R.EventItemId);this.availableEventBenefits=_.filter(R=>R.EventItems.some(A=>E.indexOf(A.EventPriceId)>-1))}),v=this._benefitService.getProfileEventBenefits(this.registration.Registration.ProfileId,this.event.EventId).then(_=>{this.availableProfileBenefits=_});Promise.all([C,v]).then(()=>{if(this.availableEventBenefits.length>0&&this.availableProfileBenefits.length>0){this.availableBenefitsToUse=new Array;let _=new Date;for(let E of this.availableProfileBenefits){let R=new Date(E.ExpirationDate);if(R.setDate(R.getDate()+this.benefitsAcceptDaysPastDueAmount),(E.QuantityRemaining>0||E.ValueRemaining>0)&&R>_)for(let A of this.availableEventBenefits)A.BenefitTypeId==E.BenefitTypeId&&(this.hasBenefitsThatCanBeUsed=!0,this.availableBenefitsToUse.push(A))}}if(this.registration.Registration.BenefitsPreviouslyAppliedTotal>0&&this.registration.Registration.BenefitsPreviouslyApplied.length>0){let _=this.registration.Registration.BenefitsPreviouslyApplied[0].EventBenefitId,E=0,R=0;for(let A of this.registration.Registration.BenefitsPreviouslyApplied)E=E+A.QuantityToApply,R=R+A.ValueToApply;this.registration.Registration.BenefitsToApply=this.registration.Registration.BenefitsPreviouslyApplied,this.registration.Registration.BenefitsToApplyTotal=this.registration.Registration.BenefitsPreviouslyAppliedTotal,this.onBenefitChange(_.toString()),this.selectedRegistrationBenefit.ValueToApply=R,this.selectedRegistrationBenefit.QuantityToApply=E}})}else this.availableEventBenefits=new Array,this.availableProfileBenefits=new Array},this.onBenefitChange=C=>{this.selectedRegistrationBenefit=new tt;let v=parseInt(C);this.selectedEventBenefit.EventBenefitId=v;let _=this.availableBenefitsToUse.find(E=>E.EventBenefitId==v);if(this._utilService.isNotNullOrUndefined(_)){this._utilService.mapSafe(_,this.selectedEventBenefit),this.selectedEventBenefit.EventItems=[];for(let R of _.EventItems){let A=new Hr;this._utilService.mapSafe(R,A),this.selectedEventBenefit.EventItems.push(A)}let E=this.availableProfileBenefits.find(R=>R.BenefitTypeId==_.BenefitTypeId);this._utilService.isNotNullOrUndefined(E)&&(this._utilService.mapSafe(E,this.selectedProfileBenefit),this.selectedRegistrationBenefit=new tt,this.selectedRegistrationBenefit.BenefitType=this.selectedEventBenefit.BenefitType,this.selectedRegistrationBenefit.BenefitTypeId=this.selectedProfileBenefit.BenefitTypeId,this.selectedRegistrationBenefit.EventBenefitId=this.selectedEventBenefit.EventBenefitId,this.selectedRegistrationBenefit.ProfileBenefitId=this.selectedProfileBenefit.Id,this.selectedRegistrationBenefit.ProfileId=this.selectedProfileBenefit.ProfileId,this.selectedRegistrationBenefit.LimitType=this.selectedEventBenefit.LimitType,this.selectedRegistrationBenefit.LimitAmount=this.selectedEventBenefit.LimitAmount,this.updateBenefitSuggestedAmountToUse())}},this.updateBenefitSuggestedAmountToUse=()=>{let C=this.getMaxBenefitAmountAllowed();this.selectedRegistrationBenefit.ValueToApply=C},this.getMaxAmtOfBenefitsThatCanBeUsedForItems=()=>{let C=0;for(let v of this.registration.Registration.EventItemTotals)C=C+v.Total;return C},this.getMaxBenefitAmountAllowed=()=>{let C=this.getMaxAmtOfBenefitsThatCanBeUsedForItems();return this.selectedProfileBenefit.ValueRemaining<C&&(C=this.selectedProfileBenefit.ValueRemaining),this.selectedRegistrationBenefit.LimitAmount>0&&this.selectedRegistrationBenefit.LimitAmount<C&&(C=this.selectedRegistrationBenefit.LimitAmount),C},this.getMaxBenefitQuantityAllowed=()=>{let C=this.getMaxAmtOfBenefitsThatCanBeUsedForItems();return this.selectedProfileBenefit.QuantityRemaining<C&&(C=this.selectedProfileBenefit.QuantityRemaining),this.selectedRegistrationBenefit.LimitAmount>0&&this.selectedRegistrationBenefit.LimitAmount<C&&(C=this.selectedRegistrationBenefit.LimitAmount),C},this.applyBenefit=()=>{if(this.registration.Registration.BenefitsToApply=new Array,this._registrationService.calculateTotals(this.registration),this.selectedRegistrationBenefit.BenefitTypeId>0){let C=0,v=0,_=this.getMaxAmtOfBenefitsThatCanBeUsedForItems(),E,R;this.selectedEventBenefit.LimitType==1?(C=this.selectedProfileBenefit.QuantityRemaining,E=this.selectedRegistrationBenefit.QuantityToApply,E>C&&(E=C)):(v=this.getMaxBenefitAmountAllowed(),R=this.selectedRegistrationBenefit.ValueToApply,R>v&&(R=v));let A=0;for(let V of this.registration.Items)if(V.Quantity>0&&(E>0||R>0)&&A<_){let ee=this.selectedEventBenefit.EventItems.find(L=>L.EventPriceId==V.EventItemId);if(this._utilService.isNotNullOrUndefined(ee)){let L=this._utilService.round(V.ExtendedPrice/V.Quantity,2),ne=new tt;this._utilService.mapSafe(this.selectedRegistrationBenefit,ne),ne.EventPriceId=V.EventItemId,ne.LimitType==1?(ne.QuantityToApply=Math.min(V.Quantity,E),ne.ValueToApply=L*ne.QuantityToApply,E-=ne.QuantityToApply):(ne.QuantityToApply=0,ne.ValueToApply=Math.min(L*V.Quantity,R),R-=R),A+=ne.ValueToApply,A>_&&(ne.ValueToApply=Math.max(0,ne.ValueToApply-(_-A))),this.registration.Registration.BenefitsToApply.push(ne)}}}this._registrationService.calculateTotals(this.registration)},this.onBenefitAmountToApplyChange=()=>{},this.onBenefitQuantityToApplyChange=C=>{let v=parseInt(C.toString());C=v.toString(),this.selectedRegistrationBenefit.QuantityToApply=v},this._utilService=r,this._translationService=a,this._paymentMethodService=e,this._eventPromoCodesService=p,this._registrationService=u,this._configSettingService=c,this._creditCardService=h,this._creditCardGatewayService=b,this._benef
2itService=T,this.creditCardPaymentInfo=new Oi,this.eventPromoCodes=[],this.selectedPromoCode=0,this.registrationId=0,this.originalAmountPaid=0,this.promoCodeToApply="",this.paymentMethods=new Array,this.allPaymentMethodsAllowedForEvent=new Array,this.paymentMethodsAllowedForSelectedEventItems=new Array,this.hasEventItemPaymentMethodMismatch=!1,this.hasCardOnFile=!1,this.hasCreditCardOnFileEnabled=!1,this.gatewayPaymentProfiles=new Array,this.showInvalidPromoCodeMessage=!1,this.selectedCcPaymentProfileId=0,this.availableEventBenefits=new Array,this.availableProfileBenefits=new Array,this.availableBenefitsToUse=new Array,this.selectedProfileBenefit=new jr,this.selectedEventBenefit=new Qr,this.selectedRegistrationBenefit=new tt,this.hasBenefitsThatCanBeUsed=!1}ngOnInit(){}prepareForPayment(){return Me(this,null,function*(){let r=this.selectedGatewayPaymentProfile&&this.selectedGatewayPaymentProfile.CcPaymentProfileId>0;this.creditCardInputComponent?.usePreczn&&this.registration.Registration.PaymentOption==3&&!r&&(yield this.creditCardInputComponent.prepareForSubmit())})}copySelectedCardOnFile(){this.registration.Registration.GatewayPaymentProfile||(this.registration.Registration.GatewayPaymentProfile=new jt),this.registration.Registration.GatewayPaymentProfile=this.selectedGatewayPaymentProfile}copyContactInfoToCCContactInfo(){this.registration.Registration.CreditCardPayment||(this.registration.Registration.CreditCardPayment=new Oi),this.registration.Registration.CreditCardPayment.CreditCardContactInfo||(this.registration.Registration.CreditCardPayment.CreditCardContactInfo=new Tn),this.registration.Registration.CreditCardPayment.CreditCardContactInfo.FirstName=this.registration.Registration.FName,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.LastName=this.registration.Registration.LName,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.OrgName=this.registration.Registration.OrgName,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Address1=this.registration.Registration.Address1,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Address2=this.registration.Registration.Address2,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.City=this.registration.Registration.City,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.State=this.registration.Registration.State,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Zip=this.registration.Registration.Zip,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.ZipExt=this.registration.Registration.ZipExt,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Country=this.registration.Registration.Country,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Phone=this.registration.Registration.Phone,this.registration.Registration.CreditCardPayment.CreditCardContactInfo.Email=this.registration.Registration.Email}removeBenefits(){this.registration.Registration.BenefitsToApply=new Array,this._registrationService.calculateTotals(this.registration)}};n.\u0275fac=function(a){return new(a||n)(M(Q),M(oe),M(vi),M(yi),M(se),M(Se),M(si),M(ci),M(pi))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-payment-info"]],viewQuery:function(a,e){if(a&1&&G(as,5),a&2){let p;Z(p=K())&&(e.creditCardInputComponent=p.first)}},standalone:!1,features:[Ee([vi,si,yi,se,ci,pi],[{provide:zn,useExisting:ct}])],decls:108,vars:110,consts:[["creditCardInputComponent",""],[1,"container-fluid"],[1,"form-horizontal"],["class","form-group",4,"ngIf"],[1,"form-group"],[1,"col-sm-3","control-label"],[1,"col-sm-6"],["class","text-danger",4,"ngIf"],["class","form-group",4,"ngFor","ngForOf"],[1,"row"],[1,"col-sm-6","text-right"],[1,"col-sm-2","text-right"],["class","row",4,"ngIf"],[1,"row",3,"hidden"],[1,"col-sm-2","text-right","wc-event-reg-wiz-payment-info-total"],[1,"form-group",3,"hidden"],[1,"col-sm-4","text-right"],[1,"col-sm-2"],[1,"col-sm-12"],[1,"col-sm-9"],["name","paymentOption",1,"form-control",3,"ngModelChange","ngModel"],[3,"value","selected",4,"ngFor","ngForOf"],[1,"col-sm-offset-3","col-sm-9",3,"hidden"],[1,"col-sm-offset-3","col-sm-9"],["name","paymentProfileId",1,"form-control",3,"ngModelChange","ngModel"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["name","ccInput","ngModelGroup","credit
2CardFields",3,"ngModelChange","ngModel","freeMode"],["type","checkbox","name","saveToCardOnFile",3,"ngModelChange","ngModel"],["type","text","name","registrationPO",1,"form-control",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"input-group"],["type","text","name","promoCodeToApply",1,"form-control",3,"ngModelChange","ngModel"],[1,"input-group-btn"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"text-danger"],[1,"col-sm-offset-3","col-sm-6"],[1,"list-group"],["class","list-group-item",4,"ngFor","ngForOf"],[1,"list-group-item"],[1,"col-sm-5"],[1,"col-sm-3"],["type","button",1,"btn","btn-danger",3,"click"],[1,"glyphicon","glyphicon-trash"],[1,"col-sm-6","col-md-3","control-label"],[1,"col-sm-4"],["name","benefitSelector",1,"form-control",3,"ngModelChange","ngModel"],["class","control-label",4,"ngIf"],["type","number","class","form-control text-right","name","valueToApply",3,"ngModel","step","placeholder","ngModelChange",4,"ngIf"],["type","number","class","form-control text-right","name","quantityToApply",3,"ngModel","step","placeholder","ngModelChange",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"click"],["type","button","class","btn btn-danger",3,"click",4,"ngIf"],[1,"control-label"],["type","number","name","valueToApply",1,"form-control","text-right",3,"ngModelChange","ngModel","step","placeholder"],["type","number","name","quantityToApply",1,"form-control","text-right",3,"ngModelChange","ngModel","step","placeholder"],[1,"col-xm-12"],[1,"col-sm-10"],[3,"value","selected"],["name","overridePaymentId",3,"ngModelChange","ngModel"],["type","text","name","checkNum",1,"form-control",3,"ngModelChange","ngModel"],["type","checkbox","name","doNotModifyInvoice",3,"ngModelChange","ngModel"],["type","checkbox","name","createUnappliedPayments",3,"ngModelChange","ngModel"],["type","checkbox","name","refundCreditCardPayments",3,"ngModelChange","ngModel"],["name","paymentAdjustmentTypeId",3,"ngModelChange","ngModel"],["name","invoiceAdjustmentTypeId",3,"ngModelChange","ngModel"],["name","unappliedPaymentTypeId",3,"ngModelChange","ngModel"],["name","notes",1,"form-control",3,"ngModelChange","ngModel"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"div",2)(2,"h3"),f(3),d(4,"translate"),d(5,"titlecase"),s(),x(6,os,14,13,"div",3),l(7,"div",4),N(8,"label",5),l(9,"div",6),x(10,ss,3,3,"span",7)(11,ls,3,3,"span",7),s()(),x(12,cs,4,1,"div",3)(13,fs,12,13,"div",3)(14,us,8,8,"div",3)(15,hs,7,6,"div",3)(16,Is,14,10,"div",3)(17,Es,13,9,"div",8),l(18,"div",9)(19,"div",10),f(20),d(21,"translate"),d(22,"titlecase"),s(),l(23,"div",11),f(24),d(25,"currency"),s()(),x(26,bs,8,8,"div",12)(27,xs,8,8,"div",12),l(28,"div",9)(29,"div",10),f(30),d(31,"translate"),d(32,"titlecase"),d(33,"translate"),d(34,"titlecase"),s(),l(35,"div",11),f(36),d(37,"currency"),s()(),l(38,"div",13)(39,"div",10),f(40),d(41,"titlecase"),s(),l(42,"div",11),f(43),d(44,"currency"),s()(),l(45,"div",4)(46,"div",10)(47,"strong"),f(48),d(49,"translate"),d(50,"titlecase"),d(51,"translate"),d(52,"titlecase"),s()(),l(53,"div",14)(54,"b"),f(55),d(56,"currency"),s()()(),x(57,Rs,3,0,"div",3),l(58,"div",15)(59,"div",6),f(60),d(61,"translate"),d(62,"titlecase"),d(63,"translate"),d(64,"titlecase"),s(),l(65,"div",16),f(66),d(67,"currency"),s(),N(68,"div",17),s(),x(69,Ps,12,13,"div",3),l(70,"div",4)(71,"div",18),N(72,"hr"),s()(),l(73,"div",15)(74,"label",5),f(75),d(76,"translate"),d(77,"titlecase"),s(),l(78,"div",19)(79,"select",20),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.PaymentOption,c)||(e.registration.Registration.PaymentOption=c),w(c)}),O("ngModelChange",function(c){return I(p),w(e.onPaymentOptionChange(c))}),x(80,Ms,2,3,"option",21),s()()(),l(81,"div",15)(82,"div",22)(83,"div",4)(84,"div",23)(85,"select",24),B("ngModelChange",function(c){return I(p),F(e.selectedCcPaymentProfileId,c)||(e.selectedCcPaymentProfileId=c),w(c)}),O("ngModelChange",function(c){return I(p),w(e.onGatewayPaymentProfileChange(c))}),l(86,"option",25),f(87),d(88,"translate"),d(89,"titlecase"),s(),x(90,Ts,2,2,"option",26),s()()()(),l(91,"div",22)(92,"wl-credit-card-input",27,0),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.CreditCardPayment,c)||(e.registration.Registration.CreditCardPayment=c),w(c)}),s()(),l(94,"div",22)(95,"input",28),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.SaveToCardOnFile,c)||(e.registration.Registration.SaveToCardOnFile=c),w(c)}),s(),f(96),d(97,"translate"),d(98,"titlecase"),s()(),l(99,"div",15)(100,"label",5),f(101),d(102,"translate"),d(103,"titlecase"),s(),l(104,"div",6)(105,"input",29),B("ngModelChange",function(c){return I(p),F(e.registration.Registration.PO,c)||(e.registration.Registration.PO=c),w(c)}),s()()(),x(106,As,15,12,"div",30)(107,Vs,8,7,"div",30),s()()}a&2&&(o(3),P(m(5,52,m(4,50,"events.registration.wizard.payment-info.title"))),o(3),g("ngIf",e.showPromoCodes()),o(4),g("ngIf",e.showInvalidPromoCodeMessage),o(),g("ngIf",e.showPromocodeNotAvailable),o(),g("ngIf",e.registration==null||e.registration.PromoCodes==null?null:e.registration.PromoCodes.length),o(),g("ngIf",e.hasBenefitsThatCanBeUsed),o(),g("ngIf",e.selectedEventBenefit.LimitType==0&&e.hasBenefitsThatCanBeUsed),o(),g("ngIf",e.selectedEventBenefit.LimitType==1&&e.hasBenefitsThatCanBeUsed),o(),g("ngIf",e.hasBenefitsThatCanBeUsed),o(),g("ngForOf",e.registration.Registration.EventItemTotals),o(3),S(" ",m(22,56,m(21,54,"common.revenue.amount"))," "),o(4),S(" ",m(25,58,e.registration.Registration.PreTaxPreDiscountAmount)," "),o(2),g("ngIf",e.registration==null||e.registration.PromoCodes==null?null:e.registration.PromoCodes.length),o(),g("ngIf",e.registration.Registration.BenefitsToApplyTotal>0),o(3),$(" ",m(32,62,m(31,60,"common.revenue.tax")),"\xA0",m(34,66,m(33,64,"common.revenue.amount"))," "),o(6),S(" ",m(37,68,e.registration.Registration.TaxAmount)," "),o(2),g("hidden",e.registration.Registration.PaymentOptionFeeAmount<=0),o(2),S(" ",m(41,70,e.registration.Registration.SelectedPaymentMethod.Descr)," "),o(3),S(" ",m(44,72,e.registration.Registration.PaymentOptionFeeAmount)," "),o(5),$("",m(50,76,m(49,74,"common.revenue.total")),"\xA0",m(52,80,m(51,78,"common.revenue.amount"))),o(7
2),P(m(56,82,e.registration.Registration.TotalAmount)),o(2),g("ngIf",e.registration.IsEdit),o(),g("hidden",!e.registration.IsEdit),o(2),$(" ",m(62,86,m(61,84,"events.registration.wizard.payment-info.already-paid-label")),"\xA0",m(64,90,m(63,88,"common.revenue.amount"))," "),o(6),S(" ",m(67,92,e.registration.Registration.AlreadyPaidAmountForEdit)," "),o(3),g("ngIf",e.registration.IsEdit),o(4),g("hidden",e.registration.Registration.AdditionalPaymentAmountForEdit<=0),o(2),S(" ",m(77,96,m(76,94,"events.registration.wizard.payment-info.payment-option-label"))," "),o(4),D("ngModel",e.registration.Registration.PaymentOption),o(),g("ngForOf",e.paymentMethods),o(),g("hidden",e.registration.Registration.PaymentOption!=3||e.registration.Registration.AdditionalPaymentAmountForEdit<=0),o(),g("hidden",e.hasCreditCardOnFileEnabled==!1||e.registration.Registration.ProfileId<=0),o(3),D("ngModel",e.selectedCcPaymentProfileId),o(),g("value",0),o(),P(m(89,100,m(88,98,"events.registration.wizard.payment-info.card-on-file-new-card"))),o(3),g("ngForOf",e.gatewayPaymentProfiles),o(),g("hidden",e.selectedCcPaymentProfileId>0),o(),D("ngModel",e.registration.Registration.CreditCardPayment),g("freeMode",e.registration.Registration.AdditionalPaymentAmountForEdit<=0),o(2),g("hidden",e.hasCreditCardOnFileEnabled==!1||e.selectedCcPaymentProfileId>0||e.registration.Registration.ProfileId<=0),o(),D("ngModel",e.registration.Registration.SaveToCardOnFile),o(),S(" ",m(98,104,m(97,102,"events.registration.wizard.payment-info.save-credit-card-label"))," "),o(3),g("hidden",e.registration.Registration.PaymentOption!=4||e.registration.Registration.AdditionalPaymentAmountForEdit<=0),o(2),S(" ",m(103,108,m(102,106,"events.registration.wizard.payment-info.purchase-order-label"))," "),o(4),D("ngModel",e.registration.Registration.PO),o(),g("ngIf",e.registration.Registration.PaymentOption==5&&e.registration.Registration.AdditionalPaymentAmountForEdit>0),o(),g("ngIf",e.registration.IsEdit&&(e.registration.Registration.AdditionalPaymentAmountForEdit!=0||e.registration.ItemsChanged)))},dependencies:[Or,qi,ji,J,j,Zt,Kt,pe,ft,je,Gt,me,Qe,ce,ct,In,H,De,q],styles:[".wc-event-reg-wiz-payment-info-total[_ngcontent-%COMP%]{border-top:1px solid #999}"]});let i=n;return i})();var _i=(()=>{let n=class n{constructor(r,a){this.getEventEventSponsors=e=>{let p="Event/"+e.toString()+"/Sponsors?PageSize=9999";return this._apiService.get(p)},this.getEventEventSponsor=e=>this._apiService.get("EventSponsor/"+e),this.upsertEventSponsor=e=>{let p="";return p="EventSponsors/Upsert",this._apiService.post(p,e).then(u=>Promise.resolve(u))},this.deleteEventSponsor=e=>{let p="";return p="EventSponsor/"+e.toString(),this._apiService.delete(p).then(()=>Promise.resolve())},this.reorderEventSponsors=(e,p)=>{if(!p||!e)return Promise.resolve();let u="Event/"+e+"/OrderSponsors",c=p.sort((h,T)=>+h.Sort-+T.Sort).map(h=>h.SponserId);return this._apiService.post(u,c).then(()=>Promise.resolve())},this._apiService=r,this._utilService=a}};n.\u0275fac=function(a){return new(a||n)(te(Fe),te(Q))},n.\u0275prov=we({token:n,factory:n.\u0275fac});let i=n;return i})();var Us=["sponsorImageSelector"],da=(()=>{let n=class n{constructor(r,a,e,p,u){this.registration=new ve,this.event=new le,this.initialLoadComplete=!1,this.loadData=()=>{let c=this.event.EventId;if(this.registration.IsEdit==!0){for(let h of this.registration.Items)if(h.IsSponsorShip==!0&&this._utilService.isNotNullOrUndefined(h.Sponsor)&&this._utilService.isNotNullEmptyOrWhitespace(h.Sponsor.SponsorName)){this.sponsor=h.Sponsor;break}}else this._utilService.isNullEmptyOrWhitespace(this.sponsor.SponsorName)&&(this.sponsor.SponsorName=this.registration.Registration.OrgName);this.initialLoadComplete=!0},this.getValidationResult=()=>{let c=new ge;return c.isValid=!0,c},this.setImageProfileIdFilter=c=>{this.sponsorImageSelector.setImageProfileIdFilter(c)},this._utilService=r,this._eventItemService=a,this._eventSponsorService=e,this._translationService=p,this._configSettingService=u,this.sponsor=new Fn,this.availableItems=new Array,this.itemTotal=0,this.registrationId=0}ngOnInit(){}};n.\u0275fac=function(a){return new(a||n)(M(Q),M(ye),M(_i),M(oe),M(Se))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard-sponsor"]],viewQuery:function(a,e){if(a&1&&G(Us,5),a&2){let p;Z(p=K())&&(e.sponsorImageSelector=p.first)}},standalone:!1,features:[Ee([ye,_i])],decls:50,vars:36,consts:[["sponsorImageSelector",""],[1,"container-fluid"],[1,"form-horizontal"],[1,"form-group"],[1,"col-sm-12"],[1,"checkbox"],["for","showSponsorCheckbox"],["name","showSponsorCheckbox","type","checkbox",3,"ngModelChange","ngModel"],[1,"col-sm-3"],[1,"col-sm-9"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel","profileId"],[1,"form-control",3,"ngModelChange","ngModel"],["type","url",1,"form-control",3,"ngModelChange","ngModel"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),f(5),d(6,"translate"),d(7,"titlecase"),s()()(),l(8,"div",3)(9,"div",4)(10,"div",5)(11,"label",6)(12,"input",7),O("ngModelChange",function(c){return I(p),w(e.sponsor.DoNotDisplay=c)}),s(),l(13,"span"),f(14),d(15,"translate"),d(16,"titlecase"),s()()()()(),l(17,"div",3)(18,"div",8)(19,"label"),f(20),d(21,"translate"),d(22,"titlecase"),s()(),l(23,"div",9)(24,"input",10),B("ngModelChange",function(c){return I(p),F(e.sponsor.SponsorName,c)||(e.sponsor.SponsorName=c),w(c)}),s()()(),l(25,"div",3)(26,"div",8)(27,"label"),f(28),d(29,"translate"),d(30,"titlecase"),s()(),l(31,"div",9)(32,"wl-image-lookup",11,0),B("ngModelChange",function(c){return I(p),F(e.sponsor.SponsorLogoUrl,c)||(e.sponsor.SponsorLogoUrl=c),w(c)}),s()()(),l(34,"div",3)(35,"div",8)(36,"label"),f(37),d(38,"translate"),d(39,"titlecase"),s()(),l(40,"div",9)(41,"textarea",12),B("ngModelChange",function(c){return I(p),F(e.sponsor.SponsorMessage,c)||(e.sponsor.SponsorMessage=c),w(c)}),s()()(),l(42,"div",3)(43,"div",8)(44,"label"),f(45),d(46,"translate"),d(47,"titlecase"),s()(),l(48,"div",9)(49,"input",13),B("ngModelChange",function(c){return I(p),F(e.sponsor.SponsorWebsite,c)||(e.sponsor.SponsorWebsite=c),w(c)}),s()()()()()}a&2&&(o(5),P(m(7,14,m(6,12,"events.registration.wizard.sponsor.title"))),o(7
2),g("ngModel",!e.sponsor.DoNotDisplay),o(2),S(" ",m(16,18,m(15,16,"events.registration.wizard.sponsor.show-sponsor-logo-label"))," "),o(6),S(" ",m(22,22,m(21,20,"events.registration.wizard.sponsor.sponsor-name-label"))," "),o(4),D("ngModel",e.sponsor.SponsorName),o(4),S(" ",m(30,26,m(29,24,"events.registration.wizard.sponsor.sponsor-image-label"))," "),o(4),D("ngModel",e.sponsor.SponsorLogoUrl),g("profileId",e.registration.Registration.ProfileId),o(5),S(" ",m(39,30,m(38,28,"events.registration.wizard.sponsor.sponsor-message-label"))," "),o(4),D("ngModel",e.sponsor.SponsorMessage),o(4),S(" ",m(47,34,m(46,32,"events.registration.wizard.sponsor.sponsor-website-label"))," "),o(4),D("ngModel",e.sponsor.SponsorWebsite))},dependencies:[Nr,pe,je,me,ce,H,q],encapsulation:2});let i=n;return i})();var js=["registrationForm"],Qs=["registrationWizardTabsComponent"],Hs=["registrationWizardItemsTab"],Gs=["registrationWizardContactTab"],Zs=["registrationWizardAttendeesTab"],Ks=["registrationWizardPaymentTab"],Ys=["registrationWizardSponsorTab"],Js=["registrationWizardAttendeesComponent"],Xs=["registrationWizardItemsComponent"],$s=["registrationWizardContactComponent"],el=["registrationWizardPaymentInfoComponent"],tl=["registrationWizardSponsorComponent"];function il(i,n){if(i&1&&(l(0,"b"),f(1),s()),i&2){let t=y();o(),S(" ",t.loginInfoText," ")}}function nl(i,n){if(i&1){let t=z();l(0,"wl-registration-wizard-attendee-tab-nav",39),O("onAddAttendee",function(){I(t);let a=y();return w(a.handleAttendeeNavAddNewAttendeeClick())})("onAttendeeClick",function(a){I(t);let e=y();return w(e.handleAttendeeNavAttendeeClick(a))}),s()}if(i&2){let t=y(),r=Ce(33);g("attendees",t.registration==null?null:t.registration.Attendees)("enableNewButton",r.canAddNewAttendee)}}function rl(i,n){if(i&1&&(l(0,"li"),f(1),s()),i&2){let t=n.$implicit;o(),S(" ",t," ")}}function al(i,n){if(i&1&&(l(0,"div",40),f(1),l(2,"ul",41),d(3,"translate"),x(4,rl,2,1,"li",42),s()()),i&2){let t=y();o(),S(" ",t.validationResult.errors[0]," "),o(),g("hidden",m(3,3,!t.validationResult.errors||t.validationResult.errors[0]!="events.registration.wizard.timeout-error")),o(2),g("ngForOf",t.validationResult.errors)}}function ol(i,n){if(i&1&&(l(0,"div",40),f(1),s()),i&2){let t=y();o(),S(" ",t.saveError," ")}}function sl(i,n){if(i&1){let t=z();l(0,"div",43)(1,"re-captcha",44),O("resolved",function(a){I(t);let e=y();return w(e.onReCaptchaResponse(a))}),s()()}if(i&2){let t=y();o(),g("siteKey",t.recaptchaSiteKey)}}var Yi=(()=>{let n=class n{constructor(r,a,e,p,u,c,h,T,b,C,v,_,E,R,A,V,ee){this._entityService=A,this._tokenStorageService=V,this._configServiceService=ee,this.eventId=0,this.registrationId=0,this.onRegistrationSaved=new re,this._registrationProfile=null,this.saveError="",this._attendeesLoaded=!1,this.initialLoadComplete=!1,this.registrationSuccess=!1,this.userName="",this.showLogout=!1,this.recaptchaSiteKey="",this.registrationProfileChanged=L=>{this._registrationProfile=L,this.registrationWizardItemsComponent.getItemTotals(),this.registrationWizardSponsorComponent.setImageProfileIdFilter(this.registration.Registration.ProfileId),this.registrationWizardPaymentInfoComponent.updateRegistrationWithSelectedPaymentMethod(),this.registrationWizardPaymentInfoComponent.refreshBenefits()},this.registrationItemsChanged=()=>{this.getAttendeesOverEventAttendeeMax().then(k=>{if(k>0&&this.lastItemsAttendeesOverMaxCount!=k){let _e=this._translationService.getInstant("events.registration.wizard.exceeds-attendee-max-count-message-when-adding-attendees"),ln=this.event.MaxAttendees-this.currentlySavedAttendeeCount;_e=this._utilService.replaceAll(_e,"{0}",ln.toString()),this._notifyService.info(_e)}this.lastItemsAttendeesOverMaxCount=k}),this.registrationWizardAttendeesComponent.updateAvailableAttendeeRegistrationItems(!this.registration.IsEdit||this._attendeesLoaded);let L=this.registration.Items.filter(k=>k.Quantity>0),ne=this.registration.Items.filter(k=>k.IsSponsorShip==!0&&k.Quantity>0);L.length>0?this.hasSelectedEventItems=!0:this.hasSelectedEventItems=!1,this.registrationWizardPaymentInfoComponent.updateAvailablePaymentMethods(),this.registrationWizardPaymentInfoComponent.updateRegistrationWithSelectedPaymentMethod(),this._registrationService.calculateTotals(this.registration),this.registration.Registration.TotalAmount==0&&this.registration.Registration.DiscountTotal==0?this.tabPayment.enabled=!1:this.tabPayment.enabled=!0,this.registrationWizardPaymentInfoComponent.refreshBenefits()},this.wizardCancel=()=>{this._translationService.get("events.registration.wizard.registration-are-you
2-sure-you-want-to-cancel-message").then(L=>{confirm(L)&&this._navService.navigateToEventDetail(this.eventId)})},this.wizardSave=()=>Me(this,null,function*(){if(this.registrationWizardPaymentInfoComponent)try{yield this.registrationWizardPaymentInfoComponent.prepareForPayment()}catch(k){this._notifyService.error(k?.message??this._translationService.getInstant("revenue.credit-card-input.tokenize-error"));return}let L=JSON.parse(JSON.stringify(this.registration));L.Items=L.Items.filter(k=>k.Quantity>0);for(let k of L.Attendees)k.CreateProfile==!0&&(k.ProfileId=0),k.Items=k.Items.filter(_e=>_e.Selected==!0);for(let k of L.Items)k.IsSponsorShip&&(k.Sponsor=this.registrationWizardSponsorComponent.sponsor,k.Sponsor&&(k.Sponsor.SponsorName=""));L.Registration.CreateProfile==!0&&(L.Registration.ProfileId=0);let ne=this.getValidationResult();if(ne.isValid==!1){let k="";for(let _e of ne.errors)k=_e+".  ";return}else this.isSaving=!0,this.registrationSuccess=!1,this.saveError="",this._registrationService.upsertRegistration(L,this.reCaptchaResponseToken).then(k=>{let _e=k.RegistrationHeaderId;this.registrationSuccess=!0,this._notifyService.success(this._translationService.getInstantTitlecase("events.registration.wizard.save-success-message")),this.onRegistrationSaved.emit(_e),this.registration=new ve,this._navService.navigateToEventRegistrationSummary(this.eventId,_e,null,this._entityDomainId,this._secureRedirect,this._settingBatch),this.isSaving=!1},k=>{this.validationResult.isValid=!1,(k.status==408||k.status==503)&&this.validationResult.errors.push(this._translationService.getInstant("events.registration.wizard.timeout-error")),this.validationResult.errors.push(k.error.Message),this.isSaving=!1})}),this.getValidationResult=()=>{let L=new ge;L.isValid=!0;let ne="";if(this.registrationWizardContactComponent.getValidationResult().isValid==!1){L.isValid=!1;for(let k of this.registrationWizardContactComponent.getValidationResult().errors)L.errors.push(k);this.tabContact.valid=!1}else this.tabContact.valid=!0;if(this.registrationWizardItemsComponent.getValidationResult().isValid==!1){L.isValid=!1;for(let k of this.registrationWizardItemsComponent.getValidationResult().errors)L.errors.push(k);this.tabItems.valid=!1}else this.tabItems.valid=!0;if(this.registrationWizardAttendeesComponent.getValidationResult().isValid==!1){L.isValid=!1;for(let k of this.registrationWizardAttendeesComponent.getValidationResult().errors)L.errors.push(k);this.tabAttendees.valid=!1}else this.tabAttendees.valid=!0;if(this.registrationWizardPaymentInfoComponent.getValidationResult().isValid==!1){L.isValid=!1;for(let k of this.registrationWizardPaymentInfoComponent.getValidationResult().errors)L.errors.push(k);this.tabPayment.valid=!1}else this.tabPayment.valid=!0;if(this.registrationWizardSponsorComponent.getValidationResult().isValid==!1){L.isValid=!1;for(let k of this.registrationWizardSponsorComponent.getValidationResult().errors)L.errors.push(k)}return this.reCaptchaResponseToken||(L.isValid=!1,L.errors.push(this._translationService.getInstant("common.please-submit-recaptcha"))),this.validationResult=L,L},this.getAttendeesOverEventAttendeeMax=()=>this.event.MaxAttendees>0?this._eventService.getPotentialAttendeeCount(this.eventId).then(L=>{this.currentlySavedAttendeeCount=L;let ne=this.event.MaxAttendees,k=0,_e=0,ln=0;for(let Ti of this.registration.Items)Ti.Quantity>0&&(k=k+Ti.Quantity*Ti.AttendeesForItem);_e=this.currentlySavedAttendeeCount+k;let Ta=_e-ne;return _e>ne?this.exceedsMaxAttendeeCount=!0:this.exceedsMaxAttendeeCount=!1,Promise.resolve(Ta)}):(this.exceedsMaxAttendeeCount=!1,Promise.resolve(-99999)),this._utilService=p,this._route=e,this._navService=r,this._registrationService=u,this._dialogService=c,this._notifyService=h,this._translationService=T,this._profileService=b,this._configService=C,this._configSettingService=v,this._router=_,this._containerService=E,this._topNavBroadcastService=R,this.eventId=0,this._entityDomainId=0,this.registrationId=0,this.event=new le,this.registration=new ve,this._eventService=a,this.selectedTab=this.tabItems,this.validationResult=new ge,this.hasSelectedEventItems=!1,this.isSaving=!1,this.initialLoadComplete=!1,this.appContext=new jn,this.assocInfo=new Qn,this.userName="",this.assocName="",this.showLogout=!1,this.isLoggedIn=!1,this.configSettings=new Array,this.exceedsMaxAttendeeCount=!1,this.displayMaxAttendeeCountDialogMessage=!1,this.lastItemsAttendeesOverMaxCount=-99998,this.currentlySavedAttendeeCount=0,this.intialLoadComplete=!1,this.loginInfoText=""}ngOnInit(){return Me(this,null,function*(){this._configServiceService.getRecaptchaSiteKey().then(a=>{this.recaptchaSiteKey=a});let r=yield this._configService.hasBetaFeatureEnabled("EventsV4");this.isLoggedIn=this._tokenStorageService.hasValidUserTypeAccessToken(),this._configService.getConfigSetting("SignInButtonText").then(a=>{this._utilService.isNotNullEmptyOrWhitespace(a.SettingValue)?this.loginInfoText=a.SettingValue:this._translationService.get("events.registration.wizard.log-in-for-special-pricing").then(e=>{this.loginInfoText=e})}),this._configService.getSpecificConfigSetting("EventRegistration","HideLogInButton").then(a=>{this._utilService.isNotNullEmptyOrWhitespace(a.SettingValue)&&(a.SettingValue.toLowerCase()=="true"?this._topNavBroadcastService.broadcast({type:Ni.hideLogin}):this._topNavBroadcastService.broadcast({type:Ni.showLogin}))}),this._route.params.subscribe(a=>{if(this._utilService.isNotNullOrUndefined(a.id)){let e=a.id;this._utilService.isNumeric(e)&&(this.eventId=Number(e),r&&this._router.navigate([`events-v4/register/${this.eventId}`]))}if(this._utilService.isNotNullOrUndefined(a.nameid)){let p=a.nameid.split("-");if(p.length>0){let u=p[p.length-1];this._utilService.isNumeric(u)&&(this.eventId=Number(u)),r&&this._router.navigate([`events-v4/register/${this.eventId}`])}}if(!r&&this.eventId>0){let e=this._configService.getAssocInfo(),p=Promise.resolve(new qt),u=this._configSettingService.getConfigSettingsForSettingGroup("EventRegistration"),c=this._eventService.getEventRead(this.eventId);Promise.all([e,p,u,c]).then(h=>{this.assocInfo=h[0],this.configSettings=h[2],this.event=h[3],this.openRegistrationWizard(this.event,this.registrationId,0,this.configSettings),this._containerService.setComponentTitle(this.event.EventName),this.event.EntityId>0&&this._entityService.getEntity(this.event.EntityId).then(A=>{A&&A.Descr&&this._containerService.setComponentOrgNameText(A.De
2scr)});let T="",b=new Date(this.event.StartDateTimeUtc),C=new Date(this.event.EndDateTimeUtc),v=this._utilService.getShortDateString(b),_=this._utilService.getShortDateString(C),E=this._utilService.getTimeString(b),R=this._utilService.getTimeString(C);if(this._utilService.isNotNullEmptyOrWhitespace(E)?(T=`${v} ${E}`,(this._utilService.isNotNullEmptyOrWhitespace(_)||this._utilService.isNotNullEmptyOrWhitespace(R))&&(T+=" - ",v!==_&&this._utilService.isNotNullEmptyOrWhitespace(_)&&(T+=_+" "),this._utilService.isNotNullEmptyOrWhitespace(R)&&(T+=R))):T=v,this.event.EventDateTimes?.length>0){T="";for(let A of this.event.EventDateTimes)T+="<div>",T+=this._utilService.getShortDateString(A.EventDate)+" ",T+=A.StartDateTimeUtc.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+" - "+A.EndDateTimeUtc.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+"<br />"}this.event.IsAllDay&&(T=v,v!==_&&this._utilService.isNotNullEmptyOrWhitespace(_)&&(T+=" - "+_),this._translationService.get("events.registration.wizard.all-day-event").then(A=>{T+=" - "+A,this._containerService.setComponentSubTitle(T)})),this._containerService.setComponentSubTitle(T),this.intialLoadComplete=!0})}}),this._route.queryParams.subscribe(a=>{this._utilService.isNotNullEmptyOrWhitespace(a.entityDomainId)&&(this._entityDomainId=Number(a.entityDomainId)),this._utilService.isNotNullEmptyOrWhitespace(a.secure)?this._secureRedirect=a.secure.toLocaleLowerCase()=="true":this._secureRedirect=!0,this._utilService.isNotNullEmptyOrWhitespace(a.settingBatch)&&(this._settingBatch=a.settingBatch)})})}ngOnDestroy(){this._containerService.setComponentTitle(""),this._containerService.setComponentOrgNameText(""),this._containerService.setComponentSubTitle("")}openRegistrationWizard(r,a,e=0,p){this.initialLoadComplete=!1,this.saveError="",this._attendeesLoaded=!1,this.tabContact.selected=!0,this.tabItems.selected=!1,this.tabAttendees.selected=!1,this.tabPayment.selected=!1,this.tabSponsor.selected=!1,this._utilService.isNullOrUndefined(r)?this.event=new le:this.event=r,this.getAttendeesOverEventAttendeeMax().then(c=>{if(c>=0){let h=this._translationService.getInstant("events.registration.wizard.exceeds-attendee-max-count-message");this._notifyService.warn(h)}}),this.eventId=Number(r.EventId),this._utilService.isNullOrUndefined(a)&&(a=0),this.registrationId=Number(a),this.registration=new ve,this.registration.EventId=this.eventId,this.registration.RegistrationId=this.registrationId,this.registrationId>0?this.registration.IsEdit=!0:this.registration.IsEdit=!1,this.registrationWizardContactComponent.event=this.event,this.registrationWizardItemsComponent.event=this.event,this.registrationWizardAttendeesComponent.event=this.event,this.registrationWizardPaymentInfoComponent.event=this.event,this.registrationWizardSponsorComponent.event=this.event,this.registrationWizardContactComponent.configSettings=this.configSettings,this.registrationWizardItemsComponent.configSettings=this.configSettings,this.registrationWizardAttendeesComponent.configSettings=this.configSettings,this.registrationWizardPaymentInfoComponent.configSettings=this.configSettings,this.registrationWizardSponsorComponent.configSettings=this.configSettings,this._registrationService.getRegistrationHeaderMin(this.registrationId).then(c=>{if(this._utilService.mapSafe(c,this.registration.Registration),c&&c.ProfileId)return this._profileService.getProfileMin(c.ProfileId).then(h=>this._registrationProfile=h);this._registrationProfile=null}).then(()=>{this.initialLoadComplete=!0;let c=this;c.registrationWizardAttendeesComponent.setWillBeLoadingNext(),this.registrationWizardContactComponent.registration=this.registration,this.registrationWizardItemsComponent.registration=this.registration,this.registrationWizardAttendeesComponent.registration=this.registration,this.registrationWizardPaymentInfoComponent.registration=this.registration,this.registrationWizardSponsorComponent.registration=this.registration,this.registrationWizardContactComponent.registrationId=this.registrationId,this.registrationWizardItemsComponent.registrationId=this.registrationId,this.registrationWizardAttendeesComponent.registrationId=this.registrationId,this.registrationWizardPaymentInfoComponent.registrationId=this.registrationId,this.registrationWizardSponsorComponent.registrationId=this.registrationId,this.registrationWizardContactComponent.loadData();let h=()=>c.registrationWizardAttendeesComponent.loadData().then(()=>c._attendeesLoaded=!0,()=>c._attendeesLoaded=!0);this.registrationWizardItemsComponent.loadData().then(()=>h(),()=>h()),this.registrationWizardPaymentInfoComponent.loadData(),this.registrationWizardSponsorComponent.loadData(),setTimeout(()=>{this.initialLoadComplete=!0,this.tabAttendees.enabled&&e>0&&this.tabsComponent.select(this.tabAttendees)},1e3)})}handleAttendeeCustomFieldResponseChange(){this._registrationService.calculateTotals(this.registration),this.registration.Registration.TotalAmount==0&&this.registration.Registration.DiscountTotal==0?this.tabPayment.enabled=!1:this.tabPayment.enabled=!0}onReCaptchaResponse(r){this.reCaptchaResponseToken=r}handleAttendeeNavAddNewAttendeeClick(){this.tabAttendees.enabled&&(this.tabsComponent.select(this.tabAttendees),setTimeout(()=>this.registrationWizardAttendeesComponent.addNewAttendee()))}handleAttendeeNavAttendeeClick(r){this.tabAttendees.enabled&&(this.tabsComponent.select(this.tabAttendees),setTimeout(()=>this.registrationWizardAttendeesComponent.scrollToAttendee(r)))}};
2n.\u0275fac=function(a){return new(a||n)(M(ke),M(de),M(Be),M(Q),M(se),M(Rn),M(st),M(oe),M(Le),M(pt),M(Se),M(dt),M(Hn),M(Gn),M(mi),M(lt),M(be))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-wizard"]],viewQuery:function(a,e){if(a&1&&(G(js,5),G(Qs,5),G(Hs,5),G(Gs,5),G(Zs,5),G(Ks,5),G(Ys,5),G(Js,5),G(Xs,5),G($s,5),G(el,5),G(tl,5)),a&2){let p;Z(p=K())&&(e.registrationForm=p.first),Z(p=K())&&(e.tabsComponent=p.first),Z(p=K())&&(e.tabItems=p.first),Z(p=K())&&(e.tabContact=p.first),Z(p=K())&&(e.tabAttendees=p.first),Z(p=K())&&(e.tabPayment=p.first),Z(p=K())&&(e.tabSponsor=p.first),Z(p=K())&&(e.registrationWizardAttendeesComponent=p.first),Z(p=K())&&(e.registrationWizardItemsComponent=p.first),Z(p=K())&&(e.registrationWizardContactComponent=p.first),Z(p=K())&&(e.registrationWizardPaymentInfoComponent=p.first),Z(p=K())&&(e.registrationWizardSponsorComponent=p.first)}},outputs:{onRegistrationSaved:"onRegistrationSaved"},standalone:!1,features:[Ee([de,se,Se,mi])],decls:74,vars:73,consts:[["registrationForm","ngForm"],["registrationWizardTabsComponent",""],["registrationWizardContactTab",""],["registrationWizardContactComponent",""],["registrationWizardItemsTab",""],["registrationWizardItemsComponent",""],["registrationWizardAttendeesTab",""],["registrationWizardAttendeesComponent",""],["registrationWizardPaymentTab",""],["registrationWizardPaymentInfoComponent",""],["registrationWizardSponsorTab",""],["registrationWizardSponsorComponent",""],[1,"container-fluid",3,"hidden"],[1,"row"],[1,"col-sm-12"],["src","assets/img/loading_2x.gif","alt","Loading..."],[1,"highlight-box",3,"hidden"],["fxLayout","column","fxLayout.lt-md","column","fxLayoutAlign","space-between none",1,"container-fluid",3,"hidden"],[1,"col-sm-offset-3","col-md-offset-3","col-lg-offset-3"],[4,"ngIf"],[3,"tabAffix","tabAffixOffset"],[3,"title"],[3,"onRegistrationProfileChanged"],[3,"onRegistrationItemsChanged"],[3,"customFieldResponseChange","registrationProfile"],[3,"isTabWellContent"],["name","paymentInfoInput","ngModelGroup","registrationWizardPaymentInfoFields"],[3,"title","enabled"],["fxLayout","column","fxLayoutAlign","space-between end"],["class","alert alert-danger",4,"ngIf"],["style","margin-bottom: 10px",4,"ngIf"],[3,"show"],["type","button",1,"btn","btn-secondary",3,"click","disabled"],[1,"glyphicon","glyphicon-ban-circle"],[1,"glyphicon","glyphicon-chevron-left"],["type","button",1,"btn","btn-secondary",3,"click","hidden"],[1,"glyphicon","glyphicon-chevron-right"],["type","button",1,"btn","btn-primary",3,"click","disabled","hidden"],[1,"glyphicon","glyphicon-ok"],[3,"onAddAttendee","onAttendeeClick","attendees","enableNewButton"],[1,"alert","alert-danger"],[3,"hidden"],[4,"ngFor","ngForOf"],[2,"margin-bottom","10px"],[3,"resolved","siteKey"]],template:function(a,e){if(a&1){let p=z();l(0,"div",12)(1,"div",13)(2,"div",14),N(3,"img",15),s()()(),l(4,"div",16)(5,"h4"),f(6),d(7,"translate"),d(8,"titlecase"),s()(),l(9,"div",17)(10,"div",18),x(11,il,2,1,"b",19),s(),l(12,"form",null,0)(14,"wl-tabs",20,1)(16,"wl-tab",21,2),d(18,"translate"),d(19,"titlecase"),l(20,"wl-registration-wizard-contact",22,3),O("onRegistrationProfileChanged",function(c){return I(p),w(e.registrationProfileChanged(c))}),s()(),l(22,"wl-tab",21,4),d(24,"translate"),d(25,"titlecase"),l(26,"wl-registration-wizard-items",23,5),O("onRegistrationItemsChanged",function(){return I(p),w(e.registrationItemsChanged())}),s()(),l(28,"wl-tab",21,6),d(30,"translate"),d(31,"titlecase"),l(32,"wl-registration-wizard-attendees",24,7),O("customFieldResponseChange",function(){return I(p),w(e.handleAttendeeCustomFieldResponseChange())}),s()(),l(34,"wl-tab",25),x(35,nl,1,2,"ng-template"),s(),l(36,"wl-tab",21,8),d(38,"translate"),d(39,"titlecase"),N(40,"wl-registration-wizard-payment-info",26,9),s(),l(42,"wl-tab",27,10),d(44,"translate"),d(45,"titlecase"),N(46,"wl-registration-wizard-sponsor",null,11),s()()(),l(48,"div",28)(49,"div"),x(50,al,5,5,"div",29)(51,ol,2,1,"div",29)(52,sl,2,1,"div",30),N(53,"wl-busy",31),l(54,"button",32),O("click",function(){return I(p),w(e.wizardCancel())}),N(55,"span",33),f(56),d(57,"translate"),d(58,"titlecase"),s(),l(59,"button",32),O("click",function(){I(p);let c=Ce(15);return w(c.selectPreviousTab())}),N(60,"span",34),f(61),d(62,"translate"),d(63,"titlecase"),s(),l(64,"button",35),O("click",function(){I(p);let c=Ce(15);return w(c.selectNextTab())}),f(65),d(66,"translate"),d(67,"titlecase"),N(68,"span",36),s(),l(69,"button",37),O("click",function(){return I(p),w(e.wizardSave())}),N(70,"span",38),f(71),d(72,"translate"),d(73,"titlecase"),s()()()()}if(a&2){let p=Ce(15);g("hidden",e.intialLoadComplete==!0),o(4),g("hidden",e.intialLoadComplete==!1||e.event.DisableRegistration==!1),o(2),P(m(8,35,m(7,33,"events.registration.wizard.registration-disabled-message"))),o(3),g("hidden",e.intialLoadComplete==!1||e.event.DisableRegistration==!0),o(2),g("ngIf",!e.isLoggedIn),o(3),g("tabAff
2ix",!0)("tabAffixOffset",191),o(2),g("title",ae(m(19,39,m(18,37,"events.registration.wizard.contact.title")))),o(6),g("title",ae(m(25,43,m(24,41,"events.registration.wizard.items.title")))),o(6),g("title",ae(m(31,47,m(30,45,"events.registration.wizard.attendees.title")))),o(4),g("registrationProfile",e._registrationProfile),o(2),g("isTabWellContent",!0),o(2),g("title",ae(m(39,51,m(38,49,"events.registration.wizard.payment-info.title")))),o(6),g("title",ae(m(45,55,m(44,53,"events.registration.wizard.sponsor.title"))))("enabled",!1),o(8),g("ngIf",!e.validationResult.isValid&&e.validationResult.errors.length>0),o(),g("ngIf",!e.registration.IsEdit&&e.saveError!=""),o(),g("ngIf",p.isOnLastTab&&e.recaptchaSiteKey),o(),g("show",e.isSaving),o(),g("disabled",e.isSaving),o(2),S(" ",m(58,59,m(57,57,"common.cancel"))," "),o(3),g("disabled",p.isOnFirstTab),o(2),S(" ",m(63,63,m(62,61,"common.back"))," "),o(3),g("hidden",p.isOnLastTab),o(),S(" ",m(67,67,m(66,65,"common.next"))," "),o(4),g("disabled",!p.isOnLastTab||!e.hasSelectedEventItems||e.isSaving||e.exceedsMaxAttendeeCount||e.registrationSuccess)("hidden",!p.isOnLastTab),o(2),S(" ",m(73,71,m(72,69,"events.registration.wizard.submit-registration"))," ")}},dependencies:[ze,Jn,Yn,Ct,J,j,gt,Qe,ct,mt,qe,Ue,ta,ia,oa,sa,la,da,H,q],encapsulation:2});let i=n;return i})();var Ci=class{constructor(){this.EventId=0,this.EventName="",this.Descr="",this.StartTime="",this.EndTime="",this.StartDate=new Date,this.EndDate=new Date,this.StartDateTimeUtc=new Date,this.EndDateTimeUtc=new Date,this.IsAllDay=!1,this.PublicRegistrationEndDateUtc=new Date,this.Email="",this.ShowAttendeeDetail=!1,this.DisableRegistration=!1,this.ImageUrl="",this.Location="",this.Phone="",this.Address1="",this.Address2="",this.City="",this.State="",this.Zip="",this.ZipExt="",this.ShowMap=!1,this.Venue="",this.Latitude="",this.Longitude="",this.RegistrationUrl="",this.EventDetailsUrl="",this.IsSpecialRegistrationUrl=!1,this.IsSpecialEventDetailsUrl=!1,this.RelatedWebsite="",this.IsRegistrationEnabled=!1,this.TimeZone={},this.Items=new Array,this.SignUps=new Array,this.Sponsors=new Array,this.EventDateTimes=new Array}};function pl(i,n){i&1&&(l(0,"tr",7)(1,"th",8),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"th",9),f(6),d(7,"translate"),d(8,"titlecase"),s(),l(9,"th",10),f(10),d(11,"translate"),d(12,"titlecase"),s()()),i&2&&(o(2),P(m(4,5,m(3,3,"events.detail.items.grid.column-item-name"))),o(4),P(m(8,9,m(7,7,"events.detail.items.grid.column-price"))),o(4),P(m(12,13,m(11,11,"events.detail.items.grid.column-expiration-date"))))}function ml(i,n){if(i&1&&N(0,"div",15),i&2){let t=y().$implicit;g("innerHTML",t.LongDescription,rt)}}function cl(i,n){if(i&1&&(l(0,"tr",11)(1,"td")(2,"span",12),f(3),s(),x(4,ml,1,1,"div",13),s(),l(5,"td",14),f(6),d(7,"currency"),d(8,"currency"),s(),l(9,"td",10),f(10),d(11,"date"),s()()),i&2){let t=n.$implicit;o(3),P(t.Descr),o(),g("ngIf",t.LongDescription),o(2),$(" ",Fi(7,5,t.NonMemberPrice,"USD","symbol","1.2-2")," ",Fi(8,10,t.NonMemberPrice!==t.MemberPrice?t.MemberPrice:"","USD","symbol","1.2-2")," "),o(4),P(Y(11,15,t.EndDate,"M/d/yyyy"))}}function gl(i,n){if(i&1){let t=z();l(0,"button",19),O("click",function(){I(t);let a=y(3);return w(a.openEventPage(a.event.RegistrationUrl))}),f(1),d(2,"translate"),d(3,"titlecase"),s()}i&2&&(o(),S(" ",m(3,3,m(2,1,"events.detail.items.button-register"))," "))}function fl(i,n){if(i&1&&(l(0,"a",20),f(1),d(2,"translate"),d(3,"titlecase"),s()),i&2){let t=y(3);g("href",ae(t.event.RegistrationUrl),ie),o(),S(" ",m(3,5,m(2,3,"events.detail.items.button-register"))," ")}}function ul(i,n){if(i&1&&(l(0,"div",16),x(1,gl,4,5,"button",17)(2,fl,4,7,"a",18),s()),i&2){let t=y(2);o(),g("ngIf",!t.event.IsSpecialRegistrationUrl),o(),g("ngIf",t.event.IsSpecialRegistrationUrl)}}function hl(i,n){if(i&1&&(l(0,"div",1)(1,"h6",2),f(2),d(3,"translate"),d(4,"titlecase"),s(),l(5,"p-table",3),x(6,pl,13,15,"ng-template",4)(7,cl,12,18,"ng-template",5),s(),x(8,ul,3,2,"div",6),s()),i&2){let t=y();o(2),P(m(4,8,m(3,6,"events.detail.items.title"))),o(3),g("value",t.eventItems)("paginator",!1)("rows",50)("lazy",!1),o(3),g("ngIf",t.event.IsRegistrationEnabled)}}var ma=(()=>{let n=class n{get eventItems(){return this.event?.Items?.length?this.event.Items.filter(r=>this.userCanViewItem(r)):[]}constructor(r,a,e){this._route=r,this._utilService=a,this._navigationService=e,this.currentUserProfile=new Ve,this.isUserLoggedIn=!1}ngOnInit(){this._route.params.subscribe(r=>{this._utilService.isNotNullOrUndefined(r.nameid)&&(this.routeParam=r.nameid)})}openEventPage(r){this._navigationService.navigateToEventPage(r)}userCanViewItem(r){let a=Date.now(),e=!!r.IsPublic,p=r?.StartDate?.getTime?.()<a&&a<=r?.EndDate?.getTime?.();return e&&p&&this.passesMembersOnlyRules(r)&&this.passesAffCodesRules(r)}passesMembersOnlyRules(r){return r.MembersOnly?r.AllowRelateProfileMemberPrice?this.isMemberOrPrimaryRelated():!!this.currentUserProfile?.Member:!0}
2passesAffCodesRules(r){if(!r.RestrictForAffiliations)return!0;let a=this.currentUserProfile?.Affiliations??[],e=r.AffiliationRestrictions??[];return e.length?a.some(p=>e.some(u=>this._utilService.toLowerTrim(u)===this._utilService.toLowerTrim(p.AffCode))):!0}isMemberOrPrimaryRelated(){return this.isUserLoggedIn?this.currentUserProfile?.Member?!0:(this.currentUserProfile?.RelatedProfiles??[]).some(a=>a.Member&&a.PrimaryRelation):!1}};n.\u0275fac=function(a){return new(a||n)(M(Be),M(Q),M(ke))},n.\u0275cmp=U({type:n,selectors:[["wl-event-detail-item"]],inputs:{event:"event",currentUserProfile:"currentUserProfile",isUserLoggedIn:"isUserLoggedIn"},standalone:!1,decls:1,vars:1,consts:[["class","mv-25",4,"ngIf"],[1,"mv-25"],[1,"mv-15","f-wb"],["styleClass","f-12",3,"value","paginator","rows","lazy"],["pTemplate","header"],["pTemplate","body"],["class","mv-5 t-ar",4,"ngIf"],[1,"grid-header"],[1,"t-ac",2,"width","60%"],[1,"t-ac",2,"width","10%"],[1,"t-ac"],[1,"grid-row"],[1,"f-wb"],["class","f-10",3,"innerHTML",4,"ngIf"],[1,"t-ar"],[1,"f-10",3,"innerHTML"],[1,"mv-5","t-ar"],["type","button","class","atlas-btn atlas-btn-primary",3,"click",4,"ngIf"],["type","button","class","atlas-btn atlas-btn-primary","target","_blank",3,"href",4,"ngIf"],["type","button",1,"atlas-btn","atlas-btn-primary",3,"click"],["type","button","target","_blank",1,"atlas-btn","atlas-btn-primary",3,"href"]],template:function(a,e){a&1&&x(0,hl,9,10,"div",0),a&2&&g("ngIf",(e.eventItems==null?null:e.eventItems.length)>0)},dependencies:[Ut,j,Jt,H,De,Ae,q],styles:[".grid-header[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background:#e6e6e6}.grid-row[_ngcontent-%COMP%]:nth-child(2n){background:#f6f6f6}"]});let i=n;return i})();var yl=()=>({"max-height":"13px","max-width":"13px","vertical-align":"top","margin-right":"3px"});function _l(i,n){if(i&1&&(l(0,"div",7),N(1,"wl-profile-type-icon",8),l(2,"span"),f(3),s()()),i&2){let t=n.$implicit;o(),g("styleOverrides",yn(2,yl)),o(2),P(t.FullName)}}function Cl(i,n){if(i&1&&(l(0,"p-accordion-panel",5)(1,"p-accordion-header")(2,"div")(3,"span"),f(4),s()()(),l(5,"p-accordion-content"),x(6,_l,4,3,"div",6),s()()),i&2){let t=n.$implicit,r=n.index;g("value",r),o(4),P(t.OrgName),o(2),g("ngForOf",t.Attendees)}}function Sl(i,n){if(i&1&&(l(0,"div")(1,"p-accordion",3),x(2,Cl,7,3,"p-accordion-panel",4),s()()),i&2){let t=y();o(2),g("ngForOf",t.event.SignUps)}}var ca=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=U({type:n,selectors:[["wl-event-detail-attendee"]],inputs:{event:"event"},standalone:!1,decls:6,vars:6,consts:[[1,"mv-25"],[1,"mv-15","f-wb"],[4,"ngIf"],["styleClass","f-12"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["class","mv-5 attendees",4,"ngFor","ngForOf"],[1,"mv-5","attendees"],[3,"styleOverrides"]],template:function(a,e){a&1&&(l(0,"div",0)(1,"h6",1),f(2),d(3,"translate"),d(4,"titlecase"),s(),x(5,Sl,3,1,"div",2),s()),a&2&&(o(2),P(m(4,4,m(3,2,"events.detail.attendees.title"))),o(3),g("ngIf",e.event))},dependencies:[Lr,rr,tr,ir,nr,J,j,H,q],styles:["[_nghost-%COMP%]     .p-accordion-content{max-height:200px;scroll-behavior:auto;overflow-x:hidden!important}"]});let i=n;return i})();var ga=(()=>{let n=class n{constructor(r){this._apiService=r,this.composeEmailForProfiles=a=>{let e="";for(var p of a.ToProfileIds)(e="")?e+=p.toString():e+=","+p.toString();let u=this._domain+"/External/WCPages/v12/WebClient/Email/Send.aspx?subject="+encodeURIComponent(a.Subject)+"&message="+encodeURIComponent(a.Message)+"&ProfileIDs="+e;window.open(u)},this.sendEmail=a=>this._apiService.put("email",a),this._domain=this._apiService.getDomain()}sendEmailWithCaptcha(r,a){let e=[this.createReCaptchaHeader(a)];return this._apiService.post("/Email/SendEmailWithCaptcha",r,e)}createReCaptchaHeader(r){return new bn("g-recaptcha-response",r)}};n.\u0275fac=function(a){return new(a||n)(te(Fe))},n.\u0275prov=we({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();function El(i,n){if(i&1){let t=z();l(0,"div",14)(1,"re-captcha",15),O("resolved",function(a){I(t);let e=y();return w(e.onReCaptchaResponse(a))}),s()()}if(i&2){let t=y();o(),g("siteKey",t.recaptchaSiteKey)}}var fa=(()=>{let n=class n{constructor(r,a,e){this._notificationService=r,this._emailService=a,this._configService=e,this.today=new Date,this.emailMessage={},this.sendingEmail=!1,this.recaptchaSiteKey=""}
2ngOnInit(){this._configService.getRecaptchaSiteKey().then(r=>{this.recaptchaSiteKey=r})}clearForm(){this.emailMessage.EmailFrom="",this.emailMessage.Message=""}onReCaptchaResponse(r){this.reCaptchaResponseToken=r}onReCaptchaExpiration(){this.reCaptchaResponseToken=null}sendEmail(){this.sendingEmail=!0,this.setEmailProperties(),this._emailService.sendEmailWithCaptcha(this.emailMessage,this.reCaptchaResponseToken).then(()=>{this.sendingEmail=!1,this._notificationService.translateSuccess("events.detail.contact-form.email-sent-success")},r=>{this.sendingEmail=!1,this._notificationService.translateError(r.message)})}setEmailProperties(){this.emailMessage.EmailTo=this.event.SendQuestionsToEmail?this.event.SendQuestionsToEmail:this.event.Email,this.emailMessage.Subject=`Question Submitted From ${this.event.EventName}`}};n.\u0275fac=function(a){return new(a||n)(M(st),M(ga),M(be))},n.\u0275cmp=U({type:n,selectors:[["wl-event-detail-contact-form"]],inputs:{event:"event"},standalone:!1,decls:44,vars:47,consts:[["contactForm","ngForm"],["fxLayout","row","fxLayoutAlign","space-between"],[1,"mv-15","f-wb"],[1,"grey-box","p-10"],["fxLayoutAlign","space-between",1,"mt-15"],[1,"f-12"],["type","email","name","email","required","",1,"form-control",3,"ngModelChange","placeholder","ngModel"],["pInputTextarea","","name","message","required","",1,"form-control",3,"ngModelChange","ngModel"],["fxLayout","row wrap","fxLayoutAlign","space-between center",1,"mt-15"],["class","mb-10",4,"ngIf"],[1,"mv-10","t-ar"],[1,"atlas-btn","btn-secondary","mr-5",3,"click"],[1,"btn","btn-primary",3,"click","disabled"],[3,"show"],[1,"mb-10"],[3,"resolved","siteKey"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"h6",2),f(2),d(3,"translate"),s(),l(4,"div"),f(5),d(6,"date"),s()(),l(7,"form",null,0)(9,"div",3)(10,"div",4)(11,"label"),f(12),d(13,"translate"),d(14,"titlecase"),s(),l(15,"label",5),f(16),d(17,"translate"),d(18,"titlecase"),s()(),l(19,"input",6),d(20,"translate"),d(21,"titlecase"),B("ngModelChange",function(c){return I(p),F(e.emailMessage.EmailFrom,c)||(e.emailMessage.EmailFrom=c),w(c)}),s(),l(22,"div",4)(23,"label"),f(24),d(25,"translate"),d(26,"titlecase"),s(),l(27,"label",5),f(28),d(29,"translate"),d(30,"titlecase"),s()(),l(31,"textarea",7),B("ngModelChange",function(c){return I(p),F(e.emailMessage.Message,c)||(e.emailMessage.Message=c),w(c)}),s()(),l(32,"div",8),x(33,El,2,1,"div",9),l(34,"div",10)(35,"button",11),O("click",function(){return I(p),w(e.clearForm())}),f(36),d(37,"translate"),d(38,"titlecase"),s(),l(39,"button",12),O("click",function(){return I(p),w(e.sendEmail())}),N(40,"wl-busy",13),f(41),d(42,"translate"),d(43,"titlecase"),s()()()()}if(a&2){let p=Ce(8);o(2),P(m(3,14,"events.detail.contact-form.title")),o(3),P(Y(6,16,e.today,"MM/dd/yyyy")),o(7),S("",m(14,21,m(13,19,"events.detail.contact-form.your-email")),":"),o(4),P(m(18,25,m(17,23,"common.required"))),o(3),g("placeholder",m(21,29,m(20,27,"events.detail.contact-form.placeholder-email"))),D("ngModel",e.emailMessage.EmailFrom),o(5),S("",m(26,33,m(25,31,"events.detail.contact-form.message")),":"),o(4),P(m(30,37,m(29,35,"common.required"))),o(3),D("ngModel",e.emailMessage.Message),o(2),g("ngIf",e.re
2captchaSiteKey),o(3),S(" ",m(38,41,m(37,39,"events.detail.contact-form.button-clear-all"))," "),o(3),g("disabled",!p.valid||!e.reCaptchaResponseToken||e.sendingEmail),o(),g("show",e.sendingEmail),o(),S(" ",m(43,45,m(42,43,"events.detail.contact-form.button-send"))," ")}},dependencies:[ze,Ct,j,gt,pe,me,Qe,kn,ce,mt,qe,Ue,H,Ae,q],styles:[".grey-box[_ngcontent-%COMP%]{background-color:#f4f4f4}"]});let i=n;return i})();function xl(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y(2);o(),S(" ",t.eventDisplayDate," ")}}function Rl(i,n){if(i&1&&(l(0,"tr")(1,"td")(2,"div",21)(3,"div"),f(4),d(5,"date"),s(),l(6,"div"),f(7),d(8,"date"),d(9,"date"),s()()()()),i&2){let t=n.$implicit;o(4),P(Y(5,3,t.StartDateTimeUtc,"fullDate")),o(3),$(" ",Y(8,6,t.StartDateTimeUtc,"shortTime")," - ",Y(9,9,t.EndDateTimeUtc,"shortTime")," ")}}function Pl(i,n){if(i&1&&(l(0,"div")(1,"p-table",19),x(2,Rl,10,12,"ng-template",20),s()()),i&2){let t=y(2);o(),g("value",t.event.EventDateTimes)("rows",t.event.EventDateTimes.length)}}function Ml(i,n){i&1&&(f(0),d(1,"translate")),i&2&&S(" ",m(1,1,"events.detail.all-day-event")," ")}function Tl(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y(2);o(),S(" ",t.event.Venue," ")}}function Al(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y(2);o(),S(" ",t.event.Address1," ")}}function Dl(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y(2);o(),S(" ",t.event.Address2," ")}}function Fl(i,n){if(i&1){let t=z();l(0,"button",24),O("click",function(){I(t);let a=y(3);return w(a.openEventPage(a.event.RegistrationUrl))}),f(1),d(2,"translate"),d(3,"titlecase"),s()}i&2&&(o(),S(" ",m(3,3,m(2,1,"events.detail.items.button-register"))," "))}function Bl(i,n){if(i&1&&(l(0,"a",25),f(1),d(2,"translate"),d(3,"titlecase"),s()),i&2){let t=y(3);g("href",ae(t.event.RegistrationUrl),ie),o(),S(" ",m(3,5,m(2,3,"events.detail.items.button-register"))," ")}}function Wl(i,n){if(i&1&&(l(0,"div",10),x(1,Fl,4,5,"button",22)(2,Bl,4,7,"a",23),s()),i&2){let t=y(2);o(),g("ngIf",!t.event.IsSpecialRegistrationUrl),o(),g("ngIf",t.event.IsSpecialRegistrationUrl)}}function Ol(i,n){if(i&1&&(l(0,"div",26)(1,"a",27),f(2),s()()),i&2){let t=y(2);o(),g("href",t.event.RelatedWebsite,ie),o(),S(" ",t.event.RelatedWebsite," ")}}function Nl(i,n){if(i&1&&(l(0,"div",32),N(1,"wl-event-detail-attendee",30),s()),i&2){let t=y(3);o(),g("event",t.event)}}function zl(i,n){if(i&1&&(l(0,"div",28)(1,"div",29),N(2,"wl-event-detail-item",30),s(),x(3,Nl,2,1,"div",31),s()),i&2){let t=y(2);o(2),g("event",t.event),o(),g("ngIf",t.event.ShowAttendeeDetail)}}function Vl(i,n){if(i&1&&(l(0,"div",33),N(1,"wl-event-detail-contact-form",30),s()),i&2){let t=y(2);o(),g("event",t.event)}}function Ll(i,n){if(i&1&&(l(0,"div",38),N(1,"img",39),s()),i&2){let t=y(3);o(),g("src",t.eventImageUrl,ie)}}function kl(i,n){if(i&1&&N(0,"img",46),i&2){let t=y(2).$implicit;g("src",t.SponsorLogoUrl,ie)("pTooltip",t.SponsorName)}}function Ul(i,n){if(i&1&&(l(0,"a",27),x(1,kl,1,2,"img",45),s()),i&2){let t=y().$implicit;g("href",t.SponsorWebsite,ie),o(),g("ngIf",t.SponsorLogoUrl)}}function ql(i,n){if(i&1&&N(0,"img",46),i&2){let t=y(2).$implicit;g("src",t.SponsorLogoUrl,ie)("pTooltip",t.SponsorName)}}function jl(i,n){if(i&1&&(l(0,"div"),x(1,ql,1,2,"img",45),s()),i&2){let t=y().$implicit;o(),g("ngIf",t.SponsorLogoUrl)}}function Ql(i,n){if(i&1&&(l(0,"a",27),f(1),s()),i&2){let t=y(2).$implicit;g("href",t.SponsorWebsite,ie),o(),S(" ",t.SponsorName," ")}}function Hl(i,n){if(i&1&&f(0),i&2){let t=y(2).$implicit;S(" ",t.SponsorName," ")}}function Gl(i,n){if(i&1&&(l(0,"div"),x(1,Ql,2,2,"a",44)(2,Hl,1,1,"ng-template",null,2,Te),s()),i&2){let t=Ce(3),r=y().$implicit;o(),g("ngIf",r.SponsorWebsite)("ngIfElse",t)}}function Zl(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y().$implicit;o(),S(" ",t.SponsorMessage," ")}}function Kl(i,n){if(i&1&&(l(0,"div",43),x(1,Ul,2,2,"a",44)(2,jl,2,1,"ng-template",null,1,Te)(4,Gl,4,2,"div",9)(5,Zl,2,1,"div",9),s()),i&2){let t=n.$implicit,r=Ce(3);o(),g("ngIf",t.SponsorWebsite)("ngIfElse",r),o(3),g("ngIf",!t.HideSponsorOrgName&&t.SponsorName),o(),g("ngIf",!!t.SponsorMessage)}}function Yl(i,n){if(i&1&&(l(0,"div",40)(1,"div",41),x(2,Kl,6,4,"div",42),s()()),i&2){let t=y(3);o(2),g("ngForOf",t.sponsors)}}
2function Jl(i,n){if(i&1&&(l(0,"div",47),N(1,"wl-directory-map",48),s()),i&2){let t=y(3);o(),g("searchResults",t.eventMapLocations)}}function Xl(i,n){if(i&1&&(l(0,"div",34),x(1,Ll,2,1,"div",35)(2,Yl,3,1,"div",36)(3,Jl,2,1,"div",37),s()),i&2){let t=y(2);o(),g("ngIf",t.eventImageUrl!==""),o(),g("ngIf",t.hasSponsors),o(),g("ngIf",t.event.ShowMap)}}function $l(i,n){if(i&1&&(l(0,"div",6)(1,"div",7)(2,"h1"),f(3),s(),l(4,"div",8),x(5,xl,2,1,"div",9)(6,Pl,3,2,"div",9),l(7,"div",10),x(8,Ml,2,3,"ng-template",null,0,Te),s(),l(10,"div",10)(11,"div")(12,"div",11),x(13,Tl,2,1,"div",9)(14,Al,2,1,"div",9)(15,Dl,2,1,"div",9),l(16,"div"),f(17),s()(),l(18,"div",12),f(19),s()(),N(20,"hr"),s(),x(21,Wl,3,2,"div",13),s(),N(22,"div",14),d(23,"safeHtml"),x(24,Ol,3,2,"div",15)(25,zl,4,2,"div",16)(26,Vl,2,1,"div",17),s(),x(27,Xl,4,3,"div",18),s()),i&2){let t=y();fn("has-sidebar",t.hasSidebar),o(3),P(t.event.EventName),o(2),g("ngIf",!t.displayMultipleDates),o(),g("ngIf",t.displayMultipleDates),o(7),g("ngIf",t.event.Venue),o(),g("ngIf",t.event.Address1),o(),g("ngIf",t.event.Address2),o(2),hn("",t.event.City,"",t.event.City?",":""," ",t.event.State," ",t.event.Zip),o(2),P(t.event.Location),o(2),g("ngIf",t.event.IsRegistrationEnabled),o(),g("innerHTML",m(23,19,t.event.Descr),rt),o(2),g("ngIf",t.event.RelatedWebsite),o(),g("ngIf",t.event.EventId>0),o(),g("ngIf",t.showContactForm),o(),g("ngIf",t.hasSidebar)}}var ua=(()=>{let n=class n{constructor(r,a,e,p,u,c,h,T,b){this._route=r,this._utilService=a,this._eventService=e,this._configService=p,this._configServiceService=u,this._navigationService=c,this.elRef=h,this.renderer=T,this.cdr=b,this.event=new Ci,this.eventMapLocations=new Array,this.eventImageUrl="",this.showContactForm=!1,this.hasSponsors=!1,this.displayMultipleDates=!1,this.eventDisplayDate=""}ngOnInit(){this._configService.getAppContext().then(r=>{this.webRootSecure=r.WebRootSecure}),this._route.params.subscribe(r=>{if(this._utilService.isNotNullOrUndefined(r.nameid)){let e=r.nameid.split("-");if(e.length>0){let p=e[e.length-1];this._utilService.isNumeric(p)&&(this.eventId=Number(p),this.eventId>0&&(this._eventService.getEventDetails(this.eventId).then(u=>{this.event=u,this.event.RegistrationUrl=this._utilService.getEventPagesUrl(this.event.RegistrationUrl,this.event.EventId,"register"),this.eventLocation=this._eventService.getEventFullLocation(this.event),this.showContactForm=this._utilService.isNotNullEmptyOrWhitespace(this.event.SendQuestionsToEmail),this.setEventImage(this.event),this.setEventMapLocation(this.event),this.event.EventDateTimes.length>0?this.displayMultipleDates=!0:(this.displayMultipleDates=!1,this.eventDisplayDate=this.GetEventDate()),setTimeout(()=>this.applyIframeStyles(),0)}),Promise.all([this._configService.getAppContext(),this._eventService.getEventSponsors(this.eventId)]).then(([u,c])=>{c.Result.length>0&&(this.sponsors=this._utilService.sortByStringAsc(c.Result,"Sort"),this.sponsors.forEac
2h(h=>{h.SponsorLogoUrl=h.SponsorLogoUrl.startsWith("http")||!h.SponsorLogoUrl?h.SponsorLogoUrl:u.WebRootSecure+h.SponsorLogoUrl}),this.hasSponsors=!0)})))}}})}ngAfterViewInit(){this.cdr.detectChanges()}get hasSidebar(){return this.eventImageUrl!==""||this.hasSponsors||this.event.ShowMap}applyIframeStyles(){setTimeout(()=>{let r=this.elRef.nativeElement.querySelector(".long-description");if(!r)return;r.querySelectorAll("iframe").forEach(e=>{(e.src||"").includes("recaptcha")||(this.renderer.setStyle(e,"max-width","100%"),this.renderer.setStyle(e,"width","100%"),this.renderer.setStyle(e,"display","block"),this.renderer.setStyle(e,"border","0"))})},100)}setEventImage(r){this._configService.getAppContext().then(a=>{this._utilService.isNotNullEmptyOrWhitespace(r.ImageUrl)&&(r.ImageUrl.indexOf(a.WebRootSecure)<0?this.eventImageUrl=a.WebRootSecure+r.ImageUrl:this.eventImageUrl=r.ImageUrl)})}setEventMapLocation(r){this._configServiceService.getDirectorySettings().then(a=>{if(a.GoogleMapsApiKey){let e={};e.Address1=this._utilService.replaceAll(r.Address1,"#",""),e.Address2=this._utilService.replaceAll(r.Address2,"#",""),e.City=r.City,e.State=r.State,e.Zip=r.Zip,e.WorkPhone=r.Phone,e.DisplayName=r.Venue,e.Latitude=r.Latitude,e.Longitude=r.Longitude,this.event.ShowMap=this._utilService.isNotNullEmptyOrWhitespace(e.Latitude)&&this._utilService.isNotNullEmptyOrWhitespace(e.Longitude)&&e.Latitude!=="-1"&&e.Longitude!=="-1",this.eventMapLocations.push(e)}})}openEventPage(r){this._navigationService.navigateToEventPage(r)}GetEventDate(){let r=new Date(this.event.StartDateTimeUtc),a=new Date(this.event.EndDateTimeUtc),e=this._utilService.getLongDateStringNoTime(r),p=this._utilService.getLongDateStringNoTime(a),u=this._utilService.getTimeString(r),c=this._utilService.getTimeString(a),h="";return this._utilService.isNotNullEmptyOrWhitespace(u)&&!this.event.IsAllDay?h=`${e} @ ${u}`:h=`${e}`,(this._utilService.isNotNullEmptyOrWhitespace(p)||this._utilService.isNotNullEmptyOrWhitespace(c))&&((e!==p||this._utilService.isNotNullEmptyOrWhitespace(c)&&!this.event.IsAllDay)&&(h+=" - "),e!==p&&this._utilService.isNotNullEmptyOrWhitespace(p)&&(h+=p+" "),this._utilService.isNotNullEmptyOrWhitespace(c)&&!this.event.IsAllDay&&(h+=` ${c}`)),h}};n.\u0275fac=function(a){return new(a||n)(M(Be),M(Q),M(de),M(pt),M(be),M(ke),M(Nt),M(gn),M(at))},n.\u0275cmp=U({type:n,selectors:[["wl-event-detail"]],standalone:!1,decls:3,vars:1,consts:[["isAllDayEvent",""],["noWebsiteWithImage",""],["noWebsite",""],[1,"page-width"],[1,"mv-25"],["class","event-detail-grid",3,"has-sidebar",4,"ngIf"],[1,"event-detail-grid"],[1,"flex","column","event-main-column"],[1,"event-header"],[4,"ngIf"],[1,"mv-5"],[1,"mt-15"],[1,"mv-10"],["class","mv-5",4,"ngIf"],[1,"mv-5","long-description",3,"innerHTML"],["class","mv-15",4,"ngIf"],["class","flex row-collapse gap-10px mv-50",4,"ngIf"],["class","mv-50",4,"ngIf"],["class","flex column event-sidebar",4,"ngIf"],["styleClass","p-datatable-striped",3,"value","rows"],["pTemplate","body"],[1,"flex","row","space-between"],["type","button","class","atlas-btn atlas-btn-primary",3,"click",4,"ngIf"],["type","button","class","atlas-btn atlas-btn-primary","target","_blank",3,"href",4,"ngIf"],["type","button",1,"atlas-btn","atlas-btn-primary",3,"click"],["type","button","target","_blank",1,"atlas-btn","atlas-btn-primary",3,"href"],[1,"mv-15"],["target","_blank",3,"href"],[1,"flex","row-collapse","gap-10px","mv-50"],[1,"flex","column","detail-item",2,"flex","1 1 70%"],[3,"event"],["class","flex column attendees","style","flex: 1 1 30%",4,"ngIf"],[1,"flex","column","attendees",2,"flex","1 1 30%"],[1,"mv-50"],[1,"flex","column","event-sidebar"],["class","img-event-container",4,"ngIf"],["class","mb-20 t-ac sponsors-container p-5 flex column items-center gap-10px",4,"ngIf"],["class","map-container",4,"ngIf"],[1,"img-event-container"],[1,"img-event",3,"src"],[1,"mb-20","t-ac","sponsors-container","p-5","flex","column","items-center","gap-10px"],[1,"flex","column","items-center"],["class","sponsor",4,"ngFor","ngForOf"],[1,"sponsor"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["class","img-sponsor",3,"src","pTooltip",4,"ngIf"],[1,"img-sponsor",3,"src","pTooltip"],[1,"map-container"],[3,"searchResults"]],template:function(a,e){a&1&&(l(0,"div",3),N(1,"div",4),x(2,$l,28,21,"div",5),s()),a&2&&(
2o(2),g("ngIf",e.event.EventId>0))},dependencies:[Ut,J,j,Jt,Gr,ma,ca,fa,er,H,Ae,q],styles:['.page-width[_ngcontent-%COMP%]{max-width:970px;margin:auto}.event-detail-grid[_ngcontent-%COMP%]{display:grid;gap:27px;grid-template-columns:minmax(0,1fr)}.event-detail-grid.has-sidebar[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) 330px}@media screen and (max-width:959px){.event-detail-grid.has-sidebar[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr)}}.img-event[_ngcontent-%COMP%]{max-width:320px;max-height:320px;margin:5px}.map-container[_ngcontent-%COMP%]{text-align:center;width:100vw;height:20vw;max-width:320px;min-height:220px;margin:0 auto 20px}.sponsor[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:10px}.img-sponsor[_ngcontent-%COMP%]{max-width:280px}[_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     img, [_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     video{max-width:100%;height:auto;box-sizing:border-box}[_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     img[style^=width], [_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     img[style*=" width"], [_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     img[style*=";width"]{height:auto!important}[_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     td img, [_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     th img{max-width:none}[_nghost-%COMP%]   .long-description[_ngcontent-%COMP%]     table{max-width:100%}.long-description[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{width:100%!important;height:auto!important;aspect-ratio:16 / 9;display:block!important;margin:0 auto!important}.long-description[_ngcontent-%COMP%]{word-wrap:break-word;overflow-wrap:break-word;overflow-x:auto;text-align:justify}@media screen and (max-width:768px){.img-event-container[_ngcontent-%COMP%]{text-align:center}.long-description[_ngcontent-%COMP%], .event-header[_ngcontent-%COMP%], .detail-item[_ngcontent-%COMP%], .attendees[_ngcontent-%COMP%]{padding:0 10px}.img-sponsor[_ngcontent-%COMP%]{max-width:250px;max-height:auto}}@media screen and (min-width:769px)and (max-width:1024px)and (orientation:portrait){.long-description[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{max-width:100%!important;height:auto!important}.long-description[_ngcontent-%COMP%]{padding:0 20px}}@media screen and (min-width:769px)and (max-width:1024px)and (orientation:landscape){.long-description[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{max-width:100%!important;height:auto!important}.long-description[_ngcontent-%COMP%]{padding:0 30px}}@media screen and (min-width:1025px){.long-description[_ngcontent-%COMP%]   iframe[_ngcontent-%COMP%]{max-width:80%!important;height:auto!important}}']});let i=n;return i})();var ed=i=>({eventName:i}),td=i=>({invoiceNumbers:i}),va=i=>({"zebra-row":i});function id(i,n){if(i&1&&N(0,"div",4),i&2){let t=y(2);g("innerHTML",t.sanitizedConfirmationMessage,rt)}}function nd(i,n){if(i&1&&(l(0,"label"),f(1),d(2,"translate"),s()),i&2){let t=y(3);o(),P(Y(2,1,"events.registration.confirmation.invoice-numbers",wt(4,td,t.registrationSummary==null?null:t.registrationSummary.InvoiceNumbers)))}}function rd(i,n){if(i&1&&(l(0,"label"),f(1),d(2,"date"),s()),i&2){let t=y(4);o(),S(" ",Y(2,1,t.registrationSummary==null?null:t.registrationSummary.EndDate,"MM/dd/yyyy h:mm a"))}}function ad(i,n){if(i&1&&(l(0,"label"),f(1),d(2,"date"),s()),i&2){let t=y(4);o(),S(" ",Y(2,1,t.registrationSummary==null?null:t.registrationSummary.EndDate,"h:mm a"))}}function od(i,n){if(i&1&&(l(0,"div")(1,"label"),f(2),d(3,"date"),s(),f(4," - "),x(5,rd,3,4,"label",1)(6,ad,3,4,"label",1),s()),i&2){let t=y(3);o(2),S(" ",Y(3,3,t.registrationSummary==null?null:t.registrationSummary.StartDate,"MM/dd/yyyy h:mm a")),o(3),g("ngIf",t.multipleDays),o(),g("ngIf",!t.multipleDays)}}function sd(i,n){if(i&1&&(l(0,"label"),f(1),d(2,"date"),s()),i&2){let t=y(4);o(),S(" ",Y(2,1,t.registrationSummary==null?null:t.registrationSummary.EndDate,"MM/dd/yyyy")," - ")}}function ld(i,n){if(i&1&&(l(0,"div")(1,"label"),f(2),d(3,"date"),s(),f(4," - "),x(5,sd,3,4,"label",1),f(6),d(7,"translate"),s()),i&2){let t=y(3);o(2),S(" ",Y(3,3,t.registrationSummary==null?null:t.registrationSummary.StartDate,"MM/dd
2/yyyy")),o(3),g("ngIf",t.multipleDays),o(),S(" ",m(7,6,"events.registration.confirmation.all-day-event")," ")}}function dd(i,n){if(i&1&&(l(0,"div")(1,"a",7),d(2,"date"),d(3,"date"),f(4),d(5,"translate"),s()()),i&2){let t=y(3);o(),g("href",Di("https://www.google.com/calendar/render?action=TEMPLATE&text=",t.registrationSummary==null?null:t.registrationSummary.EventName,"&dates=",Y(2,6,t.registrationSummary==null?null:t.registrationSummary.StartDate,"yyyyMMddTHHmmss"),"Z/",Y(3,9,t.registrationSummary==null?null:t.registrationSummary.EndDate,"yyyyMMddTHHmmss"),"Z&details=",t.registrationSummary==null?null:t.registrationSummary.ShortDescr,"&sf=true&output=xml"),ie),o(3),S(" ",m(5,12,"events.registration.confirmation.add-to-google-calendar")," ")}}function pd(i,n){if(i&1&&(l(0,"div")(1,"a",7),d(2,"date"),d(3,"date"),f(4),d(5,"translate"),s()()),i&2){let t=y(3);o(),g("href",Di("https://www.google.com/calendar/render?action=TEMPLATE&text=",t.registrationSummary==null?null:t.registrationSummary.EventName,"&dates=",Y(2,6,t.registrationSummary==null?null:t.registrationSummary.StartDate,"yyyyMMdd"),"/",Y(3,9,t.registrationSummary==null?null:t.registrationSummary.EndDate,"yyyyMMdd"),"&details=",t.registrationSummary==null?null:t.registrationSummary.ShortDescr,"&sf=true&output=xml"),ie),o(3),S(" ",m(5,12,"events.registration.confirmation.add-to-google-calendar")," ")}}function md(i,n){if(i&1&&(l(0,"span",28),f(1),s()),i&2){let t=y().$implicit;o(),$(" (includes ",t.Attendees.length," attendee",t.Attendees.length>1?"s":"",") ")}}function cd(i,n){if(i&1&&(l(0,"tr",25)(1,"td"),f(2),x(3,md,2,2,"span",26),s(),l(4,"td"),f(5),s(),l(6,"td",27),f(7),s(),l(8,"td",22),f(9),d(10,"currency"),s()()),i&2){let t=n.$implicit,r=n.index;g("ngClass",wt(8,va,r%2===0)),o(2),S(" ",t.Descr," "),o(),g("ngIf",t.Attendees==null?null:t.Attendees.length),o(2),P(t.EventSignUpId),o(2),P(t.Quantity),o(2),P(m(10,6,t.ExtendedPrice))}}function gd(i,n){if(i&1&&(l(0,"tr",25)(1,"td"),f(2),s(),N(3,"td"),l(4,"td",27),f(5),s(),l(6,"td",22),f(7),d(8,"currency"),s()()),i&2){let t=n.$implicit,r=n.index;g("ngClass",wt(6,va,r%2===0)),o(2),S(" ",t.Descr?t.Descr:t.Item," "),o(3),P(t.Quantity),o(2),P(m(8,4,t.Amount))}}function fd(i,n){if(i&1&&(l(0,"tr")(1,"td",21),f(2,"Promo codes applied:"),s(),l(3,"td",22),f(4),d(5,"currency"),s()()),i&2){let t=y(3);o(4),P(m(5,1,t.registrationSummary==null?null:t.registrationSummary.TotalPromoCodes))}}function ud(i,n){if(i&1&&(l(0,"tr",20)(1,"td",21),f(2,"Member benefits applied:"),s(),l(3,"td",22),f(4),d(5,"currency"),s()()),i&2){let t=y(3);o(4),P(m(5,1,t.registrationSummary==null?null:t.registrationSummary.TotalMemberBenefits))}}function hd(i,n){if(i&1&&(l(0,"div",5)(1,"strong"),f(2),d(3,"translate"),s(),l(4,"div"),N(5,"img",6),s(),l(6,"h2"),f(7),d(8,"translate"),s(),x(9,nd,3,6,"label",1)(10,od,7,6,"div",1)(11,ld,8,8,"div",1),l(12,"div")(13,"label"),f(14),s()(),l(15,"div")(16,"a",7),f(17),d(18,"translate"),s()(),x(19,dd,6,14,"div",1)(20,pd,6,14,"div",1),l(2
21,"strong"),f(22),d(23,"translate"),s(),l(24,"table",8)(25,"tr")(26,"td",9)(27,"label"),f(28),d(29,"translate"),d(30,"titlecase"),s()(),l(31,"td")(32,"label"),f(33),d(34,"date"),s()()(),l(35,"tr")(36,"td",9)(37,"label"),f(38),d(39,"translate"),d(40,"titlecase"),s()(),l(41,"td")(42,"div")(43,"div",10),f(44),s(),l(45,"div",10),f(46),s(),l(47,"div",10),f(48),s()()()()(),l(49,"div",11)(50,"table",12)(51,"thead")(52,"tr")(53,"th",13),f(54),d(55,"translate"),d(56,"titlecase"),s(),l(57,"th",14),f(58),d(59,"translate"),d(60,"titlecase"),s(),l(61,"th",15),f(62),d(63,"translate"),d(64,"titlecase"),s(),l(65,"th",16),f(66),d(67,"translate"),d(68,"titlecase"),s()()(),l(69,"tbody"),x(70,cd,11,10,"tr",17),l(71,"tr",18),N(72,"td",19),s(),x(73,gd,9,8,"tr",17),l(74,"tr",18),N(75,"td",19),s()(),l(76,"tfoot")(77,"tr",20)(78,"td",21),f(79,"Subtotal:"),s(),l(80,"td",22),f(81),d(82,"currency"),s()(),x(83,fd,6,3,"tr",1)(84,ud,6,3,"tr",23),l(85,"tr")(86,"td",21),f(87,"Tax amount:"),s(),l(88,"td",22),f(89),d(90,"currency"),s()(),l(91,"tr",18),N(92,"td",19),s(),l(93,"tr",24)(94,"td",21),f(95,"Total:"),s(),l(96,"td",22),f(97),d(98,"currency"),s()(),l(99,"tr")(100,"td",21),f(101,"Amount Paid:"),s(),l(102,"td",22),f(103),d(104,"currency"),s()(),l(105,"tr",20)(106,"td",21),f(107,"Amount Due:"),s(),l(108,"td",22),f(109),d(110,"currency"),s()()()()()()),i&2){let t=y(2);o(2),P(m(3,39,"events.registration.confirmation.registration-summary-header")),o(3),g("src",t.registrationSummary==null?null:t.registrationSummary.ImageUrl,ie),o(2),P(Y(8,41,"events.registration.confirmation.thank-you",wt(85,ed,t.registrationSummary==null?null:t.registrationSummary.EventName))),o(2),g("ngIf",t.registrationSummary==null||t.registrationSummary.InvoiceNumbers==null?null:t.registrationSummary.InvoiceNumbers.length),o(),g("ngIf",!(t.registrationSummary!=null&&t.registrationSummary.IsAllDay)),o(),g("ngIf",t.registrationSummary==null?null:t.registrationSummary.IsAllDay),o(3),S("",t.registrationSummary==null?null:t.registrationSummary.EventLocation," "),o(2),g("href",t.outlookDownloadCalendarUrl,ie),o(),S(" ",m(18,44,"events.registration.confirmation.add-to-outlook-calendar")," "),o(2),g("ngIf",!(t.registrationSummary!=null&&t.registrationSummary.IsAllDay)),o(),g("ngIf",t.registrationSummary==null?null:t.registrationSummary.IsAllDay),o(2),S(" ",m(23,46,"events.registration.confirmation.add-to-google-calendar")),o(6),S(" ",m(30,50,m(29,48,"events.registration.confirmation.sign-up-date"))," "),o(5),P(Y(34,52,t.registrationSummary==null?null:t.registrationSummary.SignUpDate,"MM/d/yyyy h:mm a")),o(5),S(" ",m(40,57,m(39,55,"events.registration.confirmation.sign-up-information"))," "),o(5),g("hidden",!(t.registrationSummary!=null&&t.registrationSummary.Address1)),o(),S(" ",t.registrationSummary==null?null:t.registrationSummary.Address1," "),o(),g("hidden",!(t.registrationSummary!=null&&t.registrationSummary.Address2)),o(),S(" ",t.registrationSummary==null?null:t.registrationSummary.Address2," "),o(),g("hidden",!(t.registrationSummary!=null&&t.registrationSummary.City)||!(t.registrationSummary!=null&&t.registrationSummary.State)||!(t.registrationSummary!=null&&t.registrationSummary.Zip)),o(),vn(" ",t.registrationSummary==null?null:t.registrationSummary.City," ",t.registrationSummary!=null&&t.registrationSummary.City&&(t.registrationSummary!=null&&t.registrationSummary.State||t.registrationSummary!=null&&t.registrationSummary.Zip)?",":""," ",t.registrationSummary==null?null:t.registrationSummary.State," ",(t.registrationSummary!=null&&t.registrationSummary.State||t.registrationSummary!=null&&t.registrationSummary.City)&&(t.registrationSummary!=null&&t.registrationSummary.Zip)?",":""," ",t.registrationSummary==null?null:t.registrationSummary.Zip,"",t.registrationSummary!=null&&t.registrationSummary.Zip&&(t.registrationSummary!=null&&t.registrationSummary.ZipExt)?"-"+(t.registrationSummary==null?null:t.registrationSummary.ZipExt):""," "),o(6),P(m(56,61,m(55,59,"events.registration.confirmation.event-item"))),o(4),P(m(60,65,m(59,63,"events.registration.confirmation.confirmation-number"))),o(4),P(m(64,69,m(63,67,"events.registration.confirmation.quantity"))),o(4),P(m(68,73,m(67,71,"events.registration.confirmation.price"))),o(4),g("ngForOf",t.registrationSummary==null?null:t.registrationSummary.RegistrationItems),o(3),g("ngForOf",t.registrationSummary==null?null:t.registrationSummary.AdditionalLineItems),o(8),P(m(82,75,t.registrationSummary==null?null:t.registrationSummary.SubTotal)),o(2),g("ngIf",(t.registrationSummary==null?null:t.registrationSummary.TotalPromoCodes)!=0),o(),g("ngIf",(t.registrationSummary==null?null:t.registrationSummary.TotalMemberBenefits)!=0),o(5),P(m(90,77,t.registrationSummary==null?null:t.registrationSummary.Taxes)),o(8),P(m(98,79,t.registrationSummary==null?null:t.registrationSummary.Total)),o(6),P(m(104,81,t.registrationSummary==null?null:t.registrationSummary.AmountPaid)),o(6),P(m(110,83,t.registrationSummary==null?null:t.registrationSummary.AmountDue))}}function vd(i,n){if(i&1&&(l(0,"div"),x(1,id,1,1,"div",2)(2,hd,111,87,"div",3),s()),i&2){let t=y();o(),g("ngIf",t.sanitizedConfirmationMessage),o(),g("ngIf",!(t.registrationSummary!=null&&t.registrationSummary.ConfirmationMessage))}}var ya=(()=>{let n=class n{constructor(r,a,e,p,u){this._registrationService=r,this._activatedRoute=a,this._eventApiService=e,this._tokenStorageService=p,this._sanitizer=u,this.loading=!0,this.outlookDownloadCalendarUrl="",this.sanitizedConfirmationMessage=null}ngOnInit(){this._activatedRoute.paramMap?.subscribe(r=>{let a=r.get("id");this._registrationService.getRegistrationSummaryByGuid(a).then(e=>{this.registrationSummary=e,this.multipleDays=this.registrationSummary.StartDate.toDateString()!=this.registrationSummary.EndDate.toDateString();let p=this._eventApiService.getBaseUrl(),u=this._tokenStorageService.getTenantId();this.outlookDownloadCalendarUrl=`${p}/event/v2/RegistrationConfirmation/download-ics-calendar?x-tenant=${u}&eventId=${this.registrationSummary.EventId}`,this.registrationSummary?.ConfirmationMessage&&(this.sanitizedConfirmationMessage=this._sanitizer.bypassSecurityTrustHtml(this.registrationSummary.ConfirmationMessage)),this.loading=!1})})}};n.\u0275fac=function(a){return new(a||n)(M(se),M(Be),M(Wn),M(lt),M(En))},n.\u0275cmp=U({type:n,selectors:[["wl-registration-confirmation"]],standalone:!1,decls:2,vars:2,consts:[[3,"wl-busy-overlay"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],["style","width: 100%",4,"ngIf"],[3,"innerHTML"],[2,"width","100%"],[3,"src"],[3,"href"],["cellspacing","10",2,"margin","10px, 10px, 10px, 10px"],["valign","top"],[3,"hidden"],[1,"registration-summary-container"],[1,"custom-table"],[1,"event-item-col"],[1,"center-align"],[1,"quantity-col","center-align"],[1,"price-col","center-align"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"empty-row"],["colspan","4"],[1,"zebra-row"],["colspan","3"],[1,"t-ar"],["class","zebra-row",4,"ngIf"],[1,"zebra-row","f-wb"],[3,"ngClass"],["class","lighter-text",4,"ngIf"],[1,"quantity-col"],[1,"lighter-text"]],template:function(a,e){a&1&&(N(0,"div",0),x(1,vd,3,2,"div",1)),a&2&&(g("wl-busy-overlay",e.loading),o(),g("ngIf",!e.loading))},dependencies:[_t,Cn,J,j,Nn,H,De,Ae,q],styles:[".flex[_ngcontent-%COMP%]{display:flex}.col[_ngcontent-%COMP%]{flex:1}.registration-summary-container[_ngcontent-%COMP%]{width:100%;max-width:90%;margin:0 auto;font-size:14px;color:#333}.custom-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;margin-top:20px;text-align:left;background-color:#fff}.custom-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{background-color:#d3d3d3;padding:10px;font-weight:700;text-transform:uppercase;font-size:12px;border:1px solid white}.custom-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.center-align[_ngcontent-%COMP%]{text-align:center}.event-item-col[_ngcontent-%COMP%]{width:55%}.quantity-col[_ngcontent-%COMP%]{width:10%;text-align:center}.price-col[_ngcontent-%COMP%]{width:15%}.custom-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:10px;border:1px solid white}.custom-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td.quantity-col[_ngcontent-%COMP%]{text-align:center}.custom-table[_ngcontent-%COMP%]   .zebra-row[_ngcontent-%COMP%]{background-color:#f2f2f2}.lighter-text[_ngcontent-%COMP%]{color:#999;font-size:12px}.custom-table[_ngcontent-%COMP%]   .empty-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{height:30px;border:none;background-color:transparent}.custom-table[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:10px;text-align:left;border:1px solid white}.t-ar[_ngcontent-%COMP%]{text-align:right}.custom-table[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]   .bold[_ngcontent-%COMP%]{font-weight:700}@media screen and (max-width:768px){.custom-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-size:10px;padding:8px}.custom-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-size:12px;padding:8px}.event-item-col[_ngcontent-%COMP%]{width:50%}.quantity-col[_ngcontent-%COMP%]{width:15%}.price-col[_ngcontent-%COMP%]{width:20%}}@media screen and (max-width:480px){.custom-table[_ngcontent-%COMP%]{font-size:12px}.event-item-col[_ngcontent-%COMP%]{width:100%}.quantity-col[_ngcontent-%COMP%], .price-col[_ngcontent-%COMP%]{width:auto}.custom-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:block;width:100%;text-align:left}.custom-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th.center-align[_ngcontent-%COMP%], .custom-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   td.quantity-col[_ngcontent-%COMP%]{text-align:left}}"]});let i=n;return i})();var Ji=class extends Oe{constructor(){super(...arguments),this.headerElRef
vendor: 4,188 bytes, line 2
2=He()}renderSimpleLayout(n,t){let{props:r,context:a}=this,e=[],p=Ui(a.options);return n&&e.push({type:"header",key:"header",isSticky:p,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}}),e.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),W(Pt,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},W(Er,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:e}))}renderHScrollLayout(n,t,r,a){let e=this.context.pluginHooks.scrollGridImpl;if(!e)throw new Error("No ScrollGrid implementation");let{props:p,context:u}=this,c=!p.forPrint&&Ui(u.options),h=!p.forPrint&&wr(u.options),T=[];return n&&T.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:n}]}),T.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),h&&T.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Ir}]}),W(Pt,{elClasses:["fc-daygrid"],viewSpec:u.viewSpec},W(e,{liquid:!p.isHeightAuto&&!p.forPrint,forPrint:p.forPrint,collapsibleWidth:p.forPrint,colGroups:[{cols:[{span:r,minWidth:a}]}],sections:T}))}};function Ii(i,n){let t=[];for(let r=0;r<n;r+=1)t[r]=[];for(let r of i)t[r.row].push(r);return t}function Si(i,n){let t=[];for(let r=0;r<n;r+=1)t[r]=[];for(let r of i)t[r.firstCol].push(r);return t}function _a(i,n){let t=[];if(i){for(let r=0;r<n;r+=1)t[r]={affectedInstances:i.affectedInstances,isEvent:i.isEvent,segs:[]};for(let r of i.segs)t[r.row].segs.push(r)}else for(let r=0;r<n;r+=1)t[r]=null;return t}var Ca=Xe({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Sa(i){let{display:n}=i.eventRange.ui;return n==="list-item"||n==="auto"&&!i.eventRange.def.allDay&&i.firstCol===i.lastCol&&i.isStart&&i.isEnd}var wi=class extends $e{render(){let{props:n}=this;return W(br,Object.assign({},n,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ca,defaultDisplayEventEnd:n.defaultDisplayEventEnd,disableResizing:!n.seg.eventRange.def.allDay}))}},Ei=class extends $e{render(){let{props:n,context:t}=this,{options:r}=t,{seg:a}=n,e=r.eventTimeFormat||Ca,p=ht(a,e,t,!0,n.defaultDisplayEventEnd);return W(ai,Object.assign({},n,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:ii(n.seg,t),defaultGenerator:yd,timeText:p,isResizing:!1,isDateSelecting:!1}))}};function yd(i){return W(Ie,null,W("div",{className:"fc-daygrid-event-dot",style:{borderColor:i.borderColor||i.backgroundColor}}),i.timeText&&W("div",{className:"fc-event-time"},i.timeText),W("div",{className:"fc-event-title"},i.event.title||W(Ie,null,"\xA0")))}var Xi=class extends $e{constructor(){super(...arguments),this.compileSegs=xe(_d)}render(){let{props:n}=this,{allSegs:t,invisibleSegs:r}=this.compileSegs(n.singlePlacements);return W(Ar,{elClasses:["fc-daygrid-more-link"],dateProfile:n.dateProfile,todayRange:n.todayRange,allDayDate:n.allDayDate,moreCnt:n.moreCnt,allSegs:t,hiddenSegs:r,alignmentElRef:n.alignmentElRef,alignGridTop:n.alignGridTop,extraDateSpan:n.extraDateSpan,popoverContent:()=>{let a=(n.eventDrag?n.eventDrag.affectedInstances:null)||(n.eventResize?n.eventResize.affectedInstances:null)||{};return W(Ie,null,t.map(e=>{let p=e.eventRange.instance.instanceId;return W("div",{className:"fc-daygrid-event-harness",key:p,style:{visibility:a[p]?"hidden":""}},Sa(e)?W(Ei,Object.assign({seg:e,isDragging:!1,isSelected:p===n.eventSelection,defaultDisplayEventEnd:!1},Ge(e,n.todayRange))):W(wi,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:p===n.eventSelection,defaultDisplayEventEnd:!1},Ge(e,n.todayRange))))}))}})}};function _d(i){let n=[],t=[];for(let r of i)n.push(r.seg),r.isVisible||t.push(r.seg);return{allSegs:n,invisibleSegs:t}}var Cd=Xe({week:"narrow"}),$i=class extends Oe{constructor(){super(...arguments),this.rootElRef=He(),this.state={dayNumberId:Ye()},this.handleRootEl=n=>{ki(this.rootElRef,n),ki(this.props.elRef,n)}}render(){let{context:n,props:t,state:r,rootElRef:a}=this,{options:e,dateEnv:p}=n,{date:u,dateProfile:c}=t,h=t.showDayNumber&&Id(u,c.currentRange,p);return W(xr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
2d-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Sd,date:u,dateProfile:c,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:h,extraRenderProps:t.extraRenderProps},(T,b)=>W("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&W(Tr,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:vt(n,u,"week"),date:u,defaultFormat:Cd}),!b.isDisabled&&(t.showDayNumber||Rr(e)||t.forceDayTop)?W("div",{className:"fc-daygrid-day-top"},W(T,{elTag:"a",elClasses:["fc-daygrid-day-number",h&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},vt(n,u)),{id:r.dayNumberId})})):t.showDayNumber?W("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},W("a",{className:"fc-daygrid-day-number"},"\xA0")):void 0,W("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,W("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},W(Xi,{allDayDate:u,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:a,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),W("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}};function Sd(i){return i.dayNumberText||W(Ie,null,"\xA0")}function Id(i,n,t){let{start:r,end:a}=n,e=ar(a,-1),p=t.getYear(r),u=t.getMonth(r),c=t.getYear(e),h=t.getMonth(e);return!(p===c&&u===h)&&(i.valueOf()===r.valueOf()||t.getDay(i)===1&&i.valueOf()<a.valueOf())}function Ia(i){return i.eventRange.instance.instanceId+":"+i.firstCol}function wa(i){return Ia(i)+":"+i.lastCol}function wd(i,n,t,r,a,e,p){let u=new en(A=>{let V=i[A.index].eventRange.instance.instanceId+":"+A.span.start+":"+(A.span.end-1);return a[V]||1});u.allowReslicing=!0,u.strictOrder=r,n===!0||t===!0?(u.maxCoord=e,u.hiddenConsumes=!0):typeof n=="number"?u.maxStackCnt=n:typeof t=="number"&&(u.maxStackCnt=t,u.hiddenConsumes=!0);let c=[],h=[];for(let A=0;A<i.length;A+=1){let V=i[A],ee=wa(V);a[ee]!=null?c.push({index:A,span:{start:V.firstCol,end:V.lastCol+1}}):h.push(V)}let T=u.addSegs(c),b=u.toRects(),{singleColPlacements:C,multiColPlacements:v,leftoverMargins:_}=Ed(b,i,p),E=[],R=[];for(let A of h){v[A.firstCol].push({seg:A,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let V=A.firstCol;V<=A.lastCol;V+=1)C[V].push({seg:It(A,V,V+1,p),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<p.length;A+=1)E.push(0);for(let A of T){let V=i[A.index],ee=A.span;v[ee.start].push({seg:It(V,ee.start,ee.end,p),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let L=ee.start;L<ee.end;L+=1)E[L]+=1,C[L].push({seg:It(V,L,L+1,p),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<p.length;A+=1)R.push(_[A]);return{singleColPlacements:C,multiColPlacements:v,moreCnts:E,moreMarginTops:R}}function Ed(i,n,t){let r=bd(i,t.length),a=[],e=[],p=[];for(let u=0;u<t.length;u+=1){let c=r[u],h=[],T=0,b=0;for(let v of c){let _=n[v.index];h.push({seg:It(_,u,u+1,t),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:v.levelCoord-T}),T=v.levelCoord+v.thickness}let C=[];T=0,b=0;for(let v of c){let _=n[v.index],E=v.span.end-v.span.start>1,R=v.span.start===u;b+=v.levelCoord-T,T=v.levelCoord+v.thickness,E?(b+=v.thickness,R&&C.push({seg:It(_,v.span.start,v.span.end,t),isVisible:!0,isAbsolute:!0,absoluteTop:v.levelCoord,marginTop:0})):R&&(C.push({seg:It(_,v.span.start,v.span.end,t),isVisible:!0,isAbsolute:!1,absoluteTop:v.levelCoord,marginTop:b}),b=0)}a.push(h),e.push(C),p.push(b)}return{singleColPlacements:a,multiColPlacements:e,leftoverMargins:p}}function bd(i,n){let t=[];for(let r=0;r<n;r+=1)t.push([]);for(let r of i)for(let a=r.span.start;a<r.span.end;a+=1)t[a].push(r);return t}function It(i,n,t,r){if(i.firstCol===n&&i.lastCol===t-1)return i;let a=i.eventRange,e=a.range,p=ei(e,{start:r[n].date,end:Je(r[t-1].date,1)});return Object.assign(Object.assign({},i),{firstCol:n,lastCol:t-1,eventRange:{def:a.def,ui:Object.assign(Object.assign({},a.ui),{durationEditable:!1}),instance:a.instance,range:p},isStart:i.isStart&&p.start.valueOf()===e.start.valueOf(),isEnd:i.isEnd&&p.end.valueOf()===e.end.valueOf()})}var en=class extends ur{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(n){let t=super.addSegs(n),{entriesByLevel:r}=this,a=e=>!this.forceHidden[ri(e)];for(let e=0;e<r.length;e+=1)r[e]=r[e].filter(a);return t}handleInvalidInsertion(n,t,r){let{entriesByLevel:a,forceHidden:e}=this,{touchingEntry:p,touchingLevel:u,touchingLateral:c}=n;if(this.hiddenConsumes&&p){let h=ri(p);if(!e[h])if(this.allowReslicing){let T=Object.assign(Object.assign({},p),{span:hr(p.span,t.span)}),b=ri(T);e[b]=!0,a[u][c]=T,r.push(T),this.splitEntry(p,t,r)}else e[h]=!0,r.push(p)}super.handleInvalidInsertion(n,t,r)}},bi=class extends Oe{constructor(){super(...arguments),this.cellElRefs=new yt,this.frameElRefs=new yt,this.fgElRefs=new yt,this.segHarnessRefs=new yt,this.rootElRef=He(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=n=>{n&&this.updateSizing(!0)}}render(){let{props:n,state:t,context:r}=this,{options:a}=r,e=n.cells.length,p=Si(n.businessHourSegs,e),u=Si(n.bgEventSegs,e),c=Si(this.getHighlightSegs(),e),h=Si(this.getMirrorSegs(),e),{singleColPlacements:T,multiColPlacements:b,moreCnts:C,moreMarginTops:v}=wd(ti(n.fgEventSegs,a.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,a.eventOrderStrict,t.segHeights,t.maxContentHeight,n.cells),_=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return W("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((E,R)=>{let A=this.renderFgSegs(R,n.forPrint?T[R]:b[R],n.todayRange,_),V=this.renderFgSegs(R,xd(h[R],b),n.todayRange,{},!!n.eventDrag,!!n.eventResize,!1);return W($i,{key:E.key,elRef:this.cellElRefs.createRef(E.key),innerElRef:this.frameElRefs.createRef(E.key),dateProfile:n.dateProfile,date:E.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&R===0,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraRenderProps:E.extraRenderProps,extraDataAttrs:E.extraDataAttrs,extraClassNames:E.extraClassNames,extraDateSpan:E.extraDateSpan,moreCnt:C[R],moreMarginTop:v[R],singlePlacements:T[R],fgContentElRef:this.fgElRefs.createRef(E.key),fgContent:W(Ie,null,W(Ie,null,A),W(Ie,null,V)),bgContent:W(Ie,null,this.renderFillSegs(c[R],"highlight"),this.renderFillSegs(p[R],"non-business"),this.renderFillSegs(u[R],"bg-event")),minHeight:n.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(n,t){let r=this.props;this.updateSizing(!Li(n,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:n}=this;return n.eventDrag&&n.eventDrag.segs.length?n.eventDrag.segs:n.eventResize&&n.eventResize.segs.length?n.eventResize.segs:n.dateSelectionSegs}getMirrorSegs(){let{props:n}=this;return n.eventResize&&n.eventResize.segs.length?n.eventResize.segs:[]}renderFgSegs(n,t,r,a,e,p,u){let{context:c}=this,{eventSelection:h}=this.props,{framePositions:T}=this.state,b=this.props.cells.length===1,C=e||p||u,v=[];if(T)for(let _ of t){let{seg:E}=_,{instanceId:R}=E.eventRange.instance,A=_.isVisible&&!a[R],V=_.isAbsolute,ee="",L="";
vendor: 9,050 bytes, line 2
2V&&(c.isRtl?(L=0,ee=T.lefts[E.lastCol]-T.lefts[E.firstCol]):(ee=0,L=T.rights[E.firstCol]-T.rights[E.lastCol])),v.push(W("div",{className:"fc-daygrid-event-harness"+(V?" fc-daygrid-event-harness-abs":""),key:Ia(E),ref:C?null:this.segHarnessRefs.createRef(wa(E)),style:{visibility:A?"":"hidden",marginTop:V?"":_.marginTop,top:V?_.absoluteTop:"",left:ee,right:L}},Sa(E)?W(Ei,Object.assign({seg:E,isDragging:e,isSelected:R===h,defaultDisplayEventEnd:b},Ge(E,r))):W(wi,Object.assign({seg:E,isDragging:e,isResizing:p,isDateSelecting:u,isSelected:R===h,defaultDisplayEventEnd:b},Ge(E,r)))))}return v}renderFillSegs(n,t){let{isRtl:r}=this.context,{todayRange:a}=this.props,{framePositions:e}=this.state,p=[];if(e)for(let u of n){let c=r?{right:0,left:e.lefts[u.lastCol]-e.lefts[u.firstCol]}:{left:0,right:e.rights[u.firstCol]-e.rights[u.lastCol]};p.push(W("div",{key:cr(u.eventRange),className:"fc-daygrid-bg-harness",style:c},t==="bg-event"?W(Pr,Object.assign({seg:u},Ge(u,a))):Mr(t)))}return W(Ie,{},...p)}updateSizing(n){let{props:t,state:r,frameElRefs:a}=this;if(!t.forPrint&&t.clientWidth!==null){if(n){let c=t.cells.map(h=>a.currentMap[h.key]);if(c.length){let h=this.rootElRef.current,T=new Mt(h,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(T))&&this.setState({framePositions:new Mt(h,c,!0,!1)})}}let e=this.state.segHeights,p=this.querySegHeights(),u=t.dayMaxEvents===!0||t.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},e),p),maxContentHeight:u?this.computeMaxContentHeight():null})}}querySegHeights(){let n=this.segHarnessRefs.currentMap,t={};for(let r in n){let a=Math.round(n[r].getBoundingClientRect().height);t[r]=Math.max(t[r]||0,a)}return t}computeMaxContentHeight(){let n=this.props.cells[0].key,t=this.cellElRefs.currentMap[n],r=this.fgElRefs.currentMap[n];return t.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let n=this.cellElRefs.currentMap;return this.props.cells.map(t=>n[t.key])}};bi.addStateEquality({segHeights:Li});function xd(i,n){if(!i.length)return[];let t=Rd(n);return i.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:t[r.eventRange.instance.instanceId],marginTop:0}))}function Rd(i){let n={};for(let t of i)for(let r of t)n[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return n}var tn=class extends Oe{constructor(){super(...arguments),this.splitBusinessHourSegs=xe(Ii),this.splitBgEventSegs=xe(Pd),this.splitFgEventSegs=xe(Ii),this.splitDateSelectionSegs=xe(Ii),this.splitEventDrag=xe(_a),this.splitEventResize=xe(_a),this.rowRefs=new yt}render(){let{props:n,context:t}=this,r=n.cells.length,a=this.splitBusinessHourSegs(n.businessHourSegs,r),e=this.splitBgEventSegs(n.bgEventSegs,r),p=this.splitFgEventSegs(n.fgEventSegs,r),u=this.splitDateSelectionSegs(n.dateSelectionSegs,r),c=this.splitEventDrag(n.eventDrag,r),h=this.splitEventResize(n.eventResize,r),T=r>=7&&n.clientWidth?n.clientWidth/t.options.aspectRatio/6:null;return W(ni,{unit:"day"},(b,C)=>W(Ie,null,n.cells.map((v,_)=>W(bi,{ref:this.rowRefs.createRef(_),key:v.length?v[0].date.toISOString():_,showDayNumbers:r>1,showWeekNumbers:n.showWeekNumbers,todayRange:C,dateProfile:n.dateProfile,cells:v,renderIntro:n.renderRowIntro,businessHourSegs:a[_],eventSelection:n.eventSelection,bgEventSegs:e[_],fgEventSegs:p[_],dateSelectionSegs:u[_],eventDrag:c[_],eventResize:h[_],dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,clientWidth:n.clientWidth,clientHeight:n.clientHeight,cellMinHeight:T,forPrint:n.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let n=this.rowRefs.currentMap[0].getCellEls()[0],t=n?n.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new Mt(this.rootEl,this.rowRefs.collect().map(n=>n.getCellEls()[0]),!1,!0),this.colPositions=new Mt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(n,t){let{colPositions:r,rowPositions:a}=this,e=r.leftToIndex(n),p=a.topToIndex(t);if(p!=null&&e!=null){let u=this.props.cells[p][e];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(p,e),allDay:!0},u.extraDateSpan),dayEl:this.getCellEl(p,e),rect:{left:r.lefts[e],right:r.rights[e],top:a.tops[p],bottom:a.bottoms[p]},layer:0}}return null}getCellEl(n,t){return this.rowRefs.currentMap[n].getCellEls()[t]}getCellRange(n,t){let r=this.props.cells[n][t].date,a=Je(r,1);return{start:r,end:a}}};function Pd(i,n){return Ii(i.filter(Md),n)}function Md(i){return i.eventRange.def.allDay}var nn=class extends Oe{constructor(){super(...arguments),this.elRef=He(),this.needsScrollReset=!1}render(){let{props:n}=this,{dayMaxEventRows:t,dayMaxEvents:r,expandRows:a}=n,e=r===!0||t===!0;e&&!a&&(e=!1,t=null,r=null);let p=["fc-daygrid-body",e?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",a?"":"fc-daygrid-body-natural"];return W("div",{ref:this.elRef,className:p.join(" "),style:{width:n.clientWidth,minWidth:n.tableMinWidth}},W("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:n.clientWidth,minWidth:n.tableMinWidth,height:a?n.clientHeight:""}},n.colGroupNode,W("tbody",{role:"presentation"},W(tn,{dateProfile:n.dateProfile,cells:n.cells,renderRowIntro:n.renderRowIntro,showWeekNumbers:n.showWeekNumbers,clientWidth:n.clientWidth,clientHeight:n.clientHeight,businessHourSegs:n.businessHourSegs,bgEventSegs:n.bgEventSegs,fgEventSegs:n.fgEventSegs,dateSelectionSegs:n.dateSelectionSegs,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,dayMaxEvents:r,dayMaxEventRows:t,forPrint:n.forPrint,isHitComboAllowed:n.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(n){n.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let n=Td(this.elRef.current,this.props.dateProfile);if(n){let t=n.closest(".fc-daygrid-body"),r=t.closest(".fc-scroller"),a=n.getBoundingClientRect().top-t.getBoundingClientRect().top;r.scrollTop=a?a+1:0}this.needsScrollReset=!1}}};function Td(i,n){let t;return n.currentRangeUnit.match(/year|month/)&&(t=i.querySelector(`[data-date="${lr(n.currentDate)}-01"]`)),t||(t=i.querySelector(`[data-date="${xt(n.currentDate)}"]`)),t}var rn=class extends Cr{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(n,t){return t.sliceRange(n)}},an=class extends Oe{constructor(){super(...arguments),this.slicer=new rn,this.tableRef=He()}render(){let{props:n,context:t}=this;return W(nn,Object.assign({ref:this.tableRef},this.slicer.sliceProps(n,n.dateProfile,n.nextDayThreshold,t,n.dayTableModel),{dateProfile:n.dateProfile,cells:n.dayTableModel.cells,colGroupNode:n.colGroupNode,tableMinWidth:n.tableMinWidth,renderRowIntro:n.renderRowIntro,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.showWeekNumbers,expandRows:n.expandRows,headerAlignElRef:n.headerAlignElRef,clientWidth:n.clientWidth,clientHeight:n.clientHeight,forPrint:n.forPrint}))}},xi=class extends Ji{constructor(){super(...arguments),this.buildDayTableModel=xe(Ad),this.headerRef=He(),this.tableRef=He()}render(){let{options:n,dateProfileGenerator:t}=this.context,{props:r}=this,a=this.buildDayTableModel(r.dateProfile,t),e=n.dayHeaders&&W(vr,{ref:this.headerRef,dateProfile:r.dateProfile,dates:a.headerDates,datesRepDistinctDays:a.rowCnt===1}),p=u=>W(an,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:a,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:u.tableColGroupNode,tableMinWidth:u.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:u.clientWidth,clientHeight:u.clientHeight,forPrint:r.forPrint});return n.dayMinWidth?this.renderHScrollLayout(e,p,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(e,p)}};function Ad(i,n){let t=new yr(i.renderRange,n);return new _r(t,/year|month|week/.test(i.currentRangeUnit))}var Ri=class extends pr{buildRenderRange(n,t,r){let a=super.buildRenderRange(n,t,r),{props:e}=this;return Dd({currentRange:a,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:e.fixedWeekCount,dateEnv:e.dateEnv})}};function Dd(i){let{dateEnv:n,currentRange:t}=i,{start:r,end:a}=t,e;if(i.snapToWeek&&(r=n.startOfWeek(r),e=n.startOfWeek(a),e.valueOf()!==a.valueOf()&&(a=Vi(e,1))),i.fixedWeekCount){let p=n.startOfWeek(n.startOfMonth(Je(t.end,-1))),u=Math.ceil(or(p,a));a=Vi(a,6-u)}return{start:r,end:a}}
2var Fd
vendor: 3,524 bytes, line 2
2=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';
vendor: 8,454 bytes, line 2
2Xt(Fd);var Ea=oi({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:xi,dateProfileGeneratorClass:Ri},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});var on=class extends $e{constructor(){super(...arguments),this.state={textId:Ye()}}render(){let{theme:n,dateEnv:t,options:r,viewApi:a}=this.context,{cellId:e,dayDate:p,todayRange:u}=this.props,{textId:c}=this.state,h=gr(p,u),T=r.listDayFormat?t.format(p,r.listDayFormat):"",b=r.listDaySideFormat?t.format(p,r.listDaySideFormat):"",C=Object.assign({date:t.toDate(p),view:a,textId:c,text:T,sideText:b,navLinkAttrs:vt(this.context,p),sideNavLinkAttrs:vt(this.context,p,"day",!1)},h);return W($t,{elTag:"tr",elClasses:["fc-list-day",...fr(h,n)],elAttrs:{"data-date":xt(p)},renderProps:C,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:Bd,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},v=>W("th",{scope:"colgroup",colSpan:3,id:e,"aria-labelledby":c},W(v,{elTag:"div",elClasses:["fc-list-day-cushion",n.getClass("tableCellShaded")]})))}};function Bd(i){return W(Ie,null,i.text&&W("a",Object.assign({id:i.textId,className:"fc-list-day-text"},i.navLinkAttrs),i.text),i.sideText&&W("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},i.sideNavLinkAttrs),i.sideText))}var Wd=Xe({hour:"numeric",minute:"2-digit",meridiem:"short"}),sn=class extends $e{render(){let{props:n,context:t}=this,{options:r}=t,{seg:a,timeHeaderId:e,eventHeaderId:p,dateHeaderId:u}=n,c=r.eventTimeFormat||Wd;return W(ai,Object.assign({},n,{elTag:"tr",elClasses:["fc-list-event",a.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>Od(a,t),seg:a,timeText:"",disableDragging:!0,disableResizing:!0}),(h,T)=>W(Ie,null,Nd(a,c,t,e,u),W("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},W("span",{className:"fc-list-event-dot",style:{borderColor:T.borderColor||T.backgroundColor}})),W(h,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${p} ${u}`}})))}};function Od(i,n){let t=ii(i,n);return W("a",Object.assign({},t),i.eventRange.def.title)}function Nd(i,n,t,r,a){let{options:e}=t;if(e.displayEventTime!==!1){let p=i.eventRange.def,u=i.eventRange.instance,c=!1,h;if(p.allDay?c=!0:dr(i.eventRange.range)?i.isStart?h=ht(i,n,t,null,null,u.range.start,i.end):i.isEnd?h=ht(i,n,t,null,null,i.start,u.range.end):c=!0:h=ht(i,n,t),c){let T={text:t.options.allDayText,view:t.viewApi};return W($t,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${a}`},renderProps:T,generatorName:"allDayContent",customGenerator:e.allDayContent,defaultGenerator:zd,classNameGenerator:e.allDayClassNames,didMount:e.allDayDidMount,willUnmount:e.allDayWillUnmount})}return W("td",{className:"fc-list-event-time"},h)}return null}function zd(i){return i.text}var Pi=class extends Oe{constructor(){super(...arguments),this.computeDateVars=xe(Ld),this.eventStoreToSegs=xe(this._eventStoreToSegs),this.state={timeHeaderId:Ye(),eventHeaderId:Ye(),dateHeaderIdRoot:Ye()},this.setRootEl=n=>{n?this.context.registerInteractiveComponent(this,{el:n}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:n,context:t}=this,{dayDates:r,dayRanges:a}=this.computeDateVars(n.dateProfile),e=this.eventStoreToSegs(n.eventStore,n.eventUiBases,a);return W(Pt,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),t.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:t.viewSpec},W(Sr,{liquid:!n.isHeightAuto,overflowX:n.isHeightAuto?"visible":"hidden",overflowY:n.isHeightAuto?"visible":"auto"},e.length>0?this.renderSegList(e,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:n,viewApi:t}=this.context,r={text:n.noEventsText,view:t};return W($t,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:n.noEventsContent,defaultGenerator:Vd,classNameGenerator:n.noEventsClassNames,didMount:n.noEventsDidMount,willUnmount:n.noEventsWillUnmount},a=>W(a,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(n,t){let{theme:r,options:a}=this.context,{timeHeaderId:e,eventHeaderId:p,dateHeaderIdRoot:u}=this.state,c=kd(n);return W(ni,{unit:"day"},(h,T)=>{let b=[];for(let C=0;C<c.length;C+=1){let v=c[C];if(v){let _=xt(t[C]),E=u+"-"+_;b.push(W(on,{key:_,cellId:E,dayDate:t[C],todayRange:T})),v=ti(v,a.eventOrder);for(let R of v)b.push(W(sn,Object.assign({key:_+":"+R.eventRange.instance.instanceId,seg:R,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:e,eventHeaderId:p,dateHeaderId:E},Ge(R,T,h))))}}return W("table",{className:"fc-list-table "+r.getClass("table")},W("thead",null,W("tr",null,W("th",{scope:"col",id:e},a.timeHint),W("th",{scope:"col","aria-hidden":!0}),W("th",{scope:"col",id:p},a.eventHint))),W("tbody",null,b))})}_eventStoreToSegs(n,t,r){return this.eventRangesToSegs(mr(n,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(n,t){let r=[];for(let a of n)r.push(...this.eventRangeToSegs(a,t));return r}eventRangeToSegs(n,t){let{dateEnv:r}=this.context,{nextDayThreshold:a}=this.context.options,e=n.range,p=n.def.allDay,u,c,h,T=[];for(u=0;u<t.length;u+=1)if(c=ei(e,t[u]),c&&(h={component:this,eventRange:n,start:c.start,end:c.end,isStart:n.isStart&&c.start.valueOf()===e.start.valueOf(),isEnd:n.isEnd&&c.end.valueOf()===e.end.valueOf(),dayIndex:u},T.push(h),!h.isEnd&&!p&&u+1<t.length&&e.end<r.add(t[u+1].start,a))){h.end=e.end,h.isEnd=!0;break}return T}};function Vd(i){return i.text}function Ld(i){let n=sr(i.renderRange.start),t=i.renderRange.end,r=[],a=[];for(;n<t;)r.push(n),a.push({start:n,end:Je(n,1)}),n=Je(n,1);return{dayDates:r,dayRanges:a}}function kd(i){let n=[],t,r;for(t=0;t<i.length;t+=1)r=i[t],(n[r.dayIndex]||(n[r.dayIndex]=[])).push(r);return n}var Ud=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';Xt(Ud);var qd={listDayFormat:ba,listDaySideFormat:ba,noEventsClassNames:Rt,noEventsContent:Rt,noEventsDidMount:Rt,noEventsWillUnmount:Rt};function ba(i){return i===!1?null:Xe(i)}var xa=oi({name:"@fullcalendar/list",optionRefiners:qd,views:{list:{component:Pi,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});
2function jd(i,n){if(i&1&&(l(0,"span"),f(1),d(2,"date"),d(3,"date"),N(4,"br"),s()),i&2){let t=y(3);o(),$(" ",Y(2,2,t.event.StartDateTimeUtc,"h:mm a")," - ",Y(3,5,t.event.EndDateTimeUtc,"h:mm a"))}}function Qd(i,n){i&1&&(f(0),d(1,"translate")),i&2&&S(" ",m(1,1,"events.calendar.dialog-detail.all-day-event")," ")}function Hd(i,n){if(i&1&&(l(0,"div"),f(1),N(2,"br"),x(3,jd,5,8,"span",18)(4,Qd,2,3,"ng-template",null,0,Te),s()),i&2){let t=Ce(5),r=y(2);o(),S(" ",r.startEndDate," "),o(2),g("ngIf",!r.event.IsAllDay)("ngIfElse",t)}}function Gd(i,n){if(i&1&&(l(0,"div",20),f(1),d(2,"date"),N(3,"br"),f(4),d(5,"date"),d(6,"date"),N(7,"br"),s()),i&2){let t=n.$implicit;o(),S(" ",Y(2,3,t.EventDate,"M/d/yyyy")," "),o(3),$(" ",Y(5,6,t.StartDateTimeUtc,"h:mm a")," - ",Y(6,9,t.EndDateTimeUtc,"h:mm a"))}}function Zd(i,n){if(i&1&&(l(0,"div"),x(1,Gd,8,12,"div",19),s()),i&2){let t=y(2);o(),g("ngForOf",t.event.EventDateTimes)}}function Kd(i,n){if(i&1){let t=z();l(0,"button",21),O("click",function(){I(t);let a=y(2);return w(a.openEventPage(a.event.EventDetailsUrl))}),f(1),d(2,"translate"),s()}i&2&&(o(),S(" ",m(2,1,"events.calendar.dialog-detail.button-view-event-details")," "))}function Yd(i,n){if(i&1&&(l(0,"a",22),f(1),d(2,"translate"),s()),i&2){let t=y(2);g("href",ae(t.event.EventDetailsUrl),ie),o(),S(" ",m(2,3,"events.calendar.dialog-detail.button-view-event-details")," ")}}function Jd(i,n){if(i&1&&N(0,"img",32),i&2){let t=y(2).$implicit;g("src",t.SponsorLogoUrl,ie)("pTooltip",t.SponsorName)}}function Xd(i,n){if(i&1&&(l(0,"a",30),x(1,Jd,1,2,"img",31),s()),i&2){let t=y().$implicit,r=y(3);g("href",t.SponsorWebsite,ie),o(),g("ngIf",t.SponsorLogoUrl)("ngIfElse",r.noImage)}}function $d(i,n){if(i&1&&N(0,"img",32),i&2){let t=y(2).$implicit;g("src",t.SponsorLogoUrl,ie)("pTooltip",t.SponsorName)}}function ep(i,n){if(i&1&&(l(0,"div"),x(1,$d,1,2,"img",31),s()),i&2){let t=y().$implicit,r=y(3);o(),g("ngIf",t.SponsorLogoUrl)("ngIfElse",r.noImage)}}function tp(i,n){if(i&1&&(l(0,"div",28),x(1,Xd,2,3,"a",29)(2,ep,2,2,"ng-template",null,1,Te),s()),i&2){let t=n.$implicit,r=Ce(3);o(),g("ngIf",t.SponsorWebsite)("ngIfElse",r)}}function ip(i,n){if(i&1&&(l(0,"a",30),f(1),s()),i&2){let t=y().$implicit;g("href",t.SponsorWebsite,ie),o(),S(" ",t.SponsorName," ")}}function np(i,n){if(i&1&&(l(0,"div"),f(1),s()),i&2){let t=y().$implicit;o(),S(" ",t.SponsorName," ")}}function rp(i,n){if(i&1&&f(0),i&2){let t=y().$implicit;P(t.SponsorName)}}function ap(i,n){if(i&1&&f(0),i&2){let t=y().$implicit;P(t.SponsorName)}}function op(i,n){if(i&1&&(l(0,"div",28),x(1,ip,2,2,"a",29)(2,np,2,1,"ng-template",null,2,Te)(4,rp,1,1,"ng-template",null,3,Te)(6,ap,1,1,"ng-template",null,4,Te),s()),i&2){let t=n.$implicit,r=Ce(3);o(),g("ngIf",t.SponsorWebsite)("ngIfElse",r)}}function sp(i,n){if(i&1&&(l(0,"div",23)(1,"p",24),f(2),d(3,"translate"),s(),l(4,"div",25)(5,"div",26),x(6,tp,4,2,"div",27),s(),l(7,"div",26),x(8,op,8,2,"div",27),s()()()),i&2){let t=y(2);o(2),P(m(3,3,"events.calendar.dialog-detail.sponsors")),o(4),g("ngForOf",t.withImageSponsors),o(2),g("ngForOf",t.noImageSponsors)}}function lp(i,n){if(i&1){let t=z();l(0,"div")(1,"div",7),f(2),s(),l(3,"div",8),f(4),s(),l(5,"div",9)(6,"div",10),f(7),N(8,"br"),f(9),N(10,"br"),f(11),s(),l(12,"div",11),x(13,Hd,6,3,"div",6)(14,Zd,2,1,"div",6),s()(),l(15,"div",12),x(16,Kd,3,3,"button",13)(17,Yd,3,5,"a",14),l(18,"button",15),O("click",function(){I(t);let a=y();return w(a.openEventPage(a.event.RegistrationUrl))}),f(19),d(20,"translate"),s(),l(21,"a",16),f(22),d(23,"translate"),s()(),x(24,sp,9,5,"div",17),s()}if(i&2){let t=y();o(2),P(t.event.EventName),o(2),P(t.event.Descr),o(3),S(" ",t.event.Venue," "),o(2),Vt(" ",t.event.Address1,"",t.event.Address2,"",t.event.City!==null&&t.event.City!==""?", "+t.event.City:""," "),o(2),$(" ",t.event.State,"",t.event.Zip!==null&&t.event.Zip!==""?", "+t.event.Zip:""," "),o(2),g("ngIf",(t.event.EventDateTimes==null?null:t.event.EventDateTimes.length)==0),o(),g("ngIf",!t.event.IsAllDay&&t.event.EventDateTimes),o(2),g("ngIf",!t.event.IsSpecialEventDetailsUrl),o(),g("ngIf",t.event.IsSpecialEventDetailsUrl),o(),g("hidden",!t.event.IsRegistrationEnabled||t.event.IsSpecialRegistrationUrl),o(),S(" ",m(20,19,"events.calendar.dialog-detail.button-register")," "),o(2),g("href",ae(t.event.RegistrationUrl),ie)("hidden",!t.event.IsRegistrationEnabled||!t.event.IsSpecialRegistrationUrl),o(),S(" ",m(23,21,"events.calendar.dialog-detail.button-register")," "),o(2),g("ngIf",(t.event==null||t.event.Sponsors==null?null:t.event.Sponsors.length)>0)}}var Mi=(()=>{let n=class n{constructor(r,a,e){this._eventService=r,this._configService=a,this._navigationService=e,this.showDialog=!1}ngOnInit(){this._configService.getAppContext().then(r=>{this.webRootSecure=r.WebRootSecure})}open(r){this.event=r,this.startEndDate=this._eventService.getEventStartEndDateShort(r.StartDateTimeUtc,r.EndDateTimeUtc),this.withImageSponsors=this.event.Sponsors.filter(a=>a.SponsorLogoUrl),this.noImageSponsors=this.event.Sponsors.filter(a=>
2!a.SponsorLogoUrl),this.withImageSponsors.forEach(a=>{a.SponsorLogoUrl=a.SponsorLogoUrl.startsWith("http")?a.SponsorLogoUrl:this.webRootSecure+a.SponsorLogoUrl}),this.showDialog=!0}openEventPage(r){this._navigationService.navigateToEventPage(r)}};n.\u0275fac=function(a){return new(a||n)(M(de),M(pt),M(ke))},n.\u0275cmp=U({type:n,selectors:[["wl-event-calendar-dialog"]],standalone:!1,decls:2,vars:6,consts:[["isAllDayEvent",""],["noWebsiteWithImage",""],["noWebsiteNoImage",""],["noWebsite",""],["noImage",""],["modal","true","styleClass","atlas-dialog-s","position","center",3,"visibleChange","blockScroll","closable","draggable","visible","dismissableMask"],[4,"ngIf"],[1,"event-title"],[1,"event-shortdescription"],["fxLayout","row",1,"event-details-outer-container"],[1,"event-details-inner-container","t-al"],[1,"event-details-inner-container","t-ar"],["fxLayout","row","fxLayoutGap","10px","fxLayoutAlign","center center",1,"mv-20","t-ac"],["type","button","class","atlas-btn btn-secondary details-button w-100",3,"click",4,"ngIf"],["type","button","class","atlas-btn btn-secondary details-button w-100","target","_blank",3,"href",4,"ngIf"],["type","button",1,"atlas-btn","atlas-btn-primary","w-100",3,"click","hidden"],["type","button","target","_blank",1,"atlas-btn","atlas-btn-primary","w-100",3,"hidden","href"],["class","mv-20 t-ac sponsors-container p-5","fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","10px",4,"ngIf"],[4,"ngIf","ngIfElse"],["class","mb-10",4,"ngFor","ngForOf"],[1,"mb-10"],["type","button",1,"atlas-btn","btn-secondary","details-button","w-100",3,"click"],["type","button","target","_blank",1,"atlas-btn","btn-secondary","details-button","w-100",3,"href"],["fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","10px",1,"mv-20","t-ac","sponsors-container","p-5"],[1,"f-wb"],["fxLayout","column","fxLayoutAlign","center center"],["fxLayout","row wrap","fxLayoutAlign","space-evenly center","fxLayoutGap","2px"],["class","sponsor",4,"ngFor","ngForOf"],[1,"sponsor"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["target","_blank",3,"href"],["class","img-sponsor",3,"src","pTooltip",4,"ngIf","ngIfElse"],[1,"img-sponsor",3,"src","pTooltip"]],template:function(a,e){a&1&&(l(0,"p-dialog",5),B("visibleChange",function(u){return F(e.showDialog,u)||(e.showDialog=u),u}),x(1,lp,25,23,"div",6),s()),a&2&&(g("blockScroll",!0)("closable",!0)("draggable",!1),D("visible",e.showDialog),g("dismissableMask",!0),o(),g("ngIf",(e.event==null?null:e.event.EventId)>0))},dependencies:[J,j,qe,Ht,Ue,Zn,Ae,q],styles:["body .p-dialog .p-dialog-content{background:#f7f7f7;overflow-y:hidden!important}  body .p-dialog .p-dialog-header{background:#f7f7f7;padding:0}.event-title[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:700;text-align:center;margin-bottom:20px}.event-shortdescription[_ngcontent-%COMP%]{font-size:1rem;text-align:center;margin-bottom:20px}.event-details-outer-container[_ngcontent-%COMP%]{min-width:430px;height:auto;background-color:#efefef;border-radius:5px}.event-details-inner-container[_ngcontent-%COMP%]{width:100%;padding:20px}.sponsor[_ngcontent-%COMP%]{flex:1 0 21%;margin:5px}.img-sponsor[_ngcontent-%COMP%]{max-width:200px;max-height:50px}.details-button[_ngcontent-%COMP%]{color:#000;background:transparent;border:1px solid black}.details-button[_ngcontent-%COMP%]:hover{border:1px solid black}.sponsors-container[_ngcontent-%COMP%]{background:#fff;border-radius:5px;max-height:300px;overflow-y:scroll}"]});let i=n;return i})();var Wt=(function(i){return i[i.MonthGrid=0]="MonthGrid",i[i.DayGrid=1]="DayGrid",i[i.EventList=2]="EventList",i})(Wt||{});function pp(i,n){if(i&1){let t=z();l(0,"div")(1,"div",12)(2,"div",13)(3,"p-checkbox",14),B("ngModelChange",function(a){let e=I(t).$implicit;return F(e.selected,a)||(e.selected=a),w(a)}),O("onChange",function(){I(t);let a=y(2);return w(a.filterChanged())}),s(),l(4,"label",15),f(5),s()()()()}if(i&2){let t=n.$implicit;o(3),D("ngModel",t.selected),g("binary",!0)("name",t.name)("inputId",t.name),o(),g("for",t.name),o(),P(t.name)}}function mp(i,n){if(i&1&&(l(0,"div",5)(1,"span",10),f(2),d(3,"translate"),s(),N(4,"br"),x(5,pp,6,6,"div",11),s()),i&2){let t=y();o(2),P(m(3,2,"events.filter.event-type")),o(3),g("ngForOf",t.eventTypes)}}function cp(i,n){if(i&1){let t=z();l(0,"div",5)(1,"span",10),f(2),d(3,"translate"),s(),N(4,"br"),l(5,"div",12)(6,"div",13)(7,"p-checkbox",16),B("ngModelChange",function(a){I(t);let e=y();return F(e.eventSearchParams.CommunityEvent,a)||(e.eventSearchParams.CommunityEvent=a),w(a)}),O("onChange",function(){I(t);let a=y();return w(a.filterChanged())}),s(),l(8,"label",17),f(9),d(10,"translate"),d(11,"ucfirst"),s()()(),l(12,"div",12)(13,"div",13)(14,"p-checkbox",18),B("ngModelChange",function(a){I(t);let e=y();return F(e.eventSearchParams.MembersOnlyEvent,a)||(e.eventSearchParams.MembersOnlyEvent=a),w(a)}),O("onChange",function(){I(t);let a=y();return w(a.filterChanged())}),s(),l(15,"label",19),f(16),d(17,"translate"),d(18,"ucfirst"),s()()(),l(19,"div",12)(20,"div",13)(21,"p-checkbox",20),B("ngModelChange",function(a){I(t);let e=y();return F(e.eventSearchParams.OrganizationEvent,a)||(e.eventSearchParams.OrganizationEvent=a),w(a)}),O("onChange",function(){I(t);let a=y();return w(a.filterChanged())}),s(),l(22,"label",21),f(23),d(24,"translate"),d(25,"ucfirst"),s()()()()}if(i&2){let t=y();o(2),S(" ",m(3,10,"events.filter.calendar-type")),o(5),D("ngModel",t.eventSearchParams.CommunityEvent),g("binary",!0),o(2),P(m(11,14,m(10,12,"events.filter.calendar-types.community"))),o(5),D("ngModel",t.eventSearchParams.MembersOnlyEvent),g("binary",!0),o(2),P(m(18,18,m(17,16,"events.filter.calendar-types.members-only"))),o(5),D("ngModel",t.eventSearchParams.OrganizationEvent),g("binary",!0),o(2),P(m(25,22,m(24,20,"events.filter.calendar-types.organization")))}}var Ra=(()=>{let n=class n{constructor(r,a){this._eventService=r,this._configServiceService=a,this.eventSearchFilterParamsChange=new re,this.keywordSubject=ne
2w Ai,this.destroy$=new Ai,this.loadingFilters=!0,this.eventSearchParams={PageSize:0,EventClosed:!1,GetEventSponsors:!0,MembersOnlyEvent:!1,OrganizationEvent:!1,CommunityEvent:!1,SearchDate:null},this.eventTypes=[],this.calendarSettings={}}ngOnInit(){this.keywordSubject.pipe(dn(500),pn(this.destroy$)).subscribe(()=>this.filterChanged()),this._configServiceService.getCalendarSettings().then(r=>{this.calendarSettings=r}),this._eventService.getPublicEventTypes().then(r=>{this.eventTypes=r.map(a=>({name:a,selected:!1})),this.loadingFilters=!1}),this.eventSearchParams.MembersOnlyEvent=this.urlQueryParams.MembersOnlyEvents,this.eventSearchParams.OrganizationEvent=this.urlQueryParams.OrganizationEvents,this.eventSearchParams.CommunityEvent=this.urlQueryParams.CommunityEvents}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onKeywordChange(r){this.keywordSubject.next(r)}filterChanged(){let r=this.eventSearchParams.SearchDate;if(r){var a=new Date(r.getFullYear(),r.getMonth(),1),e=new Date(r.getFullYear(),r.getMonth()+1,0);this.eventSearchParams.SearchDateBegin=a,this.eventSearchParams.SearchDateEnd=e}this.eventSearchParams.EventType=this.eventTypes.filter(p=>p.selected).map(p=>p.name),this.eventSearchFilterParamsChange.emit(this.eventSearchParams)}};n.\u0275fac=function(a){return new(a||n)(M(de),M(be))},n.\u0275cmp=U({type:n,selectors:[["wl-event-filter"]],inputs:{urlQueryParams:"urlQueryParams"},outputs:{eventSearchFilterParamsChange:"eventSearchFilterParamsChange"},standalone:!1,decls:20,vars:15,consts:[["filterDate",""],[1,"main-container"],[1,"section-title"],[1,"glyphicon","glyphicon-filter"],[1,"filters-container",3,"wl-busy-overlay"],[1,"mv-20"],[1,"pi","pi-search"],["type","text","name","keyword",1,"form-control",3,"ngModelChange","placeholder","ngModel"],["showButtonBar","true","name","filterDate",3,"ngModelChange","onDateChanged","ngModel"],["class","mv-20",4,"ngIf"],[1,"filter-subtitle"],[4,"ngFor","ngForOf"],[1,"mv-10","vertical-margin"],["fxLayoutAlign","row","fxLayoutAlign","start center"],[1,"mobile-view",3,"ngModelChange","onChange","ngModel","binary","name","inputId"],[2,"margin-left","5px",3,"for"],["name","CommunityEvent","inputId","communityEvent",1,"mobile-view",3,"ngModelChange","onChange","ngModel","binary"],["for","communityEvent",2,"margin-left","5px"],["name","MembersOnlyEvent","inputId","membersOnlyEvent",1,"mobile-view",3,"ngModelChange","onChange","ngModel","binary"],["for","membersOnlyEvent",2,"margin-left","5px"],["name","OrganizationEvent","inputId","organizationEvent",1,"mobile-view",3,"ngModelChange","onChange","ngModel","binary"],["for","organizationEvent",2,"margin-left","5px"]],template:function(a,e){if(a&1){let p=z();l(0,"div",1)(1,"div",2),N(2,"i",3),f(3),d(4,"translate"),s(),l(5,"div",4)(6,"div",5)(7,"p-inputGroup")(8,"p-inputGroupAddon"),N(9,"i",6),s(),l(10,"input",7),d(11,"translate"),B("ngModelChange",function(c){return I(p),F(e.eventSearchParams.Keyword,c)||(e.eventSearchParams.Keyword=c),w(c)}),O("ngModelChange",function(c){return I(p),w(e.onKeywordChange(c))}),s()()(),l(12,"div",5),f(13),d(14,"translate"),N(15,"br"),l(16,"wl-date-selector",8,0),B("ngModelChange",function(c){return I(p),F(e.eventSearchParams.SearchDate,c)||(e.eventSearchParams.SearchDate=c),w(c)}),O("onDateChanged",function(){return I(p),w(e.filterChanged())}),s()(),x(18,mp,6,4,"div",9)(19,cp,26,24,"div",9),s()()}a&2&&(o(3),S(" ",m(4,9,"events.filter.title")),o(2),g("wl-busy-overlay",e.loadingFilters),o(5),g("placeholder",ae(m(11,11,"events.filter.search-placeholder"))),D("ngModel",e.eventSearchParams.Keyword),o(3),S(" ",m(14,13,"events.filter.view-specific-date"),": "),o(3),D("ngModel",e.eventSearchParams.SearchDate),o(2),g("ngIf",e.eventTypes!=null&&e.eventTypes.length!=0&&!((e.calendarSettings==null?null:e.calendarSettings.HideEventTypeFilter)??!1)),o(),g("ngIf",!((e.calendarSettings==null?null:e.calendarSettings.HideCalendarTypeFilter)??!1)))},dependencies:[_t,di,J,j,pe,me,ce,Ue,Kn,Fr,Br,ot,q],styles:[".p-button{background-color:#a0a0a0;border-color:#a0a0a0}.main-container[_ngcontent-%COMP%]{padding:0 30px 30px}.section-title[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;text-align:left;margin-bottom:15px}.filters-container[_ngcontent-%COMP%]{padding:20px;box-shadow:0 1px 4px #0003,0 0 3px #0003;border-radius:2px}.filter-subtitle[_ngcontent-%COMP%]{font-weight:700}
2.p-inputgroup-addon[_ngcontent-%COMP%]{padding:.4rem}"]});let i=n;return i})();var fp=["calendar"];function up(i,n){if(i&1){let t=z();l(0,"full-calendar",6,0),O("click",function(a){I(t);let e=y();return w(e.handleCalendarClick(a))}),s()}if(i&2){let t=y();g("options",t.calendarOptions)}}var Pa=(()=>{let n=class n{constructor(r,a,e,p,u,c,h){this._eventService=r,this._utilService=a,this._route=e,this._router=p,this._location=u,this._entityDomainService=c,this._configService=h,this.urlQueryParams={EntityIds:[],EventTypes:[]},this.loadingEvents=!1,this.loading=!1,this.hideMoreEventsLink=!1,this.initialDate=null,this.eventSearchParams={PageSize:0,EventClosed:!1,GetEventSponsors:!0,InternalEvent:!1,CommunityEvent:!0,OrganizationEvent:!0,MembersOnlyEvent:!0}}ngAfterViewChecked(){this.calendarApi=this.calendarComponent?.getApi()}ngOnInit(){return Me(this,null,function*(){this._route.queryParams.subscribe(a=>{if(this.urlQueryParams.OrganizationEvents=this._utilService.boolFromString(a.oe),this.urlQueryParams.CommunityEvents=this._utilService.boolFromString(a.ce),this.urlQueryParams.MembersOnlyEvents=this._utilService.boolFromString(a.mo),a.date!=null){let e=new Date(a.date);isNaN(e.getTime())||(this.initialDate=new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),12,0,0,0))}a.eventtype!=null&&(a.eventtype instanceof Array?this.urlQueryParams.EventTypes=a.eventtype.map(String):this.urlQueryParams.EventTypes.push(a.eventtype)),a.entityid!=null&&(a.entityid instanceof Array?this.urlQueryParams.EntityIds=a.entityid.map(Number):this.urlQueryParams.EntityIds.push(a.entityid))}),this._router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.eventSearchParams.MembersOnlyEvent=this.urlQueryParams.MembersOnlyEvents??!1,this.eventSearchParams.CommunityEvent=this.urlQueryParams.CommunityEvents??!1,this.eventSearchParams.OrganizationEvent=this.urlQueryParams.OrganizationEvents??!1,this.eventSearchParams.EntityIds=this.urlQueryParams.EntityIds??[],this.eventSearchParams.EventType=this.urlQueryParams.EventTypes??[],this.getScreenWidth=window.innerWidth;let r=yield this._configService.getCalendarSettings();r?.DefaultCalendarView!=null&&(this.defaultCalendarView=r.DefaultCalendarView),this.hideMoreEventsLink=r?.HideMoreEventsLink??!1,r?.RestrictToEntityIds?.length>0&&this.eventSearchParams.EntityIds?.length===0&&(this.eventSearchParams.EntityIds=[...r.RestrictToEntityIds]),this.updateFullCalendarSettings()})}loadEvents(r){return Me(this,null,function*(){if(this.loadingEvents=!0,this.eventSearchParams.SearchDateBegin=r.start,this.eventSearchParams.SearchDateEnd=r.end,this.eventSearchParams.InternalEvent=!1,this.eventSearchParams.EntityIds?.length==0){let u=yield this._entityDomainService.getEntityDomainFromDomain();u.EntityID>0&&(this.eventSearchParams.EntityIds??=[],this.eventSearchParams.EntityIds.push(u.EntityID))}let a=this._utilService.clone(this.eventSearchParams);!a.CommunityEvent&&!a.OrganizationEvent&&!a.MembersOnlyEvent&&(a.CommunityEvent=!0,a.OrganizationEvent=!0,a.MembersOnlyEvent=!0);let e=this.calendarApi?.view?.type,p=[];return new Promise(u=>{this._eventService.searchEvents(a).then(c=>{c.Result.forEach(h=>{let T=h.EventTypeColor||"#3788d8",b={title:h.EventName,allDay:h.IsAllDay,borderColor:T,color:T,eventDetail:{startDate:h.StartDate,endDate:h.EndDate,startTime:h.StartTime,endTime:h.EndTime,isAllDay:h.IsAllDay??!1,timeZone:h.TimeZone.Abbreviation,Descr:h.ShortDescr,venue:h.Venue,address1:h.Address1,address2:h.Address2,city:h.City,state:h.State,zip:h.Zip,sponsors:h.Sponsors,registrationUrl:this._utilService.getEventPagesUrl(h.SpecialRegistrationUrl,h.EventId,"register"),specialRegistrationUrl:!!h.SpecialRegistrationUrl,detailsUrl:this._utilService.getEventPagesUrl(h.SpecialDetailsPageURL,h.EventId,"details"),specialDetailsUrl:!!h.SpecialDetailsPageURL,disableRegistration:h.DisableRegistration,isRegistrationEnabled:h.IsRegistrationEnabled,eventDateTimes:h.EventDateTimes}},C=h.EventDateTimes?.length>1;if(e==="listMonth"&&C)h.EventDateTimes.forEach((v,_)=>{p.push(nt(it({id:`${h.EventId}-${_}`,start:new Date(v.StartDateTimeUtc),end:new Date(v.EndDateTimeUtc)},b),{eventDetail:nt(it({},b.eventDetail),{startDateTimeUtc:v.StartDateTimeUtc,endDateTimeUtc:v.EndDateTimeUtc,startDate:v.EventDate,startTime:v.StartTime,endTime:v.EndTime})}))});else{let v=h.StartDateTimeUtc,_=h.EndDateTimeUtc;!h.IsAllDay&&h.EventDateTimes?.length&&(v=h.EventDateTimes[0].StartDateTimeUtc,_=h.EventDateTimes[h.EventDateTimes.length-1].EndDateTimeUtc);let E=new Date(v),R;h.IsAllDay?R=new Date(new Date(_).getTime()+1440*60*1e3):R=new Date(_),p.push(nt(it({id:h.EventId.toString(),start:E,end:R},b),{eventDetail:nt(it({},b.eventDetail),{startDateTimeUtc:v,endDateTimeUtc:_})}))}}),this.loadingEvents=!1,u(p)})})})}onEventClick(r){let a=r.event,e=a.extendedProps.eventDetail,p={};p.EventId=parseInt(a.id),p.EventName=a.title,p.Descr=e.Descr,p.StartDate=e.startDate,p.EndDate=e.endDate,p.StartTime=e.startTime,p.EndTime=e.endTime,p.EventDateTimes=e.eventDateTimes,p.IsAllDay=e.isAllDay,p.TimeZone={},p.TimeZone.Abbreviation=e.timeZone,p.Venue=e.venue,p.Address1=e.address1,p.Address2=e.address2,p.City=e.city,p.State=e.state,p.Zip=e.zip,p.Sponsors=e.sponsors,p.RegistrationUrl=e.registrationUrl,p.IsSpecialRegistrationUrl=e.specialRegistrationUrl,p.EventDetailsUrl=e.detailsUrl,p.IsSpecialEventDetailsUrl=e.specialDetailsUrl,p.DisableRegistration=e.disableRegistration,p.StartDateTimeUtc=e.startDateTimeUtc,p.EndDateTimeUtc=e.endDateTimeUtc,p.IsRegistrationEnabled=e.isRegistrationEnabled,this.eventCalendarDialog.open(p)}searchFilter(r){if(!this.calendarApi)return;this.calendarApi.unselect(),this.eventSearchParams=r,this.syncQueryParams(r);let a=r.SearchDate;a===null?this.calendarApi.refetchEvents():(this.calendarApi.gotoDate(a),this._utilService.isToday(a)||this.calendarApi.select(a))}syncQueryParams(r){let a={};if(r.OrganizationEvent&&(a.oe="true"),r.CommunityEvent&&(a.ce="true"),r.MembersOnlyEvent&&(a.mo="true"),r.SearchDate){let p=new Date(r.SearchDate);p.setHours(12,0,0,0),a.date=p.toISOString().split("T")[0]}r.EventType?.length&&(a.eventtype=r.EventType),r.EntityIds?.length&&(a.entityid=r.EntityIds);let e=this._router.createUrlTree([],{relativeTo:this._route,queryParams:a});this._location.replaceState(this._router.serializeUrl(e))}updateFullCalendarSettings(){this.isMobileScreen=this.getScreenWidth<=520,this.calendarOptions=nt(it({buttonText:{month:"Month View",listMonth:"Event List",today:"Today",week:"Week View"},headerToolbar:{start:"today prev next",center:"title",end:`${this.isMobileScreen?"":"dayGridMonth dayGridWeek"} listMonth`},initialView:this.resolveInitialView()},this.initialDate&&{initialDate:this.initialDate}),{dayMaxEvents:this.hideMoreEventsLink?!1:4,events:this.loadEvents.bind(this),eventClick:this.onEventClick.bind(this),plugins:[Ea,xa],lazyFetching:!1}),this.calendarApi?.changeView(this.resolveInitialView())}resolveInitialView(){return this.isMobileScreen?"listMonth":this.defaultCalendarView!=null?{[Wt.MonthGrid]:"dayGridMonth",[Wt.DayGrid]:"dayGridWeek",[Wt.EventList]:"listMonth"}[this.defaultCalendarView]:"dayGridMonth"}
2onWindowResize(){this.getScreenWidth=window.innerWidth,(this.getScreenWidth<=520&&!this.isMobileScreen||this.getScreenWidth>520&&this.isMobileScreen)&&this.updateFullCalendarSettings()}handleCalendarClick(r){let a=r.target;a&&a.closest(".fc-today-button")&&this.calendarApi.view.type.startsWith("list")&&setTimeout(()=>{let p=this.calendarApi.el.querySelector(".fc-day-today");p&&p.scrollIntoView({behavior:"smooth",block:"start"})},400)}};n.\u0275fac=function(a){return new(a||n)(M(de),M(Q),M(Be),M(dt),M(_n),M(Mn),M(be))},n.\u0275cmp=U({type:n,selectors:[["wl-event-calendar"]],viewQuery:function(a,e){if(a&1&&(G(fp,5),G(Mi,5)),a&2){let p;Z(p=K())&&(e.calendarComponent=p.first),Z(p=K())&&(e.eventCalendarDialog=p.first)}},hostBindings:function(a,e){a&1&&O("resize",function(u){return e.onWindowResize(u)},cn)},standalone:!1,decls:10,vars:6,consts:[["calendar",""],[1,"page-width"],[3,"eventSearchFilterParamsChange","urlQueryParams"],[1,"section-title"],[1,"calendar-container",3,"wl-busy-overlay"],[3,"options","click",4,"ngIf"],[3,"click","options"]],template:function(a,e){a&1&&(l(0,"div",1)(1,"div")(2,"wl-event-filter",2),O("eventSearchFilterParamsChange",function(u){return e.searchFilter(u)}),s()(),l(3,"div")(4,"div",3),f(5),d(6,"translate"),s(),l(7,"div",4),x(8,up,2,1,"full-calendar",5),s()()(),N(9,"wl-event-calendar-dialog")),a&2&&(o(2),g("urlQueryParams",e.urlQueryParams),o(3),P(m(6,4,"events.calendar.calendar-view")),o(2),g("wl-busy-overlay",e.loadingEvents),o(),g("ngIf",e.calendarOptions))},dependencies:[_t,j,Dr,Mi,Ra,q],styles:[".fc-col-header-cell{background:#f7f7f7}.page-width[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 3fr;max-width:80%;margin:auto}.section-title[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;text-align:left;margin-bottom:15px}.calendar-container[_ngcontent-%COMP%]{padding:20px;box-shadow:0 1px 4px #0003,0 0 3px #0003;border-radius:2px}@media screen and (max-width:833px){.page-width[_ngcontent-%COMP%]{max-width:100%}.calendar-container[_ngcontent-%COMP%]{margin-right:30px}}@media screen and (max-width:696px){.page-width[_ngcontent-%COMP%]{display:flex;flex-direction:column}.calendar-container[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{margin:0 30px 15px}}"]});let i=n;return i})();var hp=[{path:"",component:Pa},{path:":nameid/register",component:Yi,canActivate:[bt]},{path:":id/registration",component:Yi,canActivate:[bt]},{path:"eventsubmission",component:ea,canActivate:[Yr]},{path:":nameid/details",component:ua,canActivate:[bt]},{path:"registration/:id",component:ya,canActivate:[bt]}],Ma=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=zt({type:n}),n.\u0275inj=Ot({imports:[Wi.forChild(hp),Wi]});let i=n;return i})();var Yg=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=zt({type:n}),n.\u0275inj=Ot({imports:[Ma,Ur,Wr,Un,Zr,wn]});let i=n;return i})();export{Yg as EventsModule};

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.