1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86769],{2713:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(98509);let i=({isActive:e,classNames:t,cleanMode:r})=>{(0,n.useEffect)(()=>{let n=document.body.className,i=(Array.isArray(t)?t:[t]).filter(Boolean);return e&&document.body.classList.add(...i),()=>{"orginalClass"===r?document.body.className=n:document.body.classList.remove(...i)}},[t,r,e])}},3303:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return e}},6209:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(62249),i=r(64257);let u=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,n.A)(e)}},11927:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n,i,u=r(33192),s=r(3303),c=u.A?function(e,t){return(0,u.A)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:s.A,a=Date.now;let o=(n=0,i=0,function(){var e=a(),t=16-(e-i);if(i=e,t>0){if(++n>=800)return arguments[0]}else n=0;return c.apply(void 0,arguments)})},14574:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return function(t){return e(t)}}},15235:(e,t,r)=>{"use strict";r.d(t,{A8:()=>u,UB:()=>i,UP:()=>s,kM:()=>n});let n=2,i=1,u=100,s=3},21681:(e,t,r)=>{"use strict";r.d(t,{A:()=>v});var n=r(24429),i=r(97602),u=r(31754),s=r(36399),c=r(14574),a=r(59480);let o=function(e,t,r,o){var l=-1,d=i.A,f=!0,v=e.length,h=[],A=t.length;if(!v)return h;r&&(t=(0,s.A)(t,(0,c.A)(r))),o?(d=u.A,f=!1):t.length>=200&&(d=a.A,f=!1,t=new n.A(t));e:for(;++l<v;){var m=e[l],p=null==r?m:r(m);if(m=o||0!==m?m:0,f&&p==p){for(var g=A;g--;)if(t[g]===p)continue e;h.push(m)}else d(t,p,o)||h.push(m)}return h};var l=r(26815),d=r(51661),f=r(43966);let v=(0,d.A)(function(e,t){return(0,f.A)(e)?o(e,(0,l.A)(t,1,f.A,!0)):[]})},24429:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(26137);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.A;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},i.prototype.has=function(e){return this.__data__.has(e)};let u=i},26815:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(63947),i=r(10354),u=r(28570),s=r(27654),c=i.A?i.A.isConcatSpreadable:void 0;let a=function(e){return(0,s.A)(e)||(0,u.A)(e)||!!(c&&e&&e[c])},o=function e(t,r,i,u,s){var c=-1,o=t.length;for(i||(i=a),s||(s=[]);++c<o;){var l=t[c];r>0&&i(l)?r>1?e(l,r-1,i,u,s):(0,n.A)(s,l):u||(s[s.length]=l)}return s}},28570:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(51079),i=r(18689);let u=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,n.A)(e)};var s=Object.prototype,c=s.hasOwnProperty,a=s.propertyIsEnumerable;let o=u(function(){return arguments}())?u:function(e){return(0,i.A)(e)&&c.call(e,"callee")&&!a.call(e,"callee")}},29678:e=>{e.exports={c:"styles_c__aNwKF"}},31754:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},33192:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(74527);let i=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},36548:e=>{e.exports={c:"styles_c__wOpQd"}},38897:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n.A}),r(21699);var n=r(54779)},43966:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(6209),i=r(18689);let u=function(e){return(0,i.A)(e)&&(0,n.A)(e)}},44326:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var n=r(98509),i=r(90800);let u=()=>{let{formatMessage:e}=(0,i.A)();return(0,n.useMemo)(()=>{let t=(t,r,n)=>t?e({id:t,defaultMessage:n},r):(console.error("Missing id for translation"),"");return{t:t,tJsx:(t,r,n)=>t?e({id:t,defaultMessage:n},r):(console.error("Missing id for translation"),""),tMultiple:e=>e.map(e=>t(...e))}},[e])}},46507:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(52788);let i=function(e){return e!=e},u=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1},s=function(e,t,r){return t==t?u(e,t,r):(0,n.A)(e,i,r)}},46984:(e,t,r)=>{"use strict";r.d(t,{Bw:()=>s,YP:()=>u,cm:()=>n,x3:()=>i});let n="onFavouritesLimit",i="favourites",u=15,s=5e3},51661:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(3303),i=r(69469),u=r(11927);let s=function(e,t){return(0,u.A)((0,i.A)(e,t,n.A),e+"")}},52788:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t,r,n){for(var i=e.length,u=r+(n?1:-1);n?u--:++u<i;)if(t(e[u],u,e))return u;return -1}},52974:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(98509),i=r(56963),u=function(e){var t=(0,n.useRef)(e);return t.current=e,t},s=function(e,t){void 0===t&&(t=100);var r=setTimeout(function(){clearTimeout(r),e()},t)},c=function(e){return Array.isArray(e)?e.every(function(e){return!Array.from(document.getElementsByClassName(e)).length}):e},a=function(e){var t=document.createElement("div");return t.setAttribute("id",e),document.body.appendChild(t),t},o=function(e){var t,r,o,l=void 0===e?{}:e,d=l.containerId,f=l.autoRemoveContainer,v=l.defaultShow,h=void 0===v||v,A=l.clickOutsideToHide,m=void 0===A||A,p=l.escToHide,g=void 0===p||p,y=l.internalShowHide,b=void 0===y||y,w=l.onShow,_=l.onHide,k=(0,n.useState)(h),x=k[0],C=k[1],E=(0,n.useRef)(!1),S=u(w),j=u(_),M=(0,n.useRef)(h),I=(0,n.useCallback)(function(){m&&(E.current=!0,s(function(){E.current=!1}))},[m]),O=(0,n.useCallback)(function(e){I(),!M.current&&(C(!0),M.current=!0,S.current&&S.current(e))},[S,I]),N=(0,n.useCallback)(function(e){I(),M.current&&(C(!1),M.current=!1,j.current&&j.current(e))},[j,I]),L=(0,n.useCallback)(function(e){M.current?N(e):O(e)},[N,O]),P=(0,n.useCallback)(function(e){!E.current&&("click"===e.type&&c(m)||"keydown"===e.type&&c(g))&&N(e)},[N]);return{Portal:(0,n.useCallback)((t=void 0===d?"react-cool-portal":d,r=void 0===f||f,o=!b||x,function(e){var u=e.children,c=(0,n.useState)(),l=c[0],d=c[1];return(0,n.useEffect)(function(){return o?(d(document.getElementById(t)||a(t)),function(){l&&s(function(){r&&""===l.innerHTML&&l.remove()})}):function(){return null}},[l]),(0,n.useEffect)(function(){if(!o||!l)return function(){return null};var e=!1,t=function(t){e=!l.contains(t.target)},r=function(t){e&&P(t)},n=function(e){"Escape"===e.key&&P(e)};return P&&(document.addEventListener("mousedown",t),document.addEventListener("click",r)),P&&document.addEventListener("keydown",n),function(){P&&(document.removeEventListener("mousedown",t),document.removeEventListener("click",r)),P&&document.removeEventListener("keydown",n)}},[l]),o&&l?(0,i.createPortal)(u,l):null}),[b,x]),isShow:x,show:O,hide:N,toggle:L}}},54779:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,Z:()=>u});var n=r(98509),i=r(21699);let u=()=>{let e=(0,n.useContext)(i.$);
1if(!e)throw Error("Offers Locale Context not provided!");return e},s=u},59480:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t){return e.has(t)}},63947:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},64257:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},69469:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});let n=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var i=Math.max;let u=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var u=arguments,s=-1,c=i(u.length-t,0),a=Array(c);++s<c;)a[s]=u[t+s];s=-1;for(var o=Array(t+1);++s<t;)o[s]=u[s];return o[t]=r(a),n(e,this,o)}}},86769:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>j});var n=r(67761),i=r(21681),u=r(98509);class s{constructor(){this.listeners={}}on(e,t){Array.isArray(this.listeners[e])||(this.listeners[e]=[]),this.listeners[e].push(t)}off(e,t){e in this.listeners&&(this.listeners[e]=this.listeners[e].filter(e=>e!==t))}notify(e,t){Array.isArray(this.listeners[e])&&this.listeners[e].forEach(e=>e(t))}}var c=r(52968),a=r(9131),o=r(93927),l=r(15235),d=r(43103),f=r(38897),v=r(59201),h=r(15343),A=r(566),m=r(52974),p=r(2713),g=r(84340),y=r(46984),b=r(44326),w=r(29678),_=r.n(w);let k=({inlineStyles:e,setRef:t})=>{let{t:r}=(0,b.B)();return(0,n.jsx)("div",{ref:t,className:_().c,style:e,children:r("favourites.limit",{count:y.YP})})};var x=r(36548),C=r.n(x);let E=()=>{let{t:e}=(0,b.B)();return(0,n.jsx)("div",{className:C().c,children:e("favourites.limit",{count:y.YP})})},S=({events:e,portalClassName:t=""})=>{let{floatingStyles:r,refs:{setFloating:i,setReference:s}}=(0,v.we)({placement:"bottom-end",middleware:[(0,h.cY)({mainAxis:20,crossAxis:25})]}),{Portal:c,isShow:a,show:o,hide:l}=(0,m.A)({containerId:"favourites-notification",defaultShow:!1,clickOutsideToHide:!1,onShow:()=>{setTimeout(()=>{l()},y.Bw)}}),d=(0,A.useRouter)();return(0,p.a)({isActive:a,classNames:t?`${t}--is-open`:""}),(0,u.useEffect)(()=>{let t=e=>{s(e),o()},r=()=>{l()};return d.events.on("routeChangeStart",r),e.on(y.cm,t),()=>{e.off(y.cm,t),d.events.off("routeChangeStart",r)}},[e,s,o,l,d.events]),(0,n.jsx)(c,{children:(0,n.jsxs)("div",{"data-id":"favourites-notification",className:t,children:[(0,n.jsx)(g.$U,{lessThan:"md",children:(0,n.jsx)(E,{})}),(0,n.jsx)(g.$U,{greaterThanOrEqual:"md",children:(0,n.jsx)(k,{setRef:i,inlineStyles:r})})]})})},j=({children:e})=>{let{language:{key:t}}=(0,f.Z)(),r=(0,d.A)(),[v,h]=(0,a.M)(c.Vq,[]),A=(0,u.useMemo)(()=>new s,[]),m=(0,u.useMemo)(()=>v.map(function({currency:e,language:t}){return r=>"participants"in r?{rateId:r.id,currency:e,language:t,supplierObjectId:r.supplierObjectId,adults:parseInt(r.participants?.["participants[0][adults]"],10)||0,children:r.participants?Object.entries(r.participants).reduce((e,[t,r])=>{if(t.startsWith("participants[0][children][")){let t=r.split(".");if(3===t.length){let[r,n,i]=t.map(Number);e.push(new Date(i,n-1,r).toISOString())}}return e},[]):[]}:r}({currency:r.currencies.default,language:t}))||[],[t,v,r.currencies.default]),p=e=>m.some(t=>t.rateId===e),g=(0,u.useCallback)(e=>{let t=m.map(e=>e.rateId);0===(0,i.A)(t,e).length||h(m.filter(t=>e.includes(t.rateId)))},[m,h]),b={numberOfFavouriteOffers:m.length,favourites:m,toggleFavourite:({offerId:e,supplierObjectId:n,participants:i})=>u=>{if(p(e))return void h(m.filter(t=>t.rateId!==e));if(m.length>=y.YP)return void A.notify(y.cm,u.currentTarget);let s=[...i?.get(0)?.children?.values()||[]].filter(e=>!!e),c={rateId:e,supplierObjectId:n,currency:r.currencies.default,adults:i?.get(0)?.adults||l.kM,children:s.map(e=>e.toISOString()),language:t};h(e=>[c,...e])},removeGivenIds:g,isActive:p};return(0,n.jsxs)(o.v.Provider,{value:b,children:[e,(0,n.jsx)(S,{events:A})]})}},90800:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(98509),i=r(9104),u=r(57166);function s(){var e=n.useContext(u.ob);return(0,i.HM)(e),e}},93927:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var n=(0,r(98509).createContext)(void 0)},97602:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(46507);let i=function(e,t){return!!(null==e?0:e.length)&&(0,n.A)(e,t,0)>-1}}}]);
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.