(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{"5IYt":function(t,e,n){"use strict";var r=n("CcnG"),o=n("21Lb"),i=n("OzfB"),a=n("Atov"),s=n("KuF8"),g=n("1Opb"),l=n("ckqB"),c=n("yTtk"),p=n("AcpL"),m=n("ZYCi"),h=n("YqQn"),S=n("bFMo");n.d(e,"a",(function(){return C}));var u=r.Ab({encapsulation:0,styles:[[".m-0[_ngcontent-%COMP%]{margin:0!important}.m-t-0[_ngcontent-%COMP%]{margin-top:0!important}.m-b-0[_ngcontent-%COMP%]{margin-bottom:0!important}.m-t-10[_ngcontent-%COMP%]{margin-top:10px!important}.m-t-15[_ngcontent-%COMP%]{margin-top:15px!important}.m-t-20[_ngcontent-%COMP%]{margin-top:20px!important}.m-t-30[_ngcontent-%COMP%]{margin-top:30px!important}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px!important}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px!important}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px!important}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px!important}.p-0[_ngcontent-%COMP%]{padding:0!important}.p-t-0[_ngcontent-%COMP%]{padding-top:0!important}.p-t-10[_ngcontent-%COMP%]{padding-top:10px!important}.p-t-20[_ngcontent-%COMP%]{padding-top:20px!important}.p-t-30[_ngcontent-%COMP%]{padding-top:30px!important}.p-b-0[_ngcontent-%COMP%]{padding-bottom:0!important}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px!important}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px!important}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px!important}.common-padding[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.common-padding-innerpage[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:25px}.row[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px}.container[_ngcontent-%COMP%]{width:100%;max-width:1230px;padding:0 15px;margin:0 auto}ul[_ngcontent-%COMP%]{list-style-type:none}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:hover, button[_ngcontent-%COMP%], button[_ngcontent-%COMP%]:focus, button[_ngcontent-%COMP%]:hover{text-decoration:none;transition:all .5s ease;cursor:pointer}.heading-one[_ngcontent-%COMP%]{font-size:36px;font-weight:300;color:#000;margin:0 0 20px;text-align:center}.heading-one[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.mat-flat-button.mat-primary[_ngcontent-%COMP%]{background:#d32f2f;text-transform:capitalize;color:#fff!important}.mat-flat-button.mat-primary.mat-flat-button.mat-primary[disabled][_ngcontent-%COMP%]{background-color:rgba(0,0,0,.12)!important;color:rgba(0,0,0,.26)!important}.linkswith-heading[_ngcontent-%COMP%]{margin-bottom:40px}.linkswith-heading[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.labels[_ngcontent-%COMP%]{color:#000;font-size:14px;padding:5px 13px;border-radius:999px;border:1px solid #b8b8b8}.linkswith-heading[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.labels.active[_ngcontent-%COMP%], .linkswith-heading[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.labels[_ngcontent-%COMP%]:hover{background:#d32f2f;color:#fff;border-color:#d32f2f}.linkswith-heading[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.underline-link[_ngcontent-%COMP%]{font-size:13px;color:#d32f2f;text-decoration:underline}@media screen and (max-width:959px){.heading-one[_ngcontent-%COMP%]{font-size:22px}}@media (max-width:750px){.hide750[_ngcontent-%COMP%]{display:none}}.temploader[_ngcontent-%COMP%]{background:#fff}.temploader[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{min-height:100vh;text-align:center}.temploader[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{margin-bottom:25px;max-width:100%;display:block}.temploader[_ngcontent-%COMP%] .progressbar[_ngcontent-%COMP%]{margin-bottom:35px;width:100%;max-width:500px;border-radius:9999px;height:8px;overflow:hidden;background:#eee}.temploader[_ngcontent-%COMP%] .progressbar[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background:0 0/50px 50px #19478a;border-radius:999px;background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);animation:2s linear infinite move;-webkit-animation:2s linear infinite move}.temploader[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#000;font-size:16px;margin-bottom:15px}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%]{margin-bottom:10px}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0 15px;text-align:center;margin-bottom:15px;color:#19478a;border-right:1px solid #dbdbdb;font-size:18px;text-transform:uppercase}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%] h5[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;color:#000;font-size:12px}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:last-child{border:0}.temploader[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#19478a;font-size:30px;margin-bottom:15px}.temploader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#525252;font-size:14px;font-weight:500}.temploader[_ngcontent-%COMP%] p[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:11px}.temploader[_ngcontent-%COMP%] .exp-total[_ngcontent-%COMP%]{width:100%;text-align:center;padding-top:20px}@media screen and (max-width:767px){.temploader[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:15px;font-weight:500}.temploader[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:23px}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%]{margin-bottom:10px}.temploader[_ngcontent-%COMP%] .multicity[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{padding:0 10px;font-size:16px}}"]],data:{}});function P(t){return r.Yb(0,[(t()(),r.Cb(0,0,null,null,12,"div",[["class","temploader"]],null,null,null,null,null)),(t()(),r.Cb(1,0,null,null,11,"div",[["class","container"],["fxLayout","column"],["fxLayoutAlign","center center"]],null,null,null,null,null)),r.Bb(2,671744,null,0,o.d,[r.n,i.i,[2,o.m],i.f],{fxLayout:[0,"fxLayout"]},null),r.Bb(3,671744,null,0,o.c,[r.n,i.i,[2,o.k],i.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),r.Cb(4,0,null,null,0,"img",[["alt","akbar-logo"],["class","logo"]],[[8,"src",4]],null,null,null,null)),(t()(),r.Cb(5,0,null,null,3,"div",[["class","progressbar"],["fxLayout","row"],["fxLayoutAlign","start"]],null,null,null,null,null)),r.Bb(6,671744,null,0,o.d,[r.n,i.i,[2,o.m],i.f],{fxLayout:[0,"fxLayout"]},null),r.Bb(7,671744,null,0,o.c,[r.n,i.i,[2,o.k],i.f],{fxLayoutAlign:[0,"fxLayoutAlign"]},null),(t()(),r.Cb(8,0,null,null,0,"div",[],[[4,"width",null]],null,null,null,null)),(t()(),r.Cb(9,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),r.Wb(-1,null,["Fasten your seat belts, the best is coming to your screen soon."])),(t()(),r.Cb(11,0,null,null,1,"div",[["class","exp-total"]],null,null,null,null,null)),(t()(),r.Cb(12,0,null,null,0,"img",[["alt","40years-logo"]],[[8,"src",4]],null,null,null,null))],(function(t,e){t(e,2,0,"column"),t(e,3,0,"center center"),t(e,6,0,"row"),t(e,7,0,"start")}),(function(t,e){var n=e.component;t(e,4,0,r.Gb(1,"",n.getCDNPath(),"/assets/images/home-logo-black.png")),t(e,8,0,n.loaderWidth+"%"),t(e,12,0,r.Gb(1,"",n.getCDNPath(),"/assets/images/40years-logo.png"))}))}function f(t){return r.Yb(0,[(t()(),r.Cb(0,0,null,null,1,"app-meta-session",[],null,null,null,P,u)),r.Bb(1,245760,null,0,a.a,[s.a,g.a,l.a,c.a,p.b,m.l,r.I,h.a,m.a,S.a],null,null)],(function(t,e){t(e,1,0)}),null)}var C=r.yb("app-meta-session",a.a,f,{},{},[])},Atov:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("Ip0R"),o=n("AytR"),i=(n("YqQn"),n("1Opb"),n("yTtk"),n("AcpL"),n("ckqB"),n("bFMo"),n("mmnA")),a=n("9lYf"),s=n("Ze3n"),g=(n("KuF8"),n("uWsw")),l=function(){function t(t,e,n,r,l,c,p,m,h,S){this.generalHelper=t,this.flightService=e,this.flightHomeService=n,this.flightState=r,this.generalState=l,this.router=c,this.platform=p,this.errorLogger=m,this.route=h,this.flightGeneralState=S,this.loaderWidth=0,this.commonHelper=new s.a(this.flightState,this.generalState,this.route),this.commonAdapter=new a.a(this.flightState,this.generalState),this.flightHomeAdapter=new i.a(this.flightState,this.generalState),this.reviewHelper=new g.a(this.flightState,this.generalState),this.saudiAirports=[];var u={};this.route.queryParams.subscribe((function(t){if(u)switch(o.a.MerchantSettings.Desktop.AUI=t.merchantID,o.a.MerchantSettings.Mobile.AUI=t.merchantID,t.merchantID){case"405":o.a.MerchantSettings.Desktop.APIkey=o.a.MerchantSettings.SkyScanner.APIkey,o.a.MerchantSettings.Mobile.APIkey=o.a.MerchantSettings.SkyScanner.APIkey;break;case"406":o.a.MerchantSettings.Desktop.APIkey=o.a.MerchantSettings.Wego.APIkey,o.a.MerchantSettings.Mobile.APIkey=o.a.MerchantSettings.Wego.APIkey;break;case"407":o.a.MerchantSettings.Desktop.APIkey=o.a.MerchantSettings.Kayak.APIkey,o.a.MerchantSettings.Mobile.APIkey=o.a.MerchantSettings.Kayak.APIkey;break;case"408":o.a.MerchantSettings.Desktop.APIkey=o.a.MerchantSettings.Travolic.APIkey,o.a.MerchantSettings.Mobile.APIkey=o.a.MerchantSettings.Travolic.APIkey;break;case"700":o.a.MerchantSettings.Desktop.APIkey=o.a.MerchantSettings.GoogleSearch.APIkey,o.a.MerchantSettings.Mobile.APIkey=o.a.MerchantSettings.GoogleSearch.APIkey}})),this.flightState.metaSessionURLParams={}}return t.prototype.ngOnInit=function(){var t=this;try{if(Object(r.F)(this.platform)){this.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:ngOnInit","MetaSession page loaded : "+this.router.url,null,null,null,"00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000|00000000000000"),this.createURLParamsAndDoNext();for(var e=function(e){setTimeout((function(){t.loaderWidth=e}),50*e)},n=0;n<75;n++)e(n)}}catch(o){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:ngOnInit",o.stack.toLocaleString())}},t.prototype.ngOnDestroy=function(){try{this._getSmrtPrcSub&&this._getSmrtPrcSub.unsubscribe(),this._getAirportSub&&this._getAirportSub.unsubscribe()}catch(t){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:ngOnDestroy",t.stack.toLocaleString())}},t.prototype.getCDNPath=function(){try{return this.generalHelper.getCDNPath()}catch(t){}},t.prototype.createURLParamsAndDoNext=function(){var t=this;try{this.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:createURLParamsAndDoNext","createURLParamsAndDoNext : start. URL : "+this.router.url),this.commonHelper.createMetaSessionURLState().then((function(e){t.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:createURLParamsAndDoNext","createURLParamsAndDoNext : inpromise. URL : "+t.router.url),t.flightState.metaSessionURLParams=e,t.updateSessionForMetaSession(),t.flightState.SearchType=t.flightState.metaSessionURLParams.TripType,t.flightGeneralState.SearchType="DM"==t.flightState.SearchType?"MC":t.flightState.SearchType,t.flightState.SearchRequest={},t.flightState.SearchRequest.FareType=t.flightState.metaSessionURLParams.TripType,t.getAllAirports()}))}catch(e){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:createURLParamsAndDoNext",e.stack.toLocaleString())}},t.prototype.updateSessionForMetaSession=function(){try{var t=void 0;switch(this.flightState.metaSessionURLParams.MetaSessionMerchantID){case"405":t="skyScanner";break;case"406":t="wego";break;case"407":t="kayak";break;case"408":t="travolic"}"undefined"!=typeof sessionStorage&&sessionStorage.setItem("AUI",this.flightState.metaSessionURLParams.MetaSessionMerchantID),this.generalHelper.keepInSession("cpcFrom",t),this.generalHelper.keepInSession("cpcID",this.flightState.metaSessionURLParams.RedirectID),this.generalHelper.keepInSession("utmMedium",this.flightState.metaSessionURLParams.UtmMedium?this.flightState.metaSessionURLParams.UtmMedium:"flight"),this.generalHelper.keepInSession("utmSource",this.flightState.metaSessionURLParams.UtmSource?this.flightState.metaSessionURLParams.UtmSource:t),this.generalHelper.keepInSession("utmCampaign",this.flightState.metaSessionURLParams.UtmCampaign?this.flightState.metaSessionURLParams.UtmCampaign:t)}catch(e){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:updateSessionForMetaSession",e.stack.toLocaleString())}},t.prototype.getAllAirports=function(){var t=this;try{var e=this.flightHomeAdapter.createAirportRequest("","","A");this.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getAllAirports","getAllAirports : airportReq : "+JSON.stringify(e)+". URL : "+this.router.url),setTimeout((function(){t.getAllAirportsAPI(e),setTimeout((function(){t.flightState&&!t.flightState.AllAirports&&(t.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getAllAirports","getAllAirports : airportReq2 : "+JSON.stringify(e)+". URL : "+t.router.url),t.getAllAirportsAPI(e))}),2e3)}),200)}catch(n){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getAllAirports",n.stack.toLocaleString())}},t.prototype.getAllAirportsAPI=function(t){var e=this;try{this._getAirportSub=this.flightHomeService.getAirports(t).subscribe((function(t){t?(e.flightState.AllAirports=t,e.flightGeneralState.AllAirports=t,e.getWebSettings()):e.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getAllAirportsAPI","getAllAirportsAPI : getAirports else. URL : "+e.router.url)}),(function(t){e.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getAllAirportsAPI","getairports service failed : => Signature TUI : "+e.generalState.TUI+e.router.url)}))}catch(n){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getAllAirportsAPI",n.stack.toLocaleString())}},t.prototype.getWebSettings=function(){try{this.generalState.WebSettings?this.getSmartPricer():this.getWebSettingsAPI()}catch(t){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getWebSettings",t.stack.toLocaleString())}},t.prototype.getWebSettingsAPI=function(){var t=this;try{this.generalState.WebSettings=[],this.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getWebSettingsAPI","getWebSettingsAPI : start. URL : "+this.router.url);var e=this.flightHomeAdapter.createWebSettingsRequest();this.flightHomeService.getCommonSettings(e).subscribe((function(e){t.errorLogger.Log("B2CPORTAL","INFO","FLT","MetaSessionComponent:getWebSettingsAPI","getWebSettingsAPI : inPromise. URL : "+t.router.url),e?(t.generalState.WebSettings.push(e),t.getSmartPricer()):t.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getWebSettingsAPI","websettings service failed. URL : "+t.router.url)}),(function(e){t.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getWebSettingsAPI","getWebSettingsAPI Error "+e+".URL : "+t.router.url)}))}catch(n){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:getWebSettingsAPI",n.stack.toLocaleString())}},t.prototype.getSaudiDomAirports=function(){var t,e=this,n=0,r=!1;this.generalState&&this.generalState.WebSettings&&this.generalState.WebSettings.length>0&&this.generalState.WebSettings[0]&&(this.VATEnabledCountry=this.generalState.WebSettings[0].filter((function(t){return"VATEnabledCountries"==t.Key}))[0].Value),this.flightState&&this.flightState.AllAirports&&(this.saudiAirports=this.flightState.AllAirports.filter((function(t){return t.Country.toLowerCase()==e.VATEnabledCountry})),this.saudiAirports&&this.saudiAirports.length>0&&this.flightState.SmartPricerResponse&&this.flightState.SmartPricerResponse.Trips.length>0&&(this.flightState.SmartPricerResponse.Trips[0].Journey.forEach((function(r){t=r.Segments[r.Segments.length-1].Flight.ArrivalCode,r.Segments[0].Flight.DepartureCode.toLowerCase()==e.saudiAirports&&t.toLowerCase()==e.saudiAirports&&n++})),this.flightState.SmartPricerResponse.Trips[0].Journey.length==n&&(r=!0),this.generalHelper.getDomSaudiVAT(r)))},t.prototype.getSmartPricer=function(){var t=this;try{if("DM"!=this.flightState.metaSessionURLParams.TripType){var e=this.commonAdapter.createSmartPricerRequestMetaSession();this.flightState.SmartPricerRequest=e,this.errorLogger.Log("smartPricer API Called","FLOW","FLT","MetaSessionComponent:getSmartPricer","smartPricer API Called - MetaSession"+this.router.url),setTimeout((function(){t.getSmartPricerAPI()}),1e3)}else{this.flightState.SmartPricerResponseMC=[],this.flightState.SmartPricerResponse={},this.flightState.SmartPricerResponse.Trips=[],this.flightState.SmartPricerResponse.SSR=[],this.flightState.SmartPricerResponse.Rules=[],this.flightState.SmartPricerResponse.NetAmountArray=[],this.flightState.SmartPricerResponse.SSRAmountArray=[],this.flightState.SmartPricerResponse.GrossAmountArray=[];for(var n=function(e){var n=r.commonAdapter.createSmartPricerRequestMetaSession(e);r.flightState.SmartPricerRequest=n,setTimeout((function(){t.errorLogger.Log("smartPricer API Called DM","FLOW","FLT","MetaSessionComponent:getSmartPricer","smartPricer API Called DM"+t.router.url),t._getSmrtPrcSub=t.flightService.getSmartPricer(n,e).subscribe((function(e){t.errorLogger.Log("smartPricer API Success DM","FLOW","FLT","MetaSessionComponent:getSmartPricer","smartPricer API Success DM. Navigation URL : "+t.router.url),null!=e&&null!=e&&e.CeilingInfo&&t.generalHelper.ChangeCurrencySettingsFromResponse(e.CeilingInfo),null==e||null==e||"200"!==e.Code&&"1500"!==e.Code?(t.errorLogger.Log("smartPricer API DM Null","FLOW","FLT","MetaSessionComponent:getSmartPricer","smartPricer API DM null - MetaSession. Navigation URL : "+t.router.url),t.reset(),t.router.navigate(["/flight"])):(t.flightState.smartPricerTUI=e.TUI,t.flightState.TUI=e.TUI,t.getSaudiDomAirports(),t.reviewHelper.setSectorToFlightState(e),t.setCabinValue(),t.proceedPricingPage(e))}))}),1e3)},r=this,o=0;o0&&this.flightState.SmartPricerResponseMC.forEach((function(e){e&&e.length>0&&t++})),t}catch(e){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:countOfMCResponse",e.stack.toLocaleString()+this.router.url)}},t.prototype.reset=function(){try{"undefined"!=typeof sessionStorage&&(sessionStorage.getItem("cpcFrom")||sessionStorage.getItem("cpcID"))&&(sessionStorage.removeItem("cpcFrom"),sessionStorage.removeItem("cpcID"),sessionStorage.removeItem("utmMedium"),sessionStorage.removeItem("utmSource"),sessionStorage.removeItem("utmCampaign"),sessionStorage.removeItem("AUI"))}catch(t){this.errorLogger.Log("B2CPORTAL","ERROR","FLT","MetaSessionComponent:reset",t.stack.toLocaleString()+this.router.url)}},t}()}}]);