PageSourceSearch

https://flygta.com/chunk-F77NAFBO.js

js flygta.com collected 2026-10-02 12:41:40 UTC 46,566 bytes, 1 lines download raw bytes

1import{$a as fe,Ab as U,Bb as A,Cb as E,Cd as Ee,Ec as we,Fa as r,Ga as o,Gb as he,Ha as v,He as Me,Ia as b,Ib as ue,Ja as w,Jb as xe,Ka as pe,Kc as G,La as D,M as L,Ma as u,Mb as ve,N as re,Na as s,P as j,Q as oe,Qc as Q,R as P,Rc as Se,S as ae,Ua as de,Ue as Te,Va as me,Ve,W as _,Wa as ge,We as Le,X as h,Xa as y,Ya as c,Ye as Ae,Za as f,_ as se,_a as C,aa as k,bf as Re,cc as B,e as te,ha as ce,i as X,ja as l,jc as De,k as ie,ka as O,kb as S,le as Ie,o as ne,pb as m,qb as g,qe as H,rb as _e,rc as I,sa as x,tc as q,ub as F,uc as Ce,vd as ye,wa as a,wd as Fe,xd as Oe,xe as ke,y as le,zc as be,zd as Pe}from"./chunk-4UWS45CU.js";var je=te(ke());function Ke(t,p){if(t&1&&(b(0),r(1,"div",34),v(2,"span",35),r(3,"span",36),c(4),o(),r(5,"span",36),c(6),m(7,"number"),o()(),w()),t&2){let e=s();l(4),f(e.currencySymbol),l(2),f(g(7,2,e.flightDeal.OldPrice))}}function Ye(t,p){if(t&1){let e=D();r(0,"div")(1,"div",37),u("click",function(){_(e);let i=s();return h(i.onBook())}),c(2),m(3,"translate"),o()()}t&2&&(l(2),C(" ",g(3,1,"button.bookNow")," "))}function Je(t,p){if(t&1){let e=D();r(0,"app-datepicker-range",38),u("selectedDepartureDate",function(i){_(e);let d=s();return h(d.selectDepartureDate(i))})("confirm",function(){_(e);let i=s();return h(i.navigateToAvailable())}),o()}if(t&2){let e=s(),n=y(53);a("disablePrevDays",!0)("theme",e.theme)("template",n)("startDate",e.flightDeal.StartDateTime)("endDate",e.flightDeal.EndDateTime)("positionAuto",!0)}}function We(t,p){t&1&&(r(0,"div",39)(1,"span",40),c(2),m(3,"translate"),o()()),t&2&&(l(2),f(g(3,1,"button.bookNow")))}var N=(()=>{class t{modalService;currencySV;flightDeal;openCalendeOutSide=!1;openDatePickerEvent=new k;theme=G.custom;currencySymbol;departureDate;constructor(e,n){this.modalService=e,this.currencySV=n}ngOnInit(){this.getCurrencySymbol(),this.flightDeal.StartDateTime=new Date(this.flightDeal.StartDateTime),this.flightDeal.EndDateTime=new Date(this.flightDeal.EndDateTime)}getCurrencySymbol(){this.currencySymbol=this.currencySV.getCurrencySymbol(this.flightDeal.Currency)}generateFlightCardUrl(){let e=`${window.location.protocol}//${window.location.host}`,n=B.FLIGHT+`/${this.flightDeal.OriginCode}-${this.flightDeal.DestinationCode}/1-0-0/All/${this.departureDate}/1`;return`${e}${n}`}selectDepartureDate(e){this.departureDate=e?(0,je.default)(e).format("y-M-D"):null}navigateToAvailable(){if(this.departureDate){let e=this.generateFlightCardUrl();window.open(e,"_blank")}}openGallery(){let e=this.modalService.open(Ae,{animation:!0,backdrop:"static",scrollable:!1,size:"lg"}),n=[...this.flightDeal.Images.map(i=>i.ImageURL)];e.componentInstance.images=n}onBook(){this.openDatePickerEvent.emit(this.flightDeal)}static \u0275fac=function(n){return new(n||t)(O(Pe),O(Q))};static \u0275cmp=P({type:t,selectors:[["app-flight-deal-card"]],inputs:{flightDeal:"flightDeal",openCalendeOutSide:"openCalendeOutSide"},outputs:{openDatePickerEvent:"openDatePickerEvent"},decls:54,vars:23,consts:[["content",""],[1,"bg-dark","rounded-10","border","border-secondary-500"],[1,"cursor","position-relative","picsum-img-wrapper","col-12",3,"click"],["alt","",1,"h-100","w-100","rounded-10","aircraft",3,"src"],[1,"overlay-icon","position-absolute"],[1,"rounded-circle","bg-white","p-3","d-flex"],[1,"icon-gallery","fs-32"],[1,"d-grid","gap-3","p-3"],[1,"text-white","fs-14","fw-semibold"],[1,"d-grid","gap-2"],[1,"row"],[1,"col-4"],[1,"fs-18","text-white","fw-semibold","d-block","text-truncate"],[1,"fs-14","text-white","d-block","text-truncate"],[1,"col-4","text-center","p-0"],[1,"d-flex","justify-content-center"],[1,"fs-10","text-white","px-2","py-1","bg-secondary-500","rounded-10"],[1,"d-flex","gap-1","align-items-center"],[1,"p-1","rounded-circle","bg-white"],[1,"dashed-line","w-100"],[1,"icon-plane-bold","fs-16","text-white"],[1,"col-4","text-end"],[1,"d-flex","justify-content-between","align-items-center"],[1,"fs-20","fw-bold","text-primary-500"],[1,"d-flex","justify-content-between","align-items-end","p-3","bg-secondary-500","rounded-bottom-4"],[1,"d-flex","flex-column","align-items-start","gap-1"],[4,"ngIf"],[1,"d-flex","align-items-center","gap-1"],[1,"text-white","fs-24","fw-bold"],[1,"text-white","fs-24","fw-bold","lh-1"],[1,"d-flex","flex-column","align-items-lg-end","justify-content-between","gap-3"],[1,"icon-information-bold","text-primary","fs-16"],[1,"fs-14","text-white","fw-bold","fw-md-normal"],["class","cursor",3,"disablePrevDays","theme","template","startDate","endDate","positionAuto","selectedDepartureDate","confirm",4,"ngIf"],[1,"position-relative","d-flex","align-items-center","gap-1"],[1,"line-through"],[1,"text-secondary-200","fs-16"],[1,"text-decoration-none","btn-new","fw-bold","fs-14","px-3","rounded-5","text-center","cursor",3,"click"],[1,"curs
1or",3,"selectedDepartureDate","confirm","disablePrevDays","theme","template","startDate","endDate","positionAuto"],[1,"text-decoration-none","btn-new","fw-bold","fs-16","rounded-5"],[1,"fs-14"]],template:function(n,i){if(n&1){let d=D();r(0,"div",1)(1,"div",2),u("click",function(){return _(d),h(i.openGallery())}),v(2,"img",3),r(3,"div",4)(4,"div",5),v(5,"i",6),o()()(),r(6,"div",7)(7,"span",8),c(8),o(),r(9,"div",9)(10,"div",10)(11,"div",11)(12,"span",12),c(13),o(),r(14,"span",13),c(15),o()(),r(16,"div",14)(17,"div",15)(18,"span",16),c(19),o()(),r(20,"div",17),v(21,"span",18)(22,"span",19)(23,"i",20),o()(),r(24,"div",21)(25,"span",12),c(26),o(),r(27,"span",13),c(28),o()()(),r(29,"div",22)(30,"span",23),c(31),o(),r(32,"span",23),c(33),o()()()(),r(34,"div",24)(35,"div",25),x(36,Ke,8,4,"ng-container",26),r(37,"div",27)(38,"span",28),c(39),o(),r(40,"span",29),c(41),m(42,"number"),o()()(),r(43,"div",30)(44,"div",27),v(45,"i",31),r(46,"span",32),c(47),m(48,"translate"),m(49,"date"),o()(),x(50,Ye,4,3,"div",26)(51,Je,1,6,"app-datepicker-range",33)(52,We,4,3,"ng-template",null,0,F),o()()()}n&2&&(l(2),a("src",i.flightDeal.AirplaneImage,ce),l(6),f(i.flightDeal.AirplaneName),l(5),C(" ",i.flightDeal.OriginName," "),l(2),C(" ",i.flightDeal.OriginLocationName," "),l(4),C(" ",i.flightDeal.Duration," "),l(7),C(" ",i.flightDeal.DestinationName," "),l(2),C(" ",i.flightDeal.DestinationLocationName," "),l(3),C(" ",i.flightDeal.DepartureTime," "),l(2),C(" ",i.flightDeal.ArrivalTime," "),l(3),a("ngIf",i.flightDeal.DiscountCode),l(3),f(i.currencySymbol),l(2),f(g(42,16,i.flightDeal.NewPrice)),l(6),fe("",g(48,18,"label.onlyUntil")," ",_e(49,20,i.flightDeal.EndDateTime,"MMM d"),""),l(3),a("ngIf",i.openCalendeOutSide),l(),a("ngIf",!i.openCalendeOutSide))},dependencies:[E,H,xe,ue,I],styles:[".picsum-img-wrapper[_ngcontent-%COMP%]   .aircraft[_ngcontent-%COMP%]{transition:.3s;object-fit:cover;height:230px!important}@media (max-width: 768px){.picsum-img-wrapper[_ngcontent-%COMP%]   .aircraft[_ngcontent-%COMP%]{height:194px!important}}.picsum-img-wrapper[_ngcontent-%COMP%]:hover   .overlay-icon[_ngcontent-%COMP%]{opacity:1}.picsum-img-wrapper[_ngcontent-%COMP%]:hover   .aircraft[_ngcontent-%COMP%]{filter:brightness(.4)}.picsum-img-wrapper[_ngcontent-%COMP%]   .overlay-icon[_ngcontent-%COMP%]{opacity:0;transition:.3s;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%)}.picsum-img-wrapper[_ngcontent-%COMP%]   .aircraft-name[_ngcontent-%COMP%]{background-color:#1a1a1a80}.dashed-line[_ngcontent-%COMP%]{border-top:1px dashed var(--white)}.line-through[_ngcontent-%COMP%]{width:100%;height:100%;border-top:2px red solid;position:absolute;transform:translateY(50%);rotate:-4deg}.dashed-vartical[_ngcontent-%COMP%]{height:53%;display:block;border:1px var(--white) dashed}@media (max-width: 768px){.fw-md-normal[_ngcontent-%COMP%]{font-weight:400!important}.fw-md-semibold[_ngcontent-%COMP%]{font-weight:600!important}.fs-24[_ngcontent-%COMP%]{font-size:16px!important}}"]})}return t})();var Ne=(()=>{class t extends q{httpGet(e,n){return this.restClient.get(q.getBaseServer()+e,n)}httpPost(e,n,i){return this.restClient.post(q.getBaseServer()+e,n,i)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=se(t)))(i||t)}})();static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var T=(()=>{class t extends Se{currencySV;translatorSV;store;http;_searchOptionResponse=[];_searchOptionRequest;constructor(e,n,i,d){super(e,n,i),this.currencySV=e,this.translatorSV=n,this.store=i,this.http=d}SearchDeal(e=0){return this.http.httpPost("Travel/Flight/SearchFlightDeals",this.generateSearchDealRequest(e)).pipe(ne(n=>n?(n.ResultObject?.ResultOptions&&(this._searchOptionResponse=n.ResultObject?.ResultOptions),n.ResultObject):null),le(()=>ie(null)))}generateSearchDealRequest(e){return this.generateRequestObject(we.Flight,{IFrameCode:null,PagingRequest:null,ResultCount:e>0?e:10,RequestOptions:this._searchOptionRequest??null},this._requestID)}setSort(e){let n=this._searchOptionResponse[0];return n.SortedItems=e,this.setOptions(),e}setFilter(e){let n=this._searchOptionResponse[0];return n.FilteredItems=e,this.setOptions(),e}setOptions(){this._searchOptionRequest={Key:this._searchOptionResponse[0].Key,FilterableItems:this._searchOptionResponse[0].FilteredItems,SortableItem:this._searchOptionResponse[0].SortedItems??null}}static \u0275fac=function(n){return new(n||t)(j(Q),j(Ce),j(De),j(Ne))};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var V=function(t){return t.Prices="Prices",t.DepartureTime="DepartureTime",t.ArrivalTime="ArrivalTime",t.Duration="Duration",t}(V||{}),$=function(t){return t.Asc="Asc",t.Desc="Desc",t}($||{});var R=t=>[t],$e=t=>({option:t});function Ze(t,p){if(t&1&&(r(0,"div",24)(1,"span",25),c(2),o(),r(3,"span",25),c(4),o()()),t&2){let e=p.data;l(2),f(e.Description),l(2),f(e.ValueDisplay)}}function et(t,p){if(t&1){let e=D();r(0,"select2",23),m(1,"translate"),m(2,"convert2select2"),u("update",function(i){_(e);let d=s();return h(d.onSelectOrigin(i))}),x(3,Ze,5,2,"ng-template",null,0,F),o()}if(t&2){let e=y(4),n=s();a("ngClass",S(9,R,n.selectedOrigin?"active":""))("placeholder",g(1,5,"label.origin"))("data",g(2,7,n.filterOption.Origins))("templates",S(11,$e,e))("resettable",!0)}}function tt(t,p){if(t&1&&(r(0,"div",24)(1,"span",25),c(2),o(),r(3,"span",25),c(4),o()()),t&2){let e=p.data;l(2),f(e.Description),l(2),f(e.ValueDisplay)}}function it(t,p){if(t&1){let e=D();r(0,"select2",23),m(1,"translate"),m(2,"convert2select2"),u("update",function(i){_(e);let d=s();return h(d.onSelectDestination(i))}),x(3,tt,5,2,"ng-template",null,1,F),o()}if(t&2){let e=y(4),n=s();a("ngClass",S(9,R,n.selectedDestination?"active":""))("placeholder",g(1,5,"label.destination"))("data",g(2,7,n.filterOption.Destinations))("templates",S(11,$e,e))("resettable",!0)}}function nt(t,p){t&1&&(r(0,"span",26),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"label.recommended")))}function lt(t,p){t&1&&(r(0,"span",26),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"label.cheapest")))}function rt(t,p){t&1&&(r(0,"span",17),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"label.recommended")))}function ot(t,p){t&1&&(r(0,"span",17),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"label.cheapest")))}function at(t,p){if(t&1){let e=D();r(0,"i",27),u("click",function(){_(e);let i=s();return h(i.clearSort())}),o()}}var Z=(()=>{class t{flightDealSV;filterOption;selectedSort;searchDataEvent=new k;filterLoading=new k;selectedOrigin;selectedDestination;selectedFilter={Destinations:[],Origins:[]};SortEnum=$;FlightDealSortableEnum=V;constructor(e){this.flightDealSV=e}filter(){this.filterLoading.emit(!0),this.flightDealSV.SearchDeal().subscribe({next:e=>{this.searchDataEvent.emit(e),this.filterLoading.emit(!1)},error:e=>{this.searchDataEvent.emit(null),this.filterLoading.emit(!1)}})}onSelectOrigin(e){this.selectedFilter.Origins=[],e.options?this.selectedOrigin==e.options[0]?.data.Value?this.selectedOrigin="":(this.selectedFilter.Origins.push(e.options[0]?.data),this.selectedOrigin=e.options[0]?.data.Value):this.selectedOrigin="",this.flightDealSV.setFilter(this.selectedFilter),this.filter()}onSelectDestination(e){this.selectedFilter.Destinations=[],e.options?this.selectedDestination==e.options[0]?.data.Value?this.selectedDestination="":(this.selectedFilter.Destinations.push(e.options[0]?.data),this.selectedDestination=e.options[0]?.data.Value):this.selectedDestination="",this.flightDealSV.setFilter(this.selectedFilter),this.filter()}toggleSort(e,n){this.flightDealSV.setSort({Prices:e===V.Prices?{Title:e,SortOrder:n}:null}),this.filter()}clearSort(){this.flightDealSV.setSort(null),this.filter()}static \u0275fac=function(n){return new(n||t)(O(T))};static \u0275cmp=P({type:t,selectors:[["app-flight-deal-filter"]],inputs:{filterOption:"filterOption",selectedSort:"selectedSort"},outputs:{searchDataEvent:"searchDataEvent",filterLoading:"filterLoading"},decls:42,vars:37,consts:[["originOption",""],["destinationOption",""],[1,"d-flex","flex-lg-row","flex-row-reverse","align-items-center","justify-content-end","justify-content-lg-between","pb-4","gap-2"],[1,"d-flex","gap-3","gap-md-2","gap-lg-3"],["class","w-auto disable-search",3,"ngClass","placeholder","data","templates","resettable","update",4,"ngIf"],["id","sort-by"],[1,"d-none","d-lg-flex"],[1,"fs-16","lh-1","me-md-3","text-end","text-nowrap","text-white","p-md-12","d-block"],["ngbDropdown",""],["type","button","id","dropdownSort","ngbDropdownToggle","",1,"d-flex","align-items-center","dropdown-toggle","px-3","py-2","rounded-5","text-start","w-auto"],["class","fs-14 lh-1 ps-2 text-start text-white",4,"ngIf"],[1,"icon-chevron-down","ms-5","text-white"],["ngbDropdownMenu","","aria-labelledby","dropdownSort",1,"p-0","rounded-ten","overflow-hidden","border-0","dropdown-items","w-100"],[1,"list-unstyled","d-flex","m-0","flex-column","text-black"],[1,"dropdown-item","fs-13","cursor",3,"click","ngClass"],[1,"d-flex","d-lg-none","gap-2"],["ngbDropdownToggle","",1,"d-flex","align-items-center","gap-1","bg-secondary-500","rounded-5"],[1,"text-white","fs-14"],[1,"icon-sort","text-white","fs-18"],["id","dropdownSort",1,"rounded-5","d-flex","align-items-center"],[1,"d-flex","align-items-center","gap-1"],["class","text-white fs-14",4,"ngIf"],["class","icon-close text-white fs-18",3,"click",4,"ngIf"],[1,"w-auto","disable-search",3,"update","ngClass","placeholder","data","templates","resettable"],[1,"d-flex","justify-content-between","gap-3"],[1,"fs-14"],[1,"fs-14","lh-1","ps-2","text-start","text-white"],[1,"icon-close","text-white","fs-18",3,"click"]],template:function(n,i){n&1&&(r(0,"div",2)(1,"div",3),x(2,et,5,13,"select2",4)(3,it,5,13,"select2",4),o(),r(4,"div",5)(5,"div",6)(6,"span",7),c(7),m(8,"translate"),o(),r(9,"div",8)(10,"button",9),x(11,nt,3,3,"span",10)(12,lt,3,3,"span",10),v(13,"i",11),o(),r(14,"div",12)(15,"ul",13)(16,"li",14),u("click",function(){return i.clearSort()}),c(17),m(18,"translate"),o(),r(19,"li",14),u("click",function(){return i.toggleSort(i.FlightDealSortableEnum.Prices,i.SortEnum.Asc)}),c(20),m(21,"translate"),o()()()()(),r(22,"div",15)(23,"div",8)(24,"div",16)(25,"span",17),c(26),m(27,"translate"),o(),v(28,"i",18),o(),r(29,"div",12)(30,"ul",13)(31,"li",14),u("click",function(){return i.clearSort()}),c(32),m(33,"translate"),o(),r(34,"li",14),u("click",function(){return i.toggleSort(i.FlightDealSortableEnum.Prices,i.SortEnum.Asc)}),c(35),m(36,"translate"),o()()()(),r(37,"div",19)(38,"div",20),x(39,rt,3,3,"span",21)(40,ot,3,3,"span",21)(41,at,1,0,"i",22),o()()()()()),n&2&&(l(2),a("ngIf",i.filterOption==null||i.filterOption.Origins==null?null:i.filterOption.Origins.length),l(),a("ngIf",i.filterOption==null||i.filterOption.Destinations==null?null:i.filterOption.Destinations.length),l(4),C("",g(8,17,"label.sortBy"),":"),l(4),a("ngIf",!i.selectedSort.Prices),l(),a("ngIf",(i.selectedSort.Prices==null?null:i.selectedSort.Prices.SortOrder)===i.SortEnum.Asc),l(4),a("ngClass",S(29,R,i.selectedSort.Prices?"bg-dark text-white":"selected")),l(),f(g(18,19,"label.recommended")),l(2),a("ngClass",S(31,R,(i.selectedSort.Prices==null?null:i.selectedSort.Prices.SortOrder)===i.SortEnum.Asc?"selected":"bg-dark text-white")),l(),f(g(21,21,"label.cheapest")),l(6),f(g(27,23,"label.sort")),l(5),a("ngClass",S(33,R,i.selectedSort.Prices?"bg-dark text-white":"selected")),l(),f(g(33,25,"label.recommended")),l(2),a("ngClass",S(35,R,(i.selectedSort.Prices==null?null:i.selectedSort.Prices.SortOrder)===i.SortEnum.Asc?"selected":"bg-dark text-white")),l(),f(g(36,27,"label.cheapest")),l(4),a("ngIf",!i.selectedSort.Prices),l(),a("ngIf",(i.selectedSort.Prices==null?null:i.selectedSort.Prices.SortOrder)===i.SortEnum.Asc),l(),a("ngIf",(i.selectedSort.Prices==null?null:i.selectedSort.Prices.SortOrder)===i.SortEnum.Asc))},dependencies:[U,E,Oe,Fe,ye,Ie,I,Te],styles:['[_nghost-%COMP%]     :root{--select2-option-selected-background: var(--bg-dark)}
1[_nghost-%COMP%]     select2{min-width:200px;background-color:var(--bg-dark)}[_nghost-%COMP%]     select2.active .select2-selection .select2-selection__rendered span:first-child{display:block!important;color:var(--primary-500);font-weight:700}[_nghost-%COMP%]     select2.active .select2-selection .select2-selection__placeholder.select2-selection__placeholder__option{display:block!important;font-size:10px!important}[_nghost-%COMP%]     select2 .select2.select2-container{min-width:140px!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown{margin-top:8px!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown:before{content:none}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown--below{width:fit-content!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown{border:none!important;border-radius:8px!important;background:var(--secondary-500)}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option{background-color:var(--bg-dark);border:none!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option[aria-selected=true]{background:var(--secondary-500)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option[aria-selected=true] * :first-child{color:var(--primary-500)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option[aria-selected=true] * :nth-child(2){color:var(--text-primary)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option:not([aria-selected=true]){background:var(--bg-dark)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option:not([aria-selected=true]) * :first-child{color:var(--white)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option:not([aria-selected=true]) * :nth-child(2){color:var(--secondary-100)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__option:not([aria-selected=true]):hover{background:var(--secondary-500)!important}[_nghost-%COMP%]     select2 .select2 .select2-container-dropdown .select2-dropdown .select2-results__options{max-height:250px!important;background:var(--secondary-500)!important}[_nghost-%COMP%]     select2 .select2 .select2-selection{height:48px!important;background-color:var(--secondary-500)!important;align-items:center}[_nghost-%COMP%]     select2 .select2 .select2-selection.select2-selection--single{border:0!important;border-radius:8px!important;cursor:pointer;display:flex;align-items:center}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__rendered{padding:8px 16px!important;font-size:14px;display:flex!important;flex-direction:column-reverse;align-items:flex-start;justify-content:center;line-height:normal!important}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__rendered span:first-child{display:none}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__rendered div span:last-child{display:none}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__placeholder{color:var(--white-smoke)!important;font-size:14px!important;font-weight:400!important;margin:0!important;padding-right:0!important}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__placeholder__option{display:block!important}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__arrow{font-family:icomoon;font-size:10px!important;-webkit-font-smoothing:antialiased;display:flex!important;font-style:inherit;font-variant:normal;text-rendering:auto;line-height:1;font-weight:600;padding-inline-end:16px}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__arrow:before{content:"\\e904"!important;border:0!important;width:auto!important;height:auto!important;color:var(--white);font-size:16px}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__reset{background-color:var(--secondary-400)!important;border-radius:50%!important;color:var(--white-smoke)!important;margin-right:8px!important;font-size:16px!important;width:24px!important}@media screen and (min-width: 1025px){[_nghost-%COMP%]     select2:first-child .select2 .select2-selection:before{content:"\\e91c";color:var(--bs-white);font-family:icomoon;margin-left:16px;font-size:20px}[_nghost-%COMP%]     select2:nth-child(2) .select2 .select2-selection:before{content:"\\e91f";
1color:var(--bs-white);font-family:icomoon;margin-left:16px;font-size:20px}}#sort-by[_ngcontent-%COMP%]     .dropdown-toggle:after{display:none}#sort-by[_ngcontent-%COMP%]     .select2-selection{height:auto!important;background-color:var(--white)!important}#sort-by[_ngcontent-%COMP%]     .select2-selection.select2-selection--single{border-radius:0!important;border:none!important;border-bottom:1px solid var(--first-color)!important;width:180px}#sort-by[_ngcontent-%COMP%]     .select2-selection .select2-selection__rendered{padding:8px 0!important;line-height:1!important;display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center}#sort-by[_ngcontent-%COMP%]     .select2-selection .select2-selection__rendered span:first-child{color:var(--first-color);font-size:14px;font-weight:400}#sort-by[_ngcontent-%COMP%]     .select2-selection .select2-selection__placeholder{font-size:12px!important;padding-right:8px!important}#sort-by[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{background-color:var(--bg-dark)}#sort-by[_ngcontent-%COMP%]   .dropdown-menu.show[_ngcontent-%COMP%]{margin-top:8px!important}#sort-by[_ngcontent-%COMP%]   .dropdown-menu.show[_ngcontent-%COMP%]:before{content:none!important}#sort-by[_ngcontent-%COMP%]   #dropdownSort[_ngcontent-%COMP%]{background-color:var(--primary-900);border:1px solid var(--primary-700)}#sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]{white-space:nowrap}#sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]{padding:12px 16px!important}#sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]   .avtive[_ngcontent-%COMP%], #sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:active{background-color:var(--bg-dark)!important}#sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:hover, #sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item[_ngcontent-%COMP%]:focus{color:none!important;background-color:var(--secondary-500)}#sort-by[_ngcontent-%COMP%]   .dropdown-items[_ngcontent-%COMP%]   .dropdown-item.selected[_ngcontent-%COMP%]{color:var(--primary-500);background-color:var(--secondary-500)}@media screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]     select2{min-width:fit-content!important}[_nghost-%COMP%]     select2 .dropdown-item{padding:6px 12px!important}[_nghost-%COMP%]     select2 .select2.select2-container.select2-container--below{min-width:auto!important}[_nghost-%COMP%]     select2 .select2 .select2-selection{height:48px!important}[_nghost-%COMP%]     select2 .select2 .select2-selection .select2-selection__rendered{padding:6px 12px!important}#dropdownSort[_ngcontent-%COMP%], .dropdown-toggle[_ngcontent-%COMP%]{height:48px!important;padding:6px 12px!important}label.text-end.d-lg-none[_ngcontent-%COMP%]:after{content:url("./media/sort-icon-QQFAYPI2.svg");margin-left:.5rem}}']})}return t})();var ct=["list"],W=t=>[t],ze=t=>({"bg-secondary-500 rounded-5":t});function pt(t,p){t&1&&(r(0,"span"),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"button.clear")))}function dt(t,p){t&1&&(r(0,"div",12),v(1,"i",13),o())}function mt(t,p){t&1&&(r(0,"span"),c(1),m(2,"translate"),o()),t&2&&(l(),f(g(2,1,"button.done")))}function gt(t,p){t&1&&(r(0,"div",14),v(1,"i",13),o())}function ft(t,p){if(t&1){let e=D();b(0),r(1,"div",7)(2,"button",8),u("click",function(){_(e);let i=s();return h(i.clear())}),x(3,pt,3,3,"span",6)(4,dt,2,0,"div",9),o(),r(5,"button",10),u("click",function(){_(e);let i=s();return h(i.onConfirm())}),x(6,mt,3,3,"span",6)(7,gt,2,0,"div",11),o()(),w()}if(t&2){let e=s();l(2),a("disabled",e.loading),l(),a("ngIf",!e.clearLoading),l(),a("ngIf",e.clearLoading),l(),a("disabled",e.loading),l(),a("ngIf",!e.confirmLoading),l(),a("ngIf",e.confirmLoading)}}function _t(t,p){if(t&1&&(r(0,"span",35),c(1),o()),t&2){let e=s(2);l(),f(e.selectedOrigin.ValueDisplay)}}function ht(t,p){if(t&1){let e=D();r(0,"div",36),u("click",function(i){_(e);let d=s(2);return i.stopPropagation(),h(d.onClearOrigin())}),v(1,"i",18),o()}}function ut(t,p){if(t&1&&(r(0,"span",35),c(1),o()),t&2){let e=s(2);l(),f(e.selectedDestination.ValueDisplay)}}function xt(t,p){if(t&1){let e=D();r(0,"div",36),u("click",function(i){_(e);let d=s(2);return i.stopPropagation(),h(d.onClearDestination())}),v(1,"i",18),o()}}function vt(t,p){if(t&1){let e=D();r(0,"div",15)(1,"span",16),c(2),m(3,"translate"),o(),r(4,"div",17),u("click",function(){_(e);let i=s();return h(i.closeFilter())}),v(5,"i",18),o()(),r(6,"span",19),c(7),m(8,"translate"),o(),r(9,"div",20)(10,"div",21),u("click",function(){_(e);let i=s(),d=y(7);return h(i.loadTemplate(d))}),r(11,"div",22),v(12,"i",23),r(13,"span",24),c(14),m(15,"translate"),o()(),r(16,"div",25),x(17,_t,2,1,"span",26)(18,ht,2,0,"div",27),v(19,"i",28),o()(),r(20,"div",21),u("click",function(){_(e);let i=s(),d=y(9);return h(i.loadTemplate(d))}),r(21,"div",22),v(22,"i",29),r(23,"span",24),c(24),m(25,"translate"),o()(),r(26,"div",25),x(27,ut,2,1,"span",26)(28,xt,2,0,"div",27),v(29,"i",28),o()()(),r(30,"span",30),c(31),m(32,"translate"),o(),r(33,"div",31)(34,"div",32)(35,"label",33)(36,"input",34),u("change",function(){_(e);let i=s();return h(i.clearSort())}),o(),c(37),m(38,"translate"),o()(),r(39,"div",32)(40,"label",33)(41,"input",34),u("change",function(){_(e);let i=s();return h(i.toggleSort(i.FlightDealLegSortableEnum.Prices,i.SortEnum.Asc))}),o(),c(42),m(43,"translate"),o()()()}if(t&2){let e=s();l(2),f(g(3,15,"label.sortAndFilter")),l(5),C("",g(8,17,"label.filterBy"),":"),l(7),f(g(15,19,"label.origin")),l(3),a("ngIf",e.selectedOrigin),l(),a("ngIf",e.selectedOrigin),l(6),f(g(25,21,"label.destination")),l(3),a("ngIf",e.selectedDestination),l(),a("ngIf",e.selectedDestination),l(3),C("",g(32,23,"label.sortBy"),":"),l(4),a("ngClass",S(29,W,e.selectedSort.Prices?"text-secondary-100":"text-primary-500")),l(),a("checked",!e.selectedSort.Prices),l(),C(" ",g(38,25,"label.recommended")," "),l(3),a("ngClass",S(31,W,(e.selectedSort.Prices==null?null:e.selectedSort.Prices.SortOrder)===e.SortEnum.Asc?"text-primary-500":"text-secondary-100")),l(),a("checked",(e.selectedSort.Prices==null?null:e.selectedSort.Prices.SortOrder)===e.SortEnum.Asc),l(),C(" ",g(43,27,"label.cheapest")," ")}}function Dt(t,p){if(t&1){let e=D();b(0),r(1,"div",43),u("click",function(){let i=_(e).$implicit,d=s(2);return h(d.onSelectOrigin(i))}),r(2,"span",44),c(3),o(),r(4,"span",45),c(5),o()(),w()}if(t&2){let e=p.$implicit,n=s(2);l(),a("ngClass",S(4,ze,e==n.selectedOrigin)),l(),a("ngClass",S(6,W,e==n.selectedOrigin?"text-primary-500":"text-white")),l(),C(" ",e.ValueDisplay," "),l(2),f(e.Description)}}function Ct(t,p){if(t&1){let e=D();r(0,"div",37)(1,"div",38),u("click",function(){_(e);let i=s();return h(i.loadTemplate(i.listTemplate))}),v(2,"i",39),o(),r(3,"span",40),c(4),m(5,"translate"),o(),v(6,"div"),o(),r(7,"div",41),x(8,Dt,6,8,"ng-container",42),o()}if(t&2){let e=s();l(4),f(g(5,2,"label.origin")),l(4),a("ngForOf",e.filterOption.Origins)}}function bt(t,p){if(t&1){let e=D();b(0),r(1,"div",43),u("click",function(){let i=_(e).$implicit,d=s(2);return h(d.onSelectDestination(i))}),r(2,"span",44),c(3),o(),r(4,"span",45),c(5),o()(),w()}if(t&2){let e=p.$implicit,n=s(2);l(),a("ngClass",S(4,ze,e==n.selectedDestination)),l(),a("ngClass",S(6,W,e==n.selectedDestination?"text-primary-500":"text-white")),l(),C(" ",e.ValueDisplay," "),l(2),f(e.Description)}}function wt(t,p){if(t&1){let e=D();r(0,"div",37)(1,"div",38),u("click",function(){_(e);let i=s();return h(i.loadTemplate(i.listTemplate))}),v(2,"i",39),o(),r(3,"span",40),c(4),m(5,"translate"),o(),v(6,"div"),o(),r(7,"div",41),x(8,bt,6,8,"ng-container",42),o()}if(t&2){let e=s();l(4),f(g(5,2,"label.destination")),l(4),a("ngForOf",e.filterOption.Destinations)}}var ee=(()=>{class t{flightDealSV;filterOption;filteredItems;searchDataEvent=new k;filterLoading=new k;onClose=new k;selectedSort;listTemplate;SortEnum=$;FlightDealLegSortableEnum=V;loading=!1;clearLoading=!1;confirmLoading=!1;selectedOrigin;selectedDestination;selectedTemplate;selectedFilter;constructor(e){this.flightDealSV=e,this.selectedFilter={Destinations:[],Origins:[]}}ngOnInit(){this.selectedOrigin=this.assignFirstItemIfAvailable(this.filteredItems?.Origins),this.selectedDestination=this.assignFirstItemIfAvailable(this.filteredItems?.De
1stinations),this.selectedOrigin&&this.selectedFilter.Origins.push(this.selectedOrigin),this.selectedDestination&&this.selectedFilter.Destinations.push(this.selectedDestination)}assignFirstItemIfAvailable(e){return e&&e.length>0?e[0]:null}loadTemplate(e){this.selectedTemplate=e}onSelectOrigin(e){this.selectedFilter.Origins=[],this.selectedOrigin==e?this.selectedOrigin=null:(this.selectedFilter.Origins.push(e),this.selectedOrigin=e),this.flightDealSV.setFilter(this.selectedFilter),this.loadTemplate(this.listTemplate)}onClearOrigin(){this.selectedFilter.Origins=[],this.selectedOrigin=null,this.flightDealSV.setFilter(this.selectedFilter)}onSelectDestination(e){this.selectedFilter.Destinations=[],this.selectedDestination==e?this.selectedDestination=null:(this.selectedFilter.Destinations.push(e),this.selectedDestination=e),this.flightDealSV.setFilter(this.selectedFilter),this.loadTemplate(this.listTemplate)}onClearDestination(){this.selectedFilter.Destinations=[],this.selectedDestination=null,this.flightDealSV.setFilter(this.selectedFilter)}onConfirm(){this.confirmLoading=!0,this.filter()}clear(){this.clearLoading=!0,this.selectedOrigin=null,this.selectedDestination=null,this.flightDealSV.setFilter({Destinations:[],Origins:[]}),this.flightDealSV.setSort(null),this.filter()}filter(){this.loading=!0,this.filterLoading.emit(!0),this.flightDealSV.SearchDeal().subscribe({next:e=>{e.ResultOptions||(e.ResultOptions=this.flightDealSV._searchOptionResponse),e.ResultOptions[0].FilteredItems.Destinations[0]=this.selectedDestination,e.ResultOptions[0].FilteredItems.Origins[0]=this.selectedOrigin,this.searchDataEvent.emit(e),this.filterLoading.emit(!1),this.loading=!1,this.confirmLoading?this.confirmLoading=!1:this.clearLoading&&(this.clearLoading=!1),this.closeFilter()},error:e=>{this.searchDataEvent.emit(null),this.filterLoading.emit(!1),this.loading=!1,this.confirmLoading?this.confirmLoading=!1:this.clearLoading&&(this.clearLoading=!1),this.closeFilter()}})}closeFilter(){this.onClose.emit()}toggleSort(e,n){this.flightDealSV.setSort({Prices:e===V.Prices?{Title:e,SortOrder:n}:null}),this.selectedSort={Prices:e===V.Prices?{Title:e,SortOrder:n}:null}}clearSort(){this.flightDealSV.setSort(null),this.selectedSort={Prices:null}}static \u0275fac=function(n){return new(n||t)(O(T))};static \u0275cmp=P({type:t,selectors:[["app-flight-deal-filter-mobile"]],viewQuery:function(n,i){if(n&1&&de(ct,5),n&2){let d;me(d=ge())&&(i.listTemplate=d.first)}},inputs:{filterOption:"filterOption",filteredItems:"filteredItems",selectedSort:"selectedSort"},outputs:{searchDataEvent:"searchDataEvent",filterLoading:"filterLoading",onClose:"onClose"},decls:10,vars:2,consts:[["list",""],["origin",""],["destination",""],[1,"h-100","d-grid","align-content-between"],[1,"p-3"],[3,"ngTemplateOutlet"],[4,"ngIf"],[1,"d-flex","p-3"],[1,"btn","text-white","fw-bold","fs-14","border-0","w-100","position-relative",3,"click","disabled"],["class","absolute-full d-flex justify-content-center align-items-center",4,"ngIf"],[1,"btn","bg-primary","fs-14","rounded-5","px-5","py-3","fw-bold","fs-14","w-100","position-relative",3,"click","disabled"],["class","absolute-full d-flex justify-content-center align-items-center rounded-1 bg-primary",4,"ngIf"],[1,"absolute-full","d-flex","justify-content-center","align-items-center"],[1,"icon-loading","loader"],[1,"absolute-full","d-flex","justify-content-center","align-items-center","rounded-1","bg-primary"],[1,"d-flex","justify-content-between","mb-4"],[1,"fs-18","fw-semibold","text-white"],[1,"d-flex","align-items-center",3,"click"],[1,"icon-close-circle-bold","fs-28","text-secondary-200","d-block"],[1,"fs-16","fw-semibold","text-white","mb-3","d-block"],[1,"d-grid","gap-4"],[1,"d-flex","justify-content-between","align-items-center","bg-secondary-500","text-secondary-100","rounded-10","p-3",3,"click"],[1,"d-flex","gap-2","align-items-center"],[1,"icon-direction"],[1,"fs-14"],[1,"d-flex","gap-3","align-items-center"],["class","fs-12 text-white bg-primary-700 px-1 rounded-1 fw-semibold",4,"ngIf"],["class","text-white-smoke rounded-circle",3,"click",4,"ngIf"],[1,"icon-chevron-right","text-secondary-100"],[1,"icon-location"],[1,"fs-16","fw-semibold","text-white","mb-3","mt-4","d-block"],[1,"d-grid","gap-3"],[1,"d-flex","justify-content-between"],[1,"form-check-label","fs-16","fw-semibold","d-flex","align-items-center","gap-2",3,"ngClass"],["type","checkbox",1,"form-check-input","no-focus","m-0","bg-secondary-500",3,"change","checked"],[1,"fs-12","text-white","bg-primary-700","px-1","rounded-1","fw-semibold"],[1,"text-white-smoke","rounded-circle",3,"click"],[1,"d-flex","justify-content-between","pb-3","mb-2"],[1,"d-flex","align-items-center","bg-dark-gray","text-white","rounded-circle",3,"click"],[1,"icon-chevron-left"],[1,"fs-18","fw-bold","text-secondary-100"],[1,"d-grid","gap-1","mvh-90","overflow-scroll","pb-4"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","p-2",3,"click","ngClass"],[1,"fs-16","fw-semibold","d-flex","align-items-center","gap-2",3,"ngClass"],[1,"fs-14","text-secondary-200"]],template:function(n,i){n&1&&(r(0,"div",3)(1,"div",4),pe(2,5),o(),x(3,ft,8,6,"ng-container",6),o(),x(4,vt,44,33,"ng-template",null,0,F)(6,Ct,9,4,"ng-template",null,1,F)(8,wt,9,4,"ng-template",null,2,F)),n&2&&(l(2),a("ngTemplateOutlet",i.selectedTemplate||i.listTemplate),l(
1),a("ngIf",!i.selectedTemplate||i.selectedTemplate==i.listTemplate))},dependencies:[U,A,E,he,I],styles:[".form-check-input[_ngcontent-%COMP%]{height:24px;width:24px;border-radius:8px;border:none}.form-check-input[_ngcontent-%COMP%]:checked{background-color:var(--primary-500)!important;border-color:var(--primary-500)!important}.loader[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.mvh-90[_ngcontent-%COMP%]{max-height:90dvh}"]})}return t})();function yt(t,p){if(t&1){let e=D();r(0,"app-flight-deal-filter",9),u("searchDataEvent",function(i){_(e);let d=s();return h(d.handleSearchData(i))})("filterLoading",function(i){_(e);let d=s();return h(d.filterLoading(i))}),o()}if(t&2){let e=s();a("filterOption",e.filterOption)("selectedSort",e.sortOption)}}function Ft(t,p){t&1&&v(0,"div",15)}function Ot(t,p){if(t&1){let e=D();b(0,10),r(1,"div",11),u("click",function(){_(e);let i=s(),d=y(12);return h(i.openFilter(d))}),r(2,"div",12),v(3,"i",13),o(),x(4,Ft,1,0,"div",14),o(),w()}if(t&2){let e=s();l(4),a("ngIf",e.filteredItemsValue.length)}}function Pt(t,p){if(t&1&&(b(0),r(1,"div",18),v(2,"app-flight-deal-card",19),o(),w()),t&2){let e=p.$implicit;l(2),a("flightDeal",e)}}function Et(t,p){if(t&1&&(b(0),x(1,Pt,3,1,"ng-container",17),w()),t&2){let e=s(2);l(),a("ngForOf",e.flightDeals)}}function It(t,p){t&1&&(b(0),r(1,"div",20)(2,"div",21)(3,"span"),c(4),m(5,"translate"),o()()(),w()),t&2&&(l(4),C(" ",g(5,1,"message.emptyFlightDeal")," "))}function kt(t,p){if(t&1&&(b(0),r(1,"div",16),x(2,Et,2,1,"ng-container",8)(3,It,6,3,"ng-container",8),o(),w()),t&2){let e=s();l(2),a("ngIf",(e.flightDeals==null?null:e.flightDeals.length)>0),l(),a("ngIf",!e.flightDeals||(e.flightDeals==null?null:e.flightDeals.length)==0)}}function Mt(t,p){t&1&&(b(0),v(1,"app-loading",22),w()),t&2&&(l(),a("theme","dark"))}function Tt(t,p){if(t&1){let e=D();r(0,"app-flight-deal-filter-mobile",25),u("searchDataEvent",function(i){_(e);let d=s(2);return h(d.handleSearchData(i))})("filterLoading",function(i){_(e);let d=s(2);return h(d.filterLoading(i))})("onClose",function(){_(e);let i=s(2);return h(i.closeFilter())}),o()}if(t&2){let e=s(2);a("filterOption",e.filterOption)("selectedSort",e.sortOption)("filteredItems",e.filteredItems)}}function Vt(t,p){if(t&1&&(r(0,"div",23),x(1,Tt,1,3,"app-flight-deal-filter-mobile",24),o()),t&2){let e=s();l(),a("ngIf",e.filterOption)}}var Lt=(()=>{class t{flightDealSV;flightDeals=[];loading=!1;filterOption;sortOption;filteredItems;filteredItemsValue=[];offcanvasService=oe(Ee);constructor(e){this.flightDealSV=e}ngOnInit(){this.flightDealSV._searchOptionResponse=[],this.flightDealSV._searchOptionRequest=null,this.getFlightDeals()}getFlightDeals(){this.loading=!0,this.flightDealSV.SearchDeal().subscribe(e=>{e&&(this.flightDeals=e?.FlightDealsList,e.ResultOptions&&e.ResultOptions.length>0?(this.filterOption=e.ResultOptions[0].FilterableItems,this.sortOption=e.ResultOptions[0].SortedItems):(this.filterOption=null,this.sortOption=null)),this.loading=!1})}handleSearchData(e){this.flightDeals=e?.FlightDealsList??[],this.filteredItems=e?.ResultOptions[0]?.FilteredItems??null,this.sortOption=e?.ResultOptions[0]?.SortedItems,this.filteredItemsValue=[],this.filteredItems?.Origins?.filter(n=>{n&&this.filteredItemsValue.push(n.Value)}),this.filteredItems?.Destinations?.filter(n=>{n&&this.filteredItemsValue.push(n.Value)})}filterLoading(e){this.loading=e}openFilter(e){this.offcanvasService.open(e,{position:"bottom",panelClass:"bg-dark h-100"})}closeFilter(){this.offcanvasService.dismiss()}static \u0275fac=function(n){return new(n||t)(O(T))};static \u0275cmp=P({type:t,selectors:[["app-flight-deal-list"]],decls:13,vars:7,consts:[["content",""],[1,"bg-dark"],[1,"container"],[1,"row","justify-content-center","pb-5"],[1,"d-flex","d-md-block","justify-content-between","align-items-center","mt-2","mt-md-4","pt-md-2","mb-4","mb-md-0"],[1,"fs-24","fw-semibold","mb-0","mb-md-3","text-white"],["class","d-none d-md-block ms-auto",3,"filterOption","selectedSort","searchDataEvent","filterLoading",4,"ngIf"],["class","d-block d-md-none",4,"ngIf"],[4,"ngIf"],[1,"d-none","d-md-block","ms-auto",3,"searchDataEvent","filterLoading","filterOption","selectedSort"],[1,"d-block","d-md-none"],[1,"position-relative",3,"click"],[1,"d-md-none","d-flex","text-first","px-2"],[1,"icon-filter"],["class","position-absolute rounded-circle d-md-none active-badge",4,"ngIf"],[1,"position-absolute","rounded-circle","d-md-none","active-badge"],[1,"row","p-0"],[4,"ngFor","ngForOf"],[1,"col-12","col-lg-4","mb-4"],[3,"flightDeal"],[1,"py-5","my-5"],[1,"text-center","text-white","bg-secondary-500","py-4","rounded-7","my-5","col-md-9","mx-auto","col-12"],[3,"theme"],[1,"h-100"],[3,"filterOption","selectedSort","filteredItems","searchDataEvent","filterLoading","onClose",4,"ngIf"],[3,"searchDataEvent","filterLoading","onClose","filterOption","selectedSort","filteredItems"]],template:function(n,i){n&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h1",5),c(5),m(6,"translate"),o(),x(7,yt,1,2,"app-flight-deal-filter",6)(8,Ot,5,1,"ng-container",7),o(),x(9,kt,4,2,"ng-container",8)(10,Mt,2,1,"ng-container",8),o()()(),x(11,Vt,2,1,"ng-template",null,0,F)),n&2&&(l(5),f(g(6,5,"label.flightDeals")),l(2),a("ngIf",i.filterOption),l(),a("ngIf",i.filterOption),l(),a("ngIf",!i.loading),l(
1),a("ngIf",i.loading))},dependencies:[A,E,Me,N,Z,ee,I],styles:[".active-badge[_ngcontent-%COMP%]{width:5px;height:5px;background-color:#ff6565!important;top:8px;right:11px}  .grecaptcha-badge{display:none!important}  .offcanvas.h-100{height:100vh!important}"]})}return t})();var qe=te(ke());var Ue=(()=>{class t{flightDealDataAvailable$=new X(!1);emptyLegDataAvailable$=new X(!1);constructor(){}setFlightDataAvailability(e){this.flightDealDataAvailable$.next(e)}getFlightLegDataAvailability(){return this.flightDealDataAvailable$.asObservable()}setEmptyLegDataAvailability(e){this.emptyLegDataAvailable$.next(e)}getEmptyLegDataAvailability(){return this.emptyLegDataAvailable$.asObservable()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Rt(t,p){if(t&1){let e=D();r(0,"div",11)(1,"app-flight-deal-card",12),u("openDatePickerEvent",function(i){_(e),s(2);let d=y(6),z=s();return h(z.openDatePicker(i,d))}),o()()}if(t&2){let e=p.$implicit;l(),a("flightDeal",e)("openCalendeOutSide",!0)}}function jt(t,p){if(t&1&&(b(0),r(1,"div",9),x(2,Rt,2,2,"div",10),o(),w()),t&2){let e=s(2);l(2),a("ngForOf",e.flightDeals)}}function Bt(t,p){if(t&1){let e=D();r(0,"div",15)(1,"app-flight-deal-card",12),u("openDatePickerEvent",function(i){_(e),s(2);let d=y(6),z=s();return h(z.openDatePicker(i,d))}),o()()}if(t&2){let e=p.$implicit;l(),a("flightDeal",e)("openCalendeOutSide",!0)}}function Nt(t,p){if(t&1&&(r(0,"p-carousel",13),x(1,Bt,2,2,"ng-template",14),o()),t&2){let e=s(2);a("value",e.flightDeals)("circular",!0)("showNavigators",!1)("numVisible",3)("numScroll",1)("responsiveOptions",e.responsiveOptions)}}function $t(t,p){if(t&1&&(r(0,"div",16)(1,"div",17)(2,"a",18)(3,"span",19),c(4),m(5,"translate"),o(),v(6,"i",20),o()()()),t&2){let e=s(2);l(2),a("routerLink",e.routesEnum.FLIGHT_DEALS),l(2),f(g(5,2,"button.SeeMore"))}}function zt(t,p){if(t&1){let e=D();b(0),r(1,"div",3)(2,"span",4),c(3),m(4,"translate"),o(),r(5,"app-datepicker-range",5,0),u("selectedDepartureDate",function(i){_(e);let d=s();return h(d.selectDepartureDate(i))})("confirm",function(){_(e);let i=s();return h(i.navigateToAvailable())}),o()(),r(7,"div",6),x(8,jt,3,1,"ng-container",7)(9,Nt,2,6,"ng-template",null,1,F)(11,$t,7,4,"div",8),o(),w()}if(t&2){let e=y(10),n=s();l(3),f(g(4,9,"label.flightDeals")),l(2),a("disablePrevDays",!0)("theme",n.theme)("startDate",n.selecterFlight==null?null:n.selecterFlight.StartDateTime)("endDate",n.selecterFlight==null?null:n.selecterFlight.EndDateTime)("positionAuto",!0),l(3),a("ngIf",n.flightDeals.length<=3)("ngIfElse",e),l(3),a("ngIf",n.dealTotalCount>=4)}}var Ut=(()=>{class t{flightDealSV;PromotionAvailabilitySV;flightDeals=[];routesEnum=B;dealTotalCount=0;selecterFlight;theme=G.custom;departureDate;responsiveOptions=[];constructor(e,n){this.flightDealSV=e,this.PromotionAvailabilitySV=n,this.responsiveOptions=[{breakpoint:"1226px",numVisible:3,numScroll:1},{breakpoint:"1200px",numVisible:2,numScroll:1},{breakpoint:"560px",numVisible:1,numScroll:1}]}ngOnInit(){this.flightDealSV.SearchDeal(5).subscribe({next:e=>{this.dealTotalCount=e?.PagingInfo?.TotalCount??0,this.flightDeals=e?.FlightDealsList||[],this.PromotionAvailabilitySV.setFlightDataAvailability(this.flightDeals.length>0)},error:e=>{this.PromotionAvailabilitySV.setFlightDataAvailability(!1)}})}openDatePicker(e,n){this.selecterFlight=e,n.openDatePicker()}selectDepartureDate(e){this.departureDate=e?(0,qe.default)(e).format("y-M-D"):null}navigateToAvailable(){if(this.departureDate){let e=this.generateFlightCardUrl();window.open(e,"_blank")}}generateFlightCardUrl(){let e=`${window.location.protocol}//${window.location.host}`,n=B.FLIGHT+`/${this.selecterFlight.OriginCode}-${this.selecterFlight.DestinationCode}/1-0-0/All/${this.departureDate}/1`;return`${e}${n}`}static \u0275fac=function(n){return new(n||t)(O(T),O(Ue))};static \u0275cmp=P({type:t,selectors:[["app-flight-deal-promotion"]],decls:1,vars:1,consts:[["datePicker",""],["dealsSlider",""],[4,"ngIf"],[1,"col-12","text-center","mb-3","pb-3","pt-3"],[1,"fs-32","fw-semibold","text-white","ff-second"],[1,"curs
1or",3,"selectedDepartureDate","confirm","disablePrevDays","theme","startDate","endDate","positionAuto"],[1,"mb-4"],[4,"ngIf","ngIfElse"],["class","row mt-4 mt-md-0",4,"ngIf"],[1,"row","g-3"],["class","col-12 col-lg-4",4,"ngFor","ngForOf"],[1,"col-12","col-lg-4"],[3,"openDatePickerEvent","flightDeal","openCalendeOutSide"],[3,"value","circular","showNavigators","numVisible","numScroll","responsiveOptions"],["pTemplate","item"],[1,"col-12","px-2"],[1,"row","mt-4","mt-md-0"],[1,"d-flex","justify-content-center"],["target","_blank",1,"text-decoration-none","btn-new","d-flex","justify-content-center","align-items-center","gap-2","fw-bold",3,"routerLink"],[1,"fs-16"],[1,"icon-arrow-right"]],template:function(n,i){n&1&&x(0,zt,12,11,"ng-container",2),n&2&&a("ngIf",i.flightDeals.length)},dependencies:[A,E,be,Le,Ve,H,N,I],styles:[".p-carousel .p-carousel-indicators{padding:16px!important;margin:0!important}  .p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button{background-color:var(--first-color)!important;width:1.75rem!important;height:.5rem!important;border-radius:1.5rem!important}  .p-carousel .p-carousel-indicators .p-carousel-indicator button{background-color:#a6a8a9!important;width:.5rem!important;height:.5rem!important;border-radius:50%!important}  .p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,   .p-carousel .p-carousel-content .p-carousel-next:enabled:hover{border-radius:50%!important;background-color:transparent!important}  .dropdown-menu.show:before{display:none!important}"]})}return t})();var Ai=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ae({type:t});static \u0275inj=re({imports:[ve,Re]})}return t})();export{Ue as a,Ut as b,$ as c,Lt as d,Ai as e};

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.