PageSourceSearch

https://reservations.flycma.com/chunk-UVODWBVQ.js

js flycma.com collected 2026-09-24 21:51:02 UTC 3,488 bytes, 1 lines download raw bytes

1import{b as st}from"./chunk-N5I3JDQM.js";import{$e as $,JE as X,KF as Z,L0 as at,LF as tt,Md as _,Mw as z,Ow as G,PX as ot,Pw as W,Qw as J,Rw as K,Sw as Q,Ub as B,YJ as C,aa as O,bb as x,ef as D,fb as ct,gG as et,ga as Y,hG as it,j as q,jb as mt,my as V,n as U,o1 as nt,qh as k,wM as rt}from"./chunk-THWQXKGW.js";import{Ba as A,Bc as H,Cc as I,Dc as F,Ec as f,G as L,Gd as j,H as y,Hd as P,Ja as T,R as N,Wb as m,ac as b,bc as E,f as R,x as w}from"./chunk-RIHCSLB5.js";var p=R(ct()),h=R(mt());var pt=(()=>{class r{constructor(e,t,i,g,S){this.activatedRoute=e,this.dateAndTimeHelper=t,this.store=i,this.log=g,this.typeScriptHelper=S,this.dataLoading$=w([!1]),this.alive=!0}ngOnInit(){let e=[];e.push(new V),this.dataLoading$=y([this.store.select(it),this.store.select(tt)]).pipe(A(()=>this.alive),L(o=>!o.every(n=>!n)));let t=this.activatedRoute.snapshot.queryParamMap.get("departureDate"),i=this.activatedRoute.snapshot.queryParamMap.get("arrivalDate");t=t!==null?(0,h.default)(t).format(D):"",i=i!==null?(0,h.default)(i).format(D):"";let g=this.typeScriptHelper.isNonEmptyString(t)?this.dateAndTimeHelper.fromMomentToDateStructYMD((0,h.default)(t)):null,S=this.typeScriptHelper.isNonEmptyString(i)?this.dateAndTimeHelper.fromMomentToDateStructYMD((0,h.default)(i)):null,l=this.activatedRoute.snapshot.queryParamMap.get("departureAirportCode"),c=this.activatedRoute.snapshot.queryParamMap.get("arrivalAirportCode");l=l!==null?l:"",c=c!==null?c:"",this.typeScriptHelper.isNonEmptyString(c)&&e.push(new z(c)),this.typeScriptHelper.isNonEmptyString(l)&&e.push(new G(l)),e.push(new W(g)),e.push(new J(S)),e.forEach(o=>{o[C]=!1,this.store.dispatch(o)}),y([this.store.select(et),this.store.select(Z)]).pipe(A(()=>this.alive),N(([o,n])=>(0,p.isArray)(o)&&(0,p.isArray)(n)&&o.length>0&&n.length>0)).subscribe(([o,n])=>{let d=this.activatedRoute.snapshot.queryParamMap.get("language"),v=[];if(this.typeScriptHelper.isNonEmptyString(d)){d=d.trim();let a=(0,p.find)(o,u=>u.code===d);(0,p.isObjectLike)(a)?v.push(new X(a)):this.log.error(`[DirectSearchComponent] The given language (${d}) is invalid`)}let M="",s=this.activatedRoute.snapshot.queryParamMap.get("flightNumber");s=s??"",s!=null&&(0,p.isArray)(n)&&n.length>0&&n.forEach(a=>{let u=s.replace(/ /g,"").toUpperCase();u.startsWith(a.code)&&(M=a.code,s=u.replace(a.code,""))}),v.push(new K(s)),v.forEach(a=>{a[C]=!1,this.store.dispatch(a)});let lt=this.activatedRoute.snapshot.data?.searchResultUrl;this.store.dispatch(new Q(t,i,M,s,l,c,!1,lt,!1,"","",!0))})}ngOnDestroy(){this.alive=!1}static{this.\u0275fac=function(t){return new(t||r)(m(O),m(_),m(k),m(x),m(B))}}static{this.\u0275cmp=b({type:r,selectors:[["app-direct-search"]],standalone:!1,decls:7,vars:3,consts:[[3,"showSpinner"],[1,"page-header","navbar","navbar-expand-sm","navbar-dark","bg-primary","px-4","justify-content-between"],[1,"container","mt-5"],[1,"row"],[1,"col"]],template:function(t,i){t&1&&(f(0,"app-loading-spinner",0),j(1,"async"),f(2,"app-site-header-compact",1),I(3,"div",2)(4,"div",3)(5,"div",4),f(6,"app-ias-loading-placeholder"),F()()()),t&2&&H("showSpinner",P(1,1,i.dataLoading$))},dependencies:[rt,ot,at,q],encapsulation:2})}}return r})();var ht=[{path:"",pathMatch:"full",component:st},{path:"direct-search",component:pt},{path:"**",redirectTo:""}],It=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275mod=E({type:r})}static{this.\u0275inj=T({imports:[U,nt,Y.forChild(ht),$]})}}return r})();export{It as FlightStatusModule};

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.