1"use strict";(self.webpackChunkviva_web=self.webpackChunkviva_web||[]).push([[2792],{30849(b,N,o){o.d(N,{v:()=>f});var $=o(73664),m=o(45312),B=o(96354),P=o(97586),T=o(96949),w=o(79328),H=o(31633),Y=o(10452),L=o(2615),v=o(29330),X=o(51242),s=o(34066),d=o(31661),r=o(61310),K=o(82671);let f=(()=>{class O{constructor(a,_,l,c,D,A,I){this.http=a,this.cmsConfig=_,this.flightAlertsService=l,this.currency=c,this.locale=D,this.flightStationsService=A,this.vivaGlobalConfigService=I,this.lowFares=new Map,this.lastBookingDate=P(this.cmsConfig._cmsConfig.lastBookingDate)}getCalendarAvailability(a,_,l=H.dn.AIRPORT,c,D){let A=!1,I=!1;const y=this.cmsConfig._cmsConfig.globalSettings?.maacStations?.[a]?.searchCode;y&&(a=y,A=!0);const g=this.cmsConfig._cmsConfig.globalSettings?.maacStations?.[_]?.searchCode;g&&(_=g,I=!0);const S={StartDate:P().format("YYYY-MM-DD"),EndDate:this.lastBookingDate.format("YYYY-MM-DD"),"Origin.Code":a,"Destination.Code":_,"Origin.Type":l,"Destination.Type":l,IncludeAlternativeStationsInOrigin:A,IncludeAlternativeStationsInDestination:I};return this.http.get(m.cA.CALENDAR_AVAILABILITY_URL,{params:S}).pipe((0,B.T)(U=>U.data.availableDates),(0,B.T)(U=>{const t=[];return U.forEach(i=>{const e=P(i.date,"YYYY-MM-DD");e.isValid()&&t.push(c?{date:e,availableDirectFlights:i.availableDirectFlights}:e)}),t}))}getSearchAvailability(a){const _=this.vivaGlobalConfigService.getIsGlobal()?m.cA.SEARCH_AVAILABILITY_OFFERS_URL:m.cA.SEARCH_AVAILABILITY_URL;return this.http.post(_,a,{headers:{"X-Channel":"web"}}).pipe((0,B.T)(c=>(c.warnings&&c.warnings.length&&this.flightAlertsService.addCurrentAlert(c.warnings),c.data&&c.data.routes&&c.data.routes.length&&(c.data.routes.forEach(D=>{this.flightAlertsService.addCurrentAlert(D.notifications)}),this.isMulticitySearch(c.data.routes)||this.flightAlertsService.removeCurrentAlert({code:"MulticityFlights"})),c.data)))}isMulticitySearch(a){return a.length>2||2===a.length&&(a[0].destination.code!==a[1].origin.code||a[0].origin.code!==a[1].destination.code)}getSearchJourneysAvailability(a){return this.http.post(m.cA.SEARCH_JOURNEY_AVAILABILITY_URL,a).pipe((0,B.T)(l=>(l.warnings&&l.warnings.length&&this.flightAlertsService.addCurrentAlert(l.warnings),l.data&&l.data.routes&&l.data.routes.length&&l.data.routes.forEach(c=>{this.flightAlertsService.addCurrentAlert(c.notifications)}),l.data)))}changeJourneysToBasket(a){return this.http.post(`${m.cA.CHANGE_JOURNEYS_AVAILABILITY_URL}`,a)}createSearchJourneysInputObject(a,_){if(a.itineraryCode&&a.itineraryCode.length>0){const l=new T.CI;return l.routes=a.itineraryCode.map(c=>this.createSearchRouteRequest(c)),a.originalJourneys.forEach((c,D)=>{l.routes[D].originalJourneyKey=c}),l.basketId=_,a.mmbSearchType&&(l.searchType=a.mmbSearchType,a.mmbSearchType===T.Y$.FlyAhead&&Array.isArray(l.routes)&&l.routes.forEach(c=>{c.includeAlternativeStationsInOrigin=!!a.isFlyAheadCDMXSearch,c.includeAlternativeStationsInDestination=!!a.isFlyAheadCDMXSearch})),a.alternateStations&&(l.routes=this.patchMaacRoutes(l.routes,a.alternateStations)),l}}createSearchRequestObject(a,_=-1,l){if(a.itineraryCode&&a.itineraryCode.length>0&&a.passengers){const c=new T.QO;return c.currencyCode=this.currency.selectedCurrencyCode,c.language=this.locale,c.routes=-1===_?a.itineraryCode.map(D=>this.createSearchRouteRequest(D)):[this.createSearchRouteRequest(a.itineraryCode[_],l)],c.passengers=this.createSearchInputPassengers(a.passengers),a.promoCode&&(c.promoCode=a.promoCode),a.referral&&(c.referralCode=a.referral),a.alternateStations&&(c.routes=this.patchMaacRoutes(c.routes,a.alternateStations)),c}}createSearchInputPassengers(a){const _=[];return a.adults&&a.adults>0&&_.push({code:w.ZE.ADULT,count:a.adults}),a.kids&&a.kids>0&&_.push({code:w.ZE.CHILD,count:a.kids}),a.babies&&a.babies>0&&_.push({code:w.ZE.BABY,count:a.babies}),_}createSearchRouteRequest(a,_,l){const D={date:_?_.format("YYYY-MM-DD"):a.date.format("YYYY-MM-DD"),origin:{code:a.origin.code,type:a.origin.type},destination:{code:a.destination.code,type:a.destination.type}};return l?{...D,originalJourneyKey:l}:D}patchMaacRoutes(a,_){const l=_.split("");return a.forEach((c,D)=>{const A=this.flightStationsService._maacStations.find(y=>y.maac.searchCode===c.origin.code),I=this.flightStationsService._maacStations.find(y=>y.maac.searchCode===c.destination.code);A?.maac&&parseInt(l[2*D],10)&&(c.includeAlternativeStationsInOrigin=!0),I?.maac&&parseInt(l[2*D+1],10)&&(c.includeAlternativeStationsInDestination=!0)}),a}generateJourneysInput(a,_,l,c=!1,D=!1){const y={basketId:a,journeys:_.map(g=>({journeyKey:g.journey.key,fareAvailabilityKey:g.selectedFare.key,fareSource:g?.selectedFare?.fareSource,origin:{code:g.journey.origin.code,type:g.journey.origin.type},destination:{code:g.journey.destination.code,type:g.journey.destination.type},fareBookingType:g?.fareBookingType||g?.selectedFare?.fareBookingType||"Regular"})),passengers:this.createSearchInputPassengers(l.passengers),isVivaFan:c};return c&&D&&(y.vivaFanSubscriptionType=Y.JT.Monthly),void 0!==l.promoCode&&(y.promoCode=l.promoCode),l.event&&(y.event=l.event),y}get _basketSessionId(){return this.basketSessionId}set _basketSessionId(a){this.basketSessionId=a}generateGlobalSearchGroups(a,_,l,c="fareType"){const D=[],A={},I=_.map(g=>{const S=P(g.requestedDate).format("ddd DD MMMM YYYY");return S.charAt(0).toUpperCase()+S.slice(1)});a.filter(g=>g.fares.some(S=>
1S[c]===l)).forEach(g=>{const S=g.fares.find(i=>i[c]===l),p=g.journeys[0]?.key,U=g.journeys[1]?.key,t=S.fare.amount;A[t]||(A[t]={offerData:{fare:S,days:I,routes:_,offers:[]},origins:{}}),A[t].origins[p]||(A[t].origins[p]={journey:{...g.journeys[0],fares:g.fares},destinations:[]}),g.journeys[1]&&A[t].origins[p].destinations.push({key:U,journey:{...g.journeys[1],fares:g.fares}})});for(const[g,S]of Object.entries(A)){const p={},U={},t={};for(const[i,e]of Object.entries(S.origins)){e.destinations.length||(p._||(p._=new Set),p._.add({key:i,journey:e.journey}));for(const n of e.destinations)p[n.key]||(p[n.key]=new Set),p[n.key].add({key:i,journey:e.journey}),t[n.key]=n.journey}for(const[i,e]of Object.entries(p)){const n=[...e].map(h=>h.journey.segments[0].flightNumber).toString();U[n]||(U[n]={...S.offerData,price:g,key:`${g}-${n}`,origins:[...e],destinations:[]}),t[i]&&U[n].destinations.push({key:i,journey:t[i]})}D.push(...Object.values(U))}return D.forEach((g,S)=>{g.key=`${S}-${g.price}`}),D}prepareGlobalJourneys(a){const _=[];return a.routes.forEach((l,c)=>{_[c]=(0===c?a.origins:a.destinations).map(A=>A.journey)}),_}setGroupKey(a){localStorage.setItem("viva-group-key",a)}getGroupKey(){return localStorage.getItem("viva-group-key")}checkAvailability(a){return this.http.post(m.cA.CHECK_AVAILABILITY_URL,a)}static{this.\u0275fac=function(_){return new(_||O)(L.KVO(v.Qq),L.KVO(X.R),L.KVO(s.b),L.KVO(d.P),L.KVO($.xe9),L.KVO(r.r),L.KVO(K.$K))}}static{this.\u0275prov=L.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},3025(b,N,o){o.d(N,{F:()=>L});var $=o(85042),m=o(97586),P=o(31633),J=o(82671),T=o(2615),w=o(31661),H=o(81228),Y=o(51242);let L=(()=>{class v{constructor(s,d,r){this.currencySvc=s,this.locale=d,this.csmConfig=r}isValidForm(s){const d=void 0!==s.tripType&&void 0!==s.passengers;let r=!0;if(s.journeys&&s.journeys.length>0){for(const K of s.journeys)if(!this.isValidJourney(s.tripType,K)){r=!1;break}}else r=!1;return d&&r}isValidJourney(s,d){const r=void 0!==d&&void 0!==d.origin&&void 0!==d.destination;return s===$.C.ROUND_TRIP?r&&void 0!==d.journeyDates&&m.isMoment(d.journeyDates.startDate)&&m.isMoment(d.journeyDates.endDate):r&&void 0!==d.journeyDates&&m.isMoment(d.journeyDates.startDate)}createFlightAvailabilityJourneyArray(s){let d=[];if(s.tripType!==$.C.ROUND_TRIP)d=s.journeys.map(r=>({origin:{code:r.origin?.maac?.searchCode?r.origin.maac.searchCode:r.origin.code},destination:{code:r.destination?.maac?.searchCode?r.destination.maac.searchCode:r.destination.code},date:r.journeyDates.startDate}));else{const r=s.journeys[0];d=[{origin:{code:r.origin?.maac?.searchCode?r.origin.maac.searchCode:r.origin.code},destination:{code:r.destination?.maac?.searchCode?r.destination.maac.searchCode:r.destination.code},date:r.journeyDates.startDate},{origin:{code:r.destination?.maac?.searchCode?r.destination.maac.searchCode:r.destination.code},destination:{code:r.origin?.maac?.searchCode?r.origin.maac.searchCode:r.origin.code},date:r.journeyDates.endDate}]}return d}createFlightSearchParams(s,d=!1){let r="";
1this.createFlightAvailabilityJourneyArray(s).forEach((C,a)=>{0!==a&&(r+="."),r+=this.journeyToString(C)});let f="";f+=`A${s.passengers.adults}`,s.passengers.kids>0&&(f+=`_C${s.passengers.kids}`),s.passengers.babies>0&&(f+=`_I${s.passengers.babies}`),s.passengers.pets>0&&(f+=`_P${s.passengers.pets}`);const O={itineraryCode:r,passengers:f,...d&&{fromCalendarEntryPoint:d}};return s.promoCode&&(O.promoCode=s.promoCode),s.journeys.some(C=>!!C.origin.maac||!!C.destination.maac)&&(O.alternateStations=this.createAlternateStationsParameter(s)),O}journeyToString(s){if(s){let d=`${s.origin.code}_${s.destination.code}_`;return d+="string"==typeof s.date?m(s.date).format("YYYYMMDD"):s.date.format("YYYYMMDD"),d}return""}createStationSearchObject(s,d=0){const r=[s.journeys[d].origin.source,s.journeys[d].destination.source].includes(J.oK);return{startDate:s.journeys[d].journeyDates.startDate.toISOString(),endDate:s.journeys[d].journeyDates.endDate?.toISOString()||void 0,origin:{code:s.journeys[d].origin.code},destination:{code:s.journeys[d].destination.code},passengers:s.passengers,stationType:P.dn.AIRPORT,travelType:s.tripType,isGlobal:r}}createVivaRedirectLink(s,d=!1,r=0){let f=`${this.csmConfig._cmsConfig?.globalSettings?.webRedirects?.originURL||"https://www.vivaaerobus.com"}/Booking/PostCriteria?`;f+=`DepartureCity=${s.journeys[r].origin.code}`,f+=`&ArrivalCity=${s.journeys[r].destination.code}`,f+=s.journeys[r].journeyDates.startDate?`&DepartureDate=${m(s.journeys[r].journeyDates.startDate).format("MM/DD/YYYY")}`:"",f+=s.journeys[r].journeyDates.endDate?`&ReturnDate=${m(s.journeys[r].journeyDates.endDate).format("MM/DD/YYYY")}`:"",f+=d?"&CalendarSearch=True":"",f+=s.passengers.adults?`&Adults=${s.passengers.adults}`:"",f+=s.passengers.kids?`&Children=${s.passengers.kids}`:"",f+=s.passengers.babies?`&Infants=${s.passengers.babies}`:"";const O=this.currencySvc._selectedCurrency;f+="MXN"===O.code||"USD"===O.code?`&Currency=${O.code}`:"";const C=this.locale.getAppLocale()?.split("-")[0];return f+="es"===C||"en"===C?`&Lang=${C}`:"",f+=s.promoCode?`&PromoCode=${s.promoCode}`:"",f+="&utm_campaign=colombia-searches",f+="&utm_medium=website",f+="&utm_source=homepage-pwa",f}createAlternateStationsParameter(s){const d=[];if(s.tripType===$.C.ROUND_TRIP){const r=s.journeys[0];d.push(+!!r.origin?.maac,+!!r.destination?.maac,+!!r.destination?.maac,+!!r.origin?.maac)}else s.journeys.forEach(r=>{d.push(+!!r.origin?.maac,+!!r.destination?.maac)});return d.join("")}static{this.\u0275fac=function(d){return new(d||v)(T.KVO(w.P),T.KVO(H.i),T.KVO(Y.R))}}static{this.\u0275prov=T.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()},82568(b,N,o){o.d(N,{B:()=>S});var $=o(74523),m=o(73664),B=o(45312),P=o(99437),J=o(96354),T=o(25558),w=o(27468),H=o(22806),Y=o(7673),L=o(18810),v=o(97586),s=o(6442),d=o(79328),r=o(49556),K=o(95398),f=o(85042),O=o(31633),C=o(2615),a=o(29330),_=o(34066),l=o(61310),c=o(16378),D=o(88717),A=o(51242),I=o(3025),y=o(82671),g=o(81228);let S=(()=>{class p{constructor(t,i,e,n,h,u,M,E,W,F,G){this.http=t,this.flightAlertsService=i,this.locale=e,this.flightStationsService=n,this.metasearch=h,this.authService=u,this.cmsConfig=M,this.stationsSvc=E,this.flightUtilsSvc=W,this.vivaGlobalConfigService=F,this.localeSvc=G,this.lowFaresCache=new Map,this.useAlternateEndpointForMonthlyLowFares=this.cmsConfig.getBookingFeatureValue(r.MK.UseCacheEndpointForMonthlyLowFares)}getLowFares(t,i,e,n,h=!1,u=!1,M=!1){const E=this.cmsConfig.getBookingFeatureValue(r.MK.EnableGlobalLowFares),W=this.vivaGlobalConfigService.getIsGlobal(),F=!W||E&&!u,G=h&&t.routes[e+1]?this.generateDateRange(t.routes[e+1]):void 0;if(i&&F)return t&&!t.language&&(t.language=this.locale),t&&!t.referralCode&&(t.referralCode=this.metasearch.getCurrentReferral(n)),!M&&this.checkLowFaresCache(t.routes[e])?(0,Y.of)(this.lowFaresCache.get(`${t.routes[e].origin.code}-${t.routes[e].destination.code}`)):(0,w.p)([(0,Y.of)(this.stationsSvc.ready),this.shouldWaitForAuthSyncDone]).pipe((0,T.n)(R=>{const{apiUrl:V,headers:j}=this.defineLowFaresURLData(W);return this.http.post(V,t,{headers:j})}),(0,J.T)(R=>{this.saveLowFaresCache(t,R.data);const{origins:V,destinations:j}=this.getStationCodes(t.routes[e]),Q=R.data.lowFares.filter(z=>V.includes(z.origin.code)&&j.includes(z.destination.code));return R.data.lowFares=Q,(0,K.EI)(R.warnings)&&this.flightAlertsService.addCurrentAlert(R.warnings),this.resolveLow
1Fares(R,this.generateDateRange(t.routes[e]),G)}),(0,P.W)(()=>{const R=this.generateDateRange(t.routes[e]),V=new Map;return R.forEach(j=>{V.set(j,this.formatDay(j,null,"","",!0))}),(0,Y.of)(V)}));const Z=this.resolveLowFares({data:null},this.generateDateRange(t.routes[e]),G);if(!F)for(const[R,V]of Z){const j=v(R);(j.isSame(v(),"day")||j.isAfter(v()))&&(V.status=s.zA.ENABLED)}return(0,Y.of)(Z)}resetLowFaresCache(){this.lowFaresCache.clear()}saveLowFaresCache(t,i){t.routes.forEach((e,n)=>{const h=`${e.origin.code}-${e.destination.code}`,{origins:u,destinations:M}=this.getStationCodes(e),E=i.lowFares.filter(Z=>u.includes(Z.origin.code)&&M.includes(Z.destination.code)),W=this.generateDateRange(t.routes[n]);this.lowFaresCache.has(h)||this.lowFaresCache.set(h,new Map);const F=this.resolveLowFares({data:{lowFares:E}},W),G=this.lowFaresCache.get(h);this.addEntriesToMap(F,G)})}getStationCodes(t){const{origin:i,destination:e}=t??{};let n=[t.origin.code],h=[t.destination.code];return t.includeAlternativeStationsInOrigin&&(n=this.getMaacStationCodes(i?.code)),t.includeAlternativeStationsInDestination&&(h=this.getMaacStationCodes(e?.code)),{origins:n,destinations:h}}getMaacStationCodes(t){const{maac:i}=this.stationsSvc.getMaacStationByAreaCode(t)??{};return(0,K.EI)(i?.areaCodes)?i.areaCodes:[t]}addEntriesToMap(t,i){for(const[e,n]of t.entries())i.set(e,n)}
1checkLowFaresCache(t){const i=v(t.endDate).format("YYYY-MM-DD"),e=v(t.startDate).format("YYYY-MM-DD"),n=`${t.origin.code}-${t.destination.code}`;return this.lowFaresCache.has(n)&&this.lowFaresCache.get(n).has(e)&&this.lowFaresCache.get(n).has(i)}getDaysFromArray(t,i,e){const n=(i||[]).map(h=>({departureDate:h,fare:null,vivaFanFare:null}));return(0,Y.of)(this.resolveLowFares({data:{lowFares:n}},this.generateDateRange(t.routes[e])))}getMonthlyLowFares(t){return this.shouldWaitForAuthSyncDone.pipe((0,T.n)(i=>{const{apiUrl:e,headers:n}=this.defineLowFaresURLData(!1);return this.http.post(e,t,{headers:n}).pipe((0,J.T)(h=>h.data),(0,P.W)(h=>(0,L.$)(()=>h)))}))}defineLowFaresURLData(t){let i;const e={};if(this.useAlternateEndpointForMonthlyLowFares&&!t){i=B.cA.LOW_FARES_CACHE_URL;const n=this.authService.isLoggedIn?this.authService.authenticatedAccountType:void 0;n&&(e["X-Account-Type"]=n)}else i=t?B.cA.GLOBAL_LOW_FARES_CACHE_URL:B.cA.LOW_FARES_URL;return{apiUrl:i,headers:e}}generateDateRange(t){const i=[];let e=v(t.startDate).format("YYYY-MM-DD");
1const n=v(t.endDate).format("YYYY-MM-DD");for(;e<=n;)i.push(e),e=v(e).add(1,"days").format("YYYY-MM-DD");return i}resolveLowFares({data:t},i,e){t?.lowFares&&(t.lowFares=t.lowFares.map(h=>({...h,departureDate:v(h.departureDate).format("YYYY-MM-DD")})));const n=new Map;return i.forEach((h,u)=>{const M=t?t.lowFares.find(E=>v(E.departureDate).isSame(h)):null;n.set(h,this.formatDay(h,M,t?.currencyCode,e?e[u]:void 0))}),n}formatDay(t,i,e,n,h=!1){const u=v(t).format("ddd, DD MMM").split(".").join(""),M=v(t).format("DD MMM").split(".").join(""),E=n?v(n).format("DD MMM").split(".").join(""):void 0,W=this.momentDateFormat(t),F=n?this.momentDateFormat(n):void 0;return{dateText:n?`${M} - ${E}`:u,dateTextRebranding:n?`${W} <br> - <br> ${F}`:W,fare:i?i.fare:null,vivaFanFare:i?i.vivaFanFare:null,status:i||h?s.zA.ENABLED:s.zA.DISABLED,currencyCode:e}}momentDateFormat(t){return v(t).format("ddd DD MMM").replace(".",",").split(".").join("")}generatePayload(t,i,e){return{currencyCode:i,promoCode:e.promoCode?e.promoCode:null,referralCode:this.metasearch.getCurrentReferral(e),bookingType:e.doters?"Points":null,language:this.localeSvc.getAppLocale(),passengers:[{code:d.ZE.ADULT,count:e.passengers.adults},{code:d.ZE.CHILD,count:e.passengers.kids},{code:d.ZE.BABY,count:e.passengers.babies}],routes:this.generateRoutes(t,e.itineraryCode,e.alternateStations)}}generateBookerPayload(t,i,e){const n=[];e.journeys.forEach(u=>{n.push({origin:{code:u.origin?.maac?.searchCode?u.origin.maac.searchCode:u.origin.code,type:O.dn.AIRPORT},destination:{code:u.destination?.maac?.searchCode?u.destination.maac.searchCode:u.destination.code,type:O.dn.AIRPORT},date:t})}),e.tripType===f.C.ROUND_TRIP&&n.push({origin:{code:n[0].destination.code,type:O.dn.AIRPORT},destination:{code:n[0].origin.code,type:O.dn.AIRPORT},date:t});let h=null;return e.journeys.some(u=>!!u.origin.maac||!!u.destination.maac)&&(h=this.flightUtilsSvc.createAlternateStationsParameter(e)),{currencyCode:i,promoCode:e?.promoCode?e.promoCode:null,passengers:[{code:d.ZE.ADULT,count:e?.passengers.adults},{code:d.ZE.CHILD,count:e?.passengers.kids},{code:d.ZE.BABY,count:e?.passengers.babies}],routes:this.generateRoutes(t,n,h)}}generatePerRoutePayload(t,i,e){const n=[],h=this.generatePayload(t,i,e),u=new Map;for(const M of h.routes){const E=M.origin.code+M.destination.code;u.has(E)||u.set(E,[]),u.get(E).push(M)}for(const M of u.values()){const E={...h,routes:M};n.push(E)}return n}generateRoutes(t,i,e){const n=[];return this.getDatePeriods(t).forEach(u=>{let M=[];i.forEach(E=>{M.push({startDate:u.startDate,endDate:u.endDate,origin:{code:E.origin.code,type:E.origin.type},destination:{code:E.destination.code,type:E.destination.type}})}),e&&(M=this.patchMaacRoutes(M,e)),n.push(...M)}),n}getDatePeriods(t){const i=[],e=t?.clone();return e?.isValid()&&i.push({startDate:e.startOf("month").format("YYYY-MM-DD"),endDate:e.startOf("month").add(15,"days").format("YYYY-MM-DD")},{startDate:e.startOf("month").add(16,"days").format("YYYY-MM-DD"),endDate:e.endOf("month").format("YYYY-MM-DD")}),i}patchMaacRoutes(t,i){const e=i.split("");return t.forEach((n,h)=>{const u=this.flightStationsService._maacStations.find(E=>E.maac.searchCode===n.origin.code),M=this.flightStationsService._maacStations.find(E=>E.maac.searchCode===n.destination.code);u?.maac&&parseInt(e[2*h],10)&&(n.includeAlternativeStationsInOrigin=!0),M?.maac&&parseInt(e[2*h+1],10)&&(n.includeAlternativeStationsInDestination=!0)}),t}waitForAccountReadyIfUsingCacheEndpoint(){var t=this;return(0,$.A)(function*(){t.useAlternateEndpointForMonthlyLowFares&&(yield t.authService.onSyncDonePromise)})()}get shouldWaitForAuthSyncDone(){return this.useAlternateEndpointForMonthlyLowFares?(0,H.H)(this.authService.onSyncDonePromise):(0,Y.of)(!0)}static{this.\u0275fac=function(i){return new(i||p)(C.KVO(a.Qq),C.KVO(_.b),C.KVO(m.xe9),C.KVO(l.r),C.KVO(c.S),C.KVO(D.u),C.KVO(A.R),C.KVO(l.r),C.KVO(I.F),C.KVO(y.$K),C.KVO(g.i))}}static{this.\u0275prov=C.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()}}]);
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.