1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30893],{4662:(e,t,i)=>{i.d(t,{$m:()=>D,Cv:()=>A,EC:()=>b,Iz:()=>L,KB:()=>c,LV:()=>f,Qw:()=>E,WF:()=>v,WI:()=>y,Y6:()=>d,bC:()=>O,kZ:()=>C,mH:()=>r,mT:()=>P,ob:()=>S,r5:()=>I,r6:()=>T,un:()=>m});let r="/Natour_Tours";var a,s,n,o,l,g,u,h,p,c=((a={})[a.outboundFlight=0]="outboundFlight",a[a.returnFlight=1]="returnFlight",a),d=((s={}).ECONOMY="ECONOMY",s.NO_CABIN="NO_CABIN",s.PREMIUM_ECONOMY="PREMIUM_ECONOMY",s.BUSINESS="BUSINESS",s.MIXED="MIXED",s);let m={USD:"$",EUR:"â¬",GBP:"\xa3",ILS:"âª",NIS:"âª"},y={adults:"ADULT",children:"CHILD",infants:"INFANT",seniors:"SENIOR",child:"CHILD",baby:"INFANT",senior:"SENIOR",youth:"YOUTH",eilatResident:"ADULT",otefResident:"ADULT",policeman:"ADULT",soldier:"ADULT",SOLDER:"ADULT"};var L=((n={}).TROLLEY="Trolley",n.BAGGAGE="Baggage",n.CANCELLATION_INSURANCE="cancellationInsurance",n.SPECIAL_LUGGAGE="SpecialLuggage",n.ACCESSIBILITY_PRODUCTS="accessibilityProducts",n.CITY_RIDE="CITY_RIDE",n.TRIP_GUARANTY="TRIP_GUARANTY",n.BLUE_RIBBON="BLUE_RIBBON",n.AIRALO="AIRALO",n);let f={en:"english",he:"hebrew"},C={he:"iw_IL",en:"en_US"},T={AI:"allIncludes",SAI:"allIncludesNoAlcohol",AL:"allIncludes2",BB:"breakfast",BF:"sleep",BT:"breakfastAndTreatment",CB:"continentalBreakfast",CM:"holidayDinner",EB:"sleep2",EX:"extraDinner",FB:"fullBoard",FT:"fullBoardWithTreatments",GA:"holidayDinner2",HB:"halfBoard",HL:"holyMonth",HT:"halfBoardWithTreatments",KH:"halfBoardKosher",KS:"kosherBreakfast",LN:"lunch",MI:"allIncludes3",NB:"noMeal",NN:"without",PE:"passoverNight",RO:"roomOnly",RR:"roomOnly2",T:"ticket",UI:"allIncludesUltra",KF:"boardKosher"};var A=((o={}).searchFlight="searchFlight",o.searchPackage="searchPackage",o.searchDomesticFlight="searchDomesticFlight",o.searchDomesticPackage="searchDomesticPackage",o.searchOrgTour="searchOrgTour",o.searchCar="searchCar",o.searchHotel="searchHotel",o.searchDomesticHotel="searchDomesticHotel",o),O=((l={})[l.COUPON_CHECK=0]="COUPON_CHECK",l[l.COUPON_CHECKED=1]="COUPON_CHECKED",l[l.COUPON_COMPLITE=2]="COUPON_COMPLITE",l),S=((g={}).ORG_TOUR="searchOrgTour",g.HOTEL="searchPackage",g.DOMESTIC_HOTEL="searchDomesticPackage",g.HOTEL_FLIGHT_PACKAGE="searchPackage",g.ABROAD_HOTEL="searchAbroadHotel",g.DOMESTIC_HOTEL_ONLY="searchDomesticHotel",g.FLIGHT="",g);let P={ORG_TOUR:"searchOrgTour",HOTEL:"searchPackage",DOMESTIC_HOTEL:"searchDomesticPackage",HOTEL_FLIGHT_PACKAGE:"searchPackage",ABROAD_HOTEL:"searchAbroadHotel",DOMESTIC_HOTEL_ONLY:"searchDomesticHotel",FLIGHT:"searchFlight"};var D=((u={})[u.DYNAMIC=0]="DYNAMIC",u[u.MATRIX=1]="MATRIX",u[u.MANUAL=2]="MANUAL",u);let I=["INTERNET_BOOKING_FAILED","INTERNET_VALIDATE_PAYMENT_FAILED","INTERNET_PAYMENT_FAILED","INTERNET_TICKETING_FAILED","BLENDER_PAY_LOAN_FAILED","INTERNET_BOOKING_PENDING"],E=["INTERNET_VALIDATE_PAYMENT_FAILED","INTERNET_PAYMENT_FAILED"];var b=((h={}).VIEW_ITEM="view_item",h.SELECT_ITEM="select_item",h.ADD_PAYMENT_INFO="add_payment_info",h.ADD_TO_CART="add_to_cart",h.BEGIN_CHECKOUT="begin_checkout",h.PURCHASE="purchase",h),v=((p={}).CARRIER="Carrier",p.TYPE="CharterScheduler",p.CONNECTIONS="Stops",p.PRICE="PRICE",p.BAGGAGE="BaggageExtraServices",p.OUTGOING_FLIGHT_DEPARTURE_TIME="OUTGOING_FLIGHT_DEPARTURE_TIME",p.RETURN_FLIGHT_ARRIVAL_TIME="RETURN_FLIGHT_ARRIVAL_TIME",p.HOTEL_RATING="HotelCategory",p.BOARD="HotelBoardLds",p.HOTEL_NAME="HotelName",p.TOUR_NAME="TourName",p.NIGHTS="NightsNumber",p.DEPARTURE_DATE="DepartureDate",p.MEAL="MealExtraServices",p.AIRPORT="Airport",p.ROOM_TYPE="RoomType",p)},6070:(e,t,i)=>{i.d(t,{F:()=>a});var r,a=((r={}).NO_DISPLAY="NO_DISPLAY",r.NO_DETAILS="NO_DETAILS",r.NOT_INCLUDED_IN_PRICE="NOT_INCLUDED_IN_PRICE",r.INCLUDED_IN_PRICE="INCLUDED_IN_PRICE",r)},9702:(e,t,i)=>{i.d(t,{AX:()=>S,G5:()=>f,J_:()=>v,Ol:()=>N,Oo:()=>y,SQ:()=>b,Wx:()=>F,ZB:()=>L,ai:()=>C,bC:()=>O,g2:()=>I,gF:()=>E,gm:()=>D,nr:()=>R,r6:()=>A,sk:()=>T,vK:()=>P});var r,a,s,n,o,l,g,u,h,p,c,d,m,y=((r={})[r.USD=0]="USD",r[r.EUR=1]="EUR",r[r.GBP=2]="GBP",r[r.ILS=3]="ILS",r),L=((a={}).FLIGHT_PACKAGE="FLIGHT_PACKAGE",a.HOTEL_PACKAGE="HOTEL_PACKAGE",a.HOTEL_FLIGHT_PACKAGE="HOTEL_FLIGHT_PACKAGE",a.HOTEL_FLIGHT_CAR_PACKAGE="HOTEL_FLIGHT_CAR_PACKAGE",a.ORG_TOUR="ORG_TOUR",a.ONEWAY_FLIGHT="ONEWAY_FLIGHT",a.DOMESTIC_HOTEL="DOMESTIC_HOTEL",a.ABROAD_HOTEL="ABROAD_HOTEL",a.DYNAMIC_PACKAGE="DYNAMIC_PACKAGE",a),f=((s={}).LDS_PACKAGE="LDS_PACKAGE",s.GDS_PACKAGE="GDS_PACKAGE",s.AGENCY2000="AGENCY2000",s.RENT_CAR="RENT_CAR",s),C=((n={}).BEGIN_PAYMENT_PROCESS="BEGIN_PAYMENT_PROCESS",n.CONTINUE_PAYMENT_PROCESS="CONTINUE_PAYMENT_PROCESS",n.BEGIN_ORDER_PROCESS="BEGIN_ORDER_PROCESS",n),T=((o={}).BIT="BIT",o.GOOGLE_PAY="GOOGLE_PAY",o.APPLE_PAY="APPLE_PAY",o.CG="CG",o.CREDIT2000="CREDIT2000",o.BLENDER_PAY="BLENDER_PAY",o.PELECARD="Pelecard",o);let A={AI:"allIncludes",SAI:"allIncludesNoAlcohol",AL:"allIncludes2",BB:"breakfast",BF:"sleep",BT:"breakfastAndTreatment",CB:"continentalBreakfast",CM:"holidayDinner",EB:"sleep2",EX:"extraDinner",FB:"fullBoard",FT:"fullBoardWithTreatments",GA:"holidayDinner2",HB:"halfBoard",HL:"hol
1yMonth",HT:"halfBoardWithTreatments",KH:"halfBoardKosher",KS:"kosherBreakfast",LN:"lunch",MI:"allIncludes3",NB:"noMeal",NN:"without",PE:"passoverNight",RO:"roomOnly",RR:"roomOnly2",T:"ticket",UI:"allIncludesUltra"};var O=((l={})[l.COUPON_CHECK=0]="COUPON_CHECK",l[l.COUPON_CHECKED=1]="COUPON_CHECKED",l[l.COUPON_COMPLITE=2]="COUPON_COMPLITE",l),S=((g={}).GET_BUDGET="GET_BUDGET",g.ADD_TRANSACTION="ADD_TRANSACTION",g.REFUND_TRANSACTION="REFUND_TRANSACTION",g.CANCEL_TRANSACTION="CANCEL_TRANSACTION",g.PAYMENT_IFRAME="PAYMENT_IFRAME",g.PAYMENT_J5="PAYMENT_J5",g.FINALIZE="FINALIZE",g.IFRAME_UPDATE="IFRAME_UPDATE",g),P=((u={}).CG="CG",u.BIT="BIT",u.APPLE_PAY="APPLE_PAY",u.GOOGLE_PAY="GOOGLE_PAY",u.MULTIPASS="MULTIPASS",u.TAV_MALE="TAV_MALE",u.COUPON="COUPON",u.COUPONS="COUPONS",u.ISRAIR_CLUB_MEMBER="ISRAIR_CLUB_MEMBER",u),D=((h={}).OUTBOUND="OUTBOUND",h.INBOUND="INBOUND",h),I=((p={}).NONE="NONE",p.PROMOTION="PROMOTION",p.FACT="FACT",p.IMAGE="IMAGE",p.INFORMATION="INFORMATION",p.ECO="ECO",p),E=((c={}).DOMESTIC_VOUCHER="DOMESTIC_VOUCHER",c.SPECIAL_PASSENGER="SPECIAL_PASSENGER",c),b=((d={}).EILAT_RESIDENT="EILAT_RESIDENT",d.SOLDIER="SOLDIER",d.POLICEMEN="POLICEMEN",d.OTEF_RESIDENT="OTEF_RESIDENT",d),v=((m={}).ar="ar-SA",m.bn="bn-IN",m.cs="cs-CZ",m.da="da-DK",m.de="de-DE",m.el="el-GR",m.en="en-US",m.es="es-ES",m.fi="fi-FI",m.fr="fr-FR",m.he="he-IL",m.hi="hi-IN",m.hu="hu-HU",m.id="id-ID",m.it="it-IT",m.ja="ja-JP",m.ko="ko-KR",m.nl="nl-NL",m.no="no-NO",m.pl="pl-PL",m.pt="pt-BR",m.ro="ro-RO",m.ru="ru-RU",m.sk="sk-SK",m.sv="sv-SE",m.ta="ta-IN",m.th="th-TH",m.tr="tr-TR",m.zh="zh-CN",m);let N={ar:"ar-SA",bn:"bn-IN",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hi:"hi-IN",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sv:"sv-SE",ta:"ta-IN",th:"th-TH",tr:"tr-TR",zh:"zh-CN"},R={"ar-SA":"ar","bn-IN":"bn","cs-CZ":"cs","da-DK":"da","de-DE":"de","el-GR":"el","en-US":"en","es-ES":"es","fi-FI":"fi","fr-FR":"fr","he-IL":"he","hi-IN":"hi","hu-HU":"hu","id-ID":"id","it-IT":"it","ja-JP":"ja","ko-KR":"ko","nl-NL":"nl","no-NO":"no","pl-PL":"pl","pt-BR":"pt","ro-RO":"ro","ru-RU":"ru","sk-SK":"sk","sv-SE":"sv","ta-IN":"ta","th-TH":"th","tr-TR":"tr","zh-CN":"zh"},F={USD:"$",EUR:"â¬",GBP:"\xa3",ILS:"âª"}},14682:(e,t,i)=>{i.d(t,{KH:()=>s,fR:()=>a,k4:()=>n});var r=i(90519);function a(e,t,i){if(!e)return"/";let a=e.replace("/search.do",""),n=a.split("/")[1].split("?")[0],o=s[n],l=a.split("?")[1];return(0,r.Kf)(`/reservation/deal/${o}/${n}`,t,i||"he-IL",l)}let s={abroadFlight:"searchFlight",domesticFlight:"searchDomesticFlight",abroadPackage:"searchPackage",orgTour:"searchOrgTour",domesticPackage:"searchDomesticPackage"},n={...Object.fromEntries(Object.entries(s).map(e=>{let[t,i]=e;return[i,t]})),searchDomesticHotel:"domesticHotel",searchAbroadHotel:"abroadHotel"}},15897:(e,t,i)=>{i.d(t,{C:()=>s});class r{getName(){return this.name}getURL(){return this.url}}var a=i(44587);class s{getType(){return this.type}getTitle(){return this.title}getBody(){return this.body}getLink(){return(0,a.typedCastUtil)(r,this.link)||void 0}getImage(){return this.image}getFreeText(){return this.freeText}getBgColor(){return this.bgColor}}},17646:(e,t,i)=>{i.d(t,{A:()=>r});function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,{headers:{...t.headers},...t})}},17868:(e,t,i)=>{i.d(t,{u:()=>o});class r{getCityName(){if(this.cityName)return this.cityName;throw Error("CityName is possible null, undefined or empty string")}getAirportName(){if(this.airportName)return this.airportName}getAirportCode(){if(this.location)return this.location;throw Error("AirportCode is possible null, undefined or empty string")}getScheduledDateTime(){if(this.scheduledDateTime)return this.scheduledDateTime;throw Error("ScheduledDateTime is possible null, undefined or empty string")}getTerminal(){return this.terminal??void 0}}var a=i(44587);class s{getLocale(){return this.locale}getDescription(){return this.description}}var n=i(53557);class o{isClubMembersOnly(){return!0===this.clubMembersOnly}isClubClassExclusive(){return!0===this.clubClassExclusive}getCabin(){return this.cabin}getOperatedByCompany(){return this.operatedBy}getTrolleyIndicator(){return(0,n.d7)(this,n.FS.LUGGAGE_TROLY)}isEmptySeats(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],0===Number(this.seats)}getStatusRemarkByLang(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US";if(this.statusRemarkLangList){for(let t=0;t<this.statusRemarkLangList.length;t++){let i=(0,a.castUtil)(s,this.statusRemarkLangList[t]);
1if(i.getLocale()===e){if(!i.description)return(0,a.castUtil)(s,{locale:"iw_IL",description:this.statusRemark});return i}}return(0,a.castUtil)(s,{locale:"iw_IL",description:this.statusRemark})}return null}getDepLocAirportName(){if(this.depLoc)return this.castDepLocation().getAirportName();throw Error("depLocation is possible null or undefined")}getFlightNumber(){return this.flightNumber}getArrLocAirportName(){if(this.arrLoc)return this.castArrLocation().getAirportName();throw Error("depLocation is possible null or undefined")}getBaggageIndicator(){return(0,n.d7)(this,n.FS.CHECKED_BAGGAGE)}getMeals(){if(this.meals)return this.meals;throw Error("meals is possible null or undefined")}getArrAirportCode(){if(this.arrLoc)return this.castArrLocation().getAirportCode();throw Error("arrLocation is possible null or undefined")}getDepAirportCode(){if(this.depLoc)return this.castDepLocation().getAirportCode();throw Error("depLocation is possible null or undefined")}getDepTerminal(){if(this.depLoc)return this.castDepLocation().getTerminal()}getArrTerminal(){if(this.arrLoc)return this.castArrLocation().getTerminal()}getArrLocationCityName(){if(this.arrLoc)return this.castArrLocation().getCityName();throw Error("arrLocation is possible null or undefined")}getDepLocationCityName(){if(this.depLoc)return this.castDepLocation().getCityName();throw Error("depLocation is possible null or undefined")}getArrScheduledDateTime(){if(this.arrLoc)return this.castArrLocation().getScheduledDateTime()}getDepScheduledDateTime(){if(this.depLoc)return this.castDepLocation().getScheduledDateTime()}getMarketingAirlineCode(){if(this.marketingAirline)return this.marketingAirline;throw Error("MarketingAirline is possible null or undefined")}getSeats(){if(this.seats)return Number(this.seats)>9?"9":this.seats;throw Error("Seats is possible null or undefined")}getEquipmentType(){if(this.equipmentType)return this.equipmentType}getDuration(){if(null!==this.duration&&void 0!==this.duration)return this.duration}getSupplierFlightId(){return this.supplierFlightId?this.supplierFlightId:void 0}castDepLocation(){return(0,a.castUtil)(r,this.depLoc)}castArrLocation(){return(0,a.castUtil)(r,this.arrLoc)}constructor(){this.getBaggageAllowance=e=>(0,n.sA)(this.baggageInformation,e)}}},28287:(e,t,i)=>{i.d(t,{N:()=>r});class r{getCheapestRoom(){if(1===this.rooms.length)return this.rooms[0];try{return this.rooms.reduce((e,t)=>t.roomFare.amount<e.roomFare.amount?t:e)}catch(e){return this.rooms[0]}}getBoard(){return this.board}getOrgTourCode(){let e=this.name.split("-");return e[e.length-1]}getCheckInDate(){return this.checkInDate.split(" ")[0]}getHotelCity(){return this.hotelCity?this.hotelCity.split(",")[0]:""}getHotelImages(){return this.hotelImages}getCheckOutDate(){return this.checkOutDate.split(" ")[0]}getName(){return this.name}getNightsInHotel(){return this.nightsInHotel}}},28469:(e,t,i)=>{i.d(t,{J:()=>r});class r{getAmount(){if(this.amount||0===this.amount)return this.amount;throw Error("Amount is possible null or undefined")}getCurrency(){if(this.currency)return this.currency;throw Error("Currency is possible null or undefined")}}},28816:(e,t,i)=>{i.d(t,{u:()=>r});class r{getLlsPassengerType(){return this.ltsPassengerType}getAmount(){return this.amount}}},31190:(e,t,i)=>{i.d(t,{r:()=>o});var r=i(58020),a=i(89166);i(41463);var s=i(17646);class n{async getComponentData(e){let t=await (0,s.A)(`/api/components/content?componentId=${e}`);return await t.json()}async getComponentDataAndMapToType(e,t){let i=await this.getComponentData(e),r=new t;return i.data.error||Object.assign(r,i.data),r}async getLinks(e){let t=await (0,s.A)(`/api/page/headerLinks?siteId=${e}`);return await t.json()}async getPriceBar(e){let t=await (0,s.A)(`/api/pricebar?startDate=${e.startDate}&endDate=${e.endDate}&origin=${e.origin}&destination=${e.destination}&siteId=${e.siteId}&sessionKey=${e.sessionKey}`);return await t.json()}async getEngineData(e){let{from:t,to:i,packageSystemTypeVal:r,startDate:a,endDate:n,daysForward:o,daysReturn:l,sessionKey:g,subject:u,version:h,today:p,siteId:c}=e,d=await (0,s.A)(`/api/engine?siteId=${c}&from=${t?encodeURIComponent(t):t}&to=${i?encodeURIComponent(i):i}&packageType=${r}&startDate=${a}&returnDate=${n}&daysForward=${o}&daysReturn=${l}${u?`&subject=${u}`:""}${h?`&version=${h}`:""}${p?`&today=${p}`:""}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionKey:g})});return await d.json()}async getAirlineCompanyNames(e,t){let i=await (0,s.A)(`/api/utils/allAirlineCompanyNames?siteId=${e}&locale=${t}`);return await i.json()}async getComponentParams(e){let t=await (0,s.A)(`/api/page/params?componentId=${e}`);return await t.json()}async getListComponentParams(e,t,i){return await fetch(`/api/page/paramsList?componentIds=${e}&isAdmin=${t}&siteId=${i}`)}
1async getPageConfig(e){return this.baseProxyTypeRequest(`webgurutravel.com/api/page/config?page=${e}`,a.yW)}async getFooter(e){return this.baseProxyTypeRequest(`/api/page/footer?siteId=${e}`,a.wi)}async getTravelAgency(){return this.baseProxyTypeRequest("/api/page/travelAgency",a.Ol)}async utilCityCodeToCityName(e,t,i){return this.baseProxyTypeRequest(`/api/utils/cityByCode?code=${e}&packageSystemType=${t}&locale=${i}`,a.B6)}async allDestinationData(e){let t=await (0,s.A)(`/api/utils/destinations?locale=${e}`);return await t.json()}async getCityImageByCodeAllPackagesMap(e){let t=await (0,s.A)(`/api/utils/allCitiesImages${e?`?siteId=${e}`:""}`);return await t.json()}async getSiteProperty(){return this.baseProxyTypeRequest("/api/utils/siteprops",a.vQ)}async baseProxyTypeRequest(e,t){try{let i=await (0,s.A)(e),a=await i.json();return(0,r.A)(t,a)}catch(i){console.error("baseProxyTypeRequest error",i,e,t)}}async baseProxyRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let i=await (0,s.A)(e,t);return await i.json()}catch(t){console.error("baseProxyRequest error",t,e)}}async getAutocompleteData(e,t,i,r,a){t=e.toLowerCase().charCodeAt(0)>=1488&&1514>=e.toLowerCase().charCodeAt(0)?"iw_il":e.toLowerCase().charCodeAt(0)>=97&&122>=e.toLowerCase().charCodeAt(0)?"en_us":"iw_il";try{let n=await (0,s.A)(`/api/search/autocomplete?prefix=${e}&locale=${t}&module=${{searchPackage:"FLIGHTS","hotels-in-israel":"DOMESTIC_HOTELS",searchFlight:"FLIGHTS","hotels-abroad":"ABROAD_HOTELS",searchOrgTour:"ORGANIZED","flights-hotel-and-transport":"PACKAGE","flight-and-travel":"FLY_N_DRIVE",searchDomesticFlight:"FLIGHTS",searchAbroadHotel:"ABROAD_HOTELS",searchDynamicPackage:"ABROAD_HOTELS"}[i]}&newAlgorithm=true&siteId=${r}${a?"&processCatalog=true":""}`);return(await n.json()).data}catch(e){return console.error(e),{error:e}}}async getDestinationCatalog(e,t,i,r){t=e.toLowerCase().charCodeAt(0)>=1488&&1514>=e.toLowerCase().charCodeAt(0)?"iw_il":e.toLowerCase().charCodeAt(0)>=97&&122>=e.toLowerCase().charCodeAt(0)?"en_us":"iw_il";try{let a=await (0,s.A)(`/api/search/destinationCatalog?prefix=${e}&locale=${t}&module=${{searchPackage:"PACKAGE","hotels-in-israel":"DOMESTIC_HOTELS",searchFlight:"FLIGHTS","hotels-abroad":"ABROAD_HOTELS",searchOrgTour:"ORGANIZED","flights-hotel-and-transport":"PACKAGE","flight-and-travel":"FLY_N_DRIVE",searchDomesticFlight:"FLIGHTS"}[i]}&newAlgorithm=true&siteId=${r}&processCatalog=true`);return(await a.json()).data}catch(e){return console.error(e),{error:e}}}async getFilters(){try{let e=await (0,s.A)("/api/results/filters");if(!e.ok)return{error:e.status};return{data:await e.json()}}catch(e){return console.error(e),{error:e}}}async getSearchData(e){let t={"flights-and-hotels":"PACKAGE","hotels-in-israel":"DOMESTIC_HOTELS","flights-abroad":"FLIGHTS","hotels-abroad":"ABROAD_HOTELS","organised-tours":"ORGANIZED","flights-hotel-and-transport":"PACKAGE","flight-and-travel":"FLY_N_DRIVE","domestic-flights":"DOMESTIC_FLIGHTS","domestic-package":"DOMESTIC_PACKAGE","domestic-hotel":"DOMESTIC_HOTELS","abroad-hotel":"ABROAD_HOTELS","dynamic-package":"DYNAMIC_PACKAGE"};try{let i;if(!(i=e.vouchers&&e.vouchers?.length>0?await fetch(`/api/search/${t[e.path]}?${e.query}`,{body:JSON.stringify({vouchers:e.vouchers,ignoredResults:e?.ignoredResults??0,siteId:e?.siteId??""}),headers:{"Content-Type":"application/json"},method:"POST"}):await fetch(`/api/search/${t[e.path]}?${e.query}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ignoredResults:e?.ignoredResults??0,siteId:e?.siteId??""})})).ok)return{error:i.status};return{data:await i.json()}}catch(e){return console.error(e),{error:e}}}async getActiveDestinations(e,t){let i=await (0,s.A)(`/api/search/active/?${t?`locale=${t}&`:""}packageType=${e}`,{method:"GET",headers:{"Content-Type":"application/json"}});return await i.json()}async beginPaymentProcess(e){return this.basePostRequest(e,"/api/reservation/payment/begin")}async beginPaymentProcessManyPassengers(e){return this.basePostRequest(e,"/api/reservation/payment/begin")}async continuePaymentProcess(e){return this.basePostRequest(e,"/api/reservation/payment/continue")}async getOrderStatus(e,t,i){let r=await (0,s.A)(`/api/reservation/payment/confirmation?reservationId=${e}&siteId=${t}&sessionKey=${i}`,{method:"GET",headers:{"Content-Type":"application/json"}});try{return await r.json()}catch(e){console.error(e);return}}async getThanksPageMessage(e,t,i){let r=await (0,s.A)(`/api/thanksPageMessage?siteId=${e}<sWsFlightPackageType=${t}&thanksPageStatusEnum=${i}`,{method:"GET",headers:{"Content-Type":"application/json"}});try{return await r.text()}catch(e){console.error(e);return}}async getDealInfo(e){return this.basePostRequest(e,"/api/tripsummary/info")}async getHotelInfo(e){return this.basePostRequest(e,"/api/tripsummary/hotelInfo")}async getHotelInfoPreview(e){return this.basePostRequest(e,"/api/tripsummary/hotelInfoPreview")}async basePostRequest(e,t){let i=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});try{return await i.json()}catch(e){return}}
1async baseGetRequest(e){let t=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json"}});try{return await t.json()}catch(e){console.error(e);return}}async getAdminUrlFromEnv(){let e=await (0,s.A)("/api/admin/url");return(await e.json()).adminUrl}async makePreorder(e){return this.basePostRequest(e,"/api/preorder")}async getAllAncillaries(e){return this.basePostRequest(e,"/api/ancillaries/getAllAncillaries")}async getDealUpgrade(e){return this.basePostRequest(e,"/api/ancillaries/getDealUpgrade")}async seatMap(e){return this.basePostRequest(e,"/api/ancillaries/seatMap")}async seatMapAllocate(e){return this.basePostRequest(e,"/api/ancillaries/seatMapAllocate")}async seatMapDeallocate(e){return this.basePostRequest(e,"/api/ancillaries/seatMapDeallocate")}async allocateAncillary(e){return this.basePostRequest(e,"/api/ancillaries/allocateAncillary")}async deAllocateAncillary(e){return this.basePostRequest(e,"/api/ancillaries/deAllocateAncillary")}async event(e){return this.basePostRequest(e,"/api/ordermanager/event")}async allocateAllAncillaries(e){return this.basePostRequest(e,"/api/ancillaries/allocateAllAncillaries")}async getTripSearchResultById(e,t){return this.basePostRequest({dealId:e,componentType:t},"/api/retrive")}async getOrgTourByDeepLink(e,t,i){return this.basePostRequest({deepLink:e,siteId:t,sessionKey:i},"/api/search/orgTourByDeepLink")}async getDealByDeepLink(e,t,i,r,a){return this.basePostRequest({deepLink:e,softEqual:t,sessionKey:i,tracker:a,siteId:r},"/api/search/dealByDeepLink")}async getCurrencyRate(e,t){return this.basePostRequest({currencyRate:e,siteId:t},"/api/currencyRate")}async getSpecialDates(e){return this.baseGetRequest("/api/specialDates?siteId="+e)}async getHolidays(e,t){return this.baseGetRequest(`/api/holidays?siteId=${e}&packageSubType=${t}`)}async getAllPossibleDestinations(e){return this.baseGetRequest(`/api/allPossibleDestinations?siteId=${e}`)}async getQuickLinks(e,t){return this.baseGetRequest(`/api/search/getQuickLinks?sessionKey=${e.clientKey.clientId}&siteId=${t}`)}async postPaymentAction(e){return this.basePostRequest(e,"/api/payment/action")}async retrivePromotionByContainer(e){return this.basePostRequest(e,"/api/retrive")}async paymentFinalize(e){return this.basePostRequest(e,"/api/payment/finalize")}async validateVoucher(e){return this.basePostRequest(e,"/api/search/voucher/validate")}async requestResponseLogsEnable(e){return this.baseGetRequest(e)}async requestResponseLogsGet(e){return this.baseGetRequest(e)}async sendRecomendations(e,t){return this.basePostRequest({data:[...e],confirmationPage:t},"/api/recomendations")}async clientLogs(e){return this.basePostRequest(e,"/api/clientLog")}async clubMemberLogout(e){try{let t=await this.basePostRequest(e,"/api/club-member/logout");if(!t)return console.error("[ClubMemberLogout] No response received"),{success:!1,message:"No response received from server",output:null,exception:null,finalStep:null};return t}catch(e){return console.error("[ClubMemberLogout] Error clearing club member session:",e),{success:!1,message:e instanceof Error?e.message:"Unknown error occurred",output:null,exception:null,finalStep:null}}}async getClubMemberDetails(e){try{let t=await this.basePostRequest(e,"/api/club-member/details");if(!t)return console.error("[ClubMemberDetails] No response received"),{success:!1,message:"No response received from server",output:null,exception:null,finalStep:null};return t}catch(e){return console.error("[ClubMemberDetails] Error fetching club member details:",e),{success:!1,message:e instanceof Error?e.message:"Unknown error occurred",output:null,exception:null,finalStep:null}}}async getClubMemberFeeConfig(e){try{let t=await this.basePostRequest(e,"/api/club-member/fee-config");if(!t)return{success:!1,message:"No response received from server",output:null,exception:null,finalStep:null};return t}catch(e){return console.error("[ClubMemberFeeConfig] Error fetching club member fee config:",e),{success:!1,message:e instanceof Error?e.message:"Unknown error occurred",output:null,exception:null,finalStep:null}}}
1async getTwoOWPriceBar(e){return this.baseGetRequest(`/api/results/priceBar?siteId=${e.siteId}&origin=${e.origin}&destination=${e.destination}&isOneWay=${e.isOneWay}&adults=${e.adults}`)}async getGdsFareRules(e){return this.baseGetRequest(`/api/tripsummary/fare-rules?siteId=${e.siteId}&clientId=${e.clientId}`)}}let o=new n},37191:(e,t,i)=>{i.d(t,{b:()=>s});var r=i(56519),a=i(44587);class s{getTrolleyIndicator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.legList&&this.legList.length>0&&this.legList[e])return this.castLegList(e).getTrolleyIndicator(t)}getOperatedByCompanies(){let e=this.castLegList(0),t=this.castLegList(1);return{outgoing:e.getOperatedByCompany(),return:t?.getOperatedByCompany()}}isEmptyLegGroupBySeats(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],0===this.legList.filter((e,t)=>!1===this.castLegList(t).isEmptyLegListBySeats()).length}getLegList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,a.typedCastUtil)(r.l,this.legList[e])}getLegFare(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.castLegList(t);return i?.getLegFare(e)}getOutgoingStatusRemarks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.castLegList(t).getStatusRemarks(0,e)}getReturnStatusRemarks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US";return this.castLegList(1).getStatusRemarks(0,e)}getOutgoingFlightNumbers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.castLegList(e).getFlightNumbers()}getReturnFlightNumbers(){return this.castLegList(1).getFlightNumbers()}isOneWayFlight(){return!!this.legList&&this.legList.length>0&&(1===this.legList.length||this.legList[1].legOptionList?.[0]===void 0)}getOutgoingAirportsNames(){if(this.legList&&this.legList.length>0){let e=this.castLegList(0);return{arrAirportsNames:e.getArrAirportsNames(),depAirportsNames:e.getDepAirportsNames()}}throw Error("LegList possible empty array, null or undefined")}getReturnAirportsNames(){if(this.legList&&this.legList.length>0){let e=this.castLegList(1);return{arrAirportsNames:e.getArrAirportsNames(),depAirportsNames:e.getDepAirportsNames()}}throw Error("LegList possible empty array, null or undefined")}getOutgoingBaggageIndicator(){if(this.legList&&this.legList.length>0)return this.castLegList(0).getBaggageIndicator();throw Error("LegList possible empty array, null or undefined")}getReturnBaggageIndicator(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getBaggageIndicator();throw Error("LegList possible empty array, null or undefined")}getOutgoingMeals(){if(this.legList&&this.legList.length>0)return this.castLegList(0).getMeals();throw Error("LegList possible empty array, null or undefined")}getReturnMeals(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getMeals();throw Error("LegList possible empty array, null or undefined")}getOutgoingDuration(){if(this.legList&&this.legList.length>0)return this.castLegList(0).getDuration()}getReturnDuration(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getDuration()}getNumberOfConnectionOutgoingFlights(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).getNumberOfConnectionFlights();throw Error("LegList possible empty array, null or undefined")}getNumberOfConnectionReturnFlights(){if(this.legList&&this.legList.length>0){let e=this.castLegList(1);return e?e.getNumberOfConnectionFlights():0}throw Error("LegList possible empty array, null or undefined")}getOutgoingAirportCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0){let t=this.castLegList(e);return{arrAirportsCodes:t.getArrAirportCodes(),depAirportsCodes:t.getDepAirportCodes()}}throw Error("LegList possible empty array, null or undefined")}getReturnAirportCodes(){if(this.legList&&this.legList.length>0){let e=this.castLegList(1);return{arrAirportsCodes:e.getArrAirportCodes(),depAirportsCodes:e.getDepAirportCodes()}}throw Error("LegList possible empty array, null or undefined")}getOutgoingLocationsCityNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0){let t=this.castLegList(e);return{arrLoc:t.getArrLocationCityName(),depLoc:t.getDepLocationCityName()}}throw Error("LegList possible empty array, null or undefined")}getReturnLocationsCityNames(){if(this.legList&&this.legList.length>0){let e=this.castLegList(1);return{arrLoc:e.getArrLocationCityName(),depLoc:e.getDepLocationCityName()}}throw Error("LegList possible empty array, null or undefined")}getOutgoingScheduledDateTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0){let t=this.castLegList(e);return{arrDateTime:t.getArrScheduledDateTime(),depDateTime:t.getDepScheduledDateTime()}}}getReturnScheduledDateTime(){if(this.legList&&this.legList.length>0){let e=this.castLegList(1);return{arrDateTime:e.getArrScheduledDateTime(),depDateTime:e.getDepScheduledDateTime()}}}getOutgoingSeats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).getSeats();throw Error("LegList possible empty array, null or undefined")}getReturnSeats(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getSeats();throw Error("LegList possible empty array, null or undefined")}getOutgoingEquipmentType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).getEquipmentType()}
1getReturnEquipmentType(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getEquipmentType()}getOutgoingMarketingAirlineCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).getMarketingAirlineCodes();throw Error("LegList possible empty array, null or undefined")}getReturnMarketingAirlineCodes(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getMarketingAirlineCodes();throw Error("LegList possible empty array, null or undefined")}getOutgoingCarierAirlineCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).getCarierAirlineCodes();throw Error("LegList possible empty array, null or undefined")}getReturnCarierAirlineCodes(){if(this.legList&&this.legList.length>0)return this.castLegList(1).getCarierAirlineCodes();throw Error("LegList possible empty array, null or undefined")}isOutgoingDirect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legList&&this.legList.length>0)return this.castLegList(e).isDirect();throw Error("LegList possible empty array, null or undefined")}isReturnDirect(){if(this.legList&&this.legList.length>0)return this.castLegList(1).isDirect();throw Error("LegList possible empty array, null or undefined")}getSuplierFlightIdByDirection(e){if(this.legList&&this.legList.length>=2){if("outbound"===e){let e=(0,a.typedCastUtil)(r.l,this.legList[0]);if(e)return e.getSupplierFlightId()}if("return"===e){let e=(0,a.typedCastUtil)(r.l,this.legList[1]);if(e)return e.getSupplierFlightId()}}}castLegList(e){return(0,a.castUtil)(r.l,this.legList[e])}}},41916:(e,t,i)=>{i.d(t,{f:()=>n});var r=i(28469),a=i(28816),s=i(44587);class n{getAmount(){return(0,s.castUtil)(r.J,this.amount)}getAmountPerPassenger(){if(!this.passengerFares)return;let e=this.passengerFares.find(e=>{let t=(0,s.typedCastUtil)(a.u,e);return t?.getLlsPassengerType()==="ADULT"});return e?(0,s.typedCastUtil)(a.u,e)?.getAmount():void 0}getAverageAmountPerPassenger(e){if(!e)return;let t=this.getAmount();if(!t)return;let i=new r.J;return i.amount=Math.ceil(t.amount/e),i.currency=t.currency,i}getAdultFareAmount(){if(!this.passengerFares)return;let e=this.passengerFares.find(e=>{let t=(0,s.typedCastUtil)(a.u,e);return t?.getLlsPassengerType()==="ADULT"});return e?(0,s.typedCastUtil)(a.u,e)?.getAmount():void 0}getPassengerFares(){return this.passengerFares.map(e=>(0,s.typedCastUtil)(a.u,e))}getAlternateFares(){return this.alternateFares}getAlternateFare(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.alternateFares&&this.alternateFares[e]}}},44587:(e,t,i)=>{i.r(t),i.d(t,{castUtil:()=>r,typedCastUtil:()=>a});let r=(e,t)=>void 0===t||null==t?null:t instanceof e?t:t=Object.assign(new e,t),a=(e,t)=>void 0===t||null==t?null:t instanceof e?t:t=Object.assign(new e,t)},49948:(e,t,i)=>{i.d(t,{X:()=>r});class r{getAmountOfPersons(){if("number"==typeof this.adults&&"number"==typeof this.children&&"number"==typeof this.youths&&"number"==typeof this.seniors&&"number"==typeof this.infants)return this.adults+this.children+this.youths+this.seniors+this.infants;throw Error("One of the fields is possible null or undefined")}getAdults(){return this.adults}getChildren(){return this.children}getYouths(){return this.youths}getSeniors(){return this.seniors}getInfants(){return this.infants}getQuantityByPassengerType(e){return({ADULT:this.getAdults(),CHILD:this.getChildren(),INFANT:this.getInfants(),YOUTH:this.getYouths(),SENIOR:this.getSeniors()})[e]}}},53557:(e,t,i)=>{i.d(t,{FS:()=>s,d7:()=>l,sA:()=>o});var r,a=i(6070),s=((r={}).HAND_BAG="HAND_BAG",r.LUGGAGE_TROLY="LUGGAGE_TROLY",r.CHECKED_BAGGAGE="CHECKED_BAGGAGE",r);class n{isHidden(){return this.indicator===a.F.NO_DISPLAY}isIncluded(){return this.indicator===a.F.INCLUDED_IN_PRICE}isNotIncluded(){return this.indicator===a.F.NOT_INCLUDED_IN_PRICE||this.indicator===a.F.NO_DETAILS}}let o=(e,t)=>{let i=e?.find(e=>e?.type===t);return i?Object.assign(new n,i):void 0},l=(e,t)=>o(e?.baggageInformation,t)?.indicator},56519:(e,t,i)=>{i.d(t,{l:()=>n});var r=i(97766),a=i(44587),s=i(42720);
1class n{getLegOptionList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList?.[e])return(0,a.typedCastUtil)(r.k,this.legOptionList?.[e])}getOperatedByCompany(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getOperatedByCompany()}}getLegOptionListIndexByFlightNumber(e){try{if(!this.legOptionList||s.isEmpty(this.legOptionList))return;for(let t=0;t<this.legOptionList.length;t++){let i=this.castLegOptionList(t);if(i?.getFlightNumber().includes(e))return t}return}catch(e){return}}getTrolleyIndicator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getTrolleyIndicator()}}isEmptyLegListBySeats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===(this.legOptionList?.filter((t,i)=>{let r=this.castLegOptionList(i);return r?.isEmptyOptionListBySeats(e)===!1})).length}getLegFare(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.castLegOptionList(e);return t?.getLegFare()}getStatusRemarks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en_US",i=this.castLegOptionList(e);return i?.getStatusRemarks(t)}getFlightNumbers(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.castLegOptionList(e);return t?.getFlightNumber()}getArrAirportsNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getArrAirportsNames()}throw Error("LegOptionList possible empty array, null or undefined")}getDepAirportsNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getDepAirportsNames()}throw Error("LegOptionList possible empty array, null or undefined")}getBaggageIndicator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getBaggageIndicator()}throw Error("LegOptionList possible empty array, null or undefined")}getMeals(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getMeals()}throw Error("LegOptionList possible empty array, null or undefined")}getArrAirportCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getArrAirportsCode()}throw Error("LegOptionList possible empty array, null or undefined")}getNumberOfConnectionFlights(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getNumberOfConnectionFlights()}throw Error("LegOptionList possible empty array, null or undefined")}getDepAirportCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getDepAirportsCode()}throw Error("LegOptionList possible empty array, null or undefined")}getArrLocationCityName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getArrLocationCityName()}throw Error("LegOptionList possible empty array, null or undefined")}getDepLocationCityName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getDepLocationCityName()}throw Error("LegOptionList possible empty array, null or undefined")}getArrScheduledDateTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getArrScheduledDateTime()}}getDepScheduledDateTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getDepScheduledDateTime()}throw Error("LegOptionList possible empty array, null or undefined")}getSeats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getSeats()}throw Error("LegOptionList possible empty array, null or undefined")}getEquipmentType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getEquipmentType()}throw Error("LegOptionList possible empty array, null or undefined")}getMarketingAirlineCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getMarketingAirlineCodes()}throw Error("LegOptionList possible empty array, null or undefined")}getCarierAirlineCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getCarierAirlineCodes()}throw Error("LegOptionList possible empty array, null or undefined")}getDuration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.getDuration()}}isDirect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList&&this.legOptionList.length>0){let t=this.castLegOptionList(e);return t?.isDirect()}throw Error("LegOptionList possible empty array, null or undefined")}getSupplierFlightId(){if(this.legOptionList){let e=(0,a.typedCastUtil)(r.k,this.legOptionList[0]);if(e)return e.getSuplierFlightId()}}castLegOptionList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legOptionList)return(0,a.typedCastUtil)(r.k,this.legOptionList[e])}}},58020:(e,t,i)=>{i.d(t,{A:()=>r});let r=(e,t)=>{if(void 0===t)return;let i=new e;return t.error||Object.assign(i,t),i}},77741:(e,t,i)=>{i.d(t,{v:()=>n,j:()=>o});var r=i(44587);class a{getDealConditionsOfModule(e){return(0,r.typedCastUtil)(Array,this[e])||void 0}}class s{getDealConditionsDataByModule(e){let t=(0,r.typedCastUtil)(a,this.modules);return t?.getDealConditionsOfModule(e)}}class n{getData(){let e=(0,r.typedCastUtil)(o,this.data);return e?.getDealConditions()||void 0}}class o{getDealConditions(){return(0,r.typedCastUtil)(s,this.data)||void 0}}},88786:(e,t,i)=>{i.d(t,{N:()=>s});var r=i(6621),a=i(14682);class s{constructor(e){this.schema={"@context":"https://schema.org"},this.schema["@type"]=e}static createPropertyValue(e,t){return{"@type":"PropertyValue",name:e,value:t}}static createShippingDetails(e){return{"@type":"OfferShippingDetails",shippingDestination:e.addressCountry?{"@type":"DefinedReg
1ion",addressCountry:e.addressCountry}:void 0,deliveryTime:{"@type":"ShippingDeliveryTime",businessDays:e.businessDays?{"@type":"OpeningHoursSpecification",dayOfWeek:e.businessDays}:void 0,cutOffTime:e.cutOffTime,handlingTime:e.handlingTimeDays?{"@type":"QuantitativeValue",value:e.handlingTimeDays,unitText:"days"}:void 0}}}static createReturnPolicy(e){return{"@type":"MerchantReturnPolicy",applicableCountry:e.applicableCountry||"IL",returnPolicyCategory:e.returnPolicyCategory||"https://schema.org/MerchantReturnFiniteReturnWindow",merchantReturnDays:e.returnDays||14,returnMethod:e.returnMethod||"https://schema.org/ReturnByMail",returnFees:e.returnFees||"https://schema.org/FreeReturn"}}static touristTrip(){return new s("TouristTrip")}static itemList(){return new s("ItemList")}static listItem(){return new s("ListItem")}static imageObject(){return new s("ImageObject")}static product(){return new s("Product")}static offer(){return new s("Offer")}static flight(){return new s("Flight")}static hotel(){return new s("Hotel")}static organization(){return new s("Organization")}static place(){return new s("Place")}static rating(){return new s("Rating")}static aggregateRating(){return new s("AggregateRating")}static priceSpecification(){return new s("PriceSpecification")}static quantitativeValue(){return new s("QuantitativeValue")}static airport(){return new s("Airport")}static faqPage(){return new s("FAQPage")}name(e){return this.schema.name=e,this}description(e){return this.schema.description=e,this}identifier(e){return this.schema.identifier=e,this}touristType(e){return this.schema.touristType=e,this}itinerary(e){return this.schema.itinerary=e instanceof s?e.build():e,this}provider(e){return this.schema.provider=e instanceof s?e.build():e,this}subTrip(e){return this.schema.subTrip||(this.schema.subTrip=[]),this.schema.subTrip.push(e instanceof s?e.build():e),this}partOfTrip(e){return this.schema.partOfTrip=e instanceof s?e.build():e,this}itemListElement(e){return this.schema.itemListElement||(this.schema.itemListElement=[]),this.schema.itemListElement.push(e instanceof s?e.build():e),this}position(e){return this.schema.position=e,this}item(e){return this.schema.item=e instanceof s?e.build():e,this}sku(e){return this.schema.sku=e,this}mpn(e){return this.schema.mpn=e,this}image(e){return this.schema.image=e,this}category(e){return this.schema.category=e,this}offers(e){return this.schema.offers=e instanceof s?e.build():e,this}url(e){return this.schema.url=e,this}price(e){return this.schema.price=e,this}priceCurrency(e){return this.schema.priceCurrency=e,this}priceValidUntil(e){return this.schema.priceValidUntil=e,this}availability(e){return this.schema.availability=e,this}seller(e){return this.schema.seller=e instanceof s?e.build():e,this}eligibleRegion(e){return this.schema.eligibleRegion=e instanceof s?e.build():e,this}priceSpecification(e){return this.schema.priceSpecification=e instanceof s?e.build():e,this}shippingDetails(e){return this.schema.shippingDetails=e,this}merchantReturnPolicy(e){return this.schema.hasMerchantReturnPolicy=e,this}additionalProperty(e){return this.schema.additionalProperty||(this.schema.additionalProperty=[]),this.schema.additionalProperty.push(e),this}additionalProperties(e){return this.schema.additionalProperty=e,this}aggregateRating(e){return this.schema.aggregateRating=e instanceof s?e.build():e,this}ratingValue(e){return this.schema.ratingValue=e,this}bestRating(e){return this.schema.bestRating=e,this}worstRating(e){return this.schema.worstRating=e,this}ratingCount(e){return this.schema.ratingCount=e,this}starRating(e){return this.schema.starRating=e instanceof s?e.build():e,this}flightNumber(e){return this.schema.flightNumber=e,this}departureTime(e){return this.schema.departureTime=e,this}arrivalTime(e){return this.schema.arrivalTime=e,this}departureAirport(e){return this.schema.departureAirport=e instanceof s?e.build():e,this}arrivalAirport(e){return this.schema.arrivalAirport=e instanceof s?e.build():e,this}iataCode(e){return this.schema.iataCode=e,this}valueAddedTaxIncluded(e){return this.schema.valueAddedTaxIncluded=e,this}eligibleQuantity(e){return this.schema.eligibleQuantity=e instanceof s?e.build():e,this}value(e){return this.schema.value=e,this}unitText(e){return this.schema.unitText=e,this}isRelatedTo(e){return this.schema.isRelatedTo=e.map(e=>e instanceof s?e.build():e),this}addRelatedItem(e){return this.schema.isRelatedTo||(this.schema.isRelatedTo=[]),this.schema.isRelatedTo.push(e instanceof s?e.build():e),this}set(e,t){return this.schema[e]=t,this}merge(e){return Object.assign(this.schema,e),this}build(){return{...this.schema}}toJSON(){return JSON.stringify(this.build())}static createProductSchema(e){let t=s.product();if(e.name&&t.name(e.name),e.description&&t.description(e.description),e.sku&&t.sku(e.sku),e.mpn&&t.mpn(e.mpn),e.images&&t.image(e.images),e.category&&t.category(e.category),e.properties&&t.additionalProperties(e.properties),e.rating){let i=s.aggregateRating().ratingV
1alue(e.rating.value).bestRating(e.rating.max).worstRating(e.rating.min).ratingCount(e.rating.count);t.aggregateRating(i)}if(e.relatedItems&&t.isRelatedTo(e.relatedItems),e.price||e.currency||e.url||e.seller){let i=s.offer();if(e.price&&i.price(e.price),e.currency&&i.priceCurrency(e.currency),e.url&&i.url(e.url),e.seller){let t=s.organization().name(e.seller);i.seller(t)}i.availability("https://schema.org/InStock"),e.shippingDetails&&i.shippingDetails(e.shippingDetails),e.returnPolicy&&i.merchantReturnPolicy(e.returnPolicy),t.offers(i)}return t}static createFlightSchema(e){let t=s.flight();if(e.flightNumber&&t.flightNumber(e.flightNumber),e.departureTime&&t.departureTime(e.departureTime),e.arrivalTime&&t.arrivalTime(e.arrivalTime),e.departureAirport){let i=s.airport().iataCode(e.departureAirport.iataCode).name(e.departureAirport.name);t.departureAirport(i)}if(e.arrivalAirport){let i=s.airport().iataCode(e.arrivalAirport.iataCode).name(e.arrivalAirport.name);t.arrivalAirport(i)}return t}static createHotelSchema(e){let t=s.hotel();if(e.name&&t.name(e.name),e.starRating){let i=s.rating().ratingValue(e.starRating);t.starRating(i)}return t}static createTravelPackageSchema(e){let{touristTrip:t,locale:i,t:n,getImageSrc:o,getDatesText:l,getHotelStayDuration:g}=e,u=t.getFirstFlight(),h=t.getSecondFlight(),p=t.getHotel(),c=t.getNumberOfStars(),d=[s.createPropertyValue("Package Type",`${n("flight")} + ${n("hotel")}`),s.createPropertyValue("Duration",g()||"Multiple Days"),s.createPropertyValue("Departure City",t.getDepartCityName()||"TLV"),s.createPropertyValue("Destination",t.getArrivalCityName()||"")];p&&d.push(s.createPropertyValue("Hotel Name",t.getHotelName())),c&&d.push(s.createPropertyValue("Hotel Rating",`${c} Stars`)),u&&d.push(s.createPropertyValue("Outbound Flight",u.flightNumber)),h&&d.push(s.createPropertyValue("Return Flight",h.flightNumber));let m=[];u&&m.push(s.createFlightSchema({flightNumber:u.flightNumber,departureTime:u.departureTime,arrivalTime:u.arrivalTime,departureAirport:u.departureAirport?{iataCode:u.departureAirport.iataCode,name:t.getDepartCityName()||u.departureAirport.iataCode}:void 0,arrivalAirport:u.arrivalAirport?{iataCode:u.arrivalAirport.iataCode,name:t.getArrivalCityName()||u.arrivalAirport.iataCode}:void 0}).build()),h&&m.push(s.createFlightSchema({flightNumber:h.flightNumber,departureTime:h.departureTime,arrivalTime:h.arrivalTime,departureAirport:h.departureAirport?{iataCode:h.departureAirport.iataCode,name:t.getArrivalCityName()||h.departureAirport.iataCode}:void 0,arrivalAirport:h.arrivalAirport?{iataCode:h.arrivalAirport.iataCode,name:t.getDepartCityName()||h.arrivalAirport.iataCode}:void 0}).build()),p&&c&&m.push(s.createHotelSchema({name:t.getHotelName(),starRating:c}).build());let y=s.createShippingDetails({addressCountry:t.getArrivalCityCode()||"International",businessDays:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],cutOffTime:u&&r.c9.fromFormat(u.departureTime,"LLL d, yyyy, h:mm:ss a").toISO()||void 0,handlingTimeDays:"0"}),L=s.createReturnPolicy({}),f=s.createProductSchema({name:t.params?.propTitle||`${t.getArrivalCityName()} ${n("flight")} + ${n("hotel")}`,description:`${n("flight")} + ${n("hotel")} ${t.getArrivalCityName()?`to ${t.getArrivalCityName()}`:""} - ${l()} ${g()}`,sku:t.getIdentifier()||"",mpn:t.getIdentifier()||"",images:[o(t.getImageUrl())],category:"Travel & Tourism > Travel Packages",price:t.getPricePerPerson(),currency:String(t.getCurrency()),url:(0,a.fR)(t.getIdentifier(),i),seller:e.seller,properties:d,rating:c?{value:c,max:"5",min:"1",count:1}:void 0,relatedItems:m,shippingDetails:y,returnPolicy:L}).build();return f.offers&&h&&(f.offers.priceValidUntil=r.c9.fromFormat(h.departureTime,"LLL d, yyyy, h:mm:ss a").toISODate()),f.offers&&(f.offers.eligibleRegion={"@type":"Place",name:t.getArrivalCityName()||"International"},f.offers.priceSpecification={"@type":"PriceSpecification",price:t.getPricePerPerson(),priceCurrency:String(t.getCurrency()),valueAddedTaxIncluded:!0,eligibleQuantity:{"@type":"QuantitativeValue",value:t.offers?.eligibleQuantity||2,unitText:"person"}}
1),new s("Product").merge(f)}static createTouristTripSchema(e){let{touristTrip:t,locale:i,t:n,getImageSrc:o}=e,l=t.getFirstFlight(),g=t.getSecondFlight(),u=t.getHotel(),h=t.isOneWay?.()||!1,p=t.params?.propTitle||t.name||`${t.getDepartCityName()||"TLV"} â ${t.getArrivalCityName()||"Destination"}`,c=t.description||t.disambiguatingDescription||`${n("tourist-trip")} from ${t.getDepartCityName()||"TLV"} to ${t.getArrivalCityName()||"Destination"}`,d=[],m=1;l&&d.push({"@type":"ListItem",position:m++,item:{"@type":"Flight",flightNumber:l.flightNumber,departureTime:l.departureTime,arrivalTime:l.arrivalTime,aircraft:l.aircraft,departureAirport:{"@type":"Airport",iataCode:l.departureAirport?.iataCode,name:t.getDepartCityName()||l.departureAirport?.iataCode},arrivalAirport:{"@type":"Airport",iataCode:l.arrivalAirport?.iataCode,name:t.getArrivalCityName()||l.arrivalAirport?.iataCode}}}),u&&d.push({"@type":"ListItem",position:m++,item:{"@type":"LodgingBusiness",name:t.getHotelName?.()||u.name,starRating:{"@type":"Rating",ratingValue:t.getNumberOfStars?.()||u.starRating||0}}}),g&&!h&&d.push({"@type":"ListItem",position:m++,item:{"@type":"Flight",flightNumber:g.flightNumber,departureTime:g.departureTime,arrivalTime:g.arrivalTime,aircraft:g.aircraft,departureAirport:{"@type":"Airport",iataCode:g.departureAirport?.iataCode,name:t.getArrivalCityName()||g.departureAirport?.iataCode},arrivalAirport:{"@type":"Airport",iataCode:g.arrivalAirport?.iataCode,name:t.getDepartCityName()||g.arrivalAirport?.iataCode}}});let y={"@type":"Offer",price:t.getPricePerPerson?.()||t.offers?.price,priceCurrency:String(t.getCurrency?.()||t.offers?.priceCurrency),availability:"https://schema.org/InStock",url:(0,a.fR)(t.getIdentifier?.()||t.identifier,i),validFrom:l?r.c9.fromFormat(l.departureTime,"LLL d, yyyy, h:mm:ss a").minus({days:30}).toISODate():void 0,priceValidUntil:l?r.c9.fromFormat(l.departureTime,"LLL d, yyyy, h:mm:ss a").toISODate():void 0,eligibleQuantity:{"@type":"QuantitativeValue",value:t.offers?.eligibleQuantity||t.offers?.getAdults?.()||2,unitText:"person"}},L=t.image?.url||t.getImageUrl?.(),f=L?{"@type":"ImageObject",url:o(L),caption:p}:void 0,C=s.touristTrip().name(p).description(c).set("identifier",t.getIdentifier?.()||t.identifier).set("touristType",t.touristType||"General").set("offers",y).set("itinerary",{"@type":"ItemList",itemListElement:d}).set("image",f).set("provider",{"@type":"Organization",name:e.seller??""});return l&&C.set("departureTime",l.departureTime),g&&!h?C.set("arrivalTime",g.arrivalTime):l&&C.set("arrivalTime",l.arrivalTime),C}static createFlightProductSchema(e){let{touristTrip:t,locale:i,t:n,getImageSrc:o,getDatesText:l}=e,g=t.getFirstFlight(),u=t.getSecondFlight(),h=t.isOneWay(),p=h?n("one-way-flight")||"One Way Flight":n("round-trip-flight")||"Round Trip Flight",c=[s.createPropertyValue("Product Type",n("flight")||"Flight"),s.createPropertyValue("Trip Type",p),s.createPropertyValue("Departure City",t.getDepartCityName()||"TLV"),s.createPropertyValue("Destination",t.getArrivalCityName()||"")];if(g&&(c.push(s.createPropertyValue("Outbound Flight",g.flightNumber||""),s.createPropertyValue("Departure Time",g.departureTime||"")),g.aircraft&&c.push(s.createPropertyValue("Aircraft",g.aircraft))),u&&!h&&c.push(s.createPropertyValue("Return Flight",u.flightNumber||""),s.createPropertyValue("Return Time",u.departureTime||"")),t.offers){let e=t.offers.getAdults?.()||2,i=t.offers.getChildren?.()||0;c.push(s.createPropertyValue("Adult Passengers",String(e)),s.createPropertyValue("Child Passengers",String(i)))}let d=[];g&&d.push(s.createFlightSchema({flightNumber:g.flightNumber,departureTime:g.departureTime,arrivalTime:g.arrivalTime,departureAirport:g.departureAirport?{iataCode:g.departureAirport.iataCode,name:t.getDepartCityName()||g.departureAirport.iataCode}:void 0,arrivalAirport:g.arrivalAirport?{iataCode:g.arrivalAirport.iataCode,name:t.getArrivalCityName()||g.arrivalAirport.iataCode}:void 0}).build()),u&&!h&&d.push(s.createFlightSchema({flightNumber:u.flightNumber,departureTime:u.departureTime,arrivalTime:u.arrivalTime,departureAirport:u.departureAirport?{iataCode:u.departureAirport.iataCode,name:t.getArrivalCityName()||u.departureAirport.iataCode}:void 0,arrivalAirport:u.arrivalAirport?{iataCode:u.arrivalAirport.iataCode,name:t.getDepartCityName()||u.arrivalAirport.iataCode}:void 0}).build());let m=s.createShippingDetails({addressCountry:t.getArrivalCityCode()||"International",businessDays:["Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday","Sunday"],cutOffTime:g&&r.c9.fromFormat(g.departureTime,"LLL d, yyyy, h:mm:ss a").toISO()||void 0,handlingTimeDays:"0"}),y=s.createReturnPolicy({returnDays:1,applicableCountry:"IL"}),L=`${p} - ${t.getDepartCityName()||"TLV"} to ${t.getArrivalCityName()||"Destination"}`,f=l?`${n("flight")||"Flight"} ${p} - ${l()}`:`${n("flight")||"Flight"} ${p} from ${t.getDepartCityName()||"TLV"} to ${t.getArrivalCityName()||"Destination"}`,C=s.createProductSchema({name:t.params?.propTitle||L,description:f,sku:t.getIdentifier()||"",mpn:t.getIdentifier()||"",images:[o(t.getImageUrl?.()||t.getImageUrl())],category:"Travel & Tourism > Flights",price:t.getPricePerPerson(),currency:String(t.getCurrency()),url:(0,a.fR)(t.getIdentifier(),i),seller:e.seller||"",properties:c,relatedItems:d,shippingDetails:m,returnPolicy:y}).build();return C.offers&&(g&&(C.offers.priceValidUntil=r.c9.fromFormat(g.departureTime,"LLL d, yyyy, h:mm:ss a").toISODate()),C.offers.eligibleRegion={"@type":"Place",name:t.getArrivalCityName()||"International"},C.offers.priceSpecification={"@type":"PriceSpecification",price:t.getPricePerPerson(),priceCurrency:String(t.getCurrency()),valueAddedTaxIncluded:!0,eligibleQuantity:{"@type":"QuantitativeValue",value:t.offers?.eligibleQuantity||t.offers?.getAdults?.()||2,unitText:"person"}},C.offers.validFrom=g?r.c9.fromFormat(g.departureTime,"LLL d, yyyy, h:mm:ss a").minus({days:30}).toISODate():void 0),new s("Product").merge(C)}static createHotelProductSchema(e){let{touristTrip:t,locale:i,t:r,getImageSrc:n}=e,o=t.getHotel();if(!o)throw Error("No hotel found in TouristTrip for hotel product schema");let l=t.getHotelName()||o.name||"Hotel",g=t.getNumberOfStars()||o.starRating?.ratingValue||0,u=t.getHotelBoard(),h=t.getRoomType()||"Standard Room",p=t.getHotelStayDuration(),c=[s.createPropertyValue("Product Type",r("hotel")||"Hotel Accommodation"),s.createPropertyValue("Hotel Name",l),s.createPropertyValue("Star Rating",`${g} Stars`),s.createPropertyValue("Room Type",h),s.createPropertyValue("Destination",t.getArrivalCityName()||"")];u&&c.push(s.createPropertyValue("Board Type",u)),p&&c.push(s.createPropertyValue("Stay Duration",`${p} nights`));let d=t.getRoomComposition();if(d&&c.push(s.createPropertyValue("Room Composition",d)),o.amenityFeature){let e=Array.isArray(o.amenityFeature)?o.amenityFeature.map(e=>e.name).join(", "):o.amenityFeature.name;e&&c.push(s.createPropertyValue("Amenities",e))}let m=o.brand?{"@type":"Brand",name:o.brand}:void 0,y=o.address?{"@type":"PostalAddress",addressLocality:t.getArrivalCityName()||o.address.addressLocality,addressCountry:o.address.addressCountry||"International"}:void 0,L=[],f=t.getFirstFlight(),C=t.getSecondFlight();f&&L.push(s.createFlightSchema({flightNumber:f.flightNumber,departureTime:f.departureTime,arrivalTime:f.arrivalTime,departureAirport:f.departureAirport?{iataCode:f.departureAirport.iataCode,name:t.getDepartCityName()||f.departureAirport.iataCode}:void 0,arrivalAirport:f.arrivalAirport?{iataCode:f.arrivalAirport.iataCode,name:t.getArrivalCityName()||f.arrivalAirport.iataCode}:void 0}).build()),C&&L.push(s.createFlightSchema({flightNumber:C.flightNumber,departureTime:C.departureTime,arrivalTime:C.arrivalTime,departureAirport:C.departureAirport?{iataCode:C.departureAirport.iataCode,name:t.getArrivalCityName()||C.departureAirport.iataCode}:void 0,arrivalAirport:C.arrivalAirport?{iataCode:C.arrivalAirport.iataCode,name:t.getDepartCityName()||C.arrivalAirport.iataCode}:void 0}).build());let T=`${l} - ${g} star hotel in ${t.getArrivalCityName()||"destination"}`+(u?` with ${u} board`:"")+(p?` for ${p} nights`:""),A=s.createProductSchema({name:`${l} - ${t.getArrivalCityName()||"Hotel Stay"}`,description:T,sku:`HOTEL-${t.getIdentifier()||o.identifier||""}`,mpn:o.identifier||t.getIdentifier()||"",images:[n(t.getImageUrl()||"")],category:"Travel & Tourism > Hotel Accommodation",price:t.getPricePerPerson(),currency:String(t.getCurrency()),url:(0,a.fR)(t.getIdentifier(),i),seller:e.seller||"",properties:c,rating:g>0?{value:g,max:"5",min:"1",count:1}:void 0,relatedItems:L.length>0?L:void 0}).build();return m&&(A.brand=m),y&&(A.address=y),A.accommodationType="Hotel",A.starRating={"@type":"Rating",ratingValue:g,bestRating:5,worstRating:1},o.amenityFeature&&(A.amenityFeature=Array.isArray(o.amenityFeature)?o.amenityFeature.map(e=>({"@type":"LocationFeatureSpecification",name:e.name,value:e.value})):[{"@type":"LocationFeatureSpecification",name:o.amenityFeature.name,value:o.amenityFeature.value}]),A.offers&&(A.offers.eligibleRegion={"@type":"Place",name:t.getArrivalCityName()||"International"},A.offers.priceSpecification={"@type":"PriceSpecification",price:t.getPricePerPerson(),priceCurrency:String(t.getCurrency()),valueAddedTaxIncluded:!0,eligibleQuantity:{"@type":"QuantitativeValue",value:t.offers?.eligibleQuantity||2,unitText:"person"}},p&&(A.offers.eligibleDuration={"@type":"QuantitativeValue",value:p,unitText:"nights"}
1)),new s("Product").merge(A)}static createPackageProductSchema(e){let{touristTrip:t,locale:i,t:n,getImageSrc:o,getDatesText:l,getHotelStayDuration:g}=e,u=t.getFirstFlight(),h=t.getSecondFlight(),p=t.getHotel(),c=t.getNumberOfStars(),d=t.getTripType(),m="ORG_TOUR"===d,y=[s.createPropertyValue("Product Type",m?n("organized-tour")||"Organized Tour":n("travel-package")||"Travel Package"),s.createPropertyValue("Trip Type",d),s.createPropertyValue("Departure City",t.getDepartCityName()||"TLV"),s.createPropertyValue("Destination",t.getArrivalCityName()||"")];if(l&&y.push(s.createPropertyValue("Travel Dates",l())),p){y.push(s.createPropertyValue("Hotel Name",t.getHotelName()),s.createPropertyValue("Hotel Duration",g()||"Multiple nights")),c&&y.push(s.createPropertyValue("Hotel Rating",`${c} Stars`));let e=t.getHotelBoard();e&&y.push(s.createPropertyValue("Board Type",e))}if(u&&y.push(s.createPropertyValue("Outbound Flight",u.flightNumber)),h&&y.push(s.createPropertyValue("Return Flight",h.flightNumber)),m){let e=t.getInstuctor(),i=t.getInclude(),r=t.getOrgDescription();e&&y.push(s.createPropertyValue("Tour Guide",e)),i&&y.push(s.createPropertyValue("Includes",i)),r&&y.push(s.createPropertyValue("Tour Description",r))}if(t.offers){let e=t.getRoomComposition();e&&y.push(s.createPropertyValue("Room Composition",e))}let L=[];u&&L.push(s.createFlightSchema({flightNumber:u.flightNumber,departureTime:u.departureTime,arrivalTime:u.arrivalTime,departureAirport:u.departureAirport?{iataCode:u.departureAirport.iataCode,name:t.getDepartCityName()||u.departureAirport.iataCode}:void 0,arrivalAirport:u.arrivalAirport?{iataCode:u.arrivalAirport.iataCode,name:t.getArrivalCityName()||u.arrivalAirport.iataCode}:void 0}).build()),h&&L.push(s.createFlightSchema({flightNumber:h.flightNumber,departureTime:h.departureTime,arrivalTime:h.arrivalTime,departureAirport:h.departureAirport?{iataCode:h.departureAirport.iataCode,name:t.getArrivalCityName()||h.departureAirport.iataCode}:void 0,arrivalAirport:h.arrivalAirport?{iataCode:h.arrivalAirport.iataCode,name:t.getDepartCityName()||h.arrivalAirport.iataCode}:void 0}).build()),p&&c&&L.push(s.createHotelSchema({name:t.getHotelName(),starRating:c}).build());let f=t.params?.propTitle||`${t.getDepartCityName()||"TLV"} to ${t.getArrivalCityName()} Package`,C=`Complete travel package including ${u?"flights":"transportation"}${p?" and hotel accommodation":""}`+(l?` - ${l()}`:"")+(p?` at ${t.getHotelName()}`:"")+(m?" - Organized tour with professional guide":""),T=s.createProductSchema({name:f,description:C,sku:`PACKAGE-${t.getIdentifier()||""}`,mpn:t.getIdentifier()||"",images:[o(t.getImageUrl()||"")],category:m?"Travel & Tourism > Tours":"Travel & Tourism > Travel Packages",price:t.getPricePerPerson(),currency:String(t.getCurrency()),url:(0,a.fR)(t.getIdentifier(),i),seller:e.seller||"",properties:y,rating:c?{value:c,max:"5",min:"1",count:1}:void 0,relatedItems:L}).build();if(T.offers){u&&(T.offers.validFrom=r.c9.fromFormat(u.departureTime,"LLL d, yyyy, h:mm:ss a").minus({days:30}).toISODate(),T.offers.priceValidUntil=r.c9.fromFormat(u.departureTime,"LLL d, yyyy, h:mm:ss a").toISODate()),T.offers.eligibleRegion={"@type":"Place",name:t.getArrivalCityName()||"International"},T.offers.priceSpecification={"@type":"PriceSpecification",price:t.getPricePerPerson(),priceCurrency:String(t.getCurrency()),valueAddedTaxIncluded:!0,eligibleQuantity:{"@type":"QuantitativeValue",value:t.offers?.eligibleQuantity||2,unitText:"person"}};let e=[];(u||h)&&e.push("Round-trip flights"),p&&e.push("Hotel accommodation"),m&&e.push("Professional tour guide"),e.length>0&&(T.offers.includesObject=e.map(e=>
1({"@type":"TypeAndQuantityNode",amountOfThisGood:1,typeOfGood:{"@type":"Service",name:e}})))}return m&&(T.audience={"@type":"Audience",audienceType:"Tourists",geographicArea:{"@type":"Place",name:t.getArrivalCityName()||"International"}}),new s("Product").merge(T)}static createComprehensiveProductSchemaFromTrip(e){let{touristTrip:t}=e,i=t.getTripType(),r=!!t.getHotel(),n=!!t.getFirstFlight();if(!n&&r)return s.createHotelProductSchema(e);{if(n&&!r)return s.createFlightProductSchema({...e,getDatesText:e.getDatesText});if(n&&r)return s.createPackageProductSchema({...e,getHotelStayDuration:e.getHotelStayDuration||(()=>t.getHotelStayDuration()?.toString()+" nights")});let o=[s.createPropertyValue("Product Type",e.t("travel-service")||"Travel Service"),s.createPropertyValue("Trip Type",i)];return s.createProductSchema({name:t.params?.propTitle||`${t.getDepartCityName()||""} Travel Service`,description:t.description||`Travel service - ${i}`,sku:t.getIdentifier()||"",mpn:t.getIdentifier()||"",images:e.getImageSrc(t.getImageUrl()||"")?[e.getImageSrc(t.getImageUrl()||"")]:[],category:"Travel & Tourism > Travel Services",price:t.getPricePerPerson(),currency:String(t.getCurrency()),url:(0,a.fR)(t.getIdentifier(),e.locale),seller:e.seller||"",properties:o})}}mainEntity(e){return this.schema.mainEntity=e,this}question(e,t){return this.schema.mainEntity||(this.schema.mainEntity=[]),this.schema.mainEntity.push({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:t}}),this}static createFAQSchema(e){let t=e.filter(e=>e.question&&e.answer);if(0===t.length)return;let i=s.faqPage();return t.forEach(e=>i.question(e.question,e.answer)),i}}},89166:(e,t,i)=>{i.d(t,{RT:()=>n,$7:()=>o,B6:()=>l,RL:()=>g,yZ:()=>_,jg:()=>x.j,Nt:()=>r,wi:()=>c,CS:()=>d,KS:()=>u,Xj:()=>h,k9:()=>m,UP:()=>p,YG:()=>y,k:()=>K.k,ws:()=>v,UB:()=>N,gE:()=>$,ah:()=>V,wH:()=>G,yW:()=>R,q0:()=>M.q,vQ:()=>F,o2:()=>b,Ol:()=>U});class r{}var a=i(44587);let s=(e,t)=>{if(e)return e instanceof Map||(e=new Map(Object.entries(e))),e.get(t)};class n{getCityImageByCityCode(e,t){let i=s(this.packageDestinationsImagesMap,t);if(i=(0,a.castUtil)(o,i))return i.getImageByCityCode(e)}}class o{getImageByCityCode(e){return s(this.imageByDestinationMap,e)}}class l{}class g{getCityNameByCityCode(e){return s(this.data,e)}addToMapCityNameWithCityCode(e,t){if(e!=t){if(this.data&&this.data instanceof Map)return void this.data.set(e,t);this.data=new Map(Object.entries(this.data)),this.data.set(e,t)}}}class u{}class h{}class p{}class c{}class d{}class m{getChilds(){return this.child=this.child?.map(e=>(0,a.castUtil)(m,e)),this.child}}class y{}class L{isEmpty(){return 0===Object.keys(this).length}}var f=i(9702),C=i(58020),T=i(31190);let A="cityCodeImageMap",O=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(null===localStorage.getItem(A)||e)&&T.r.getCityImageByCodeAllPackagesMap().then(e=>{e.timestamp=new Date().getTime(),localStorage.setItem(A,JSON.stringify(e))})};class S{getmaxHandLuggageWeight(){if(this.additionalProperty&&this.additionalProperty[0]&&null!=this.additionalProperty[0].value)if("number"==typeof this?.additionalProperty[0].value)return this?.additionalProperty[0].value;else return parseInt(this?.additionalProperty[0].value);return 0}maxCheckedLuggageWeight(){if(this.additionalProperty&&this.additionalProperty[1]&&null!=this.additionalProperty[1].value)if("number"==typeof this?.additionalProperty[1].value)return this?.additionalProperty[1].value;else return parseInt(this?.additionalProperty[1].value);return 0}getSeats(){if(this.depFlightPlaceLeft)if(this.depFlightPlaceLeft<9)return this.depFlightPlaceLeft;else return 9;return 0}getmaxCheckedLuggageWeight(){if(this.additionalProperty&&null!=this.additionalProperty[1]&&null!=this.additionalProperty[1].value)return this.additionalProperty[1].value.toString()}isValid(){return!!this?.departureTime}getDepartureTime(){return new Date(this.departureTime)}getArrivalTime(){return new Date(this.arrivalTime)}}class P{getBoard(){if(this.amenityFeature&&this.amenityFeature.value)return this.amenityFeature.value}getKeywords(){if(this.keywords)return this.keywords}isImmediateConfirmation(){return!!this.potentialAction&&!!this.potentialAction.name&&this.potentialAction.name}isRecommended(){if(!(this.additionalProperty&&this.additionalProperty.find(e=>"isRecommended"===e.name)))return!1;{let e=this.additionalProperty.findIndex(e=>"isRecommended"===e.name);return this.additionalProperty[e].value}}getHotelName(){return this.name?this.name:""}getRoomType(){return this.roomType?this.roomType:""}isRoomAccessible(){return this.roomType.toLowerCase().indexOf("accessible")>-1}}var D=i(91502),I=i(6621),E=i(88786);class b extends L{isValid(){return!(this.error||"isSucceeded==false"===this.error)}hasTripData(){return this.params?.manual!=null||this.isIncludeFlight()||null!=this.getHotel()}getIdentifier(){return this.identifier}getDeepLink(){let e,t;if(this.identifier)return"https://lts9pre18.sabre.co.il"+this.identifier;let i=this.getArrivalCityCode(),r=this.getFirstFlight()?.departureTime;if(r){let t=I.c9.fromFormat(r,"LLL d, yyyy, h:mm:ss a");r=t.toFormat("dd/LL/yy"),e=t.valueOf()+";"}let a=this.getSecondFlight()?.departureTime;if(a){let t=I.c9.fromFormat(a,"LLL d, yyyy, h:mm:ss a");
1a=t.toFormat("dd/LL/yy"),e+=t.valueOf()+";"}t="ETH"==this.getArrivalCityCode()?this.getHotel()?"domesticPackage":"domesticFlight":this.getHotel()?"abroadPackage":"abroadFlight";let s="https://lts9pre18.sabre.co.il/{SEARCH_MODULE}/search.do?details=true&depCode=TLV".replace("{SEARCH_MODULE}",t),n=this.getFirstFlight()?.flightNumber+";"+this.getSecondFlight()?.flightNumber+";",o=`${s}&destCode=${i}&departDate=${r}&returnDate=${a}&fNumbers=${n}&fTimes=${e}`,l=this.offers?.getAdults()?this.offers?.getAdults():2,g=this.offers?.getChildren()?this.offers?.getChildren():0;return o+=`&adultsNum=${l}&childrenNum=${g}`,this.getHotel()&&(o+=`&hotelBoard=${this.getHotelBoard()}&hCode=${this?.hotel?.identifier}`),o}isIncludeFlight(){let e=this.getFirstFlight(),t=this.getSecondFlight();return null!=e||null!=t}getHotelStayDuration(){return(this.hotel=(0,a.castUtil)(P,this.getHotel()),this.hotel?.containsPlace?.leaseLength)?parseInt(this.hotel.containsPlace.leaseLength):null}getHotelBoard(){if(this.hotel=(0,a.castUtil)(P,this.getHotel()),this.hotel)return this.hotel.getBoard()}getRoomComposition(){if(this.offers&&this.offers.eligibleQuantity)return this.offers=(0,a.castUtil)(D.a,this.offers),this.offers.getRoomComposition();if(this.hotel=(0,a.castUtil)(P,this.getHotel()),!this.hotel)return"2A";{let e=this.hotel.containsPlace.occupancy,t="";if(void 0!=e)return""==(t=t+e.toString()+"A")?void 0:t}}getLastMinuteId(){return this.params.dealId&&this.params.dealId.length>0?this.params.dealId:void 0}getContainerId(){return this.params.idxCont}getPromotionId(){return this.params.idxComp}isManual(){return null!=this.params.manual}hasManualContent(){let e=this.params?.manual;return null!=e&&(["subTitle","freeText","dates","conditions","manualDataViewFare"].some(t=>e[t])||!!this.params.remarks)}getPricePerPerson(){if(this.offers)return this.offers=(0,a.castUtil)(D.a,this.offers),this.offers.getPricePerPerson()}isImmediateConfirmation(){return this.hotel=(0,a.castUtil)(P,this.getHotel()),!!this.hotel&&this.hotel.isImmediateConfirmation()}getArrivalCityCode(){let e=this.getFirstFlight(),t="DOMESTIC_FLIGHT"===this.getTripType();if(null!=e)return!t&&["TLV","ETH","HFA","ETM"].indexOf(e.arrivalAirport.iataCode)>-1?e.departureAirport.iataCode:e.arrivalAirport.iataCode}getDepartCityCode(){let e=this.getSecondFlight();return(null==e&&(e=this.getFirstFlight()),null==e)?null:e.arrivalAirport.iataCode}getArrivalCityName(){return null==this.translations||null==this.translations.cityNameFrom?"":this.translations.cityNameFrom}getDepartCityName(){return null==this.translations||null==this.translations.cityNameTo?"Translation error":this.translations.cityNameTo}getGeoCodes(){let e=this.getFirstFlight();return null==e||null==e.arrivalAirport||null==e.arrivalAirport.geo?null:e.arrivalAirport.geo}getPromoTitle(){return null==this.image||null==this.image.caption?"No promotion title":this.image.caption}getFirstFlight(){if(this.itinerary?.itemListElement&&this.itinerary.itemListElement.find){let e=this.itinerary.itemListElement.find(e=>"Flight"===e["@type"]);return(0,a.castUtil)(S,e)}return null}isOneWay(){return null===this.getSecondFlight()}getSecondFlight(){if(this.itinerary?.itemListElement&&this.itinerary.itemListElement.findLast){let e=this.itinerary.itemListElement.findLast(e=>"Flight"===e["@type"]),t=(0,a.castUtil)(S,e);if(t?.isValid())return t}return null}getHotel(){return this.itinerary?.itemListElement?this.itinerary.itemListElement.find(e=>"Hotel"===e["@type"]):null}isImageValid(){return this.getImageUrl()?.endsWith(".jpg")??this.getImageUrl()?.endsWith(".png")??this.getImageUrl()?.endsWith(".bpm")}getImageUrl(){if(this.imageExists())return this.imageExistInPromotion()?this.image.url:this.imagePathFromUtil}imageExists(){return this.imageExistInPromotion()||this.imageExistInUtilMap()}imageExistInPromotion(){return this.image?.url!=null}imageExistInUtilMap(){if(this.imagePathFromUtil)return!0;let e=this.getArrivalCityCode(),t=this.getHotel()?f.ZB.HOTEL_FLIGHT_PACKAGE:f.ZB.FLIGHT_PACKAGE;return this.imagePathFromUtil=((e,t)=>{if(!e||!t)return;let i=localStorage.getItem(A);if(null==i)O();else{let r=(0,C.A)(n,JSON.parse(i)).getCityImageByCityCode(e,t);if(void 0!=r)return r}})(e,t),void 0!=this.imagePathFromUtil}toFlat(){let e;return(e=[]).push(this),e}
1toMixFlat(){return this.toFlat()}getRoomBoardText(){let e=this.hotel.getBoard();return e?f.r6[e]:""}getDatesText(){let e=this.getFirstFlight(),t=this.getSecondFlight();if(!e||!t)return"";{let i=new Date(e.departureTime),r=(t.departureTime,new Date(t.departureTime));return`${i.getDate()}.${i.getMonth()+1}.${i.getFullYear()-2e3}-${r.getDate()}.${r.getMonth()+1}.${r.getFullYear()-2e3}`}}getTripType(){return this.params?void 0!==this.params.type?this.params.type:"HOTEL_FLIGHT_PACKAGE":"HOTEL_PACKAGE"}getInstuctor(){return this.params&&"ORG_TOUR"===this.params.type?this.params.instructor:void 0}getInclude(){return this.params&&"ORG_TOUR"===this.params.type?this.params.include:void 0}getOrgDescription(){return this.params&&"ORG_TOUR"===this.params.type?this.disambiguatingDescription:void 0}isRecommended(){return this.hotel=(0,a.castUtil)(P,this.getHotel()),!!this.hotel&&this.hotel.isRecommended()}isRoomAccessible(){return this.hotel=(0,a.castUtil)(P,this.getHotel()),!!this.hotel&&this.hotel.isRoomAccessible()}getRoomType(){return(this.hotel=(0,a.castUtil)(P,this.getHotel()),this.hotel)?this.hotel.getRoomType():""}getRoomName(){return this.getRoomType()}getHotelName(){return(this.hotel=(0,a.castUtil)(P,this.getHotel()),this.hotel)?this.hotel.getHotelName():""}getHotelCity(){try{if(this.hotel=(0,a.castUtil)(P,this.getHotel()),this.hotel)return this.hotel.hotelCity;return""}catch(e){return""}}getCurrency(){return this.offers?(this.offers=(0,a.castUtil)(D.a,this.offers),this.offers.getCurrency()):f.Oo.USD}getPeopleCountDomestic(){return this.getHotel()?(this.hotel=(0,a.castUtil)(P,this.getHotel()),`A${this.hotel.containsPlace.occupancy}`):void 0}isClub(){return!!(this.offers?.params&&this.offers?.params?.points)}getShortestFlightDuration(){let e=this.getFirstFlight(),t=this.getSecondFlight();if(e){let i=new Date(e.departureTime),r=new Date(e.arrivalTime),a=this.calculateTimeDifference(i,r);if(t){let e=new Date(t.departureTime),i=new Date(t.arrivalTime),r=this.calculateTimeDifference(e,i);if(a.hours>r.hours)return r;if(a.hours===r.hours)return a.minutes>r.minutes?r:a}return a}return{hours:2,minutes:0}}calculateTimeDifference(e,t){let i=Math.abs(t.getTime()-e.getTime());return{hours:Math.floor(i/36e5),minutes:Math.floor(i%36e5/6e4)}}getTitle(){return this.params.showTitle&&"on"===this.params.showTitle?this.params.propTitle?this.params.propTitle:null!==this.getArrivalCityName()?this.getArrivalCityName():"":""}getTagString(e){let t="";return this.isRecommended()&&(t+=e("isRecommended")),this.getHotel(),this.params.propText&&(t.length>0?t+=", "+this.params.propText:t+=this.params.propText),this.name&&(t.length>0?t+=", "+this.name:t+=this.name),t}isFromAbroad(){let e="DOMESTIC_FLIGHT"===this.getTripType(),t=this.isOneWay(),i=this.getFirstFlight();return null!=i&&t&&!e&&["TLV","ETH","HFA","ETM"].indexOf(i.arrivalAirport.iataCode)>-1}getSearchUrl(){let e=this.getDepartCityCode()||"TLV",t=this.getArrivalCityCode()||"ATH",i=this.getFirstFlight(),r=this.getSecondFlight(),a="",s="";if(i){let e=new Date(i.departureTime);a=`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`}if(r){let e=new Date(r.departureTime);s=`${e.getDate().toString().padStart(2,"0")}/${(e.getMonth()+1).toString().padStart(2,"0")}/${e.getFullYear()}`}let n=this.offers?.getAdults()||2,o=JSON.stringify([{adults:n,child:Array(this.offers?.getChildren()||0).fill(2),baby:[],youth:[],senior:0}]),l=new Date().toISOString(),g=`origin=${e}&destination=${t}&startDate=${a}&endDate=${s}&adults=${n}&rooms=${o}&subject=ALL&searchTime=${l}`;return`/he-IL/reservation/search/flights-and-hotels/results?${g}`}constructor(...e){super(...e),this.imagePathFromUtil=void 0,this.createProductSchemaJsonLd=e=>{let t={locale:"he-IL",t:e=>e,getImageSrc:e=>e,getDatesText:()=>{let e=this.getFirstFlight(),t=this.getSecondFlight();if(!e)return"";let i=I.c9.fromFormat(e.departureTime,"LLL d, yyyy, h:mm:ss a");if(t){let e=I.c9.fromFormat(t.departureTime,"LLL d, yyyy, h:mm:ss a");return`${i.toFormat("dd.MM.yyyy")} - ${e.toFormat("dd.MM.yyyy")}`}return i.toFormat("dd.MM.yyyy")},getHotelStayDuration:()=>{let e=this.getHotelStayDuration();return e?`${e} nights`:""},...e};try{return E.N.createComprehensiveProductSchemaFromTrip({touristTrip:this,locale:t.locale,t:t.t,getImageSrc:t.getImageSrc,getDatesText:t.getDatesText,getHotelStayDuration:t.getHotelStayDuration}).toJSON()}catch(i){console.warn("Failed to create comprehensive product schema, falling back to basic schema:",i);let e=[E.N.createPropertyValue("Product Type",this.getTripType()),E.N.createPropertyValue("Departure City",this.getDepartCityName()||"TLV"),E.N.createPropertyValue("Destination",this.getArrivalCityName()||"")];return E.N.createProductSchema({name:this.params?.propTitle||`${this.getDepartCityName()||"TLV"} to ${this.getArrivalCityName()||"Destination"}`,description:this.description||`Travel service - ${this.getTripType()}`,sku:this.getIdentifier()||"",mpn:this.getIdentifier()||"",images:this.getImageUrl()?[t.getImageSrc(this.getImageUrl())]:[],category:"Travel & Tourism > Travel Services",price:this.getPricePerPerson(),currency:String(this.getCurrency()),seller:"WebGuru Travel",properties:e}).toJSON()}},this.createHotelProductSchemaJsonLd=e=>{let t={locale:"he-IL",t:e=>e,getImageSrc:e=>e,...e};return E.N.createHotelProductSchema({touristTrip:this,locale:t.locale,t:t.t,getImageSrc:t.getImageSrc}).toJSON()},this.createFlightProductSchemaJsonLd=e=>{let t={locale:"he-IL",t:e=>e,getImageSrc:e=>e,getDatesText:()=>{let e=this.getFirstFlight(),t=this.getSecondFlight();if(!e)return"";let i=I.c9.fromFormat(e.departureTime,"LLL d, yyyy, h:mm:ss a");if(t){let e=I.c9.fromFormat(t.departureTime,"LLL d, yyyy, h:mm:ss a");return`${i.toFormat("dd.MM.yyyy")} - ${e.toFormat("dd.MM.yyyy")}`}return i.toFormat("dd.MM.yyyy")},...e};return E.N.createFlightProductSchema({touristTrip:this,locale:t.locale,t:t.t,getImageSrc:t.getImageSrc,getDatesText:t.getDatesText}).toJSON()},this.createPackageProductSchemaJsonLd=e=>{let t={locale:"he-IL",t:e=>e,getImageSrc:e=>e,getDatesText:()=>{let e=this.getFirstFlight(),t=this.getSecondFlight();if(!e)return"";let i=I.c9.fromFormat(e.departureTime,"LLL d, yyyy, h:mm:ss a");if(t){let e=I.c9.fromFormat(t.departureTime,"LLL d, yyyy, h:mm:ss a");return`${i.toFormat("dd.MM.yyyy")} - ${e.toFormat("dd.MM.yyyy")}`}return i.toFormat("dd.MM.yyyy")},getHotelStayDuration:()=>{let e=this.getHotelStayDuration();return e?`${e} nights`:""},...e};return E.N.createPackageProductSchema({touristTrip:this,locale:t.locale,t:t.t,getImageSrc:t.getImageSrc,getDatesText:t.getDatesText,getHotelStayDuration:t.getHotelStayDuration}).toJSON()},this.createJsonLd=()=>({"@context":"https://schema.org","@type":"TouristTrip",name:"Some name",description:"Some description",identifier:this.identifier,offers:{"@type":"Offer",priceCurrency:this.offers.priceCurrency,price:this.offers.price,eligibleQuantity:this.offers.eligibleQuantity},itinerary:{"@type":"ItemList",itemListElement:this.itinerary.itemListElement.map(e=>{if("Flight"===e["@type"])return{"@type":"Flight",aircraft:e.aircraft,flightNumber:e.flightNumber,arrivalTime:e.arrivalTime,departureTime:e.departureTime,arrivalAirport:e.arrivalAirport,departureAirport:e.departureAirport,additionalProperty:e.additionalProperty}})}}),this.getNumberOfStars=()=>{let e=this?.itinerary?.itemListElement.find(e=>"Hotel"===e["@type"]);return parseInt(e?.starRating?.ratingValue?.concat("*",""))||null},this.setCheapest=()=>{this.cheapest=!0},this.removeCheapest=()=>{this.cheapest=!1},this.getCheapest=()=>this.cheapest,this.setCheapestInCity=()=>{this.cheapestInCity=!0},this.removeCheapestInCity=()=>{this.cheapestInCity=!1},this.getCheapestInCity=()=>this.cheapestInCity}}class v extends L{isValidTrip(e){return this?.itemListElement[e]!=null&&this?.itemListElement[e]!=void 0}isValid(){if(!this.haveTrips())return!1;{let e=!1;return this.getAllTrips().map(t=>{t.isValid()&&(e=!0)}),e}}haveTrips(){return null!=this.itemListElement}getTrip(e){return this.itemListElement[e]=(0,a.castUtil)(b,this.itemListElement[e]),this.itemListElement[e]}getAllTrips(){return(this.itemListElement=this.itemListElement?.map(e=>(0,a.castUtil)(b,e)),void 0===this.itemListElement)?[]:this.itemListElement}toFlat(){return this.getAllTrips().filter(e=>e.isValid())}
1toMixFlat(){return this.toFlat()}}class N{getComponentDataById(e){return s(this.data,e)}}class R{getPropertyValue(e){let t=s(this.data,e);if(t&&t.value)return t.value}getPropertyObject(e){return s(this.data,e)}getInternalPropertyValue(e,t){if(this.data)return this.getPropertyObject(e)[t]}}class F{getDefaultSiteLanguage(){let e=s(this.data,"language");if(e&&e.identifier)return e.identifier=e.identifier.toLowerCase(),"il"==e.identifier?"he":e.identifier}getSiteLanguages(){let e=this.data?.additionalLanguages?.itemListElement;if(!e)return;let t=[].concat(e);if(t)return t}}class U extends L{getProperty(e){if(this.additionalProperty&&this.additionalProperty&&this.additionalProperty.findLast)return this.additionalProperty.findLast(t=>t.name===e.toString()).value}}class G extends L{haveTrips(){return null!=this.matrix}isValid(){if(!this.haveTrips())return!1;{let e=!1;return this.getListOfManyTrips().map(t=>{t.isValid()&&(e=!0)}),e}}getManyTripsByIndex(e){return this.matrix[e]=(0,a.castUtil)(v,this.matrix[e]),this.matrix[e]}getListOfManyTrips(){return this.matrix=this.matrix?.map(e=>(0,a.castUtil)(v,e)),this.matrix}toFlat(){let e=[];return this.getListOfManyTrips().forEach(t=>{t.toFlat().forEach(t=>e.push(t))}),e}toMixFlat(){let e=[],t=this.getListOfManyTrips().map(e=>e.getAllTrips().length),i=Math.max(...t),r=t.length;for(let a=0;a<i;a++)for(let i=0;i<r;i++){let r=this.getManyTripsByIndex(i);if(a<t[i]){let t=r.getTrip(a);t.params=r.params,t?.isValid()&&e.push(r.getTrip(a))}}return e}}class _ extends L{haveTrips(){return null!=this.complexMatrix}isValid(){if(!this.haveTrips())return!1;{let e=!1;return this.getListOfMatrixTrips().map(t=>{t.isValid()&&(e=!0)}),e}}getMatrixTripsByIndex(e){return this.complexMatrix[e]=(0,a.castUtil)(G,this.complexMatrix[e]),this.complexMatrix[e]}getListOfMatrixTrips(){return this.complexMatrix=this.complexMatrix?.map(e=>(0,a.castUtil)(G,e)),this.complexMatrix}toMixFlat(){let e=[],t=this.getListOfMatrixTrips().map(e=>e.toMixFlat()),i=t.map(e=>e.length),r=Math.max(...i),a=i.length;for(let i=0;i<r;i++)for(let r=0;r<a;r++)i<t[r].length&&e.push(t[r][i]);return e}toFlat(){let e=[];return this.getListOfMatrixTrips().forEach(t=>{t.toFlat().forEach(t=>{e.push(t)})}),e}}var M=i(98308),k=i(15897);class w{getDisplayPerResult(){return this.displayPerResult}getPromotion(){return this.banners.filter(e=>{let t=(0,a.typedCastUtil)(k.C,e);return t?.getType()===f.g2.PROMOTION})}getImageBanners(){return this.banners.filter(e=>{let t=(0,a.typedCastUtil)(k.C,e);return t?.getType()===f.g2.IMAGE})}}class H{getPackageMarketingPromotions(){return(0,a.typedCastUtil)(w,this.HOTEL_FLIGHT_PACKAGE)||void 0}getFlightPromotionData(){return(0,a.typedCastUtil)(w,this.FLIGHT_PACKAGE)||void 0}getPackageWithCarPromotionData(){return(0,a.typedCastUtil)(w,this.HOTEL_FLIGHT_CAR_PACKAGE)||void 0}getDomesticPackagePromotionData(){return(0,a.typedCastUtil)(w,this.DOMESTIC_PACKAGE)||void 0}getDomesticFlightPromotionData(){return(0,a.typedCastUtil)(w,this.DOMESTIC_FLIGHT)||void 0}getDomesticHotelPromotionData(){return(0,a.typedCastUtil)(w,this.DOMESTIC_HOTEL)||void 0}getFlyDrivePromotionData(){return(0,a.typedCastUtil)(w,this.FLY_DRIVE)||void 0}getOrgTourPromotionData(){return(0,a.typedCastUtil)(w,this.ORG_TOUR)||void 0}}class B{getPromotionDataByModule(e){let t=(0,a.typedCastUtil)(H,this.modules);switch(e){case"flights-abroad":return t?.getFlightPromotionData()||void 0;case"domestic-flights":return t?.getDomesticFlightPromotionData()||void 0;case"flights-and-hotels":return t?.getPackageMarketingPromotions()||void 0;case"organised-tours":case"domestic-package":return t?.getDomesticPackagePromotionData()||void 0}}}class ${getData(){let e=(0,a.typedCastUtil)(V,this.data);return e?.getPromotionData()||void 0}}class V{getPromotionData(){return(0,a.typedCastUtil)(B,this.data)||void 0}}var x=i(77741),K=i(97766)},90519:(e,t,i)=>{i.d(t,{Kf:()=>a,Ol:()=>r});let r={ar:"ar-SA",bn:"bn-IN",cs:"cs-CZ",da:"da-DK",de:"de-DE",el:"el-GR",en:"en-US",es:"es-ES",fi:"fi-FI",fr:"fr-FR",he:"he-IL",hi:"hi-IN",hu:"hu-HU",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-BR",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sv:"sv-SE",ta:"ta-IN",th:"th-TH",tr:"tr-TR",zh:"zh-CN"},a=(e,t,i,r)=>{let a,s,n,o,l=e.startsWith("/")?e:`/${e}`,g=r?`?${r}`:"";return l.startsWith("/reservation")||(a=t?.toLowerCase(),s=i?.toLowerCase(),n=a?.split("-")[0],o=s?.split("-")[0],a!==s&&n!==o)?`/${t}${l}${g}`:`${l}${g}`}},91502:(e,t,i)=>{i.d(t,{a:()=>a});var r=i(9702);class a{getAdults(){if(this.eligibleQuantity&&this.eligibleQuantity[0]&&this.eligibleQuantity[0].value)return this.eligibleQuantity[0].value}getChildren(){if(this.eligibleQuantity&&this.eligibleQuantity[1]&&void 0!=this.eligibleQuantity[1].value)return this.eligibleQuantity[1].value}getPeopleAmount(){let e=this.getAdults(),t=this.getChildren();if(void 0!=e&&void 0!=t)return e+t}getRoomComposition(){let e=this.getAdults(),t=this.getChildren(),i="";return void 0!=e&&(i=i+e.toString()+"A"),void 0!=t&&(i=i+t.toString()+"C"),""==i?void 0:i}getPricePerPerson(){let e=this.getPeopleAmount();return void 0!==this.price&&void 0!==e?Math.ceil(this.price/e):this.price&&!e?Math.ceil(this.price):void 0}getCurrency(){return this.priceCurrency?this.priceCurrency:r.Oo.USD}}},95202:(e,t,i)=>{i.d(t,{_:()=>s});class r{getDescription(){return this.description}getTitle(){return this.title}getImageUrl(){return this.mediaMap.IMAGE&&this.mediaMap.IMAGE[0]?this.mediaMap.IMAGE[0]:""}}var a=i(44587);class s{getProductName(){return this.name}getDuration(){return this.duration}getProductType(){return this.type}getImgMediaList(){return this.mediaList.IMAGE}getDayInfoList(){if(!this.dayInfoList)return;let e=this.dayInfoList.filter(e=>"ACTIVE"===e.status),t=[];for(let i=0;i<e.length;i++)e[i]&&t.push((0,a.typedCastUtil)(r,this.dayInfoList[i]));return t}getRemarks(){return this.remarks}getHTMLSummary(){return this.htmlSummary}}},97766:(e,t,i)=>{i.d(t,{k:()=>g});var r=i(17868),a=i(44587),s=i(41916),n=i(4662),o=i(53557);let l={[n.Y6.ECONOMY]:["cabin-note-entertainment-kit","cabin-note-two-meals","cabin-note-cancellation-protection-extra","cabin-note-ticket-change-with-fee","cabin-note-ticket-cancel-with-fee"],[n.Y6.PREMIUM_ECONOMY]:["cabin-note-entertainment-kit","cabin-note-two-meals","cabin-note-seat-selection","cabin-note-cancellation-protection-extra","cabin-note-checkin-counter-priority","cabin-note-luggage-priority","cabin-note-ticket-change-with-fee","cabin-note-ticket-cancel-with-fee"],[n.Y6.BUSINESS]:["cabin-note-entertainment-kit","cabin-note-two-meals","cabin-note-seat-selection","cabin-note-cancellation-protection-extra","cabin-note-checkin-counter-priority","cabin-note-luggage-priority","cabin-note-lounge-access-ben-gurion","cabin-note-ticket-change-24h-no-fee","cabin-note-ticket-change-24-12h-with-fee","cabin-note-ticket-cancel-12h-with-fee"]};class g{getTrolleyIndicatorByCabinType(e){return(0,o.d7)(this.cabinVariants?.[e],o.FS.LUGGAGE_TROLY)}getBaggageIndicatorByCabinType(e){return(0,o.d7)(this.cabinVariants?.[e],o.FS.CHECKED_BAGGAGE)}getBaggageAllowanceByCabinType(e,t){if(!this.cabinVariants)return;let i=this.cabinVariants[e];if(i)return(0,o.sA)(i.baggageInformation,t)}getBaggageAllowances(){if(!this.legSegmentList?.length)return;let e=this.getCabinType()?.[0];return(e&&this.cabinVariants?.[e]?.baggageInformation)??this.legSegmentList?.[0]?.baggageInformation}getAmountByCabinType(e){if(!this.cabinVariants)return;let t=this.cabinVariants[e];if(t)return(0,a.typedCastUtil)(s.f,t.fare)?.getAmount()}getAmountPerPassengerByCabinType(e){if(!this.cabinVariants)return;let t=this.cabinVariants[e];if(t)return(0,a.typedCastUtil)(s.f,t.fare)?.getAmountPerPassenger()}
1getAverageAmountPerPassengerByCabinType(e,t){if(!this.cabinVariants)return;let i=this.cabinVariants[e];if(i)return(0,a.typedCastUtil)(s.f,i.fare)?.getAverageAmountPerPassenger(t)}getAdultFareAmountByCabinType(e){if(!this.cabinVariants)return;let t=this.cabinVariants[e];if(t)return(0,a.typedCastUtil)(s.f,t.fare)?.getAdultFareAmount()}getSeatsByCabinType(e){if(!this.cabinVariants)return;let t=this.cabinVariants[e];if(t)return t.seats}getAlternateFaresByCabinType(e){if(!this.cabinVariants)return;let t=this.cabinVariants[e];if(t)return(0,a.typedCastUtil)(s.f,t.fare)?.getAlternateFares()}getAlternateFares(){return(0,a.typedCastUtil)(s.f,this.legFare)?.getAlternateFares()}getTrolleyIndicator(){return this.castLegSegmentList().getTrolleyIndicator()}getOperatedByCompany(){return this.castLegSegmentList().getOperatedByCompany()}getPackageSystemType(){return this.packageSystemType}isEmptyOptionListBySeats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0===this.legSegmentList.filter((t,i)=>!1===this.castLegSegmentList(i).isEmptySeats(e)).length}getLegFare(){return(0,a.typedCastUtil)(s.f,this.legFare)}getStatusRemarks(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",t=[];for(let i=0;i<this.legSegmentList.length;i++){let i=this.castLegSegmentList();t.push(i.getStatusRemarkByLang(e))}return t}getFlightNumber(){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let t=this.castLegSegmentList();e.push(t.getFlightNumber())}return e}getArrAirportsNames(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let t=this.castLegSegmentList();e.push(t.getArrLocAirportName())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getDepAirportsNames(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let t=this.castLegSegmentList();e.push(t.getDepLocAirportName())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getBaggageIndicator(){if(this.legSegmentList&&this.legSegmentList.length>0)return this.castLegSegmentList().getBaggageIndicator();throw Error("LegSegmentList possible empty array, null or undefined")}getMeals(){if(this.legSegmentList&&this.legSegmentList.length>0)return this.castLegSegmentList().getMeals();throw Error("LegSegmentList possible empty array, null or undefined")}getArrAirportsCode(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getArrAirportCode())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getNumberOfConnectionFlights(){if(this.legSegmentList&&this.legSegmentList.length>0)return this.legSegmentList.length-1;throw Error("LegSegmentList possible empty array, null or undefined")}getDepAirportsCode(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getDepAirportCode())}return e}}getDepTerminals(){return this.legSegmentList?.length?this.legSegmentList.map((e,t)=>this.castLegSegmentList(t).getDepTerminal()):[]}getArrTerminals(){return this.legSegmentList?.length?this.legSegmentList.map((e,t)=>this.castLegSegmentList(t).getArrTerminal()):[]}getArrLocationCityName(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getArrLocationCityName())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getDepLocationCityName(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getDepLocationCityName())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getArrScheduledDateTime(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getArrScheduledDateTime())}return e}}getDepScheduledDateTime(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getDepScheduledDateTime())}return e}}getSeats(){return this.castLegSegmentList().getSeats()}isClubMembersOnly(){return!!this.legSegmentList?.length&&this.legSegmentList.some((e,t)=>this.castLegSegmentList(t).isClubMembersOnly())}isClubClassExclusive(){return!!this.legSegmentList?.length&&this.legSegmentList.some((e,t)=>this.castLegSegmentList(t).isClubClassExclusive())}isClubMembersOnlyByCabinType(e){let t=this.cabinVariants?.[e];return t?!0===t.clubMembersOnly:this.isClubMembersOnly()}isClubClassExclusiveByCabinType(e){let t=this.cabinVariants?.[e];return t?!0===t.clubClassExclusive:this.isClubClassExclusive()}getMinSeats(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=null;for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);try{let t=Number(i.getSeats());(null===e||t<e)&&(e=t)}catch{return"0"}}return(e??0).toString()}
1return this.getSeats()}getDuration(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getDuration())}return e}}getStops(){if(this.legSegmentList&&this.legSegmentList.length>1){let e=[];for(let t=0;t<this.legSegmentList.length-1;t++){let i=this.castLegSegmentList(t),r=this.castLegSegmentList(t+1),a=i.getArrScheduledDateTime(),s=r.getDepScheduledDateTime();if(a&&s){let t=this.parseDateString(a),r=(this.parseDateString(s).getTime()-t.getTime())/6e4,n=Math.floor(r/60)+Math.floor(r%60)/100,o=i.getArrAirportCode();e.push({duration:n,cityCode:o})}}return e}}getTotalDurationWithStops(){let e=this.getDuration(),t=this.getStops(),i=[...e?.filter(e=>void 0!==e)??[],...t?.map(e=>e.duration).filter(e=>void 0!==e)??[]];return this.addDurations(i)}addDurations(e){let t=0;for(let i of e){let e=Math.floor(i),r=Math.round((i-e)*100);t+=60*e+r}return Math.floor(t/60)+t%60/100}parseDateString(e){let[t,i]=e.split(" "),[r,a,s]=t.split("/").map(Number),[n,o,l]=i.split(":").map(Number);return new Date(s,a-1,r,n,o,l)}getEquipmentType(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getEquipmentType())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getMarketingAirlineCodes(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getMarketingAirlineCode())}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getCarierAirlineCodes(){if(this.legSegmentList&&this.legSegmentList.length>0){let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.carrierCode)}return e}throw Error("LegSegmentList possible empty array, null or undefined")}getSuplierFlightId(){let e=(0,a.typedCastUtil)(r.u,this.legSegmentList[0]);if(e)return e.getSupplierFlightId()}isDirect(){if(this.legSegmentList&&this.legSegmentList.length>0)return 1===this.legSegmentList.length;throw Error("LegSegmentList possible empty array, null or undefined")}castLegSegmentList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,a.castUtil)(r.u,this.legSegmentList[e])}constructor(){this.getClientRemarks=()=>this.supplierClientRemarks,this.getCabinNoteByType=()=>{let e=this.getCabinType();if(!e?.[0])return null;let t=[];for(let i=0;i<e.length;i++){let r=e[i];r&&l[r]&&t.push(...l[r])}return t},this.getCabinType=()=>{let e=[];for(let t=0;t<this.legSegmentList.length;t++){let i=this.castLegSegmentList(t);e.push(i.getCabin())}return e}}}},98308:(e,t,i)=>{i.d(t,{q:()=>L});var r=i(37191),a=i(28469),s=i(28816),n=i(44587);class o{getAmount(){if(this.amount&&0!==Object.keys(this.amount).length&&this.amount.constructor===Object){let e=(0,n.castUtil)(a.J,this.amount);return{price:e.getAmount(),currency:e.getCurrency()}}throw Error("Amount is possible empty object, null or undefined")}getPassengerFares(){let e=[];for(let t=0;t<this.passengerFares.length;t++){let i=(0,n.castUtil)(s.u,this.passengerFares[t]);e.push(i)}return e}getAlternateFares(){return this.alternateFares}}class l{getPackageType(){return this.packageType?this.packageType:""}}var g=i(49948),u=i(28287),h=i(95202),p=i(56519),c=i(97766);class d{isRecommended(){return this.recommended}}class m{getPassengerSet(){return(0,n.typedCastUtil)(g.X,this.passengerSet)}constructor(){this.getPointsPerPerson=(e,t)=>{let i=this.getPassengerSet();if(!i||!this.passengerFares)return[];let r=e&&!t?2:1;return this.passengerFares.flatMap(e=>Array.from({length:i.getQuantityByPassengerType(e.ltsPassengerType)},()=>e.points*r))},this.getFeesPerPerson=(e,t)=>{let i=this.getPassengerSet();if(!i||!this.passengerFares)return[];let r=e&&!t?2:1;return this.passengerFares.flatMap(e=>Array.from({length:i.getQuantityByPassengerType(e.ltsPassengerType)},()=>e.amount.amount*r))},this.getCumulativePricePerPerson=(e,t)=>{let i=this.getPointsPerPerson(e,t),r=0;return i.map(e=>r+=e)},this.getPassengersNumber=()=>{let e=this.getPassengerSet();return e?e.getAmountOfPersons()-e.getInfants():0}}}var y=i(41916);class L{getTOWRemarks(){let e=this.castLegGroups();return[e.getLegList(0)?.getLegOptionList(0)?.getClientRemarks(),e.getLegList(1)?.getLegOptionList(0)?.getClientRemarks()]}getOperatedByCompanies(){return this.castLegGroups().getOperatedByCompanies()}getTrolleyIndicator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.castLegGroups(e);return{outgoing:i.getTrolleyIndicator(0,t),return:i.getTrolleyIndicator(1,t)}}isRecommended(){return(0,n.typedCastUtil)(d,this.additionalInfo)?.isRecommended()}getSearchQueryAbroadFlightsFromDeepLink(e){let t=this.getDeepLinkQueryParam("depCode"),i=this.getDeepLinkQueryParam("destCode"),r=this.getDeepLinkQueryParam("departDate"),a=this.getDeepLinkQueryParam("returnDate"),s=this.getDeepLinkQueryParam("adultsNum");this.getDeepLinkQueryParam("childrenNum"),this.getDeepLinkQueryParam("infantNum");let n=new Date().toISOString(),o=r.split("/"),l="20"+r.split("/")[2],g=`${o[0]}/${o[1]}/${l}`;if(!a)return`/reservation/search/flights-abroad/${e}/results?origin=${t}&destination=${i}&startDate=${g}&adults=${s}&searchTime=${n}`;{let r=a.split("/"),o="20"+a.split("/")[2],l=`${r[0]}/${r[1]}/${o}`;return`/reservation/search/flights-abroad/${e}/results?origin=${t}&destination=${i}&startDate=${g}&endDate=${l}&adults=${s}&searchTime=${n}`}}getDestinationCode(){try{let e=this.getAirportCodes();return e.outgoing.arrAirportsCodes?.[e.outgoing.arrAirportsCodes.length-1]??""}catch(e){return this.getDeepLinkQueryParam("destCode")??""}}getflightClientRemarks(){return this.remarks}getHotelBoard(){return(0,n.typedCastUtil)(u.N,this.hotelList[0])?.getBoard()}getInstantApproval(){return this.instantApproval}getLtsLegGroup(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,n.typedCastUtil)(r.b,this.legGroups[e])}getLtsLeg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.castLegGroups(e).getLegFare(t)}getLtsProducts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.ltsProducts)return(0,n.typedCastUtil)(h._,this.ltsProducts[e])}getLegGroupsLength(){return this.legGroups.length}getTotalPassengersAmount(){return this.castPassengerSet().getAmountOfPersons()}getLegGroups(e){return this.castLegGroups(e)}getCabinVariantLegOptionList(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.legGroups||0===this.legGroups.length)return;let t=this.castLegGroups(0);return t?.getLegList(e)?.getLegOptionList(0)??void 0}getDirectionsString(e){return"global"===e?"global":0===e?`${this.originCode}-${this.destCode}`:`${this.destCode}-${this.originCode}`}
1getOrgTourName(){let e=(0,n.typedCastUtil)(u.N,this.hotelList[0]),t=(0,n.typedCastUtil)(h._,this.ltsProducts[0]),i=e?.getName()||"",r=i;return -1!=i.lastIndexOf(" - ")&&(r=i.substring(0,i.lastIndexOf(" - "))),t?.getProductName()??r??" "}getOrgTourDestinationCityCode(){return(0,n.typedCastUtil)(u.N,this.hotelList[0])?.getHotelCity()}getHotelImage(){let e=(0,n.typedCastUtil)(u.N,this.hotelList[0]),t=(0,n.typedCastUtil)(h._,this.ltsProducts[0]),i=t?.getImgMediaList();return t&&i?i??[""]:e?.getHotelImages()??[""]}getHotelName(){let e=(0,n.typedCastUtil)(u.N,this.hotelList[0]),t=(0,n.typedCastUtil)(h._,this.ltsProducts[0]),i=t?.getProductName();return t&&i?i:e?.getName()??""}getOrgTourDuration(){if(this.hotelList)return(0,n.typedCastUtil)(u.N,this.hotelList[0])?.getNightsInHotel()}getOrgTourDates(){let e=(0,n.typedCastUtil)(u.N,this.hotelList[0]);return{outgoingDate:e?.getCheckInDate().split("/").join("."),returnDate:e?.getCheckOutDate().split("/").join(".")}}getSearchResultDates(){try{let e=this.getOrgTourDates();if(e.outgoingDate&&"undefined"!==e.outgoingDate&&e.returnDate&&"undefined"!==e.returnDate)return e}catch(e){}try{let e=this.getScheduledDateTime();if(e&&e.outgoing){let t={};return e.outgoing.depDateTime&&e.outgoing.depDateTime[0]&&(t.outgoingDate=e.outgoing.depDateTime[0].split(" ")[0].split("/").join(".")),e.return&&e.return.depDateTime&&e.return.depDateTime[0]&&(t.returnDate=e.return.depDateTime[0].split(" ")[0].split("/").join(".")),t}}catch(e){}return{}}getDeepLinkURL(){return this.deepLinkURL}getDeepLinkQuery(){return new URL(this.deepLinkURL,"https://example.com").searchParams}getPassengerFares(){let e=this.castPackageFare();return e.getPassengerFares()?e.getPassengerFares():[]}getPassengerFaresByLeg(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.castLegGroups(e);return r?.getLegFare(t,i)}getPassengerFaresByLegAndCabin(e,t,i,r){let a=this.castLegGroups(e),s=a?.getLegList(r??0)?.getLegOptionList(t),o=s?.cabinVariants?.[i];if(o)return(0,n.typedCastUtil)(y.f,o.fare)??void 0}getSupplierClientRemark(){if(this.remarks&&this.remarks.supplierClientRemarks)return this.remarks?.supplierClientRemarks}getHotelList(){return this.hotelList?(0,n.typedCastUtil)(u.N,this.hotelList[0]):null}getHotelProductName(){let e=this.ltsProducts[0],t=this.hotelList[0];return e?.name??t?.name??""}getDeepLinkQueryParam(e){let t=this.getDeepLinkURL().split("/"),i=new URLSearchParams(this.getDeepLinkURL().replace(`/${t[1]}/`,"").replace("search.do?","")).get(e);return i||void 0}getFlightNumbers(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=this.castLegGroups(t);return this.isOneWayFlight()||(e=i.getReturnFlightNumbers()),{outgoing:i.getOutgoingFlightNumbers(),return:e}}getToFlightDate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.castLegGroups(e);if(!t.legList)return;let i=(0,n.typedCastUtil)(p.l,t.legList[0]);if(i)return i.getDepScheduledDateTime()}getBackFlightDate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.castLegGroups(e);if(!t.legList)return;let i=(0,n.typedCastUtil)(p.l,t.legList[1]);if(i)return i.getArrScheduledDateTime()}getFlightStatusRemarks(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en_US",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.castLegGroups(i);return this.isOneWayFlight()||(e=r.getReturnStatusRemarks(t)),{outgoing:r.getOutgoingStatusRemarks(t),return:e}}isOneWayFlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return!!this.legGroups&&this.legGroups.length>0&&this.castLegGroups(e).isOneWayFlight()}getPackageSubType(){return this.packageSubType}getPackageSystemType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t=this.legGroups[0];if(t.legList&&t.legList.length>e){let i=t.legList[e];if(i.legOptionList&&i.legOptionList.length>0){let e=i.legOptionList[0];if(e.packageSystemType)return e.packageSystemType}}}return null}getPackageUUID(){return this.packageUUID?this.packageUUID:""}getPassengerSet(){if(this.passengerSet&&0!==Object.keys(this.passengerSet).length&&this.passengerSet.constructor===Object)return(0,n.typedCastUtil)(g.X,this.passengerSet);throw Error("PassengerSst is possible undefined, null or empty array")}
1getPackageType(){if(this.packageId){let e=(0,n.typedCastUtil)(l,this.packageId);return e?e.getPackageType():""}}getAirportNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnAirportsNames()),{outgoing:i.getOutgoingAirportsNames(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getBaggageIndicator(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnBaggageIndicator()),{outgoing:i.getOutgoingBaggageIndicator(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getBaggageAllowances(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.castLegGroups(e),r=e=>i?.getLegList(e)?.getLegOptionList(t)?.getBaggageAllowances();return{outgoing:r(0),return:this.isOneWayFlight()?void 0:r(1)}}getBaggageIndicatorForLeg(e){if(this.legGroups&&this.legGroups.length>0){let t=this.castLegGroups(0);return 1===e?t.getReturnBaggageIndicator():t.getOutgoingBaggageIndicator()}throw Error("LegGroups is possible undefined, null or empty array")}getMeals(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnMeals()),{outgoing:i.getOutgoingMeals(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getAirportCodes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnAirportCodes()),{outgoing:i.getOutgoingAirportCodes(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getLocationsCityNames(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnLocationsCityNames()),{outgoing:i.getOutgoingLocationsCityNames(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}isDirectFlights(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.isReturnDirect()),{outgoing:i.isOutgoingDirect(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getScheduledDateTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;if("searchDomesticPackage"===t){if(this.legGroups&&this.legGroups.length>0){let e=(0,n.typedCastUtil)(c.k,this.legGroups[0].legList[0].legOptionList[0]),t=("deal"===i?(0,n.typedCastUtil)(c.k,this.legGroups[0].legList[1].legOptionList[0]):(0,n.typedCastUtil)(c.k,this.legGroups[1].legList[0].legOptionList[0])).getDepScheduledDateTime()[0];return{outgoing:e.getDepScheduledDateTime()[0],return:t}}}else if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnScheduledDateTime()),{outgoing:i.getOutgoingScheduledDateTime(),return:t}}}getDuration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnDuration()),{outgoing:i.getOutgoingDuration(),return:t}}return{outgoing:void 0,return:void 0}}getWaitingTime(e,t){let i=this.convertDateTime(e),r=this.convertDateTime(t),a=Math.floor((i.getTime()-r.getTime())/1e3/60);return parseFloat(Math.floor(a/60)+"."+(a-60*Math.floor(a/60)))}getTotalDuration(){let e=this.isDirectFlights();if(!this.isOneWayFlight()&&e.return&&e.outgoing){let e=this.getDuration();return e.outgoing&&e.return?{outgoing:e.outgoing[0],return:e.return[0]}:{outgoing:void 0,return:void 0}}return this.isOneWayFlight()?{outgoing:this.getOneWayDuration("outgoing"),return:void 0}:{outgoing:this.getOneWayDuration("outgoing"),return:this.getOneWayDuration("return")}}getOneWayDuration(e){let t=this.getDuration(),i=this.getScheduledDateTime(),r=0;if(t[e]&&i[e]){r=t[e].reduce((e,t)=>
1e+t,0);for(let t=0;t<i[e].arrDateTime.length-1;t++)r+=this.getWaitingTime(i[e].arrDateTime[t],i[e].depDateTime[t+1])}return r}getPrice(){return this.castPackageFare().getAmount()}getPricePerPerson(){let e=this.castPassengerSet(),t=this.getPrice(),i=e.getAmountOfPersons();if(!i)return t;{let e=parseFloat((t.price/i).toFixed(1));return{price:e=Math.abs(e%1*10)>=5?Math.trunc(e)+1:Math.trunc(e),currency:t.currency}}}getNumberOfAvailableSeats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnSeats()),{outgoing:i.getOutgoingSeats(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getMarketingAirline(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnMarketingAirlineCodes()),{outgoing:i.getOutgoingMarketingAirlineCodes(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getCarierAirline(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnCarierAirlineCodes()),{outgoing:i.getOutgoingCarierAirlineCodes(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}getEquipmentType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups&&this.legGroups.length>0){let t,i=this.castLegGroups(e);return this.isOneWayFlight()||(t=i.getReturnEquipmentType()),{outgoing:i.getOutgoingEquipmentType(),return:t}}throw Error("LegGroups is possible undefined, null or empty array")}convertDateTime(e){let[t,i]=e.split(" "),[r,a,s]=t.split("/"),[n,o,l]=i.split(":");return new Date(+s,a-1,+r,+n,+o,+l)}getNumberOfConnectionFlights(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.isDirectFlights();if(t.outgoing&&t.return)return{outgoing:0,return:0};let i=this.castLegGroups(e);return{outgoing:i?.getNumberOfConnectionOutgoingFlights(),return:i?.getNumberOfConnectionReturnFlights()}}getNumberOfNights(){if(this.getNumberOfNightsLds())return this.getNumberOfNightsLds();let e=this.getScheduledDateTime(),t=this.getDateOnly(e.outgoing?.depDateTime[0]);if(e.return)return Math.floor((this.getDateOnly(e.return?.depDateTime[0]).getTime()-t.getTime())/864e5)}getNumberOfNightsLds(){return this.getHotelList()?.nightsInHotel}getDateOnly(e){let[t,i,r]=e.split(" ")[0].split("/");return new Date(+r,i-1,+t)}castLegGroups(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.legGroups)return(0,n.typedCastUtil)(r.b,this.legGroups[e])}castPassengerSet(){return(0,n.castUtil)(g.X,this.passengerSet)}castPackageFare(){return(0,n.castUtil)(o,this.packageFare)}getArrCityName(){let e=this.castLegGroups();return e?.getOutgoingLocationsCityNames()?.arrLoc[0]}getCurrency(){return"DOMESTIC"==this.getPackageType()||"ORG_TOUR"==this.getPackageSubType()?this.getPrice().currency:this.getPassengerFares().at(0)?.getAmount().currency??this.getPrice().currency}getSuplierFlightId(e){if(this.legGroups){let t=(0,n.typedCastUtil)(r.b,this.legGroups[0]);if(t&&("outbound"===e||"return"===e))return t.getSuplierFlightIdByDirection(e)}}isFromAbroad(){let e="DOMESTIC_FLIGHT"===this.getPackageSubType(),t=this.getAirportCodes().outgoing;return this.isOneWayFlight()&&!e&&["TLV","ETH","HFA","ETM"].indexOf(t.arrAirportsCodes.toString())>-1}isAlternateFaresAvailable(){let e=this.castPackageFare();return e.getAlternateFares()&&e.getAlternateFares().length>0&&e.getAlternateFares()?.[0]!==null}getAlternateFare(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.castPackageFare();return t.getAlternateFares()&&(0,n.typedCastUtil)(m,t.getAlternateFares()[e])}getReturnFlight(){}isClubClassExclusive(){return this.someLegOption(e=>!0===e.isClubClassExclusive())}isClubMembersOnly(){return this.someLegOption(e=>!0===e.isClubMembersOnly())}someLegOption(e){return!!this.legGroups?.length&&this.legGroups.some(t=>{let i=(0,n.typedCastUtil)(r.b,t);return!!i?.legList?.length&&i.legList.some(t=>{let i=(0,n.typedCastUtil)(p.l,t);return!!i?.legOptionList?.length&&i.legOptionList.some(t=>{let i=(0,n.typedCastUtil)(c.k,t);return!!i&&e(i)})})})}constructor(){this.getCheckInDate=()=>
1this.getHotelList()?.getCheckInDate()??"",this.getCheckOutDate=()=>this.getHotelList()?.getCheckOutDate()??""}}}}]);
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.