1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ssrComponents=t():e.ssrComponents=t()}(self,(()=>(()=>{"use strict";var e={265:(e,t,n)=>{function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,l,a=[],s=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){d=!0,o=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=document.createElementNS("http://www.w3.org/2000/svg","svg");if(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),e){var o=document.createElementNS("http://www.w3.org/2000/svg","use");o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e),r.appendChild(o)}else{var i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttributeNS(null,"d",t),r.appendChild(i)}return a(r,n),r}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=document.createElement(e);return a(o,t),function(e,t){t&&Object.keys(t).length>0&&Object.entries(t).forEach((function(t){var n=r(t,2),o=n[0],i=n[1];e[o]=i}))}(o,n),o}function a(e,t){t&&Object.keys(t).length>0&&Object.entries(t).forEach((function(t){var n=r(t,2),o=n[0],i=n[1];e.setAttribute(o,i)}))}n.d(t,{createSvg:()=>i,createTag:()=>l})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r);var o=n(265),i=["type"];function l(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s,d,c=[];function u(e){var t=(0,o.createTag)("div",{id:"shortlist-empty",class:"header__shortlist__content__empty"},{textContent:"Your shortlist is empty. Add holidays to your shortlist to save them for later."});e.appendChild(t)}function h(e){var t=(0,o.createTag)("div",{id:"shortlist-items"});e.appendChild(t)}function m(e){(e.forceUpdate||c.length!==e.newShortlistItems.length)&&(function(e){var t=document.getElementById("whitelabel-code").value,n=[document.getElementById("header-shortlist-count"),document.getElementById("header-shortlist-count-mobile")];[document.getElementById("header-shortlist-button"),document.getElementById("header-shortlist-button-mobile")].forEach((function(t){e>0?t.classList.add("header__main__tab--has-items"):t.classList.remove("header__main__tab--has-items")})),n.forEach((function(n){"hh"===t?n.innerHTML=e:"header-shortlist-count-mobile"===n.id?(n.innerHTML=e,"fc"===t&&(n.style.display=e>0?"flex":"none")):n.innerHTML=" (".concat(e,")")}));var r=document.getElementById("shortlist-drawer-count");if(r){var o=document.getElementById("shortlist-select-container");if(e>0)r.textContent="".concat(e," shortlisted holiday").concat(e>1?"s":""),o.style.display=e>1?"inline-block":"none";else{o.style.display="none",window.shortlistItemsReactor.dispatchEvent("DestroyShortlistItemsApp"),r.textContent="Your shortlist is empty";var i=document.getElementById("shortlist-drawer-content-main");i.innerHTML="",u(i)}}var l={empty:[document.getElementById("header-shortlist-icon"),document.getElementById("header-shortlist-button-mobile-icon")],hasItems:[document.getElementById("header-shortlist-icon-alt"),document.getElementById("header-shortlist-button-mobile-icon-alt")]};"fc"===t&&(e>
10?(l.hasItems.forEach((function(e){e.style.display="block"})),l.empty.forEach((function(e){e.style.display="none"}))):(l.hasItems.forEach((function(e){e.style.display="none"})),l.empty.forEach((function(e){e.style.display="block"}))))}((c=e.newShortlistItems).length>0?c.length:0),document.getElementById("header-shortlist-drawer")&&_(c))}function f(e){window.localStorage.setItem("ViewedHolidaysV4",JSON.stringify(e)),m({newShortlistItems:e,forceUpdate:!1})}function y(e){s.postMessage({type:"SortShortlistItems",message:{items:c,sortOrder:e.target.value}})}function p(){var e=document.getElementById("shortlist-order"),t="price-asc";e&&(t=e.value);var n=document.getElementById("api-url"),r=!1;try{r=JSON.parse(document.getElementById("update-shortlist-prices").value)}catch(e){}s.postMessage({type:"GetShortlistItems",message:{viewedHolidays:window.localStorage.getItem("ViewedHolidaysV4"),accountId:g(),resultsApiUrl:n.value,sortOrder:t,updateShortlistPrices:r}})}function v(e){window.localStorage.setItem("ViewedHolidaysV4",JSON.stringify(e)),p()}function g(){var e=function(e){var t,n=e+"=",r=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=l(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(decodeURIComponent(document.cookie).split(";"));try{for(r.s();!(t=r.n()).done;){for(var o=t.value;o.startsWith(" ");)o=o.substring(1);if(o.startsWith(n))return o.substring(n.length,o.length)}}catch(e){r.e(e)}finally{r.f()}return""}("hhdata"),t=1;if(e){var n=e.split("&")[0].replace("vid=","");n&&(t=n)}return t}function w(){if(void 0===s){var e=document.getElementById("cdn-url");if(e){var t=(n=new URL("".concat(e.value,"SSR/Static/shortlist-web-worker.js"),window.location).href,r='importScripts("'.concat(n,'")'),URL.createObjectURL(new Blob([r])));s=new Worker(t)}}var n,r;s.onmessage=function(e){var t,n,r=e.data,o=r.type,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r,i);(t=window)[o].apply(t,function(e){if(Array.isArray(e))return a(e)}(n=Object.values(s))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||l(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},p()}function b(e){s.postMessage({type:"RemoveFromShortlist",message:e})}function _(e){if(window.shortlistItemsReactor&&(d||((d=new Reactor).registerEvent("removeFromShortlist"),d.addEventListener("removeFromShortlist",b)),e.length>0)){if(document.getElementById("shortlist-empty")){var t=document.getElementById("shortlist-drawer-content-main");t.innerHTML="",h(t)}var n=document.getElementById("api-url"),r=document.getElementById("promo-labels-url"),o=document.getElementById("whitelabel-code");if(n&&r&&o){var i=document.getElementById("ctb-supplier-codes"),l=document.getElementById("ctb-phone-numbers"),a=JSON.parse(document.getElementById("use-holiday-card-mfe").value);s={items:e,theme:"fc"===o.value||"ao-fc"===o.value?"fcr":o.value,promoLabelsUrl:r.value,resultsApiUrl:n.value,ctbSupplierCodes:i.value,ctbPhoneNumbers:l.value,shortlistReactor:d,useHolidayCardMfe:a},window.shortlistItemsReactor.dispatchEvent("CreateShortlistItems",s)}}var s}function I(e){var t=document.getElementById("header-shortlist-drawer"),n=document.getElementById("shortlist-mask");t?"-100vw"===t.style.right?(t.style.right="0",n.style.display="block",_(e),window.disableBodyScroll()):(t.style.right="-100vw",n.style.display="none",window.enableBodyScroll()):(function(e){var t=(0,o.createTag)("div",{id:"header-shortlist-drawer",class:"header__shortlist"}),n=(0,o.createTag)("div",{class:"header__shortlist__header"}),r=(0,o.createTag)("span",{class:"header__shortlist__header__title"},{textContent:"Shortlist"});n.appendChild(r);var i=(0,o.createTag)("button",{class:"header__shortlist__header__close"},{onclick:I}),l=document.getElementById("whitelabel-code").value,a="<svg id='header-mobile-shortlist-close-icon'>\n <use xlink:href=\"".concat("fc"==l?"#icon--close-fc":"#icon--close",'"></use>\n </svg>'),s=document.createElement("div");s.innerHTML=a;var d=s.firstChild;i.appendChild(d),n.appendChild(i);var c=(0,o.createTag)("div",{id:"shortlist-drawer-content",class:"header__shortlist__content"}),m=(0,o.createTag)("div",{class:"header__shortlist__content__controls"});c.appendChild(m);var f=(0,o.createTag)("div",{id:"shortlist-drawer-count",class:"header__shortlist__content__controls__count"});m.appendChild(f);for(var p=(0,o.createTag)("div",{id:"shortlist-drawer-content-main",class:"header__shortlist__content__main"}),v=(0,o.createTag)("div",{id:"shortlist-select-container",class:"header__shortlist__content__drop-down__container select-container",style:"display:".concat(e.length>1?"inline-block":"none")}),g="fc"===document.getElementById("whitelabel-code").value?"#icon--chevron-fc":"#icon--chevron",w=(0,o.createSvg)(g,null,{class:"select-container__icon header__shortlist__content__drop-down__icon"}),b=(0,o.createTag)("select",{id:"shortlist-order",class:"select-container__input"},{onchange:y}),_=0,S=[{text:"Price - low to high",value:"price-asc"},{text:"Price - high to low",value:"price-desc"},{text:"Saving - high to low",value:"saving"},{text:"TripAdvisor Rating",value:"trip"},{text:"Hotel - A to Z",value:"hotel"},{text:"Last Viewed",value:"lastviewed"},{text:"Star Rating",value:"star"}];
1_<S.length;_++){var E=S[_],B=(0,o.createTag)("option",{value:E.value});B.innerHTML=E.text,b.appendChild(B)}v.appendChild(b),v.appendChild(w),m.appendChild(v),e.length>0?(f.textContent="".concat(e.length," shortlisted holiday").concat(e.length>1?"s":""),h(p)):(f.textContent="Your shortlist is empty",u(p)),c.appendChild(p),t.appendChild(n),t.appendChild(c),document.getElementById("site-header").prepend(t);var x=(0,o.createTag)("div",{id:"shortlist-mask",class:"header__shortlist__mask"},{onclick:I});document.getElementById("site-header").prepend(x),window.setTimeout((function(){document.getElementById("header-shortlist-drawer").style.right="0"}),50)}(e),_(e),window.disableBodyScroll())}return function(){if(document.getElementById("header-shortlist-button")&&document.getElementById("header-shortlist-button-mobile")){window.Worker&&(w(),window.SendViewedHolidays=p,window.ShortlistUpdated=f,window.setShortlistItems=m,window.UpdateViewedHolidays=v);for(var e=0,t=[document.getElementById("header-shortlist-button"),document.getElementById("header-shortlist-button-mobile")];e<t.length;e++)t[e].onclick=function(){I(c)}}}(),r})()));
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.