1"use strict";(self.webpackChunkatlas_member_spa=self.webpackChunkatlas_member_spa||[]).push([[30],{65030:(rr,re,f)=>{f.r(re),f.d(re,{EventsModule:()=>nr});var _=f(89417),I=f(60177),w=f(97679),U=f(69013),Y=f(10467),oe=f(71562),e=f(54438),J=f(28790),we=f(79857),L=f(89315),V=f(34553),x=f(17092);let Ne=(()=>{class n{constructor(t,r,i,s,l,o){this._tokenStorageService=t,this._identityProviderService=r,this._profileService=i,this._userService=s,this._EventsService=l,this._router=o}canActivate(t,r){const i=this.isEventSubmissionRoute(r.url);if(!0===this._tokenStorageService.hasValidUserTypeAccessToken()){const s=this._tokenStorageService.getUserTypeAccessToken(),l=this._tokenStorageService.getUserTypeInfoFromToken(s);return this.getUserProfileId(l).then(o=>!!o&&this._profileService.getProfileExtended(o).then(c=>!(!c.Member&&!c.RelatedProfiles.some(R=>!0===R.Member)&&(this._router.navigateByUrl("/access-denied"),1))))}return i?this._EventsService.getEventSubmissionSettings().then(s=>!s.RequireLogin||(this.initiateAuthFlowRequest(),!1)):(this.initiateAuthFlowRequest(),Promise.resolve(!1))}isEventSubmissionRoute(t){return t.toLowerCase().includes("/eventsubmission")}initiateAuthFlowRequest(){this._identityProviderService.initialize(),this._identityProviderService.authorizeCodeFlowRequestCode(window.location.href)}getUserProfileId(t){var r=this;return(0,Y.A)(function*(){switch(t.UserType){case oe.u.ProfileUser:return t.id;case oe.u.BackOfficeUser:return(yield r._userService.getUser(t.id))?.ProfileId??null;default:return null}})()}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(J.I),e.KVO(we.L),e.KVO(L.p),e.KVO(V.D),e.KVO(x.H),e.KVO(w.Ix))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class ae{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 F=f(99170),X=f(64512),Q=f(78462),q=f(65982),je=f(46046),De=f(48810),ke=f(65231),Z=f(29242),G=f(6428),Ge=f(36899),le=f(82242),M=f(5402);const ze=["communityEventSubmissionForm"];function Oe(n,a){if(1&n&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,1,t.eventSubmissionSettings.PageTitle))}}
1function $e(n,a){if(1&n&&(e.j41(0,"strong",48),e.EFF(1),e.nI1(2,"ucfirst"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,1,t.eventSubmissionSettings.ConfirmationMessage))}}function Be(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"re-captcha",49),e.bIt("resolved",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onReCaptchaResponse(i))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("siteKey",t.recaptchaSiteKey)}}let We=(()=>{class n{constructor(t,r,i,s,l){this._eventService=t,this._userService=r,this._notificationService=i,this._translationService=s,this._configService=l,this.eventTypes=[],this.formData=new ae,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(t=>{this.recaptchaSiteKey=t}),this._eventService.getEventTypes().then(t=>{this.eventTypes=t}),this._userService.getCurrentUserProfileExtended().then(t=>{t&&(this.formData.YourName=t.ReportName,this.formData.YourPhone=t.WorkPhone,this.formData.YourEmail=t.Email)}),this._eventService.getEventSubmissionSettings().then(t=>{this.eventSubmissionSettings=t,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 ae},t=>{this._notificationService.translateError(t.error.Message),this.isSaving=!1})}startDateChanged(t){this.formData.EventEndDate=t}onReCaptchaResponse(t){this.reCaptchaResponseToken=t,this.isValid=null!==t}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(x.H),e.rXU(V.D),e.rXU(F.JE),e.rXU(F.L0),e.rXU(X.j))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-community-event-submission"]],viewQuery:function(r,i){if(1&r&&e.GBs(ze,5),2&r){let s;e.mGM(s=e.lsd())&&(i.communityEventSubmissionForm=s.first)}},decls:122,vars:126,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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",2),e.DNE(1,Oe,3,3,"h1",3)(2,$e,3,3,"strong",4),e.j41(3,"form",null,0)(5,"div",5)(6,"label",6),e.EFF(7),e.nI1(8,"translate"),e.nI1(9,"ucfirst"),e.k0s(),e.j41(10,"input",7),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EventName,o)||(i.formData.EventName=o),e.Njj(o)}),e.k0s()(),e.j41(11,"div",8)(12,"label",9),e.EFF(13),e.nI1(14,"translate"),e.nI1(15,"ucfirst"),e.k0s(),e.j41(16,"p-dropdown",10),e.nI1(17,"translate"),e.nI1(18,"ucfirst"),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EventType,o)||(i.formData.EventType=
1o),e.Njj(o)}),e.k0s()(),e.j41(19,"div",5)(20,"div",11)(21,"div")(22,"label",12),e.EFF(23),e.nI1(24,"translate"),e.nI1(25,"ucfirst"),e.k0s(),e.j41(26,"wl-date-selector",13,1),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EventDate,o)||(i.formData.EventDate=o),e.Njj(o)}),e.bIt("onDateChanged",function(o){return e.eBV(s),e.Njj(i.startDateChanged(o))}),e.k0s()(),e.j41(28,"div")(29,"label",14),e.EFF(30),e.nI1(31,"translate"),e.nI1(32,"ucfirst"),e.k0s(),e.j41(33,"wl-time-selector",15),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EventTime,o)||(i.formData.EventTime=o),e.Njj(o)}),e.k0s()()()(),e.j41(34,"div",5)(35,"div",11)(36,"div")(37,"label",16),e.EFF(38),e.nI1(39,"translate"),e.nI1(40,"ucfirst"),e.k0s(),e.j41(41,"wl-date-selector",17),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EventEndDate,o)||(i.formData.EventEndDate=o),e.Njj(o)}),e.k0s()(),e.j41(42,"div")(43,"label",18),e.EFF(44),e.nI1(45,"translate"),e.nI1(46,"ucfirst"),e.k0s(),e.j41(47,"wl-time-selector",15),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.EndTime,o)||(i.formData.EndTime=o),e.Njj(o)}),e.k0s()()()(),e.j41(48,"div",5)(49,"label",19),e.EFF(50),e.nI1(51,"translate"),e.nI1(52,"ucfirst"),e.k0s(),e.j41(53,"input",20),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Email,o)||(i.formData.Email=o),e.Njj(o)}),e.k0s()(),e.j41(54,"div",5)(55,"label",21),e.EFF(56),e.nI1(57,"translate"),e.nI1(58,"ucfirst"),e.k0s(),e.j41(59,"input",22),e.nI1(60,"translate"),e.nI1(61,"ucfirst"),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Address1,o)||(i.formData.Address1=o),e.Njj(o)}),e.k0s(),e.j41(62,"input",23),e.nI1(63,"translate"),e.nI1(64,"ucfirst"),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Address2,o)||(i.formData.Address2=o),e.Njj(o)}),e.k0s()(),e.j41(65,"div",5)(66,"div",11)(67,"div",24)(68,"label",25),e.EFF(69),e.nI1(70,"translate"),e.nI1(71,"ucfirst"),e.k0s(),e.j41(72,"input",26),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.City,o)||(i.formData.City=o),e.Njj(o)}),e.k0s()(),e.j41(73,"div",27)(74,"label",28),e.EFF(75),e.nI1(76,"translate"),e.nI1(77,"ucfirst"),e.k0s(),e.j41(78,"wl-state-selector",29),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.State,o)||(i.formData.State=o),e.Njj(o)}),e.k0s()(),e.j41(79,"div",30)(80,"label",31),e.EFF(81),e.nI1(82,"translate"),e.nI1(83,"ucfirst"),e.k0s(),e.j41(84,"input",32),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Zip,o)||(i.formData.Zip=o),e.Njj(o)}),e.k0s()()()(),e.j41(85,"div",33)(86,"label",34),e.EFF(87),e.nI1(88,"translate"),e.nI1(89,"ucfirst"),e.k0s(),e.j41(90,"wl-wysiwyg-editor",35),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Descr,o)||(i.formData.Descr=o),e.Njj(o)}),e.k0s()(),e.j41(91,"div",33)(92,"label",36),e.EFF(93),e.nI1(94,"translate"),e.nI1(95,"ucfirst"),e.k0s(),e.j41(96,"textarea",37),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.Location,o)||(i.formData.Location=o),e.Njj(o)}),e.k0s()(),e.j41(97,"div",5)(98,"label",38),e.EFF(99),e.nI1(100,"translate"),e.nI1(101,"ucfirst"),e.k0s(),e.j41(102,"input",39),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.YourName,o)||(i.formData.YourName=o),e.Njj(o)}),e.k0s()(),e.j41(103,"div",5)(104,"label",40),e.EFF(105),e.nI1(106,"translate"),e.nI1(107,"ucfirst"),e.k0s(),e.j41(108,"input",41),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.YourPhone,o)||(i.formData.YourPhone=o),e.Njj(o)}),e.k0s()(),e.j41(109,"div",5)(110,"label",42),e.EFF(111),e.nI1(112,"translate"),e.nI1(113,"ucfirst"),e.k0s(),e.j41(114,"input",43),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.formData.YourEmail,o)||(i.formData.YourEmail=o),e.Njj(o)}),e.k0s()(),e.DNE(115,Be,2,1,"div",44),e.j41(116,"div",45)(117,"button",46),e.bIt("click",function(){return e.eBV(s),e.Njj(i.submitEvent())}),e.nrm(118,"wl-busy",47),e.EFF(119),e.nI1(120,"translate"),e.nI1(121,"uppercase"),e.k0s()()()()}2&r&&(e.R7$(),e.Y8G("ngIf",null==i.eventSubmissionSettings?null:i.eventSubmissionSettings.PageTitle),e.R7$(),e.Y8G("ngIf",i.submissionSuccess),e.R7$(5),e.JRh(e.bMT(9,48,e.bMT(8,46,"events.community-event-submission.event-name"))),e.R7$(3),e.R50("ngModel",i.formData.EventName),e.R7$(),e.Y8G("hidden",i.eventSubmissionSettings.HideEventType),e.R7$(2),e.JRh(e.bMT(15,52,e.bMT(14,50,"events.community-event-submission.event-type"))),e.R7$(3),e.FS9("placeholder",e.bMT(18,56,e.bMT(17,54,"events.community-event-submission.select-event-type"))),e.Y8G("options",i.eventTypes),e.R50("ngModel",i.formData.EventType),e.R7$(7),e.JRh(e.bMT(25,60,e.bMT(24,58,"events.community-event-submission.start-date"))),e.R7$(3),e.R50("ngModel",i.formData.EventDate),e.R7$(4),e.JRh(e.bMT(32,64,e.bMT(31,62,"events.community-event-submission.start-time"))),e.R7$(3),e.R50("ngModel",i.formData.EventTime),e.R7$(5),e.JRh(e.bMT(40,68,e.bMT(39,66,"events.community-event-submission.end-date"))),e.R7$(3),e.R50("ngModel",i.formData.EventEndDate),e.Y8G("minDate",i.formData.EventEndDate),e.R7$(3),e.JRh(e.bMT(46,72,e.bMT(45,70,"events.community-event-submission.end-time"))),e.R7$(3),e.R50("ngModel",i.formData.EndTime),e.R7$(3),e.JRh(e.bMT(52,76,e.bMT(51,74,"events.community-event-submission.event-email-address"))),e.R7$(3),e.R50("ngModel",i.formData.Email),e.R7$(3),e.JRh(e.bMT(58,80,e.bMT(57,78,"events.community-event-submission.physical-address"))),e.R7$(3),e.FS9("placeholder",e.bMT(61,84,e.bMT(60,82,"events.community-event-submission.address-1"))),e.R50("ngModel",i.formData.Address1),e.R7$(3),e.FS9("placeholder",e.bMT(64,88,e.bMT(63,86,"events.community-event-submission.address-2"))),e.R50("ngModel",i.formData.Address2),e.R7$(7),e.JRh(e.bMT(71,92,e.bMT(70,90,"events.community-event-submission.city"))),e.R7$(3),e.R50("ngModel",i.formData.City),e.R7$(3),e.JRh(e.bMT(77,96,e.bMT(76,94,"events.community-event-submission.state"))),e.R7$(3),e.R50("ngModel",i.formData.State),e.Y8G("skipPreSelect",!0),e.R7$(3),e.JRh(e.bMT(83,100,e.bMT(82,98,"events.community-event-submission.zip"))),e.R7$(3),e.R50("ngModel",i.formData.Zip),e.R7$(3),e.JRh(e.bMT(89,104,e.bMT(88,102,"events.community-event-submission.wysiwyg"))),e.R7$(3),e.R50("ngModel",i.formData.Descr),e.R7$(3),e.JRh(e.bMT(95,108,e.bMT(94,106,"events.community-event-submission.location"))),e.R7$(3),e.R50("ngModel",i.formData.Location),e.R7$(3),e.JRh(e.bMT(101,112,e.bMT(100,110,"events.community-event-submission.submitter-name"))),e.R7$(3),e.R50("ngModel",i.formData.YourName),e.R7$(3),e.JRh(e.bMT(107,116,e.bMT(106,114,"events.community-event-submission.submitter-phone"))),e.R7$(3),e.R50("ngModel",i.formData.YourPhone),e.R7$(3),e.JRh(e.bMT(113,120,e.bMT(112,118,"events.community-event-submission.submitter-email"))),e.R7$(3),e.R50("ngModel",i.formData.YourEmail),e.R7$(),e.Y8G("ngIf",i.recaptchaSiteKey),e.R7$(2),e.Y8G("disabled",!i.isValid),e.R7$(),e.Y8G("show",i.isSaving),e.R7$(),e.SpI(" ",e.bMT(121,124,e.bMT(120,122,"common.submit"))," "))},dependencies:[Q.u,q.o,je.r,De.$,ke.u,I.bT,_.qT,_.me,_.BC,_.cb,_.vS,_.cV,Z.J,G.DJ,G.BO,G.UI,Ge.ms,le.u,I.Pc,I.PV,M.D9],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}"]})}return n})();var N=f(43347);
1class j{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 P=f(80372),A=f(86902),Ve=f(37549),xe=f(55466),de=f(10759),z=f(5303),me=f(10816),ge=f(77452),K=f(10290),ce=f(31424),Ue=f(28056),Ye=f(85194),Le=f(96024),Xe=f(2707),B=f(51444),he=f(28824),ee=f(65913),O=f(29404),qe=f(81572),pe=f(51719);const He=["profileOrgDupChecker"],Je=["profileIndDupChecker"];function Qe(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function Ze(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",21)(1,"label",40),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",6)(6,"wl-related-profile-selector",41),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.registration.Registration.relatedProfileId,i)||(s.registration.Registration.relatedProfileId=i),e.Njj(i)}),e.bIt("onProfileChanged",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.relatedProfileChanged(i))}),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(4,6,e.bMT(3,4,"events.registration.wizard.contact.profile-related-lookup-label"))),e.R7$(4),e.R50("ngModel",t.registration.Registration.relatedProfileId),e.Y8G("relatedProfileId",t.registration.Registration.ProfileId)("disabled",t._checkingMainContact)}}function Ke(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function et(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function tt(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function it(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function nt(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function st(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function rt(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function ot(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function at(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}function lt(n,a){1&n&&(e.j41(0,"label",39),e.EFF(1,"*"),e.k0s())}let dt=(()=>{class n{constructor(t,r,i,s,l,o){this._profileService=s,this.registration=new N.R,this.event=new j,this.initialLoadComplete=!1,this._checkingMainContact=!1,this.loadData=()=>{this.initialLoadComplete=!0,this._checkingMainContact=!1,this.allowSelectiveProfileAssignment=this._configSettingService.getConfigSettingValueFromCollectionAsBoolean("SelectiveProfileAssignment",this.configSettings);let c=this._userService.getCurrentUserProfileExtended().then(R=>(this.currentUserProfile=R,R.ProfileId>0&&(this.isLoggedIn=!0),Promise.resolve(!0)));Promise.all([c]).then(()=>
1{if(this.registration.Registration.LoggedInProfileId=0,1==this.isLoggedIn)if(this.registration.Registration.LoggedInProfileId=this.currentUserProfile.ProfileId,1==this.currentUserProfile.OrgInd){this.registration.Registration.ProfileId=this.currentUserProfile.ProfileId,this.registration.Registration.relatedProfileId=0;let R=new B.Q;this._utilService.mapSafe(this.currentUserProfile,R),this.registrationProfileChanged(R)}else 1==this.allowSelectiveProfileAssignment?this._profileService.getMainOrFirstRelatedOrg(this.currentUserProfile.ProfileId).then(R=>{R||(R=new he.w),this.registration.Registration.ProfileId=R.ProfileId,this.registration.Registration.relatedProfileId=this.currentUserProfile.ProfileId,this.registration.Registration.relatedProfileIsOrg=this.currentUserProfile.OrgInd,this.registration.Registration.ForceMemberPricing=!R.Member&&this.currentUserProfile.Member;let p=new B.Q;this._utilService.mapSafe(R,p);let g=new B.Q;this._utilService.mapSafe(this.currentUserProfile,g),this.registrationProfileChanged(p),this.relatedProfileChanged(g)}):this._profileService.getMainOrFirstRelatedOrg(this.currentUserProfile.ProfileId).then(R=>{R||(R=new he.w),this.registration.Registration.ProfileId=this.currentUserProfile.ProfileId,this.registration.Registration.relatedProfileId=this.currentUserProfile.OrgInd?R.ProfileId:this.currentUserProfile.ProfileId;let p=new B.Q;this._utilService.mapSafe(R,p);let g=new B.Q;this._utilService.mapSafe(this.currentUserProfile,g),this.registrationProfileChanged(g),this.relatedProfileChanged(p)})})},this.getValidationResult=()=>{let c=new A.n;if(c.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)?c.isValid=!0:(c.isValid=!1,c.errors.push(this._translationService.getInstant("events.registration.wizard.contact.add-registration-name-validation-error"))),!this.verifyAllRequiredFieldsAreSet()){c.isValid=!1;let p=this._translationService.getInstant("events.registration.wizard.contact.contact-required-fields-validation-error")+": ";for(let g of this.requiredFieldsNotPopulated)p=p+" "+g+" ";c.errors.push(p)}return c},this.registrationProfileChanged=c=>{1==this.initialLoadComplete&&(0==this.registration.IsEdit||c.ProfileId!=this.registration.Registration.ProfileId)&&(this.registration.Registration.ProfileId=c.ProfileId,this.registration.Registration.IsMember=c.Member||this.currentUserProfile&&this.currentUserProfile.Member,this.registration.Registration.OrgName=c.OrgName,this.registration.Registration.Prefix=c.Prefix,this.registration.Registration.FName=c.FirstName,this.registration.Registration.LName=c.LastName,this.registration.Registration.Title=c.Title,this.registration.Registration.Address1=c.Address1,this.registration.Registration.Address2=c.Address2,this.registration.Registration.City=c.City,this.registration.Registration.State=c.State,this.registration.Registration.Zip=c.Zip,this.registration.Registration.Email=c.Email,this.registration.Registration.Phone=c.WorkPhone,this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Phone)&&(this.registration.Registration.Phone=c.CellPhone),this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Phone)&&(this.registration.Registration.Phone=c.HomePhone),this._regProfileEmail=c.Email,!this.registration.IsEdit&&c.ProfileId>0||(this.registration.Registration.relatedProfileId=0,this.relatedProfileChanged(new B.Q)),this.onRegistrationProfileChanged.emit(c))},this.relatedProfileChanged=c=>{1==this.initialLoadComplete&&c.ProfileId!=this.registration.Registration.CommunicateWithProfileId&&(this.registration.Registration.CommunicateWithProfileId=c.ProfileId,c.OrgInd?this.registration.Registration.OrgName=c.OrgName:(this.registration.Registration.Prefix=c.Prefix,this.registration.Registration.Title=c.Title,this.registration.Registration.FName=c.FirstName,this.registration.Registration.LName=c.LastName),c.ProfileId>0&&(this.allowSelectiveProfileAssignment||!c.OrgInd)?this.registration.Registration.Email=c.Email:0==c.ProfileId&&(this.registration.Registration.Email=this._regProfileEmail))},this.onOrgNameChange=c=>{""!=this.registration.Registration.OrgName?this.registration.Registration.ProfileId<=0&&1==this.registration.Registration.CreateProfile&&this.profileOrgDupChecker.getPossibleDuplicates(this.registration.Registration.OrgName).then(R=>{this.profileOrgDupChecker&&(R.length>0?this.profileOrgDupChecker.show():this.profileOrgDupChecker.hide())}):this.profileOrgDupChecker&&this.profileOrgDupChecker.hide()},this.onLastNameChange=()=>{if(""!=this.registration.Registration.LName){if(this.registration.Registration.ProfileId<=0&&1==this.registration.Registration.CreateProfile&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.OrgName)){let c=this.registration.Registration.LName;this._utilService.isNotNullEmptyOrWhitespace(this.registration.Registration.FName)&&(c=this.registration.Registration.FName+" "+this.registration.Registration.LName),this.profileIndDupChecker.getPossibleDuplicates(c).then(R=>{R.length>0?this.profileIndDupChecker.show():this.profileIndDupChecker.hide()})}}else this.profileIndDupChecker&&this.profileIndDupChecker.hide()},this.onDupCheckerOrgNameProfileSelected=c=>{this.registrationProfileChanged(c)},this.onDupCheckerIndNameProfileSelected=c=>{this.registrationProfileChanged(c)},this.displayField=c=>1==c||3==c,this.requiredField=c=>1==c||3==c,this.verifyAllRequiredFieldsAreSet=()=>{let c=!0;return this.requiredFieldsNotPopulated=new Array,this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(this.registration.Registration.Address1)&&(c=!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)&&(c=!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)&&(c=!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(c=!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)&&(c=!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)&&(c=!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)&&(c=!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)&&(c=!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)&&(c=!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)&&(c=!1,this.requiredFieldsNotPopulated.push(this._translationService.getInstant("common.personal-information.title"))),c},this._utilService=t,this._translationService=r,this._registrationService=i,this._configSettingService=l,this._userService=o,this.onRegistrationProfileChanged=new e.bkB,this.registrationId=0,this.initialLoadComplete=!1,this.allowSelectiveProfileAssignment=!1,this.isLoggedIn=!1,this.requiredFieldsNotPopulated=new Array,this.userInfo=new de.o,this.isLoggedIn=!1,this.currentUserProfile=new ee.N,this._regProfileEmail=""}ngOnInit(){}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(O.L),e.rXU(P.f),e.rXU(L.p),e.rXU(z.k),e.rXU(V.D))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-contact"]],viewQuery:function(r,i){if(1&r&&(e.GBs(He,5),e.GBs(Je,5)),2&r){let s;e.mGM(s=e.lsd())&&(i.profileOrgDupChecker=s.first),e.mGM(s=e.lsd())&&(i.profileIndDupChecker=s.first)}},outputs:{onRegistrationProfileChanged:"onRegistrationProfileChanged"},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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"h3"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s(),e.j41(6,"div",3)(7,"label",4),e.EFF(8),e.nI1(9,"translate"),e.nI1(10,"titlecase"),e.DNE(11,Qe,2,0,"label",5),e.k0s(),e.j41(12,"div",6)(13,"input",7),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.OrgName,o)||(i.registration.Registration.OrgName=o),e.Njj(o)}),e.bIt("blur",function(o){return e.eBV(s),e.Njj(i.onOrgNameChange(o))}),e.k0s()()(),e.DNE(14,Ze,7,8,"div",8),e.j41(15,"div",3)(16,"label",9),e.EFF(17),e.nI1(18,"translate"),e.nI1(19,"titlecase"),e.DNE(20,Ke,2,0,"label",5),e.k0s(),e.j41(21,"div",10)(22,"input",11),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Prefix,o)||(i.registration.Registration.Prefix=o),e.Njj(o)}
1),e.k0s()()(),e.j41(23,"div",3)(24,"label",12),e.EFF(25),e.nI1(26,"translate"),e.nI1(27,"titlecase"),e.DNE(28,et,2,0,"label",5),e.k0s(),e.j41(29,"div",6)(30,"input",13),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.FName,o)||(i.registration.Registration.FName=o),e.Njj(o)}),e.k0s()()(),e.j41(31,"div",3)(32,"label",14),e.EFF(33),e.nI1(34,"translate"),e.nI1(35,"titlecase"),e.DNE(36,tt,2,0,"label",5),e.k0s(),e.j41(37,"div",6)(38,"input",15),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.LName,o)||(i.registration.Registration.LName=o),e.Njj(o)}),e.bIt("blur",function(){return e.eBV(s),e.Njj(i.onLastNameChange())}),e.k0s()()(),e.j41(39,"div",3)(40,"label",16),e.EFF(41),e.nI1(42,"translate"),e.nI1(43,"titlecase"),e.DNE(44,it,2,0,"label",5),e.k0s(),e.j41(45,"div",6)(46,"input",17),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Title,o)||(i.registration.Registration.Title=o),e.Njj(o)}),e.k0s()()(),e.j41(47,"div",3)(48,"label",18),e.EFF(49),e.nI1(50,"translate"),e.nI1(51,"titlecase"),e.DNE(52,nt,2,0,"label",5),e.k0s(),e.j41(53,"div",6)(54,"input",19),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Email,o)||(i.registration.Registration.Email=o),e.Njj(o)}),e.k0s()()(),e.j41(55,"div",3)(56,"label",20),e.EFF(57),e.nI1(58,"translate"),e.nI1(59,"titlecase"),e.DNE(60,st,2,0,"label",5),e.k0s(),e.j41(61,"div",6)(62,"div",21)(63,"div",22)(64,"input",23),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Address1,o)||(i.registration.Registration.Address1=o),e.Njj(o)}),e.k0s()()(),e.j41(65,"div",21)(66,"div",22)(67,"input",24),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Address2,o)||(i.registration.Registration.Address2=o),e.Njj(o)}),e.k0s()()(),e.j41(68,"div",25)(69,"div",26)(70,"div",21)(71,"label",27),e.EFF(72),e.nI1(73,"translate"),e.nI1(74,"titlecase"),e.DNE(75,rt,2,0,"label",5),e.k0s(),e.j41(76,"div",22)(77,"input",28),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.City,o)||(i.registration.Registration.City=o),e.Njj(o)}),e.k0s()()()(),e.j41(78,"div",29)(79,"div",21)(80,"label",30),e.EFF(81),e.nI1(82,"translate"),e.nI1(83,"titlecase"),e.DNE(84,ot,2,0,"label",5),e.k0s(),e.j41(85,"div",22)(86,"wl-state-selector",31,0),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.State,o)||(i.registration.Registration.State=o),e.Njj(o)}),e.k0s()()()(),e.j41(88,"div",32)(89,"div",25)(90,"label",33),e.EFF(91),e.nI1(92,"translate"),e.nI1(93,"titlecase"),e.DNE(94,at,2,0,"label",5),e.k0s(),e.j41(95,"div",22)(96,"input",34),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Zip,o)||(i.registration.Registration.Zip=o),e.Njj(o)}),e.k0s()()()()(),e.j41(97,"div",25)(98,"label",35),e.EFF(99),e.nI1(100,"translate"),e.nI1(101,"titlecase"),e.k0s(),e.j41(102,"div",22)(103,"wl-country-selector",36),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Country,o)||(i.registration.Registration.Country=o),e.Njj(o)}),e.k0s()()()()(),e.j41(104,"div",3)(105,"label",37),e.EFF(106),e.nI1(107,"translate"),e.nI1(108,"titlecase"),e.DNE(109,lt,2,0,"label",5),e.k0s(),e.j41(110,"div",6)(111,"input",38),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.Phone,o)||(i.registration.Registration.Phone=o),e.Njj(o)}),e.k0s()()()()()}2&r&&(e.R7$(3),e.JRh(e.bMT(5,49,e.bMT(4,47,"events.registration.wizard.contact.title"))),e.R7$(3),e.Y8G("hidden",!i.displayField(i.event.RegCompanyNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(10,53,e.bMT(9,51,"events.registration.wizard.contact.org-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegCompanyNameRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.OrgName),e.R7$(),e.Y8G("ngIf",i.currentUserProfile.OrgInd&&i.isLoggedIn),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegPrefixVisible)),e.R7$(2),e.SpI(" ",e.bMT(19,57,e.bMT(18,55,"events.registration.wizard.contact.prefix-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegPrefixRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.Prefix),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegFNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(27,61,e.bMT(26,59,"events.registration.wizard.contact.first-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegFNameRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.FName),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegLNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(35,65,e.bMT(34,63,"events.registration.wizard.contact.last-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegLNameRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.LName),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegTitleVisible)),e.R7$(2),e.SpI(" ",e.bMT(43,69,e.bMT(42,67,"events.registration.wizard.contact.title-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegTitleRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.Title),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegEmailVisible)),e.R7$(2),e.SpI(" ",e.bMT(51,73,e.bMT(50,71,"events.registration.wizard.contact.email-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegEmailRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.Email),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegAddressVisible)),e.R7$(2),e.SpI(" ",e.bMT(59,77,e.bMT(58,75,"events.registration.wizard.contact.address-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(4),e.R50("ngModel",i.registration.Registration.Address1),e.R7$(3),e.R50("ngModel",i.registration.Registration.Address2),e.R7$(5),e.SpI(" ",e.bMT(74,81,e.bMT(73,79,"events.registration.wizard.contact.city-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.City),e.R7$(4),e.SpI(" ",e.bMT(83,85,e.bMT(82,83,"events.registration.wizard.contact.state-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.Y8G("skipPreSelect",!0),e.R50("ngModel",i.registration.Registration.State),e.R7$(5),e.SpI(" ",e.bMT(93,89,e.bMT(92,87,"events.registration.wizard.contact.zip-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.Zip),e.R7$(3),e.JRh(e.bMT(101,93,e.bMT(100,91,"events.registration.wizard.contact.country-label"))),e.R7$(4),e.R50("ngModel",i.registration.Registration.Country),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegPhoneVisible)),e.R7$(2),e.SpI(" ",e.bMT(108,97,e.bMT(107,95,"events.registration.wizard.contact.phone-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegPhoneRequired)),e.R7$(2),e.R50("ngModel",i.registration.Registration.Phone))},dependencies:[Q.u,qe.J,pe.D,I.bT,_.me,_.BC,_.vS,I.PV,M.D9],encapsulation:2})}return n})();function mt(n,a){if(1&n){const t=e.RV6();e.j41(0,"li",4)(1,"a",5),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.bIt("click",function(i){const s=e.eBV(t).index,l=e.XpG();return i.preventDefault(),e.Njj(l.handleAttendeeLinkClick(s))}),e.j41(4,"span",6),e.EFF(5),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.nI1(9,"t
1itlecase"),e.k0s()()()}if(2&n){const t=a.$implicit,r=a.index;e.R7$(),e.Y8G("title",t.FName||t.LName?t.FName+" "+t.FName:e.bMT(3,9,e.bMT(2,7,"events.registration.wizard.attendees.attendee-tab-prefix"))+(r+1)),e.R7$(3),e.Y8G("hidden",!t.FName&&!t.LName),e.R7$(),e.Lme("",t.FName," ",t.LName,""),e.R7$(),e.Y8G("hidden",t.FName||t.LName),e.R7$(),e.Lme("",e.bMT(9,13,e.bMT(8,11,"events.registration.wizard.attendees.attendee-tab-prefix")),"",r+1,"")}}let gt=(()=>{class n{constructor(){this.attendees=[],this.enableNewButton=!1,this.onAddAttendee=new e.bkB,this.onAttendeeClick=new e.bkB}handleNewAttendeeClick(){this.onAddAttendee.emit()}handleAttendeeLinkClick(t){t<0||!this.attendees||this.onAttendeeClick.emit(t)}static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-attendee-tab-nav"]],inputs:{attendees:"attendees",enableNewButton:"enableNewButton"},outputs:{onAddAttendee:"onAddAttendee",onAttendeeClick:"onAttendeeClick"},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(r,i){1&r&&(e.j41(0,"button",0),e.bIt("click",function(){return i.handleNewAttendeeClick()}),e.nrm(1,"span",1),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"ul",2),e.DNE(6,mt,10,15,"li",3),e.k0s()),2&r&&(e.Y8G("hidden",!i.enableNewButton),e.R7$(2),e.SpI(" ",e.bMT(4,5,e.bMT(3,3,"events.registration.wizard.attendees.new-attendee-button-label")),"\n"),e.R7$(4),e.Y8G("ngForOf",i.attendees))},dependencies:[I.Sq,I.PV,M.D9],styles:[".wl-add-attendee-btn[_ngcontent-%COMP%]{margin-bottom:0}.wl-attendee-links[_ngcontent-%COMP%]{margin-top:5px}"]})}return n})();var ue=f(48795),ct=f(6749),te=f(94638),D=f(36941);let W=(()=>{class n{constructor(t,r){this.getEventCustomRegFields=i=>{let s="Event/"+i.toString()+"/CustomFields?PageSize=0&PageNumber=0&OrderBy=DisplayOrder:Asc,Id:Asc";return this._apiService.get(s)},this.getEventCustomRegField=i=>{let s="EventItemCustomField/"+i.toString();return this._apiService.get(s)},this.upsertEventCustomRegField=i=>{let s="";return s="Event/"+i.EventId.toString()+"/CustomFields",i.Id>0?this._apiService.put(s,i):this._apiService.post(s,i)},this.deleteEventCustomRegField=i=>{let s="";return s="EventItemCustomField/"+i.toString(),this._apiService.delete(s).then(()=>Promise.resolve())},this._apiService=t,this._utilService=r}reorderCustomFields(t,r){return this._apiService.post("/Event/"+t+"/OrderCustomFields",r)}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(F.Gf),e.KVO(F.a0))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var k=function(n){return n[n.Hidden=0]="Hidden",n[n.RegistrationOnly=1]="RegistrationOnly",n[n.AttendeeOnly=2]="AttendeeOnly",n[n.BothRegistrationAndAttendee=3]="BothRegistrationAndAttendee",n}(k||{}),ht=f(75023);class pt{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 ht.u}}var ut=f(44504),ft=f(17356);function vt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.customField.FieldName)}}function _t(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.customField.Descr)}}function It(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"currency"),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" (",e.bMT(2,1,t.customField.Amount),") ")}}function Rt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"label")(2,"input",7),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.response.Response,i)||(s.response.Response=i),e.Njj(i)}),e.k0s(),e.DNE(3,vt,2,1,"span",6)(4,_t,2,1,"span",6)(5,It,3,3,"span",6),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.R50("ngModel",t.response.Response),e.R7$(),e.Y8G("ngIf",!t.customField.Descr),e.R7$(),e.Y8G("ngIf",t.customField.Descr),e.R7$(),e.Y8G("ngIf",t.customField.Amount>0)}}function Ct(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.customField.FieldName)}}function yt(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.customField.Descr)}}function bt(n,a){1&n&&(e.j41(0,"label",9),e.EFF(1,"*"),e.k0s())}function St(n,a){if(1&n&&(e.j41(0,"label",2),e.DNE(1,Ct,2,1,"span",6)(2,yt,2,1,"span",6)(3,bt,2,0,"label",8),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.customField.Descr),e.R7$(),e.Y8G("ngIf",t.customField.Descr),e.R7$(),e.Y8G("ngIf",t.requiredField(t.customField.Required))}}function Ft(n,a){if(1&n&&e.nrm(0,"option",13),2&n){const t=a.$implicit,r=e.XpG(2);e.Y8G("value",t.Id)("disabled",t.UnitsAvailable>0&&t.UnitsAvailable<=t.UnitsTaken&&t.Id!=(null==r.response?null:r.response.EventCustomRegFieldAvailValuesId))("text",r.getAvailableValueOptionTextForDropdownType(t))}}function Mt(n,a){if(1&n){const t=e.RV6();e.j41(0,"select",10),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.response.EventCustomRegFieldAvailValuesId,i)||(s.response.EventCustomRegFieldAvailValuesId=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onDropdownSelectedValueChange())}),e.j41(1,"option",11),e.EFF(2,"Select one..."),e.k0s(),e.DNE(3,Ft,1,3,"option",12),e.k0s()}if(2&n){const t=e.XpG();e.R50("ngModel",t.response.EventCustomRegFieldAvailValuesId),e.R7$(),e.Y8G("value",0),e.R7$(2),e.Y8G("ngForOf",null==t.customField?null:t.customField.AvailableValues)}}function Tt(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",14),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.response.Response,i)||(s.response.Response=i),e.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG();e.R50("ngModel",t.response.Response)}}function Et(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",15),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.response.Response,i)||(s.response.Response=i),e.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG();e.R50("ngModel",t.response.Response)}}function Pt(n,a){if(1&n){const t=e.RV6();e.j41(0,"textarea",10),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.response.Response,i)||(s.response.Response=i),e.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG();e.R50("ngModel",t.response.Response)}}function At(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"events.registration.shared.custom-field.no-longer-available"))," "))}let wt=(()=>{class n{get isCheckBox(){return this.customField&&"Checkbox"==this.customField.UiControlType}get isDropDownList(){return this.customField&&"DropdownList"==this.customField.UiControlType}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&&"TextboxSingleLine"==this.customField.UiControlType}get isTextArea(){return this.customField&&"TextboxMultiLine"==this.customField.UiControlType}constructor(t,r){this._translateService=t,this.responseChange=new e.bkB,this.getValidationResult=()=>{let i=new A.n;return i.isValid=!0,i},this.hasItemsAvailable=()=>{if("DropdownList"!=this.customField.UiControlType||this.response.EventCustomRegFieldAvailValuesId<=0)return!1;let i=this.response&&this.customField.AvailableValues.find(s=>s.Id==this.response.EventCustomRegFieldAvailValuesId);return i&&i&&i.UnitsAvailable>0&&i.UnitsTaken>=i.UnitsAvailable},this.requiredField=i=>i==this.signUpOrAttendeeType&&this.signUpOrAttendeeType>0||3==i,this._utilService=r,this.signUpOrAttendeeType=0}ngOnInit(){}onDropdownSelectedValueChange(){if("DropdownList"!=this.customField.UiControlType)return;let t=this.customField.AvailableValues.find(r=>r.Id==this.response.EventCustomRegFieldAvailValuesId);this.response&&(this.response.Response=t?t.Value:""),this.responseChange.emit(this.response)}getAvailableValueOptionTextForDropdownType(t){let r="";return t.UnitsAvailable>t.UnitsTaken?r=" "+(t.UnitsAvailable-t.UnitsTaken).toString()+" "+this._translateService.instant("common.available"):t.UnitsAvailable>0&&(r=" ("+this._translateService.instant("common.unavailable")+")"),t.Amount>
10&&(r=" ("+t.Amount.toLocaleString("en-US",{style:"currency",currency:"USD"})+") "+r),(t.Descr&&t.Descr.search(/\S/)>-1?t.Descr:t.Value)+r}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(M.c$),e.rXU(ft.a))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-custom-reg-field"]],inputs:{customField:"customField",response:"response",signUpOrAttendeeType:"signUpOrAttendeeType"},outputs:{responseChange:"responseChange"},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(r,i){1&r&&(e.j41(0,"div",0),e.DNE(1,Rt,6,4,"div",1)(2,St,4,3,"label",1),e.j41(3,"div",2),e.DNE(4,Mt,4,3,"select",3)(5,Tt,1,1,"input",4)(6,Et,1,1,"input",5)(7,Pt,1,1,"textarea",3)(8,At,4,5,"div",6),e.k0s()()),2&r&&(e.R7$(),e.Y8G("ngIf",i.isCheckBox),e.R7$(),e.Y8G("ngIf",!i.isCheckBox),e.R7$(2),e.Y8G("ngIf",i.isDropDownList),e.R7$(),e.Y8G("ngIf",i.isTextBox),e.R7$(),e.Y8G("ngIf",i.isInteger||i.isDecimal),e.R7$(),e.Y8G("ngIf",i.isTextArea),e.R7$(),e.Y8G("ngIf",i.hasItemsAvailable()))},dependencies:[I.Sq,I.bT,_.xH,_.y7,_.me,_.Q0,_.Zm,_.wz,_.BC,_.vS,I.PV,I.oe,M.D9],encapsulation:2})}return n})();function Nt(n,a){if(1&n){const t=e.RV6();e.j41(0,"wl-registration-custom-reg-field",1),e.bIt("responseChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onResponseChange(i))}),e.k0s()}if(2&n){const t=a.$implicit,r=e.XpG();e.Y8G("customField",t.customField)("response",t.response)("signUpOrAttendeeType",r.signUpOrAttendeeType)}}let fe=(()=>{class n{get responses(){return this._responses}set responses(t){this._responses=t,this._originalGivenResponses=[].concat(t),this.setupCustomFields()}get customFields(){return this._customFields}set customFields(t){this._customFields=t,this.setupCustomFields()}get visibilityFilter(){return this._customFieldVisibility}set visibilityFilter(t){this._customFieldVisibility=t,this.setupCustomFields()}get eventItemIds(){return this._eventItemIds}set eventItemIds(t){this._eventItemIds=t,this.setupCustomFields()}constructor(t){this._revenueItemService=t,this.responseChange=new e.bkB,this.customFieldsAndResponses=[],this._responses=[],this._originalGivenResponses=[],this._customFields=[],this._customFieldVisibility=[],this._eventItemIds=[]}setupCustomFields(){this._customFields||(this._customFields=[]),this.customFieldsAndResponses=this._customFields.filter(t=>this._eventItemIds.some(r=>t.EventItemIds.indexOf(r)>=0)).filter(t=>this._customFieldVisibility.indexOf(t.Visible)>=0).map(t=>({customField:t,response:this.getOrCreateResponseForCustomField(t)})).filter(t=>!!t.response),setTimeout(()=>{for(;this._responses.length;)this._responses.pop();this.customFieldsAndResponses.map(t=>t.response).forEach(t=>this._responses.push(t))})}onResponseChange(t){if(t.CustomField.ItemNum>0&&t.CustomField.AvailableValues&&t.CustomField.AvailableValues.length){const r=t.CustomField.AvailableValues.find(i=>i.Id==t.EventCustomRegFieldAvailValuesId);this._revenueItemService.getItemTaxAmount(t.CustomField.ItemNum,r.Amount).then(i=>{r.TaxAmount=i,this.responseChange.emit(t)})}else this.responseChange.emit(t)}getOrCreateResponseForCustomField(t){let r=null;if(this._originalGivenResponses){let i=this._originalGivenResponses.find(s=>s.EventCustomRegFieldId==t.Id);i&&(r=i)}return null==r&&(r=new pt,this._originalGivenResponses.push(r)),null==r.CustomField&&(r.CustomField=JSON.parse(JSON.stringify(t))),r.CustomField.Amount=t.Amount,r.CustomField.AvailableValues=t.AvailableValues,r.CustomField.Descr=t.Descr,r.CustomField.DisplayOrder=t.DisplayOrder,r.CustomField.EventId=t.EventId,r.CustomField.EventItemIds=t.EventItemIds,r.CustomField.FieldName=t.FieldName,r.CustomField.Required=t.Required,r.CustomField.StaffOnly=t.StaffOnly,r.CustomField.UiControlType=t.UiControlType,r.CustomField.Id=r.EventCustomRegFieldId=t.Id,r.CustomField.Visible=t.Visible,r.CustomField.ItemNum=t.ItemNum,r}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(ut.f))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-custom-reg-fields"]],inputs:{responses:"responses",signUpOrAttendeeType:"signUpOrAttendeeType",customFields:"customFields",visibilityFilter:"visibilityFilter",eventItemIds:"eventItemIds"},outputs:{responseChange:"responseChange"},decls:1,vars:1,consts:[[3,"customField","response","signUpOrAttendeeType","responseChange",4,"ngFor","ngForOf"],[3,"responseChange","customField","response","signUpOrAttendeeType"]],template:function(r,i){1&r&&e.DNE(0,Nt,1,3,"wl-registration-custom-reg-field",0),2&r&&e.Y8G("ngForOf",i.customFieldsAndResponses)},dependencies:[I.Sq,wt]})}return n})();const jt=["profileIndDupChecker"],Dt=(n,a)=>[n,a];function kt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Gt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function zt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Ot(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function $t(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Bt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Wt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Vt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function xt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Ut(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Yt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Lt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function Xt(n,a){1&n&&(e.j41(0,"label",41),e.EFF(1,"*"),e.k0s())}function qt(n,a){if(1&n){const t=e.RV6();e.j41(0,"li")(1,"div",3)(2,"label")(3,"input",42),e.mxI("ngModelChange",function(i){const s=e.eBV(t).$implicit;return e.DH7(s.Selected,i)||(s.Selected=i),e.Njj(i)}),e.bIt("ngModelChange",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.attendeeItemSelectionChanged(i))}),e.k0s(),e.EFF(4),e.k0s()()()}if(2&n){const t=a.$implicit;e.R7$(),e.Y8G("hidden",t.AttendeesForItem<=0),e.R7$(2),e.R50("ngModel",t.Selected),e.R7$(),e.SpI(" ",t.Descr," ")}}function Ht(n,a){1&n&&(e.j41(0,"div",24)(1,"div",23)(2,"h4"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(5,3,e.bMT(4,1,"events.registration.wizard.attendees.custom-reg-field-title"))))}let Jt=(()=>{class n{static#e=this.ComponentUniqueId=0;get attendee(){return this._attendee}set attendee(t){this._attendee=t,t&&(this._copiedValuesProfileId=t.ProfileId),this.updateSelectedItemsList()}get eventItems(){return this._attendeeEventItems}set eventItems(t){this._attendeeEventItems=t,this.updateSelectedItemsList()}constructor(t,r,i,s,l,o){this._utilService=t,this._eventItemService=r,this._translationService=i,this._registrationService=s,this._userService=l,this._eventCustomRegFieldService=o,this.searchAllProfiles=!1,this.allPossibleCustomFields=[],this.editingRegistration=!1,this.registrationProfileId=0,this.event=new j,this.responseChange=new e.bkB,this.onItemSelectionChanged=new e.bkB,this.remove=ne
1w e.bkB,this._attendee=new ue.U,this._attendeeEventItems=[],this._eventFieldVisibleRequiredEnum=k,this._selectedEventItemIds=[],this._copiedValuesProfileId=0,this._lastChosenProfile=null,this._uniqueId=0,this.isLoggedIn=!1,this.signUpOrAttendeeType=2,this.requiredField=c=>2==c||3==c,this.searchAllProfiles=!1,this.availableEventItems=new Array,this.canAddNewAttendee=!1,this.isLoggedIn=!1,this.currentUserProfile=new ee.N}ngOnInit(){this._uniqueId=n.ComponentUniqueId++,this._userService.getCurrentUserProfileExtended().then(t=>{this.currentUserProfile=t,this.currentUserProfile.ProfileId>0&&(this.isLoggedIn=!0)})}ngOnChanges(t){this.updateSelectedItemsList()}getValidationResult(){let t=new A.n;return t.isValid=!0,t}displayField(t){return(2&t)>0}updateProfileInfo(t,r){if(t.ProfileId>0&&(t.ProfileId!=r.ProfileId||t.LastName!=r.LName||t.FirstName!=r.FName||t.Email!=r.Email)){let i=r.OrgName;this._utilService.isNullEmptyOrWhitespace(i);let s=r.FName,l=r.LName;this._utilService.map(t,r),this._copiedValuesProfileId=t.ProfileId,r.Phone=t.WorkPhone,1==t.OrgInd?(r.ProfileId=this.registrationProfileId,r.OrgName=t.OrgName,r.FName=s,r.LName=l,r.NameForBadge=(s+" "+l).trim()):(r.ProfileId=t.ProfileId,r.Prefix=t.Prefix,r.Title=t.Title,r.FName=t.FirstName,r.LName=t.LastName,r.NameForBadge=t.ReportName,r.OrgName=i)}}profileChanged(t,r){this._lastChosenProfile=t,r.AttendeeId<=0&&this.updateProfileInfo(t,r)}relatedProfileChanged(t,r){this._lastChosenProfile=t,r.AttendeeId<=0&&this.updateProfileInfo(t,r)}attendeeItemSelectionChanged(t){this.updateSelectedItemsList(),this.onItemSelectionChanged.emit(t)}onResponseChange(t){this.responseChange.emit(t)}onIndivNameChange(t){if(t.AttendeeId>0)return;let r=t.LName;this._utilService.isNotNullEmptyOrWhitespace(t.FName)&&(r=t.FName+" "+t.LName),t.NameForBadge=r}onLastNameChange(t){if(t.ProfileId<=0&&1==t.CreateProfile){let r=t.LName;this._utilService.isNotNullEmptyOrWhitespace(t.FName)&&(r=t.FName+" "+t.LName),this.profileIndDupChecker.getPossibleDuplicates(r).then(i=>{i.length>0?this.profileIndDupChecker.show():this.profileIndDupChecker.hide()})}}onDupCheckerIndNameProfileSelected(t,r){this._lastChosenProfile=t,this.updateProfileInfo(t,r)}updateSelectedItemsList(){this._selectedEventItemIds=this.attendee.Items.filter(t=>t.Selected).map(t=>t.EventItemId)}handleCopyProfileInfoClick(){this.updateProfileInfo(this._lastChosenProfile,this.attendee)}handleRemoveAttendeeClick(){this.remove.emit(this.attendee)}static#t=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(D.B),e.rXU(O.L),e.rXU(P.f),e.rXU(V.D),e.rXU(W))};static#i=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-attendee"]],viewQuery:function(r,i){if(1&r&&e.GBs(jt,5),2&r){let s;e.mGM(s=e.lsd())&&(i.profileIndDupChecker=s.first)}},inputs:{attendee:"attendee",eventItems:"eventItems",searchAllProfiles:"searchAllProfiles",allPossibleCustomFields:[e.Mj6.None,"customFields","allPossibleCustomFields"],editingRegistration:"editingRegistration",registrationProfileId:"registrationProfileId",event:"event"},outputs:{responseChange:"responseChange",onItemSelectionChanged:"onItemSelectionChanged",remove:"remove"},features:[e.Jv_([D.B,W]),e.OA$],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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"label",5),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"titlecase"),e.k0s(),e.j41(8,"div",6)(9,"wl-related-profile-selector",7,0),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.ProfileId,o)||(i.attendee.ProfileId=o),e.Njj(o)}),e.bIt("onProfileChanged",function(o){return e.eBV(s),e.Njj(i.relatedProfileChanged(o,i.attendee))})("onProfilesLoaded",function(o){return e.eBV(s),e.Njj(i.attendee.searchAllProfiles=i.attendee.ProfileId>0&&!o)}),e.k0s()()()(),e.j41(11,"div",4)(12,"label",8),e.EFF(13),e.nI1(14,"translate"),e.nI1(15,"titlecase"),e.DNE(16,kt,2,0,"label",9),e.k0s(),e.j41(17,"div",6)(18,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.OrgName,o)||(i.attendee.OrgName=o),e.Njj(o)}),e.k0s()()(),e.j41(19,"div",4)(20,"label",11),e.EFF(21),e.nI1(22,"translate"),e.nI1(23,"titlecase"),e.DNE(24,Gt,2,0,"label",9),e.k0s(),e.j41(25,"div",6)(26,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Prefix,o)||(i.attendee.Prefix=o),e.Njj(o)}
1),e.k0s()()(),e.j41(27,"div",4)(28,"label",12),e.EFF(29),e.nI1(30,"translate"),e.nI1(31,"titlecase"),e.DNE(32,zt,2,0,"label",9),e.k0s(),e.j41(33,"div",6)(34,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.FName,o)||(i.attendee.FName=o),e.Njj(o)}),e.bIt("ngModelChange",function(){return e.eBV(s),e.Njj(i.onIndivNameChange(i.attendee))}),e.k0s()()(),e.j41(35,"div",4)(36,"label",13),e.EFF(37),e.nI1(38,"translate"),e.nI1(39,"titlecase"),e.DNE(40,Ot,2,0,"label",9),e.k0s(),e.j41(41,"div",6)(42,"input",14),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.LName,o)||(i.attendee.LName=o),e.Njj(o)}),e.bIt("blur",function(){return e.eBV(s),e.Njj(i.onLastNameChange(i.attendee))})("ngModelChange",function(){return e.eBV(s),e.Njj(i.onIndivNameChange(i.attendee))}),e.k0s()()(),e.j41(43,"div",4)(44,"label",15),e.EFF(45),e.nI1(46,"translate"),e.nI1(47,"titlecase"),e.DNE(48,$t,2,0,"label",9),e.k0s(),e.j41(49,"div",6)(50,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Title,o)||(i.attendee.Title=o),e.Njj(o)}),e.k0s()()(),e.j41(51,"div",4)(52,"label",5),e.EFF(53),e.nI1(54,"translate"),e.nI1(55,"titlecase"),e.DNE(56,Bt,2,0,"label",9),e.k0s(),e.j41(57,"div",6)(58,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.NameForBadge,o)||(i.attendee.NameForBadge=o),e.Njj(o)}),e.k0s()()(),e.j41(59,"div",4)(60,"label",16),e.EFF(61),e.nI1(62,"translate"),e.nI1(63,"titlecase"),e.DNE(64,Wt,2,0,"label",9),e.k0s(),e.j41(65,"div",6)(66,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Email,o)||(i.attendee.Email=o),e.Njj(o)}),e.k0s()()(),e.j41(67,"div",4)(68,"label",17),e.EFF(69),e.nI1(70,"translate"),e.nI1(71,"titlecase"),e.DNE(72,Vt,2,0,"label",9),e.k0s(),e.j41(73,"div",6)(74,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Phone,o)||(i.attendee.Phone=o),e.Njj(o)}),e.k0s()()()(),e.j41(75,"div",18)(76,"div",19)(77,"label",20),e.EFF(78),e.nI1(79,"translate"),e.nI1(80,"titlecase"),e.DNE(81,xt,2,0,"label",9),e.k0s(),e.j41(82,"label",21),e.EFF(83),e.nI1(84,"translate"),e.nI1(85,"titlecase"),e.DNE(86,Ut,2,0,"label",9),e.k0s(),e.j41(87,"div",22)(88,"div",19)(89,"div",23)(90,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Address1,o)||(i.attendee.Address1=o),e.Njj(o)}),e.k0s()()(),e.j41(91,"div",19)(92,"div",23)(93,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Address2,o)||(i.attendee.Address2=o),e.Njj(o)}),e.k0s()()(),e.j41(94,"div",24)(95,"div",25)(96,"div",19)(97,"label",26),e.EFF(98),e.nI1(99,"translate"),e.nI1(100,"titlecase"),e.DNE(101,Yt,2,0,"label",9),e.k0s(),e.j41(102,"div",23)(103,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.City,o)||(i.attendee.City=o),e.Njj(o)}),e.k0s()()()(),e.j41(104,"div",27)(105,"div",19)(106,"label",28),e.EFF(107),e.nI1(108,"translate"),e.nI1(109,"titlecase"),e.DNE(110,Lt,2,0,"label",9),e.k0s(),e.j41(111,"div",23)(112,"wl-state-selector",29),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.State,o)||(i.attendee.State=o),e.Njj(o)}),e.k0s()()()(),e.j41(113,"div",30)(114,"div",24)(115,"label",31),e.EFF(116),e.nI1(117,"translate"),e.nI1(118,"titlecase"),e.DNE(119,Xt,2,0,"label",9),e.k0s(),e.j41(120,"div",23)(121,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.attendee.Zip,o)||(i.attendee.Zip=o),e.Njj(o)}),e.k0s()()()()()()()(),e.j41(122,"div",32)(123,"p")(124,"button",33),e.bIt("click",function(){return e.eBV(s),e.Njj(i.handleRemoveAttendeeClick())}),e.nrm(125,"span",34),e.EFF(126),e.nI1(127,"translate"),e.nI1(128,"titlecase"),e.k0s()(),e.j41(129,"h3"),e.EFF(130),e.nI1(131,"translate"),e.nI1(132,"titlecase"),e.k0s(),e.j41(133,"ul",35),e.DNE(134,qt,5,3,"li",36),e.k0s()()(),e.j41(135,"div",24)(136,"div",37)(137,"div",38),e.DNE(138,Ht,6,5,"div",39),e.j41(139,"wl-registration-custom-reg-fields",40),e.bIt("responseChange",function(o){return e.eBV(s),e.Njj(i.onResponseChange(o))}),e.k0s()()()()}2&r&&(e.R7$(2),e.Y8G("hidden",i.attendee.CreateProfile),e.R7$(),e.Y8G("hidden",0==i.isLoggedIn||0==i.registrationProfileId),e.R7$(2),e.SpI(" ",e.bMT(7,79,e.bMT(6,77,"events.registration.wizard.attendees.profile-lookup-label"))," "),e.R7$(4),e.R50("ngModel",i.attendee.ProfileId),e.Y8G("relatedProfileId",i.registrationProfileId)("includeSelectValue",!0),e.R7$(2),e.Y8G("hidden",!i.displayField(i.event.RegCompanyNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(15,83,e.bMT(14,81,"events.registration.wizard.contact.org-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegCompanyNameRequired)),e.R7$(2),e.Y8G("name","attendeeContactOrgName-"+i._uniqueId),e.R50("ngModel",i.attendee.OrgName),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegPrefixVisible)),e.R7$(2),e.SpI(" ",e.bMT(23,87,e.bMT(22,85,"events.registration.wizard.contact.prefix-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegPrefixRequired)),e.R7$(2),e.Y8G("name","attendeePrefix-"+i._uniqueId),e.R50("ngModel",i.attendee.Prefix),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegFNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(31,91,e.bMT(30,89,"events.registration.wizard.contact.first-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegFNameRequired)),e.R7$(2),e.Y8G("name","attendeeFirstName-"+i._uniqueId),e.R50("ngModel",i.attendee.FName),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegLNameVisible)),e.R7$(2),e.SpI(" ",e.bMT(39,95,e.bMT(38,93,"events.registration.wizard.contact.last-name-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegLNameRequired)),e.R7$(2),e.Y8G("name","attendeeLastName-"+i._uniqueId),e.R50("ngModel",i.attendee.LName),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegTitleVisible)),e.R7$(2),e.SpI(" ",e.bMT(47,99,e.bMT(46,97,"events.registration.wizard.contact.title-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegTitleRequired)),e.R7$(2),e.Y8G("name","attendeeTitle-"+i._uniqueId),e.R50("ngModel",i.attendee.Title),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegNameForBadgeVisible)),e.R7$(2),e.SpI(" ",e.bMT(55,103,e.bMT(54,101,"events.registration.wizard.attendees.name-for-badge-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegNameForBadgeRequired)),e.R7$(2),e.Y8G("name","attendeeNameForBadge-"+i._uniqueId),e.R50("ngModel",i.attendee.NameForBadge),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegEmailVisible)),e.R7$(2),e.SpI(" ",e.bMT(63,107,e.bMT(62,105,"events.registration.wizard.contact.email-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegEmailRequired)),e.R7$(2),e.Y8G("name","attendeeEmail-"+i._uniqueId),e.R50("ngModel",i.attendee.Email),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegPhoneVisible)),e.R7$(2),e.SpI(" ",e.bMT(71,111,e.bMT(70,109,"events.registration.wizard.contact.phone-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegPhoneRequired)),e.R7$(2),e.Y8G("name","attendeePhone-"+i._uniqueId),e.R50("ngModel",i.attendee.Phone),e.R7$(),e.Y8G("hidden",!i.displayField(i.event.RegAddressVisible)),e.R7$(3),e.SpI(" ",e.bMT(80,115,e.bMT(79,113,"events.registration.wizard.contact.address-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.SpI(" ",e.bMT(85,119,e.bMT(84,117,"events.registration.wizard.contact.address-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(4),e.Y8G("name","attendeeAddress1-"+i._uniqueId),e.R50("ngModel",i.attendee.Address1),e.R7$(3),e.Y8G("name","attendeeAddress2-"+i._uniqueId),e.R50("ngModel",i.attendee.Address2),e.R7$(5),e.SpI(" ",e.bMT(100,123,e.bMT(99,121,"events.registration.wizard.contact.city-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.Y8G("name","attendeeCity-"+i._uniqueId),e.R50("ngModel",i.attendee.City),e.R7$(4),e.SpI(" ",e.bMT(109,127,e.bMT(108,125,"events.registration.wizard.contact.state-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.Y8G("skipPreSelect",!0)("name","attendeeState-"+i._uniqueId),e.R50("ngModel",i.attendee.State),e.R7$(4),e.SpI(" ",e.bMT(118,131,e.bMT(117,129,"events.registration.wizard.contact.zip-label"))," "),e.R7$(3),e.Y8G("ngIf",i.requiredField(i.event.RegAddressRequired)),e.R7$(2),e.Y8G("name","attendeeZip-"+i._uniqueId),e.R50("ngModel",i.attendee.Zip),e.R7$(5),e.SpI(" ",e.bMT(128,135,e.bMT(127,133,"events.registration.wizard.attendees.remove-attendee-button-label"))," "),e.R7$(4),e.JRh(e.bMT(132,139,e.bMT(131,137,"events.registration.wizard.attendees.assign-items-label"))),e.R7$(4),e.Y8G("ngForOf",i.attendee.Items),e.R7$(4),e.Y8G("ngIf",null==i.attendee.CustomFieldResponses?null:i.attendee.CustomFieldResponses.length),e.R7$(),e.Y8G("customFields",i.allPossibleCustomFields)("responses",i.attendee.CustomFieldResponses)("visibilityFilter",e.l_i(141,Dt,i._eventFieldVisibleRequiredEnum.AttendeeOnly,i._eventFieldVisibleRequiredEnum.BothRegistrationAndAttendee))("eventItemIds",i._selectedEventItemIds)("signUpOrAttendeeType",i.signUpOrAttendeeType))},dependencies:[Q.u,pe.D,I.Sq,I.bT,_.me,_.Zm,_.BC,_.vS,fe,I.PV,M.D9],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}"]})}return n})();function Qt(n,a){if(1&n&&(e.j41(0,"p"),e.nrm(1,"wl-busy",8),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("show",t._loading)}}function Zt(n,a){1&n&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"events.registration.wizard.attendees.no-attendees-added")))}function Kt(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",9)(2,"span",6),e.EFF(3),e.k0s(),e.j41(4,"span",6),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"titlecase"),e.k0s()(),e.j41(8,"wl-registration-wizard-attendee",10),e.bIt("responseChange",function(i){const s=e.eBV(t).$implicit,l=e.XpG();return e.Njj(l.onResponseChange(i,s))})("onItemSelectionChanged",function(i){const s=e.eBV(t).$implicit,l=e.XpG();return e.Njj(l.attendeeItemSelectionChanged(i,s))})("remove",function(){const i=e.eBV(t).$implicit,s=e.XpG();return e.Njj(s.removeAttendee(i))}),e.k0s()()}if(2&n){const t=a.$implicit,r=a.index,i=e.XpG();e.ZvI("wc-event-reg-wiz-attendee highlight-box has-violator-tag wc-event-reg-wiz-attendee-",r,""),e.R7$(),e.FS9("id","divAttendee"+(r+1).toString()),e.R7$(),e.Y8G("hidden",!t.FName&&!t.LName),e.R7$(),e.Lme("",t.FName," ",t.LName,""),e.R7$(),e.Y8G("hidden",t.FName||t.LName),e.R7$(),e.Lme("",e.bMT(7,19,e.bMT(6,17,"events.registration.wizard.attendees.attendee-tab-prefix")),"",r+1,""),e.R7$(3),e.Y8G("attendee",t)("eventItems",t.Items)("customFields",i.allPossibleCustomFields)("searchAllProfiles",i.searchAllProfiles)("editingRegistration",null==i.registration?null:i.registration.IsEdit)("registrationProfileId",i.registrationProfile&&i.registrationProfile.OrgInd?i.registrationProfile.ProfileId:0)("event",i.event)}}let ei=(()=>{class n{constructor(t,r,i,s,l,o,c,R){this._el=o,this.registration=new N.R,this.registrationProfile=null,this.customFieldResponseChangeEmitter=new e.bkB,this.event=new j,this.initialLoadComplete=!1,this._eventFieldVisibleRequiredEnum=k,this._iAmAsloAnAttendeeConfigSetting=!1,this._loading=!1,this.signUpOrAttendeeType=2,this.loadData=()=>{let p=[];return this._loading=!0,p.push(this.updateAllPossibleCustomFields()),this.registrationId>0&&p.push(this._registrationService.getRegistrationAttendeesMin(this.registrationId).then(g=>{this.registration.Attendees=g,this.registration.Attendees.forEac
1h((m,d)=>{m.Items&&m.Items.forEach(h=>h.Selected=!0),this.addAllowedRegistrationAttendeeItemsToAttendee(m,!1)})})),this._iAmAsloAnAttendeeConfigSetting=this._configSettingService.getConfigSettingValueFromCollectionAsBoolean("IAmAlsoAnAttendee",this.configSettings),Promise.all(p).then(()=>{this.initialLoadComplete=!0,this._loading=!1},()=>this._loading=!1)},this.getValidationResult=()=>{let p=new A.n;if(p.isValid=!0,this.registration.Attendees.filter(h=>this._utilService.isNotNullEmptyOrWhitespace(h.Email)||this._utilService.isNotNullEmptyOrWhitespace(h.FName)||this._utilService.isNotNullEmptyOrWhitespace(h.LName)),0==!this.registration.Attendees.some(h=>!h.Items.some(u=>u.Selected&&u.AttendeesForItem>0))?(p.isValid=!1,p.errors.push(this._translationService.getInstant("events.registration.wizard.attendees.attendees-not-assigned-to-item-validation-error"))):p.isValid=!0,!this.verifyAllRequiredFieldsAreSet()){p.isValid=!1;let h=this._translationService.getInstant("events.registration.wizard.attendees.attendee-required-fields-validation-error")+": ";for(let u of this.requiredFieldsNotPopulated)h=h+" "+u+" ";p.errors.push(h)}return p},this.updateAvailableAttendeeRegistrationItems=p=>{if(this.updateCanAddNewAttendee(),this.canAddNewAttendee&&p){for(let m of this.registration.Attendees)this.addAllowedRegistrationAttendeeItemsToAttendee(m,!1);let g=this.registration.Attendees.filter(m=>!m.Items.some(d=>d.Selected));if(g.length){let m=this.registration.Items.filter(d=>d.AttendeesForItem>0&&this.getAttendeesRemainigForRegistrationItem(d.EventItemId)>0);for(;g.length&&m.length;){let d=m[0],u=g[0].Items.find(v=>v.EventItemId==d.EventItemId);if(!u)break;u.Selected=!0,g=this.registration.Attendees.filter(v=>!v.Items.some(C=>C.Selected)),m=this.registration.Items.filter(v=>v.AttendeesForItem>0&&this.getAttendeesRemainigForRegistrationItem(v.EventItemId)>0)}}for(this.updateCanAddNewAttendee();this.canAddNewAttendee;)this.newAttendee();for(let m of this.registration.Attendees)this.addAllowedRegistrationAttendeeItemsToAttendee(m,!0);this.updateCanAddNewAttendee()}else if(p&&this.registration.Attendees&&this.registration.Attendees.length){let g=this.registration.Items.filter(u=>u.AttendeesForItem>0&&(!u.Quantity||u.Quantity<=0));if(g.length){let u=g.map(v=>v.EventItemId);for(let v of this.registration.Attendees.filter(C=>C.Items.some(E=>u.indexOf(E.EventItemId)>-1)))v.Items=v.Items.filter(C=>u.indexOf(C.EventItemId)<0);this.registration.Attendees.filter(v=>v.AttendeeId>0&&!v.Items.length).forEach(v=>{let C=this.registration.Attendees.indexOf(v);C>=0&&this.registration.Attendees.splice(C,1)})}const m=u=>u.filter(v=>v.AttendeesForItem>0).filter(v=>this.getAttendeesForRegistrationItem(v.EventItemId).length>0&&this.getAttendeesRemainigForRegistrationItem(v.EventItemId)<0);let d=m(this.registration.Items);for(;d.length;
1)d.forEach(u=>{let v=this.registration.Attendees.map(C=>C.Items.filter(E=>E.EventItemId==u.EventItemId&&E.Selected)).filter(C=>C.length>0);v.length&&(v[v.length-1][0].Selected=!1)}),d=m(this.registration.Items);let h=0;for(let u of this.registration.Items)u.Quantity>0&&(h+=u.Quantity*u.AttendeesForItem);this.registration.Attendees.length>h&&(this.registration.Attendees.length=h),this.updateCanAddNewAttendee()}},this.updateAllPossibleCustomFields=()=>this._eventCustomRegFieldService.getEventCustomRegFields(this.event.EventId).then(p=>{this.allPossibleCustomFields=new Array;for(let g of p.Result)g.StaffOnly||this.allPossibleCustomFields.push(g)}),this.getRegistrationItem=p=>{let g=this.registration.Items.filter(m=>m.EventItemId==p);return g.length>0?g[0]:new te.R},this.getAttendeesForRegistrationItem=p=>{let g=new Array;for(let m of this.registration.Attendees)for(let d of m.Items)1==d.Selected&&d.EventItemId==p&&g.push(m);return g},this.getAttendeesRemainigForRegistrationItem=p=>{let g=0,m=this.getRegistrationItem(p);if(m.Quantity>0){let h=this.getAttendeesForRegistrationItem(p).length;g=m.AttendeesForItem*m.Quantity-h}return g},this.addAllowedRegistrationAttendeeItemsToAttendee=(p,g)=>{let m=!1;for(let d of this.registration.Items.filter(h=>h.AttendeesForItem>0&&h.Quantity>0)){let h=p.Items.filter(u=>u.EventItemId==d.EventItemId);if(h.length)h[0]&&(h[0].DisplayOrder=d.DisplayOrder,h[0].AttendeesForItem=d.AttendeesForItem);else{let u=new ct.P;this._utilService.map(d,u),u.Remaining=this.getAttendeesRemainigForRegistrationItem(d.EventItemId),g&&(u.Selected=u.Remaining>0),p.Items.push(u),m=!0}}m&&p.Items.sort((d,h)=>d.DisplayOrder<h.DisplayOrder?-1:d.DisplayOrder>h.DisplayOrder?1:d.Descr.toLocaleLowerCase()<h.Descr.toLocaleLowerCase()?-1:d.Descr.toLocaleLowerCase()>h.Descr.toLocaleLowerCase()?1:0)},this.getPotentialAttendeesForRegistrationItem=p=>{let g=0,m=this.getRegistrationItem(p);return g=m.AttendeesForItem,m.Quantity>0&&(g=m.AttendeesForItem*m.Quantity,this.getAttendeesForRegistrationItem(p)),g<0&&(g=0),g},this.attendeeItemSelectionChanged=(p,g)=>{if(p.Selected&&this.getAttendeesRemainigForRegistrationItem(p.EventItemId)<0){let d=this.registration.Attendees.filter(h=>h!=g).map(h=>h.Items.filter(u=>u.EventItemId==p.EventItemId&&u.Selected)).filter(h=>h.length>0);d.length&&(d[0][0].Selected=!1)}this.updateCanAddNewAttendee()},this.newAttendee=()=>{let p=new ue.U;p.OrgName=this.registration.Registration.OrgName,p.Email=this.registration.Registration.Email,p.ProfileId=0,this.registration.Attendees.length<=0&&this._iAmAsloAnAttendeeConfigSetting&&(this._utilService.mapSafe(this.registration.Registration,p),p.NameForBadge=p.FName+" "+p.LName,p.ProfileId=this.registration.Registration.relatedProfileId>0&&0==this.registration.Registration.relatedProfileIsOrg?this.registration.Registration.relatedProfileId:0),this.addAllowedRegistrationAttendeeItemsToAttendee(p,!0),this.registration.Attendees.push(p),this.updateCanAddNewAttendee()},this.removeAttendee=p=>{this._utilService.arrayRemoveEntry(this.registration.Attendees,p),this.updateCanAddNewAttendee()},this.updateCanAddNewAttendee=()=>{let p=!1;for(let g of this.registration.Items)g.Quantity>0&&this.getAttendeesRemainigForRegistrationItem(g.EventItemId)>0&&(p=!0);this.canAddNewAttendee!=p&&(this.canAddNewAttendee=p)},this.onResponseChange=(p,g)=>{this.customFieldResponseChangeEmitter.emit(p)},this.requiredField=p=>2==p||3==p,this.verifyAllRequiredFieldsAreSet=()=>{let p=!0,g=1,m=this._translationService.getInstant("events.registration.wizard.attendees.attendee-label");this.requiredFieldsNotPopulated=new Array;for(let d of this.registration.Attendees){this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Address1)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.address1"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(d.City)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.city"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(d.State)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.state"))),this.displayField(this.event.RegAddressVisible)&&this.requiredField(this.event.RegAddressRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Zip)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.zip"))),this.displayField(this.event.RegCompanyNameVisible)&&this.requiredField(this.event.RegCompanyNameRequired)&&this._utilService.isNullEmptyOrWhitespace(d.OrgName)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.organization-name"))),this.displayField(this.event.RegEmailVisible)&&this.requiredField(this.event.RegEmailRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Email)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.email"))),this.displayField(this.event.RegFNameVisible)&&this.requiredField(this.event.RegFNameRequired)&&this._utilService.isNullEmptyOrWhitespace(d.FName)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.first-name"))),this.displayField(this.event.RegLNameVisible)&&this.requiredField(this.event.RegLNameRequired)&&this._utilService.isNullEmptyOrWhitespace(d.LName)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.last-name"))),this.displayField(this.event.RegNameForBadgeVisible)&&this.requiredField(this.event.RegNameForBadgeRequired)&&this._utilService.isNullEmptyOrWhitespace(d.NameForBadge)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.name-for-badge"))),this.displayField(this.event.RegPhoneVisible)&&this.requiredField(this.event.RegPhoneRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Phone)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.phone"))),this.displayField(this.event.RegPrefixVisible)&&this.requiredField(this.event.RegPrefixRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Prefix)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.prefix"))),this.displayField(this.event.RegTitleVisible)&&this.requiredField(this.event.RegTitleRequired)&&this._utilService.isNullEmptyOrWhitespace(d.Title)&&(p=!1,this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+this._translationService.getInstant("common.personal-information.title")));for(let h of d.CustomFieldResponses)(2==h.CustomField.Required||3==h.CustomField.Required)&&this._utilService.isNullEmptyOrWhitespace(h.Response)&&(this.requiredFieldsNotPopulated.push(m+" "+g.toString()+" "+h.CustomField.FieldName+" "+this._translationService.getInstant("common.required")),p=!1);g+=1}return p},this._utilService=t,this._eventItemService=r,this._translationService=i,this._eventCustomRegFieldService=l,this._registrationService=s,this._configSettingService=c,this._changeDetector=R,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(t){this.scrollToElement(".wc-event-reg-wiz-attendee-"+t)}scrollToElement(t){let r=jQuery(t,this._el.nativeElement).offset(),i=jQuery(window),s=i.offset()||{top:0},l=r.top-s.top-20,o=i.height(),c=i.scrollTop();(l<c||l>c+o-60)&&i.animate({scrollY:l},{duration:900,step:p=>window.scrollTo(0,p)})}displayField(t){return(2&t)>0}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(D.B),e.rXU(O.L),e.rXU(P.f),e.rXU(W),e.rXU(e.aKT),e.rXU(z.k),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-attendees"]],inputs:{registrationProfile:"registrationProfile"},outputs:{customFieldResponseChangeEmitter:"customFieldResponseChange"},features:[e.Jv_([D.B,W])],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(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h3"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.j41(6,"span",2)(7,"button",3),e.bIt("click",function(){return i.addNewAttendee()}),e.nrm(8,"span",4),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"titlecase"),e.k0s()()(),e.DNE(12,Qt,2,1,"p",5)(13,Zt,3,3,"p",5),e.j41(14,"p",6),e.EFF(15),e.nI1(16,"translate"),e.nI1(17,"titlecase"),e.k0s(),e.DNE(18,Kt,9,21,"div",7),e.k0s()()),2&r&&(e.R7$(3),e.SpI(" ",e.bMT(5,10,e.bMT(4,8,"events.registration.wizard.attendees.title"))," "),e.R7$(4),e.Y8G("disabled",!i.canAddNewAttendee||i._loading),e.R7$(2),e.SpI(" ",e.bMT(11,14,e.bMT(10,12,"events.registration.wizard.attendees.new-attendee-button-label"))," "),e.R7$(3),e.Y8G("ngIf",i._loading),e.R7$(),e.Y8G("ngIf",!i._loading&&!i.registration.Attendees.length),e.R7$(),e.Y8G("hidden",i.canAddNewAttendee||i.registration.Attendees.length<=0),e.R7$(),e.SpI(" ",e.bMT(17,18,e.bMT(16,16,"events.registration.wizard.attendees.all-attendees-have-been-added-label"))," "),e.R7$(3),e.Y8G("ngForOf",i.registration.Attendees))},dependencies:[q.o,I.Sq,I.bT,Jt,I.PV,M.D9],styles:[".wc-event-reg-wiz-attendee[_ng
1content-%COMP%]{margin-top:25px}"]})}return n})();var ve=f(15531);const ti=(n,a)=>[n,a];function ii(n,a){if(1&n&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(t.LongDescription)}}function ni(n,a){if(1&n&&(e.j41(0,"div",21)(1,"em"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(2),e.Lme("",t.AttendeesForItem," ",e.bMT(3,2,"events.registration.wizard.items.attendees-included"),"")}}function si(n,a){1&n&&(e.j41(0,"div",21)(1,"em"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"events.registration.wizard.items.ticket-has-no-attendees-label")))}function ri(n,a){1&n&&(e.j41(0,"div",21)(1,"em"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"events.registration.wizard.items.see-below-for-additional-information")))}function oi(n,a){if(1&n&&(e.j41(0,"span",22),e.nI1(1,"translate"),e.nI1(2,"titlecase"),e.EFF(3),e.nI1(4,"currency"),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.Y8G("title",e.bMT(2,4,e.bMT(1,2,t.MembersOnly?"events.registration.wizard.items.member-price-label":"events.registration.wizard.items.non-member-price-label"))),e.R7$(3),e.JRh(e.bMT(4,6,t.NonMemberPrice))}}function ai(n,a){if(1&n&&(e.j41(0,"span")(1,"span",23),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.EFF(4),e.nI1(5,"currency"),e.k0s(),e.EFF(6,"/"),e.j41(7,"span",22),e.nI1(8,"translate"),e.nI1(9,"titlecase"),e.EFF(10),e.nI1(11,"currency"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("title",e.bMT(3,6,e.bMT(2,4,"events.registration.wizard.items.member-price-label"))),e.R7$(3),e.JRh(e.bMT(5,8,t.MemberPrice)),e.R7$(3),e.Y8G("title",e.bMT(9,12,e.bMT(8,10,"events.registration.wizard.items.non-member-price-label"))),e.R7$(3),e.JRh(e.bMT(11,14,t.NonMemberPrice))}}function li(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",24),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2).$implicit;return e.DH7(s.Quantity,i)||(s.Quantity=i),e.Njj(i)}),e.bIt("ngModelChange",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.quantityChanged())}),e.k0s()}if(2&n){const t=e.XpG(2),r=t.$implicit,i=t.index,s=e.XpG();e.Mz_("name","eventItemQuantity_",i,""),e.Y8G("hidden",r.MaxItemsAvail>0&&r.Remaining<1),e.R50("ngModel",r.Quantity),e.Y8G("min",0)("max",s.getMaxItemInput(r))}}function di(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,r=e.XpG();e.R7$(),e.JRh(r.getRestrictedItemMessageOrDefault(t))}}function mi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,r=e.XpG();e.R7$(),e.JRh(r.getTeaserMessageOrDefault(t))}}function gi(n,a){if(1&n&&(e.j41(0,"p",25),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"ucfirst"),e.nI1(4,"translate"),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.E5c(" ",e.bMT(3,5,e.bMT(2,3,"events.registration.wizard.attendees.reg-limit-prepend")),"",t.LimitPerRegistration,"",e.bMT(4,7,"events.registration.wizard.attendees.reg-limit-postpend")," ")}}function ci(n,a){if(1&n&&(e.j41(0,"div",12)(1,"div",13)(2,"strong"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s()(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"currency"),e.k0s()()),2&n){const t=e.XpG(2).$implicit;e.R7$(3),e.JRh(e.bMT(5,4,e.bMT(4,2,"events.registration.wizard.items.total-label"))),e.R7$(4),e.JRh(e.bMT(8,6,t.DisplayPrice))}}function hi(n,a){if(1&n&&(e.j41(0,"div",2)(1,"div",3),e.EFF(2),e.DNE(3,ii,2,1,"div",10)(4,ni,4,4,"div",11)(5,si,4,3,"div",11)(6,ri,4,3,"div",11),e.k0s(),e.j41(7,"div",12)(8,"div",13)(9,"strong"),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s()(),e.j41(13,"div"),e.DNE(14,oi,5,8,"span",14)(15,ai,12,16,"span",15),e.k0s()(),e.j41(16,"div",12)(17,"div",13)(18,"strong"),e.EFF(19),e.nI1(20,"translate"),e.nI1(21,"titlecase"),e.k0s()(),e.DNE(22,li,1,6,"input",16)(23,di,2,1,"span",15)(24,mi,2,1,"span",15),e.j41(25,"div")(26,"strong"),e.DNE(27,gi,5,9,"p",17),e.j41(28,"span",18),e.EFF(29),e.nI1(30,"translate"),e.nI1(31,"titlecase"),e.k0s(),e.j41(32,"span",18),e.EFF(33),e.nI1(34,"translate"),e.nI1(35,"titlecase"),e.k0s()()()(),e.DNE(36,ci,9,8,"div",19),e.k0s()),2&n){const t=e.XpG().$implicit,r=e.XpG();e.R7$(2),e.SpI(" ",t.Descr," "),e.R7$(),e.Y8G("ngIf",t.LongDescription),e.R7$(),e.Y8G("ngIf",t.AttendeesForItem>1),e.R7$(),e.Y8G("ngIf",t.AttendeesForItem<=0),e.R7$(),e.Y8G("ngIf",t.Quantity>0&&r.hasCustomRegFields(t.EventItemId)),e.R7$(4),e.JRh(e.bMT(12,21,e.bMT(11,19,"events.registration.wizard.items.price-label"))),e.R7$(4),e.Y8G("ngIf",!t.HasMemberPricing),e.R7$(),e.Y8G("ngIf",t.HasMemberPricing),e.R7$(4),e.JRh(e.bMT(21,25,e.bMT(20,23,"events.registration.wizard.items.quantity-label"))),e.R7$(3),e.Y8G("ngIf",0==r.userIsRestrictedFromChoosingItem(t)),e.R7$(),e.Y8G("ngIf",1==r.isLoggedIn&&r.userIsRestrictedFromChoosingItem(t)),e.R7$(),e.Y8G("ngIf",0==r.isLoggedIn&&r.userIsRestrictedFromChoosingItem(t)),e.R7$(3),e.Y8G("ngIf",t.LimitPerRegistration&&t.Quantity>t.LimitPerRegistration),e.R7$(),e.Y8G("hidden",t.MaxItemsAvail<1||t.Remaining<1),e.R7$(),e.Lme("(",t.Remaining,"\xa0",e.bMT(31,29,e.bMT(30,27,"events.registration.wizard.items.items-available-text")),")"),e.R7$(3),e.Y8G("hidden",t.MaxItemsAvail<1||t.Remaining>0),e.R7$(),e.SpI("(",e.bMT(35,33,e.bMT(34,31,"events.registration.wizard.attendees.item-sold-out-label")),")"),e.R7$(3),e.Y8G("ngIf",t.Quantity>0)}}function pi(n,a){if(1&n&&(e.j41(0,"div",8),e.DNE(1,hi,37,35,"div",9),e.k0s()),2&n){const t=a.$implicit,r=e.XpG();e.R7$(),e.Y8G("ngIf",!r.userIsRestrictedFromViewingItem(t))}}function ui(n,a){1&n&&(e.j41(0,"div",26)(1,"div",27)(2,"h4"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(5,3,e.bMT(4,1,"events.registration.wizard.items.custom-reg-field-title"))))}let fi=(()=>{class n{get registration(){return this._registration}set registration(t){this._registration=t,this.updateSelectedItemQuantityTracking()}constructor(t,r,i,s,l,o,c,R,p,g){this.event=new j,this.initialLoadComplete=!1,this._registration=new N.R,this._eventFieldVisibleRequiredEnum=k,this._selectedEventItemIds=[],this.allPossibleCustomFields=[],this.signUpOrAttendeeType=1,this.loadData=()=>{let m=[],d=[],h=[];return m.push(this._eventCustomRegFieldService.getEventCustomRegFields(this.event.EventId).then(u=>{for(let v of u.Result)v.StaffOnly||this.allPossibleCustomFields.push(v)})),m.push(this._userService.getCurrentUserProfileExtended().then(u=>{if(u.ProfileId>0){for(var v of(this.isLoggedIn=!0,this.currentUserProfile=u,this.currentUserProfile.RelatedProfiles))v.Member&&(this.registration.Registration.IsRelatedToMember=!0);this._changeDetector.detectChanges()}})),this.event.EventId&&this.registration.IsEdit&&(m.push(this._registrationService.getRegistrationCustomFieldResponses(this.registrationId).then(u=>{d=u})),m.push(this._registrationService.getRegistrationItemsMin(this.registrationId).then(u=>{h=u}))),Promise.all(m).then(()=>
1{if(!this.event.EventId)return;this.registration.Items=new Array,this.originalItems=new Array;let u=this._utilService.getDateWithoutTime(new Date);for(let v of this.event.Items)if(v.IsPublic&&this._utilService.getDateWithoutTime(v.StartDate)<=u&&this._utilService.getDateWithoutTime(v.EndDate)>=u){let C=new te.R;this._utilService.map(v,C),C.Selected=!1;for(let S of h)S.EventItemId==v.EventItemId&&this._utilService.mapSafe(S,C);this.registration.Items.push(C);let E=new te.R;this._utilService.mapSafe(C,E),this.originalItems.push(E)}if(this.updateSelectedItemQuantityTracking(),this.registration.IsEdit){let v=new Array;for(let C of d)(C.CustomField.Visible==k.RegistrationOnly||C.CustomField.Visible==k.BothRegistrationAndAttendee)&&(null==C.AttendeeHeaderId||C.AttendeeHeaderId<=0)&&v.push(C);this.registration.Registration.EventCustomRegFieldResponses=v}return this.onRegistrationItemsChanged.emit(this.registration.Items),this.getItemTotals(),this.initialLoadComplete=!0,this.registration.Items})},this.getValidationResult=()=>{let m=new A.n;m.isValid=!0;let d=this.registration.Items.filter(h=>h.Quantity>0);if(d.length<=0&&(m.isValid=!1,m.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.no-item-selected-validation-message"))),d.find(h=>h.LimitPerRegistration>0&&h.Quantity>h.LimitPerRegistration)&&(m.isValid=!1,m.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.item-quantity-greater-than-limit"))),d.find(h=>h.MaxItemsAvail>0&&h.Quantity>h.Remaining)&&(m.isValid=!1,m.errors.push(this._translationService.getInstantCapitalizeFirstCharacter("events.registration.wizard.items.item-quantity-greater-than-remaining"))),this.registration.Registration.EventCustomRegFieldResponses)for(let h of this.registration.Registration.EventCustomRegFieldResponses)(1==h.CustomField.Required||3==h.CustomField.Required)&&this._utilService.isNotNullOrUndefined(h.Response)&&this._utilService.isNullEmptyOrWhitespace(h.Response)&&(m.isValid=!1,m.errors.push(h.CustomField.FieldName+" "+this._translationService.getInstant("common.required")));return m},this.getMaxItemInput=m=>{let d=m.LimitPerRegistration?m.LimitPerRegistration:999999999;return m.MaxItemsAvail>0&&(d=Math.min(d,m.Remaining)),d},this.getItemTotals=()=>{this.registration.Items.forEach(d=>d.Quantity=Math.round(d.Quantity));let m=this.registration.Items.filter(d=>d.Quantity>0);this.onRegistrationItemsChanged.emit(m),setTimeout(()=>{this.itemTotal=0,this._registrationService.calculateTotals(this.registration),this.checkIfItemsHaveChanged(),this.itemTotal=this.registration.Registration.PreTaxAmount})},this.quantityChanged=()=>{this.updateSelectedItemQuantityTracking(),setTimeout(()=>this.getItemTotals())},this.hasCustomRegFields=m=>this.registration.Registration.EventCustomRegFieldResponses&&this.registration.Registration.EventCustomRegFieldResponses.some(d=>(d.CustomField.Visible==k.RegistrationOnly||d.CustomField.Visible==k.BothRegistrationAndAttendee)&&d.CustomField.EventItemIds&&d.CustomField.EventItemIds.some(h=>h==m)),this.showCustomFields=()=>this.registration.Registration.EventCustomRegFieldResponses.length>0,this.onResponseChange=m=>{this.getItemTotals()},this.checkIfItemsHaveChanged=()=>{if(this.registration.ItemsChanged=!1,0==this.registration.ItemsChanged&&this.registration.IsEdit){let m=0;for(let d of this.registration.Items)this.originalItems[m].EventItemId==d.EventItemId&&(this.originalItems[m].Quantity!=d.Quantity||this.originalItems[m].ExtendedPrice!=d.ExtendedPrice)&&(this.registration.ItemsChanged=!0),m+=1}},this.userHasRequiredAffCode=m=>{let d=!1;if(this.isLoggedIn)for(let h of m)for(let u of this.currentUserProfile.Affiliations)if(this._utilService.toLowerTrim(u.AffCode)==this._utilService.toLowerTrim(h))return d=!0,d;return d},this.userIsMemberOrRelatedToMember=()=>{let m=!1;if(this.isLoggedIn)if(this.currentUserProfile.Member)m=!0;else for(let d of this.currentUserProfile.RelatedProfiles)if(d.Member){m=!0;break}return m},this.userIsRestrictedFromChoosingItem=m=>{let d=!1;if(m.MembersOnly&&(d=m.AllowRelateProfileMemberPrice?!this.userIsMemberOrRelatedToMember():!this.currentUserProfile.Member),m.RestrictForAff
1iliations){d=!0;for(let h of this.currentUserProfile.Affiliations)for(let u of m.AffiliationRestrictions)if(this._utilService.toLowerTrim(u)==this._utilService.toLowerTrim(h.AffCode)){d=!1;break}}return d},this.getRestrictedItemMessageOrDefault=m=>m.RestrictForAffiliations||m.MembersOnly?this._utilService.isNotNullEmptyOrWhitespace(m.RestrictedMessage)?m.RestrictedMessage:this._translationService.getInstant("events.registration.wizard.items.logged-in-but-item-restricted-message"):"",this.getTeaserMessageOrDefault=m=>m.RestrictForAffiliations||m.MembersOnly?this._utilService.isNotNullEmptyOrWhitespace(m.TeaserMessage)?m.TeaserMessage:this._translationService.getInstant("events.registration.wizard.items.log-in-above-message"):"",this.userIsRestrictedFromViewingItem=m=>{let d=!1;return this.userIsRestrictedFromChoosingItem(m)&&1==m.ShowForEligibleUsersOnly&&(d=!0),d},this._utilService=t,this._eventItemService=r,this._translationService=i,this._eventCustomRegFieldService=s,this._registrationService=l,this._configSettingService=o,this._affCodeService=c,this._profileService=R,this._userService=g,this.availableItems=new Array,this.onRegistrationItemsChanged=new e.bkB,this.itemTotal=0,this.registrationId=0,this.originalItems=new Array,this.isLoggedIn=!1,this.currentUserProfile=new ee.N,this._changeDetector=p}ngOnInit(){}updateSelectedItemQuantityTracking(){this._selectedEventItemIds=(this.registration&&this.registration.Items?this.registration.Items:[]).filter(r=>r.Quantity>0).map(r=>r.EventItemId)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(D.B),e.rXU(O.L),e.rXU(W),e.rXU(P.f),e.rXU(z.k),e.rXU(ve.I),e.rXU(L.p),e.rXU(e.gRc),e.rXU(V.D))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-items"]],outputs:{onRegistrationItemsChanged:"onRegistrationItemsChanged"},features:[e.Jv_([D.B,W,P.f,ve.I])],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(r,i){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"h3"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s(),e.j41(6,"div",2)(7,"div",3)(8,"strong"),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"titlecase"),e.k0s()(),e.j41(12,"div",4)(13,"strong"),e.EFF(14),e.nI1(15,"translate"),e.nI1(16,"titlecase"),e.k0s()(),e.j41(17,"div",4)(18,"strong"),e.EFF(19),e.nI1(20,"translate"),e.nI1(21,"titlecase"),e.k0s()(),e.j41(22,"div",4)(23,"strong"),e.EFF(24),e.nI1(25,"translate"),e.nI1(26,"titlecase"),e.k0s()()(),e.DNE(27,pi,2,1,"div",5)(28,ui,6,5,"div",6),e.j41(29,"wl-registration-custom-reg-fields",7),e.bIt("responseChange",function(l){return i.onResponseChange(l)}),e.k0s()()()),2&r&&(e.R7$(3),e.JRh(e.bMT(5,14,e.bMT(4,12,"events.registration.wizard.items.title"))),e.R7$(6),e.JRh(e.bMT(11,18,e.bMT(10,16,"events.registration.wizard.items.event-item-name-label"))),e.R7$(5),e.JRh(e.bMT(16,22,e.bMT(15,20,"events.registration.wizard.items.price-label"))),e.R7$(5),e.JRh(e.bMT(21,26,e.bMT(20,24,"events.registration.wizard.items.quantity-label"))),e.R7$(5),e.JRh(e.bMT(26,30,e.bMT(25,28,"events.registration.wizard.items.total-label"))),e.R7$(3),e.Y8G("ngForOf",i.registration.Items),e.R7$(),e.Y8G("ngIf",i.showCustomFields()),e.R7$(),e.Y8G("customFields",i.allPossibleCustomFields)("responses",i.registration.Registration.EventCustomRegFieldResponses)("visibilityFilter",e.l_i(32,ti,i._eventFieldVisibleRequiredEnum.RegistrationOnly,i._eventFieldVisibleRequiredEnum.BothRegistrationAndAttendee))("eventItemIds",i._selectedEventItemIds)("signUpOrAttendeeType",i.signUpOrAttendeeType))},dependencies:[I.Sq,I.bT,_.me,_.Q0,_.BC,_.VZ,_.zX,_.vS,fe,le.u,I.PV,I.oe,M.D9],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}"]})}return n})();var _e=f(64919),vi=f(39877);class Ie{constructor(){this.FeeTypeId=0,this.FeeType=""}}let Re=(()=>{class n{constructor(t,r,i){this._translationService=i,this.getEventPaymentMethods=s=>{let l="Event/"+s.toString()+"/EventPaymentMethods";return this._apiService.get(l).then(o=>{if(!o)return o;let c=o.map(R=>{let p="";switch(R.PaymentMethodId){case 1:p="enum.payment-method-type.bill-later";break;case 2:p="enum.payment-method-type.pay-at-door";break;case 3:p="enum.payment-method-type.credit-card";break;case 4:p="enum.payment-method-type.purchase-order";break;case 5:p="enum.payment-method-type.cash-check"}return p?this._translationService.getTitlecase(p).then(g=>
1R.Descr=g):Promise.resolve("")});return Promise.all(c).then(()=>o)})},this.getEventPaymentMethod=s=>{let l="EventPaymentMethod/"+s.toString();return this._apiService.get(l)},this.getPaymentMethodFeeTypes=()=>{let s=new Ie,l=new Ie;s.FeeType="Flat Fee",s.FeeTypeId=0,l.FeeType="Percent",l.FeeTypeId=1;let o=new Array;return o.push(s),o.push(l),o},this.upsertEventPaymentMethod=s=>this._apiService.post("EventPaymentMethods",s).then(o=>{s.EventPaymentMethodId=o}),this.updateEventPaymentMethodAccepted=(s,l,o)=>{let c="Event/"+s.toString()+"/PaymentMethod/"+l.toString()+"/"+o.toString();this._apiService.put(c,null)},this._apiService=t,this._utilService=r}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(F.Gf),e.KVO(F.a0),e.KVO(O.L))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var _i=f(16930),Ce=f(94453);let ye=(()=>{class n{constructor(t,r){this.getEventPromoCodes=i=>{let s="Event/"+i.toString()+"/PromoCodes?PageSize=9999";return this._apiService.get(s)},this.getEventPromoCode=i=>{let s="PromoCode/"+i.toString();return this._apiService.get(s)},this.upsertEventPromoCode=i=>i.PromoCodeId>0?this._apiService.put("PromoCode/"+i.PromoCodeId,i):this._apiService.post("PromoCodes",i).then(l=>{i.PromoCodeId=l}),this.deleteEventPromoCode=i=>this._apiService.delete("PromoCode/"+i),this.exportPromoCodes=i=>{let s="Event/"+i.toString()+"/PromoCodes/Export";return this._apiService.get(s)},this.exportPromoCode=(i,s)=>{let l="PromoCode/"+i.toString()+"/"+s.toString()+"/Export";return this._apiService.get(l)},this._apiService=t,this._utilService=r}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(F.Gf),e.KVO(F.a0))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var Ii=f(35761),ie=f(40152),Ri=f(73670),be=f(84413);class H{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 Ci=f(36869),yi=f(54520),Se=f(4310),bi=f(39144),Si=f(83971),Fi=f(2713),Mi=f(13904);const Ti=["creditCardInputComponent"];function Ei(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"label",5),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",6)(6,"div",31)(7,"input",32),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.promoCodeToApply,i)||(s.promoCodeToApply=i),e.Njj(i)}),e.k0s(),e.j41(8,"span",33)(9,"button",34),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.applyPromoCode())}),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s(),e.EFF(13),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,7,e.bMT(3,5,"events.registration.wizard.payment-info.apply-promo-code-title"))," "),e.R7$(5),e.R50("ngModel",t.promoCodeToApply),e.R7$(2),e.Y8G("disabled",""==t.promoCodeToApply),e.R7$(),e.SpI(" ",e.bMT(12,11,e.bMT(11,9,"common.apply"))," "),e.R7$(3),e.SpI(" ",t.selectedPromoCode," ")}}function Pi(n,a){1&n&&(e.j41(0,"span",35),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"events.registration.wizard.payment-info.this-is-not-a-valid-promo-code")))}function Ai(n,a){1&n&&(e.j41(0,"span",35),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"events.registration.wizard.payment-info.promo-code-not-available")))}function wi(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"currency"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,t.Discount))}}function Ni(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.nI1(2,"percent"),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,t.Discount/100))}}function ji(n,a){if(1&n){const t=e.RV6();e.j41(0,"li",39)(1,"div",1)(2,"div",9)(3,"div",40),e.EFF(4),e.k0s(),e.j41(5,"div",41),e.DNE(6,wi,3,3,"span",30)(7,Ni,3,3,"span",30),e.k0s(),e.j41(8,"div",17)(9,"span",33)(10,"button",42),e.bIt("click",function(){const i=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.removePromoCode(i.PromoCodeId))}),e.nrm(11,"span",43),e.EFF(12),e.nI1(13,"translate"),e.nI1(14,"titlecase"),e.k0s()()()()()()}if(2&n){const t=a.$implicit,r=e.XpG(2);e.R7$(4),e.SpI(" ",t.Name," "),e.R7$(2),e.Y8G("ngIf",t.DiscountType==r.promoCodeDiscountType.Dollar),e.R7$(),e.Y8G("ngIf",t.DiscountType==r.promoCodeDiscountType.Percent),e.R7$(5),e.SpI(" ",e.bMT(14,6,e.bMT(13,4,"common.remove"))," ")}}function Di(n,a){if(1&n&&(e.j41(0,"div",4)(1,"div",36)(2,"ul",37),e.DNE(3,ji,15,8,"li",38),e.k0s()()()),2&n){const t=e.XpG();e.R7$(3),e.Y8G("ngForOf",t.registration.PromoCodes)}}function ki(n,a){if(1&n&&(e.j41(0,"option",25),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.EventBenefitId),e.R7$(),e.SpI(" ",t.BenefitType," ")}}function Gi(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"label",44),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",45)(6,"select",46),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.selectedEventBenefit.EventBenefitId,i)||(s.selectedEventBenefit.EventBenefitId=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onBenefitChange(i))}),e.j41(7,"option",25),e.EFF(8),e.nI1(9,"translate"),e.nI1(10,"titlecase"),e.k0s(),e.DNE(11,ki,2,2,"option",26),e.k0s()()()}if(2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,7,e.bMT(3,5,"events.registration.wizard.payment-info.use-member-benefits-label"))," "),e.R7$(4),e.R50("ngModel",t.selectedEventBenefit.EventBenefitId),e.R7$(),e.Y8G("value",0),e.R7$(),e.JRh(e.bMT(10,11,e.bMT(9,9,"events.registration.wizard.payment-info.select-a-benefit-label"))),e.R7$(3),e.Y8G("ngForOf",t.availableBenefitsToUse)}}function zi(n,a){if(1&n&&(e.j41(0,"div",4)(1,"label",44),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",45),e.EFF(6),e.nI1(7,"currency"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.profile-benefits-amount-remaining-label"))," "),e.R7$(4),e.SpI(" ",e.bMT(7,6,t.selectedProfileBenefit.ValueRemaining)," ")}}function Oi(n,a){if(1&n&&(e.j41(0,"div",4)(1,"label",44),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",45),e.EFF(6),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.profile-benefits-quantity-remaining-label"))," "),e.R7$(4),e.SpI(" ",t.selectedProfileBenefit.QuantityRemaining," ")}}function $i(n,a){1&n&&(e.j41(0,"label",52),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"events.registration.wizard.payment-info.benefit-amount-to-use-label"))," "))}function Bi(n,a){1&n&&(e.j41(0,"label",52),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"events.registration.wizard.payment-info.benefit-quantity-to-use-label"))," "))}function Wi(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",53),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.selectedRegistrationBenefit.ValueToApply,i)||(s.selectedRegistrationBenefit.ValueToApply=i),e.Njj(i)}),e.k0s()}if(2&n){const t=e.XpG(2);e.R50("ngModel",t.selectedRegistrationBenefit.ValueToApply),e.Y8G("step",.01)("placeholder",0)}}function Vi(n,a){if(1&n){const t=e.RV6();e.j41(0,"input",54),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.selectedRegistrationBenefit.QuantityToApply,i)||(s.selectedRegistrationBenefit.QuantityToApply=i),e.Njj(i)}),e.bIt("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onBenefitQuantityToApplyChange(i))}),e.k0s()}if(2&n){const t=e.XpG(2);e.R50("ngModel",t.selectedRegistrationBenefit.QuantityToApply),e.Y8G("step",1)("placeholder",0)}}function xi(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.removeBenefits())}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"common.remove"))," "))}function Ui(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",44),e.DNE(2,$i,4,5,"label",47)(3,Bi,4,5,"label",47),e.k0s(),e.j41(4,"div",45)(5,"div",31),e.DNE(6,Wi,1,3,"input",48)(7,Vi,1,3,"input",49),e.j41(8,"span",33)(9,"button",50),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.applyBenefit())}),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s(),e.DNE(13,xi,4,5,"button",51),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",0==t.selectedEventBenefit.LimitType),e.R7$(),e.Y8G("ngIf",1==t.selectedEventBenefit.LimitType),e.R7$(3),e.Y8G("ngIf",0==t.selectedEventBenefit.LimitType),e.R7$(),e.Y8G("ngIf",1==t.selectedEventBenefit.LimitType),e.R7$(3),e.SpI(" ",e.bMT(12,8,e.bMT(11,6,"common.apply"))," "),e.R7$(3),e.Y8G("ngIf",t.registration.Registration.BenefitsToApplyTotal>0)}}function Yi(n,a){if(1&n&&(e.j41(0,"div",9)(1,"div",10),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",11),e.EFF(6),e.nI1(7,"currency"),e.k0s()()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.additional-cost"))," "),e.R7$(4),e.SpI(" ",e.bMT(7,6,t.AdditionalCost)," ")}}function Li(n,a){if(1&n&&(e.j41(0,"div",4)(1,"div",55)(2,"div",1)(3,"div",9)(4,"div",10),e.EFF(5),e.j41(6,"div"),e.EFF(7),e.nI1(8,"currency"),e.k0s()(),e.j41(9,"div",11),e.EFF(10),e.nI1(11,"currency"),e.k0s()(),e.DNE(12,Yi,8,8,"div",12),e.k0s()()()),2&n){const t=a.$implicit,r=e.XpG();e.R7$(5),e.SpI(" ",t.EventItem.Descr,": "),e.R7$(2),e.Lme(" ",t.EventItem.Quantity," x ",e.bMT(8,5,r.registration.Registration.IsMember&&t.EventItem.HasMemberPricing?t.EventItem.MemberPrice:t.EventItem.NonMemberPrice)," "),e.R7$(3),e.SpI(" ",e.bMT(11,7,t.ItemTotal)," "),e.R7$(2),e.Y8G("ngIf",t.AdditionalCost>0)}}function Xi(n,a){if(1&n&&(e.j41(0,"div",9)(1,"div",10),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",11),e.EFF(6),e.nI1(7,"currency"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.promo-codes-applied"))," "),e.R7$(4),e.SpI("-",e.bMT(7,6,t.registration.Registration.DiscountTotal),"")}}function qi(n,a){if(1&n&&(e.j41(0,"div",9)(1,"div",10),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",11),e.EFF(6),e.nI1(7,"currency"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.benefits-applied"))," "),e.R7$(4),e.SpI("-",e.bMT(7,6,t.registration.Registration.BenefitsToApplyTotal),"")}}function Hi(n,a){1&n&&(e.j41(0,"div",4)(1,"div",56),e.nrm(2,"hr"),e.k0s()())}function Ji(n,a){if(1&n&&(e.j41(0,"div",4)(1,"div",6)(2,"strong"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.nI1(6,"translate"),e.nI1(7,"titlecase"),e.k0s()(),e.j41(8,"div",16)(9,"strong"),e.EFF(10),e.nI1(11,"currency"),e.k0s()()()),2&n){const t=e.XpG();e.R7$(3),e.Lme(" ",e.bMT(5,5,e.bMT(4,3,"events.registration.wizard.payment-info.additional-payment-label")),"\xa0",e.bMT(7,9,e.bMT(6,7,"common.revenue.amount"))," "),e.R7$(7),e.JRh(e.bMT(11,11,t.registration.Registration.AdditionalPaymentAmountForEdit))}}function Qi(n,a){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.k0s()),2&n){const t=a.$implicit,r=e.XpG();e.Y8G("value",t.PaymentMethodId)("selected",t.PaymentMethodId==r.registration.Registration.PaymentOption||null),e.R7$(),e.SpI(" ",t.Descr," ")}}function Zi(n,a){if(1&n&&(e.j41(0,"option",25),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.Y8G("value",t.CcPaymentProfileId),e.R7$(),e.SpI(" ",t.CardNumber," ")}}function Ki(n,a){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",4)(2,"div",5),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s(),e.j41(6,"div",6)(7,"wl-payment-type-selector",58),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.registration.Registration.OverridePaymentypeId,i)||(s.registration.Registration.OverridePaymentypeId=i),e.Njj(i)}),e.k0s()()(),e.j41(8,"div",4)(9,"label",5),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s(),e.j41(13,"div",6)(14,"input",59),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG();return e.DH7(s.registration.Registration.CheckNum,i)||(s.registration.Registration.CheckNum=i),e.Njj(i)}),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(5,6,e.bMT(4,4,"events.registration.wizard.payment-info.payment-type-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.Registration.OverridePaymentypeId),e.R7$(3),e.SpI(" ",e.bMT(12,10,e.bMT(11,8,"events.registration.wizard.payment-info.check-number-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.Registration.CheckNum)}}function en(n,a){1&n&&(e.j41(0,"div",4)(1,"div",18)(2,"h3"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(5,3,e.bMT(4,1,"events.registration.wizard.payment-info.modification-options-label"))))}function tn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",18)(2,"input",60),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.DoNotModifyInvoice,i)||(s.registration.ModificationOptions.DoNotModifyInvoice=i),e.Njj(i)}),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.R50("ngModel",t.registration.ModificationOptions.DoNotModifyInvoice),e.R7$(),e.SpI(" ",e.bMT(5,4,e.bMT(4,2,"events.registration.wizard.payment-info.modification-options-do-not-modify-invoice-label"))," ")}}function nn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",6)(2,"label")(3,"input",61),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.CreateUnappliedPayments,i)||(s.registration.ModificationOptions.CreateUnappliedPayments=i),e.Njj(i)}),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.nI1(6,"titlecase"),e.k0s()(),e.j41(7,"div",6)(8,"label")(9,"input",62),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.RefundCreditCardPayments,i)||(s.registration.ModificationOptions.RefundCreditCardPayments=i),e.Njj(i)}),e.k0s(),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.R50("ngModel",t.registration.ModificationOptions.CreateUnappliedPayments),e.R7$(),e.SpI(" ",e.bMT(6,6,e.bMT(5,4,"events.registration.wizard.payment-info.modification-options-create-unapplied-payments-label"))," "),e.R7$(5),e.R50("ngModel",t.registration.ModificationOptions.RefundCreditCardPayments),e.R7$(),e.SpI(" ",e.bMT(12,10,e.bMT(11,8,"events.registration.wizard.payment-info.modification-options-refund-credit-card-payments-label"))," ")}}function sn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",6),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",6)(6,"wl-adjustment-type-selector",63),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.PaymentAdjustmentTypeId,i)||(s.registration.ModificationOptions.PaymentAdjustmentTypeId=i),e.Njj(i)}),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.modification-options-payment-adjustment-type-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.ModificationOptions.PaymentAdjustmentTypeId)}}function rn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",6),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",6)(6,"wl-adjustment-type-selector",64),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.InvoiceAdjustmentTypeId,i)||(s.registration.ModificationOptions.InvoiceAdjustmentTypeId=i),e.Njj(i)}),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.modification-options-invoice-adjustment-type-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.ModificationOptions.InvoiceAdjustmentTypeId)}}function on(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",6),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",6)(6,"wl-payment-type-selector",65),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.UnappliedPaymentPaymentypeId,i)||(s.registration.ModificationOptions.UnappliedPaymentPaymentypeId=i),e.Njj(i)}),e.k0s()()()}if(2&n){const t=
1e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.modification-options-unapplied-payment-paymen-type-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.ModificationOptions.UnappliedPaymentPaymentypeId)}}function an(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",4)(1,"div",41),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"div",19)(6,"textarea",66),e.mxI("ngModelChange",function(i){e.eBV(t);const s=e.XpG(2);return e.DH7(s.registration.ModificationOptions.Notes,i)||(s.registration.ModificationOptions.Notes=i),e.Njj(i)}),e.k0s()()()}if(2&n){const t=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.bMT(3,2,"events.registration.wizard.payment-info.modification-options-notes-label"))," "),e.R7$(4),e.R50("ngModel",t.registration.ModificationOptions.Notes)}}function ln(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,en,6,5,"div",3)(2,tn,6,6,"div",3)(3,nn,13,12,"div",3)(4,sn,7,6,"div",3)(5,rn,7,6,"div",3)(6,on,7,6,"div",3)(7,an,7,6,"div",3),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.registration.IsEdit),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit&&t.registration.Registration.AdditionalPaymentAmountForEdit<0&&0==t.registration.ModificationOptions.DoNotModifyInvoice),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit&&t.originalAmountPaid>0&&0==t.registration.ModificationOptions.DoNotModifyInvoice),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit&&0==t.registration.ModificationOptions.DoNotModifyInvoice),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit&&t.registration.ModificationOptions.CreateUnappliedPayments&&0==t.registration.ModificationOptions.DoNotModifyInvoice),e.R7$(),e.Y8G("ngIf",t.registration.IsEdit&&0==t.registration.ModificationOptions.DoNotModifyInvoice)}}let dn=(()=>{class n{constructor(t,r,i,s,l,o,c,R,p){this.promoCodeDiscountType=Ii.O,this.registration=new N.R,this.event=new j,this.initialLoadComplete=!1,this.gatewayCustomerProfile=new Ri.c,this.selectedGatewayPaymentProfile=new ie.S5,this.benefitsAcceptDaysPastDueAmount=0,this.loadData=()=>{this.benefitsAcceptDaysPastDueAmount=this._configSettingService.getConfigSettingValueFromCollectionAsInteger("BenefitsAcceptDaysPastDueAmount",this.configSettings),(!this.benefitsAcceptDaysPastDueAmount||this.benefitsAcceptDaysPastDueAmount<0)&&(this.benefitsAcceptDaysPastDueAmount=0);const g=this._paymentMethodService.getEventPaymentMethods(this.event.EventId).then(u=>{this.allPaymentMethodsAllowedForEvent=u,this.updateAvailablePaymentMethods()}),m=this._eventPromoCodesService.getEventPromoCodes(this.event.EventId).then(u=>{this.eventPromoCodes=u}),d=this._registrationService.getRegistrationAmountPaid(this.registrationId).then(u=>{this.registration.Registration.PaymentAmount=u,this.registration.Registration.AlreadyPaidAmountForEdit=u,this.originalAmountPaid=u,this.getItemTotals(),this.initialLoadComplete=!0}),h=this._registrationService.getRegistrationPromoCodes(this.registrationId).then(u=>{this.registration.PromoCodes=u});Promise.all([g,m,d,h]),this.checkCardOnFileConfig(),this.refreshBenefits(),this.checkCardConnect()},this.getValidationResult=()=>{let g=new A.n;if(g.isValid=!0,this.registration&&this.registration.ModificationOptions&&this.registration.ModificationOptions.DoNotModifyInvoice)return g;const m=this.registration.Items.filter(d=>d.Quantity>0&&d.ExtendedPrice>0);if(this.registration.Registration.AdditionalPaymentAmountForEdit>0){const d=this.selectedGatewayPaymentProfile&&this.selectedGatewayPaymentProfile.CcPaymentProfileId>0;m.length>0&&3==this.registration.Registration.PaymentOption&&!d&&(g=this.creditCardInputComponent.getValidationResult()),0==g.isValid||(1==this.registration.Registration.PaymentOption||2==this.registration.Registration.PaymentOption?g.isValid=!0:this._utilService.isNullOrLessThanOrEqualToZero(this.registration.Registration.PaymentOption)&&(g.isValid=!1,g.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.payment-option-payment-info-needed-validation-error")))),3===this.registration.Registration.PaymentOption&&this.registration.Registration.AdditionalPaymentAmountForEdit>0&&!d&&!this.registration.Registration.CreditCardPayment.CreditCardContactInfo.State&&(g.isValid=!1,g.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info-state-required")))}return this.registration.IsEdit&&this.registration.ItemsChanged&&1==this.registration.ModificationOptions.CreateUnappliedPayments&&this.registration.ModificationOptions.UnappliedPaymentPaymentypeId<=0&&(g.isValid=!1,g.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&&(g.isValid=!1,g.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&&(g.isValid=!1,g.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&&(g.isValid=!1,g.errors.push(this._translationService.getInstant("events.registration.wizard.payment-info.event-item-payment-method-mismatch-vali
1dation-message"))),g},this.checkCardConnect=()=>{this._creditCardGatewayService.hasCardConnectCreditCardGateways().then(g=>{g&&(this.creditCardInputComponent.useCardConnect=!0)})},this.checkCardOnFileConfig=()=>{this._creditCardService.hasCreditCardOnFileEnabled().then(g=>{this.hasCreditCardOnFileEnabled=g})},this.loadCardOnFileData=(g,m)=>{this._creditCardService.getGatewayCustomerProfile(g,m).then(d=>{this.gatewayCustomerProfile=d,this.gatewayPaymentProfiles=this.gatewayCustomerProfile.PaymentProfiles})},this.onGatewayPaymentProfileChange=g=>{var m=parseInt(g),d=this.gatewayPaymentProfiles.find(h=>h.CcPaymentProfileId==m);d||(d=new ie.S5),this.selectedGatewayPaymentProfile=d,this.copySelectedCardOnFile()},this.updateAvailablePaymentMethods=()=>{this.hasEventItemPaymentMethodMismatch=!1,this.paymentMethods=new Array;const g=new Array;for(const d of this.registration.Items)d.Quantity>0&&g.push(d.EventItemId);let m=new _i.U;for(const d of this.allPaymentMethodsAllowedForEvent)if(d.Accept&&d.EventItemPaymentMethods.length>0){const h=new Array;for(const u of d.EventItemPaymentMethods)1==u.Accept&&h.push(u.EventItemId);h.length>0&&g.every(v=>h.indexOf(v)>-1)&&(this.paymentMethods.push(d),3==d.PaymentMethodId&&(m=d))}0==this.paymentMethods.length&&(this.hasEventItemPaymentMethodMismatch=!0),0==this.paymentMethods.length&&0==this.hasEventItemPaymentMethodMismatch&&this.paymentMethods.push(m),this.paymentMethods.length>0&&(m.PaymentMethodId>0&&m.Accept?(this.registration.Registration.PaymentOption=m.PaymentMethodId,1==this.hasCreditCardOnFileEnabled&&this.loadCardOnFileData(this.registration.Registration.LoggedInProfileId,0)):this.registration.Registration.PaymentOption=this.paymentMethods[0].PaymentMethodId),this.updateRegistrationWithSelectedPaymentMethod()},this.updateRegistrationWithSelectedPaymentMethod=()=>{for(const g of this.paymentMethods)g.PaymentMethodId==this.registration.Registration.PaymentOption&&(this.registration.Registration.SelectedPaymentMethod=g,3==g.PaymentMethodId&&this.copyContactInfoToCCContactInfo())},this.onPaymentOptionChange=g=>{this.registration.Registration.PaymentOption=parseInt(g),this.updateRegistrationWithSelectedPaymentMethod(),this._registrationService.calculateTotals(this.registration),1==this.hasCreditCardOnFileEnabled&&this.gatewayPaymentProfiles.length<=1&&this.loadCardOnFileData(this.registration.Registration.LoggedInProfileId,0)},this.applyPromoCode=()=>{this.showInvalidPromoCodeMessage=!1,this.showPromocodeNotAvailable=!1;let g=!1,m=!1;if(this._utilService.isNotNullEmptyOrWhitespace(this.promoCodeToApply))for(const d of this.eventPromoCodes)if(this._utilService.toLowerTrim(d.Code)==this._utilService.toLowerTrim(this.promoCodeToApply)||this._utilService.toLowerTrim(d.Name)==this._utilService.toLowerTrim(this.promoCodeToApply)){const h=new Date(d.EndDate.getFullYear(),d.EndDate.getMonth(),d.EndDate.getDate(),0,0,0);let u=new Date;u=new Date(u.getFullYear(),u.getMonth(),u.getDate(),0,0,0);const v=new Date(d.StartDate.getFullYear(),d.StartDate.getMonth(),d.StartDate.getDate(),0,0,0);d.MaxUses>0&&d.Used>=d.MaxUses||v>u||h<u?m=!0:this.registration.PromoCodes.some(C=>C.Code==d.Code)||this.registration.PromoCodes.push(d),g=!0}0==g?this.showInvalidPromoCodeMessage=!0:m&&(this.showPromocodeNotAvailable=!0),this.selectedPromoCode=0,this.promoCodeToApply="",this.getItemTotals()},this.hidePromoCode=(g,m)=>this.registration.PromoCodes.some(d=>d.PromoCodeId==g)||m.length>0&&!m.some(d=>this.registration.Items.some(h=>h.EventItemId==d&&h.Quantity>0)),this.showPromoCodes=()=>this.eventPromoCodes.some(g=>0==g.EventItemIds.length)||this.registration.Items.some(g=>g.Quantity>0&&this.eventPromoCodes.some(m=>m.EventItemIds.some(d=>d==g.EventItemId))),this.removePromoCode=g=>{this.showInvalidPromoCodeMessage=!1;const m=this.registration.PromoCodes.findIndex(d=>d.PromoCodeId==g);m>-1&&this.registration.PromoCodes.splice(m,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>
10){const g=this._benefitService.getEventBenefits(this.event.EventId).then(d=>{const h=this.registration.Items.filter(u=>u.Quantity>0).map(u=>u.EventItemId);this.availableEventBenefits=d.filter(u=>u.EventItems.some(v=>h.indexOf(v.EventPriceId)>-1))}),m=this._benefitService.getProfileEventBenefits(this.registration.Registration.ProfileId,this.event.EventId).then(d=>{this.availableProfileBenefits=d});Promise.all([g,m]).then(()=>{if(this.availableEventBenefits.length>0&&this.availableProfileBenefits.length>0){this.availableBenefitsToUse=new Array;const d=new Date;for(const h of this.availableProfileBenefits){const u=new Date(h.ExpirationDate);if(u.setDate(u.getDate()+this.benefitsAcceptDaysPastDueAmount),(h.QuantityRemaining>0||h.ValueRemaining>0)&&u>d)for(const v of this.availableEventBenefits)v.BenefitTypeId==h.BenefitTypeId&&(this.hasBenefitsThatCanBeUsed=!0,this.availableBenefitsToUse.push(v))}}if(this.registration.Registration.BenefitsPreviouslyAppliedTotal>0&&this.registration.Registration.BenefitsPreviouslyApplied.length>0){const d=this.registration.Registration.BenefitsPreviouslyApplied[0].EventBenefitId;let h=0,u=0;for(const v of this.registration.Registration.BenefitsPreviouslyApplied)h+=v.QuantityToApply,u+=v.ValueToApply;this.registration.Registration.BenefitsToApply=this.registration.Registration.BenefitsPreviouslyApplied,this.registration.Registration.BenefitsToApplyTotal=this.registration.Registration.BenefitsPreviouslyAppliedTotal,this.onBenefitChange(d.toString()),this.selectedRegistrationBenefit.ValueToApply=u,this.selectedRegistrationBenefit.QuantityToApply=h}})}else this.availableEventBenefits=new Array,this.availableProfileBenefits=new Array},this.onBenefitChange=g=>{this.selectedRegistrationBenefit=new H;const m=parseInt(g);this.selectedEventBenefit.EventBenefitId=m;const d=this.availableBenefitsToUse.find(h=>h.EventBenefitId==m);if(this._utilService.isNotNullOrUndefined(d)){this._utilService.mapSafe(d,this.selectedEventBenefit),this.selectedEventBenefit.EventItems=[];for(const u of d.EventItems){const v=new bi.d;this._utilService.mapSafe(u,v),this.selectedEventBenefit.EventItems.push(v)}const h=this.availableProfileBenefits.find(u=>u.BenefitTypeId==d.BenefitTypeId);this._utilService.isNotNullOrUndefined(h)&&(this._utilService.mapSafe(h,this.selectedProfileBenefit),this.selectedRegistrationBenefit=new H,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=()=>{const g=this.getMaxBenefitAmountAllowed();this.selectedRegistrationBenefit.ValueToApply=g},this.getMaxAmtOfBenefitsThatCanBeUsedForItems=()=>{let g=0;for(const m of this.registration.Registration.EventItemTotals)g+=m.Total;return g},this.getMaxBenefitAmountAllowed=()=>{let g=this.getMaxAmtOfBenefitsThatCanBeUsedForItems();return this.selectedProfileBenefit.ValueRemaining<g&&(g=this.selectedProfileBenefit.ValueRemaining),this.selectedRegistrationBenefit.LimitAmount>0&&this.selectedRegistrationBenefit.LimitAmount<g&&(g=this.selectedRegistrationBenefit.LimitAmount),g},this.getMaxBenefitQuantityAllowed=()=>{let g=this.getMaxAmtOfBenefitsThatCanBeUsedForItems();return this.selectedProfileBenefit.QuantityRemaining<g&&(g=this.selectedProfileBenefit.QuantityRemaining),this.selectedRegistrationBenefit.LimitAmount>0&&this.selectedRegistrationBenefit.LimitAmount<g&&(g=this.selectedRegistrationBenefit.LimitAmount),g},this.applyBenefit=()=>{if(this.registration.Registration.BenefitsToApply=new Array,this._registrationService.calculateTotals(this.registration),this.selectedRegistrationBenefit.BenefitTypeId>0){let g=0,m=0;const d=this.getMaxAmtOfBenefitsThatCanBeUsedForItems();let h,u;1==this.selectedEventBenefit.LimitType?(g=this.selectedProfileBenefit.QuantityRemaining,h=this.selectedRegistrationBenefit.QuantityToApply,h>g&&(h=g)):(m=this.getMaxBenefitAmountAllowed(),u=this.selectedRegistrationBenefit.ValueToApply,u>m&&(u=m));let v=0;for(const C of this.registration.Items)if(C.Quantity>0&&(h>0||u>0)&&v<d){const E=this.selectedEventBenefit.EventItems.find(S=>S.EventPriceId==C.EventItemId);if(this._utilService.isNotNullOrUndefined(E)){const S=this._utilService.round(C.ExtendedPrice/C.Quantity,2),y=new H;this._utilService.mapSafe(this.selectedRegistrationBenefit,y),y.EventPriceId=C.EventItemId,1==y.LimitType?(y.QuantityToApply=Math.min(C.Quantity,h),y.ValueToApply=S*y.QuantityToApply,h-=y.QuantityToApply):(y.QuantityToApply=0,y.ValueToApply=Math.min(S*C.Quantity,u),u-=u),v+=y.ValueToApply,v>d&&(y.ValueToApply=Math.max(0,y.ValueToApply-(d-v))),this.registration.Registration.BenefitsToApply.push(y)}}}this._registrationService.calculateTotals(this.registration)},this.onBenefitAmountToApplyChange=()=>{},this.onBenefitQuantityToApplyChange=g=>{const m=parseInt(g.toString());g=m.toString(),this.selectedRegistrationBenefit.QuantityToApply=m},this._utilService=t,this._translationService=r,this._paymentMethodService=i,this._eventPromoCodesService=s,this._registrationService=l,this._configSettingService=o,this._creditCardService=c,this._creditCardGatewayService=p,this._benef
1itService=R,this.creditCardPaymentInfo=new _e.Y,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 Ci.B,this.selectedEventBenefit=new yi.y,this.selectedRegistrationBenefit=new H,this.hasBenefitsThatCanBeUsed=!1}ngOnInit(){}prepareForPayment(){var t=this;return(0,Y.A)(function*(){const r=t.selectedGatewayPaymentProfile&&t.selectedGatewayPaymentProfile.CcPaymentProfileId>0;t.creditCardInputComponent?.usePreczn&&3==t.registration.Registration.PaymentOption&&!r&&(yield t.creditCardInputComponent.prepareForSubmit())})()}copySelectedCardOnFile(){this.registration.Registration.GatewayPaymentProfile||(this.registration.Registration.GatewayPaymentProfile=new ie.S5),this.registration.Registration.GatewayPaymentProfile=this.selectedGatewayPaymentProfile}copyContactInfoToCCContactInfo(){this.registration.Registration.CreditCardPayment||(this.registration.Registration.CreditCardPayment=new _e.Y),this.registration.Registration.CreditCardPayment.CreditCardContactInfo||(this.registration.Registration.CreditCardPayment.CreditCardContactInfo=new vi.i),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)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(O.L),e.rXU(Re),e.rXU(ye),e.rXU(P.f),e.rXU(z.k),e.rXU(Ce.h),e.rXU(Se.Z),e.rXU(be.b))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-payment-info"]],viewQuery:function(r,i){if(1&r&&e.GBs(Ti,5),2&r){let s;e.mGM(s=e.lsd())&&(i.creditCardInputComponent=s.first)}},features:[e.Jv_([Re,Ce.h,ye,P.f,Se.Z,be.b],[{provide:_.ZU,useExisting:_.Y4}])],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
1CardFields",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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"h3"),e.EFF(3),e.nI1(4,"translate"),e.nI1(5,"titlecase"),e.k0s(),e.DNE(6,Ei,14,13,"div",3),e.j41(7,"div",4),e.nrm(8,"label",5),e.j41(9,"div",6),e.DNE(10,Pi,3,3,"span",7)(11,Ai,3,3,"span",7),e.k0s()(),e.DNE(12,Di,4,1,"div",3)(13,Gi,12,13,"div",3)(14,zi,8,8,"div",3)(15,Oi,7,6,"div",3)(16,Ui,14,10,"div",3)(17,Li,13,9,"div",8),e.j41(18,"div",9)(19,"div",10),e.EFF(20),e.nI1(21,"translate"),e.nI1(22,"titlecase"),e.k0s(),e.j41(23,"div",11),e.EFF(24),e.nI1(25,"currency"),e.k0s()(),e.DNE(26,Xi,8,8,"div",12)(27,qi,8,8,"div",12),e.j41(28,"div",9)(29,"div",10),e.EFF(30),e.nI1(31,"translate"),e.nI1(32,"titlecase"),e.nI1(33,"translate"),e.nI1(34,"titlecase"),e.k0s(),e.j41(35,"div",11),e.EFF(36),e.nI1(37,"currency"),e.k0s()(),e.j41(38,"div",13)(39,"div",10),e.EFF(40),e.nI1(41,"titlecase"),e.k0s(),e.j41(42,"div",11),e.EFF(43),e.nI1(44,"currency"),e.k0s()(),e.j41(45,"div",4)(46,"div",10)(47,"strong"),e.EFF(48),e.nI1(49,"translate"),e.nI1(50,"titlecase"),e.nI1(51,"translate"),e.nI1(52,"titlecase"),e.k0s()(),e.j41(53,"div",14)(54,"b"),e.EFF(55),e.nI1(56,"currency"),e.k0s()()(),e.DNE(57,Hi,3,0,"div",3),e.j41(58,"div",15)(59,"div",6),e.EFF(60),e.nI1(61,"translate"),e.nI1(62,"titlecase"),e.nI1(63,"translate"),e.nI1(64,"titlecase"),e.k0s(),e.j41(65,"div",16),e.EFF(66),e.nI1(67,"currency"),e.k0s(),e.nrm(68,"div",17),e.k0s(),e.DNE(69,Ji,12,13,"div",3),e.j41(70,"div",4)(71,"div",18),e.nrm(72,"hr"),e.k0s()(),e.j41(73,"div",15)(74,"label",5),e.EFF(75),e.nI1(76,"translate"),e.nI1(77,"titlecase"),e.k0s(),e.j41(78,"div",19)(79,"select",20),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.PaymentOption,o)||(i.registration.Registration.PaymentOption=o),e.Njj(o)}),e.bIt("ngModelChange",function(o){return e.eBV(s),e.Njj(i.onPaymentOptionChange(o))}),e.DNE(80,Qi,2,3,"option",21),e.k0s()()(),e.j41(81,"div",15)(82,"div",22)(83,"div",4)(84,"div",23)(85,"select",24),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.selectedCcPaymentProfileId,o)||(i.selectedCcPaymentProfileId=o),e.Njj(o)}),e.bIt("ngModelChange",function(o){return e.eBV(s),e.Njj(i.onGatewayPaymentProfileChange(o))}),e.j41(86,"option",25),e.EFF(87),e.nI1(88,"translate"),e.nI1(89,"titlecase"),e.k0s(),e.DNE(90,Zi,2,2,"option",26),e.k0s()()()(),e.j41(91,"div",22)(92,"wl-credit-card-input",27,0),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.CreditCardPayment,o)||(i.registration.Registration.CreditCardPayment=o),e.Njj(o)}),e.k0s()(),e.j41(94,"div",22)(95,"input",28),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.SaveToCardOnFile,o)||(i.registration.Registration.SaveToCardOnFile=o),e.Njj(o)}),e.k0s(),e.EFF(96),e.nI1(97,"translate"),e.nI1(98,"titlecase"),e.k0s()(),e.j41(99,"div",15)(100,"label",5),e.EFF(101),e.nI1(102,"translate"),e.nI1(103,"titlecase"),e.k0s(),e.j41(104,"div",6)(105,"input",29),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.registration.Registration.PO,o)||(i.registration.Registration.PO=o),e.Njj(o)}),e.k0s()()(),e.DNE(106,Ki,15,12,"div",30)(107,ln,8,7,"div",30),e.k0s()()}2&r&&(e.R7$(3),e.JRh(e.bMT(5,52,e.bMT(4,50,"events.registration.wizard.payment-info.title"))),e.R7$(3),e.Y8G("ngIf",i.showPromoCodes()),e.R7$(4),e.Y8G("ngIf",i.showInvalidPromoCodeMessage),e.R7$(),e.Y8G("ngIf",i.showPromocodeNotAvailable),e.R7$(),e.Y8G("ngIf",null==i.registration||null==i.registration.PromoCodes?null:i.registration.PromoCodes.length),e.R7$(),e.Y8G("ngIf",i.hasBenefitsThatCanBeUsed),e.R7$(),e.Y8G("ngIf",0==i.selectedEventBenefit.LimitType&&i.hasBenefitsThatCanBeUsed),e.R7$(),e.Y8G("ngIf",1==i.selectedEventBenefit.LimitType&&i.hasBenefitsThatCanBeUsed),e.R7$(),e.Y8G("ngIf",i.hasBenefitsThatCanBeUsed),e.R7$(),e.Y8G("ngForOf",i.registration.Registration.EventItemTotals),e.R7$(3),e.SpI(" ",e.bMT(22,56,e.bMT(21,54,"common.revenue.amount"))," "),e.R7$(4),e.SpI(" ",e.bMT(25,58,i.registration.Registration.PreTaxPreDiscountAmount)," "),e.R7$(2),e.Y8G("ngIf",null==i.registration||null==i.registration.PromoCodes?null:i.registration.PromoCodes.length),e.R7$(),e.Y8G("ngIf",i.registration.Registration.BenefitsToApplyTotal>0),e.R7$(3),e.Lme(" ",e.bMT(32,62,e.bMT(31,60,"common.revenue.tax")),"\xa0",e.bMT(34,66,e.bMT(33,64,"common.revenue.amount"))," "),e.R7$(6),e.SpI(" ",e.bMT(37,68,i.registration.Registration.TaxAmount)," "),e.R7$(2),e.Y8G("hidden",i.registration.Registration.PaymentOptionFeeAmount<=0),e.R7$(2),e.SpI(" ",e.bMT(41,70,i.registration.Registration.SelectedPaymentMethod.Descr)," "),e.R7$(3),e.SpI(" ",e.bMT(44,72,i.registration.Registration.PaymentOptionFeeAmount)," "),e.R7$(5),e.Lme("",e.bMT(50,76,e.bMT(49,74,"common.revenue.total")),"\xa0",e.bMT(52,80,e.bMT(51,78,"common.revenue.amount")),""),e.R7$(7),e.JRh(e.bMT(56,82,i.registration.Registration.TotalAmount)),e.R7$(2),e.Y8G("ngIf",i.registration.IsEdit),e.R7$(),e.Y8G("hidden",!i.registration.IsEdit),e.R7$(2),e.Lme(" ",e.bMT(62,86,e.bMT(61,84,"events.registration.wizard.payment-info.already-paid-label")),"\xa0",e.bMT(64,90,e.bMT(63,88,"common.revenue.amount"))," "),e.R7$(6),e.SpI(" ",e.bMT(67,92,i.registration.Registration.AlreadyPaidAmountForEdit)," "),e.R7$(3),e.Y8G("ngIf",i.registration.IsEdit),e.R7$(4),e.Y8G("hidden",i.registration.Registration.AdditionalPaymentAmountForEdit<=0),e.R7$(2),e.SpI(" ",e.bMT(77,96,e.bMT(76,94,"events.registration.wizard.payment-info.payment-option-label"))," "),e.R7$(4),e.R50("ngModel",i.registration.Registration.PaymentOption),e.R7$(),e.Y8G("ngForOf",i.paymentMethods),e.R7$(),e.Y8G("hidden",3!=i.registration.Registration.PaymentOption||i.registration.Registration.AdditionalPaymentAmountForEdit<=0),e.R7$(),e.Y8G("hidden",0==i.hasCreditCardOnFileEnabled||i.registration.Registration.ProfileId<=0),e.R7$(3),e.R50("ngModel",i.selectedCcPaymentProfileId),e.R7$(),e.Y8G("value",0),e.R7$(),e.JRh(e.bMT(89,100,e.bMT(88,98,"events.registration.wizard.payment-info.card-on-file-new-card"))),e.R7$(3),e.Y8G("ngForOf",i.gatewayPaymentProfiles),e.R7$(),e.Y8G("hidden",i.selectedCcPaymentProfileId>0),e.R7$(),e.R50("ngModel",i.registration.Registration.CreditCardPayment),e.Y8G("freeMode",i.registration.Registration.AdditionalPaymentAmountForEdit<=0),e.R7$(2),e.Y8G("hidden",0==i.hasCreditCardOnFileEnabled||i.selectedCcPaymentProfileId>0||i.registration.Registration.ProfileId<=0),e.R7$(),e.R50("ngModel",i.registration.Registration.SaveToCardOnFile),e.R7$(),e.SpI(" ",e.bMT(98,104,e.bMT(97,102,"events.registration.wizard.payment-info.save-credit-card-label"))," "),e.R7$(3),e.Y8G("hidden",4!=i.registration.Registration.PaymentOption||i.registration.Registration.AdditionalPaymentAmountForEdit<=0),e.R7$(2),e.SpI(" ",e.bMT(103,108,e.bMT(102,106,"events.registration.wizard.payment-info.purchase-order-label"))," "),e.R7$(4),e.R50("ngModel",i.registration.Registration.PO),e.R7$(),e.Y8G("ngIf",5==i.registration.Registration.PaymentOption&&i.registration.Registration.AdditionalPaymentAmountForEdit>0),e.R7$(),e.Y8G("ngIf",i.registration.IsEdit&&(0!=i.registration.Registration.AdditionalPaymentAmountForEdit||i.registration.ItemsChanged)))},dependencies:[Si.r,Fi.p,Mi.E,I.Sq,I.bT,_.xH,_.y7,_.me,_.Q0,_.Zm,_.wz,_.BC,_.cb,_.vS,_.Y4,I.m1,I.PV,I.oe,M.D9],styles:[".wc-event-reg-wiz-payment-info-total[_ngcontent-%COMP%]{border-top:1px solid #999}"]})}return n})(),Fe=(()=>{class n{constructor(t,r){this.getEventEventSponsors=i=>{let s="Event/"+i.toString()+"/Sponsors?PageSize=9999";return this._apiService.get(s)},this.getEventEventSponsor=i=>this._apiService.get("EventSponsor/"+i),this.upsertEventSponsor=i=>{let s="";return s="EventSponsors/Upsert",this._apiService.post("EventSponsors/Upsert",i).then(l=>Promise.resolve(l))},this.deleteEventSponsor=i=>{let s="";return s="EventSponsor/"+i.toString(),this._apiService.delete(s).then(()=>Promise.resolve())},this.reorderEventSponsors=(i,s)=>{if(!s||!i)return Promise.resolve();let l="Event/"+i+"/OrderSponsors",o=s.sort((c,R)=>+c.Sort-+R.Sort).map(c=>c.SponserId);return this._apiService.post(l,o).then(()=>Promise.resolve())},this._apiService=t,this._utilService=r}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(F.Gf),e.KVO(F.a0))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var mn=f(94169),gn=f(61241);const cn=["sponsorImageSelector"];let hn=(()=>{class n{constructor(t,r,i,s,l){this.registration=new N.R,this.event=new j,this.initialLoadComplete=!1,this.loadData=()=>
1{if(1==this.registration.IsEdit){for(let c of this.registration.Items)if(1==c.IsSponsorShip&&this._utilService.isNotNullOrUndefined(c.Sponsor)&&this._utilService.isNotNullEmptyOrWhitespace(c.Sponsor.SponsorName)){this.sponsor=c.Sponsor;break}}else this._utilService.isNullEmptyOrWhitespace(this.sponsor.SponsorName)&&(this.sponsor.SponsorName=this.registration.Registration.OrgName);this.initialLoadComplete=!0},this.getValidationResult=()=>{let o=new A.n;return o.isValid=!0,o},this.setImageProfileIdFilter=o=>{this.sponsorImageSelector.setImageProfileIdFilter(o)},this._utilService=t,this._eventItemService=r,this._eventSponsorService=i,this._translationService=s,this._configSettingService=l,this.sponsor=new mn.P,this.availableItems=new Array,this.itemTotal=0,this.registrationId=0}ngOnInit(){}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.a0),e.rXU(D.B),e.rXU(Fe),e.rXU(O.L),e.rXU(z.k))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard-sponsor"]],viewQuery:function(r,i){if(1&r&&e.GBs(cn,5),2&r){let s;e.mGM(s=e.lsd())&&(i.sponsorImageSelector=s.first)}},features:[e.Jv_([D.B,Fe])],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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),e.EFF(5),e.nI1(6,"translate"),e.nI1(7,"titlecase"),e.k0s()()(),e.j41(8,"div",3)(9,"div",4)(10,"div",5)(11,"label",6)(12,"input",7),e.bIt("ngModelChange",function(o){return e.eBV(s),e.Njj(i.sponsor.DoNotDisplay=o)}),e.k0s(),e.j41(13,"span"),e.EFF(14),e.nI1(15,"translate"),e.nI1(16,"titlecase"),e.k0s()()()()(),e.j41(17,"div",3)(18,"div",8)(19,"label"),e.EFF(20),e.nI1(21,"translate"),e.nI1(22,"titlecase"),e.k0s()(),e.j41(23,"div",9)(24,"input",10),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.sponsor.SponsorName,o)||(i.sponsor.SponsorName=o),e.Njj(o)}),e.k0s()()(),e.j41(25,"div",3)(26,"div",8)(27,"label"),e.EFF(28),e.nI1(29,"translate"),e.nI1(30,"titlecase"),e.k0s()(),e.j41(31,"div",9)(32,"wl-image-lookup",11,0),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.sponsor.SponsorLogoUrl,o)||(i.sponsor.SponsorLogoUrl=o),e.Njj(o)}),e.k0s()()(),e.j41(34,"div",3)(35,"div",8)(36,"label"),e.EFF(37),e.nI1(38,"translate"),e.nI1(39,"titlecase"),e.k0s()(),e.j41(40,"div",9)(41,"textarea",12),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.sponsor.SponsorMessage,o)||(i.sponsor.SponsorMessage=o),e.Njj(o)}),e.k0s()()(),e.j41(42,"div",3)(43,"div",8)(44,"label"),e.EFF(45),e.nI1(46,"translate"),e.nI1(47,"titlecase"),e.k0s()(),e.j41(48,"div",9)(49,"input",13),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.sponsor.SponsorWebsite,o)||(i.sponsor.SponsorWebsite=o),e.Njj(o)}),e.k0s()()()()()}2&r&&(e.R7$(5),e.JRh(e.bMT(7,14,e.bMT(6,12,"events.registration.wizard.sponsor.title"))),e.R7$(7),e.Y8G("ngModel",!i.sponsor.DoNotDisplay),e.R7$(2),e.SpI(" ",e.bMT(16,18,e.bMT(15,16,"events.registration.wizard.sponsor.show-sponsor-logo-label"))," "),e.R7$(6),e.SpI(" ",e.bMT(22,22,e.bMT(21,20,"events.registration.wizard.sponsor.sponsor-name-label"))," "),e.R7$(4),e.R50("ngModel",i.sponsor.SponsorName),e.R7$(4),e.SpI(" ",e.bMT(30,26,e.bMT(29,24,"events.registration.wizard.sponsor.sponsor-image-label"))," "),e.R7$(4),e.R50("ngModel",i.sponsor.SponsorLogoUrl),e.Y8G("profileId",i.registration.Registration.ProfileId),e.R7$(5),e.SpI(" ",e.bMT(39,30,e.bMT(38,28,"events.registration.wizard.sponsor.sponsor-message-label"))," "),e.R7$(4),e.R50("ngModel",i.sponsor.SponsorMessage),e.R7$(4),e.SpI(" ",e.bMT(47,34,e.bMT(46,32,"events.registration.wizard.sponsor.sponsor-website-label"))," "),e.R7$(4),e.R50("ngModel",i.sponsor.SponsorWebsite))},dependencies:[gn.X,_.me,_.Zm,_.BC,_.vS,I.PV,M.D9],encapsulation:2})}return n})();const pn=["registrationForm"],un=["registrationWizardTabsComponent"],fn=["registrationWizardItemsTab"],vn=["registrationWizardContactTab"],_n=["registrationWizardAttendeesTab"],In=["registrationWizardPaymentTab"],Rn=["registrationWizardSponsorTab"],Cn=["registrationWizardAttendeesComponent"],yn=["registrationWizardItemsComponent"],bn=["registrationWizardContactComponent"],Sn=["registrationWizardPaymentInfoComponent"],Fn=["registrationWizardSponsorComponent"];function Mn(n,a){if(1&n&&(e.j41(0,"b"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.loginInfoText," ")}}function Tn(n,a){if(1&n){const t=e.RV6();
1e.j41(0,"wl-registration-wizard-attendee-tab-nav",39),e.bIt("onAddAttendee",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.handleAttendeeNavAddNewAttendeeClick())})("onAttendeeClick",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.handleAttendeeNavAttendeeClick(i))}),e.k0s()}if(2&n){const t=e.XpG(),r=e.sdS(33);e.Y8G("attendees",null==t.registration?null:t.registration.Attendees)("enableNewButton",r.canAddNewAttendee)}}function En(n,a){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const t=a.$implicit;e.R7$(),e.SpI(" ",t," ")}}function Pn(n,a){if(1&n&&(e.j41(0,"div",40),e.EFF(1),e.j41(2,"ul",41),e.nI1(3,"translate"),e.DNE(4,En,2,1,"li",42),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.validationResult.errors[0]," "),e.R7$(),e.Y8G("hidden",e.bMT(3,3,!t.validationResult.errors||"events.registration.wizard.timeout-error"!=t.validationResult.errors[0])),e.R7$(2),e.Y8G("ngForOf",t.validationResult.errors)}}function An(n,a){if(1&n&&(e.j41(0,"div",40),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.saveError," ")}}function wn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",43)(1,"re-captcha",44),e.bIt("resolved",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onReCaptchaResponse(i))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("siteKey",t.recaptchaSiteKey)}}let Me=(()=>{class n{constructor(t,r,i,s,l,o,c,R,p,g,m,d,h,u,v,C,E){var S=this;this._entityService=v,this._tokenStorageService=C,this._configServiceService=E,this.eventId=0,this.registrationId=0,this.onRegistrationSaved=new e.bkB,this._registrationProfile=null,this.saveError="",this._attendeesLoaded=!1,this.initialLoadComplete=!1,this.registrationSuccess=!1,this.userName="",this.showLogout=!1,this.recaptchaSiteKey="",this.registrationProfileChanged=y=>{this._registrationProfile=y,this.registrationWizardItemsComponent.getItemTotals(),this.registrationWizardSponsorComponent.setImageProfileIdFilter(this.registration.Registration.ProfileId),this.registrationWizardPaymentInfoComponent.updateRegistrationWithSelectedPaymentMethod(),this.registrationWizardPaymentInfoComponent.refreshBenefits()},this.registrationItemsChanged=()=>{this.getAttendeesOverEventAttendeeMax().then(b=>{if(b>0&&this.lastItemsAttendeesOverMaxCount!=b){let T=this._translationService.getInstant("events.registration.wizard.exceeds-attendee-max-count-message-when-adding-attendees");T=this._utilService.replaceAll(T,"{0}",(this.event.MaxAttendees-this.currentlySavedAttendeeCount).toString()),this._notifyService.info(T)}this.lastItemsAttendeesOverMaxCount=b}),this.registrationWizardAttendeesComponent.updateAvailableAttendeeRegistrationItems(!this.registration.IsEdit||this._attendeesLoaded);let y=this.registration.Items.filter(b=>b.Quantity>0);this.registration.Items.filter(b=>1==b.IsSponsorShip&&b.Quantity>0),this.hasSelectedEventItems=y.length>0,this.registrationWizardPaymentInfoComponent.updateAvailablePaymentMethods(),this.registrationWizardPaymentInfoComponent.updateRegistrationWithSelectedPaymentMethod(),this._registrationService.calculateTotals(this.registration),this.tabPayment.enabled=0!=this.registration.Registration.TotalAmount||0!=this.registration.Registration.DiscountTotal,this.registrationWizardPaymentInfoComponent.refreshBenefits()},this.wizardCancel=()=>{this._translationService.get("events.registration.wizard.registration-are-you-sure-you-want-to-cancel-message").then(y=>{confirm(y)&&this._navService.navigateToEventDetail(this.eventId)})},this.wizardSave=(0,Y.A)(function*(){if(S.registrationWizardPaymentInfoComponent)try{yield S.registrationWizardPaymentInfoComponent.prepareForPayment()}catch(b){return void S._notifyService.error(b?.message??S._translationService.getInstant("revenue.credit-card-input.tokenize-error"))}let y=JSON.parse(JSON.stringify(S.registration));y.Items=y.Items.filter(b=>b.Quantity>0);for(let b of y.Attendees)1==b.CreateProfile&&(b.ProfileId=0),b.Items=b.Items.filter(T=>1==T.Selected);for(let b of y.Items)b.IsSponsorShip&&(b.Sponsor=S.registrationWizardSponsorComponent.sponsor,b.Sponsor&&(b.Sponsor.SponsorName=""));1==y.Registration.CreateProfile&&(y.Registration.ProfileId=0);let $=S.getValidationResult();if(0!=$.isValid)S.isSaving=!0,S.registrationSuccess=!1,S.saveError="",S._registrationService.upsertRegistration(y,S.reCaptchaResponseToken).then(b=>{let T=b.RegistrationHeaderId;
1S.registrationSuccess=!0,S._notifyService.success(S._translationService.getInstantTitlecase("events.registration.wizard.save-success-message")),S.onRegistrationSaved.emit(T),S.registration=new N.R,S._navService.navigateToEventRegistrationSummary(S.eventId,T,null,S._entityDomainId,S._secureRedirect,S._settingBatch),S.isSaving=!1},b=>{S.validationResult.isValid=!1,(408==b.status||503==b.status)&&S.validationResult.errors.push(S._translationService.getInstant("events.registration.wizard.timeout-error")),S.validationResult.errors.push(b.error.Message),S.isSaving=!1});else{let b="";for(let T of $.errors)b=T+". "}}),this.getValidationResult=()=>{let y=new A.n;if(y.isValid=!0,0==this.registrationWizardContactComponent.getValidationResult().isValid){y.isValid=!1;for(let b of this.registrationWizardContactComponent.getValidationResult().errors)y.errors.push(b);this.tabContact.valid=!1}else this.tabContact.valid=!0;if(0==this.registrationWizardItemsComponent.getValidationResult().isValid){y.isValid=!1;for(let b of this.registrationWizardItemsComponent.getValidationResult().errors)y.errors.push(b);this.tabItems.valid=!1}else this.tabItems.valid=!0;if(0==this.registrationWizardAttendeesComponent.getValidationResult().isValid){y.isValid=!1;for(let b of this.registrationWizardAttendeesComponent.getValidationResult().errors)y.errors.push(b);this.tabAttendees.valid=!1}else this.tabAttendees.valid=!0;if(0==this.registrationWizardPaymentInfoComponent.getValidationResult().isValid){y.isValid=!1;for(let b of this.registrationWizardPaymentInfoComponent.getValidationResult().errors)y.errors.push(b);this.tabPayment.valid=!1}else this.tabPayment.valid=!0;if(0==this.registrationWizardSponsorComponent.getValidationResult().isValid){y.isValid=!1;for(let b of this.registrationWizardSponsorComponent.getValidationResult().errors)y.errors.push(b)}return this.reCaptchaResponseToken||(y.isValid=!1,y.errors.push(this._translationService.getInstant("common.please-submit-recaptcha"))),this.validationResult=y,y},this.getAttendeesOverEventAttendeeMax=()=>this.event.MaxAttendees>0?this._eventService.getPotentialAttendeeCount(this.eventId).then(y=>{this.currentlySavedAttendeeCount=y;let $=this.event.MaxAttendees,b=0,T=0;for(let se of this.registration.Items)se.Quantity>0&&(b+=se.Quantity*se.AttendeesForItem);T=this.currentlySavedAttendeeCount+b;let sr=T-$;return this.exceedsMaxAttendeeCount=T>$,Promise.resolve(sr)}):(this.exceedsMaxAttendeeCount=!1,Promise.resolve(-99999)),this._utilService=s,this._route=i,this._navService=t,this._registrationService=l,this._dialogService=o,this._notifyService=c,this._translationService=R,this._profileService=p,this._configService=g,this._configSettingService=m,this._router=d,this._containerService=h,this._topNavBroadcastService=u,this.eventId=0,this._entityDomainId=0,this.registrationId=0,this.event=new j,this.registration=new N.R,this._eventService=r,this.selectedTab=this.tabItems,this.validationResult=new A.n,this.hasSelectedEventItems=!1,this.isSaving=!1,this.initialLoadComplete=!1,this.appContext=new Ve.B,this.assocInfo=new xe.m,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(){var t=this;return(0,Y.A)(function*(){t._configServiceService.getRecaptchaSiteKey().then(i=>{t.recaptchaSiteKey=i});let r=yield t._configService.hasBetaFeatureEnabled("EventsV4");t.isLoggedIn=t._tokenStorageService.hasValidUserTypeAccessToken(),t._configService.getConfigSetting("SignInButtonText").then(i=>{t._utilService.isNotNullEmptyOrWhitespace(i.SettingValue)?t.loginInfoText=i.SettingValue:t._translationService.get("events.registration.wizard.log-in-for-special-pricing").then(s=>{t.loginInfoText=s})}),t._configService.getSpecificConfigSetting("EventRegistration","HideLogInButton").then(i=>{t._utilService.isNotNullEmptyOrWhitespace(i.SettingValue)&&("true"==i.SettingValue.toLowerCase()?t._topNavBroadcastService.broadcast({type:me.n.hideLogin}):t._topNavBroadcastService.broadcast({type:me.n.showLogin}))}),t._route.params.subscribe(i=>{if(t._utilService.isNotNullOrUndefined(i.id)){let s=i.id;t._utilService.isNumeric(s)&&(t.eventId=Number(s),r&&t._router.navigate([`events-v4/register/${t.eventId}`]))}
1if(t._utilService.isNotNullOrUndefined(i.nameid)){let l=i.nameid.split("-");if(l.length>0){let o=l[l.length-1];t._utilService.isNumeric(o)&&(t.eventId=Number(o)),r&&t._router.navigate([`events-v4/register/${t.eventId}`])}}if(!r&&t.eventId>0){let s=t._configService.getAssocInfo(),l=Promise.resolve(new de.o),o=t._configSettingService.getConfigSettingsForSettingGroup("EventRegistration"),c=t._eventService.getEventRead(t.eventId);Promise.all([s,l,o,c]).then(R=>{t.assocInfo=R[0],t.configSettings=R[2],t.event=R[3],t.openRegistrationWizard(t.event,t.registrationId,0,t.configSettings),t._containerService.setComponentTitle(t.event.EventName),t.event.EntityId>0&&t._entityService.getEntity(t.event.EntityId).then(C=>{C&&C.Descr&&t._containerService.setComponentOrgNameText(C.Descr)});let p="",g=new Date(t.event.StartDateTimeUtc),m=new Date(t.event.EndDateTimeUtc),d=t._utilService.getShortDateString(g),h=t._utilService.getShortDateString(m),u=t._utilService.getTimeString(g),v=t._utilService.getTimeString(m);if(t._utilService.isNotNullEmptyOrWhitespace(u)?(p=`${d} ${u}`,(t._utilService.isNotNullEmptyOrWhitespace(h)||t._utilService.isNotNullEmptyOrWhitespace(v))&&(p+=" - ",d!==h&&t._utilService.isNotNullEmptyOrWhitespace(h)&&(p+=h+" "),t._utilService.isNotNullEmptyOrWhitespace(v)&&(p+=v))):p=d,t.event.EventDateTimes?.length>0){p="";for(let C of t.event.EventDateTimes)p+="<div>",p+=t._utilService.getShortDateString(C.EventDate)+" ",p+=C.StartDateTimeUtc.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+" - "+C.EndDateTimeUtc.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+"<br />"}t.event.IsAllDay&&(p=d,d!==h&&t._utilService.isNotNullEmptyOrWhitespace(h)&&(p+=" - "+h),t._translationService.get("events.registration.wizard.all-day-event").then(C=>{p+=" - "+C,t._containerService.setComponentSubTitle(p)})),t._containerService.setComponentSubTitle(p),t.intialLoadComplete=!0})}}),t._route.queryParams.subscribe(i=>{t._utilService.isNotNullEmptyOrWhitespace(i.entityDomainId)&&(t._entityDomainId=Number(i.entityDomainId)),t._secureRedirect=!t._utilService.isNotNullEmptyOrWhitespace(i.secure)||"true"==i.secure.toLocaleLowerCase(),t._utilService.isNotNullEmptyOrWhitespace(i.settingBatch)&&(t._settingBatch=i.settingBatch)})})()}ngOnDestroy(){this._containerService.setComponentTitle(""),this._containerService.setComponentOrgNameText(""),this._containerService.setComponentSubTitle("")}openRegistrationWizard(t,r,i=0,s){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.event=this._utilService.isNullOrUndefined(t)?new j:t,this.getAttendeesOverEventAttendeeMax().then(o=>{if(o>=0){let c=this._translationService.getInstant("events.registration.wizard.exceeds-attendee-max-count-message");this._notifyService.warn(c)}}),this.eventId=Number(t.EventId),this._utilService.isNullOrUndefined(r)&&(r=0),this.registrationId=Number(r),this.registration=new N.R,this.registration.EventId=this.eventId,this.registration.RegistrationId=this.registrationId,this.registration.IsEdit=this.registrationId>0,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(o=>{if(this._utilService.mapSafe(o,this.registration.Registration),o&&o.ProfileId)return this._profileService.getProfileMin(o.ProfileId).then(c=>this._registrationProfile=c);this._registrationProfile=null}).then(()=>{this.initialLoadComplete=!0;const o=this;o.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();const c=()=>o.registrationWizardAttendeesComponent.loadData().then(()=>o._attendeesLoaded=!0,()=>o._attendeesLoaded=!0);this.registrationWizardItemsComponent.loadData().then(()=>c(),()=>c()),this.registrationWizardPaymentInfoComponent.loadData(),this.registrationWizardSponsorComponent.loadData(),setTimeout(()=>{this.initialLoadComplete=!0,this.tabAttendees.enabled&&i>0&&this.tabsComponent.select(this.tabAttendees)},1e3)})}handleAttendeeCustomFieldResponseChange(){this._registrationService.calculateTotals(this.registration),this.tabPayment.enabled=0!=this.registration.Registration.TotalAmount||0!=this.registration.Registration.DiscountTotal}onReCaptchaResponse(t){this.reCaptchaResponseToken=t}handleAttendeeNavAddNewAttendeeClick(){this.tabAttendees.enabled&&(this.tabsComponent.select(this.tabAttendees),setTimeout(()=>this.registrationWizardAttendeesComponent.addNewAttendee()))}handleAttendeeNavAttendeeClick(t){this.tabAttendees.enabled&&(this.tabsComponent.select(this.tabAttendees),setTimeout(()=>this.registrationWizardAttendeesComponent.scrollToAttendee(t)))}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(K.o),e.rXU(x.H),e.rXU(w.nX),e.rXU(F.a0),e.rXU(P.f),e.rXU(F.o3),e.rXU(F.JE),e.rXU(F.L0),e.rXU(L.p),e.rXU(ce.w),e.rXU(z.k),e.rXU(w.Ix),e.rXU(Ue.J),e.rXU(Ye.R),e.rXU(ge.T),e.rXU(J.I),e.rXU(X.j))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-wizard"]],viewQuery:function(r,i){if(1&r&&(e.GBs(pn,5),e.GBs(un,5),e.GBs(fn,5),e.GBs(vn,5),e.GBs(_n,5),e.GBs(In,5),e.GBs(Rn,5),e.GBs(Cn,5),e.GBs(yn,5),e.GBs(bn,5),e.GBs(Sn,5),e.GBs(Fn,5)),2&r){let s;e.mGM(s=e.lsd())&&(i.registrationForm=s.first),e.mGM(s=e.lsd())&&(i.tabsComponent=s.first),e.mGM(s=e.lsd())&&(i.tabItems=s.first),e.mGM(s=e.lsd())&&(i.tabContact=s.first),e.mGM(s=e.lsd())&&(i.tabAttendees=s.first),e.mGM(s=e.lsd())&&(i.tabPayment=s.first),e.mGM(s=e.lsd())&&(i.tabSponsor=s.first),e.mGM(s=e.lsd())&&(i.registrationWizardAttendeesComponent=s.first),e.mGM(s=e.lsd())&&(i.registrationWizardItemsComponent=s.first),e.mGM(s=e.lsd())&&(i.registrationWizardContactComponent=s.first),e.mGM(s=e.lsd())&&(i.registrationWizardPaymentInfoComponent=s.first),e.mGM(s=e.lsd())&&(i.registrationWizardSponsorComponent=s.first)}}
1,outputs:{onRegistrationSaved:"onRegistrationSaved"},features:[e.Jv_([x.H,P.f,z.k,ge.T])],decls:74,vars:68,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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",12)(1,"div",13)(2,"div",14),e.nrm(3,"img",15),e.k0s()()(),e.j41(4,"div",16)(5,"h4"),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"titlecase"),e.k0s()(),e.j41(9,"div",17)(10,"div",18),e.DNE(11,Mn,2,1,"b",19),e.k0s(),e.j41(12,"form",null,0)(14,"wl-tabs",20,1)(16,"wl-tab",21,2),e.nI1(18,"translate"),e.nI1(19,"titlecase"),e.j41(20,"wl-registration-wizard-contact",22,3),e.bIt("onRegistrationProfileChanged",function(o){return e.eBV(s),e.Njj(i.registrationProfileChanged(o))}),e.k0s()(),e.j41(22,"wl-tab",21,4),e.nI1(24,"translate"),e.nI1(25,"titlecase"),e.j41(26,"wl-registration-wizard-items",23,5),e.bIt("onRegistrationItemsChanged",function(){return e.eBV(s),e.Njj(i.registrationItemsChanged())}),e.k0s()(),e.j41(28,"wl-tab",21,6),e.nI1(30,"translate"),e.nI1(31,"titlecase"),e.j41(32,"wl-registration-wizard-attendees",24,7),e.bIt("customFieldResponseChange",function(){return e.eBV(s),e.Njj(i.handleAttendeeCustomFieldResponseChange())}),e.k0s()(),e.j41(34,"wl-tab",25),e.DNE(35,Tn,1,2,"ng-template"),e.k0s(),e.j41(36,"wl-tab",21,8),e.nI1(38,"translate"),e.nI1(39,"titlecase"),e.nrm(40,"wl-registration-wizard-payment-info",26,9),e.k0s(),e.j41(42,"wl-tab",27,10),e.nI1(44,"translate"),e.nI1(45,"titlecase"),e.nrm(46,"wl-registration-wizard-sponsor",null,11),e.k0s()()(),e.j41(48,"div",28)(49,"div"),e.DNE(50,Pn,5,5,"div",29)(51,An,2,1,"div",29)(52,wn,2,1,"div",30),e.nrm(53,"wl-busy",31),e.j41(54,"button",32),e.bIt("click",function(){return e.eBV(s),e.Njj(i.wizardCancel())}),e.nrm(55,"span",33),e.EFF(56),e.nI1(57,"translate"),e.nI1(58,"titlecase"),e.k0s(),e.j41(59,"button",32),e.bIt("click",function(){e.eBV(s);const o=e.sdS(15);return e.Njj(o.selectPreviousTab())}),e.nrm(60,"span",34),e.EFF(61),e.nI1(62,"translate"),e.nI1(63,"titlecase"),e.k0s(),e.j41(64,"button",35),e.bIt("click",function(){e.eBV(s);const o=e.sdS(15);return e.Njj(o.selectNextTab())}),e.EFF(65),e.nI1(66,"translate"),e.nI1(67,"titlecase"),e.nrm(68,"span",36),e.k0s(),e.j41(69,"button",37),e.bIt("click",function(){return e.eBV(s),e.Njj(i.wizardSave())}),e.nrm(70,"span",38),e.EFF(71),e.nI1(72,"translate"),e.nI1(73,"titlecase"),e.k0s()()()()}if(2&r){const s=e.sdS(15);e.Y8G("hidden",1==i.intialLoadComplete),e.R7$(4),e.Y8G("hidden",0==i.intialLoadComplete||0==i.event.DisableRegistration),e.R7$(2),e.JRh(e.bMT(8,30,e.bMT(7,28,"events.registration.wizard.registration-disabled-message"))),e.R7$(3),e.Y8G("hidden",0==i.intialLoadComplete||1==i.event.DisableRegistration),e.R7$(2),e.Y8G("ngIf",!i.isLoggedIn),e.R7$(3),e.Y8G("tabAff
1ix",!0)("tabAffixOffset",191),e.R7$(2),e.FS9("title",e.bMT(19,34,e.bMT(18,32,"events.registration.wizard.contact.title"))),e.R7$(6),e.FS9("title",e.bMT(25,38,e.bMT(24,36,"events.registration.wizard.items.title"))),e.R7$(6),e.FS9("title",e.bMT(31,42,e.bMT(30,40,"events.registration.wizard.attendees.title"))),e.R7$(4),e.Y8G("registrationProfile",i._registrationProfile),e.R7$(2),e.Y8G("isTabWellContent",!0),e.R7$(2),e.FS9("title",e.bMT(39,46,e.bMT(38,44,"events.registration.wizard.payment-info.title"))),e.R7$(6),e.FS9("title",e.bMT(45,50,e.bMT(44,48,"events.registration.wizard.sponsor.title"))),e.Y8G("enabled",!1),e.R7$(8),e.Y8G("ngIf",!i.validationResult.isValid&&i.validationResult.errors.length>0),e.R7$(),e.Y8G("ngIf",!i.registration.IsEdit&&""!=i.saveError),e.R7$(),e.Y8G("ngIf",s.isOnLastTab&&i.recaptchaSiteKey),e.R7$(),e.Y8G("show",i.isSaving),e.R7$(),e.Y8G("disabled",i.isSaving),e.R7$(2),e.SpI(" ",e.bMT(58,54,e.bMT(57,52,"common.cancel"))," "),e.R7$(3),e.Y8G("disabled",s.isOnFirstTab),e.R7$(2),e.SpI(" ",e.bMT(63,58,e.bMT(62,56,"common.back"))," "),e.R7$(3),e.Y8G("hidden",s.isOnLastTab),e.R7$(),e.SpI(" ",e.bMT(67,62,e.bMT(66,60,"common.next"))," "),e.R7$(4),e.Y8G("disabled",!s.isOnLastTab||!i.hasSelectedEventItems||i.isSaving||i.exceedsMaxAttendeeCount||i.registrationSuccess)("hidden",!s.isOnLastTab),e.R7$(2),e.SpI(" ",e.bMT(73,66,e.bMT(72,64,"events.registration.wizard.submit-registration"))," ")}},dependencies:[q.o,Le.O,Xe.j,I.Sq,I.bT,_.qT,_.cb,_.Y4,_.cV,Z.J,G.DJ,G.sA,dt,gt,ei,fi,dn,hn,I.PV,M.D9],encapsulation:2})}return n})();class Nn{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}}var ne=f(5779),jn=f(38542),Te=f(55366),Dn=f(76508);function kn(n,a){1&n&&(e.j41(0,"tr",7)(1,"th",8),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"th",9),e.EFF(6),e.nI1(7,"translate"),e.nI1(8,"titlecase"),e.k0s(),e.j41(9,"th",10),e.EFF(10),e.nI1(11,"translate"),e.nI1(12,"titlecase"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(4,5,e.bMT(3,3,"events.detail.items.grid.column-item-name"))),e.R7$(4),e.JRh(e.bMT(8,9,e.bMT(7,7,"events.detail.items.grid.column-price"))),e.R7$(4),e.JRh(e.bMT(12,13,e.bMT(11,11,"events.detail.items.grid.column-expiration-date"))))}function Gn(n,a){if(1&n&&e.nrm(0,"div",15),2&n){const t=e.XpG().$implicit;e.Y8G("innerHTML",t.LongDescription,e.npT)}}function zn(n,a){if(1&n&&(e.j41(0,"tr",11)(1,"td")(2,"span",12),e.EFF(3),e.k0s(),e.DNE(4,Gn,1,1,"div",13),e.k0s(),e.j41(5,"td",14),e.EFF(6),e.nI1(7,"currency"),e.nI1(8,"currency"),e.k0s(),e.j41(9,"td",10),e.EFF(10),e.nI1(11,"date"),e.k0s()()),2&n){const t=a.$implicit;e.R7$(3),e.JRh(t.Descr),e.R7$(),e.Y8G("ngIf",t.LongDescription),e.R7$(2),e.Lme(" ",e.ii3(7,5,t.NonMemberPrice,"USD","symbol","1.2-2")," ",e.ii3(8,10,t.NonMemberPrice!==t.MemberPrice?t.MemberPrice:"","USD","symbol","1.2-2")," "),e.R7$(4),e.JRh(e.i5U(11,15,t.EndDate,"M/d/yyyy"))}}function On(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",19),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.openEventPage(i.event.RegistrationUrl))}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"events.detail.items.button-register"))," "))}function $n(n,a){if(1&n&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()),2&n){const t=e.XpG(3);e.FS9("href",t.event.RegistrationUrl,e.B4B),e.R7$(),e.SpI(" ",e.bMT(3,4,e.bMT(2,2,"events.detail.items.button-register"))," ")}}function Bn(n,a){if(1&n&&(e.j41(0,"div",16),e.DNE(1,On,4,5,"button",17)(2,$n,4,6,"a",18),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.event.IsSpecialRegistrationUrl),e.R7$(),e.Y8G("ngIf",t.event.IsSpecialRegistrationUrl)}}function Wn(n,a){if(1&n&&(e.j41(0,"div",1)(1,"h6",2),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.j41(5,"p-table",3),e.DNE(6,kn,13,15,"ng-template",4)(7,zn,12,18,"ng-template",5),e.k0s(),e.DNE(8,Bn,3,2,"div",6),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(4,9,e.bMT(3,7,"events.detail.items.title"))),e.R7$(3),e.Y8G("value",t.eventItems)("paginator",!1)("rows",50)("lazy",!1)("responsive",!0),e.R7$(3),e.Y8G("ngIf",t.event.IsRegistrationEnabled)}}let Vn=(()=>{class n{get eventItems(){return this.event.Items.filter(t=>t.IsPublic&&t.StartDate.getTime()<this.today.getTime()&&this.today.getTime()<=t.EndDate.getTime())}constructor(t,r,i){this._route=t,this._utilService=r,this._navigationService=i,this.today=new Date}ngOnInit(){this._route.params.subscribe(t=>{this._utilService.isNotNullOrUndefined(t.nameid)&&(this.routeParam=t.nameid)})}openEventPage(t){this._navigationService.navigateToEventPage(t)}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(w.nX),e.rXU(F.a0),e.rXU(K.o))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-event-detail-item"]],inputs:{event:"event"},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","responsive"],["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-
1ar"],["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(r,i){1&r&&e.DNE(0,Wn,9,11,"div",0),2&r&&e.Y8G("ngIf",(null==i.eventItems?null:i.eventItems.length)>0)},dependencies:[ne.Ei,I.bT,Te.XI,I.PV,I.oe,I.vh,M.D9],styles:[".grid-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#e6e6e6}.grid-row[_ngcontent-%COMP%]:nth-child(2n){background:#f6f6f6}"]})}return n})();var xn=f(93015),Ee=f(92637);const Un=()=>({"max-height":"13px","max-width":"13px","vertical-align":"top","margin-right":"3px"});function Yn(n,a){if(1&n&&(e.j41(0,"div")(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.JRh(t.OrgName)}}function Ln(n,a){if(1&n&&(e.j41(0,"div",9),e.nrm(1,"wl-profile-type-icon",10),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&n){const t=a.$implicit;e.R7$(),e.Y8G("styleOverrides",e.lJ4(2,Un)),e.R7$(2),e.JRh(t.FullName)}}function Xn(n,a){if(1&n&&e.DNE(0,Ln,4,3,"div",8),2&n){const t=e.XpG().$implicit;e.Y8G("ngForOf",t.Attendees)}}function qn(n,a){if(1&n&&(e.j41(0,"div")(1,"p-accordionTab",5),e.DNE(2,Yn,3,1,"ng-template",6)(3,Xn,1,1,"ng-template",7),e.k0s()()),2&n){const t=a.index;e.R7$(),e.Y8G("headerStyle",t%2==0?"background: #f6f6f6;":"background: transparent;")}}function Hn(n,a){if(1&n&&(e.j41(0,"div")(1,"p-accordion",3),e.DNE(2,qn,4,1,"div",4),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.event.SignUps)}}let Jn=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-event-detail-attendee"]],inputs:{event:"event"},decls:6,vars:6,consts:[[1,"mv-25"],[1,"mv-15","f-wb"],[4,"ngIf"],["styleClass","f-12"],[4,"ngFor","ngForOf"],[3,"headerStyle"],["pTemplate","header"],["pTemplate","content"],["class","mv-5 attendees",4,"ngFor","ngForOf"],[1,"mv-5","attendees"],[3,"styleOverrides"]],template:function(r,i){1&r&&(e.j41(0,"div",0)(1,"h6",1),e.EFF(2),e.nI1(3,"translate"),e.nI1(4,"titlecase"),e.k0s(),e.DNE(5,Hn,3,1,"div",2),e.k0s()),2&r&&(e.R7$(2),e.JRh(e.bMT(4,4,e.bMT(3,2,"events.detail.attendees.title"))),e.R7$(3),e.Y8G("ngIf",i.event))},dependencies:[xn.K,Ee.nD,Ee.gV,ne.Ei,I.Sq,I.bT,I.PV,M.D9],styles:["[_nghost-%COMP%] .p-accordion-content{max-height:200px;scroll-behavior:auto;overflow-x:hidden!important}"]})}return n})(),Qn=(()=>{class n{constructor(t){this._apiService=t,this.composeEmailForProfiles=r=>{let i="";for(var s of r.ToProfileIds)(i="")?i+=s.toString():i+=","+s.toString();let l=this._domain+"/External/WCPages/v12/WebClient/Email/Send.aspx?subject="+encodeURIComponent(r.Subject)+"&message="+encodeURIComponent(r.Message)+"&ProfileIDs="+i;window.open(l)},this.sendEmail=r=>this._apiService.put("email",r),this._domain=this._apiService.getDomain()}sendEmailWithCaptcha(t,r){const i=[this.createReCaptchaHeader(r)];return this._apiService.post("/Email/SendEmailWithCaptcha",t,i)}createReCaptchaHeader(t){return new F.js("g-recaptcha-response",t)}static#e=this.\u0275fac=function(r){return new(r||n)(e.KVO(F.Gf))};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Zn(n,a){if(1&n){const t=e.RV6();e.j41(0,"div",14)(1,"re-captcha",15),e.bIt("resolved",function(i){e.eBV(t);const s=e.XpG();return e.Njj(s.onReCaptchaResponse(i))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("siteKey",t.recaptchaSiteKey)}}let Kn=(()=>{class n{constructor(t,r,i){this._notificationService=t,this._emailService=r,this._configService=i,this.today=new Date,this.emailMessage={},this.sendingEmail=!1,this.recaptchaSiteKey=""}ngOnInit(){this._configService.getRecaptchaSiteKey().then(t=>{this.recaptchaSiteKey=t})}clearForm(){this.emailMessage.EmailFrom="",this.emailMessage.Message=""}onReCaptchaResponse(t){this.reCaptchaResponseToken=t}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")},t=>{this.sendingEmail=!1,this._notificationService.translateError(t.message)})}setEmailProperties(){this.emailMessage.EmailTo=this.event.Email,this.emailMessage.Subject=`Question Submitted From ${this.event.EventName}`}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(F.JE),e.rXU(Qn),e.rXU(X.j))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-event-detail-contact-form"]],inputs:{event:"event"},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(r,i){if(1&r){const s=e.RV6();e.j41(0,"div",1)(1,"h6",2),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"date"),e.k0s()(),e.j41(7,"form",null,0)(9,"div",3)(10,"div",4)(11,"label"),e.EFF(12),e.nI1(13,"translate"),e.nI1(14,"titlecase"),e.k0s(),e.j41(15,"label",5),e.EFF(16),e.nI1(17,"translate"),e.nI1(18,"titlecase"),e.k0s()(),e.j41(19,"input",6),e.nI1(20,"translate"),e.nI1(21,"titlecase"),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.emailMessage.EmailFrom,o)||(i.emailMessage.EmailFrom=o),e.Njj(o)}),e.k0s(),e.j41(22,"div",4)(23,"label"),e.EFF(24),e.nI1(25,"translate"),e.nI1(26,"titlecase"),e.k0s(),e.j41(27,"label",5),e.EFF(28),e.nI1(29,"translate"),e.nI1(30,"titlecase"),e.k0s()(),e.j41(31,"textarea",7),e.mxI("ngModelChange",function(o){return e.eBV(s),e.DH7(i.emailMessage.Message,o)||(i.emailMessage.Message=o),e.Njj(o)}),e.k0s()(),e.j41(32,"div",8),e.DNE(33,Zn,2,1,"div",9),e.j41(34,"div",10)(35,"button",11),e.bIt("click",function(){return e.eBV(s),e.Njj(i.clearForm())}),e.EFF(36),e.nI1(37,"translate"),e.nI1(38,"titlecase"),e.k0s(),e.j41(39,"button",12),e.bIt("click",function(){return e.eBV(s),e.Njj(i.sendEmail())}),e.nrm(40,"wl-busy",13),e.EFF(41),e.nI1(42,"translate"),e.nI1(43,"titlecase"),e.k0s()()()()}if(2&r){const s=e.sdS(8);e.R7$(2),e.JRh(e.bMT(3,14,"events.detail.contact-form.title")),e.R7$(3),e.JRh(e.i5U(6,16,i.today,"MM/dd/yyyy")),e.R7$(7),e.SpI("",e.bMT(14,21,e.bMT(13,19,"events.detail.contact-form.your-email")),":"),e.R7$(4),e.JRh(e.bMT(18,25,e.bMT(17,23,"common.required"))),e.R7$(3),e.Y8G("placeholder",e.bMT(21,29,e.bMT(20,27,"events.detail.contact-form.placeholder-email"))),e.R50("ngModel",i.emailMessage.EmailFrom),e.R7$(5),e.SpI("",e.bMT(26,33,e.bMT(25,31,"events.detail.contact-form.message")),":"),e.R7$(4),e.JRh(e.bMT(30,37,e.bMT(29,35,"common.required"))),e.R7$(3),e.R50("ngModel",i.emailMessage.Message),e.R7$(2),e.Y8G("ngIf",i.recaptchaSiteKey),e.R7$(3),e.SpI(" ",e.bMT(38,41,e.bMT(37,39,"events.detail.contact-form.button-clear-all"))," "),e.R7$(3),e.Y8G("disabled",!s.valid||!i.reCaptchaResponseToken||i.sendingEmail),e.R7$(),e.Y8G("show",i.sendingEmail),e.R7$(),e.SpI(" ",e.bMT(43,45,e.bMT(42,43,"events.detail.contact-form.button-send"))," ")}},dependencies:[q.o,I.bT,_.qT,_.me,_.BC,_.cb,_.YS,_.vS,_.cV,Z.J,G.DJ,G.sA,I.PV,I.vh,M.D9],styles:[".grey-box[_ngcontent-%COMP%]{background-color:#f4f4f4}"]})}return n})();var es=f(60247);function ts(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.eventDisplayDate," ")}}function is(n,a){if(1&n&&(e.j41(0,"tr")(1,"td")(2,"div",24)(3,"div"),e.EFF(4),e.nI1(5,"date"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"date"),e.nI1(9,"date"),e.k0s()()()()),2&n){const t=a.$implicit;e.R7$(4),e.JRh(e.i5U(5,3,t.StartDateTimeUtc,"fullDate")),e.R7$(3),e.Lme(" ",e.i5U(8,6,t.StartDateTimeUtc,"shortTime")," - ",e.i5U(9,9,t.EndDateTimeUtc,"shortTime")," ")}}function ns(n,a){if(1&n&&(e.j41(0,"div")(1,"p-table",22),e.DNE(2,is,10,12,"ng-template",23),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("value",t.event.EventDateTimes)("rows",t.event.EventDateTimes.length)}}function ss(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"events.detail.all-day-event")," ")}function rs(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.event.Venue," ")}}function os(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.event.Address1," ")}}function as(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.event.Address2," ")}}function ls(n,a){if(1&n){const t=e.RV6();e.j41(0,"button",27),e.bIt("click",function(){e.eBV(t);const i=e.XpG(3);return e.Njj(i.openEventPage(i.event.RegistrationUrl))}),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(3,3,e.bMT(2,1,"events.detail.items.button-register"))," "))}function ds(n,a){if(1&n&&(e.j41(0,"a",28),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"titlecase"),e.k0s()),2&n){const t=e.XpG(3);e.FS9("href",t.event.RegistrationUrl,e.B4B),e.R7$(),e.SpI(" ",e.bMT(3,4,e.bMT(2,2,"events.detail.items.button-register"))," ")}}function ms(n,a){if(1&n&&(e.j41(0,"div",10),e.DNE(1,ls,4,5,"button",25)(2,ds,4,6,"a",26),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.event.IsSpecialRegistrationUrl),e.R7$(),e.Y8G("ngIf",t.event.IsSpecialRegistrationUrl)}}function gs(n,a){if(1&n&&(e.j41(0,"div",29)(1,"a",30),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("href",t.event.RelatedWebsite,e.B4B),e.R7$(),e.SpI(" ",t.event.RelatedWebsite," ")}}function cs(n,a){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"wl-event-detail-attendee",33),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("event",t.event)}}function hs(n,a){if(1&n&&(e.j41(0,"div",31)(1,"div",32),e.nrm(2,"wl-event-detail-item",33),e.k0s(),e.DNE(3,cs,2,1,"div",34),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("event",t.event),e.R7$(),e.Y8G("ngIf",t.event.ShowAttendeeDetail)}}function ps(n,a){if(1&n&&(e.j41(0,"div",36),e.nrm(1,"wl-event-detail-contact-form",33),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("event",t.event)}}function us(n,a){if(1&n&&(e.j41(0,"div",37),e.nrm(1,"img",38),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("src",t.eventImageUrl,e.B4B)}}function fs(n,a){if(1&n&&e.nrm(0,"img",45),2&n){const t=e.XpG(2).$implicit;e.Y8G("src",t.SponsorLogoUrl,e.B4B)("pTooltip",t.SponsorName)}}function vs(n,a){if(1&n&&(e.j41(0,"a",30),e.DNE(1,fs,1,2,"img",44),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("href",t.SponsorWebsite,e.B4B),e.R7$(),e.Y8G("ngIf",t.SponsorLogoUrl)}}function _s(n,a){if(1&n&&e.nrm(0,"img",45),2&n){const t=e.XpG(2).$implicit;e.Y8G("src",t.SponsorLogoUrl,e.B4B)("pTooltip",t.SponsorName)}}function Is(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,_s,1,2,"img",44),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",t.SponsorLogoUrl)}}function Rs(n,a){if(1&n&&(e.j41(0,"a",30),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.Y8G("href",t.SponsorWebsite,e.B4B),e.R7$(),e.SpI(" ",t.SponsorName," ")}}function Cs(n,a){if(1&n&&e.EFF(0),2&n){const t=e.XpG(2).$implicit;e.SpI(" ",t.SponsorName," ")}}function ys(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,Rs,2,2,"a",43)(2,Cs,1,1,"ng-template",null,2,e.C5r),e.k0s()),2&n){const t=e.sdS(3),r=e.XpG().$implicit;e.R7$(),e.Y8G("ngIf",r.SponsorWebsite)("ngIfElse",t)}}function bs(n,a){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.SponsorMessage," ")}}function Ss(n,a){if(1&n&&(e.j41(0,"div",42),e.DNE(1,vs,2,2,"a",43)(2,Is,2,1,"ng-template",null,1,e.C5r)(4,ys,4,2,"div",9)(5,bs,2,1,"div",9),e.k0s()),2&n){const t=a.$implicit,r=e.sdS(3);e.R7$(),e.Y8G("ngIf",t.SponsorWebsite)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",!t.HideSponsorOrgName&&t.SponsorName),e.R7$(),e.Y8G("ngIf",!!t.SponsorMessage)}}function Fs(n,a){if(1&n&&(e.j41(0,"div",39)(1,"div",40),e.DNE(2,Ss,6,4,"div",41),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.sponsors)}}function Ms(n,a){if(1&n&&(e.j41(0,"div",46),e.nrm(1,"wl-directory-map",47),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("searchResults",t.eventMapLocations)}}function Ts(n,a){if(1&n&&(e.j41(0,"div",6)(1,"div",7)(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"div",8),e.DNE(
15,ts,2,1,"div",9)(6,ns,3,2,"div",9),e.j41(7,"div",10),e.DNE(8,ss,2,3,"ng-template",null,0,e.C5r),e.k0s(),e.j41(10,"div",10)(11,"div")(12,"div",11),e.DNE(13,rs,2,1,"div",9)(14,os,2,1,"div",9)(15,as,2,1,"div",9),e.j41(16,"div"),e.EFF(17),e.k0s()(),e.j41(18,"div",12),e.EFF(19),e.k0s()(),e.nrm(20,"hr"),e.k0s(),e.DNE(21,ms,3,2,"div",13),e.k0s(),e.nrm(22,"div",14),e.nI1(23,"safeHtml"),e.DNE(24,gs,3,2,"div",15)(25,hs,4,2,"div",16)(26,ps,2,1,"div",17),e.k0s(),e.j41(27,"div",18),e.DNE(28,us,2,1,"div",19)(29,Fs,3,1,"div",20)(30,Ms,2,1,"div",21),e.k0s()()),2&n){const t=e.XpG();e.R7$(3),e.JRh(t.event.EventName),e.R7$(2),e.Y8G("ngIf",!t.displayMultipleDates),e.R7$(),e.Y8G("ngIf",t.displayMultipleDates),e.R7$(7),e.Y8G("ngIf",t.event.Venue),e.R7$(),e.Y8G("ngIf",t.event.Address1),e.R7$(),e.Y8G("ngIf",t.event.Address2),e.R7$(2),e.LHq("",t.event.City,"",t.event.City?",":""," ",t.event.State," ",t.event.Zip,""),e.R7$(2),e.JRh(t.event.Location),e.R7$(2),e.Y8G("ngIf",t.event.IsRegistrationEnabled),e.R7$(),e.Y8G("innerHTML",e.bMT(23,19,t.event.Descr),e.npT),e.R7$(2),e.Y8G("ngIf",t.event.RelatedWebsite),e.R7$(),e.Y8G("ngIf",t.event.EventId>0),e.R7$(),e.Y8G("ngIf",t.showContactForm),e.R7$(2),e.Y8G("ngIf",""!==t.eventImageUrl),e.R7$(),e.Y8G("ngIf",t.hasSponsors),e.R7$(),e.Y8G("ngIf",t.event.ShowMap)}}let Es=(()=>{class n{constructor(t,r,i,s,l,o,c,R,p){this._route=t,this._utilService=r,this._eventService=i,this._configService=s,this._configServiceService=l,this._navigationService=o,this.elRef=c,this.renderer=R,this.cdr=p,this.event=new Nn,this.eventMapLocations=new Array,this.eventImageUrl="",this.showContactForm=!1,this.hasSponsors=!1,this.displayMultipleDates=!1,this.eventDisplayDate=""}ngOnInit(){this._configService.getAppContext().then(t=>{this.webRootSecure=t.WebRootSecure}),this._route.params.subscribe(t=>{if(this._utilService.isNotNullOrUndefined(t.nameid)){let i=t.nameid.split("-");if(i.length>0){let s=i[i.length-1];this._utilService.isNumeric(s)&&(this.eventId=Number(s),this.eventId>0&&(this._eventService.getEventDetails(this.eventId).then(l=>{this.event=l,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.applyDescriptionStyles(),0)}),this._eventService.getEventSponsors(this.eventId).then(l=>{l.Result.length>0&&(this.sponsors=this._utilService.sortByStringAsc(l.Result,"Sort"),this.sponsors.forEac
1h(o=>{o.SponsorLogoUrl=o.SponsorLogoUrl.startsWith("http")||!o.SponsorLogoUrl?o.SponsorLogoUrl:this.webRootSecure+o.SponsorLogoUrl}),this.hasSponsors=!0)})))}}})}ngAfterViewInit(){this.cdr.detectChanges(),setTimeout(()=>{this.applyDescriptionStyles(),this.applyIframeStyles()},500)}ngAfterViewChecked(){this.applyDescriptionStyles()}applyDescriptionStyles(){setTimeout(()=>{const t=this.elRef.nativeElement.querySelector(".long-description");t&&(t.querySelectorAll("table").forEach(l=>{this.renderer.removeStyle(l,"width"),this.renderer.setStyle(l,"max-width","100%"),this.renderer.setStyle(l,"width","100%"),this.renderer.setStyle(l,"table-layout","auto"),this.renderer.setStyle(l,"box-sizing","border-box")}),t.querySelectorAll('[style*="width"]').forEach(l=>{const c=(l.getAttribute("style")||"").includes("width:"),R=l.tagName.toLowerCase().includes("img");c&&!R&&l.offsetWidth>t.clientWidth&&(this.renderer.setStyle(l,"width","100%"),this.renderer.setStyle(l,"max-width","100%"))}),this.applyImageStyles())},100)}applyImageStyles(){setTimeout(()=>{const t=this.elRef.nativeElement.querySelectorAll(".long-description img"),r=this.elRef.nativeElement.querySelector(".long-description");if(!r)return;const i=r.clientWidth;t.forEach(s=>{s.getAttribute("style");const o=s.style.width?parseInt(s.style.width,10):null,c=s.style.height?parseInt(s.style.height,10):null,R=s.naturalWidth,m=(s.closest("td")||s.closest("th"),o&&!c),d=!o&&!c;if(o&&c)o<=i?(s.style.setProperty("width",`${o}px`,"important"),s.style.setProperty("height",`${c}px`,"important"),s.style.setProperty("max-width","none","important"),s.style.setProperty("max-height","none","important")):(s.style.setProperty("width","100%","important"),s.style.setProperty("height","auto","important"),s.style.setProperty("max-width","100%","important"));else if(m)o<=i?(s.style.setProperty("width",`${o}px`,"important"),s.style.setProperty("height","auto","important")):(s.style.setProperty("width","100%","important"),s.style.setProperty("height","auto","important")),s.style.setProperty("max-width","100%","important");else if(d){const h=R>i;s.style.setProperty("max-width","100%","important"),s.style.setProperty("height","auto","important"),h?(s.style.setProperty("width","100%","important"),s.style.setProperty("margin","0 auto","important")):s.style.setProperty("width","auto","important")}s.style.setProperty("box-sizing","border-box","important")})},100)}applyIframeStyles(){setTimeout(()=>{const t=this.elRef.nativeElement.querySelector(".long-description");t&&t.querySelectorAll("iframe").forEach(i=>{(i.src||"").includes("recaptcha")||(this.renderer.setStyle(i,"max-width","100%"),this.renderer.setStyle(i,"width","100%"),this.renderer.setStyle(i,"display","block"),this.renderer.setStyle(i,"border","0"))})},100)}setEventImage(t){this._configService.getAppContext().then(r=>{this._utilService.isNotNullEmptyOrWhitespace(t.ImageUrl)&&(this.eventImageUrl=t.ImageUrl.indexOf(r.WebRootSecure)<0?r.WebRootSecure+t.ImageUrl:t.ImageUrl)})}setEventMapLocation(t){this._configServiceService.getDirectorySettings().then(r=>{if(r.GoogleMapsApiKey){let i={};i.Address1=this._utilService.replaceAll(t.Address1,"#",""),i.Address2=this._utilService.replaceAll(t.Address2,"#",""),i.City=t.City,i.State=t.State,i.Zip=t.Zip,i.WorkPhone=t.Phone,i.DisplayName=t.Venue,i.Latitude=t.Latitude,i.Longitude=t.Longitude,this.event.ShowMap=this._utilService.isNotNullEmptyOrWhitespace(i.Latitude)&&this._utilService.isNotNullEmptyOrWhitespace(i.Longitude)&&"-1"!==i.Latitude&&"-1"!==i.Longitude,this.eventMapLocations.push(i)}})}openEventPage(t){this._navigationService.navigateToEventPage(t)}GetEventDate(){let t=new Date(this.event.StartDateTimeUtc),r=new Date(this.event.EndDateTimeUtc),i=this._utilService.getLongDateStringNoTime(t),s=this._utilService.getLongDateStringNoTime(r),l=this._utilService.getTimeString(t),o=this._utilService.getTimeString(r),c="";return c=this._utilService.isNotNullEmptyOrWhitespace(l)&&!this.event.IsAllDay?`${i} @ ${l}`:`${i}`,(this._utilService.isNotNullEmptyOrWhitespace(s)||this._utilService.isNotNullEmptyOrWhitespace(o))&&
1((i!==s||this._utilService.isNotNullEmptyOrWhitespace(o)&&!this.event.IsAllDay)&&(c+=" - "),i!==s&&this._utilService.isNotNullEmptyOrWhitespace(s)&&(c+=s+" "),this._utilService.isNotNullEmptyOrWhitespace(o)&&!this.event.IsAllDay&&(c+=` ${o}`)),c}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(w.nX),e.rXU(F.a0),e.rXU(x.H),e.rXU(ce.w),e.rXU(X.j),e.rXU(K.o),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-event-detail"]],decls:3,vars:1,consts:[["isAllDayEvent",""],["noWebsiteWithImage",""],["noWebsite",""],[1,"page-width"],[1,"mv-25"],["class","grid cols-1fr-1fr-collapse gap-27px",4,"ngIf"],[1,"grid","cols-1fr-1fr-collapse","gap-27px"],[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"],[1,"flex","column"],["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"],["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,"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(r,i){1&r&&(e.j41(0,"div",3),e.nrm(1,"div",4),e.DNE(2,Ts,31,21,"div",5),e.k0s()),2&r&&(e.R7$(2),e.Y8G("ngIf",i.event.EventId>0))},dependencies:[ne.Ei,I.Sq,I.bT,jn.m,Te.XI,Dn.z,Vn,Jn,Kn,es.j,I.PV,I.vh,M.D9],styles:[".page-width[_ngcontent-%COMP%]{max-width:970px;margin:auto}.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}.long-description[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%!important;box-sizing:border-box!important}.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:hidden;text-align:justify}@media screen and (max-width: 768px){.img-event-container[_ngcontent-%COMP%]{text-align:center}.long-description[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%!important;height:auto!important;width:auto!important}.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%] img[_ngcontent-%COMP%], .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%] img[_ngcontent-%COMP%], .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%] img[_ngcontent-%COMP%]{max-width:100%!important}.long-description[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{max-width:80%!important;height:auto!important}}"]})}return n})();var Ps=f(28003),As=f(345),ws=f(12696),Ns=f(16038);const js=n=>({eventName:n}),Ds=n=>({invoiceNumbers:n}),Pe=n=>({"zebra-row":n});function ks(n,a){if(1&n&&e.nrm(0,"div",4),2&n){const t=e.XpG(2);e.Y8G("innerHTML",t.sanitizedConfirmationMessage,e.npT)}}function Gs(n,a){if(1&n&&(e.j41(0,"label"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.JRh(e.i5U(2,1,"events.registration.confirmation.invoice-numbers",e.eq3(4,Ds,null==t.registrationSummary?null:t.registrationSummary.InvoiceNumbers)))}}function zs(n,a){if(1&n&&(e.j41(0,"label"),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",e.i5U(2,1,null==t.registrationSummary?null:t.registrationSummary.EndDate,"MM/dd
1/yyyy h:mm a"),"")}}function Os(n,a){if(1&n&&(e.j41(0,"label"),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",e.i5U(2,1,null==t.registrationSummary?null:t.registrationSummary.EndDate,"h:mm a"),"")}}function $s(n,a){if(1&n&&(e.j41(0,"div")(1,"label"),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.EFF(4," - "),e.DNE(5,zs,3,4,"label",1)(6,Os,3,4,"label",1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",e.i5U(3,3,null==t.registrationSummary?null:t.registrationSummary.StartDate,"MM/dd/yyyy h:mm a"),""),e.R7$(3),e.Y8G("ngIf",t.multipleDays),e.R7$(),e.Y8G("ngIf",!t.multipleDays)}}function Bs(n,a){if(1&n&&(e.j41(0,"label"),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",e.i5U(2,1,null==t.registrationSummary?null:t.registrationSummary.EndDate,"MM/dd/yyyy")," - ")}}function Ws(n,a){if(1&n&&(e.j41(0,"div")(1,"label"),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.EFF(4," - "),e.DNE(5,Bs,3,4,"label",1),e.EFF(6),e.nI1(7,"translate"),e.k0s()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",e.i5U(3,3,null==t.registrationSummary?null:t.registrationSummary.StartDate,"MM/dd/yyyy"),""),e.R7$(3),e.Y8G("ngIf",t.multipleDays),e.R7$(),e.SpI(" ",e.bMT(7,6,"events.registration.confirmation.all-day-event")," ")}}function Vs(n,a){if(1&n&&(e.j41(0,"div")(1,"a",7),e.nI1(2,"date"),e.nI1(3,"date"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(),e.FRS("href","https://www.google.com/calendar/render?action=TEMPLATE&text=",null==t.registrationSummary?null:t.registrationSummary.EventName,"&dates=",e.i5U(2,6,null==t.registrationSummary?null:t.registrationSummary.StartDate,"yyyyMMddTHHmmss"),"Z/",e.i5U(3,9,null==t.registrationSummary?null:t.registrationSummary.EndDate,"yyyyMMddTHHmmss"),"Z&details=",null==t.registrationSummary?null:t.registrationSummary.ShortDescr,"&sf=true&output=xml",e.B4B),e.R7$(3),e.SpI(" ",e.bMT(5,12,"events.registration.confirmation.add-to-google-calendar")," ")}}function xs(n,a){if(1&n&&(e.j41(0,"div")(1,"a",7),e.nI1(2,"date"),e.nI1(3,"date"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(),e.FRS("href","https://www.google.com/calendar/render?action=TEMPLATE&text=",null==t.registrationSummary?null:t.registrationSummary.EventName,"&dates=",e.i5U(2,6,null==t.registrationSummary?null:t.registrationSummary.StartDate,"yyyyMMdd"),"/",e.i5U(3,9,null==t.registrationSummary?null:t.registrationSummary.EndDate,"yyyyMMdd"),"&details=",null==t.registrationSummary?null:t.registrationSummary.ShortDescr,"&sf=true&output=xml",e.B4B),e.R7$(3),e.SpI(" ",e.bMT(5,12,"events.registration.confirmation.add-to-google-calendar")," ")}}function Us(n,a){if(1&n&&(e.j41(0,"span",28),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Lme(" (includes ",t.Attendees.length," attendee",t.Attendees.length>1?"s":"",") ")}}function Ys(n,a){if(1&n&&(e.j41(0,"tr",25)(1,"td"),e.EFF(2),e.DNE(3,Us,2,2,"span",26),e.k0s(),e.j41(4,"td"),e.EFF(5),e.k0s(),e.j41(6,"td",27),e.EFF(7),e.k0s(),e.j41(8,"td",22),e.EFF(9),e.nI1(10,"currency"),e.k0s()()),2&n){const t=a.$implicit;e.Y8G("ngClass",e.eq3(8,Pe,a.index%2==0)),e.R7$(2),e.SpI(" ",t.Descr," "),e.R7$(),e.Y8G("ngIf",null==t.Attendees?null:t.Attendees.length),e.R7$(2),e.JRh(t.EventSignUpId),e.R7$(2),e.JRh(t.Quantity),e.R7$(2),e.JRh(e.bMT(10,6,t.ExtendedPrice))}}function Ls(n,a){if(1&n&&(e.j41(0,"tr",25)(1,"td"),e.EFF(2),e.k0s(),e.nrm(3,"td"),e.j41(4,"td",27),e.EFF(5),e.k0s(),e.j41(6,"td",22),e.EFF(7),e.nI1(8,"currency"),e.k0s()()),2&n){const t=a.$implicit;e.Y8G("ngClass",e.eq3(6,Pe,a.index%2==0)),e.R7$(2),e.SpI(" ",t.Descr?t.Descr:t.Item," "),e.R7$(3),e.JRh(t.Quantity),e.R7$(2),e.JRh(e.bMT(8,4,t.Amount))}}function Xs(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",21),e.EFF(2,"Promo codes applied:"),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.nI1(5,"currency"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,1,null==t.registrationSummary?null:t.registrationSummary.TotalPromoCodes))}}function qs(n,a){if(1&n&&(e.j41(0,"tr",20)(1,"td",21),e.EFF(2,"Member benefits applied:"),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.nI1(5,"currency"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,1,null==t.registrationSummary?null:t.registrationSummary.TotalMemberBenefits))}}function Hs(n,a){if(1&n&&(e.j41(0,"div",5)(1,"strong"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div"),e.nrm(5,"img",6),e.k0s(),e.j41(6,"h2"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.DNE(9,Gs,3,6,"label",1)(10,$s,7,6,"div",1)(11,Ws,8,8,"div",1),e.j41(12,"div")(13,"label"),e.EFF(14),e.k0s()(),e.j41(15,"div")(16,"a",7),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.DNE(19,Vs,6,14,"div",1)(20,xs,6,14,"div",1),e.j41(21,"strong"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"table",8)(25,"tr")(26,"td",9)(27,"label"),e.EFF(28),e.nI1(29,"translate"),e.nI1(30,"titlecase"),e.k0s()(),e.j41(31,"td")(32,"label"),e.EFF(33),e.nI1(34,"date"),e.k0s()()(),e.j41(35,"tr")(36,"td",9)(37,"label"),e.EFF(38),e.nI1(39,"translate"),e.nI1(40,"titlecase"),e.k0s()(),e.j41(41,"td")(42,"div")(43,"div",10),e.EFF(44),e.k0s(),e.j41(45,"div",10),e.EFF(46),e.k0s(),e.j41(47,"div",10),e.EFF(48),e.k0s()()()()(),e.j41(49,"div",11)(50,"table",12)(51,"thead")(52,"tr")(
153,"th",13),e.EFF(54),e.nI1(55,"translate"),e.nI1(56,"titlecase"),e.k0s(),e.j41(57,"th",14),e.EFF(58),e.nI1(59,"translate"),e.nI1(60,"titlecase"),e.k0s(),e.j41(61,"th",15),e.EFF(62),e.nI1(63,"translate"),e.nI1(64,"titlecase"),e.k0s(),e.j41(65,"th",16),e.EFF(66),e.nI1(67,"translate"),e.nI1(68,"titlecase"),e.k0s()()(),e.j41(69,"tbody"),e.DNE(70,Ys,11,10,"tr",17),e.j41(71,"tr",18),e.nrm(72,"td",19),e.k0s(),e.DNE(73,Ls,9,8,"tr",17),e.j41(74,"tr",18),e.nrm(75,"td",19),e.k0s()(),e.j41(76,"tfoot")(77,"tr",20)(78,"td",21),e.EFF(79,"Subtotal:"),e.k0s(),e.j41(80,"td",22),e.EFF(81),e.nI1(82,"currency"),e.k0s()(),e.DNE(83,Xs,6,3,"tr",1)(84,qs,6,3,"tr",23),e.j41(85,"tr")(86,"td",21),e.EFF(87,"Tax amount:"),e.k0s(),e.j41(88,"td",22),e.EFF(89),e.nI1(90,"currency"),e.k0s()(),e.j41(91,"tr",18),e.nrm(92,"td",19),e.k0s(),e.j41(93,"tr",24)(94,"td",21),e.EFF(95,"Total:"),e.k0s(),e.j41(96,"td",22),e.EFF(97),e.nI1(98,"currency"),e.k0s()(),e.j41(99,"tr")(100,"td",21),e.EFF(101,"Amount Paid:"),e.k0s(),e.j41(102,"td",22),e.EFF(103),e.nI1(104,"currency"),e.k0s()(),e.j41(105,"tr",20)(106,"td",21),e.EFF(107,"Amount Due:"),e.k0s(),e.j41(108,"td",22),e.EFF(109),e.nI1(110,"currency"),e.k0s()()()()()()),2&n){const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,39,"events.registration.confirmation.registration-summary-header")),e.R7$(3),e.Y8G("src",null==t.registrationSummary?null:t.registrationSummary.ImageUrl,e.B4B),e.R7$(2),e.JRh(e.i5U(8,41,"events.registration.confirmation.thank-you",e.eq3(85,js,null==t.registrationSummary?null:t.registrationSummary.EventName))),e.R7$(2),e.Y8G("ngIf",null==t.registrationSummary||null==t.registrationSummary.InvoiceNumbers?null:t.registrationSummary.InvoiceNumbers.length),e.R7$(),e.Y8G("ngIf",!(null!=t.registrationSummary&&t.registrationSummary.IsAllDay)),e.R7$(),e.Y8G("ngIf",null==t.registrationSummary?null:t.registrationSummary.IsAllDay),e.R7$(3),e.SpI("",null==t.registrationSummary?null:t.registrationSummary.EventLocation," "),e.R7$(2),e.Y8G("href",t.outlookDownloadCalendarUrl,e.B4B),e.R7$(),e.SpI(" ",e.bMT(18,44,"events.registration.confirmation.add-to-outlook-calendar")," "),e.R7$(2),e.Y8G("ngIf",!(null!=t.registrationSummary&&t.registrationSummary.IsAllDay)),e.R7$(),e.Y8G("ngIf",null==t.registrationSummary?null:t.registrationSummary.IsAllDay),e.R7$(2),e.SpI(" ",e.bMT(23,46,"events.registration.confirmation.add-to-google-calendar"),""),e.R7$(6),e.SpI(" ",e.bMT(30,50,e.bMT(29,48,"events.registration.confirmation.sign-up-date"))," "),e.R7$(5),e.JRh(e.i5U(34,52,null==t.registrationSummary?null:t.registrationSummary.SignUpDate,"MM/d/yyyy h:mm a")),e.R7$(5),e.SpI(" ",e.bMT(40,57,e.bMT(39,55,"events.registration.confirmation.sign-up-information"))," "),e.R7$(5),e.Y8G("hidden",!(null!=t.registrationSummary&&t.registrationSummary.Address1)),e.R7$(),e.SpI(" ",null==t.registrationSummary?null:t.registrationSummary.Address1," "),e.R7$(),e.Y8G("hidden",!(null!=t.registrationSummary&&t.registrationSummary.Address2)),e.R7$(),e.SpI(" ",null==t.registrationSummary?null:t.registrationSummary.Address2," "),e.R7$(),e.Y8G("hidden",!(null!=t.registrationSummary&&t.registrationSummary.City&&null!=t.registrationSummary&&t.registrationSummary.State&&null!=t.registrationSummary&&t.registrationSummary.Zip)),e.R7$(),e.ZXR(" ",null==t.registrationSummary?null:t.registrationSummary.City," ",null!=t.registrationSummary&&t.registrationSummary.City&&(null!=t.registrationSummary&&t.registrationSummary.State||null!=t.registrationSummary&&t.registrationSummary.Zip)?",":""," ",null==t.registrationSummary?null:t.registrationSummary.State," ",(null!=t.registrationSummary&&t.registrationSummary.State||null!=t.registrationSummary&&t.registrationSummary.City)&&null!=t.registrationSummary&&t.registrationSummary.Zip?",":""," ",null==t.registrationSummary?null:t.registrationSummary.Zip,"",null!=t.registrationSummary&&t.registrationSummary.Zip&&null!=t.registrationSummary&&t.registrationSummary.ZipExt?"-"+(null==t.registrationSummary?null:t.registrationSummary.ZipExt):""," "),e.R7$(6),e.JRh(e.bMT(56,61,e.bMT(55,59,"events.registration.confirmation.event-item"))),e.R7$(4),e.JRh(e.bMT(60,65,e.bMT(59,63,"events.registration.confirmation.confirmation-number"))),e.R7$(4),e.JRh(e.bMT(64,69,e.bMT(63,67,"events.registration.confirmation.quantity"))),e.R7$(4),e.JRh(e.bMT(68,73,e.bMT(67,71,"events.registration.confirmation.price"))),e.R7$(4),e.Y8G("ngForOf",null==t.registrationSummary?null:t.registrationSummary.RegistrationItems),e.R7$(3),e.Y8G("ngForOf",null==t.registrationSummary?null:t.registrationSummary.AdditionalLineItems),e.R7$(8),e.JRh(e.bMT(82,75,null==t.registrationSummary?null:t.registrationSummary.SubTotal)),e.R7$(2),e.Y8G("ngIf",0!=(null==t.registrationSummary?null:t.registrationSummary.TotalPromoCodes)),e.R7$(),e.Y8G("ngIf",0!=(null==t.registrationSummary?null:t.registrationSummary.TotalMemberBenefits)),e.R7$(5),e.JRh(e.bMT(90,77,null==t.registrationSummary?null:t.registrationSummary.Taxes)),e.R7$(8),e.JRh(e.bMT(98,79,null==t.registrationSummary?null:t.registrationSummary.Total)),e.R7$(6),e.JRh(e.bMT(104,81,null==t.registrationSummary?null:t.registrationSummary.AmountPaid)),e.R7$(6),e.JRh(e.bMT(110,83,null==t.registrationSummary?null:t.registrationSummary.AmountDue))}}function Js(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,ks,1,1,"div",2)(2,Hs,111,87,"div",3),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.sanitizedConfirmationMessage),e.R7$(),e.Y8G("ngIf",!(null!=t.registrationSummary&&t.registrationSummary.ConfirmationMessage))}}const Zs=[{path:":nameid/register",component:Me,canActivate:[U.X]},{path:":id/registration",component:Me,canActivate:[U.X]},{path:"eventsubmission",component:We,canActivate:[Ne]},{path:":nameid/details",component:Es,canActivate:[U.X]},{path:"registration/:id",component:(()=>{class n{constructor(t,r,i,s,l){this._registrationService=t,this._activatedRoute=r,this._eventApiService=i,this._tokenStorageService=s,this._sanitizer=l,this.loading=!0,this.outlookDownloadCalendarUrl="",this.sanitizedConfirmationMessage=null}ngOnInit(){this._activatedRoute.paramMap?.subscribe(t=>{let r=t.get("id");this._registrationService.getRegistrationSummaryByGuid(r).then(i=>{this.registrationSummary=i,this.multipleDays=this.registrationSummary.StartDate.toDateString()!=this.registrationSummary.EndDate.toDateString();const s=this._eventApiService.getBaseUrl(),l=this._tokenStorageService.getTenantId();this.outlookDownloadCalendarUrl=`${s}/event/v1/RegistrationConfirmation/download-ics-calendar?x-tenant=${l}&eventId=${this.registrationSummary.EventId}`,this.registrationSummary?.ConfirmationMessage&&(this.sanitizedConfirmationMessage=this._sanitizer.bypassSecurityTrustHtml(this.registrationSummary.ConfirmationMessage)),this.loading=!1})})}static#e=this.\u0275fac=function(r){return new(r||n)(e.rXU(P.f),e.rXU(w.nX),e.rXU(Ps.S),e.rXU(J.I),e.rXU(As.up))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["wl-registration-confirmation"]],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(r,i){1&r&&(e.nrm(0,"div",0),e.DNE(1,Js,3,2,"div",1)),2&r&&(e.Y8G("wl-busy-overlay",i.loading),e.R7$(),e.Y8G("ngIf",!i.loading))},dependencies:[ws.K,I.YU,I.Sq,I.bT,Ns.PW,I.PV,I.oe,I.vh,M.D9],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}}"]})}return n})(),canActivate:[U.X]}];let Ks=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[w.iI.forChild(Zs),w.iI]})}return n})();var er=f(79082),tr=f(32553),ir=f(87922);let nr=(()=>{class n{static#e=this.\u0275fac=function(r){return new(r||n)};static#t=this.\u0275mod=e.$C({type:n});static#i=this.\u0275inj=e.G2t({imports:[Ks,er.p,tr.x,_.YN,ir.DirectoryModule,I.MD]})}return n})()}}]);
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.