1"use strict";(self.webpackChunksanchiconnect_frontend_angular=self.webpackChunksanchiconnect_frontend_angular||[]).push([["default-src_app_core_service_mentorship_service_ts-src_app_modules_calender_helpers_ts-src_ap-6b5822"],{73197:(W,F,d)=>{d.d(F,{g:()=>g});var e=d(25474),E=d(50635),Z=d(53158),J=d(19337),M=d(91083),k=d(56908),Y=d(3184),v=d(28784),A=d(39777),y=d(7205),C=d(14045),t=d(80966);let g=(()=>{class S{constructor(h,m,u,O,j){this.http=h,this.toastService=m,this.globalService=u,this.store=O,this.router=j}getMentorShip(h={}){const m=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP);return this.http.get(m,{params:Object.assign({},h)}).pipe((0,E.U)(u=>null==u?void 0:u.data),(0,Z.K)(u=>{var O,j;return console.warn(`Jobs( ${null===(O=null==u?void 0:u.error)||void 0===O?void 0:O.message} )`),this.toastService.showToast((null===(j=null==u?void 0:u.error)||void 0===j?void 0:j.message)||"Error while fetching jobs","error"),(0,e._)(()=>u)}))}getMentorShipStartups(){const h=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"startups";return this.http.get(h).pipe((0,E.U)(m=>null==m?void 0:m.data),(0,Z.K)(m=>{var u,O;return console.warn(`Jobs( ${null===(u=null==m?void 0:m.error)||void 0===u?void 0:u.message} )`),this.toastService.showToast((null===(O=null==m?void 0:m.error)||void 0===O?void 0:O.message)||"Error while fetching startups","error"),(0,e._)(()=>m)}))}getMentorShipMentors(){const h=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"mentors";return this.http.get(h).pipe((0,E.U)(m=>null==m?void 0:m.data),(0,Z.K)(m=>{var u,O;return console.warn(`Jobs( ${null===(u=null==m?void 0:m.error)||void 0===u?void 0:u.message} )`),this.toastService.showToast((null===(O=null==m?void 0:m.error)||void 0===O?void 0:O.message)||"Error while fetching mentors","error"),(0,e._)(()=>m)}))}getMentorShipStats(){const h=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"stats";return this.http.get(h).pipe((0,E.U)(m=>null==m?void 0:m.data),(0,Z.K)(m=>{var u,O;return console.warn(`Jobs( ${null===(u=null==m?void 0:m.error)||void 0===u?void 0:u.message} )`),this.toastService.showToast((null===(O=null==m?void 0:m.error)||void 0===O?void 0:O.message)||"Error while fetching startups","error"),(0,e._)(()=>m)}))}createManualEntry(h){const m=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"manual-entry";return this.http.post(m,h).pipe((0,J.b)(()=>{this.toastService.showToast("Approval awaited")}),(0,E.U)(u=>u),(0,Z.K)(u=>(this.toastService.showToast(this.globalService.getErrorMessage(u,"Error while logging hours"),"error"),(0,e._)(()=>u))))}createAutoEntry(h){const m=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"auto-entry";return this.http.post(m,Object.assign(Object.assign({},h),{offset:""+(new Date).getTimezoneOffset(),timeZone:k.tz.guess()})).pipe((0,J.b)(()=>{}),(0,E.U)(u=>u),(0,Z.K)(u=>(0,e._)(()=>u)))}addRating(h,m){const u=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"ratings/"+h;return this.http.patch(u,m).pipe((0,J.b)(()=>{this.toastService.showToast("Ratings added")}),(0,E.U)(O=>O),(0,Z.K)(O=>(this.toastService.showToast(this.globalService.getErrorMessage(O,"Error while adding rating"),"error"),(0,e._)(()=>O))))}approveRejectHours(h,m){const u=M.O.getEndpoint(M.O.ENDPOINT.MENTORSHIP)+"approve-hours/"+h;return this.http.patch(u,m).pipe((0,E.U)(O=>O),(0,Z.K)(O=>(this.toastService.showToast(this.globalService.getErrorMessage(O,"Something went wrong"),"error"),(0,e._)(()=>O))))}}return S.\u0275fac=function(h){return new(h||S)(Y.LFG(v.eN),Y.LFG(A.j),Y.LFG(y.U),Y.LFG(C.yh),Y.LFG(t.F0))},S.\u0275prov=Y.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},55629:(W,F,d)=>{d.d(F,{dy:()=>M,kC:()=>B,uO:()=>Y});var e=d(92469),Z=d(33237);const J_red={primary:"#ed7c31",secondary:"#FAE3E3"},M=(v,A="meetingTitle",y=!0,C=!1)=>(v.forEach(g=>{let S=e.utc(`${g.date} ${g.timeFrom}`);y&&(S=S.local());let L=e.utc(`${g.date} ${g.timeTo}`);y&&(L=L.local());let h=g[A];if(g.proposedDate&&(h+=" [Re-schedule requested]"),g.timeFrom=e(S).format("hh:mm a"),g.timeTo=e(L).format("hh:mm a"),h+=` (${k(S)+" - "+k(L)})`,g.canEdit&&(g.actions=void 0),g.canDelete&&(g.actions=void 0),g.title=h,g.start=S,g.end=L,C){const m=e(`${g.date} ${g.timeFrom}`,"YYYY-MM-DD hh:mm a");g.start=m.toDate();const u=e(`${g.date} ${g.timeTo}`,"YYYY-MM-DD hh:mm a");g.end=u.toDate()}g.color=J_red,g.allDay=!1,g.uuid=g.uuid,g.resizable={beforeStart:!1,after
1End:!1},g.draggable=!1}),v),k=v=>e(v).format("hh:mm a"),B=v=>(null==v?void 0:v.length)>0?v.map(y=>{const C=y.start,t=y.end;return Object.assign(Object.assign({},y),{month:e(C).format("MMM"),dateFormatted:e(C).format("DD"),formattedTimeFrom:k(C),formattedTimeTo:k(t),timeFrom:k(C),timeTo:k(t)})}):[],Y=(v,A,y=!1)=>{var C;const t=[];v.features.connections&&t.push({name:"Connect Requests",countKey:"pendingConnectionCount",icon:"bi bi-person-plus-fill fa-2x",link:"/connections/pending-requests"}),v.features.chat&&t.push({name:"Unread Messages",countKey:"unreadMessageCount",icon:"fa fa-comments fa-2x",link:"/chat/conversations"}),(A.accountType===Z.Q5.MENTOR||A.accountType===Z.Q5.STARTUP)&&(v.features.mentor_hours&&A.accountType===Z.Q5.MENTOR&&t.push({name:"Mentor Hours",countKey:"totalApprovedMinutes",icon:"fa fa-clock-o fa-2x",link:"/mentorship-hours"}),v.features.mentor_hours&&A.accountType===Z.Q5.STARTUP&&t.push({name:"Mentor Hours",countKey:"pendingAcceptanceMentorHoursCount",icon:"fa fa-clock-o fa-2x",link:"/mentorship-hours"})),A.accountType===Z.Q5.STARTUP&&v.features.startup_supporting_documents&&t.push({name:"Document requests",countKey:"pendingDocumentsUploadCount",icon:"fa fa-file fa-2x",link:"/startups/edit/pitch-deck/fundraising-pitch"}),A.accountType===Z.Q5.MENTOR&&v.features.mentor_hours&&t.push({name:"Avg. Ratings",countKey:"avgRating",icon:"fa fa-star fa-2x",link:"/mentorship-hours"});const g=localStorage.getItem("membershipactive");if(v.features.membership_enabled&&"true"===g){const S=localStorage.getItem("profile-approval-status"),L=localStorage.getItem("lastmembership"),h=L?JSON.parse(L):null;console.log("memb",g),("approved"==v.features.membership_visibility_type&&("approved"==S||h)||"anyone"==v.features.membership_visibility_type||"manual"==v.features.membership_visibility_type&&h)&&t.push({name:(null===(C=null==h?void 0:h.membershipType)||void 0===C?void 0:C.name)||"Subscribe",icon:h&&"expired"!=(null==h?void 0:h.membershipStatus)?"bi bi-person-check-fill fa-2x text-primary":"bi bi-person-check-fill fa-2x ",link:"/account/edit/membership"})}return t}},76851:(W,F,d)=>{d.d(F,{N:()=>$e});var e=d(3184),E=d(36362),Z=d(71369),J=d(71670),M=d(14045),k=d(92469),B=d(50253),Y=d(98977),v=d(68951),A=d(48851),y=d(9997),t=(d(79337),d(99400)),g=d(60598),S=d.n(g),L=d(52657),h=d(92340),m=d(80966),u=d(56900),O=d(18038),j=d(2929),V=d(43085),G=d(7205),X=d(39777),ee=d(15312),te=d(76662),ne=d(44808),oe=d(23132);function ae(i,c){if(1&i&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"date"),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,1,null==n.modalData||null==n.modalData.event?null:n.modalData.event.date,"MMM d, y")," ")}}function ie(i,c){if(1&i&&(e.TgZ(0,"div",25),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.AsE(" ",e.xi3(2,2,null==n.modalData||null==n.modalData.event||null==n.modalData.event.dates[0]?null:n.modalData.event.dates[0].date,"MMM d, y")," - ",e.xi3(3,5,null==n.modalData||null==n.modalData.event||null==n.modalData.event.dates[(null==n.modalData||null==n.modalData.event||null==n.modalData.event.dates?null:n.modalData.event.dates.length)-1]?null:n.modalData.event.dates[(null==n.modalData||null==n.modalData.event||null==n.modalData.event.dates?null:n.modalData.event.dates.length)-1].date,"MMM d, y")," ")}}function le(i,c){if(1&i&&(e.TgZ(0,"span",26),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.hij(" ",n.formatEventTypeLabel(null==n.modalData||null==n.modalData.event?null:n.modalData.event.eventType)," ")}}function se(i,c){if(1&i&&(e.TgZ(0,"span",26),e._uU(1),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.hij(" ",n.formatEnumStringForUI(null==n.modalData||null==n.modalData.event?null:n.modalData.event.deliveryMode)," ")}}function re(i,c){1&i&&(e.TgZ(0,"span",27),e._uU(1," Instant Booking "),e.qZA())}function de(i,c){1&i&&(e.TgZ(0,"span",28),e._uU(1," Requires Approval "),e.qZA())}function ce(i,c){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.AsE(" Up to ",null==n.modalData||null==n.modalData.event?null:n.modalData.event.applicationCap," applicant",1===(null==n.modalData||null==n.modalData.event?null:n.modalData.event.applicationCap)?"":"s"," accepted per slot. ")}}function _e(i,c){if(1&i&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&i){const n=e.oxw(2);e.xp6(1),e.AsE(" You may apply to up to ",null==n.modalData||null==n.modalData.event?null:n.modalData.event.maxSlotsPerStartup," slot",1===(null==n.modalData||null==n.modalData.event?null:n.modalData.event.maxSlotsPerStartup)?"":"s"," for this event. ")}}function me(i,c){if(1&i&&(e.TgZ(0,"div",29),e.YNc(1,ce,2,2,"div",30),e.YNc(2,_e,2,2,"div",30),e.qZA()),2&i){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.hasApplicationCap),e.xp6(1),e.Q6J("ngIf",n.hasMaxSlotsPerStartup)}}function pe(i,c){if(1&i&&(e.TgZ(0,"div",42)(1,"span",43),e._UZ(2,"i",44),e.qZA(),e.TgZ(3,"div",45)(4,"span",46),e._uU(5,"Time"),e.qZA(),e.TgZ(6,"div",47),e._uU(7),e.qZA(),e.TgZ(8,"div",48),e._uU(9),e.qZA()()()),2&i){const n=e.oxw(2);e.xp6(7),e.AsE("",null==n.modalData||null==n.modalData.event?null:n.modalData.event.timeFrom," - ",null==n.modalData||null==n.modalData.event?null:n.modalData.event.timeTo,""),e.xp6(2),e.Oqu(n.eventTimeZoneLabel)}}function ve(i,c){if(1&i&&(e.TgZ(0,"div",49)(1,"span",43),e._UZ(2,"i",50),e.qZA(),e.TgZ(3,"div",51)(4,"span",46),e._uU(5,"Venue"),e.qZA(),e.TgZ(6,"div",52)(7,"p",53),e._uU(8),e.qZA()()()()),2&i){const n=e.oxw(2);e.xp6(8),e.hij(" ",null==n.modalData||null==n.modalData.event?null:n.modalData.event.location," ")}}function ue(i,c){if(1&i&&(e.TgZ(0,"div",54)(1,"lightgallery",55)(2,"a",56),e.ALo(3,"imagekitUrlAppender"),e._UZ(4,"img",57
1),e.ALo(5,"imagekitUrlAppender"),e.qZA()()()),2&i){const n=e.oxw(2);e.xp6(1),e.Q6J("settings",n.settings),e.xp6(1),e.Q6J("href",e.lcZ(3,3,null==n.modalData.event?null:n.modalData.event.headerImage),e.LSH),e.xp6(2),e.Q6J("src",e.lcZ(5,5,n.modalData.event.headerImage),e.LSH)}}function ge(i,c){if(1&i&&(e.ynx(0),e._UZ(1,"img",70),e.ALo(2,"imagekitUrlAppender"),e.BQk()),2&i){const n=e.oxw(4);e.xp6(1),e.Q6J("src",e.lcZ(2,1,null==n.mainSpeaker?null:n.mainSpeaker.speaker_image)+"?tr=w-60,h-60",e.LSH)}}function fe(i,c){if(1&i&&e._UZ(0,"ngx-avatars",71),2&i){const n=e.oxw(4);e.Q6J("name",null==n.mainSpeaker?null:n.mainSpeaker.name)}}function he(i,c){if(1&i&&e._UZ(0,"span",72),2&i){const n=e.oxw(4);e.Q6J("ngbTooltip",n.mainSpeaker.bio)}}function xe(i,c){if(1&i&&(e.TgZ(0,"a",73),e._UZ(1,"i",74),e.qZA()),2&i){const n=e.oxw(4);e.Q6J("href",null==n.mainSpeaker?null:n.mainSpeaker.linkedin,e.LSH)}}function De(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"div",62),e.NdJ("click",function(){return e.CHM(n),e.oxw(3).handleMainSpeakerClick()}),e.TgZ(1,"div",63),e.YNc(2,ge,3,3,"ng-container",64),e.YNc(3,fe,1,1,"ng-template",null,65,e.W1O),e.TgZ(5,"p",66),e._uU(6),e.qZA(),e.TgZ(7,"div",67),e.YNc(8,he,1,1,"span",68),e.YNc(9,xe,2,1,"a",69),e.qZA()()()}if(2&i){const n=e.MAs(4),a=e.oxw(3);e.xp6(2),e.Q6J("ngIf",null==a.mainSpeaker?null:a.mainSpeaker.speaker_image)("ngIfElse",n),e.xp6(4),e.hij(" ",a.mainSpeaker.name," "),e.xp6(2),e.Q6J("ngIf",null==a.mainSpeaker?null:a.mainSpeaker.bio),e.xp6(1),e.Q6J("ngIf",null==a.mainSpeaker?null:a.mainSpeaker.linkedin)}}function be(i,c){if(1&i&&(e.ynx(0),e._UZ(1,"img",70),e.ALo(2,"imagekitUrlAppender"),e.BQk()),2&i){const n=e.oxw().$implicit;e.xp6(1),e.Q6J("src",e.lcZ(2,1,null==n?null:n.speaker_image)+"?tr=w-60,h-60",e.LSH)}}function Te(i,c){if(1&i&&e._UZ(0,"ngx-avatars",71),2&i){const n=e.oxw().$implicit;e.Q6J("name",null==n?null:n.name)}}function Oe(i,c){if(1&i&&e._UZ(0,"span",72),2&i){const n=e.oxw().$implicit;e.Q6J("ngbTooltip",n.bio)}}function Me(i,c){if(1&i&&(e.TgZ(0,"a",73),e._UZ(1,"i",74),e.qZA()),2&i){const n=e.oxw().$implicit;e.Q6J("href",null==n?null:n.linkedin,e.LSH)}}function Ae(i,c){if(1&i&&(e.TgZ(0,"div",75)(1,"div",63),e.YNc(2,be,3,3,"ng-container",64),e.YNc(3,Te,1,1,"ng-template",null,65,e.W1O),e.TgZ(5,"p",66),e._uU(6),e.qZA(),e.TgZ(7,"div",67),e.YNc(8,Oe,1,1,"span",68),e.YNc(9,Me,2,1,"a",69),e.qZA()()()),2&i){const n=c.$implicit,a=e.MAs(4);e.xp6(2),e.Q6J("ngIf",null==n?null:n.speaker_image)("ngIfElse",a),e.xp6(4),e.hij(" ",n.name," "),e.xp6(2),e.Q6J("ngIf",null==n?null:n.bio),e.xp6(1),e.Q6J("ngIf",null==n?null:n.linkedin)}}function Ze(i,c){if(1&i&&(e.TgZ(0,"div",58)(1,"p",59),e._uU(2,"Speakers"),e.qZA(),e.TgZ(3,"div",22),e.YNc(4,De,10,5,"div",60),e.YNc(5,Ae,10,5,"div",61),e.qZA()()),2&i){const n=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==n.modalData.event?null:n.modalData.event.speakerDetails),e.xp6(1),e.Q6J("ngForOf",null==n.modalData||null==n.modalData.event?null:n.modalData.event.speakers)}}function ye(i,c){if(1&i&&e._UZ(0,"div",76),2&i){const n=e.oxw(2);e.Q6J("innerHTML",null==n.modalData||null==n.modalData.event?null:n.modalData.event.eventDescription,e.oJD)}}function Ee(i,c){1&i&&(e.TgZ(0,"div"),e._uU(1," No Notes found "),e.qZA())}function ke(i,c){1&i&&(e.ynx(0),e.TgZ(1,"div",77)(2,"div",78),e._uU(3," The event has already passed or has been closed for registrations. "),e.qZA()(),e.BQk())}function we(i,c){1&i&&(e.TgZ(0,"div",87)(1,"span",88),e._uU(2,"Choose date and slot"),e.qZA()())}function Ce(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"button",91),e.NdJ("click",function(){e.CHM(n);const l=e.oxw(4);return l.showTimesInViewerZone=!l.showTimesInViewerZone}),e._uU(1),e.qZA()}if(2&i){const n=e.oxw(4);e.xp6(1),e.hij(" (show in ",n.showTimesInViewerZone?n.eventTimeZoneLabel:n.viewerTimeZoneLabel," instead) ")}}function Se(i,c){if(1&i&&(e.TgZ(0,"div",89)(1,"span"),e._uU(2),e.qZA(),e.YNc(3,Ce,2,1,"button",90),e.qZA()),2&i){const n=e.oxw(3);e.xp6(2),e.hij(" All times shown below are in ",n.showTimesInViewerZone?n.viewerTimeZoneLabel:n.eventTimeZoneLabel," "),e.xp6(1),e.Q6J("ngIf",n.isViewerInDifferentTimeZone)}}function Ie(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"span",94),e.NdJ("click",function(){const _=e.CHM(n).$implicit;return e.oxw(4).selectSlotDate(_)}),e._uU(1),e.ALo(2,"date"),e.qZA()}if(2&i){const n=c.$implicit,a=e.oxw(4);e.Q6J("ngClass",(null==a.selectedSlotObj?null:a.selectedSlotObj.date)===(null==n?null:n.date)?"badge-primary":"badge-dark"),e.xp6(1),e.hij(" ",e.xi3(2,2,n.date,"MMM d, y"),"")}}function Ue(i,c){if(1&i&&(e.TgZ(0,"div",92),e.YNc(1,Ie,3,5,"span",93),e.qZA()),2&i){const n=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",n.modalData.event.slots)}}function Pe(i,c){1&i&&(e.TgZ(0,"div",95),e._uU(1," Registrations closed. All slots have been booked. "),e.qZA())}
1function r(i,c){if(1&i&&(e.TgZ(0,"div",96),e._UZ(1,"i",97),e._uU(2),e.qZA()),2&i){const n=e.oxw(3);e.Q6J("ngClass","warning"===n.applyErrorSeverity?"alert-warning":"alert-danger"),e.xp6(2),e.hij("",n.applyErrorMessage," ")}}function f(i,c){1&i&&(e.TgZ(0,"div",98),e._UZ(1,"i",97),e._uU(2," Could not load the application form. You can still apply \u2014 please refresh the page if this keeps happening. "),e.qZA())}function o(i,c){if(1&i&&(e.TgZ(0,"div",103)(1,"p",104)(2,"b"),e._uU(3),e.qZA(),e._uU(4),e.qZA()()),2&i){const n=e.oxw().$implicit,a=e.oxw(5);e.xp6(3),e.Oqu(n.break.title),e.xp6(1),e.AsE(" (",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),") ")}}function s(i,c){if(1&i&&(e.TgZ(0,"div",110)(1,"span",111),e._uU(2),e.qZA(),e.TgZ(3,"span",112),e._UZ(4,"i",113),e._uU(5,"Approved"),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(2),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function p(i,c){if(1&i&&(e.TgZ(0,"div",114)(1,"span",111),e._uU(2),e.qZA(),e.TgZ(3,"span",115),e._UZ(4,"i",116),e._uU(5,"Rejected"),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(2),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function b(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"div",117)(1,"div",33)(2,"span",111),e._uU(3),e.qZA(),e.TgZ(4,"span",118)(5,"span",119),e._UZ(6,"i",113),e._uU(7,"Applied"),e.qZA(),e.TgZ(8,"button",120),e.NdJ("click",function(){e.CHM(n);const l=e.oxw().ngIf;
1return e.oxw(7).withdrawApplication(l.myApp)}),e._uU(9),e.qZA()()(),e.TgZ(10,"div",121),e._UZ(11,"i",122),e._uU(12,"A confirmation will be sent to you once its approved. "),e.qZA()()}if(2&i){const n=e.oxw().ngIf,a=e.oxw(2).$implicit,l=e.oxw(5);e.xp6(3),e.AsE("",l.formatSlotTime(l.selectedSlotObj.date,a.timeFrom)," - ",l.formatSlotTime(l.selectedSlotObj.date,a.timeTo),""),e.xp6(5),e.Q6J("disabled",l.withdrawLoadingUuid===n.myApp.uuid),e.xp6(1),e.hij(" ",l.withdrawLoadingUuid===n.myApp.uuid?"Withdrawing\u2026":"Withdraw"," ")}}function N(i,c){if(1&i&&(e.TgZ(0,"div",123)(1,"div",33)(2,"span",124),e._uU(3),e.qZA(),e.TgZ(4,"span",125),e._UZ(5,"i",126),e._uU(6,"Time passed"),e.qZA()()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(3),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function I(i,c){if(1&i&&(e.TgZ(0,"div",123)(1,"div",33)(2,"span",124),e._uU(3),e.qZA(),e.TgZ(4,"button",127),e._UZ(5,"i",128),e._uU(6,"Book "),e.qZA()(),e.TgZ(7,"div",121),e._UZ(8,"i",122),e._uU(9,"This event is not open to your account type. "),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(3),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function U(i,c){if(1&i&&(e.TgZ(0,"div",123)(1,"div",33)(2,"span",124),e._uU(3),e.qZA(),e.TgZ(4,"button",127),e._UZ(5,"i",128),e._uU(6,"Book "),e.qZA()(),e.TgZ(7,"div",121),e._UZ(8,"i",122),e._uU(9,"This event is only open to accounts with a specific profile status. "),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(3),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function P(i,c){if(1&i&&(e.TgZ(0,"span",48),e._UZ(1,"i",130),e._uU(2),e.qZA()),2&i){const n=e.oxw(9);e.xp6(2),e.AsE("",null==n.modalData||null==n.modalData.event?null:n.modalData.event.applicationCap,"/",null==n.modalData||null==n.modalData.event?null:n.modalData.event.applicationCap," ")}}function K(i,c){if(1&i&&(e.TgZ(0,"div",123)(1,"div",33)(2,"span",124),e._uU(3),e.qZA(),e.TgZ(4,"span",118)(5,"span",125),e._UZ(6,"i",113),e._uU(7),e.qZA(),e.YNc(8,P,3,2,"span",129),e.qZA()(),e.TgZ(9,"div",121),e._UZ(10,"i",122),e._uU(11),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(3),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),""),e.xp6(4),e.Oqu(a.closedSlotReasonLabel),e.xp6(1),e.Q6J("ngIf",a.hasApplicationCap),e.xp6(3),e.hij(" ",a.hasApplicationCap?"Applications for this slot are full.":a.closedSlotReasonTooltip," ")}}function $(i,c){if(1&i&&(e.TgZ(0,"div",123)(1,"div",33)(2,"span",124),e._uU(3),e.qZA(),e.TgZ(4,"button",127),e._UZ(5,"i",128),e._uU(6,"Book "),e.qZA()(),e.TgZ(7,"div",121),e._UZ(8,"i",122),e._uU(9,"You have reached the maximum number of slots you can book for this event. "),e.qZA()()),2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(3),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),"")}}function z(i,c){1&i&&(e.TgZ(0,"span")(1,"span",133),e._UZ(2,"span",134),e.qZA()()),2&i&&(e.xp6(1),e.ekj("d-inline-block",!0))}function Qe(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"div",131)(1,"span"),e._uU(2),e.qZA(),e.TgZ(3,"button",132),e.NdJ("click",function(){e.CHM(n);const l=e.oxw(3).$implicit,_=e.oxw(5);return _.handleBook(l,_.selectedSlotObj.date)}),e._uU(4," Book "),e.YNc(5,z,3,2,"span",30),e.qZA()()}if(2&i){const n=e.oxw(3).$implicit,a=e.oxw(5);e.xp6(2),e.AsE("",a.formatSlotTime(a.selectedSlotObj.date,n.timeFrom)," - ",a.formatSlotTime(a.selectedSlotObj.date,n.timeTo),""),e.xp6(1),e.Q6J("disabled",a.bookingLoading),e.xp6(2),e.Q6J("ngIf",a.bookingLoading&&n.timeFrom===a.bookingLoadingForSlotTimeFrom)}}function Le(i,c){if(1&i&&(e.ynx(0),e.YNc(1,s,6,2,"div",105),e.YNc(2,p,6,2,"div",106),e.YNc(3,b,13,4,"div",107),e.YNc(4,N,7,2,"div",108),e.YNc(5,I,10,2,"div",108),e.YNc(6,U,10,2,"div",108),e.YNc(7,K,12,5,"div",108),e.YNc(8,$,10,2,"div",108),e.YNc(9,Qe,6,4,"div",109),e.BQk()),2&i){const n=c.ngIf;e.xp6(1),e.Q6J("ngIf","mine-approved"===n.kind),e.xp6(1),e.Q6J("ngIf","mine-rejected"===n.kind),e.xp6(1),e.Q6J("ngIf","mine-pending"===n.kind),e.xp6(1),e.Q6J("ngIf","past"===n.kind),e.xp6(1),e.Q6J("ngIf","not-eligible"===n.kind),e.xp6(1),e.Q6J("ngIf","not-eligible-status"===n.kind),e.xp6(1),e.Q6J("ngIf","full"===n.kind),e.xp6(1),e.Q6J("ngIf","limit-locked"===n.kind),e.xp6(1),e.Q6J("ngIf","o
1pen"===n.kind)}}function Ne(i,c){if(1&i&&(e.ynx(0),e.YNc(1,Le,10,9,"ng-container",30),e.BQk()),2&i){const n=e.oxw().$implicit,a=e.oxw(5);e.xp6(1),e.Q6J("ngIf",a.getSlotView(n,a.selectedSlotObj.date))}}function Ye(i,c){if(1&i&&(e.ynx(0),e.YNc(1,o,5,3,"div",102),e.YNc(2,Ne,2,1,"ng-container",30),e.BQk()),2&i){const n=c.$implicit;e.xp6(1),e.Q6J("ngIf",null==n?null:n.break),e.xp6(1),e.Q6J("ngIf",!(null!=n&&n.break))}}function Re(i,c){if(1&i&&(e.ynx(0),e.YNc(1,Ye,3,2,"ng-container",101),e.BQk()),2&i){const n=e.oxw(4);e.xp6(1),e.Q6J("ngForOf",n.selectedSlotObj.slots)}}function Je(i,c){1&i&&(e.TgZ(0,"div",135),e._uU(1," No slots available for this date. "),e.qZA())}function je(i,c){if(1&i&&(e.TgZ(0,"div",99),e.YNc(1,Re,2,1,"ng-container",64),e.YNc(2,Je,2,0,"ng-template",null,100,e.W1O),e.qZA()),2&i){const n=e.MAs(3),a=e.oxw(3);e.xp6(1),e.Q6J("ngIf",a.hasAnySlotForSelectedDate)("ngIfElse",n)}}function Fe(i,c){if(1&i&&(e.ynx(0),e.TgZ(1,"div",79)(2,"span",46),e._uU(3,"Book your slot"),e.qZA()(),e.YNc(4,we,3,0,"div",80),e.YNc(5,Se,4,2,"div",81),e.YNc(6,Ue,2,1,"div",82),e.YNc(7,Pe,2,0,"div",83),e.YNc(8,r,3,2,"div",84),e.YNc(9,f,3,0,"div",85),e.YNc(10,je,4,2,"div",86),e.BQk()),2&i){const n=e.oxw(2);e.xp6(4),e.Q6J("ngIf",n.hasAnyBookableSlot&&(null==n.modalData.event.slots?null:n.modalData.event.slots.length)>1),e.xp6(1),e.Q6J("ngIf",n.hasAnyBookableSlot),e.xp6(1),e.Q6J("ngIf",n.hasAnyBookableSlot&&(null==n.modalData.event.slots?null:n.modalData.event.slots.length)>1),e.xp6(1),e.Q6J("ngIf",!n.hasAnyBookableSlot),e.xp6(1),e.Q6J("ngIf",n.applyErrorMessage),e.xp6(1),e.Q6J("ngIf",n.eventQuestionsLoadError),e.xp6(1),e.Q6J("ngIf",n.hasAnyBookableSlot)}}function Be(i,c){if(1&i&&(e.TgZ(0,"div",31)(1,"div",32)(2,"div",33)(3,"div"),e.YNc(4,pe,10,3,"div",34),e.YNc(5,ve,9,1,"div",35),e.qZA()(),e.YNc(6,ue,6,7,"div",36),e.YNc(7,Ze,6,2,"div",37),e.TgZ(8,"div",38)(9,"span",39),e._uU(10,"Description"),e.qZA(),e._UZ(11,"div",40),e.YNc(12,ye,1,1,"div",41),e.YNc(13,Ee,2,0,"div",30),e.qZA()(),e.TgZ(14,"div",32),e.YNc(15,ke,4,0,"ng-container",30),e.YNc(16,Fe,11,7,"ng-container",30),e.qZA()()),2&i){const n=e.oxw();e.xp6(4),e.Q6J("ngIf",1==(null==n.modalData||null==n.modalData.event||null==n.modalData.event.dates?null:n.modalData.event.dates.length)),e.xp6(1),e.Q6J("ngIf",(null==n.modalData||null==n.modalData.event?null:n.modalData.event.location)&&"in_person"==(null==n.modalData||null==n.modalData.event?null:n.modalData.event.deliveryMode)),e.xp6(1),e.Q6J("ngIf",(null==n.modalData.event?null:n.modalData.event.headerImage)&&n.globalSettings),e.xp6(1),e.Q6J("ngIf",n.globalSettings),e.xp6(5),e.Q6J("ngIf",null==n.modalData||null==n.modalData.event?null:n.modalData.event.eventDescription),e.xp6(1),e.Q6J("ngIf",!(null!=n.modalData&&null!=n.modalData.event&&n.modalData.event.eventDescription)),e.xp6(2),e.Q6J("ngIf",n.isInPast),e.xp6(1),e.Q6J("ngIf",!n.isInPast)}}function qe(i,c){if(1&i){const n=e.EpF();e.TgZ(0,"app-attend-information",136),e.NdJ("bookingResponseData",function(l){return e.CHM(n),e.oxw().bookingResponseUpdate(l)})("closeComponent",function(){return e.CHM(n),e.oxw().closeChild()}),e.qZA()}if(2&i){const n=e.oxw();e.Q6J("eventId",n.eventUUID)("bookingData",n.bookingData)("eventQuestionList",n.eventQuestionsList)("attendingType",n.attendingType)}}let He=(()=>{class i{constructor(n,a,l,_,D,x,T,Q,R){this.route=n,this.modal=a,this.meetingService=l,this.profileService=_,this.router=D,this.store=x,this.uiLoader=T,this.globalService=Q,this.toastService=R,this.settings={counter:!1,plugins:[L.Z]},this.isRescheduling=!1,this.bookingLoading=!1,this.destroyed$=new B.x,this.eventQuestionsList=[],this.bookingData={},this.showChildComponent=!1,this.attendingType="one_to_one",this.applyErrorMessage=null,this.applyErrorSeverity="danger",this.eventQuestionsLoadError=!1,this.myApplications=[],this.withdrawLoadingUuid=null,this.eventTimeZoneLabel="India Standard Time (IST)",this.eventTimeZone="Asia/Kolkata",this.viewerTimeZone=k.tz.guess(),this.showTimesInViewerZone=!1,this.selectedSlotObj=null}get isViewerInDifferentTimeZone(){return!!this.viewerTimeZone&&this.viewerTimeZone!==this.eventTimeZone}get viewerTimeZoneLabel(){return this.viewerTimeZone?k.tz(this.viewerTimeZone).format("z")+" ("+this.viewerTimeZone.replace(/_/g," ")+")":"your local time"}formatSlotTime(n,a){var l,_;if(!a)return"";const D=this.showTimesInViewerZone?this.viewerTimeZone:this.eventTimeZone,x=n||(null===(_=null===(l=this.modalData)||void 0===l?void 0:l.event)||void 0===_?void 0:_.date);return x?k.tz(`${x} ${a}`,"YYYY-MM-DD HH:mm:ss",this.eventTimeZone).tz(D).format("hh:mm A"):k(a,"HH:mm:ss").format("hh:mm A")}ngOnInit(){var n,a,l,_,D,x,T,Q,R;this.eventUUID=this.modalData.event.uuid,(null===(l=null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.checkIfResponseExists)||void 0===l?void 0:l.responseAction)&&(this.selectedResponse={value:null===(D=null===(_=this.modalData.event)||void 0===_?void 0:_.checkIfResponseExists)||void 0===D?void 0:D.responseAction}),this.profileDetails$=this.store.pipe((0,M.Ys)(A.$y)),this.profileDetails$.pipe((0,Y.x)(),(0,v.R)(this.destroyed$)).subscribe(w=>{w&&(this.profileDetails=w)}),this.store.pipe((0,M.Ys)(y.Tv)).pipe((0,Y.x)(),(0,v.R)(this.destroyed$)).subscribe(w=>{w&&(this.globalSettings=w)}),(null===(T=null===(x=this.modalData.event)||void 0===x?void 0:x.slots)||void 0===T?void 0:T.length)&&(this.modalData.event.slots=this.mapSlotsWithBreaks(),this.selectSlotDate(null===(Q=this.modalData.event.slots)||void 0===Q?void 0:Q[0])),this.myApplications=Array.isArray(null===(R=this.modalData.event)||void 0===R?void 0:R.myApplications)?[...this.modalData.event.myApplications]:[],!h.N.production&&this.isDevMockOneToOneRequested()&&this.applyDevMockOneToOneData(),this.globalService.getEventQuestions(this.modalData.event.uuid).subscribe({next:w=>{this.eventQuestionsList=w||[]},error:()=>{this.eventQuestionsList=[],this.eventQuestionsLoadError=!0}})}isDevMockOneToOneRequested(){return"undefined"!=typeof window&&"1"===new URLSearchParams(window.location.search).get("mockOneToOne")}applyDevMockOneToOneData(){var n,a,l;const _=this.modalData.event;_.approvalMode=_.approvalMode||"manual",_.applicationCap=null!==(n=_.applicationCap)&&void 0!==n?n:3,_.maxSlotsPerStartup=null!==(a=_.maxSlotsPerStartup)&&void 0!==a?a:2;const D=null===(l=_.slots)||void 0===l?void 0:l[0],x=((null==D?void 0:D.slots)||[]).filter(T=>!(null==T?void 0:T.break));x.length<2||(x[0].booked=!0,x[1].booked=!1,this.myApplications=[{uuid:"dev-mock-application-1",date:D.date,timeFrom:x[1].timeFrom,timeTo:x[1].timeTo,approvalStatus:"pending_moderation"}])}mapSlotsWithBreaks(){return this.modalData.event.slots.map(a=>{const l=a.slots,_=a.breakSlots.flatMap(x=>x.slots.map(T=>Object.assign(Object.assign({},T),{title:x.title})));let D=l.map(x=>{const T=_.find(Q=>x.timeFrom>=Q.timeFrom&&x.timeTo<=Q.timeTo);return Object.assign(Object.assign({},x),{break:T?{title:T.title}:null})});return D=this.mergeConsecutiveBreaks(D),Object.assign(Object.assign({},a),{slots:D})})}mergeConsecutiveBreaks(n){const a=[];let l=null;
1return n.forEach(_=>{_.break?l&&l.break.title===_.break.title?l.timeTo=_.timeTo:(l&&a.push(l),l=Object.assign({},_)):(l&&(a.push(l),l=null),a.push(_))}),l&&a.push(l),a}ngOnChanges(n){}get meetingUrl(){const n=this.modalData.event;if("job-interview"===n.meetingType){const l=this.router.serializeUrl(this.router.createUrlTree(["/job-interview/",n.uuid]));return window.location.origin+l}const a=this.router.serializeUrl(this.router.createUrlTree(["/meetings/meeting/"+n.uuid]));return this.meetingService.getMeetingUrl(a)}meetingDetail(n){if(this.closeModal(),"job-interview"===n.meetingType){const l=this.router.serializeUrl(this.router.createUrlTree(["/job-interview/",n.uuid]));return void window.open(l,"_blank")}const a=this.router.serializeUrl(this.router.createUrlTree(["/meetings/meeting/"+n.uuid]));window.open(this.meetingService.getMeetingUrl(a),"_blank")}closeModal(){this.modalInst.close({})}isSlotInPast(n,a){var l,_;const D=a||(null===(_=null===(l=this.modalData)||void 0===l?void 0:l.event)||void 0===_?void 0:_.date);return!(!D||!(null==n?void 0:n.timeFrom))&&k.tz(`${D} ${n.timeFrom}`,"YYYY-MM-DD HH:mm:ss",this.eventTimeZone).isBefore(k())}get isInPast(){var n,a;return k(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.date).isBefore(k(),"date")}get isStakeholderTypeAllowed(){var n,a,l;const _=null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.allowedUserTypesToBook;return!Array.isArray(_)||0===_.length||_.includes(null===(l=this.profileDetails)||void 0===l?void 0:l.accountType)}get isProfileStatusAllowed(){var n,a;const l=null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.allowedUsersProfileStatuses;return!Array.isArray(l)||0===l.length||l.includes(localStorage.getItem("profile-approval-status"))}tConvert(n,a){return n}get eventDate(){return new Date(this.modalData.event.date)}formatTo24Hour(n){return k(n,"h:mm A").format("HH:mm")}handleBook(n,a){var l=this;return(0,J.Z)(function*(){if(l.applyErrorMessage=null,l.isSlotInPast(n,a))l.applyErrorMessage="This slot has already started and can no longer be booked.";else{if(!(yield l.confirmSlotStillAvailable(l.modalData.event.uuid,a,n.timeFrom)))return l.applyErrorSeverity="danger",l.applyErrorMessage="This slot was just booked by someone else. Please choose another.",void l.toastService.showToast(l.applyErrorMessage,"error");if(l.eventQuestionsList.length)l.showChildComponent=!0,l.bookingData={event:l.modalData.event,date:a,SlotTime:n.timeFrom,timeFrom:n.timeFrom.split(":").slice(0,2).join(":"),timeTo:n.timeTo.split(":").slice(0,2).join(":"),attending:"attending",message:"Slot was successfully booked."};else{const{value:D,isConfirmed:x}=yield S().fire({input:"textarea",title:"<p class='fs-2 mt-4'>Agenda <span class='text-red'>*</span></p>",inputPlaceholder:"Share the topic you would like to discuss",inputAttributes:{"aria-label":"Share the topic you would like to discuss"},showCancelButton:!0,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"Submit"});if(x)if(D){l.bookingLoading=!0;const T=l.modalData.event;
1console.log("event",T),l.bookingLoadingForSlotTimeFrom=n.timeFrom;const Q=n.timeFrom.split(":").slice(0,2).join(":"),R=n.timeTo.split(":").slice(0,2).join(":");l.globalService.bookEventSlot(T.uuid,Q,R,"attending",D,a,"Slot was successfully booked.").subscribe({next:w=>{l.bookingLoading=!1,w&&(l.myApplications=[...l.myApplications,w])},error:w=>{var q;l.bookingLoading=!1;const H=null===(q=null==w?void 0:w.error)||void 0===q?void 0:q.message;l.applyErrorMessage=H||"This slot could not be booked \u2014 it may have just been taken. Please choose another.",l.applyErrorSeverity=400===(null==w?void 0:w.status)?"warning":"danger",l.toastService.showToast(l.applyErrorMessage,"warning"===l.applyErrorSeverity?"warning":"error")}})}else l.toastService.showToast("Agenda is required to book a slot","error")}}})()}confirmSlotStillAvailable(n,a,l){return new Promise(_=>{this.globalService.getPlatformEvents().subscribe({next:D=>{var x,T;const Q=(D||[]).find(H=>H.uuid===n);if(!(null===(x=null==Q?void 0:Q.slots)||void 0===x?void 0:x.length))return void _(!0);const R=Q.slots.find(H=>H.date===a),w=null===(T=null==R?void 0:R.slots)||void 0===T?void 0:T.find(H=>H.timeFrom===l);this.modalData.event.slots=Q.slots,this.modalData.event.slots=this.mapSlotsWithBreaks();const q=this.modalData.event.slots.find(H=>H.date===a);q&&this.selectSlotDate(q),_(!w||!w.booked)},error:()=>_(!0)})})}get speakerProfileLink(){var n,a,l,_,D,x,T,Q,R,w,q;return(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.speakerCompanyDetails)?this.profileService.getProfileLink(null===(D=null===(_=null===(l=this.modalData)||void 0===l?void 0:l.event)||void 0===_?void 0:_.speakerCompanyDetails)||void 0===D?void 0:D.uuid,null===(Q=null===(T=null===(x=this.modalData)||void 0===x?void 0:x.event)||void 0===T?void 0:T.speakerCompanyDetails)||void 0===Q?void 0:Q.name,null===(q=null===(w=null===(R=this.modalData)||void 0===R?void 0:R.event)||void 0===w?void 0:w.speakerDetails)||void 0===q?void 0:q.accountType):""}selectSlotDate(n){this.selectedSlotObj=n}toDateKey(n){return n?(n instanceof Date?n.toISOString():String(n)).slice(0,10):""}toTimeKey(n){return(n||"").slice(0,5)}getMyApplicationForSlot(n,a){const l=this.toDateKey(n),_=this.toTimeKey(a);return this.myApplications.find(D=>this.toDateKey(D.date)===l&&this.toTimeKey(D.timeFrom)===_)}getSlotView(n,a){const l=this.getMyApplicationForSlot(a,n.timeFrom);return"pending_moderation"===(null==l?void 0:l.approvalStatus)?{kind:"mine-pending",myApp:l}:"approved"===(null==l?void 0:l.approvalStatus)?{kind:"mine-approved",myApp:l}:"rejected"===(null==l?void 0:l.approvalStatus)?{kind:"mine-rejected",myApp:l}:this.isSlotInPast(n,a)?{kind:"past"}:this.isStakeholderTypeAllowed?this.isProfileStatusAllowed?this.hasReachedSlotLimit?{kind:"limit-locked"}:(null==n?void 0:n.booked)?{kind:"full"}:{kind:"open"}:{kind:"not-eligible-status"}:{kind:"not-eligible"}}get liveApplicationsCount(){return this.myApplications.length}get hasReachedSlotLimit(){var n,a;return this.hasMaxSlotsPerStartup&&this.liveApplicationsCount>=(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.maxSlotsPerStartup)}withdrawApplication(n){var a=this;return(0,J.Z)(function*(){if(!(null==n?void 0:n.uuid)||"pending_moderation"!==n.approvalStatus)return;const{isConfirmed:l}=yield S().fire({icon:"warning",title:"Withdraw Application",text:"Are you sure you want to withdraw your application for this slot? You can apply again if the slot is still available.",showCancelButton:!0,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"Withdraw",cancelButtonText:"Cancel",reverseButtons:!0});if(l){if(String(n.uuid).startsWith("dev-mock-"))return void(a.myApplications=a.myApplications.filter(_=>_.uuid!==n.uuid));a.withdrawLoadingUuid=n.uuid,a.globalService.withdrawEventSlot(a.modalData.event.uuid,n.uuid).subscribe({next:()=>{a.withdrawLoadingUuid=null,a.myApplications=a.myApplications.filter(_=>_.uuid!==n.uuid)},error:()=>{a.withdrawLoadingUuid=null,a.toastService.showToast("Could not withdraw your application. Please try again.","error")}})}})()}get slots(){var n,a;return((null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.slots)||[]).filter(l=>!l.booked)}get hasAnyBookableSlot(){var n,a;return((null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.slots)||[]).some(l=>((null==l?void 0:l.slots)||[]).some(_=>!(null==_?void 0:_.booked)&&!(null==_?void 0:_.break)))}
1get hasAnySlotForSelectedDate(){var n;return((null===(n=this.selectedSlotObj)||void 0===n?void 0:n.slots)||[]).some(a=>!(null==a?void 0:a.break))}formatEnumStringForUI(n){return(0,t.xk)(n)}formatEventTypeLabel(n){return(0,t.Vh)(n)}get isAutomaticApprovalMode(){var n,a;return"automatic"===(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.approvalMode)}get hasApplicationCap(){var n,a;return null!=(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.applicationCap)}get hasMaxSlotsPerStartup(){var n,a;return null!=(null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.maxSlotsPerStartup)}get closedSlotReasonLabel(){return this.isAutomaticApprovalMode?"Already booked":"Full"}get closedSlotReasonTooltip(){return this.isAutomaticApprovalMode?"This slot was already booked by another startup.":"This slot is no longer accepting applications \u2014 it has either reached its application limit or already has a confirmed booking."}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}get mainSpeaker(){var n,a,l,_,D;const x=null===(a=null===(n=this.modalData)||void 0===n?void 0:n.event)||void 0===a?void 0:a.speakerDetails,T=null===(l=this.modalData.event)||void 0===l?void 0:l.speakerCompanyDetails;return x?{bio:null===(_=this.modalData)||void 0===_?void 0:_.event.speakerBio,name:null==x?void 0:x.name,email:"",mobile:null,imageKey:null,linkedin:null===(D=this.modalData)||void 0===D?void 0:D.event.speakerLinkedin,existingImage:(null==T?void 0:T.logo)||x.avatar,speaker_image:(null==T?void 0:T.logo)||x.avatar}:{}}handleMainSpeakerClick(){const n=this.profileService.getProfileLink(this.modalData.event.speakerCompanyDetails.uuid,this.modalData.event.speakerCompanyDetails.name,this.modalData.event.speakerDetails.accountType),a=this.router.serializeUrl(this.router.createUrlTree([n]));window.open(a,"_blank")}closeChild(){var n,a;this.selectedResponse={value:null===(a=null===(n=this.modalData.event)||void 0===n?void 0:n.checkIfResponseExists)||void 0===a?void 0:a.responseAction},this.showChildComponent=!1}bookingResponseUpdate(n){n&&(this.myApplications=[...this.myApplications,n]),this.selectedResponse={value:n.responseAction}}}return i.\u0275fac=function(n){return new(n||i)(e.Y36(m.gz),e.Y36(u.FF),e.Y36(O.D),e.Y36(j.H),e.Y36(m.F0),e.Y36(M.yh),e.Y36(V.LA),e.Y36(G.U),e.Y36(X.j))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-event-details-one-on-one-modal"]],inputs:{modalInst:"modalInst",modalData:"modalData",isRescheduling:"isRescheduling"},features:[e.TTD],decls:32,vars:12,consts:[[1,"modal-content"],[1,"modal-header","border-0","justify-content-end"],["data-bs-toggle","tooltip","title","","data-bs-dismiss","kt_modal_view_event_edit","data-bs-original-title","Hide Event",1,"btn","btn-icon","btn-sm","btn-color-gray-500","btn-active-icon-primary",3,"click"],[1,"svg-icon","svg-icon-1"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["opacity","0.5","x","6","y","17.3137","width","16","height","2","rx","1","transform","rotate(-45 6 17.3137)","fill","currentColor"],["x","7.41422","y","6","width","16","height","2","rx","1","transform","rotate(45 7.41422 6)","fill","currentColor"],[1,"modal-body","pt-0","pb-10","px-lg-17"],[1,"d-flex"],[1,"position-relative","me-5"],[1,"calendar","mb-0","pb-0"],[1,"mb-9"],["type","text",2,"display","none"],[1,"d-flex","align-items-center","mb-1"],["data-kt-calendar","event_name",1,"fs-3","fw-bolder","me-3"],["class","fs-6","data-kt-calendar","event_description",4,"ngIf"],["class","badge badge-secondary badge-sm me-3",4,"ngIf"],["class","badge badge-light-success badge-sm me-3",4,"ngIf"],["class","badge badge-light badge-sm me-3",4,"ngIf"],["class","text-muted fs-8 mt-2",4,"ngIf"],[1,"separator","separator-dashed","mt-2","mb-4"],["class","d-flex justify-content-between align-items-start row",4,"ngIf"],[1,"row"],[1,"col-md-12","col-12"],[3,"eventId","bookingData","eventQuestionList","attendingType","bookingResponseData","closeComponent",4,"ngIf"],["data-kt-calendar","event_description",1,"fs-6"],[1,"badge","badge-secondary","badge-sm","me-3"],[1,"badge","badge-light-success","badge-sm","me-3"],[1,"badge","badge-light","badge-sm","me-3"],[1,"text-muted","fs-8","mt-2"],[4,"ngIf"],[1,"d-flex","justify-content-between","align-items-start","row"],[1,"col-md-6","col-12"],[1,"d-flex","justify-content-between","align-items-center"],["class","d-flex align-items-start mb-2",4,"ngIf"],["class","d-flex align-items-start mt-3",4,"ngIf"],["class","w-100 mb-5 mt-4",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"resume-banner2","mt-8"],[1,"fw-bolder","me-2","mb-3","fs-3","text-black"],[1,"separator","separator-custom","separator-dashed","mt-2","mb-4"],["style","word-wrap: break-word;",3,"innerHTML",4,"ngIf"],[1,"d-flex","align-items-start","mb-2"],[1,"svg-icon","svg-icon-1","svg-icon-danger","me-5"],[1,"bi","bi-clock","fs-2","header-icons-font-size"],[1,"fs-6"],[1,"fw-bolder","me-2"],["data-kt-calendar","event_start_date"],[1,"text-muted","fs-8"],[1,"d-flex","align-items-start","mt-3"],[1,"bi","bi-link-45deg","fs-1","header-icons-font-size"],[1,"fs-6","d-flex","flex-column"],["data-kt-calendar","event_end_date"],[1,"text-black","d-block","text-truncate",2,"width","325px"],[1,"w-100","mb-5","mt-4"],[3,"settings"],[3,"href"],[1,"rounded","shadow-sm","w-100","event-image",3,"src"],[1,"mt-5"],[1,"fw-bolder","fs-4"],["class","col-6 cursor-pointer",3,"click",4,"ngIf"],["class","col-6",4,"ngFor","ngForOf"],[1,"col-6","cursor-pointer",3,"click"],[1,"d-flex","flex-column","align-items-center","justify-content-center","border","rounded","py-4"],[4,"ngIf","ngIfElse"],["nameAvatar",""],[1,"fw-bold","fs-6","mt-2","mb-1"],[1,"d-flex","align-items-center","gap-5"],["class","bi bi-info-square-fill square-fill-info-custom socialIcon fs-3 ms-2 ","container","body","placement","bottom",3,"ngbTooltip",4,"ngIf"],["target","_blank","class","wow fadeInLeft",3,"href",4,"ngIf"],["alt","Profile image",1,"bg-white","rounded-circle",3,"src"],["size","60",3,"name"],["container","body","placement","bottom",1,"bi","bi-info-square-fill","square-fill-info-custom","socialIcon","fs-3","ms-2",3,"ngbTooltip"],["target","_blank",1,"wow","fadeInLeft",3,"href"],[1,"bi","bi-linkedin","socialIcon"],[1,"col-6"],[2,"word-wrap","break-word",3,"innerHTML"],[1,"mb-5"],[1,"alert","alert-danger","p-4"],[1,"fs-2"],["class","fs-6 mt-1",4,"ngIf"],["class","text-muted fs-8 mt-1 d-flex align-items-center flex-wrap gap-2",4,"ngIf"],["class","mt-4 d-flex gap-2 flex-wrap",4,"ngIf"],["class","alert alert-secondary mt-4 mb-0","style","color: red;",4,"ngIf"],["class","alert mt-4 mb-0 py-3","role","alert",3,"ngClass",4,"ngIf"],["class","alert alert-warning mt-4 mb-0 py-3","role","alert",4,"ngIf"],["class","max-h-slots fs-5 mt-3",4,"ngIf"],[1,"fs-6","mt-1"],[1,"me-2"],[1,"text-muted","fs-8","mt-1","d-flex","align-items-center","flex-wrap","gap-2"],["type","button","class","btn btn-link btn-sm p-0 fs-8",3,"click",4,"ngIf"],["type","button",1,"btn","btn-link","btn-sm","p-0","fs-8",3,"click"],[1,"mt-4","d-flex","gap-2","flex-wrap"],["class","badge badge-pill roun
1ded-30 px-3 py-2 cursor-pointer fs-8 ",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"badge","badge-pill","rounded-30","px-3","py-2","cursor-pointer","fs-8",3,"ngClass","click"],[1,"alert","alert-secondary","mt-4","mb-0",2,"color","red"],["role","alert",1,"alert","mt-4","mb-0","py-3",3,"ngClass"],[1,"bi","bi-exclamation-triangle-fill","me-2"],["role","alert",1,"alert","alert-warning","mt-4","mb-0","py-3"],[1,"max-h-slots","fs-5","mt-3"],["noSlotsForSelectedDate",""],[4,"ngFor","ngForOf"],["class","alert custom-bg-break p-2 text-center mb-2","style","border: 1px dotted gray !important;",4,"ngIf"],[1,"alert","custom-bg-break","p-2","text-center","mb-2",2,"border","1px dotted gray !important"],[1,"text-center","w-100","mb-0"],["class","alert alert-success p-2 d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["class","alert alert-danger p-2 d-flex justify-content-between align-items-center mb-2",4,"ngIf"],["class","slot-note-box slot-note-box--info p-2 mb-2",4,"ngIf"],["class","slot-note-box p-2 mb-2",4,"ngIf"],["class","alert alert-secondary-dark p-2 d-flex justify-content-between align-items-center mb-2",4,"ngIf"],[1,"alert","alert-success","p-2","d-flex","justify-content-between","align-items-center","mb-2"],[1,"fw-bold"],[1,"badge","bg-success","text-white","fs-8"],[1,"bi","bi-check-circle-fill","me-1"],[1,"alert","alert-danger","p-2","d-flex","justify-content-between","align-items-center","mb-2"],[1,"badge","bg-danger","text-white","fs-8"],[1,"bi","bi-x-circle-fill","me-1"],[1,"slot-note-box","slot-note-box--info","p-2","mb-2"],[1,"d-flex","align-items-center","gap-2"],[1,"badge","badge-light-primary","fs-8"],["type","button",1,"btn","btn-sm","btn-outline-dark","py-1","px-3","fs-8",3,"disabled","click"],[1,"fs-8","text-muted","mt-1"],[1,"bi","bi-info-circle","me-1"],[1,"slot-note-box","p-2","mb-2"],[1,"text-muted"],[1,"badge","badge-light","fs-8"],[1,"bi","bi-clock-history","me-1"],["disabled","",1,"btn","badge","badge-pill","rounded-30","px-5","py-2","fs-7","badge-light"],[1,"bi","bi-lock-fill","me-1"],["class","text-muted fs-8",4,"ngIf"],[1,"bi","bi-people-fill","me-1"],[1,"alert","alert-secondary-dark","p-2","d-flex","justify-content-between","align-items-center","mb-2"],[1,"btn","badge","badge-pill","rounded-30","px-5","py-2","cursor-pointer","fs-7","badge-dark","book-btn",3,"disabled","click"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[1,"alert","alert-secondary","mb-0"],[3,"eventId","bookingData","eventQuestionList","attendingType","bookingResponseData","closeComponent"]],template:function(n,a){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.NdJ("click",function(){return a.closeModal()}),e.TgZ(3,"span",3),e.O4$(),e.TgZ(4,"svg",4),e._UZ(5,"rect",5)(6,"rect",6),e.qZA()()()(),e.kcU(),e.TgZ(7,"div",7)(8,"div",8)(9,"div",9)(10,"p",10),e._uU(11),e.TgZ(12,"em"),e._uU(13),e.qZA()()(),e.TgZ(14,"div",11),e._UZ(15,"input",12),e.TgZ(16,"div",13)(17,"span",14),e._uU(18),e.qZA()(),e.YNc(19,ae,3,4,"div",15),e.YNc(20,ie,4,8,"div",15),e.TgZ(21,"div"),e.YNc(22,le,2,1,"span",16),e.YNc(23,se,2,1,"span",16),e.YNc(24,re,2,0,"span",17),e.YNc(25,de,2,0,"span",18),e.qZA(),e.YNc(26,me,3,2,"div",19),e.qZA()(),e._UZ(27,"div",20),e.YNc(28,Be,17,8,"div",21),e.TgZ(29,"div",22)(30,"div",23),e.YNc(31,qe,1,4,"app-attend-information",24),e.qZA()()()()),2&n&&(e.xp6(11),e.hij("",null==a.modalData||null==a.modalData.event?null:a.modalData.event.dateFormatted," "),e.xp6(2),e.Oqu(null==a.modalData||null==a.modalData.event?null:a.modalData.event.month),e.xp6(5),e.Oqu(null==a.modalData||null==a.modalData.event?null:a.modalData.event.eventTitle),e.xp6(1),e.Q6J("ngIf",(null==a.modalData||null==a.modalData.event.dates?null:a.modalData.event.dates.length)<=1),e.xp6(1),e.Q6J("ngIf",(null==a.modalData||null==a.modalData.event||null==a.modalData.event.dates?null:a.modalData.event.dates.length)>1),e.xp6(2),e.Q6J("ngIf",null==a.modalData||null==a.modalData.event?null:a.modalData.event.eventType),e.xp6(1),e.Q6J("ngIf",null==a.modalData||null==a.modalData.event?null:a.modalData.event.deliveryMode),e.xp6(1),e.Q6J("ngIf",a.isAutomaticApprovalMode),e.xp6(1),e.Q6J("ngIf",(null==a.modalData||null==a.modalData.event?null:a.modalData.event.approvalMode)&&!a.isAutomaticApprovalMode),e.xp6(1),e.Q6J("ngIf",a.hasApplicationCap||a.hasMaxSlotsPerStartup),e.xp6(2),e.Q6J("ngIf",!a.showChildComponent),e.xp6(3),e.Q6J("ngIf",a.showChildComponent))},directives:[E.O5,ee.Nm,te.Ao,u._L,E.sg,E.mk,ne.f],pipes:[E.uU,oe.X],styles:['.one-on-one[_ngcontent-%COMP%]{width:1000px}.resume-banner2[_ngcontent-%COMP%]{border:1px dashed #333;border-radius:8px;padding:18px 20px}.separator-custom[_ngcontent-%COMP%]{border-color:#333!important}.max-h-slots[_ngcontent-%COMP%]{max-height:60vh;overflow:auto}.calendar[_ngcontent-%COMP%]{padding-top:5px;width:60px;background:#ededef;background:-moz-linear-gradient(top,#ededef,#ccc);font:700 25px/40px Lucida Sans Unicode,Arial Black,Arial,Helvetica,sans-serif;text-align:center;color:#000;text-shadow:#fff 0 1px 0;border-radius:3px;box-shadow:0 2px 2px #888}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{display:block;font:10px/15px Lucida Sans Unicode,Arial,Helvetica,sans-serif;color:#fff;text-shadow:#00365a 0 -1px 0;background:var(--color-theme);background:-moz-linear-gradient(top,#04599a,#00365a);border-bottom-right-radius:3px;border-bottom-left-radius:3px;border-top:1px solid #00365a}.calendar[_ngcontent-%COMP%]:before, .calendar[_ngcontent-%COMP%]:after{content:"";float:left;position:absolute;top:5px;width:8px;height:8px;background:#111;z-index:1;border-radius:10px;box-shadow:0 1px 1px #fff}.calendar[_ngcontent-%COMP%]:before{left:11px}.calendar[_ngcontent-%COMP%]:after{right:11px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:before, .calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{content:"";float:left;position:absolute;top:-5px;width:4px;height:14px;background:#dadada;background:-moz-linear-gradient(top,#f1f1f1,#aaa);z-index:2;border-radius:2px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:before{left:13px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{right:13px}.book-btn[_ngcontent-%COMP%]:hover{color:#fff!important}.custom-bg-break[_ngcontent-%COMP%]{background-color:#fff!important;border:1px dashed gray!important}.slot-note-box[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #e4e6ef;border-radius:8px}.slot-note-box--info[_ngcontent-%COMP%]{border-color:#b6d4f5}']}),i})();function Ke(i,c){if(1&i&&e._UZ(0,"app-event-details-modal",1),2&i){const n=e.oxw();e.Q6J("modalData",n.modalData)("isRescheduling",n.isRescheduling)("modalInst",n.modalInst)}}function We(i,c){if(1&i&&e._UZ(0,"app-event-details-one-on-one-modal",1),2&i){const n=e.oxw();e.Q6J("modalData",n.modalData)("isRescheduling",n.isRescheduling)("modalInst",n.modalInst)}}let $e=(()=>{class i{constructor(){this.isRescheduling=!1}ngOnInit(){}}return i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-event-details-modal-wrapper"]],inputs:{modalInst:"modalInst",modalData:"modalData",isResc
1heduling:"isRescheduling"},decls:2,vars:2,consts:[[3,"modalData","isRescheduling","modalInst",4,"ngIf"],[3,"modalData","isRescheduling","modalInst"]],template:function(n,a){1&n&&(e.YNc(0,Ke,1,3,"app-event-details-modal",0),e.YNc(1,We,1,3,"app-event-details-one-on-one-modal",0)),2&n&&(e.Q6J("ngIf","one_to_one"!==(null==a.modalData||null==a.modalData.event?null:a.modalData.event.eventType)),e.xp6(1),e.Q6J("ngIf","one_to_one"===(null==a.modalData||null==a.modalData.event?null:a.modalData.event.eventType)))},directives:[E.O5,Z.$,He],styles:[""]}),i})()},71369:(W,F,d)=>{d.d(F,{$:()=>Pe});var e=d(71670),E=d(14045),Z=d(56908),M=d(50253),k=d(98977),B=d(68951),Y=d(48851),v=d(9997),y=(d(79337),d(99400)),C=d(52657),t=d(3184),g=d(80966),S=d(56900),L=d(18038),h=d(43085),m=d(7205),u=d(2929),O=d(39777),j=d(36362),V=d(15312),G=d(76662),X=d(44808),ee=d(23132),te=d(4463);function ne(r,f){if(1&r&&(t.TgZ(0,"div",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&r){const o=t.oxw();t.xp6(1),t.hij("",t.xi3(2,1,null==o.modalData||null==o.modalData.event?null:o.modalData.event.date,"MMM d, y")," ")}}function oe(r,f){if(1&r&&(t.TgZ(0,"div",25),t._uU(1),t.ALo(2,"date"),t.ALo(3,"date"),t.qZA()),2&r){const o=t.oxw();t.xp6(1),t.AsE("",t.xi3(2,2,null==o.modalData.event||null==o.modalData.event.dates[0]?null:o.modalData.event.dates[0].date,"MMM d, y")," - ",t.xi3(3,5,null==o.modalData||null==o.modalData.event||null==o.modalData.event.dates[(null==o.modalData||null==o.modalData.event||null==o.modalData.event.dates?null:o.modalData.event.dates.length)-1]?null:o.modalData.event.dates[(null==o.modalData||null==o.modalData.event||null==o.modalData.event.dates?null:o.modalData.event.dates.length)-1].date,"MMM d, y")," ")}}function ae(r,f){if(1&r&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&r){const o=t.oxw();t.xp6(1),t.hij(" ",o.formatEventTypeLabel(null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventType)," ")}}function ie(r,f){if(1&r&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&r){const o=t.oxw();t.xp6(1),t.hij(" ",o.formatEnumStringForUI(null==o.modalData||null==o.modalData.event?null:o.modalData.event.deliveryMode)," ")}}function le(r,f){if(1&r&&(t.TgZ(0,"div",27)(1,"lightgallery",28)(2,"a",29),t.ALo(3,"imagekitUrlAppender"),t._UZ(4,"img",30),t.ALo(5,"imagekitUrlAppender"),t.qZA()()()),2&r){const o=t.oxw();t.xp6(1),t.Q6J("settings",o.settings),t.xp6(1),t.Q6J("href",t.lcZ(3,3,null==o.modalData.event?null:o.modalData.event.headerImage),t.LSH),t.xp6(2),t.Q6J("src",t.lcZ(5,5,o.modalData.event.headerImage),t.LSH)}}function se(r,f){if(1&r&&(t.TgZ(0,"div",48)(1,"span",33),t._UZ(2,"i",49),t.qZA(),t.TgZ(3,"div",50)(4,"span",36),t._uU(5,"External Meeting Url"),t.qZA(),t.TgZ(6,"div",51)(7,"a",52),t._uU(8),t.qZA()()()()),2&r){const o=t.oxw(2);t.xp6(7),t.Q6J("href",null==o.modalData?null:o.modalData.event.eventRegistrationUrl,t.LSH),t.xp6(1),t.hij(" ",null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventRegistrationUrl," ")}}function re(r,f){if(1&r&&(t.TgZ(0,"div",48)(1,"span",33),t._UZ(2,"i",49),t.qZA(),t.TgZ(3,"div",50)(4,"span",36),t._uU(5,"Venue"),t.qZA(),t.TgZ(6,"div",51)(7,"p",53),t._uU(8),t.qZA()()()()),2&r){const o=t.oxw(2);t.xp6(8),t.hij(" ",null==o.modalData||null==o.modalData.event?null:o.modalData.event.location," ")}}function de(r,f){if(1&r){const o=t.EpF();t.TgZ(0,"span",59),t.NdJ("click",function(){const b=t.CHM(o).$implicit;return t.oxw(4).selectResponse(b)}),t._uU(1),t.qZA()}if(2&r){const o=f.$implicit,s=t.oxw(4);t.Q6J("ngClass",o.value===(null==s.selectedResponse?null:s.selectedResponse.value)?"badge-primary":"badge-dark"),t.xp6(1),t.hij(" ",o.name,"")}}function ce(r,f){if(1&r&&(t.ynx(0),t.TgZ(1,"p",56),t._uU(2," Are you attending? "),t.qZA(),t.TgZ(3,"div",57),t.YNc(4,de,2,2,"span",58),t.qZA(),t.BQk()),2&r){const o=t.oxw(3);t.xp6(4),t.Q6J("ngForOf",null==o.globalSettings?null:o.globalSettings.platformEventResponseActions)}}function _e(r,f){1&r&&(t.ynx(0),t.TgZ(1,"p",60),t._uU(2," This event is not open to your account type. "),t.qZA(),t.BQk())}function me(r,f){1&r&&(t.ynx(0),t.TgZ(1,"p",60),t._uU(2," This event is only open to accounts with a specific profile status. "),t.qZA(),t.BQk())}function pe(r,f){1&r&&(t.ynx(0),t.TgZ(1,"p",61),t._uU(2," You are attending this event "),t.qZA(),t.BQk())}function ve(r,f){1&r&&(t.ynx(0),t.TgZ(1,"p",60),t._uU(2," You have opted not to attend this event. "),t.qZA(),t.BQk())}function ue(r,f){if(1&r&&(t.TgZ(0,"div",62),t._UZ(1,"add-to-calendar-button",63),t.qZA()),2&r){const o=t.oxw(3);t.xp6(1),t.uIk("name",null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventTitle)("description",null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventDescription)("location",null==o.modalData||null==o.modalData.event?null:o.modalData.event.rsvpUrl)("startTime",o.formatTo24Hour(null==o.modalData||null==o.modalData.event?null:o.modalData.event.timeFrom))("endTime",o.formatTo24Hour(null==o.modalData||null==o.modalData.event?null:o.modalData.event.timeTo))("startDate",o.modalData.event.date)}}function ge(r,f){if(1&r&&(t.TgZ(0,"div",54),t.YNc(1,ce,5,1,"ng-container",47),t.YNc(2,_e,3,0,"ng-container",47),t.YNc(3,me,3,0,"ng-container",47),t.YNc(4,pe,3,0,"ng-container",47),t.YNc(5,ve,3,0,"ng-container",47),t.YNc(6,ue,2,6,"div",55),t.qZA()),2&r){const o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isStakeholderTypeAllowed&&o.isProfileStatusAllowed&&(!o.existingAttendence||"tentative"===(null==o.existingAttendence?null:o.existingAttendence.responseAction))),t.xp6(1),t.Q6J("ngIf",!o.isStakeholderTypeAllowed&&!o.existingAttendence),t.xp6(1),t.Q6J("ngIf",o.isStakeholderTypeAllowed&&!o.isProfileStatusAllowed&&!o.existingAttendence),t.xp6(1),t.Q6J("ngIf","attending"===(null==o.existingAttendence?null:o.existingAttendence.responseAction)),t.xp6(1),t.Q6J("ngIf","declined"===(null==o.existingAttendence?null:o.existingAttendence.responseAction)),t.xp6(1),t.Q6J("ngIf",(null==o.modalData||null==o.modalData.event?null:o.modalData.event.date)&&"attending"===(null==o.selectedResponse?null:o.selectedResponse.value))}}function fe(r,f){1&r&&(t.TgZ(0,"div",64)(1,"div",65),t._uU(2," The event has already passed or has been closed for registrations. "),t.qZA()())}function he(r,f){if(1&r&&(t.ynx(0),t._UZ(1,"img",78),t.ALo(2,"imagekitUrlAppender"),t.BQk()),2&r){const o=t.oxw(4);t.xp6(1),t.Q6J("src",t.lcZ(2,1,null==o.mainSpeaker?null:o.mainSpeaker.speaker_image)+"?tr=w-60,h-60",t.LSH)}}function xe(r,f){if(1&r&&t._UZ(0,"ngx-avatars",79),2&r){const o=t.oxw(4);t.Q6J("name",null==o.mainSpeaker?null:o.mainSpeaker.name)}
1}function De(r,f){if(1&r&&t._UZ(0,"span",80),2&r){const o=t.oxw(4);t.Q6J("ngbTooltip",o.mainSpeaker.bio)}}function be(r,f){if(1&r&&(t.TgZ(0,"a",81),t._UZ(1,"i",82),t.qZA()),2&r){const o=t.oxw(4);t.Q6J("href",null==o.mainSpeaker?null:o.mainSpeaker.linkedin,t.LSH)}}function Te(r,f){if(1&r){const o=t.EpF();t.TgZ(0,"div",70),t.NdJ("click",function(){return t.CHM(o),t.oxw(3).handleMainSpeakerClick()}),t.TgZ(1,"div",71),t.YNc(2,he,3,3,"ng-container",72),t.YNc(3,xe,1,1,"ng-template",null,73,t.W1O),t.TgZ(5,"p",74),t._uU(6),t.qZA(),t.TgZ(7,"div",75),t.YNc(8,De,1,1,"span",76),t.YNc(9,be,2,1,"a",77),t.qZA()()()}if(2&r){const o=t.MAs(4),s=t.oxw(3);t.xp6(2),t.Q6J("ngIf",null==s.mainSpeaker?null:s.mainSpeaker.speaker_image)("ngIfElse",o),t.xp6(4),t.hij(" ",s.mainSpeaker.name," "),t.xp6(2),t.Q6J("ngIf",null==s.mainSpeaker?null:s.mainSpeaker.bio),t.xp6(1),t.Q6J("ngIf",null==s.mainSpeaker?null:s.mainSpeaker.linkedin)}}function Oe(r,f){if(1&r&&(t.ynx(0),t._UZ(1,"img",78),t.ALo(2,"imagekitUrlAppender"),t.BQk()),2&r){const o=t.oxw().$implicit;t.xp6(1),t.Q6J("src",t.lcZ(2,1,null==o?null:o.speaker_image)+"?tr=w-60,h-60",t.LSH)}}function Me(r,f){if(1&r&&t._UZ(0,"ngx-avatars",79),2&r){const o=t.oxw().$implicit;t.Q6J("name",null==o?null:o.name)}}function Ae(r,f){if(1&r&&(t.TgZ(0,"div",75),t._UZ(1,"span",80),t.TgZ(2,"a",81),t._UZ(3,"i",82),t.qZA()()),2&r){const o=t.oxw().$implicit;t.xp6(1),t.Q6J("ngbTooltip",o.bio),t.xp6(1),t.Q6J("href",null==o?null:o.linkedin,t.LSH)}}function Ze(r,f){if(1&r&&(t.TgZ(0,"div",83)(1,"div",71),t.YNc(2,Oe,3,3,"ng-container",72),t.YNc(3,Me,1,1,"ng-template",null,73,t.W1O),t.TgZ(5,"p",74),t._uU(6),t.qZA(),t.YNc(7,Ae,4,2,"div",84),t.qZA()()),2&r){const o=f.$implicit,s=t.MAs(4);t.xp6(2),t.Q6J("ngIf",null==o?null:o.speaker_image)("ngIfElse",s),t.xp6(4),t.hij(" ",o.name," "),t.xp6(1),t.Q6J("ngIf",null==o?null:o.linkedin)}}function ye(r,f){if(1&r&&(t.TgZ(0,"div",66)(1,"p",67),t._uU(2,"Speakers"),t.qZA(),t.TgZ(3,"div",8),t.YNc(4,Te,10,5,"div",68),t.YNc(5,Ze,8,4,"div",69),t.qZA()()),2&r){const o=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==o.modalData.event?null:o.modalData.event.speakerDetails),t.xp6(1),t.Q6J("ngForOf",o.modalData.event.speakers)}}function Ee(r,f){if(1&r&&t._UZ(0,"div",85),2&r){const o=t.oxw(2);t.Q6J("innerHTML",null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventDescription,t.oJD)}}function ke(r,f){if(1&r&&(t.TgZ(0,"div",89),t._uU(1),t.TgZ(2,"span"),t._uU(3),t.ALo(4,"twentyFourHoursToAmPm"),t.ALo(5,"twentyFourHoursToAmPm"),t.qZA(),t._uU(6,") "),t._UZ(7,"br"),t.qZA()),2&r){const o=f.$implicit;t.xp6(1),t.hij(" ",o.title," ("),t.xp6(2),t.AsE(" ",t.lcZ(4,3,o.start_time)," - ",t.lcZ(5,5,o.end_time)," ")}}function we(r,f){if(1&r&&(t.TgZ(0,"div",87)(1,"strong"),t._uU(2),t.ALo(3,"date"),t.qZA(),t._UZ(4,"br"),t.YNc(5,ke,8,7,"div",88),t.qZA()),2&r){const o=t.oxw().$implicit;t.xp6(2),t.hij("",t.xi3(3,2,o.date,"MMM d, y"),":"),t.xp6(3),t.Q6J("ngForOf",o.breaks)}}function Ce(r,f){if(1&r&&(t.TgZ(0,"div",62),t.YNc(1,we,6,5,"div",86),t.qZA()),2&r){const o=f.$implicit;t.xp6(1),t.Q6J("ngIf",null==o.breaks?null:o.breaks.length)}}function Se(r,f){1&r&&(t.TgZ(0,"div"),t._uU(1," No Notes found "),t.qZA())}function Ie(r,f){if(1&r&&(t.TgZ(0,"div",8)(1,"div",9)(2,"div",31)(3,"div")(4,"div",32)(5,"span",33),t._UZ(6,"i",34),t.qZA(),t.TgZ(7,"div",35)(8,"span",36),t._uU(9,"Time"),t.qZA(),t.TgZ(10,"div",37),t._uU(11),t.qZA()()(),t.YNc(12,se,9,2,"div",38),t.YNc(13,re,9,1,"div",38),t.qZA()(),t.YNc(14,ge,7,6,"div",39),t.YNc(15,fe,3,0,"div",40),t.YNc(16,ye,6,2,"div",41),t.qZA(),t.TgZ(17,"div",9)(18,"div",42)(19,"span",43),t._uU(20,"Description"),t.qZA(),t._UZ(21,"div",44),t.YNc(22,Ee,1,1,"div",45),t.YNc(23,Ce,2,1,"div",46),t.YNc(24,Se,2,0,"div",47),t.qZA()()()),2&r){const o=t.oxw();t.xp6(11),t.AsE("",null==o.modalData||null==o.modalData.event?null:o.modalData.event.timeFrom," - ",null==o.modalData||null==o.modalData.event?null:o.modalData.event.timeTo,""),t.xp6(1),t.Q6J("ngIf",(null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventRegistrationUrl)&&"online"==(null==o.modalData||null==o.modalData.event?null:o.modalData.event.deliveryMode)),t.xp6(1),t.Q6J("ngIf",(null==o.modalData||null==o.modalData.event?null:o.modalData.event.location)&&"in_person"==(null==o.modalData||null==o.modalData.event?null:o.modalData.event.deliveryMode)),t.xp6(1),t.Q6J("ngIf",!o.isInPast),t.xp6(1),t.Q6J("ngIf",o.isInPast),t.xp6(1),t.Q6J("ngIf",null==o.modalData||null==o.modalData.event||null==o.modalData.event.speakers?null:o.modalData.event.speakers.length),t.xp6(6),t.Q6J("ngIf",null==o.modalData||null==o.modalData.event?null:o.modalData.event.eventDescription),t.xp6(1),t.Q6J("ngForOf",null==o.modalData||null==o.modalData.event?null:o.modalData.event.dates),t.xp6(1),t.Q6J("ngIf",!(null!=o.modalData&&null!=o.modalData.event&&o.modalData.event.eventDescription))}}
1function Ue(r,f){if(1&r){const o=t.EpF();t.TgZ(0,"app-attend-information",90),t.NdJ("closeComponent",function(){return t.CHM(o),t.oxw().closeChild()})("modalDataChange",function(p){return t.CHM(o),t.oxw().updateModalData(p)})("bookingResponseData",function(p){return t.CHM(o),t.oxw().updateExistingAttendence(p)}),t.qZA()}if(2&r){const o=t.oxw();t.Q6J("eventId",o.eventUUID)("eventQuestionList",o.eventQuestionsList)("existingAttendence",o.existingAttendenceForChild)("attendingType",o.attendingType)}}let Pe=(()=>{class r{constructor(o,s,p,b,N,I,U,P,K){this.route=o,this.modal=s,this.meetingService=p,this.router=b,this.store=N,this.uiLoader=I,this.globalService=U,this.profileService=P,this.toastService=K,this.settings={counter:!1,plugins:[C.Z]},this.isRescheduling=!1,this.showChildComponent=!1,this.attendingType="not_one_to_one",this.destroyed$=new M.x}ngOnInit(){var o,s,p,b,N;this.eventUUID=this.modalData.event.uuid,(null===(p=null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.checkIfResponseExists)||void 0===p?void 0:p.responseAction)&&(this.selectedResponse={value:null===(N=null===(b=this.modalData.event)||void 0===b?void 0:b.checkIfResponseExists)||void 0===N?void 0:N.responseAction}),this.profileDetails$=this.store.pipe((0,E.Ys)(Y.$y)),this.profileDetails$.pipe((0,k.x)(),(0,B.R)(this.destroyed$)).subscribe(I=>{I&&(this.profileDetails=I)}),this.store.pipe((0,E.Ys)(v.Tv)).pipe((0,k.x)(),(0,B.R)(this.destroyed$)).subscribe(I=>{I&&(this.globalSettings=I)}),this.globalService.getEventQuestions(this.eventUUID).subscribe(I=>{this.eventQuestionsList=I})}ngOnChanges(o){}get isInPast(){var o,s;return Z(null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.date).isBefore(Z(),"date")}get isStakeholderTypeAllowed(){var o,s,p;const b=null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.allowedUserTypesToBook;return!Array.isArray(b)||0===b.length||b.includes(null===(p=this.profileDetails)||void 0===p?void 0:p.accountType)}get isProfileStatusAllowed(){var o,s;const p=null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.allowedUsersProfileStatuses;return!Array.isArray(p)||0===p.length||p.includes(localStorage.getItem("profile-approval-status"))}get meetingUrl(){const o=this.modalData.event;if("job-interview"===o.meetingType){const p=this.router.serializeUrl(this.router.createUrlTree(["/job-interview/",o.uuid]));return window.location.origin+p}const s=this.router.serializeUrl(this.router.createUrlTree(["/meetings/meeting/"+o.uuid]));return this.meetingService.getMeetingUrl(s)}meetingDetail(o){if(this.closeModal(),"job-interview"===o.meetingType){const p=this.router.serializeUrl(this.router.createUrlTree(["/job-interview/",o.uuid]));return void window.open(p,"_blank")}const s=this.router.serializeUrl(this.router.createUrlTree(["/meetings/meeting/"+o.uuid]));window.open(this.meetingService.getMeetingUrl(s),"_blank")}closeModal(){this.modalInst.close({})}tConvert(o,s){return o}get eventDate(){return new Date(this.modalData.event.date)}formatTo24Hour(o){return Z(o,"h:mm A").format("HH:mm")}updateModalData(o){var s,p,b;this.updatedModalData=null===(s=o.event)||void 0===s?void 0:s.checkIfResponseExists,this.selectedResponse=(null===(p=o.event)||void 0===p?void 0:p.checkIfResponseExists)?{value:null===(b=this.updatedModalData)||void 0===b?void 0:b.responseAction}:{value:this.bookingResponse.responseAction}}updateExistingAttendence(o){this.bookingResponse=o}get existingAttendence(){var o,s;return this.updatedModalData||this.bookingResponse||(null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.checkIfResponseExists)}selectResponse(o){var s=this;return(0,e.Z)(function*(){var p,b,N;const I=s.modalData.event;s.selectedResponse=o;const U=s.bookingResponse||I.checkIfResponseExists;if("attending"==o.value&&s.eventQuestionsList.length)s.showChildComponent="attending"==o.value,s.existingAttendenceForChild={existingAttendence:U,value:o.value,event:I,modalData:s.modalData};else try{if(null==U?void 0:U.uuid){const P=yield s.globalService.updateWebinarEventBooking(I.uuid,null==U?void 0:U.uuid,o.value).toProm
1ise();P&&(s.bookingResponse=P),(null===(b=null===(p=s.modalData)||void 0===p?void 0:p.event)||void 0===b?void 0:b.checkIfResponseExists)?s.modalData.event.checkIfResponseExists.responseAction=o.value:U.responseAction=o.value}else s.bookingResponse=yield s.globalService.bookEventSlot(I.uuid,null,null,o.value,null,null,"You have successfully registered for the event").toPromise()}catch(P){s.selectedResponse=(null==U?void 0:U.responseAction)?{value:U.responseAction}:void 0,401!==(null==P?void 0:P.status)&&403!==(null==P?void 0:P.status)&&s.toastService.showToast((null===(N=null==P?void 0:P.error)||void 0===N?void 0:N.message)||"Unable to update your response. Please try again.","error")}})()}get speakerProfileLink(){var o,s,p,b,N,I,U,P,K,$,z;return(null===(s=null===(o=this.modalData)||void 0===o?void 0:o.event)||void 0===s?void 0:s.speakerCompanyDetails)?this.profileService.getProfileLink(null===(N=null===(b=null===(p=this.modalData)||void 0===p?void 0:p.event)||void 0===b?void 0:b.speakerCompanyDetails)||void 0===N?void 0:N.uuid,null===(P=null===(U=null===(I=this.modalData)||void 0===I?void 0:I.event)||void 0===U?void 0:U.speakerCompanyDetails)||void 0===P?void 0:P.name,null===(z=null===($=null===(K=this.modalData)||void 0===K?void 0:K.event)||void 0===$?void 0:$.speakerDetails)||void 0===z?void 0:z.accountType):""}formatEnumStringForUI(o){return(0,y.xk)(o)}formatEventTypeLabel(o){return(0,y.Vh)(o)}get mainSpeaker(){var o,s;const p=null===(o=this.modalData.event)||void 0===o?void 0:o.speakerDetails,b=null===(s=this.modalData.event)||void 0===s?void 0:s.speakerCompanyDetails;return p?{bio:this.modalData.event.speakerBio,name:null==p?void 0:p.name,email:"",mobile:null,imageKey:null,linkedin:this.modalData.event.speakerLinkedin,existingImage:(null==b?void 0:b.logo)||p.avatar,speaker_image:(null==b?void 0:b.logo)||p.avatar}:{}}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}handleMainSpeakerClick(){const o=this.profileService.getProfileLink(this.modalData.event.speakerCompanyDetails.uuid,this.modalData.event.speakerCompanyDetails.name,this.modalData.event.speakerDetails.accountType);this.router.navigateByUrl(o),this.closeModal()}closeChild(){var o,s,p;this.selectedResponse={value:(null===(s=null===(o=this.modalData.event)||void 0===o?void 0:o.checkIfResponseExists)||void 0===s?void 0:s.responseAction)||(null===(p=this.bookingResponse)||void 0===p?void 0:p.responseAction)},this.showChildComponent=!1}}return r.\u0275fac=function(o){return new(o||r)(t.Y36(g.gz),t.Y36(S.FF),t.Y36(L.D),t.Y36(g.F0),t.Y36(E.yh),t.Y36(h.LA),t.Y36(m.U),t.Y36(u.H),t.Y36(O.j))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-event-details-modal"]],inputs:{modalInst:"modalInst",modalData:"modalData",isRescheduling:"isRescheduling"},features:[t.TTD],decls:34,vars:10,consts:[[1,"modal-content"],[1,"modal-header","border-0","justify-content-end"],["data-bs-toggle","tooltip","title","","data-bs-dismiss","kt_modal_view_event_edit","data-bs-original-title","Hide Event",1,"btn","btn-icon","btn-sm","btn-color-gray-500","btn-active-icon-primary",3,"click"],[1,"svg-icon","svg-icon-1"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","none"],["opacity","0.5","x","6","y","17.3137","width","16","height","2","rx","1","transform","rotate(-45 6 17.3137)","fill","currentColor"],["x","7.41422","y","6","width","16","height","2","rx","1","transform","rotate(45 7.41422 6)","fill","currentColor"],[1,"modal-body","pt-0","pb-10","px-lg-17"],[1,"row"],[1,"col-md-6","col-12"],[1,"d-flex"],[1,"position-relative","me-5"],[1,"calendar","mb-0","pb-0"],[1,"mb-9"],["type","text",2,"display","none"],[1,"d-flex","align-items-center","mb-2"],["data-kt-calendar","event_name",1,"fs-3","fw-bolder","me-3"],[1,"d-flex","align-items-center"],["class","fs-4 no-wrap","data-kt-calendar","event_description",4,"ngIf"],["class","badge badge-secondary badge-sm me-3",4,"ngIf"],["class","w-100 mb-5 ",4,"ngIf"],[1,"separator","separator-dashed","mt-2","mb-4"],["class","row ",4,"ngIf"],[1,"col-md-12","col-12"],[3,"eventId","eventQuestionList","existingAttendence","attendingType","closeComponent","modalDataChange","bookingResponseData",4,"ngIf"],["data-kt-calendar","event_description",1,"fs-4","no-wrap"],[1,"badge","badge-secondary","badge-sm","me-3"],[1,"w-100","mb-5"],[3,"settings"],[3,"href"],[1,"rounded","shadow-sm","w-100","event-image",3,"src"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-flex","align-items-start","mb-2"],[1,"svg-icon","svg-icon-1","svg-icon-danger","me-5"],[1,"bi","bi-clock","fs-2","header-icons-font-size"],[1,"fs-6"],[1,"fw-bolder","me-2"],["data-kt-calendar","event_start_date"],["class","d-flex align-items-start mt-3",4,"ngIf"],["class","d-flex justify-content-between align-items-center pt-6 flex-column alert alert-danger mt-5",4,"ngIf"],["class","my-5",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"resume-banner2","mt-8"],[1,"fw-bolder","me-2","mb-3","fs-3","text-black"],[1,"separator","separator-custom","separator-dashed","mt-2","mb-4"],["style","word-wrap: break-word;",3,"innerHTML",4,"ngIf"],["class","mt-4",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"d-flex","align-items-start","mt-3"],[1,"bi","bi-link-45deg","fs-1","header-icons-font-size"],[1,"fs-6","d-flex","flex-column"],["data-kt-calendar","event_end_date"],["target","_blank",1,"text-primary","d-block","text-truncate",2,"width","325px",3,"href"],[1,"text-black","d-block","text-truncate",2,"width","325px"],[1,"d-flex","justify-content-between","align-items-center","pt-6","flex-column","alert","alert-danger","mt-5"],["class","mt-4",4,"ngIf"],[1,"fs-3","text-black","fw-bold"],[1,""],["class","badge badge-pill roun
1ded-30 px-5 py-3 cursor-pointer me-3 fs-6 ",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"badge","badge-pill","rounded-30","px-5","py-3","cursor-pointer","me-3","fs-6",3,"ngClass","click"],[1,"fs-3","text-black"],[1,"fs-3","text-black","mb-0"],[1,"mt-4"],["timeZone","Asia/Calcutta","location","World Wide Web","options","'Apple','Google','iCal','Yahoo','Microsoft365','MicrosoftTeams','Outlook.com'","trigger","click","label","Add to calender",2,"width","100%"],[1,"my-5"],[1,"alert","alert-danger","p-4"],[1,"mt-5"],[1,"fw-bolder","fs-4"],["class","col-6 cursor-pointer",3,"click",4,"ngIf"],["class","col-6",4,"ngFor","ngForOf"],[1,"col-6","cursor-pointer",3,"click"],[1,"d-flex","flex-column","align-items-center","justify-content-center","border","rounded","py-4"],[4,"ngIf","ngIfElse"],["nameAvatar",""],[1,"fw-bold","fs-6","mt-2","mb-1"],[1,"d-flex","align-items-center","gap-5"],["class","bi bi-info-square-fill square-fill-info-custom socialIcon fs-3 ms-2 ","container","body","placement","bottom",3,"ngbTooltip",4,"ngIf"],["target","_blank","class","wow fadeInLeft",3,"href",4,"ngIf"],["alt","Profile image",1,"bg-white","rounded-circle",3,"src"],["size","60",3,"name"],["container","body","placement","bottom",1,"bi","bi-info-square-fill","square-fill-info-custom","socialIcon","fs-3","ms-2",3,"ngbTooltip"],["target","_blank",1,"wow","fadeInLeft",3,"href"],[1,"bi","bi-linkedin","socialIcon"],[1,"col-6"],["class","d-flex align-items-center gap-5",4,"ngIf"],[2,"word-wrap","break-word",3,"innerHTML"],["class","mb-0",4,"ngIf"],[1,"mb-0"],["class","ms-4",4,"ngFor","ngForOf"],[1,"ms-4"],[3,"eventId","eventQuestionList","existingAttendence","attendingType","closeComponent","modalDataChange","bookingResponseData"]],template:function(o,s){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t.NdJ("click",function(){return s.closeModal()}),t.TgZ(3,"span",3),t.O4$(),t.TgZ(4,"svg",4),t._UZ(5,"rect",5)(6,"rect",6),t.qZA()()()(),t.kcU(),t.TgZ(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11)(12,"p",12),t._uU(13),t.TgZ(14,"em"),t._uU(15),t.qZA()()(),t.TgZ(16,"div",13),t._UZ(17,"input",14),t.TgZ(18,"div",15)(19,"span",16),t._uU(20),t.qZA()(),t.TgZ(21,"div",17),t.YNc(22,ne,3,4,"div",18),t.YNc(23,oe,4,8,"div",18),t.qZA(),t.TgZ(24,"div"),t.YNc(25,ae,2,1,"span",19),t.YNc(26,ie,2,1,"span",19),t.qZA()()()(),t.TgZ(27,"div",9),t.YNc(28,le,6,7,"div",20),t.qZA()(),t._UZ(29,"div",21),t.YNc(30,Ie,25,10,"div",22),t.TgZ(31,"div",8)(32,"div",23),t.YNc(33,Ue,1,4,"app-attend-information",24),t.qZA()()()()),2&o&&(t.xp6(13),t.hij("",null==s.modalData||null==s.modalData.event?null:s.modalData.event.dateFormatted," "),t.xp6(2),t.Oqu(null==s.modalData||null==s.modalData.event?null:s.modalData.event.month),t.xp6(5),t.Oqu(null==s.modalData||null==s.modalData.event?null:s.modalData.event.eventTitle),t.xp6(2),t.Q6J("ngIf",(null==s.modalData||null==s.modalData.event||null==s.modalData.event.dates?null:s.modalData.event.dates.length)<=1),t.xp6(1),t.Q6J("ngIf",(null==s.modalData||null==s.modalData.event.dates?null:s.modalData.event.dates.length)>1),t.xp6(2),t.Q6J("ngIf",null==s.modalData||null==s.modalData.event?null:s.modalData.event.eventType),t.xp6(1),t.Q6J("ngIf",null==s.modalData||null==s.modalData.event?null:s.modalData.event.deliveryMode),t.xp6(2),t.Q6J("ngIf",(null==s.modalData.event?null:s.modalData.event.headerImage)&&s.globalSettings),t.xp6(2),t.Q6J("ngIf",!s.showChildComponent),t.xp6(3),t.Q6J("ngIf",s.showChildComponent))},directives:[j.O5,V.Nm,j.sg,j.mk,G.Ao,S._L,X.f],pipes:[j.uU,ee.X,te.Z],styles:['.resume-banner2[_ngcontent-%COMP%]{border:1px dashed #333;border-radius:8px;padding:18px 20px}.separator-custom[_ngcontent-%COMP%]{border-color:#333!important}.calendar[_ngcontent-%COMP%]{padding-top:5px;width:60px;background:#ededef;background:-moz-linear-gradient(top,#ededef,#ccc);font:700 25px/40px Lucida Sans Unicode,Arial Black,Arial,Helvetica,sans-serif;text-align:center;color:#000;text-shadow:#fff 0 1px 0;border-radius:3px;box-shadow:0 2px 2px #888}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]{display:block;font:10px/15px Lucida Sans Unicode,Arial,Helvetica,sans-serif;color:#fff;text-shadow:#00365a 0 -1px 0;background:var(--color-theme);background:-moz-linear-gradient(top,#04599a,#00365a);border-bottom-right-radius:3px;border-bottom-left-radius:3px;border-top:1px solid #00365a}.calendar[_ngcontent-%COMP%]:before, .calendar[_ngcontent-%COMP%]:after{content:"";float:left;position:absolute;top:5px;width:8px;height:8px;background:#111;z-index:1;border-radius:10px;box-shadow:0 1px 1px #fff}.calendar[_ngcontent-%COMP%]:before{left:11px}.calendar[_ngcontent-%COMP%]:after{right:11px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:before, .calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{content:"";float:left;position:absolute;top:-5px;width:4px;height:14px;background:#dadada;background:-moz-linear-gradient(top,#f1f1f1,#aaa);z-index:2;border-radius:2px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:before{left:13px}.calendar[_ngcontent-%COMP%] em[_ngcontent-%COMP%]:after{right:13px}']}
1),r})()},37190:(W,F,d)=>{d.d(F,{Z:()=>Y});var e=d(18325);function E(v){var A=new Date(Date.UTC(v.getFullYear(),v.getMonth(),v.getDate(),v.getHours(),v.getMinutes(),v.getSeconds(),v.getMilliseconds()));return A.setUTCFullYear(v.getFullYear()),v.getTime()-A.getTime()}var Z=d(69377),J=d(31170),M=864e5;function k(v,A){(0,J.Z)(2,arguments);var y=(0,Z.Z)(v),C=(0,Z.Z)(A),t=y.getTime()-E(y),g=C.getTime()-E(C);return Math.round((t-g)/M)}function B(v,A){var y=v.getFullYear()-A.getFullYear()||v.getMonth()-A.getMonth()||v.getDate()-A.getDate()||v.getHours()-A.getHours()||v.getMinutes()-A.getMinutes()||v.getSeconds()-A.getSeconds()||v.getMilliseconds()-A.getMilliseconds();return y<0?-1:y>0?1:y}function Y(v,A){(0,J.Z)(2,arguments);var y=(0,e.Z)(v),C=(0,e.Z)(A),t=B(y,C),g=Math.abs(k(y,C));y.setDate(y.getDate()-t*g);var S=Number(B(y,C)===-t),L=t*(g-S);return 0===L?0:L}},69377:(W,F,d)=>{d.d(F,{Z:()=>Z});var e=d(18325),E=d(31170);function Z(J){(0,E.Z)(1,arguments);var M=(0,e.Z)(J);return M.setHours(0,0,0,0),M}}}]); 2//# sourceMappingURL=default-src_app_core_service_mentorship_service_ts-src_app_modules_calender_helpers_ts-src_ap-6b5822.f68ba71782f2425a.js.map
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.