1(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{HZ09:function(e,t,n){"use strict";n.r(t),n.d(t,"EventsModule",(function(){return Ge}));var i=n("tyNb"),a=n("6h7t"),s=n("LhuC"),r=n("ildK"),o=n("C0rE"),c=n("fXoL"),l=n("Yk7X"),d=n("dEAy"),u=n("AcyG"),h=n("1W/n"),v=n("YX/J"),m=n("9f+E"),g=n("OtHt"),p=n("ofXK"),E=n("B+r4"),f=n("PpG7"),S=n("3Pt+"),b=n("LpbU"),T=n("OzZK");function z(e,t){if(1&e&&c.mc(0,"ui-option",13),2&e){const e=t.$implicit;c.Mc("nzLabel",e.value)("nzValue",e.id)}}function A(e,t){if(1&e){const e=c.sc();c.rc(0,"div",14),c.rc(1,"b2c-event-card",15),c.zc("buttonEvent",(function(){c.dd(e);const n=t.$implicit;return c.Dc(2).register(n)}))("titleEvent",(function(){c.dd(e);const n=t.$implicit;return c.Dc(2).navigate(n)}))("imageEvent",(function(){c.dd(e);const n=t.$implicit;return c.Dc(2).navigate(n)})),c.qc(),c.qc()}if(2&e){const e=t.$implicit,n=c.Dc(2);c.Ub(1),c.Mc("eventImage",e.bannerUrl)("date",e.startDate)("title",e.title)("time",e.time)("location",e.state&&-1!==e.state.indexOf("Webinar")?"Live Webinar":e.venue)("isMobile",!0)("buttonDisabled",!e.canRegister)("buttonTooltipText",e.canRegister?null:n.hitMaxMsg)}}function D(e,t){if(1&e){const e=c.sc();c.rc(0,"div",5),c.rc(1,"div",6),c.rc(2,"div",7),c.rc(3,"h3"),c.qd(4,"Upcoming Events"),c.qc(),c.qc(),c.rc(5,"div",8),c.rc(6,"ui-select",9),c.zc("ngModelChange",(function(t){return c.dd(e),c.Dc().chosenFilterValue=t}))("ngModelChange",(function(){return c.dd(e),c.Dc().filterStateList()})),c.od(7,z,1,2,"ui-option",10),c.qc(),c.qc(),c.qc(),c.rc(8,"div",11),c.od(9,A,2,8,"div",12),c.qc(),c.qc()}if(2&e){const e=c.Dc();c.Ub(6),c.Mc("ngModel",e.chosenFilterValue),c.Ub(1),c.Mc("ngForOf",e.filterValue),c.Ub(1),c.Mc("nzGutter",16),c.Ub(1),c.Mc("ngForOf",e.allActiveEvents)}}function C(e,t){if(1&e){const e=c.sc();c.rc(0,"div",16),c.rc(1,"button",17),c.zc("click",(function(){c.dd(e);const t=c.Dc();return t.findAllNonActiveFundHapeeningHeader(),t.showPastEvents=!0})),c.qd(2," View Past Events"),c.qc(),c.qc()}}function M(e,t){if(1&e){const e=c.sc();c.rc(0,"div",14),c.rc(1,"b2c-event-card",23),c.zc("titleEvent",(function(){c.dd(e);const n=t.$implicit;return c.Dc(2).navigate(n)}))("imageEvent",(function(){c.dd(e);const n=t.$implicit;return c.Dc(2).navigate(n)})),c.qc(),c.qc()}if(2&e){const e=t.$implicit,n=c.Dc(2);c.Ub(1),c.Mc("eventImage",e.bannerUrl)("date",e.startDate)("title",e.title)("time",e.time)("eventURL",n.getEventURLString(e))("location",e.state&&-1!==e.state.indexOf("Webinar")?"Live Webinar":e.venue)}}function F(e,t){if(1&e){const e=c.sc();c.rc(0,"div",18),c.rc(1,"div",19),c.rc(2,"h3"),c.qd(3,"Past Events"),c.qc(),c.rc(4,"div",20),c.od(5,M,2,6,"div",12),c.Ec(6,"slice"),c.qc(),c.qc(),c.rc(7,"div",21),c.rc(8,"button",22),c.zc("click",(function(){return c.dd(e),c.Dc().loadMore()})),c.qd(9,"Load More"),c.qc(),c.qc(),c.qc()}if(2&e){const e=c.Dc();c.Ub(5),c.Mc("ngForOf",c.Hc(6,1,e.allPassEvents,0,e.defaultLimit))}}let y=(()=>{class e{constructor(e,t,n,i,a,s){this.fundRestService=e,this.modalService=t,this.router=n,this.route=i,this.store=a,this.siDeclarationService=s,this.allActiveEvents=[],this.allPassEvents=[],this.oriAllActiveEvents=[],this.showPastEvents=!1,this.loadingPastEvents=!1,this.loadingActiveEvents=!1,this.filterValue=[],this.chosenFilterValue="all",this.defaultLimit=6,this.isVisibleRegisterEventModal=!1,this.selectedEventId=null,this.hitMaxMsg="Thank you for your interest but we are sorry that the event is fully booked due to overwhelming response."}ngOnInit(){this.findAllActiveFundHapeeningHeader(),this.filterValue.push({id:"all",value:"All Places"})}findAllActiveFundHapeeningHeader(){this.loadingActiveEvents=!0,this.fundRestService.findAllActiveFundHapeeningHeader().subscribe(e=>{e.data&&e.status===s.a.RESPONSE_SUCCESS&&(this.allActiveEvents=e.data,this.oriAllActiveEvents=e.data,this.addFilterValue(),this.putDefaultImage(this.allActiveEvents),this.putDefaultImage(this.oriAllActiveEvents))}).add(()=>{this.loadingActiveEvents=!1})}findAllNonActiveFundHapeeningHeader(){this.loadingPastEvents=!0,this.fundRestService.findAllNonActiveFundHapeeningHeader().subscribe(e=>{e.data&&e.status===s.a.RESPONSE_SUCCESS&&(this.allPassEvents=e.data,this.putDefaultImage(this.allPassEvents))}).add(()=>{this.loadingPastEvents=!1})}addFilterValue(){this.allActiveEvents&&this.allActiveEvents.length>
10&&this.allActiveEvents.forEach(e=>{let t=!1;if(this.filterValue&&this.filterValue.length>0){let n=!1;this.filterValue.forEach(t=>{t.id==e.state&&(n=!0)}),n||(t=!0)}else t=!0;t&&this.filterValue.push({id:e.state,value:e.state})})}filterStateList(){this.allActiveEvents="all"===this.chosenFilterValue?this.oriAllActiveEvents:this.oriAllActiveEvents.filter(e=>e.state===this.chosenFilterValue)}putDefaultImage(e){e.map(e=>e.bannerUrl=this.checkBannerUrlImage(e.bannerUrl))}checkBannerUrlImage(e){if(e&&""!==e){var t=e.substring(e.lastIndexOf("."));return".jpeg"!==t&&".jpg"!==t&&".png"!==t&&".gif"!==t?"/assets/images/events/fsm-event-default.jpg":e}return"/assets/images/events/fsm-event-default.jpg"}register(e){"Evt2101070001"===e.id?window.open("https://whatandwheretoinvest.com/","_blank"):Object(r.a)([a.o.EVENTS,a.o.EVENT_REGISTER_FORM],{eventNo:e.id})}loadMore(){var e=this.defaultLimit+6;this.defaultLimit=e>this.allPassEvents.length?this.allPassEvents.length:e}navigate(e){const{id:t,articleNo:n,title:i}=e;if("Evt2511170001"!==t)if("Evt2211140002"!==t&&"Evt2211140001"!==t&&"Evt2311140001"!==t&&"Evt2311090001"!==t&&"Evt2411270001"!==t)if("Evt2111260001"!==t)if("Evt2406250001"!==t){if(n){const e=Object(o.c)(t,i);Object(r.a)(e)}}else Object(r.a)([a.o.MID_YEAR_REVIEW_EVENT_2024]);else Object(r.a)([a.o.WAWTI_2022]);else Object(r.a)([a.o.WAWTI]);else{const e="https://bit.ly/4rlFmLx";Object(r.a)(e)}}getEventURLString(e){const{id:t,articleNo:n,title:i}=e;return"Evt2511170001"===t?"https://bit.ly/4rlFmLx":"Evt2211140002"===t||"Evt2211140001"===t||"Evt2311140001"===t||"Evt2311090001"===t||"Evt2411270001"===t?"/"+a.o.WAWTI:"Evt2111260001"===t?"/"+[a.o.WAWTI_2022]:"Evt2406250001"===t?"/"+a.o.MID_YEAR_REVIEW_EVENT_2024:n?"/"+Object(o.c)(t,i):void 0}}return e.\u0275fac=function(t){return new(t||e)(c.lc(l.a),c.lc(d.e),c.lc(i.e),c.lc(i.a),c.lc(u.i),c.lc(h.a))},e.\u0275cmp=c.fc({type:e,selectors:[["ng-component"]],decls:7,vars:5,consts:[["title","Events For You"],["nzActive","",3,"nzLoading"],["class","container mb-4 mt-5",4,"ngIf"],["class","text-center py-5",4,"ngIf"],["class","py-4",4,"ngIf"],[1,"container","mb-4","mt-5"],["nz-row",""],["nz-col","","nzXs","12","nzSm","12","nzMd","14","nzLg","14"],["nz-col","","nzXs","12","nzSm","12","nzMd","10","nzLg","10",1,"text-right"],["nz-col","","nzPlaceHolder","Filter By","nzLabelPlaceholder","",1,"w-100",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nz-row","","nzType","flex",1,"mt-4",3,"nzGutter"],["nz-col","","nzXs","24","nzSm","12","nzMd","12","nzLg","8",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],["nz-col","","nzXs","24","nzSm","12","nzMd","12","nzLg","8"],["eventStatus","Free","button","Join Now","titleUrl","","imageUrl","//",3,"eventImage","date","title","time","location","isMobile","buttonDisabled","buttonTooltipText","buttonEvent","titleEvent","imageEvent"],[1,"text-center","py-5"],["nz-button","","nzType","outline",3,"click"],[1,"py-4"],[1,"container","mb-4"],["nz-row","","nzGutter","16","nzType","flex",1,"mt-4"],[1,"text-center","my-4"],["nz-button","","nzType","primary",3,"click"],["eventStatus","Free","isMobile","true;","titleUrl","","imageUrl","//",3,"eventImage","date","title","time","eventURL","location","titleEvent","imageEvent"]],template:function(e,t){1&e&&(c.mc(0,"app-menu-sidebar"),c.mc(1,"app-route-subheader",0),c.rc(2,"nz-skeleton",1),c.od(3,D,10,4,"div",2),c.od(4,C,3,0,"div",3),c.qc(),c.rc(5,"nz-skeleton",1),c.od(6,F,10,5,"div",4),c.qc()),2&e&&(c.Ub(2),c.Mc("nzLoading",t.loadingActiveEvents),c.Ub(1),c.Mc("ngIf",!t.loadingActiveEvents&&t.allActiveEvents&&t.allActiveEvents.length>0),c.Ub(1),c.Mc("ngIf",!t.showPastEvents),c.Ub(1),c.Mc("nzLoading",t.loadingPastEvents),c.Ub(1),c.Mc("ngIf",t.showPastEvents&&!t.loadingPastEvents))},directives:[v.a,m.a,g.a,p.t,E.c,E.a,f.d,S.t,S.w,p.s,f.a,b.a,T.a],pipes:[p.F],encapsulation:2}),e})();var q=n("bk8a"),R=n("2VHv"),I=n("vkgz"),N=n("iJSt"),O=n("mL6D"),w=n("9WYH"),L=n("Nqz0"),P=n("ZyQt"),H=n("FwiY"),U=n("Q8cG"),_=n("nJia"),V=n("6lUR"),k=n("yj0H");function x(e,t){if(1&e&&(c.rc(0,"div",38),c.mc(1,"b2c-share-bar",39),c.qc()),2&e){const e=c.Dc();c.Ub(1),c.Mc("mode",null==e.B2CSharePlacementEnum?null:e.B2CSharePlacementEnum.CI
1RCULAR)}}function B(e,t){if(1&e&&(c.pc(0),c.mc(1,"app-pdf-wrapper",40),c.oc()),2&e){const e=c.Dc();c.Ub(1),c.Mc("url",e.pdfFilePath)}}function j(e,t){if(1&e&&(c.pc(0),c.mc(1,"app-pdf-wrapper",40),c.oc()),2&e){const e=c.Dc();c.Ub(1),c.Mc("url",e.articlePath)}}function W(e,t){if(1&e&&(c.rc(0,"div"),c.mc(1,"div",41),c.Ec(2,"safeHtml"),c.qc()),2&e){const e=c.Dc(2);c.Ub(1),c.Mc("innerHtml",c.Fc(2,1,e.articleHtml),c.ed)}}function G(e,t){if(1&e&&(c.rc(0,"div"),c.od(1,W,3,3,"div",11),c.qc()),2&e){const e=c.Dc();c.Ub(1),c.Mc("ngIf",!e.isPdf)}}function Y(e,t){if(1&e&&(c.rc(0,"div",44),c.mc(1,"div",41),c.Ec(2,"safeHtml"),c.qc()),2&e){const e=c.Dc(2);c.Ub(1),c.Mc("innerHtml",c.Fc(2,1,e.articleHtml),c.ed)}}function X(e,t){if(1&e&&(c.rc(0,"div",42),c.od(1,Y,3,3,"div",43),c.qc()),2&e){const e=c.Dc();c.Ub(1),c.Mc("ngIf",!e.isPdf)}}function $(e,t){if(1&e&&(c.rc(0,"div",46),c.rc(1,"nz-tag"),c.qd(2),c.qc(),c.qc()),2&e){const e=c.Dc(2);c.Ub(2),c.rd(e.articleTags)}}function J(e,t){if(1&e&&(c.rc(0,"div",15),c.rc(1,"h5"),c.qd(2,"TAGS"),c.qc(),c.od(3,$,3,1,"div",45),c.qc()),2&e){const e=c.Dc();c.Ub(3),c.Mc("ngForOf",e.articleTags)}}function K(e,t){1&e&&(c.rc(0,"span"),c.qd(1,"Add to Calendar"),c.qc())}function Z(e,t){1&e&&(c.rc(0,"span"),c.qd(1,"Copy Link"),c.qc())}const Q=function(e){return{"text-lg":e}},ee=function(e){return{"share-bar-text-lg":e}};let te=(()=>{class e{constructor(e,t,n,i,s,r,o,c){this.store=e,this.subHandlingService=t,this.articleRestService=n,this.seoService=i,this.modalService=s,this.fundRestService=r,this.router=o,this.route=c,this.RouteConstant=a.o,this.B2CSharePlacementEnum=q.c,this.dateFormat="EEEE, dd MMM yyyy",this.googleCalendarLink=null,this.cisFileLink=null,this.platformId="MYFSM",this.localeId="en_us",this.noIncrement=!1,this.fromRcms=!1,this.articleTitle=null,this.articleSynopsis=null,this.articleAuthor=null,this.articleLogDate=null,this.articlePicture=null,this.featuredImageName=null,this.isPdf=!1,this.articlePath=null,this.content=null,this.loading=!1,this.articleFile={},this.isVisibleRegisterEventModal=!1,this.showJoinButton=!1,this.articleTags=[],this.disabledJoinButton=!0,this.errorMsg=null,this.isMobile=this.store.select(e=>e.global.mobile)}ngOnInit(){const e=this.route.snapshot.paramMap.get("eventNo")||this.route.snapshot.queryParamMap.get("eventNo");e?(this.loading=!0,this.getEvent(e),this.seoService.setArticleCanonicalURL(e,"")):this.router.navigate([a.o.EVENTS]),this.router.navigate([],{relativeTo:this.route,queryParams:{data:null},queryParamsHandling:"merge"})}parseDateTime(e){return e<10?"0"+e:e}formatDate(e){var t=e.getDate(),n=e.getMonth(),i=e.getFullYear(),a=e.getHours(),s=e.getMinutes();let r;return r=0===a&&0===s?""+i+this.parseDateTime(n+1)+this.parseDateTime(t):""+i+this.parseDateTime(n+1)+this.parseDateTime(t)+"T"+this.parseDateTime(a)+this.parseDateTime(s)+"00",r}googleCalendar(e,t,n,i,a){return"http://www.google.com/calendar/event?action=TEMPLATE&text="+e+"&dates="+this.formatDate(t)+"/"+this.formatDate(n)+"&details="+a+"&location="+i}getIcsFileName(e){return e.replace(/[^\w ]+/g,"")+".ics"}getIcsCalendar(e,t,n,i,a){return["BEGIN:VCALENDAR","VERSION:2.0","BEGIN:VEVENT","CLASS:PUBLIC","DESCRIPTION:"+this.wrapText(e,62),"DTSTART:"+this.formatDate(t),"DTEND:"+this.formatDate(n),"LOCATION:"+this.wrapText(a,64),"SUMMARY:"+this.wrapText(i,66),"TRANSP:TRANSPARENT","END:VEVENT","END:VCALENDAR"].join("\n")}wrapText(e,t){return this.wrapTextCheckLength(e.replace(/\n/g,"\\n"),t)}wrapTextCheckLength(e,t){return e.length<=t?e:e.substring(0,t).replace(/\n/g,"\\n")+"\r\n "+this.wrapTextCheckLength(e.substring(t),75)}getIcsBlob(e){return new Blob([e],{type:"application/octet-stream"})}dlIcal(){var e=this.getIcsFileName(this.eventDetails.title),t=new Date(this.eventDetails.startDate),n=new Date(this.eventDetails.endDate);n.setDate(n.getDate()+1),this.getIcsBlob(this.getIcsCalendar(this.eventDetails.time,t,n,this.eventDetails.title,this.eventDetails.venue));var i=document.createElement("a");document.body.appendChild(i);var a=new Blob([this.getIcsCalendar(this.eventDetails.time,t,n,this.eventDetails.title,this.eventDetails.venue)],{type:"application/octet-stream"}),s=window.URL.createObjectURL(a);i.href=s,i.download=e,i.click(),window.URL.revokeObjectURL(s)}unescapeHtml(e){return e&&0!==e.length&&"string"==typeof e?e.replace(/&#([0-9]{1,3});/gi,(function(e,t){const n=parseInt(t,10);return String.fromCharCode(n)})):e}checkShowJoinButton(){let e=new Date;e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0);let t=new Date(this.eventDetails.endDate);t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0),e.getTime()<=t.getTime()?this.disabledJoinButton=!1:(this.disabledJoinButton=!0,this.errorMsg="This event has passed. Thank y
1ou.")}openRegisterModal(){"Evt2101070001"===this.eventDetails.id?window.open("https://whatandwheretoinvest.com/","_blank"):Object(r.a)([a.o.EVENTS,a.o.EVENT_REGISTER_FORM],{eventNo:this.eventDetails.id})}copyLink(){var e=window.location.href,t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}checkEventValidDate(){let e=new Date;e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0);let t=new Date(this.eventDetails.startDate);t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0),t.getTime()>=e.getTime()&&(this.showJoinButton=!0)}getEvent(e){this.fundRestService.getFundHappeningHeader(e).subscribe(e=>{if(e.data&&e.status===s.a.RESPONSE_SUCCESS){this.eventDetails=e.data,this.articleNo=this.eventDetails.articleNo.toString();var t=new Date(this.eventDetails.startDate),n=new Date(this.eventDetails.endDate);n.setDate(n.getDate()+1),this.googleCalendarLink=this.googleCalendar(this.eventDetails.title,t,n,this.eventDetails.venue,this.eventDetails.time),this.checkEventValidDate(),this.checkShowJoinButton(),this.eventDetails.bannerUrl&&this.seoService.updateSeoImageTag(this.eventDetails.bannerUrl)}}).add(()=>{this.getArticle()})}getArticle(){this.articleNo.startsWith("rcms")&&(this.fromRcms=!0,this.articleNo=this.articleNo.substring(4,this.articleNo.length));var e=parseInt(this.articleNo);isNaN(e)?this.modalService.warning({nzTitle:"Attention",nzContent:"Article doesn't exist"}):this.fromRcms?this.articleRestService.getRcmsArticleDetails(this.articleNo,this.platformId,this.localeId,this.noIncrement).subscribe(e=>{if(e.data&&e.status===s.a.RESPONSE_SUCCESS){var t=JSON.parse(e.data);t&&(this.articleTitle=t.title,this.articleSynopsis=t.synopsis,this.articleAuthor=t.authorName,this.articleLogDate=t.publishedDate,this.articlePicture=t.featuredImage,this.featuredImageName=t.title,this.pdfFilePath=t.pdfFilePath,this.category=t.category,this.articleTags=t.tags,t.content.endsWith("pdf")?(this.isPdf=!0,this.articlePath=t.content):(this.isPdf=!1,this.articleHtmlfile=t.content,this.articleHtml=this.unescapeHtml(this.articleHtmlfile)))}else this.modalService.warning({nzTitle:"Attention",nzContent:"Service currently unavailable"})}).add(()=>{this.loading=!1}):this.articleRestService.getArticle(this.articleNo,!1).subscribe(e=>{if(e.data&&e.status===s.a.RESPONSE_SUCCESS){var t=e.data;if(t){let e="";Object(c.nb)()&&(e=s.a.LIVE_URL),this.articleTitle=t.title,this.articleSynopsis=t.synopsis,this.articleAuthor=t.author,this.articleLogDate=t.logdate,this.articleHtmlfile=t.htmlfile,this.articlePicture=t.thumbnailFileName,this.featuredImageName=t.featuredImageName,this.pdfFilePath=t.pdfFilePath,this.category=t.category,this.isPdf=!1,null!=this.pdfFilePath&&(this.articlePath=e+this.pdfFilePath,this.pdfFilePath=e+this.pdfFilePath,this.isPdf=!0),null!=t.articleContentString&&(t.articleContentString=t.articleContentString.replace(/src="\.\.\/articleFiles/g,'src="/fsm/articleFiles'),this.articleHtml=this.unescapeHtml(t.articleContentString))}else this.modalService.warning({nzTitle:"Attention",nzContent:"Article doesn't exist"})}}).add(()=>{this.updateArticleHits(this.articleNo),this.loading=!1})}handleAiAccept(e){event&&this.openRegisterModal()}updateArticleHits(e){this.subHandlingService.once(this.articleRestService.updateHitCount(e).pipe(Object(I.a)(e=>{Object(c.nb)()&&((null==e?void 0:e.status)===s.a.RESPONSE_SUCCESS?console.log("hit count updated"):console.log("hit count failed updated"))})))}}return e.\u0275fac=function(t){return new(t||e)(c.lc(u.i),c.lc(R.a),c.lc(N.a),c.lc(O.a),c.lc(d.e),c.lc(l.a),c.lc(i.e),c.lc(i.a))},e.\u0275cmp=c.fc({type:e,selectors:[["ng-component"]],features:[c.Tb([R.a])],decls:59,vars:41,consts:[[3,"isBreadcrumbOnly"],["nzActive","",3,"nzLoading"],[1,"container"],["nzLg","2","nzMd","3"],["class","position-fixed text-primary font-weight-bold pt-3 pointer d-flex align-items-center",4,"ngIf"],["nzLg","22","nzMd","21"],["id","event",1,"event-view"],["nzLg","20","nzMd","24"],[1,"article-title",3,"innerHtml"],[1,"article-synopsis",3,"innerHtml"],[1,"article-content","py-4","text-base"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["mobileTemplate",""],["class","py-3",4,"ngIf"],[1,"py-3"],[1,"text-base"],[3,"routerLink"],["nzType","flex","nzAlign","middle",1,"container","py-2"],["nzXl","2","nzSm","0","nzXs","0"],["nzXl","22","nzSm","24","nzXs","24"],["nzType","flex","nzAlign","middle"],["nzXl","16","nzSm","12","nzXs","12"],["nzType","flex","nzJustify","start"],["nz-dropdown","","nzTrigger","click",1,"text-primary","font-weight-bold","mr-2",3,"nzDropdownMenu"],["nz-icon","","nzType","calendar","nzTheme","outline",1,"mr-2","text-md",3,"ngClass"],["menu","nzDropdownMenu"],["nz-menu",""],["nz-menu-item",""],[1,"text-black",3,"href"],["nz-menu-item","",1,"text-black",3,"click"],["value","Copy","nz-tooltip","","nzTooltipTitle","Copied to clipboard!","nzTooltipTrigger","click","nzTooltipPlacement","right",1,"text-primary","font-weight-bold","mr-2",3,"click"],["nz-icon","","nzType","link","nzTheme","outline",1,"mr-2","text-md",3,"ngClass"],[3,"mode","ngClass"],["nzXl","4","nzSm","12","nzXs","12"],["nzType","flex","nzJustify","end"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-button","","nzType","primary",3,"disabled","click"],[1,"position-fixed","text-primary","font-weight-bold","pt-3","pointer","d-flex","align-items-center"],[3,"mode"],[3,"url"],[3,"innerHtml"],[1,"container","w-100"],["nz-row","","class","text-black-6 font-weight-normal h3 overflow-auto",4,"ngIf"],["nz-row","",1,"text-black-6","font-weight-normal","h3","overflow-auto"],["class","d-inline-flex",4,"ngFor","ngForOf"],[1,"d-inline-flex"]],template:function(e,t){if(1&e&&(c.mc(0,"app-route-subheader",0),c.rc(1,"nz-skeleton",1),c.rc(2,"div",2),c.rc(3,"nz-row"),c.rc(4,"nz-col",3),c.od(5,x,2,1,"div",4),c.Ec(6,"async"),c.qc(),c.rc(7,"nz-col",5),c.rc(8,"div",6),c.rc(9,"nz-row"),c.rc(10,"nz-col",7),c.mc(11,"h2",8),c.mc(12,"p",9),c.rc(13,"div",10),c.od(14,B,2,1,"ng-container",11),c.od(15,j,2,1,"ng-container",11),c.od(16,G,2,1,"div",12),c.Ec(17,"async"),c.od(18,X,2,1,"ng-template",null,13,c.pd),c.qc(),c.od(20,J,4,1,"div",14),c.rc(21,"div",15),c.rc(22,"p",16),c.qd(23," All materials and contents herein shall not be construed as an offer or solicitation for the subscription, purchase or sale of any fund, product or services. Any advice herein is made on a general basis and does not take into account the specific investment objectives of the specific person or group of persons. Investors are advised to read and understand the contents of the prospectus, product highlight sheet (PHS) and relevant disclosure documents before investing. The prospectuses, PHS and relevant disclosure documents can be obtained from FSMOne Malaysia website. Investors should compare and consider the fees, charges and costs involved before investing. Investors are advised to understand the risks involved in relation to the products or services and further conduct his/ her own risk assessment and seek professional advice, where necessary. The unit trust fund\u2019s prospectuses have been registered and lodged with the Securities Commission (SC), however this does not amount to nor indicate that SC has recommended or endorsed the product. Past performance is not indicative of future performance. Opinions expressed herein are subject to change without notice. Some funds, products or services may not be suitable or available to all investors, and are only made available to Sophisticated Investors (as defined in Capital Market and Services Act). The contents herein have not been reviewed by SC. Please read our full "),c.rc(24,"a",17),c.qd(25,"disclaimer"),c.qc(),c.qd(26," in the website. "),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.rc(27,"b2c-floating-bar"),c.rc(28,"nz-row",18),c.mc(29,"nz-col",19),c.rc(30,"nz-col",20),c.rc(31,"nz-row",21),c.rc(32,"nz-col",22),c.rc(33,"nz-row",23),c.rc(34,"a",24),c.mc(35,"i",25),c.Ec(36,"async"),c.od(37,K,2,0,"span",11),c.Ec(38,"async"),c.qc(),c.rc(39,"nz-dropdown-menu",null,26),c.rc(41,"ul",27),c.rc(42,"li",28),c.rc(43,"a",29),
1c.qd(44,"Google Calendar"),c.qc(),c.qc(),c.rc(45,"li",30),c.zc("click",(function(){return t.dlIcal()})),c.qd(46,"Outlook"),c.qc(),c.qc(),c.qc(),c.rc(47,"a",31),c.zc("click",(function(){return t.copyLink()})),c.mc(48,"i",32),c.Ec(49,"async"),c.od(50,Z,2,0,"span",11),c.Ec(51,"async"),c.qc(),c.mc(52,"b2c-share-bar",33),c.Ec(53,"async"),c.qc(),c.qc(),c.rc(54,"nz-col",34),c.rc(55,"nz-row",35),c.rc(56,"span",36),c.rc(57,"button",37),c.zc("click",(function(){return t.openRegisterModal()})),c.qd(58,"Join Now"),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc()),2&e){const e=c.ad(19),n=c.ad(40);c.Mc("isBreadcrumbOnly",!0),c.Ub(1),c.Mc("nzLoading",t.loading),c.Ub(4),c.Mc("ngIf",!c.Fc(6,21,t.isMobile)),c.Ub(6),c.Mc("innerHtml",t.articleTitle,c.ed),c.Ub(1),c.Mc("innerHtml",t.articleSynopsis,c.ed),c.Ub(2),c.Mc("ngIf",t.isPdf&&!t.fromRcms),c.Ub(1),c.Mc("ngIf",t.isPdf&&t.fromRcms),c.Ub(1),c.Mc("ngIf",!c.Fc(17,23,t.isMobile))("ngIfElse",e),c.Ub(4),c.Mc("ngIf",(null==t.articleTags?null:t.articleTags.length)>0),c.Ub(4),c.Mc("routerLink","/"+t.RouteConstant.DISCLAIMER),c.Ub(10),c.Mc("nzDropdownMenu",n),c.Ub(1),c.Mc("ngClass",c.Sc(35,Q,c.Fc(36,25,t.isMobile))),c.Ub(2),c.Mc("ngIf",!c.Fc(38,27,t.isMobile)),c.Ub(6),c.Nc("href",t.googleCalendarLink,c.gd),c.Ub(5),c.Mc("ngClass",c.Sc(37,Q,c.Fc(49,29,t.isMobile))),c.Ub(2),c.Mc("ngIf",!c.Fc(51,31,t.isMobile)),c.Ub(2),c.Mc("mode",null==t.B2CSharePlacementEnum?null:t.B2CSharePlacementEnum.ICON)("ngClass",c.Sc(39,ee,c.Fc(53,33,t.isMobile))),c.Ub(4),c.Mc("nzTooltipTitle",t.errorMsg),c.Ub(1),c.Mc("disabled",t.disabledJoinButton)}},directives:[m.a,g.a,E.c,E.a,p.t,i.h,w.a,L.a,L.d,H.b,p.q,L.f,U.a,U.d,_.e,q.a,T.a,V.a,p.s,P.a],pipes:[p.b,k.a],styles:[""]}),e})();var ne=n("mrSG"),ie=n("P+IN"),ae=n("gFZo"),se=n("H8v0"),re=n("/uUt"),oe=n("pLZG"),ce=n("yPVp"),le=n("qAZ0"),de=n("ocnv"),ue=n("bE2y"),he=n("PTRe"),ve=n("6oRW"),me=n("zAKX");function ge(e,t){1&e&&(c.rc(0,"span"),c.qd(1," in the format [email protected] "),c.qc())}function pe(e,t){if(1&e&&(c.rc(0,"nz-form-explain",34),c.qd(1," Please input your email "),c.od(2,ge,2,0,"span",35),c.qc()),2&e){const e=c.Dc(2);c.Ub(2),c.Mc("ngIf",e.validateEventResgisterForm.get("email").errors.pattern)}}function Ee(e,t){if(1&e&&c.mc(0,"ui-option",44),2&e){const e=t.$implicit;c.Mc("nzLabel"," +"+e.idd+"("+e.countryName+")")("nzValue",e.idd)}}function fe(e,t){1&e&&(c.rc(0,"div"),c.qd(1," Please select your Mobile Dialing Code"),c.qc())}function Se(e,t){1&e&&(c.rc(0,"span"),c.qd(1," Please fill your Mobile Number "),c.qc())}function be(e,t){1&e&&(c.rc(0,"span"),c.qd(1," Please fill in valid handphone number in numeric format. "),c.qc())}function Te(e,t){if(1&e&&(c.rc(0,"div"),c.od(1,Se,2,0,"span",35),c.od(2,be,2,0,"span",35),c.qc()),2&e){const e=c.Dc(2);c.Ub(1),c.Mc("ngIf",e.validateEventResgisterForm.controls.telHp.errors.required),c.Ub(1),c.Mc("ngIf",e.validateEventResgisterForm.get("telHp").errors.pattern)}}function ze(e,t){if(1&e&&c.mc(0,"nz-option",44),2&e){const e=t.$implicit;c.Mc("nzLabel",e.value)("nzValue",e.id)}}function Ae(e,t){1&e&&(c.rc(0,"span"),c.qd(1," Please select the event source "),c.qc())}function De(e,t){if(1&e&&(c.rc(0,"div",34),c.od(1,Ae,2,0,"span",35),c.qc()),2&e){const e=c.Dc(2);c.Ub(1),c.Mc("ngIf",e.validateEventResgisterForm.controls.eventSource.errors.required)}}const Ce=function(e){return{"pb-5":e}},Me=function(e){return{"has-error":e}},Fe=function(e,t){return{"has-error":e,"mt-1":t}},ye=function(e){return["/",e]};function qe(e,t){if(1&e){const e=c.sc();c.rc(0,"form",3),c.Ec(1,"async"),c.rc(2,"nz-row"),c.rc(3,"nz-col",4),c.Ec(4,"async"),c.rc(5,"p",5),c.qd(6," We appreciate your interest in our event. Kindly fill in the form below. "),c.qc(),c.rc(7,"nz-form-item"),c.rc(8,"b",6),c.qd(9,"Are you an FSMOne account holder?"),c.qc(),c.rc(10,"div",7),c.rc(11,"nz-radio-group",8),c.rc(12,"label",9),c.qd(13,"Yes"),c.qc(),c.rc(14,"label",10),c.qd(15,"No"),c.qc(),c.qc(),c.qc(),c.qc(),c.rc(16,"nz-form-item"),c.rc(17,"nz-input-group",11),c.rc(18,"ui-input-group",12),c.rc(19,"ui-select",13),c.mc(20,"ui-option",14),c.mc(21,"ui-option",15),c.mc(22,"ui-option",16),c.mc(23,"ui-option",17),c.mc(24,"ui-option",18),c.mc(25,"ui-option",19),c.mc(26,"ui-option",20),c.mc(27,"ui-option",21),c.mc(28,"ui-option",22),c.mc(29,"ui-option",23),c.mc(30,"ui-option",24),c.qc(),c.qc(),c.rc(31,"ui-input-group",25),c.Ec(32,"async"),c.mc(33,"input",26),c.qc(),c.qc(),c.qc(),c.rc(34,"nz-form-item"),c.rc(35,"nz-form-control"),c.rc(36,"ui-input-group",27),c.mc(37,"input",28),c.qc(),c.od(38,pe,3,1,"nz-form-explain",29),
1c.qc(),c.qc(),c.rc(39,"nz-form-item"),c.rc(40,"nz-input-group",11),c.rc(41,"ui-input-group",12),c.rc(42,"ui-select",30),c.od(43,Ee,1,2,"ui-option",31),c.qc(),c.qc(),c.rc(44,"ui-input-group",32),c.Ec(45,"async"),c.mc(46,"input",33),c.qc(),c.rc(47,"div",34),c.od(48,fe,2,0,"div",35),c.od(49,Te,3,2,"div",35),c.qc(),c.qc(),c.qc(),c.rc(50,"nz-form-item"),c.rc(51,"nz-form-control"),c.rc(52,"b",36),c.qd(53,"Where did you find out about this?"),c.qc(),c.rc(54,"nz-select",37),c.od(55,ze,1,2,"nz-option",31),c.qc(),c.od(56,De,2,1,"div",29),c.qc(),c.qc(),c.rc(57,"div",38),c.qd(58," By submitting this form, I agree and give consent to FSMOne to collect, use, disclose, store and process my personal data provided, in accorance with the Personal Data Protection Act 2010 and FSMOne's privacy policy. "),c.rc(59,"a",39),c.qd(60,"Click here"),c.qc(),c.qd(61," for more info. "),c.qc(),c.rc(62,"div",40),c.qd(63," By attending the event, I consent to the use of my photograph, voice, likeness and image in any broadcasts of this event and in subsequent productions drawn from video or audio recordings of this event. The photographs and recording may be published or broadcasted in FSMOne and its affiliates' publications and publicity materials, including but not liited to FSMOne and its affiliates' websites and social media. All recordings, articles, quotes, photographs, films, audio or video and/or any reproduction of the same in any form (collectively known as \"the Materials\"), are the property of FSMOne. FSMOne, its affiliates, employees, representatives and agents are released from any and all claims, demands, costs and liability that may arise from the use of these materials. "),c.qc(),c.qc(),c.qc(),c.rc(64,"nz-row",41),c.rc(65,"nz-col",4),c.Ec(66,"async"),c.rc(67,"nz-form-item"),c.rc(68,"nz-form-control"),c.rc(69,"div",42),c.rc(70,"button",43),c.zc("click",(function(){return c.dd(e),c.Dc().submitForm()})),c.qd(71,"Submit"),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc(),c.qc()}if(2&e){const e=c.Dc();c.Mc("formGroup",e.validateEventResgisterForm)("ngClass",c.Sc(27,Ce,c.Fc(1,17,e.isMobile$))),c.Ub(3),c.Mc("nzSpan",c.Fc(4,19,e.isMobile$)?24:12),c.Ub(8),c.Mc("nzSize","small"),c.Ub(7),c.Mc("ngClass",c.Sc(29,Me,e.validateEventResgisterForm.controls.salutation.dirty&&e.validateEventResgisterForm.controls.salutation.errors)),c.Ub(13),c.Mc("ngClass",c.Tc(31,Fe,e.validateEventResgisterForm.controls.name.dirty&&e.validateEventResgisterForm.controls.name.errors,c.Fc(32,21,e.isMobile$))),c.Ub(7),c.Mc("ngIf",e.validateEventResgisterForm.get("email").dirty&&e.validateEventResgisterForm.get("email").errors),c.Ub(3),c.Mc("ngClass",c.Sc(34,Me,e.validateEventResgisterForm.controls.telHpCountryCode.dirty&&e.validateEventResgisterForm.controls.telHpCountryCode.errors)),c.Ub(2),c.Mc("ngForOf",e.countries),c.Ub(1),c.Mc("ngClass",c.Tc(36,Fe,e.validateEventResgisterForm.controls.telHp.dirty&&e.validateEventResgisterForm.controls.telHp.errors,c.Fc(45,23,e.isMobile$))),c.Ub(4),c.Mc("ngIf",e.validateEventResgisterForm.get("telHpCountryCode").dirty&&e.validateEventResgisterForm.get("telHpCountryCode").errors),c.Ub(1),c.Mc("ngIf",e.validateEventResgisterForm.get("telHp").dirty&&e.validateEventResgisterForm.get("telHp").errors),c.Ub(6),c.Mc("ngForOf",e.eventSourceOption),c.Ub(1),c.Mc("ngIf",e.validateEventResgisterForm.get("eventSource").dirty&&e.validateEventResgisterForm.get("eventSource").errors),c.Ub(3),c.Mc("routerLink",c.Sc(39,ye,null==e.RouteConstant?null:e.RouteConstant.PRIVACY_POLICY)),c.Ub(6),c.Mc("nzSpan",c.Fc(66,25,e.isMobile$)?24:12),c.Ub(5),c.Mc("nzType","primary")}}let Re=(()=>{class e{constructor(e,t,n,i,s,r,o,l,d,u){this.fb=e,this.utilityRestService=t,this.modalService=n,this.fundRestService=i,this.router=s,this.route=r,this.subHandler=o,this.store=l,this.cdRef=d,this.location=u,this.hasPassedAiDeclaration=!0,this.countries=[],this.fundHappeningModel={},this.loading=!1,this.showAiDeclaration=new c.s,this.eventSourceOption=[{id:"FSMOne Website",value:"FSMOne Website"},{id:"FSMOne Email",value:"FSMOne Email"},{id:"FSMOne Enewsletter",value:"FSMOne Enewsletter"},{id:"Social Platform",value:"Social Platform"},{id:"SMS",value:"SMS"},{id:"Friends",value:"Friends"},{id:"Others",value:"Others"}],this.RouteConstant=a.o}ngOnInit(){this.router.navigate([],{relativeTo:this.route,queryParams:{data:null},queryParamsHandling:"merge"}),this.validateEventResgisterForm||this.initRegisterForm(),this.findCountries()}ngOnChanges(e){const t=e.hasPassedAiDeclaration;
1t&&!1===t.previousValue&&!0===t.currentValue&&this.submitForm()}initRegisterForm(){const e=this.store.selectSnapshot(se.a.getPrimaryAccount)||{},{nricName:t,emailAddress:n,contactNo:i,salutation:r,telHpCountryCode:o}=e,c=this.store.selectSnapshot(se.a.isAuthenticated);let l;this.validateEventResgisterForm=this.fb.group({name:[null!=t?t:"",[S.H.required,S.H.pattern(/[a-zA-Z][a-zA-Z\'\/\.\,\@ ]+[a-zA-Z\'\/\.\,\@]$/)]],email:[null!=n?n:"",[S.H.required,S.H.pattern(ie.a.REGEX_EMAIL)]],telHpCountryCode:[null,[S.H.required]],telHp:[null!=i?i:"",[S.H.required,S.H.pattern(/^\d{8,}$/)]],eventSource:[null,[S.H.required]],isFsmAccountHolder:[c?s.a.YES_FLAG:s.a.NO_FLAG,[S.H.required]],salutation:[null!=r?r:"",[S.H.required]]}),l=c?this.validateEventResgisterForm.get("isFsmAccountHolder").valueChanges.pipe(Object(re.a)(),Object(I.a)(e=>{if(e===s.a.YES_FLAG){const e=(this.countries||[]).find(({countryId:e})=>o===e);this.validateEventResgisterForm.patchValue({name:t,email:n,telHp:i,salutation:r,telHpCountryCode:null==e?void 0:e.idd})}else this.validateEventResgisterForm.reset({isFsmAccountHolder:s.a.NO_FLAG})})):this.validateEventResgisterForm.get("isFsmAccountHolder").valueChanges.pipe(Object(re.a)(),Object(oe.a)(e=>e===s.a.YES_FLAG),Object(I.a)(()=>{this.cdRef.detach(),this.router.navigate([a.o.MULTIFACTOR_AUTHENTICATION_LOGIN],{queryParams:{redirect:`/${a.o.EVENTS}/${a.o.EVENT_REGISTER_FORM}?eventNo=${this.eventId}`}})})),l&&this.subHandler.subscribe(l)}findCountries(){this.utilityRestService.findCountries().subscribe(e=>{var t;if(e.data&&e.status===s.a.RESPONSE_SUCCESS&&(this.countries=e.data,this.store.selectSnapshot(se.a.isAuthenticated))){const n=null===(t=this.store.selectSnapshot(se.a.getPrimaryAccount))||void 0===t?void 0:t.telHpCountryCode,i=e.data.find(({countryId:e})=>e===n);n&&i&&this.validateEventResgisterForm.get("telHpCountryCode").patchValue(i.idd)}}).add(()=>{})}submitForm(){if(this.hasPassedAiDeclaration){for(const e in this.validateEventResgisterForm.controls)this.validateEventResgisterForm.controls[e].markAsDirty();this.validateEventResgisterForm.updateValueAndValidity(),"VALID"===this.validateEventResgisterForm.status&&(this.loading=!0,this.fundHappeningModel=this.convertToModelFormat(this.validateEventResgisterForm),this.fundRestService.validateAndCreateFundHappeningRegister(this.fundHappeningModel).subscribe(e=>{e.status===s.a.RESPONSE_SUCCESS?(this.router.navigate([a.o.EVENTS,a.o.EVENT_SUCCESS]),this.close()):this.modalService.error({nzTitle:"Error",nzContent:e.errorMessage}),this.loading=!1}))}else this.showAiDeclaration.emit()}close(){this.resetForm()}resetForm(){this.validateEventResgisterForm.reset(),this.validateEventResgisterForm.updateValueAndValidity(),this.initRegisterForm()}convertToModelFormat(e){var t={};t.id=this.eventId,t.name=e.get("name").value,t.fsmAccountHolder="Y"===e.get("isFsmAccountHolder").value?"yes":"no",t.email=e.get("email").value,t.eventSource=e.get("eventSource").value;const n=e.get("telHpCountryCode").value+e.get("telHp").value;if(this.store.selectSnapshot(se.a.isAuthenticated)){const{telHpCountryCode:e,contactNo:i}=this.store.selectSnapshot(se.a.getPrimaryAccount),a=(this.countries||[]).find(({countryId:t})=>e===t);t.contactNo=e&&i&&n.startsWith(null==a?void 0:a.idd)&&n.endsWith(i)?i:n}else t.contactNo=n;return t.salutation=e.get("salutation").value,t}}return e.\u0275fac=function(t){return new(t||e)(c.lc(S.g),c.lc(ce.a),c.lc(d.e),c.lc(l.a),c.lc(i.e),c.lc(i.a),c.lc(R.a),c.lc(u.i),c.lc(c.j),c.lc(p.n))},e.\u0275cmp=c.fc({type:e,selectors:[["app-event-register"]],inputs:{eventId:"eventId",hasPassedAiDeclaration:"hasPassedAiDeclaration"},outputs:{showAiDeclaration:"showAiDeclaration"},features:[c.Tb([R.a]),c.Sb],decls:3,vars:2,consts:[[3,"nzSpinning"],[1,"p-2"],["nz-form","",3,"formGroup","ngClass",4,"ngIf"],["nz-form","",3,"formGroup","ngClass"],[3,"nzSpan"],[1,"mb-3","pb-1","text-base","font-weight-bold"],[1,"text-sm","text-darkest"],[1,"pt-2"],["formControlName","isFsmAccountHolder","nzButtonStyle","solid",3,"nzSize"],["nz-radio-button","","nzValue","Y",1,"text-center"],["nz-radio-button","","nzValue","N",1,"text-center"],["nzCompact","",1,"row","no-gutters"],[1,"col-md-4",3,"ngClass"],["formControlName","salutation","nzShowSearch","","nzAllowClear","","nzPlaceHolder","Salutation","nzLabelPlaceholder","",1,"w-100"],["nzValue","Dr","nzLabel","Dr"],["nzValue","Mdm","nzLabel","Mdm"],["nzValue","Mr","nzLabel","Mr"],["nzValue","Mrs","nzLabel","Mrs"],["nzValue","Ms","nzLabel","Ms"],["nzValue","Tan Sri","nzLabel","Tan Sri"],["nzValue","Dato","nzLabel","Dato"],["nzValue","Datin","nzLabel","Datin"],["nzValue","Tengku","nzLabel","Tengku"],["nzValue","Tuanku","nzLabel","Tuanku"],["nzValue","Prof","nzLabel","Prof"],["nzLabelPlaceholder","Name",1,"col-md-8",3,"ngClass"],["type","text","ui-input","","formControlName","name",2,"margin-top","1px"],["nzLabelPlaceholder","Email Address"],["type","text","ui-input","","formControlName","email","type","email"],["class","text-danger",4,"ngIf"],["formControlName","telHpCountryCode","nzShowSearch","","nzAllowClear","","nzPlaceHolder","Dialing Code","nzLabelPlaceholder","",1,"w-100"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzLabelPlaceholder","Mobile Number",1,"col-md-8",3,"ngClass"],["type","text","ui-input","","formControlName","telHp",2,"margin-top","1px"],[1,"text-danger"],[4,"ngIf"],[1,"text-sm"],["formControlName","eventSource","nzAllowClear","","nzPlaceHolder","Event Source","nzLabelPlaceholder","",1,"w-100","mt-2"],[1,"text-xs","mb-3"],[3,"routerLink"],[1,"text-xs","mb-4"],[1,"pt-3"],[1,"d-flex","justify-content-end"],["nz-button","",3,"nzType","click"],[3,"nzLabel","nzValue"]],template:function(e,t){1&e&&(c.rc(0,"nz-spin",0),c.rc(1,"div",1),c.od(2,qe,72,41,"form",2),c.qc(),c.qc()),2&e&&(c.Mc("nzSpinning",t.loading),c.Ub(2),c.Mc("ngIf",t.validateEventResgisterForm))},directives:[le.a,p.t,S.J,S.u,de.b,S.l,p.q,E.c,E.a,de.e,ue.c,S.t,S.j,ue.a,he.c,ve.c,f.d,f.a,S.c,ve.b,de.a,p.s,me.d,i.h,T.a,de.c,me.a],pipes:[p.b],encapsulation:2}),Object(ne.c)([Object(u.e)(ae.a.isMobile)],e.prototype,"isMobile$",void 0),e})();var Ie=n("5zlO");function Ne(e,t){if(1&e){const e=c.sc();c.rc(0,"div",14),c.rc(1,"div"),c.rc(2,"app-event-register",15),c.zc("showAiDeclaration",(function(){return c.dd(e),c.Dc().showAiDeclaration()})),c.qc(),c.qc(),c.qc()}if(2&e){const e=c.Dc();c.Ub(2),c.Mc("eventId",e.selectedEventId)("hasPassedAiDeclaration",e.hasPassedAiDeclaration)}}function Oe(e,t){1&e&&c.mc(0,"nz-skeleton",16),2&e&&c.Mc("nzLoading",!0)}function we(e,t){1&e&&(c.rc(0,"span"),c.qd(1,"This event has passed. Thank y
1ou."),c.qc())}function Le(e,t){1&e&&(c.rc(0,"span"),c.qd(1,"Thank you for your interest but we are sorry that the event is fully booked due to overwhelming response."),c.qc())}let Pe=(()=>{class e{constructor(e,t,n,i,a,s,r){this.store=e,this.subHandlingService=t,this.modalService=n,this.fundRestService=i,this.router=a,this.route=s,this.siDeclarationService=r,this.showAiDeclare=!1,this.hasPassedAiDeclaration=!0,this.loadingEvent=!1,this.hitMax=!1,this.passedEvent=!1,this.isVisibleErrorMsgModal=!1,this.isMobile=this.store.select(e=>e.global.mobile)}ngOnInit(){this.route.queryParams.subscribe(e=>{e.eventNo?(this.selectedEventId=e.eventNo,this.getEvent(this.selectedEventId)):this.router.navigate([a.o.EVENTS])})}checkEventDetails(){let e=new Date;e=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0);let t=new Date(this.eventDetails.endDate);t=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0),e.getTime()<=t.getTime()?null!=this.eventDetails.eventType&&"wholesale"==this.eventDetails.eventType&&(this.siDeclarationService.hasDeclared()?this.hasPassedAiDeclaration=!0:(this.showAiDeclare=!0,this.hasPassedAiDeclaration=!1)):(this.isVisibleErrorMsgModal=!0,this.passedEvent=!0),this.loadingEvent=!1}getEvent(e){this.loadingEvent=!0,this.fundRestService.getFundHappeningHeader(e).subscribe(e=>{e.data&&e.status===s.a.RESPONSE_SUCCESS&&(this.eventDetails=e.data,this.checkEventDetails())})}showAiDeclaration(){this.showAiDeclare=!0}handleAiAccept(){this.hasPassedAiDeclaration=!0,this.closeAiDeclaration()}closeAiDeclaration(){this.showAiDeclare=!1}handleCloseErrorMsgModal(){this.eventDetails.articleNo?this.router.navigate([a.o.EVENTS,a.o.EVENT_DETAILS],{queryParams:{eventNo:this.eventDetails.id}}):this.router.navigateByUrl("/")}}return e.\u0275fac=function(t){return new(t||e)(c.lc(u.i),c.lc(R.a),c.lc(d.e),c.lc(l.a),c.lc(i.e),c.lc(i.a),c.lc(h.a))},e.\u0275cmp=c.fc({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&c.yd(Re,!0),2&e&&c.Zc(n=c.Ac())&&(t.EventRegisterComponent=n.first)},features:[c.Tb([R.a])],decls:18,vars:13,consts:[["title","Event Registration Form"],["class","container pt-2",4,"ngIf","ngIfElse"],[3,"check","show","stayOnCurrentPage","onAccepted","onDecline"],["loadingTemplate",""],["nzWrapClassName","vertical-center-modal",3,"nzVisible","nzFooter","nzClosable","nzKeyboard","nzMaskClosable","nzVisibleChange"],[1,"p-3"],["nzType","flex","nzAlign","middle"],["nzXl","2","nzSm","2","nzXs","2"],["nz-icon","","nzType","exclamation-circle","nzTheme","fill",1,"text-danger","mr-2","text-lg"],["nzXl","22","nzSm","22","nzXs","22"],[4,"ngIf"],[1,"pt-5"],["nzType","flex","nzJustify","end"],["nz-button","",3,"nzType","click"],[1,"container","pt-2"],[3,"eventId","hasPassedAiDeclaration","showAiDeclaration"],["nzActive","",3,"nzLoading"]],template:function(e,t){if(1&e&&(c.mc(0,"app-route-subheader",0),c.od(1,Ne,3,2,"div",1),c.rc(2,"shared-si-declaration-revamp-modal",2),c.zc("onAccepted",(function(){return t.handleAiAccept()}))("onDecline",(function(){return t.closeAiDeclaration()})),c.qc(),c.od(3,Oe,1,1,"ng-template",null,3,c.pd),c.rc(5,"nz-modal",4),c.zc("nzVisibleChange",(function(e){return t.isVisibleErrorMsgModal=e})),c.rc(6,"div",5),c.rc(7,"nz-row",6),c.rc(8,"nz-col",7),c.mc(9,"i",8),c.qc(),c.rc(10,"nz-col",9),c.rc(11,"div"),c.od(12,we,2,0,"span",10),c.od(13,Le,2,0,"span",10),c.qc(),c.qc(),c.qc(),c.rc(14,"div",11),c.rc(15,"nz-row",12),c.rc(16,"button",13),c.zc("click",(function(){return t.handleCloseErrorMsgModal()})),c.qd(17,"OK"),c.qc(),c.qc(),c.qc(),c.qc(),c.qc()),2&e){const e=c.ad(4);c.Ub(1),c.Mc("ngIf",!t.loadingEvent)("ngIfElse",e),c.Ub(1),c.Mc("check",!0)("show",t.showAiDeclare)("stayOnCurrentPage",!0),c.Ub(3),c.Mc("nzVisible",t.isVisibleErrorMsgModal)("nzFooter",null)("nzClosable",!1)("nzKeyboard",!1)("nzMaskClosable",!1),c.Ub(7),c.Mc("ngIf",t.passedEvent),c.Ub(1),c.Mc("ngIf",t.hitMax),c.Ub(3),c.Mc("nzType","primary")}},directives:[m.a,p.t,Ie.a,d.a,E.c,E.a,H.b,T.a,Re,g.a],encapsulation:2}),e})();var He=n("VXw1");const Ue=function(){return["/"]},_e=[{path:"",component:y,pathMatch:"full",data:{nav:{title:"FSMOne Events",link:a.o.EVENTS}}},{path:a.o.EVENT_DETAILS,component:te,data:{nav:{title:"FSMOne Event Details",link:a.o.EVENT_DETAILS}}},{path:a.o.EVENT_DETAILS+"/:eventNo",component:te,data:{nav:{title:"FSMOne Event Details",link:a.o.EVENT_DETAILS}},pathMatch:"full"},{path:He.a.route,component:te,data:{nav:{title:"FSMOne Event Details",link:a.o.EVENT_DETAILS}},pathMatch:"full"},{path:a.o.EVENT_REGISTER_FORM,component:Pe,data:{nav:{title:"FSMOne Event Details",link:a.o.EVENT_REGISTER_FORM}}},{path:a.o.EVENT_SUCCESS,component:(()=>{class e{constructor(){this.EVENTS_IMG_PATH=a.g.EVENTS_IMG_PATH,this.RouteConstant=a.o}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.fc({type:e,selectors:[["ng-component"]],decls:13,vars:4,consts:[[1,"event-success-body","d-flex","align-items-center"],[1,"container"],[1,"text-center"],["alt","Register Successful",1,"mb-3",3,"src"],[1,"h2"],[1,"mb-4","pb-2"],[1,""],["nz-button","","nzType","outline",1,"mx-sm-1","mb-2","w-xs-100",3,"routerLink"],["nz-button","","nzType","primary",1,"mx-sm-1","mb-2","w-xs-100",3,"routerLink"]],template:function(e,t){1&e&&(c.rc(0,"div",0),c.rc(1,"div",1),c.rc(2,"div",2),c.mc(3,"img",3),c.rc(4,"h1",4),c.qd(5,"Thank you for registering for the event."),c.qc(),c.rc(6,"p",5),c.qd(7,"You shall receive an email shortly."),c.qc(),c.rc(8,"div",6),c.rc(9,"a",7),c.qd(10," Go To Home "),c.qc(),c.rc(11,"a",8),c.qd(12," Visit Our Event Page "),c.qc(),c.qc(),c.qc(),c.qc(),c.qc()),2&e&&(c.Ub(3),c.Mc("src",t.EVENTS_IMG_PATH+"success-icon.svg",c.gd),c.Ub(6),c.Mc("routerLink",c.Rc(3,Ue)),c.Ub(2),c.Mc("routerLink","/"+t.RouteConstant.EVENTS))},directives:[i.h,T.a],styles:[".event-success-body[_ngcontent-%COMP%]{min-height:calc(100vh - 194px)}"]}),e})(),data:{nav:{title:"Register Successfully",link:a.o.EVENT_SUCCESS}}}];let Ve=(()=>{class e{}return e.\u0275mod=c.jc({type:e}),e.\u0275inj=c.ic({factory:function(t){return new(t||e)},imports:[[i.i.forChild(_e)],i.i]}),e})();var ke=n("NMKc"),xe=n("+oEP"),Be=n("Ff2k"),je=n("dCdb"),We=n("ztgm");let Ge=(()=>{class e{}return e.\u0275mod=c.jc({type:e}),e.\u0275inj=c.ic({factory:function(t){return new(t||e)},imports:[[ke.a,Ve,b.b,xe.c,Be.d,L.e,q.b,je.a,P.b,w.b,We.a]]}),e})()},VXw1:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}
1));var i=n("4S9j"),a=function(e){return e.FUND_FACTSHEET="FUND_FACTSHEET",e.BOND_FACTSHEET="BOND_FACTSHEET",e.BOND_IPO_FACTSHEET="BOND_IPO_FACTSHEET",e.STOCKS_FACTSHEET="STOCKS_FACTSHEET",e.ETFS_FACTSHEET="ETFS_FACTSHEET",e.RESEARCH_ARTICLE="RESEARCH_ARTICLE",e.EVENT_ARTICLE="EVENT_ARTICLE",e.SIMPLE="SIMPLE",e.AUTO_SWEEP="AUTO_SWEEP",e.STOCKS_FACTSHEET_REVAMP="STOCKS_FACTSHEET_REVAMP",e.ETFS_FACTSHEET_REVAMP="ETFS_FACTSHEET_REVAMP",e}({});function s(...e){return null==e?void 0:e.join("/")}s(i.a.INVEST,i.a.FUNDS),s(i.a.INVEST,i.a.ETFS),s(i.a.INVEST,i.a.STOCKS),s(i.a.INVEST,i.a.BONDS),s(i.a.BONDS,i.a.BOND_EXPRESS),s(i.a.BONDS,i.a.BSM_LIVE);const r={title:"Fund Factsheet",route:i.a.FACTSHEET,fullRoute:s(i.a.FUNDS,i.a.TOOLS,i.a.FACTSHEET),metaType:a.FUND_FACTSHEET},o=(s(i.a.BONDS,i.a.BOND_FACTSHEET),s(i.a.BONDS,i.a.BOND_IPO,i.a.FACTSHEET,i.a.OVERVIEW),s(i.a.STOCKS,i.a.TOOLS,i.a.STOCKS_FACTSHEET),s(i.a.ETFS,i.a.TOOLS,i.a.ETFS_FACTSHEET),s(i.a.STOCKS),s(i.a.ETFS),{title:"FSMOne Events",route:i.a.EVENT_DETAILS+"/:eventNo/:eventName",fullRoute:s(i.a.EVENTS,i.a.EVENT_DETAILS),metaType:a.EVENT_ARTICLE,segments:[i.a.EVENTS,i.a.EVENT_DETAILS,"eventNo","eventName"],dataSegment:"eventNo"});s(i.a.FUNDS,i.a.RESEARCH,i.a.ARTICLE_DETAILS),s(i.a.BONDS,i.a.BOND_RESEARCH,i.a.ARTICLE_DETAILS),s(i.a.WEBCAST,i.a.RESEARCH,i.a.ARTICLE_DETAILS),s(i.a.STOCKS,i.a.RESEARCH,i.a.ARTICLE_DETAILS),s(i.a.ETFS,i.a.RESEARCH,i.a.ARTICLE_DETAILS),s(i.a.INSURANCE,i.a.INSURANCE_ARTICLE),s(i.a.FUNDS,i.a.RESEARCH,i.a.RECOMMENDED_FUNDS),s(i.a.FUNDS,i.a.RESEARCH,i.a.RECOMMENDED_FUND_METHODOLOGY),s(i.a.TOOLS,i.a.FUND_SELECTOR),s(i.a.TOOLS,i.a.ETF_SELECTOR),s(i.a.TOOLS,i.a.BOND_SELECTOR),s(i.a.REWARDS,i.a.REWARDS_NEW_ACCT_BENEFIT
1S),s(i.a.CASH_AUTO_SWEEP),s(i.a.USD_CASH_AUTO_SWEEP),s(i.a.SGD_CASH_AUTO_SWEEP),s(i.a.MYR_CASH_AUTO_SWEEP),s(i.a.GLOBAL_INCOME_PORTFOLIO),s(i.a.FUNDS,i.a.TOOLS,i.a.PORTFOLIO_SIMULATOR)}}]);
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.