PageSourceSearch

https://www.jet2holidays.com/dist/3500.5ccaddcea9319be2f18d.js

js jet2holidays.com collected 2026-10-01 12:41:13 UTC 32,957 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkjet2holidays=self.webpackChunkjet2holidays||[]).push([[3500],{26420:(t,e,n)=>{n.r(e),n.d(e,{dateNames:()=>r});var r={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysZeroIndex:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},30603:(t,e,n)=>{n.r(e),n.d(e,{holidayTypes:()=>r});var r={City:"City",Beach:"Beach"}},24997:(t,e,n)=>{n.r(e),n.d(e,{flightScheduleTypes:()=>r});var r={holidaysDaily:"HOLIDAYS_DAILY",holidaysMonthly:"HOLIDAYS_MONTHLY",fcpMonthly:"FCP_MONTHLY",dealsDaily:"DEALS_DAILY",dealsMonthly:"DEALS_MONTHLY",brandDaily:"BRAND_DAILY"}},21738:(t,e,n)=>{n.r(e),n.d(e,{addKeyValuePair:()=>r,default:()=>i});var r=function(t,e){return"".concat(t,"=").concat(e,"&")};const i={convertSearchCriteriaToQueryString:function(t){if(!t)return null;var e="";return Object.keys(t).forEach((function(n){var i=decodeURIComponent(n),o=decodeURIComponent(t[n]).split(",");null!==t[n]&&""!==t[n]&&(e+=r(i,o))})),e.slice(0,-1)},searchQueryStringToObject:function(t){if(!t)return null;var e={};return t.split("&").map((function(t){return t.split("=")})).forEach((function(t){var n=decodeURIComponent(t[0]),r=decodeURIComponent(t[1]);e[n]=r})),e}}},91536:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(21738);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var s=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.baseUrl="/"===e.charAt(e.length-1)?e.splice(0,-1):e,this.urlKey=n},(e=[{key:"build",value:function(t){var e=r.default.convertSearchCriteriaToQueryString(t);return this.baseUrl&&e?this.urlKey?"".concat(this.baseUrl,"/").concat(this.urlKey,"?").concat(e):"".concat(this.baseUrl,"?").concat(e):this.baseUrl}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},28844:(t,e,n)=>{n.r(e),n.d(e,{doSearch:()=>N,fetchBrandResources:()=>P,fetchBrandScheduleDaily:()=>_,fetchDealsScheduleDaily:()=>v,fetchDealsScheduleMonthly:()=>T,fetchFcpScheduleMonthly:()=>A,fetchHotelScheduleMonthly:()=>E,fetchResources:()=>b,fetchSchedule:()=>y,fetchScheduleDaily:()=>g,fetchScheduleMonthly:()=>S,fetchSearchResultsPageUrl:()=>O,updateBrandId:()=>L,updateDestinationFilter:()=>R,updateFlightScheduleType:()=>D,updateInitialAirports:()=>o,updateOccupancy:()=>F,updatePredefinedFilters:()=>I,updatePropDestinations:()=>C,updateSearchCriteria:()=>a,updateSearchCriteriaDepartureAirport:()=>s,updateSearchCriteriaDepartureDate:()=>f,updateSearchCriteriaDestination:()=>l,updateSearchCriteriaDuration:()=>p,updateSearchCriteriaFlexi:()=>d,updateSearchCriteriaFlexibility:()=>m,updateSearchCriteriaGuests:()=>h,updateSearchCriteriaReplaceDepartureAirports:()=>c,updateSearchCriteriaReplaceDestinations:()=>u});var r=n(8898),i=n(24997),o=function(t,e){(0,t.commit)("UPDATE_INITIAL_AIRPORTS",e)},a=function(t,e){(0,t.commit)("UPDATE_SEARCH_CRITERIA",e)},s=function(t,e){(0,t.commit)("UPDATE_DEPARTURE_AIRPORT",e)},c=function(t,e){(0,t.commit)("REPLACE_DEPARTURE_AIRPORTS",e)},l=function(t,e){(0,t.commit)("UPDATE_DESTINATION",e)},u=function(t,e){(0,t.commit)("REPLACE_DESTINATIONS",e)},f=function(t,e){(0,t.commit)("UPDATE_DEPARTURE_DATE",e)},d=function(t,e){(0,t.commit)("UPDATE_FLEXI",e)},h=function(t,e){(0,t.commit)("UPDATE_GUESTS",new r.Occupancy(e.rooms))},p=function(t,e){(0,t.commit)("UPDATE_DURATION",e)},m=function(t,e){(0,t.commit)("UPDATE_FLEXIBILITY",e)},y=function(t,e,n){return e===i.flightScheduleTypes.holidaysMonthly?t.dispatch("shared/fetchScheduleMonthly",null,{root:!0}):t.dispatch("shared/fetchDealsScheduleMonthly",n,{root:!0})},g=function(t,e){if(e)return t.dispatch("shared/fetchScheduleDaily",e,{root:!0})},E=function(t){return t.dispatch("shared/fetchHotelScheduleMonthly",null,{root:!0})},S=function(t){return t.dispatch("shared/fetchScheduleMonthly",null,{root:!0})},A=function(t,e){return t.dispatch("shared/fetchFcpScheduleMonthly",e,{root:!0})},T=function(t,e){return t.dispatch("shared/fetchDealsScheduleMonthly",e,{root:!0})},v=function(t,e){return t.dispatch("shared/fetchDealsScheduleDaily",e,{root:!0})}
1,_=function(t,e){return t.dispatch("shared/fetchBrandScheduleDaily",e,{root:!0})},b=function(t,e){return t.dispatch("shared/fetchResources",e,{root:!0})},P=function(t,e){return t.dispatch("shared/fetchBrandResources",e,{root:!0})},R=function(t,e){(0,t.commit)("UPDATE_DESTINATION_FILTER",e)},C=function(t,e){(0,t.commit)("UPDATE_PROP_DESTINATIONS",e)},O=function(t,e){(0,t.commit)("UPDATE_SEARCHRESULTSPAGEURL",e)},I=function(t,e){(0,t.commit)("UPDATE_PREDEFINED_FILTERS",e)},D=function(t,e){(0,t.commit)("UPDATE_FLIGHT_SCHEDULE_TYPE",e)},N=function(t){var e=t.getters;window.location.href=e.url},F=function(t,e){(0,t.commit)("UPDATE_OCCUPANCY",e)},L=function(t,e){(0,t.commit)("UPDATE_BRANDID",e)}},29839:(t,e,n)=>{n.r(e),n.d(e,{mutations:()=>i});var r=function(t,e){return t.searchCriteria.departureAirports.filter((function(t){return t===e}))},i={UPDATE_INITIAL_AIRPORTS:function(t,e){t.initialAirports=e},UPDATE_SEARCH_CRITERIA:function(t,e){t.searchCriteria=e},UPDATE_DEPARTURE_AIRPORT:function(t,e){t.searchCriteria.departureAirports=e?r(t,e).concat(e):[]},REPLACE_DEPARTURE_AIRPORTS:function(t,e){t.searchCriteria.departureAirports=e},UPDATE_DESTINATION:function(t,e){t.searchCriteria.destinations=e||[]},REPLACE_DESTINATIONS:function(t,e){t.searchCriteria.destinations=e},UPDATE_DEPARTURE_DATE:function(t,e){t.searchCriteria.departureDate=e},UPDATE_FLEXI:function(t,e){t.searchCriteria.flexi=e},UPDATE_DURATION:function(t,e){t.searchCriteria.duration=e},UPDATE_FLEXIBILITY:function(t,e){t.searchCriteria.flexibility=e},UPDATE_GUESTS:function(t,e){t.searchCriteria.guests=e},UPDATE_DESTINATION_FILTER:function(t,e){t.destinationFilter=e},UPDATE_PROP_DESTINATIONS:function(t,e){t.destinations=e},UPDATE_SEARCHRESULTSPAGEURL:function(t,e){t.searchResultsPageUrl=e},UPDATE_PREDEFINED_FILTERS:function(t,e){t.predefinedFilters=e},UPDATE_FLIGHT_SCHEDULE_TYPE:function(t,e){t.flightScheduleType=e},UPDATE_OCCUPANCY:function(t,e){t.searchCriteria.occupancy=e},UPDATE_BRANDID:function(t,e){t.brandId=e}}},90947:(t,e,n)=>{n.r(e),n.d(e,{resultsMixin:()=>l});var r=n(66195),i=n(98979);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={computed:s({},(0,r.L8)(i.namespace,{_pageNumber:i.getters.pageNumber,_pageSize:i.getters.pageSize,_searchResults:i.getters.searchResults,_searchResultsCount:i.getters.searchResultsCount,_resultsView:i.getters.resultsView,_appliedFiltersCount:i.getters.appliedFiltersCount,_isPricePerPerson:i.getters.showPricePerPerson,_availableFilters:i.getters.availableFilters,_selectedFilters:i.getters.selectedFilters,_searchParameters:i.getters.searchParameters,_selectedSortOption:i.getters.selectedSortOption,_searchResultsLoading:i.getters.searchResultsLoading,_calendarData:i.getters.calendarData,_calendarDays:i.getters.calendarDays,_firstSearchResult:i.getters.firstSearchResult,_applyDiscount:i.getters.applyDiscount,_numberOfAdults:i.getters.numberOfAdults,_numberOfChildren:i.getters.numberOfChildren,_searchId:i.getters.searchId,_flights:i.getters.flights,_alternateFilterTitles:i.getters.alternateFilterTitles,_firstPriceOption:i.getters.firstPriceOption,_firstPriceOptionWithPromo:i.getters.firstPriceOptionWithPromo,_occupancyOpenOnLoad:i.getters.occupancyOpenOnLoad,_showSearchResultsModals:i.getters.showSearchResultsModals,_priceSwitchLabels:i.getters.priceSwitchLabels,_getFilterStyle:i.getters.getFilterStyle,_alwaysShowFilters:i.getters.alwaysShowFilters,_resultsPriceRange:i.getters.resultsPriceRange,_intelligentSearchFilters:i.getters.intelligentSearchFilters,_isFirstSearchCall:i.getters.isFirstSearchCall})),methods:s(s({},(0,r.i0)(i.namespace,{_executeSearch:i.actions.EXECUTE_SEARCH,_executeIntelligentSearch:i.actions.EXECUTE_INTELLIGENT_SEARCH,_executeIntelligentSearchSummary:i.actions.EXECUTE_INTELLIGENT_SEARCH_SUMMARY,_executeExcursionSearch:i.actions.EXECUTE_EXCURSIONS_SEARCH,_executeDealsCalenderSearch:i.actions.EXECUTE_DEALS_CALENDAR_SEARCH,_initSearchParameters:i.actions.INIT_SEARCH_PARAMETERS,_initEndPoint:i.actions.INIT_ENDPOINT,_clearSearchResults:i.actions.CLEAR_SEARCH_RESULTS,_addFilter:i.actions.ADD_FILTER,_removeFilter:i.actions.REMOVE_FILTER,_removeFilterType:i.actions.REMOVE_FILTER_TYPE,_removeAllFilters:i.actions.REMOVE_ALL_FILTERS,_initSortOrder:i.actions.INIT_SORT_ORDER,_changeSortOrder:i.actions.CHANGE_SORT_ORDER,_changeIntelligentSearchSortOrder:i.actions.CHANGE_INTELLIGENT_SEARCH_SORT_ORDER,_updateDefaultSortOrder:i.actions.UPDATE_DEFAULT_SORT_ORDER,_changePriceOption:i.actions.CHANGE_PRICE_OPTION,_initPageSize:i.actions.INIT_PAGE_SIZE,_changeSelectedPage:i.actions.CHANGE_PAGE_NUMBER,_changeBoardOption:i.actions.CHANGE_BOARD_OPTION,_changeFlightOption:i.actions.CHANGE_FLIGHT_OPTION,_changeResultsView:i.actions.CHANGE_RESULTS_VIEW,_changeFcpDepartureDate:i.actions.CHANGE_FCP_DEPARTURE_DATE,_changeDepartureDate:i.actions.CHANGE_DEPARTURE_DATE,_setApplyDiscount:i.actions.SET_APPLY_DISCOUNT,_initSearchType:i.actions.INIT_SEARCH_TYPE,_toggleSearchResultsModals:i.actions.TOGGLE_SEARCH_RESULTS_MODALS,_setPriceSwitchLabel:i.actions.SET_PRICE_SWITCH_LABEL,_setPerPersonPriceLabel:i.actions.SET_PER_PERSON_LABEL,_setTotalPriceLabel:i.actions.SET_TOTAL_PRICE_LABEL,_setFilterStyle:i.actions.SET_FILTER_STYLE,_setAlwaysShowFilters:i.actions.SET_ALWAYS_SHOW_FILTERS,_setBudgetBuffer:i.actions.SET_BUDGET_BUFFER,_reApplySavedFilters:i.actions.REAPPLY_SAVED_FILTERS,_initRememberFilters:i.actions.INIT_REMEMBER_FILTERS,_initAppliedFilterCategories:i.actions.INIT_APPLIED_FILTER_CATEGORIES,_initShowIntelligentSearch:i.actions.INIT_SHOW_INTELLIGENT_SEARCH,_initIntelligentSearch:i.actions.INIT_INTELLIGENT_SEARCH,_clearIntelligentSearchSessionVariable:i.actions.CLEAR_INTELLIGENT_SEARCH_SESSION_VARIABLE,_enableBrandIntelligentSearch:i.actions.ENABLE_BRAND_INTELLIGENT_SEARCH,_updateDatasourceFilters:i.actions.UPDATE_DATASOURCE_FILTERS})),(0,r.PY)(i.namespace,{_updateSearchParameter:i.mutations.UPDATE_SEARCHPARAMETER}))}},87594:(t,e,n)=>{n.d(e,{A:()=>r});const r={adult:"Adult",adults:"Adults",child:"Child",children:"Children",infant:"Infant",infants:"Infants",night:"Night",nights:"Nights"}},647:(t,e,n)=>{n.d(e,{b:()=>s,t:()=>a});var r=n(87594);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];
1if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var a=function(t){var e=[];if(t){var n,r=i(t.substr(1).split("r"));try{for(r.s();!(n=r.n()).done;){var o=n.value.split("c"),a=o[1]&&o[1].length?o[1].split("_").filter((function(t){return t&&!isNaN(t)})).map((function(t){return parseInt(t)})):[];isNaN(o[0])||e.push({Adults:parseInt(o[0]),Children:a})}}catch(t){r.e(t)}finally{r.f()}}return e},s=function(t,e,n){var i=["".concat(t," ").concat(1===t?r.A.adult:r.A.adults)];return e&&(i=i.concat(["".concat(e," ").concat(1===e?r.A.child:r.A.children)])),n&&(i=i.concat(["".concat(n," ").concat(1===n?r.A.infant:r.A.infants)])),i.join(", ")}},20101:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(62662),i=n.n(r),o=n(69231),a=n.n(o),s=n(99092),c=n(8988);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,f(r.key),r)}}function f(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var d=function(){return t=function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.$element=i()(e),this.$body=i()("body"),this.$tooltip_id=this.$element.attr("data-tooltip-id"),this.$openOnClick=Boolean(this.$element.attr("data-open-on-click")),this.$tooltip_element=i()("[data-tooltip="+this.$tooltip_id+"]").first(),this.$tooltipButtonSelector=i()("[data-tooltip-id]"),this.$tooltipFadeTimer=null,this.tooltipsOpen=!1,this.scrollOffset=0,this.$openOnClick?this.$element.on("click",(function(t){r.tooltipsOpen=!0,r.captureScrollValue(t),r.openTooltip()})).on("mouseleave",(function(t){r.closeTooltip(i()(".component-tooltip--open"))})):this.$element.on("mouseenter",(function(t){r.captureScrollValue(t),r.tooltipsOpen=!0,r.openTooltip()})).on("mouseleave",(function(t){r.closeTooltip(i()(".component-tooltip--open"))})),this.$element.on("touchend",(function(t){r.captureScrollValue(t),r.tooltipsOpen=!0,r.openTooltip()})),this.$body.on("click touchend",(function(t){r.tooltipsOpen&&!i()(t.target).parents("[data-tooltip-id]").length&&!i()(t.target).parents(".component-tooltip").length&&i()(".component-tooltip--open").length&&r.closeTooltip(i()(".component-tooltip--open"))})),c.A.onScroll((function(){r.tooltipsOpen&&(r.closeTooltip(i()(".component-tooltip")),r.tooltipsOpen=!1)})),this.$tooltip_element.on("click",(function(){r.closeTooltip(r.$tooltip_element)}));var o=function(){return r.resize(r.$element,r.$tooltip_element)};window.addEventListener("resize",o),n&&n.resize&&n.resize.push(o)},(e=[{key:"captureScrollValue",value:function(t){if(void 0!==t.target&&null!==t.target){var e=i()(t.target);if(void 0!==e[0]){var n=i()(e[0]).closest("[data-scroll-offset]");if(null!=n&&void 0!==n[0]){var r=parseInt(n[0].dataset.scrollOffset);isNaN(r)||(this.scrollOffset=r)}}}}},{key:"setTooltipPosition",value:function(t,e){e.css("width",""),e.hasClass("component-tooltip--static")||e.parent().is("body")||e.appendTo("body");var n=t.outerWidth(),r=e.hasClass("component-tooltip--static")?t.offset().left-t.parent().offset().left:t.offset().left,i=e.hasClass("component-tooltip--static")?t.offset().top-t.parent().offset().top:t.offset().top,o=t.outerHeight(),s=e.outerWidth(),l=e.outerHeight(),u=r+n/2-s/2,f=r-s+n,d=e.attr("data-tooltip-fadeout")||5e3,h=parseFloat(this.$body.css("top"));if(e.hasClass("component-tooltip--left")?u=r:e.hasClass("component-tooltip--right")&&(u=f),u+s>c.A.width()){var p=u+s-c.A.width()+30;e.width(s-p),s=e.outerWidth(),l=e.outerHeight()}e.css({left:u,top:i-(l+12+5)}),e.hasClass("component-tooltip--modal")&&e.css({left:u,top:i-(l+12+5)+this.scrollOffset}),e.hasClass("component-tooltip--call-today")&&(u=r,e.css({left:u,top:i+12+5+o})),e.hasClass("component-tooltip--intelligent-search")&&(u=r,e.css({left:u,top:i+12+5+o-h})),clearTimeout(this.$tooltipFadeTimer),this.$tooltipFadeTimer=setTimeout((function(){e.is("[data-tooltip-fadeout]")&&e.is(":visible")&&a()(e,"fadeOut")}),d)}},{key:"closeTooltip",value:function(t){a()(t,"stop"),a()(t,"fadeOut",{begin:function(){i()(this).removeClass("component-tooltip--open")}})}},{key:"openTooltip",value:function(){var t=this;if(!t.$element.hasClass("js-component-tooltip-prevent"))return this.tooltipsOpen=!0,a()(this.$tooltip_element,"stop"),a()(this.$tooltip_element,"fadeIn",{begin:function(){t.setTooltipPosition(t.$element,t.$tooltip_element)},delay:100,complete:function(){i()(this).addClass("component-tooltip--open")}})}},{key:"resize",value:function(t,e){t.is(":visible")||this.closeTooltip(i()(".component-tooltip--open")),e.is(":visible")&&(0,s.A)(this.setTooltipPosition(t,e),250)}}])&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},93695:(t,e,n)=>{n.r(e),n.d(e,{destinationTypes:()=>r});var r={region:"region",area:"area",resort:"resort"}},23733:(t,e,n)=>{n.r(e),n.d(e,{GuestSelectorViewModel:()=>c});var r=n(8898),i=n(40841),o=n(647),a=n(54587),s=n(30603),c={name:"GuestSelector",mixins:[i.GuestSelectorValidationMixin],data:function(){return{occupancy:null,occupancyDescription:null}},props:{guests:{type:Object,required:!0},settings:{type:Object,required:!0},isFcp:{type:Boolean,required:!1,default:!1},isSmartSearch:{type:Boolean,default:!1}},created:function(){this.bindData()},methods:{bindData:function(){this.occupancy=new r.Occupancy(this.guests.rooms
1),this.populateOccupancyDescription()},populateOccupancyDescription:function(){if(!this.settings.showOccupancyDescription)return"";var t=this.occupancy.getTotalAdults(),e=this.occupancy.getTotalChildren(),n=this.occupancy.getTotalInfants();this.occupancyDescription=(0,a.GP)(this.settings.occupancyDescription,{occupancy:(0,o.b)(t,e,n)})},selectAndValidateOccupancy:function(t){var e=this;this.validateOnSelectionMade().then((function(n){if(!n.every((function(t){return t})))return t.preventDefault(),void e.$emit("show-validation");e.$emit("occupancy-selected",e.occupancy)}))},removeRoom:function(t){this.occupancy.removeRoom(t)},onRoomsIncrement:function(){this.occupancy.rooms.length<this.settings.guestSelectorMaxNumOfRooms&&this.occupancy.addRoom(this.settings.defaultNumberOfAdults,this.settings.defaultChildren)},onAdultsDecrement:function(t){this.occupancy.rooms[t].adults>1&&this.occupancy.removeAdult(t)},onAdultsIncrement:function(t){this.totalRoomOccupancy(t)<this.maxNumberOfPassengersPerRoom&&!this.maximumOccupancyReached&&this.occupancy.addAdult(t)},showAdultValidation:function(t,e){return this.errors.items.some((function(t){return"infantsMustNotExceedAdults"===t.rule}))&&0===e&&this.totalInfants>this.totalAdults},onChildrenDecrement:function(t){this.occupancy.rooms[t].children.length>0&&this.occupancy.removeChild(t)},onChildrenIncrement:function(t){this.totalRoomOccupancy(t)<this.maxNumberOfPassengersPerRoom&&!this.maximumOccupancyReached&&this.occupancy.addChild(t)},onChildSetAge:function(t,e,n){this.occupancy.setChildAge(t,e,n.target.value),n.target.blur()},showChildValidation:function(t){return this.errors.items.some((function(t){return"required"===t.rule}))&&!t.age},pluralizedAdultLabel:function(t){return 1!==t?this.settings.adultPlural:this.settings.adultSingular},pluralizedChildLabel:function(t){return 1!==t?this.settings.childPlural:this.settings.childSingular},pluralizedRoomLabel:function(t){return 1!==t?this.settings.roomPlural:this.settings.roomSingular},totalAdultsForRoom:function(t){return this.occupancy.rooms[t].adults},totalChildrenMinusInfantsForRoom:function(t){return this.occupancy.rooms[t].children.filter((function(t){return"1"!==t.age})).length},totalRoomOccupancy:function(t){return this.totalAdultsForRoom(t)+this.totalChildrenMinusInfantsForRoom(t)},findDestinationById:function(t,e){for(var n in e){var r=e[n];if(r.id===t)return r;if(r.destinations){var i=this.findDestinationById(t,r.destinations);if(i)return i}}return null},allDestinationsAreCityBreaks:function(){var t;if(this.isSmartSearch){if(!this.$store.state.smartSearchPanel)return!1;t=this.$store.state.smartSearchPanel.searchCriteria.destinations}else{if(!this.$store.state.searchPanel)return!1;t=this.$store.state.searchPanel.searchCriteria.destinations}var e=this.$store.state.shared.resources.destinations;for(var n in t){var r=this.findDestinationById(t[n].id,e);if(r&&r.holidayType!==s.holidayTypes.City)return!1}return!0},canAddRoom:function(){return this.occupancy.rooms.length<this.settings.guestSelectorMaxNumOfRooms}},computed:{roomsCount:function(){return this.occupancy.rooms.length},totalAdults:function(){return this.occupancy.getTotalAdults()},totalChildren:function(){return this.occupancy.getTotalChildren()},totalAdultsAndChildrenCount:function(){return this.occupancy.getTotalAdultsAndChildren()},totalInfants:function(){return this.occupancy.getTotalInfants()},maxNumberOfPassengersPerRoom:function(){return this.allDestinationsAreCityBreaks()?this.settings.guestSelectorMaxPassengersPerRoomCityBreak:this.settings.guestSelectorMaxPassengersPerRoom},maximumNumberOfAdultsAndChildren:function(){return this.allDestinationsAreCityBreaks()?this.settings.guestSelectorMaxNumberOfAdultsAndChildrenCityBreak:this.settings.guestSelectorMaxNumberOfAdultsAndChildren},groupBookingFormUrl:function(){return this.allDestinationsAreCityBreaks()?this.settings.guestSelectorGroupFormUrlCityBreak:this.settings.guestSelectorGroupFormUrlBeach},maximumOccupancyReached:function(){return this.totalAdultsAndChildrenCount>=this.maximumNumberOfAdultsAndChildren},groupsRedirectMessage:function(){return(0,a.GP)(this.settings.guestSelectorGroupsMsg,{maxOccupancy:this.maximumNumberOfAdultsAndChildren,groupsFormUrl:this.groupBookingFormUrl})},maxRoomsText:function(){return(0,a.GP)(this.settings.guestSelectorMaxRoomsText,{maxRooms:this.settings.guestSelectorMaxNumOfRooms})},maxPeoplePerRoomText:function(){return(0,a.GP)(this.settings.guestSelectorMaxPeoplePerRoomText,{maxOccPerRoom:this.maxNumberOfPassengersPerRoom})},isEligibleForFcp:function(){return this.occupancy.isEligibleForFcp()}},filters:{formatChildAges:function(t){return t.map((function(t){return t.age})).filter((function(t){return t>0})).map((function(t){return"1"===t?"<2":t})).join(", ").replace(/,([^,]*)$/," &$1")}}}},54986:(t,e,n)=>{n.r(e),n.d(e,{guestSelectorValidationMessages:()=>r});var r={mustNotExceedMaximumPassengers:"Max Passengers Exceeded",mustNotExceedMaximumPassengersCityBreaks:"Max Passengers Exceeded City Breaks",mustNotExceedMaximumPassengersCallCentre:"Max Passengers Exceeded Call Centre",mustNotExceedMaximumPassengersTrade:"Max Passengers Exceeded Trade",mustNotExceedMaximumPassengersTradeGroups:"Max Passengers Exceeded Trade Groups",infantsMustNotExceedAdults:"Max Infants Exceeded",required:"Child Ages Required",ageRequired:"Age Required",fcpInfantsGoFree:"FCP Infants Go Free",fcpGuests:"FCP Passengers Validation",alertHeading:"Guest Modal Alert Heading"}},40841:(t,e,n)=>{n.r(e),n.d(e,{GuestSelectorValidationMixin:()=>c});var r=n(54986),i=n(35206),o=n.n(i),a=n(80887),s=n(87931);a.Ay.use(o(),{events:"blur"});var c={data:function(){return{validationMessages:r.guestSelectorValidationMessages,validationBindings:{childAge:"infantsMustNotExceedAdults",adults:"mustNotExceedMaximumPassengers",fcpFreeInfants:"fcpInfantsGoFree",fcpGuests:"fcpGuests"},customValidations:{infantsMustNotExceedAdults:{messages:{},validate:function(t){return t>-1}},mustNotExceedMaximumPassengers:{messages:{},validate:function(t){return t>-1}},fcpInfantsGoFree:{messages:{},validate:function(t){return!t.isFcp||t.hasOnlyInfants}},fcpGuests:{messages:{},validate:function(t){return!t.isFcp||t.isEligibleForFcp}}}}},created:function(){this.bindValidationMessages(),this.bindValidationEvents()},methods:{validateOnSelectionMade:function(){return Promise.all([this.$validator.validateAll(),this.$validator.validate("childAge",this.totalAdults-this.totalInfants),this.$validator.validate("adults",this.maximumNumberOfAdultsAndChildren-this.totalAdultsAndChildrenCount),this.$validator.validate("fcpFreeInfants",{hasOnlyInfants:!(0===this.totalChildren&&this.totalInfants>0),isFcp:this.isFcp}),this.$validator.validate("fcpGuests",{isFcp:this.isFcp,isEligibleForFcp:this.isEligibleForFcp})])},bindValidationMessages:function(){var t=this;
1Object.keys(this.validationMessages).forEach((function(e){t.settings.validation.rules.some((function(n){return n.name===t.validationMessages[e]}))&&(t.validationMessages[e]=t.settings.validation.rules.find((function(n){return n.name===t.validationMessages[e]})).message)}))},bindValidationEvents:function(){var t=this;Object.keys(this.validationBindings).forEach((function(e){t.$validator.extend(t.validationBindings[e],t.customValidations[t.validationBindings[e]]),t.$validator.attach(e,t.validationBindings[e])}))},clearValidationErrors:function(){this.$validator.errors.clear()},replaceChannelSpecificMessages:function(t){return"mustNotExceedMaximumPassengers"===t&&this.allDestinationsAreCityBreaks()&&(t="mustNotExceedMaximumPassengersCityBreaks"),t}},computed:{guestSelectorValidationErrors:function(){var t=this,e=[];return this.$validator.errors&&this.$validator.errors.items?(Object.keys(this.validationMessages).forEach((function(n){t.$validator.errors.items.some((function(t){return t.rule===n}))&&!e.find((function(e){return e===t.validationMessages[n]}))&&(n=t.replaceChannelSpecificMessages(n),e.push(t.validationMessages[n]),s.A._onValidationErrorShown(t.validationMessages[n]))})),e):e}}}},8898:(t,e,n)=>{n.r(e),n.d(e,{Occupancy:()=>c});var r=n(51321),i=n(26618);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var c=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.rooms=e?JSON.parse(JSON.stringify(e)):[]},(e=[{key:"populateDefaults",value:function(t){for(var e=0;e<t.defaultNumberOfRooms;e++)this.rooms.push(new r.OccupancyRoom(t.defaultNumberOfAdults,t.defaultChildren))}},{key:"isInDefaultState",value:function(t){var e=new c;return e.populateDefaults(t),JSON.stringify(e)===JSON.stringify(this)}},{key:"addRoom",value:function(t,e){this.rooms.push(new r.OccupancyRoom(t,e))}},{key:"removeRoom",value:function(t){this.rooms=this.rooms.filter((function(e){return e!==t}))}},{key:"addAdult",value:function(t){this.rooms[t].adults+=1}},{key:"removeAdult",value:function(t){this.rooms[t].adults-=1}},{key:"addChild",value:function(t,e){this.rooms[t].children.push(new i.OccupancyChild(e))}},{key:"removeChild",value:function(t){this.rooms[t].children.pop()}},{key:"setChildAge",value:function(t,e,n){this.rooms[t].children[e].age=n}},{key:"getTotalRooms",value:function(){return this.rooms.length}},{key:"getTotalAdults",value:function(){return this.rooms?this.rooms.map((function(t){return t.adults})).reduce((function(t,e){return t+e}),0):0}},{key:"getTotalChildren",value:function(){if(!this.rooms)return 0;var t=0;return this.rooms.map((function(t){return t.children})).forEach((function(e){t+=e?e.filter((function(t){return!t.age||t.age>=2})).length:0})),t}},{key:"getTotalInfants",value:function(){if(!this.rooms)return 0;var t=0;return this.rooms.map((function(t){return t.children})).forEach((function(e){t+=e?e.filter((function(t){return t.age&&t.age<2})).length:0})),t}},{key:"getTotalAdultsAndChildren",value:function(){return this.getTotalAdults()+this.getTotalChildren()}},{key:"getOccupancyFormatted",value:function(t){var e="".concat(this.getTotalRooms()," ").concat(1!==this.getTotalRooms()?t.roomPlural:t.roomSingular,", "),n="".concat(this.getTotalAdults()," ").concat(1!==this.getTotalAdults()?t.adultPlural:t.adult
1Singular,", "),r=this.getTotalChildren()+this.getTotalInfants();return(e+n+(r>0?"".concat(r," ").concat(1!==r?t.childPlural:t.childSingular):"")).replace(/,\s*$/,"")}},{key:"getOccupancyFormattedNoRooms",value:function(t){var e="".concat(this.getTotalAdults()," ").concat(1!==this.getTotalAdults()?t.adultPlural:t.adultSingular,", "),n=this.getTotalChildren()+this.getTotalInfants();return(e+(n>0?"".concat(n," ").concat(1!==n?t.childPlural:t.childSingular):"")).replace(/,\s*$/,"")}},{key:"isEligibleForFcp",value:function(){return this.rooms.some((function(t){var e=t.children.filter((function(t){return t.age>1})).length;return 0!==e&&t.adults+e>2}))}}])&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},26618:(t,e,n)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,{OccupancyChild:()=>s});var s=o((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.age=e||""}))},51321:(t,e,n)=>{n.r(e),n.d(e,{OccupancyRoom:()=>s});var r=n(26618);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var s=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.children=[],this.adults=e||1,n&&this.populateChildren(n)},(e=[{key:"populateChildren",value:function(t){var e=this;t.split(",").filter((function(t){return t>0})).forEach((function(t){e.children.push(new r.OccupancyChild(t))}))}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()}}]);

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.