1"use strict";(self.webpackChunkjammcard_web_app=self.webpackChunkjammcard_web_app||[]).push([[329],{50329:($,L,r)=>{r.d(L,{o:()=>gt});var g=r(45887),u=r(19590),S=r(45435),M=r(15257),O=r(43190),R=r(68307),P=r(75319),D=r(25917),B=r(79765),F=r(88229),Z=r(88002),y=r(71816),h=r(97650),c=r(96863),T=r(56630),U=r(76324),t=r(37716),k=r(94417),s=r(34014),b=r(95987),_=r(23065),x=r(14251),Y=r(26677),C=r(38583);const A=function(a){return{selected:a}};function W(a,d){if(1&a){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.onClick(o.rates[0])}),t._uU(2),t.qZA(),t.TgZ(3,"div",5),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.onClick(o.rates[1])}),t._uU(4),t.qZA(),t.BQk()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(6,A,e.selectedRate.id===e.rates[0].id)),t.xp6(1),t.AsE(" ",e.rates[0].rateSetting.timeDurationAmount," ",e.shortTimeUnitDisplay[e.rates[0].rateSetting.timeDurationUnit]," "),t.xp6(1),t.Q6J("ngClass",t.VKq(8,A,e.selectedRate.id===e.rates[1].id)),t.xp6(1),t.AsE(" ",e.rates[1].rateSetting.timeDurationAmount," ",e.shortTimeUnitDisplay[e.rates[1].rateSetting.timeDurationUnit]," ")}}function V(a,d){if(1&a){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.onClick(o.rates[0])}),t._uU(2),t.qZA(),t.TgZ(3,"div",6),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.onClick(o.rates[1])}),t._uU(4),t.qZA(),t.TgZ(5,"div",5),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return o.onClick(o.rates[2])}),t._uU(6),t.qZA(),t.BQk()}if(2&a){const e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(9,A,e.selectedRate.id===e.rates[0].id)),t.xp6(1),t.AsE(" ",e.rates[0].rateSetting.timeDurationAmount," ",e.shortTimeUnitDisplay[e.rates[0].rateSetting.timeDurationUnit]," "),t.xp6(1),t.Q6J("ngClass",t.VKq(11,A,e.selectedRate.id===e.rates[1].id)),t.xp6(1),t.AsE(" ",e.rates[1].rateSetting.timeDurationAmount," ",e.shortTimeUnitDisplay[e.rates[1].rateSetting.timeDurationUnit]," "),t.xp6(1),t.Q6J("ngClass",t.VKq(13,A,e.selectedRate.id===e.rates[2].id)),t.xp6(1),t.AsE(" ",e.rates[2].rateSetting.timeDurationAmount," ",e.shortTimeUnitDisplay[e.rates[2].rateSetting.timeDurationUnit]," ")}}function J(a,d){if(1&a&&(t.TgZ(0,"div",2),t.YNc(1,W,5,10,"ng-container",3),t.YNc(2,V,7,15,"ng-container",3),t.qZA()),2&a){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",2===(null==e.rates?null:e.rates.length)),t.xp6(1),t.Q6J("ngIf",3===(null==e.rates?null:e.rates.length))}}let j=(()=>{class a{constructor(e){this.infoService=e,this.rateSelected=new t.vpe,this.shortTimeUnitDisplay={[y.Ox.MINUTES]:"min.",[y.Ox.HOURS]:"h",[y.Ox.DAYS]:"d"},this.sessionDurationLongDisplay={[y.Ox.MINUTES]:{30:"Half an hour session",60:"One hour session"}}}ngOnInit(){var e;if((null===(e=this.rates)||void 0===e?void 0:e.length)>1&&!this.rescheduleRate){this.displayAsPill=!0;const i=this.rates.findIndex(o=>o.id===this.preselectRateId);this.selectedRate=Object.assign({},-1!==i?this.rates[i]:this.rates[0])}else this.displayAsPill=!1,this.selectedRate=Object.assign({},this.rescheduleRate?this.rescheduleRate:this.rates[0]);this.rateSelected.emit(this.selectedRate)}onClick(e){this.selectedRate.id!==e.id&&(this.infoService.trackEvent(`${c.BG.WEB_UI}.button.click`,{element:"rate-select",rate:e.rateSetting.timeDurationAmount}),this.selectedRate=Object.assign({},e),this.rateSelected.emit(this.selectedRate))}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(s.CM))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-rate-select-pill"]],inputs:{rates:"rates",preselectRateId:"preselectRateId",rescheduleRate:"rescheduleRate"},outputs:{rateSelected:"rateSelected"},decls:2,vars:1,consts:[[1,"rate-select-pill__container"],["class","rate-select-pill__pill-display flex",4,"ngIf"],[1,"rate-select-pill__pill-display","flex"],[4,"ngIf"],[1,"rate-select-pill__left-end",3,"ngClass","click"],[1,"rate-select-pill__right-end",3,"ngClass","click"],[1,"rate-select-pill__middle",3,"ngClass","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,J,3,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.displayAsPill&&!i.rescheduleRate))},directives:[C.O5,C.mk],styles:[".rate-select-pill__container[_ngcontent-%COMP%]{font-size:16px;line-height:26px;font-family:Lato-Regular,sans-serif}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__left-end[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-right:none;border-radius:18px 0 0 18px;min-width:82px;padding:3px 14px 5px;color:#28272780;cursor:pointer}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__middle[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-radius:0;min-width:82px;padding:3px 14px 5px;color:#28272780;cursor:pointer}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__right-end[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-left:none;border-radius:0 18px 18px 0;min-width:82px;padding:3px 14px 5px;color:#28272780;cursor:pointer}.rate-select-pill__container[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border-color:#f2e046;background-color:#f2e046;color:#282727}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__single-rate[_ngcontent-%COMP%]{color:#282727}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__pill-display[_ngcontent-%COMP%]{margin-bottom:18px}.rate-select-pill__container[_ngcontent-%COMP%] .rate-select-pill__non-pill-display[_ngcontent-%COMP%]{margin-bottom:18px}"]}),a})();var Q=r(15419);let H=(()=>{class a{constructor(e){this.store=e,this.subscription$=new P.w}ngOnInit(){}changeDate(e){this.store.dispatch(h.s.calendarDaySelected({startTime:e.startDateTime,endTime:e.endDateTime}))}changeMonth(e){const i=this.getStartAndEndTimestampForMonth(e),o=this.getMonthName(e),n=(0,c.bk)(new Date(i.startDateTime));(0,c.Vf)(e)||this.store.dispatch(h.s.calendarMonthSelected({startTime:i.startDateTime,days:n,month:o}))}getStartAndEndTimestampForDay(e){return{startDateTime:e.setHours(0,0,0,0),endDateTime:e.setHours(23,59,59,999)}}getStartAndEndTimestampForMonth(e){const i=new Date(e.getFullYear(),e.getMonth(),1).setHours(0,0,0,0),o=(new Date).setHours(0,0,0,0);return{startDateTime:i>o?i:o,endDateTime:11===e.getMonth()?new Date(e.getFullYear()+1,0,1).setHours(0,0,0,0):new Date(e.getFullYear(),e.getMonth()+1,1).setHours(0,0,0,0)}}getMonthName(e){return e.getMonth()}ngOnDestroy(){}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(_.yh))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-availability-datepicker"]],inputs:{enabled$:"enabled$",availableDates$:"availableDates$",preselect:"preselect"},decls:1,vars:6,consts:[[1,"availability-datepicker",3,"isOpen","isAvailabilityDatepicker","disablePastMonths","availableDates$","enabled$","preselect","dateChange","monthChange"]],template:function(e,i){1&e&&(t.TgZ(0,"app-datepicker",0),t.NdJ("dateChange",function(n){return i.changeDate(n)})("monthChange",function(n){return i.changeMonth(n)}),t.qZA()),2&e&&t.Q6J("isOpen",!0)("isAvailabilityDatepicker",!0)("disablePastMonths",!0)("availableDates$",i.availableDates$)("enabled$",i.enabled$)("preselect",i.preselect)}
1,directives:[Q.Q],styles:[".availability-datepicker[_ngcontent-%COMP%] .datepicker{border:none;border-radius:0}"]}),a})();var K=r(9112),G=r(39761),E=r(14557),q=r(29006),z=r(45351),X=r(1687),w=r(5469),tt=r(89831),N=r(46593);function et(a,d){if(1&a){const e=t.EpF();t.TgZ(0,"button",4),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onClick()}),t._uU(1),t.qZA()}if(2&a){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.slot.startDateTime," ")}}function it(a,d){if(1&a){const e=t.EpF();t.TgZ(0,"div",5),t.NdJ("clickOutside",function(){return t.CHM(e),t.oxw(2).onClickOutside()}),t.TgZ(1,"button",6),t._uU(2),t.qZA(),t.TgZ(3,"app-button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onConfirm()}),t.ALo(4,"translate"),t.qZA(),t.qZA()}if(2&a){const e=t.oxw(2);t.xp6(2),t.hij(" ",e.slot.startDateTime," "),t.xp6(1),t.s9C("buttonLabel",t.lcZ(4,3,"FAST_BOOKING.SELECT")),t.Q6J("rounded",!0)}}function ot(a,d){if(1&a&&(t.TgZ(0,"div",1),t.YNc(1,et,2,1,"button",2),t.YNc(2,it,5,5,"div",3),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.isClicked),t.xp6(1),t.Q6J("ngIf",e.isClicked)}}let nt=(()=>{class a{constructor(e,i){this.infoService=e,this.translate=i,this.isPreselected=!1,this.confirmed=new t.vpe,this.isClicked=!1,this.noSlotsMessage=""}ngOnInit(){this.translate.get("AVAILABILITY").subscribe(e=>{this.noSlotsMessage=e.NO_AVAILABLE_SLOTS}),this.isClicked=this.isPreselected}onClick(){this.isClicked=!this.isClicked,this.infoService.trackEvent(`${c.BG.WEB_UI}.button.click`,{element:"availability-time-select",startTime:this.slot.startDateTime,endTime:this.slot.endDateTime})}onClickOutside(){this.isClicked&&(this.isClicked=!1)}onConfirm(){this.infoService.trackEvent(`${c.BG.WEB_UI}.button.click`,{element:"availability-time-select-confirm",startTime:this.slot.startDateTime,endTime:this.slot.endDateTime}),this.confirmed.emit(this.slot)}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(s.CM),t.Y36(w.sK))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-availability-slot"]],inputs:{slot:"slot",isPreselected:"isPreselected"},outputs:{confirmed:"confirmed"},decls:1,vars:1,consts:[["class","availability-slot",4,"ngIf"],[1,"availability-slot"],["class","availability-slot__unclicked",3,"click",4,"ngIf"],["class","availability-slot--clicked","appClickOutside","",3,"clickOutside",4,"ngIf"],[1,"availability-slot__unclicked",3,"click"],["appClickOutside","",1,"availability-slot--clicked",3,"clickOutside"],["disabled","",1,"availability-slot__label"],[1,"availability-slot__confirm",3,"buttonLabel","rounded","click"]],template:function(e,i){1&e&&t.YNc(0,ot,3,2,"div",0),2&e&&t.Q6J("ngIf",i.slot)},directives:[C.O5,tt._,N.r],pipes:[w.X$],styles:["@font-face{font-family:Lato-Regular;src:url(/assets/fonts/Lato/Lato-Regular.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Light;src:url(/assets/fonts/Lato/Lato-Light.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Italic;src:url(/assets/fonts/Lato/Lato-RegularItalic.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Bold;src:url(/assets/fonts/Lato/Lato-Bold.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-Regular;src:url(/assets/fonts/Montserrat/Montserrat-Regular.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-SemiBold;src:url(/assets/fonts/Montserrat/Montserrat-SemiBold.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-Medium;src:url(/assets/fonts/Montserrat/Montserrat-Medium.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:SFUIText-Regular;font-weight:400;src:url(/assets/fonts/SF-UI-Text-Regular.otf);font-display:swap;font-style:normal}.availability-button[_ngcontent-%COMP%], .availability-slot__confirm[_ngcontent-%COMP%], .availability-slot__unclicked[_ngcontent-%COMP%], .availability-button--black[_ngcontent-%COMP%], .availability-slot__label[_ngcontent-%COMP%]{height:50px;background:white;margin-top:5px;border:1px solid #e5e5e5;border-radius:6px;font-family:Lato-Regular,sans-serif;font-size:16px;line-height:22px;color:#000}.availability-button--black[_ngcontent-%COMP%], .availability-slot__label[_ngcontent-%COMP%]{width:50%;background:black!important;color:#fff!important}.availability-slot[_ngcontent-%COMP%]{width:100%}.availability-slot--clicked[_ngcontent-%COMP%]{display:flex}.availability-slot__unclicked[_ngcontent-%COMP%]{width:100%}.availability-slot__unclicked[_ngcontent-%COMP%]:focus{outline:none}.availability-slot__confirm[_ngcontent-%COMP%]{border:none;margin-top:5px;margin-left:8px;width:50%}"]}
1),a})();function at(a,d){if(1&a){const e=t.EpF();t.TgZ(0,"app-availability-slot",6),t.NdJ("confirmed",function(){const n=t.CHM(e).$implicit;return t.oxw().slotConfirmed(n)}),t.qZA()}if(2&a){const e=d.$implicit,i=t.oxw();t.Q6J("slot",e)("isPreselected",e.id===i.preselectStartSlotId)}}function st(a,d){if(1&a&&(t.TgZ(0,"span",7),t._uU(1),t.qZA()),2&a){const e=t.oxw();t.xp6(1),t.AsE(" ",e.profileName," ",e.errorMsgNoSlotsAvailable,"")}}const lt=function(a){return{"not-available":a}};let rt=(()=>{class a{constructor(e,i,o,n,l,p,v){this.bookingService=e,this.modalService=i,this.route=o,this.store=n,this.translate=l,this.toastService=p,this.localStorage=v,this.availableSlots=[],this.availableSlotsDisplay=[],this.currentSlots=[],this.errorMsgNoSlotsAvailable="",this.subscription$=new P.w}ngOnInit(){this.translate.get(["AVAILABILITY","TOAST_MESSAGE"]).subscribe(e=>{this.errorMsgNoSlotsAvailable=e.AVAILABILITY.NO_AVAILABLE_SLOTS,this.errorMsgSelectedTimeSlotNotAvailable=e.TOAST_MESSAGE.THE_TIME_SLOT_YOU_SELECTED_IS_NO_LONGER_AVAILABLE}),this.subscription$.add((0,K.aj)([this.slots.pipe((0,G.O)([])),this.rate]).subscribe(([e,i])=>{const o=this.formatRate(i),n=(new Date).valueOf();this.currentRate=o,this.currentSlots=e,this.availableSlots=this.calculateAvailableSlots(e,o),this.availableSlotsDisplay=this.availableSlots.filter(l=>+l.startDateTime>n).map(l=>Object.assign({},Object.assign(Object.assign({},l),{startDateTime:(0,E.yG)(+l.startDateTime),endDateTime:(0,E.yG)(+l.endDateTime)})))})),this.preselectSlotIds&&this.subscription$.add(this.slots.pipe((0,M.q)(1)).subscribe(e=>{this.preselectStartSlotId=this.preselectSlotIds[0],-1===e.findIndex(o=>o.id===this.preselectStartSlotId)?this.toastService.showMessage(this.errorMsgSelectedTimeSlotNotAvailable):this.store.dispatch(h.s.availabilitySlotsInitiateLock({availabilitySlotsIds:this.preselectSlotIds,openedFromWebView:this.openedFromWebView}))}))}formatRate(e=60){return e/c.Xj-1}calculateAvailableSlots(e,i){var o,n;let l=[];for(let p=0;p<=e.length;p++)if(p+i<=e.length-1){let v=e[p];for(let f=p;f<=p+i;f++){if(f===p+i){l.push(v),p+=i;break}if((null===(o=e[f])||void 0===o?void 0:o.endDateTime)!==(null===(n=e[f+1])||void 0===n?void 0:n.startDateTime)){p=f;break}}}return l}slotConfirmed(e){const i=this.currentSlots.findIndex(l=>l.id===e.id),n=this.currentSlots.slice(i,i+this.currentRate+1).map(l=>l.id);if(this.isRescheduleRoute){const l=this.route.snapshot.queryParams.bookingId,p=this.currentSlots.find(m=>m.id===e.id),v=this.currentSlots.find(m=>m.id===n[n.length-1]),f={newStartTime:p.startDateTime};this.bookingStardDate=p.startDateTime,this.bookingEndDate=v.endDateTime,this.localStorage.get(c.M3)||(this.store.select(X.KZ).subscribe(m=>{var I;this.assignedId=null===(I=null==m?void 0:m.booking)||void 0===I?void 0:I.assignedId}),this.assignedId||this.bookingService.getBookingById(l).subscribe(m=>this.assignedId=m.body.assignedId,m=>{this.toastService.showMessage("Something went wrong")})),this.bookingService.rescheduleMentorshipBooking(l,f).subscribe(m=>{202===m.status&&(this.openSuccessModal(),this.store.dispatch(z.j.loadUpcomingBookings()))},m=>{this.toastService.showMessage(403===m.status&&"bookingAlreadyStarted"===m.error.generalError.message?"Booking has already started, you can't reschedule it":403===m.status&&"slotsAreNotFree"===m.error.generalError.message?"Slots are not free":"Something went wrong")})}else this.store.dispatch(h.s.availabilitySlotsInitiateLock({availabilitySlotsIds:n,openedFromWebView:this.openedFromWebView}))}openSuccessModal(){this.modalService.dismissAll(c._$.FAST_BOOKING_CHECKOUT),this.modalInstance=this.modalService.open(q.I,{windowClass:"modal-window",backdrop:"static"}),this.modalInstance.componentInstance.fromParent={modalData:{title:"Your session is booked!",description:"A link to the video chat has been sent to your email and is also in your booking tab. Make sure to be on time and ready for your Mentor!",buttonLabel:"DONE",backgroundImageClass:"success",redirectTo:(0,E.s9)("/bookings?tab=upcoming",this.openedFromWebView,!0),calendar:!0,assignedId:this.assignedId,bookingStardDate:this.bookingStardDate,bookingEndDate:this.bookingEndDate,openedFromWebView:this.openedFromWebView}}}ngOnDestroy(){this.subscription$.unsubscribe()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(s.q$),t.Y36(k.FF),t.Y36(b.gz),t.Y36(_.yh),t.Y36(w.sK),t.Y36(s.kl),t.Y36(s.n2))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-availability-slot-list"]],inputs:{slots:"slots",rate:"rate",preselectSlotIds:"preselectSlotIds",profileName:"profileName",isRescheduleRoute:"isRescheduleRoute",openedFromWebView:"openedFromWebView"},decls:10,vars:11,consts:[[1,"availability-slot-list","flex","column"],[1,"availability-slot-list__title",3,"ngClass"],[1,"availability-slot-list__timezone-info"],[1,"availability-slot-list__slots"],[3,"slot","isPreselected","confirmed",4,"ngFor","ngForOf"],["class","availability-slot-list__empty",4,"ngIf"],[3,"slot","isPreselected","confirmed"],[1,"availability-slot-list__empty"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"p",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",3),t.YNc(8,at,1,2,"app-availability-slot",4),t.YNc(9,st,2,2,"span",5),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngClass",t.VKq(9,lt,0===i.availableSlots.length)),t.xp6(1),t.hij(" ",t.lcZ(3,5,"FAST_BOOKING.SELECT_STARTING_TIME")," "),t.xp6(3),t.Oqu(t.lcZ(6,7,"FAST_BOOKING.TIME_ZONE_INFO")),t.xp6(3),t.Q6J("ngForOf",i.availableSlotsDisplay),t.xp6(1),t.Q6J("ngIf",0===i.availableSlotsDisplay.length))},directives:[C.mk,C.sg,C.O5,nt],pipes:[w.X$],styles:["@font-face{font-family:Lato-Regular;src:url(/assets/fonts/Lato/Lato-Regular.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Light;src:url(/assets/fonts/Lato/Lato-Light.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Italic;
1src:url(/assets/fonts/Lato/Lato-RegularItalic.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Lato-Bold;src:url(/assets/fonts/Lato/Lato-Bold.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-Regular;src:url(/assets/fonts/Montserrat/Montserrat-Regular.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-SemiBold;src:url(/assets/fonts/Montserrat/Montserrat-SemiBold.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:Montserrat-Medium;src:url(/assets/fonts/Montserrat/Montserrat-Medium.ttf);font-display:swap;font-weight:normal;font-style:normal}@font-face{font-family:SFUIText-Regular;font-weight:400;src:url(/assets/fonts/SF-UI-Text-Regular.otf);font-display:swap;font-style:normal}.availability-slot-list[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%}@media (min-width: 1024px){.availability-slot-list[_ngcontent-%COMP%]{align-items:flex-start;justify-content:flex-start;height:100%}}.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__slots[_ngcontent-%COMP%]{width:100%;max-width:350px}@media (min-width: 1024px){.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__slots[_ngcontent-%COMP%]{overflow:scroll;overflow-x:hidden;overflow-y:overlay;padding-right:22px}}.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__title[_ngcontent-%COMP%]{margin-bottom:4px;font-size:16px;line-height:22px;font-family:Lato-Regular,sans-serif;text-align:center;font-style:normal;font-weight:normal}@media (min-width: 1024px){.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__title[_ngcontent-%COMP%]{text-align:left}}.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__timezone-info[_ngcontent-%COMP%]{margin-bottom:15px;font-size:14px;line-height:17px;font-family:Lato-Regular,sans-serif;text-align:center;font-style:normal;font-weight:normal;color:#aeaeae}@media (min-width: 1024px){.availability-slot-list[_ngcontent-%COMP%] .availability-slot-list__timezone-info[_ngcontent-%COMP%]{padding-right:22px;text-align:left}}.availability-slot-list[_ngcontent-%COMP%] .not-available[_ngcontent-%COMP%]{color:#28272780}.availability-slot-list__empty[_ngcontent-%COMP%]{display:block;text-align:left;font-family:Lato-Regular,sans-serif;font-style:normal;font-weight:normal;font-size:14px;line-height:20px;color:#282727;white-space:pre-line}.availability-slot-list__slots[_ngcontent-%COMP%]::-webkit-scrollbar{width:22px}.availability-slot-list__slots[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin:35px 0}@media (min-width: 425px){.availability-slot-list__slots[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin:7px 0}}.availability-slot-list__slots[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:solid 9px white;border-radius:12px;background:#dcdcdc}"]}),a})();function ct(a,d){if(1&a&&(t.TgZ(0,"p",16),t._uU(1),t.qZA()),2&a){const e=t.oxw();
1t.xp6(1),t.AsE(" $",null==e.selectedRate?null:e.selectedRate.amount,"\xa0/\xa0",null==e.selectedRate||null==e.selectedRate.rateSetting?null:e.selectedRate.rateSetting.timeDurationAmount,"\xa0min ")}}const dt=function(a){return{"fast-booking-availability-join-waitlist__title--subscribed":a}};let pt=(()=>{class a{constructor(e,i,o,n,l,p,v,f,m,I,ht,mt){this.actions$=e,this.activeModal=i,this.authenticationService=o,this.modalService=n,this.infoService=l,this.localStorageService=p,this.profileService=v,this.route=f,this.router=m,this.store=I,this.tempStorageService=ht,this.toastService=mt,this.hostClass="host-fill-height",this.availabilityDays$=new B.xQ,this.availabilitySlots$=new B.xQ,this.calendarEnabled$=new F.t(2),this.preselect={rate:null,calendar:null,slots:null},this.selectedDay=null,this.selectedRate=null,this.selectedRateDurationAmount$=new F.t(1),this.subscription$=new P.w}ngOnInit(){var e,i;this.subscription$.add(this.route.queryParams.subscribe(o=>{if(null==o?void 0:o.prepopulate){const n=this.localStorageService.get(c.Zs);this.preselect.rate=(null==n?void 0:n.rate)||null,this.preselect.calendar=(null==n?void 0:n.day)||null,this.preselect.slots=(null==n?void 0:n.slotIds)||null}})),this.navigateBackUrl=this.fromParent.navigateBackUrl,this.proTruncatedProfile=this.fromParent.proTruncatedProfile,this.serviceForBooking=this.fromParent.serviceForBooking,this.rescheduleRate=this.fromParent.rescheduleRate,this.openedFromWebView=this.fromParent.openedFromWebView,this.isFromReschedule=!!this.router.url.includes("reschedule"),this.isViewerSubscribed=null===(i=null===(e=this.proTruncatedProfile)||void 0===e?void 0:e.servicesProvision[0])||void 0===i?void 0:i.isViewerSubscribed,this.subscription$.add(this.actions$.pipe((0,g.l4)(h.s.calendarMonthSelected),(0,R.b)(o=>{var n;this.store.dispatch(h.s.loadAvailableDays({startTime:o.startTime,days:o.days,month:o.month,rate:this.selectedRate,serviceId:null===(n=this.serviceForBooking)||void 0===n?void 0:n.id}))}),(0,O.w)((o,n)=>(1===n&&(this.preselect={rate:null,calendar:null,slots:null}),this.store.select((0,T.Mx)(this.selectedRate,o.month)).pipe((0,S.h)(l=>!(0,u.Z)(l)),(0,M.q)(1))))).subscribe(o=>{o=o.map((n,l)=>Object.assign(Object.assign({},n),{originalIndex:new Date(o[l].startDateTime).getDate()})).filter(n=>n.available),this.availabilityDays$.next(o)})),this.subscription$.add(this.actions$.pipe((0,g.l4)(h.s.calendarDaySelected)).subscribe(o=>{var n;const l=(null===(n=this.rescheduleRate)||void 0===n?void 0:n.serviceProvisionId)||this.serviceForBooking.id;this.selectedDay={startTime:o.startTime,endTime:o.endTime},this.store.dispatch(h.s.loadAvailableSlots({startTime:o.startTime,endTime:o.endTime,serviceProvisionId:l}))})),this.subscription$.add(this.actions$.pipe((0,g.l4)(h.s.availableSlotsLoaded),(0,O.w)(o=>this.store.select(T.eD).pipe((0,S.h)(n=>!(0,u.Z)(n)),(0,Z.U)(n=>{var l;return(null===(l=this.rescheduleRate)||void 0===l?void 0:l.serviceProvisionOwner)?n.filter(p=>"FREE"===p.status):n}),(0,M.q)(1)))).subscribe(o=>{this.availabilitySlots$.next(o)})),this.subscription$.add(this.actions$.pipe((0,g.l4)(h.s.availabilitySlotsInitiateLock)).subscribe(o=>{this.authenticationService.isLoggedIn()?this.store.dispatch(h.s.lockAvailabilitySlots({availabilitySlotsIds:o.availabilitySlotsIds,backUrl:(0,c.s9)(this.navigateBackUrl,o.openedFromWebView),rateId:this.selectedRate.id,day:this.selectedDay,openedFromWebView:o.openedFromWebView})):this.openRegisterModal(o.availabilitySlotsIds)})),this.subscription$.add(this.store.select(T.SM).pipe((0,S.h)(o=>!(0,u.Z)(o))).subscribe(o=>{}))}closeModal(){this.activeModal.close()}changeDuration(e){this.selectedRate=e,this.selectedRateDurationAmount$.next(parseInt(this.selectedRate.rateSetting.timeDurationAmount.toString())),this.calendarEnabled$.next(!1),this.calendarEnabled$.next(!0)}onNotifyMeClicked(){this.infoService.trackEvent(`${c.BG.WEB_UI}.button.click`,{element:"waitlist-button",profileId:this.proTruncatedProfile.profileId,mentorName:this.proTruncatedProfile.name});const e=`${this.currentUrlWithoutQueryParams()}/notify-me`;this.router.navigateByUrl(e)}currentUrlWithoutQueryParams(){let e=this.router.parseUrl(this.router.routerState.snapshot.url);return e.queryParams={},e.toString().replace("/availability","").replace("/book-mentorship","")}openRegisterModal(e){this.tempStorageService.storeData({serviceType:y.UW.MENTORSHIP,rate:this.selectedRate,day:this.selectedDay,slotIds:e}).subscribe(i=>{var o,n;const l=(null===(o=i.body)||void 0===o?void 0:o.uuid)||null;this.activeModal.dismiss(c._$.SIGN_UP_FROM_BOOK);const p=this.modalService.open(U.o,{windowClass:"modal-window",backdrop:"static"}),v={modalImage:(null===(n=this.proTruncatedProfile.coverImage)||void 0===n?void 0:n.url)||c.oI.NO_COVER,proName:this.proTruncatedProfile.name,book:!0,storageUUID:l,serviceType:y.UW.MENTORSHIP};p.componentInstance.fromParent={modalType:c.G6.SIGNUP,authControllerModalData:v}})}ngOnDestroy(){this.subscription$.unsubscribe()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(g.eX),t.Y36(k.Kz),t.Y36(s.$h),t.Y36(k.FF),t.Y36(s.CM),t.Y36(s.n2),t.Y36(s.H3),t.Y36(b.gz),t.Y36(b.F0),t.Y36(_.yh),t.Y36(s.M_),t.Y36(s.kl))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-fast-booking-availability-modal"]],hostVars:2,hostBindings:function(e,i){2&e&&t.Tol(i.hostClass)},decls:24,vars:32,consts:[[1,"display",3,"proTruncatedProfile","noButtons","closeModal"],[1,"fast-booking-availability__container"],["src","../../../assets/images/icons/close-black.png","alt","Close icon",1,"auth-modal__close","book-modal-fast-checkout__close","hide",3,"click"],[1,"fast-booking-availability__components"],[1,"flex","column"],[1,"fast-booking-availability__title"],[1,"fast-booking-availability__rate-and-calendar"],[3,"rates","preselectRateId","rescheduleRate","rateSelected"],["class","fast-booking-availability__selected-price",4,"ngIf"],[3,"enabled$","availableDates$","preselect"],[1,"fast-booking-availability__slots-container"],[1,"fast-booking-availability_slots-wrapper"],[3,"slots","rate","preselectSlotIds","isResc
1heduleRoute","profileName","openedFromWebView"],[1,"fast-booking-availability_join-waitlist",3,"hidden"],[1,"fast-booking-availability-join-waitlist__title",3,"ngClass"],["triggers","hover","placement","bottom",1,"fast-booking-availability__notify-button",3,"buttonLabel","rounded","inverted","buttonGrayDisabled","clicked"],[1,"fast-booking-availability__selected-price"]],template:function(e,i){1&e&&(t.TgZ(0,"app-mentorship-modal"),t.TgZ(1,"app-seller-profile-card",0),t.NdJ("closeModal",function(){return i.closeModal()}),t.qZA(),t.TgZ(2,"div",1),t.TgZ(3,"img",2),t.NdJ("click",function(){return i.closeModal()}),t.qZA(),t.TgZ(4,"div",3),t.TgZ(5,"div",4),t.TgZ(6,"h3",5),t._uU(7),t.ALo(8,"translate"),t.TgZ(9,"span"),t._uU(10),t.qZA(),t.qZA(),t.TgZ(11,"div",6),t.TgZ(12,"app-rate-select-pill",7),t.NdJ("rateSelected",function(n){return i.changeDuration(n)}),t.qZA(),t.YNc(13,ct,2,2,"p",8),t._UZ(14,"app-availability-datepicker",9),t.qZA(),t.qZA(),t.TgZ(15,"div",10),t.TgZ(16,"div",11),t._UZ(17,"app-availability-slot-list",12),t.qZA(),t.TgZ(18,"div",13),t.TgZ(19,"p",14),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"app-button",15),t.NdJ("clicked",function(){return i.onNotifyMeClicked()}),t.ALo(23,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Q6J("proTruncatedProfile",i.proTruncatedProfile)("noButtons",!0),t.xp6(6),t.hij(" ",t.lcZ(8,24,"FAST_BOOKING.WHEN_DO_YOU_WANT_TO_BOOK_A_SESSION")," "),t.xp6(3),t.hij("",i.proTruncatedProfile.name,"?"),t.xp6(2),t.Q6J("rates",null==i.serviceForBooking?null:i.serviceForBooking.rates)("preselectRateId",null==i.preselect||null==i.preselect.rate?null:i.preselect.rate.id)("rescheduleRate",i.rescheduleRate),t.xp6(1),t.Q6J("ngIf",null==i.selectedRate?null:i.selectedRate.amount),t.xp6(1),t.Q6J("enabled$",i.calendarEnabled$)("availableDates$",i.availabilityDays$)("preselect",null==i.preselect?null:i.preselect.calendar),t.xp6(3),t.Q6J("slots",i.availabilitySlots$)("rate",i.selectedRateDurationAmount$)("preselectSlotIds",null==i.preselect?null:i.preselect.slots)("isRescheduleRoute",!!i.rescheduleRate)("profileName",null==i.proTruncatedProfile?null:i.proTruncatedProfile.name)("openedFromWebView",i.openedFromWebView),t.xp6(1),t.Q6J("hidden",i.isFromRe
1schedule),t.xp6(1),t.Q6J("ngClass",t.VKq(30,dt,i.isViewerSubscribed)),t.xp6(1),t.hij(" ",t.lcZ(21,26,"FAST_BOOKING.JOIN_WAITLIST")," "),t.xp6(2),t.s9C("buttonLabel",t.lcZ(23,28,"HOME.JOIN_WAITLIST")),t.Q6J("rounded",!0)("inverted",!0)("buttonGrayDisabled",i.isViewerSubscribed))},directives:[x.C,Y.t,j,C.O5,H,rt,C.mk,N.r],pipes:[w.X$],styles:[".display[_ngcontent-%COMP%]{display:none}@media (min-width: 425px){.display[_ngcontent-%COMP%]{display:block}}.hide[_ngcontent-%COMP%]{display:block}@media (min-width: 425px){.hide[_ngcontent-%COMP%]{display:none}}.book-modal-fast-checkout__close[_ngcontent-%COMP%]{top:11px;right:11px}.fast-booking-availability__container[_ngcontent-%COMP%]{overflow:scroll;overflow-x:hidden;overflow-y:overlay;padding:48px 25px 25px}@media (min-width: 425px){.fast-booking-availability__container[_ngcontent-%COMP%]{padding:25px;height:639px}}@media (min-width: 1024px){.fast-booking-availability__container[_ngcontent-%COMP%]{overflow:hidden;overflow-x:hidden;overflow-y:hidden;padding:50px 50px 50px 73px}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__title[_ngcontent-%COMP%]{margin-bottom:20px;font-size:20px;line-height:22px;font-family:Lato-Regular,sans-serif;font-weight:700;text-align:center}@media (min-width: 1024px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__title[_ngcontent-%COMP%]{margin-right:20px;text-align:left}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%]{display:flex;flex-direction:column;grid-gap:58px;gap:58px}@media (min-width: 1024px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;height:100%}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__rate-and-calendar[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin-bottom:25px}@media (min-width: 1024px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__rate-and-calendar[_ngcontent-%COMP%]{align-items:flex-start;margin-bottom:0}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__selected-price[_ngcontent-%COMP%]{margin-bottom:37px;font-size:14px;line-height:17px;font-family:Montserrat-Regular,sans-serif;font-weight:600;text-align:center;letter-spacing:1.4px;text-transform:uppercase;color:#282727}@media (min-width: 425px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__selected-price[_ngcontent-%COMP%]{display:none}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__slots-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;align-items:center;grid-gap:25px;gap:25px;width:100%}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability_slots-wrapper[_ngcontent-%COMP%]{overflow:auto;width:100%}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability_join-waitlist[_ngcontent-%COMP%]{max-width:350px}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__notify-button[_ngcontent-%COMP%] button{min-height:40px;height:40px}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability-join-waitlist__title[_ngcontent-%COMP%]{margin-bottom:8px;font-family:Lato-Regular,sans-serif;font-weight:normal;font-size:14px;line-height:18px;text-align:center;color:#282727}@media (min-width: 1024px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability-join-waitlist__title[_ngcontent-%COMP%]{text-align:left}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability-join-waitlist__title--subscribed[_ngcontent-%COMP%]{color:#aeaeae}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none;-ms-overflow-style:none;scrollbar-width:none}@media (min-width: 425px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__container[_ngcontent-%COMP%]::-webkit-scrollbar{width:22px}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__container[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin:35px 0}@media (min-width: 425px){.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__container[_ngcontent-%COMP%]::-webkit-scrollbar-track{margin:7px 0}}.fast-booking-availability__container[_ngcontent-%COMP%] .fast-booking-availability__components[_ngcontent-%COMP%] .fast-booking-availability__container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:solid 9px white;border-radius:12px;background:#dcdcdc}"]}),a})(),gt=(()=>{class a{constructor(e,i,o,n,l,p,v,f,m){this.actions$=e,this.activatedRoute=i,this.modalService=o,this.profileService=n,this.router=l,this.store=p,this.translateService=v,this.toastService=f,this.localStorageService=m,this.subscription$=new P.w}ngOnInit(){this.subscription$.add(this.activatedRoute.data.subscribe(e=>{this.openedFromWebView=!!this.localStorageService.get(c.M3),this.componentEnteredFrom=e.modalEnteredFrom,this.componentEnteredFrom===c.rm.PROFILE?this.subscription$.add(this.activatedRoute.parent.params.subscribe(i=>{this.routeId=i.id,this.navigateBackUrl=this.routeId,this.store.dispatch(h.s.loadTruncatedProfile({id:this.routeId})),this.selectDataForModal()})):this.componentEnteredFrom===c.rm.RESCHEDULE?(this.isRescheduleRoute=!0,this.navigateBackUrl=`/${c.rm.BOOKINGS}`,this.subscription$.add(this.activatedRoute.queryParams.subscribe(i=>{this.profileService.getRescheduleData(i.bookingId).subscribe(n=>{this.rescheduleRate={serviceProvisionId:n.body.serviceProvisionId,rateSetting:n.body.serviceProvisionRateSetting,serviceProvisionOwner:n.body.serviceProvisionOwner},this.routeId=this.activatedRoute.snapshot.queryParams.username,this.store.dispatch(h.s.loadTruncatedProfile({id:this.routeId})),this.selectDataForModal()},n=>{this.showMessage("Something went wrong!"),this.router.navigateByUrl((0,c.s9)(this.navigateBackUrl,this.openedFromWebView))})}))):(this.navigateBackUrl=this.router.url.split("/featured")[0],this.routeId=this.activatedRoute.snapshot.params.id,this.store.dispatch(h.s.loadTruncatedProfile({id:this.routeId})),this.selectDataForModal())})),this.subscription$.add(this.actions$.pipe((0,g.l4)(h.s.truncatedProfileLoadingFailed)).subscribe(()=>{this.router.navigateByUrl((0,c.s9)(this.navigateBackUrl,this.openedFromWebView))}
1))}selectDataForModal(){this.subscription$.add(this.store.select(T.Ji).pipe((0,S.h)(e=>!(0,u.Z)(e)&&(this.routeId.toLowerCase()===(null==e?void 0:e.username.toLowerCase())||this.routeId===(null==e?void 0:e.profileId.toString()))),(0,M.q)(1),(0,O.w)(e=>{const i=null==e?void 0:e.servicesProvision,o=null==i?void 0:i.find(n=>n.type===y.UW.MENTORSHIP);return o||this.isRescheduleRoute?(0,D.of)({proTruncatedProfile:e,serviceForBooking:o}):this.translateService.get("TOAST_MESSAGE").pipe((0,R.b)(n=>{this.toastService.showMessage(n.SOMETHING_WENT_WRONG),this.router.navigateByUrl((0,c.s9)(this.navigateBackUrl,this.openedFromWebView))}),(0,O.w)(()=>(0,D.of)({proTruncatedProfile:null,serviceForBooking:null})))})).subscribe(({proTruncatedProfile:e,serviceForBooking:i})=>{e&&this.openModal(e,i,this.navigateBackUrl,this.rescheduleRate)}))}openModal(e,i,o,n){const l=this.modalService.open(pt,{windowClass:"mentorship-modal-window",backdrop:"static"});l.componentInstance.fromParent={proTruncatedProfile:e,serviceForBooking:i,navigateBackUrl:o,rescheduleRate:n,openedFromWebView:this.openedFromWebView},l.result.then(()=>(this.store.dispatch(h.s.clearFastBooking()),this.store.dispatch(h.s.clearAvailabilityInfo()),this.router.navigateByUrl((0,c.s9)(this.navigateBackUrl,this.openedFromWebView))),p=>p!==c._$.ROUTE_SWITCH&&p!==c._$.SIGN_UP_FROM_BOOK&&p!==c._$.FAST_BOOKING_CHECKOUT?(this.store.dispatch(h.s.clearFastBooking()),this.store.dispatch(h.s.clearAvailabilityInfo()),this.router.navigateByUrl((0,c.s9)(this.navigateBackUrl,this.openedFromWebView))):null)}showMessage(e){this.toastService.showMessage(e)}ngOnDestroy(){this.subscription$.unsubscribe()}}return a.\u0275fac=function(e){return new(e||a)(t.Y36(g.eX),t.Y36(b.gz),t.Y36(k.FF),t.Y36(s.H3),t.Y36(b.F0),t.Y36(_.yh),t.Y36(w.sK),t.Y36(s.kl),t.Y36(s.n2))},a.\u0275cmp=t.Xpm({type:a,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),a})()},1687:($,L,r)=>{r.d(L,{KZ:()=>R,gn:()=>P,Qm:()=>D,K9:()=>B,N3:()=>y,zb:()=>h,S1:()=>c,hx:()=>T,gQ:()=>U,k8:()=>t});var g=r(23065);const u=s=>s.booking,S=(0,g.P1)(u,s=>s.past),M=(0,g.P1)(u,s=>s.upcoming),O=(0,g.P1)(u,s=>s.pending),R=(0,g.P1)(u,s=>s.current),P=(0,g.P1)(u,s=>k(s.past)),D=(0,g.P1)(u,s=>k(s.upcoming)),B=(0,g.P1)(u,s=>k(s.pending)),F=(0,g.P1)(u,s=>{var b,_,x;return null!==(x=null===(_=null===(b=null==s?void 0:s.pending)||void 0===b?void 0:b.bookings)||void 0===_?void 0:_.bookingsWhereUserIsTheBookee)&&void 0!==x?x:[]}),y=((0,g.P1)(F,(s,b)=>{var _;return null!==(_=s.filter(x=>x.id===b.id).pop())&&void 0!==_?_:null}),(0,g.P1)(S,s=>({bookings:s.bookings.bookingsWhereUserIsTheBooker,isLoaded:s.isLoaded}))),h=(0,g.P1)(M,s=>({bookings:s.bookings.bookingsWhereUserIsTheBooker,isLoaded:s.isLoaded})),c=(0,g.P1)(O,s=>({bookings:s.bookings.bookingsWhereUserIsTheBooker,isLoaded:s.isLoaded})),T=(0,g.P1)(S,s=>({bookings:s.bookings.bookingsWhereUserIsTheBookee,isLoaded:s.isLoaded})),U=(0,g.P1)(M,s=>({bookings:s.bookings.bookingsWhereUserIsTheBookee,isLoaded:s.isLoaded})),t=(0,g.P1)(O,s=>({bookings:s.bookings.bookingsWhereUserIsTheBookee,isLoaded:s.isLoaded})),k=s=>{var b;return{bookings:[].concat(...Object.values(null!==(b=s.bookings)&&void 0!==b?b:{})),isLoaded:s.isLoaded}}}}]);
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.