vendor: 5,308 bytes, lines 1-2
1/*! For license information please see 3716.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunkyotel=self.webpackChunkyotel||[]).push([[3716],{9932:(t,e,r)=>{r.d(e,{f5:()=>a,ic:()=>c,nI:()=>i,tq:()=>o});var n=r(7389),o=function(){return["xs","sm"].indexOf(n.Z.breakpoint.get())>-1},a=function(){return 1===window.drupalSettings.isCompact},i=function(){return!o()},c=function(){return window.innerWidth<=991};n.Z.breakpoint.init()},5845:(t,e,r)=>{function n(t){return n="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},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new C(n||[]);return a(i,"_invoke",{value:D(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h={};function d(){}function y(){}function v(){}var m={};l(m,c,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(j([])));g&&g!==e&&r.call(g,c)&&(m=g);var w=v.prototype=d.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function o(a,i,c,s){var u=f(t[a],t,i);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==n(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,c,s)}),(function(t){o("throw",t,c,s)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return o("throw",t,c,s)}))}s(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function D(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=O(i,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return y.prototype=v,a(w,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(k.prototype),l(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(p(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(w),l(w,u,"Generator"),l(w,c,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
vendor: 5,952 bytes, line 2
2h(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,s,"next",t)}function s(t){a(i,n,o,c,s,"throw",t)}c(void 0)}))}}r.d(e,{c:()=>s});var c=function(){var t=i(o().mark((function t(e,r){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e,r);case 2:if((n=t.sent).ok){t.next=5;break}throw new Error("Unexpected response code: ".concat(n.status));case 5:return t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),s=function(){var t=i(o().mark((function t(e,r,n,a,i){var s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c("https://api.selfbook.com/api/v3/hotels/"+e+"/calendar",{method:"POST",cache:"no-cache",headers:{"API-Key":"HlbrGc8vLIuOUZMf6H1N2TtlDkNDaJuHQvU","content-type":"application/json"},body:JSON.stringify({hotelId:e,guests:[{type:"adult",count:r}],currency_code:i,start_date:n,end_date:a,ada_compliant_rooms:!1,include_inclusive_fees:!0,language:"en"})});case 3:return s=t.sent,t.next=6,s.json();case 6:return t.abrupt("return",t.sent);case 9:return t.prev=9,t.t0=t.catch(0),console.log("error",t.t0.error_code),t.abrupt("return",{});case 13:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e,r,n,o,a){return t.apply(this,arguments)}}()},8585:(t,e,r)=>{r.d(e,{Z:()=>C});var n=r(6113),o=r(7294),a=r(6300),i=r(30),c=r(7505),s=r(5559),u=r(2276),l=r(6027),p=r(2620),f=r(5845);function h(t){return h="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},h(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(){y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof f?e:f,i=Object.create(a.prototype),c=new C(o||[]);return n(i,"_invoke",{value:D(t,r,c)}),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function f(){}function d(){}function v(){}var m={};s(m,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(j([])));g&&g!==e&&r.call(g,a)&&(m=g);var w=v.prototype=f.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function o(n,a,i,c){var s=l(t[n],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==h(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(s.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function D(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=O(i,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);
vendor: 5,138 bytes, line 2
2if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:d,configurable:!0}),d.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(k.prototype),s(k.prototype,i,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function v(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,k(n.key),n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}
2function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function _(t,e,r){return(e=k(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===h(e)?e:String(e)}var D=window.location.pathname.split("/")[1],O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(E,t);var e,r,n,k,O=(n=E,k=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w(n);if(k){var r=w(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,t)});function E(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,E),_(g(e=O.call(this,t)),"loadSelfbookCalendarData",function(){var t,r=(t=y().mark((function t(r){var n,o,a,i,c,s,h,d,v;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.props.location.id,o=e.props.location.currency.code,a=e.props.guests?e.props.guests:1,i=new Date(r.getFullYear(),r.getMonth(),1),c=(0,u.z)(i,2),c=(0,l.m)(c,-1),t.next=8,(0,f.c)(n,a,i,c,o);case 8:s=t.sent,h=e.props.calendarData,d=e.props.excludedDates,v=(0,p.WU)(new Date,"yyyy-MM-dd"),s.data.forEach((function(t){!h.find((function(e){return e.date===t.date}))&&t.date>=v&&h.push(t)})),e.props.setCalendarData(h,d),e.forceUpdate();case 15:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){v(a,n,o,i,c,"next",t)}function c(t){v(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t){return r.apply(this,arguments)}}()),_(g(e),"renderDayContents",(function(t,r){if(Array.isArray(e.props.calendarData)&&e.props.calendarData.length>0){var n=e.props.calendarData.find((function(t){return t.date===(0,p.WU)(r,"yyyy-MM-dd")}));if(void 0!==n&&null!==n.price){var a=e.props.location?e.props.location.currency.sign:"£",i=n?a+Math.round(n.price):"";return o.createElement("div",null,o.createElement("span",{className:"day-number"},t),o.createElement("br",null),o.createElement("span",{className:"day-price"},i))}return o.createElement("div",null,o.createElement("span",{className:"day-number"},t),o.createElement("br",null),o.createElement("span",{className:"day-price"}," "))}return o.createElement("div",null,o.createElement("span",{className:"day-number"},t))})),e._swipe={},e.minDistance=50,e}return e=E,(r=[{key:"onChange",value:function(t){var e,r,n=(r=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}
2(e,r)||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.")}()),o=n[0],a=n[1];this.props.setDates(o,a)}},{key:"clearDatePicker",value:function(t){t.preventDefault(),this.props.setDates(null,null)}},{key:"handleNextClick",value:function(){this.props.startDate&&this.props.endDate&&this.props.goToNext(this.props.stayOvernight)}},{key:"onTouchStart",value:function(t){var e=t.touches[0];this._swipe={x:e.clientX,y:e.clientY},this.setState({swiped:!1})}},{key:"onTouchMove",value:function(t){t.changedTouches&&t.changedTouches.length&&(t.changedTouches[0],this._swipe.swiping=!0)}},{key:"onTouchEnd",value:function(t){var e=t.changedTouches[0],r=Math.abs(e.clientX-this._swipe.x),n=Math.abs(e.clientY-this._swipe.y);this._swipe.swiping&&(r>this.minDistance||n>this.minDistance)&&this.setState({swiped:!0}),this._swipe={}}},{key:"goBack",value:function(t){t.preventDefault(),this.props.goBack()}},{key:"maxDate",value:function(t){if(this.props.startDate&&this.props.location&&"SNT"==this.props.location.platform){var e=new Date(this.props.startDate),r=t?365:2;return e.setDate(e.getDate()+r),e}}},{key:"componentDidMount",value:function(){this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability&&this.loadSelfbookCalendarData(new Date)}},{key:"componentDidUpdate",value:function(t,e){var r;if(this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability){if(this.props.guests!==t.guests&&(this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(null!==(r=t.startDate)&&void 0!==r?r:new Date)),t.location&&this.props.location.id!==t.location.id)this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(new Date);else if(null===t.location){var n;this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(null!==(n=t.startDate)&&void 0!==n?n:new Date)}}else t.location&&this.props.location.id!==t.location.id&&(this.props.setCalendarData([],[]),this.forceUpdate())}},{key:"handleMonthChange",value:function(t){this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability&&this.loadSelfbookCalendarData(t)}},{key:"render",value:function(){var t=this.props,e=t.startDate,r=t.endDate,n=t.history;return o.createElement("div",{className:"yot-location-search__step yot-location-search__date-picker"},o.createElement("div",{className:"yot-location-search__step__header"},n.length>1&&o.createElement("button",{className:"yotel-btn--no-style yot-location-search__step__back",onClick:this.goBack.bind(this)},o.createElement("i",{className:"icon-chevron"})),o.createElement("h4",null,(0,c.Z)("Select dates")),e&&r&&o.createElement("button",{className:"yot-link yotel-btn--no-style",onClick:this.clearDatePicker.bind(this)},(0,c.Z)("Clear"))),o.createElement("div",{className:"yot-location-search__date-picker__container",onTouchStart:this.onTouchStart.bind(this),onTouchMove:this.onTouchMove.bind(this),onTouchEnd:this.onTouchEnd.bind(this)},o.createElement(a.ZP,{locale:(0,i.e)(D),selected:e,onChange:this.onChange.bind(this),startDate:e,endDate:r,maxDate:this.maxDate(r),renderDayContents:this.renderDayContents,excludeDates:this.props.excludedDates,selectsRange:!0,monthsShown:1,inline:!0,disabledKeyboardNavigation:!0,onMonthChange:this.handleMonthChange.bind(this),minDate:this.props.location&&this.props.location.booking_start_date?new Date(this.props.location.booking_start_date):new Date,renderCustomHeader:s.bZ})),o.createElement("div",{className:"yot-location-search__step__footer"},o.createElement("button",{className:"yotel-btn ".concat(e&&r?"":"yotel-btn--disabled"),onClick:this.handleNextClick.bind(this),disabled:!(e&&r)},(0,c.Z)("Next"))))}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),E}(o.Component),E=r(4735),S=r(7114);const C=(0,n.$j)((function(t,e){return{startDate:t.search.startDate,endDate:t.search.endDate,guests:t.search.guests,history:t.history.history,stayOvernight:t.search.stayOvernight,location:t.search.location,calendarData:t.search.calendarData,excludedDates:t.search.excludedDates}}),(function(t){return{goBack:function(){t((0,E.Fv)())},goToNext:function(e){t(e?(0,E.SZ)("guests-rooms-selector"):(0,E.SZ)("time-picker"))},setDates:function(e,r){t((0,S.rm)(e,r))},setCalendarData:function(e,r){t((0,S.k2)(e,r))}}}))(O)},3066:(t,e,r)=>{r.d(e,{Z:()=>y});var n=r(6113),o=r(2432),a=r(7114),i=r(4735),c=r(7294),s=r(7505),u=r(5559);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 p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===l(o)?o:String(o)),n)}var o}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}
2function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(i,t);var e,r,n,o,a=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(n);if(o){var r=h(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=a.call(this,t)).state={showRates:!1},e}return e=i,(r=[{key:"componentDidMount",value:function(){var t=this,e=document.getElementById("selfbook_sdkwidget");e&&(this.selfbookObserver=new MutationObserver((function(r){r.forEach((function(r){"style"===r.attributeName&&"none"===window.getComputedStyle(e).display&&t.onCloseClick()}))})),this.selfbookObserver.observe(e,{attributes:!0,attributeFilter:["style"]}))}},{key:"componentWillUnmount",value:function(){this.selfbookObserver&&this.selfbookObserver.disconnect()}},{key:"updateCorpoCode",value:function(t){this.props.setCode(t.target.value,"corpo"),this.props.setCode("","group"),this.props.setCode("","promo")}},{key:"updateGroupCode",value:function(t){this.props.setCode(t.target.value,"group"),this.props.setCode("","corpo"),this.props.setCode("","promo")}},{key:"updatePromoCode",value:function(t){this.props.setCode(t.target.value,"promo"),this.props.setCode("","group"),this.props.setCode("","corpo")}},{key:"onSearchClick",value:function(t){t.preventDefault(),(0,u.gA)(this.props)}},{key:"toggleRates",value:function(){this.setState({showRates:!this.state.showRates})}},{key:"goBack",value:function(t){t.preventDefault(),this.props.goBack()}},{key:"onCloseClick",value:function(t){this.props.hideOverlay(),$(document.body).removeClass("overlay-displayed"),$(document.body).css("top","auto")}},{key:"render",value:function(){var t=this.props,e=t.location,r=t.startDate,n=t.endDate,o=t.checkIn,a=t.checkOut,i=t.guests,l=t.rooms,p=t.corpoCode,f=t.groupCode,h=t.promoCode,d=t.stayOvernight;return c.createElement("div",{className:"yot-location-search__step yot-location-search__gr-selector"},c.createElement("div",{className:"yot-location-search__step__header"},c.createElement("button",{className:"yotel-btn--no-style yot-location-search__step__back",onClick:this.goBack.bind(this)},c.createElement("i",{className:"icon-chevron"})),c.createElement("h4",null,(0,s.Z)("Select guests & rooms"))),c.createElement("div",{className:"yot-location-search__step__content"},c.createElement("div",{className:"container"},c.createElement("div",{className:"col-sm-12"},c.createElement("div",{className:"yot-location-search__step__summary"},c.createElement("p",null,e.name),c.createElement("p",{className:"small"},d?r.getDate()+" "+u.sR[r.getMonth()]+" - "+n.getDate()+" "+u.sR[n.getMonth()]:r.getDate()+" "+u.sR[r.getMonth()]+", "+o+" - "+n.getDate()+" "+u.sR[n.getMonth()]+", "+a)),(0,u.hK)("guests",i,this.props.setGuests.bind(this)),c.createElement("hr",null),(0,u.hK)("rooms",l,this.props.setRooms.bind(this)))),c.createElement("hr",null),e&&("Synxis"===e.platform||"selfbook"===e.platform||"hilton"===e.platform)&&c.createElement("div",{className:"container"},c.createElement("div",{className:"col-sm-12"},c.createElement("p",{className:"yot-location-search__gr-selector__rate-toggle ".concat(this.state.showRates?"is-active":""),onClick:this.toggleRates.bind(this)},(0,s.Z)("Apply code")," ",c.createElement("i",{className:"icon-chevron"})),this.state.showRates&&c.createElement("div",null,c.createElement("div",{className:"input-field"},c.createElement("input",{placeholder:(0,s.Z)("Enter code"),id:"yls-promo-rate",type:"text",value:h||"",onChange:this.updatePromoCode.bind(this)}),c.createElement("label",{className:"active",htmlFor:"yls-promo-rate"},(0,s.Z)("Promo rate"))),c.createElement("div",{className:"input-field"},c.createElement("input",{placeholder:(0,s.Z)("Enter code"),id:"yls-corpo-rate",type:"text",value:p||"",onChange:this.updateCorpoCode.bind(this)}),c.createElement("label",{className:"active",htmlFor:"yls-corpo-rate"},(0,s.Z)("Corporate rate"))),c.createElement("div",{className:"input-field"},c.createElement("input",{placeholder:(0,s.Z)("Enter code"),id:"yls-group-rate",type:"text",value:f||"",onChange:this.updateGroupCode.bind(this)}),c.createElement("label",{className:"active",htmlFor:"yls-group-rate"},(0,s.Z)("Group rate"))))))),c.createElement("div",{className:"yot-location-search__step__footer"},c.createElement("button",{className:"yotel-btn search",onClick:this.onSearchClick.bind(this)},c.createElement("i",{className:"icon-search"}),(0,s.Z)("Search"))))}}])&&p(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(c.Component);const y=(0,n.$j)((function(t,e){return{location:t.search.location,startDate:t.search.startDate,endD
2ate:t.search.endDate,checkIn:t.search.checkIn,checkOut:t.search.checkOut,guests:t.search.guests,rooms:t.search.rooms,promoCode:t.search.promoCode,groupCode:t.search.groupCode,corpoCode:t.search.corpoCode,stayOvernight:t.search.stayOvernight,calendarData:t.search.calendarData,excludedDates:t.search.excludedDates}}),(function(t){return{goBack:function(){t((0,i.Fv)())},hideOverlay:function(){t((0,o.Jz)({isOverlayDisplayed:!1}))},setGuests:function(e){var r;r=e<1?1:e>9?9:e,t((0,a.ab)(r)),t((0,a.k2)([],[]))},setRooms:function(e){var r;r=e<1?1:e>10?10:e,t((0,a.CF)(r))},setCode:function(e,r){t((0,a.Gy)(e,r)),t((0,a.k2)([],[]))}}}))(d)},8843:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6113),o=r(7294),a=r(7505),i=r(5559);function c(t){return c="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},c(t)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==c(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===c(o)?o:String(o)),n)}var o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,t);var e,r,n,p,f=(n=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=l(n);if(p){var r=l(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),e=f.call(this,t),(0,i.DU)(new Date(t.startDate),new Date(t.endDate))&&e.props.setCheckOut((0,i.rP)(e.props.checkIn,e.props.startDate,e.props.endDate,e.props.location.minimum_bookable_hours)),e}return e=h,(r=[{key:"componentDidMount",value:function(){$("select").formSelect(),(0,i.IX)()}},{key:"componentDidUpdate",value:function(t,e){this.props.startDate==t.startDate&&this.props.checkIn==t.checkIn||$("select").formSelect()}},{key:"onCheckInChange",value:function(t){if(this.props.setCheckIn(t.target.value),this.props.startDate.getDate()===this.props.endDate.getDate()&&this.props.setCheckOut((0,i.rP)(t.target.value,this.props.startDate,this.props.endDate,this.props.location.minimum_bookable_hours)),t.target.value.split(":")[0]>=20&&this.props.startDate.getDate()===this.props.endDate.getDate()){var e=new Date(this.props.startDate);e.setDate(this.props.startDate.getDate()+1),this.props.setDates(this.props.startDate,e)}}},{key:"onCheckOutChange",value:function(t){this.props.setCheckOut(t.target.value)}},{key:"goBack",value:function(t){t.preventDefault(),this.props.goBack()}},{key:"handleNextClick",value:function(t){t.preventDefault(),this.props.goToNext()}},{key:"render",value:function(){var t=this.props,e=t.location,r=t.startDate,n=t.endDate,c=t.checkIn,s=t.checkOut;return o.createElement("div",{className:"yot-location-search__step yot-location-search__time-picker"},o.createElement("div",{className:"yot-location-search__step__header"},o.createElement("button",{className:"yotel-btn--no-style yot-location-search__step__back",onClick:this.goBack.bind(this)},o.createElement("i",{className:"icon-chevron"})),o.createElement("h4",null,(0,a.Z)("What time?"))),o.createElement("div",{className:"container"},o.createElement("div",{className:"col-sm-12"},o.createElement("div",{className:"yot-location-search__step__summary"},o.createElement("p",null,e.name),o.createElement("p",{className:"small"},r.getDate()," ",i.sR[r.getMonth()]," -"," ",n.getDate()," ",i.sR[n.getMonth()])
vendor: 6,060 bytes, line 2
2),o.createElement("div",{className:"yotel-form"},(0,i.l5)("yls-check-in","check-in",c,this.onCheckInChange.bind(this),"00:00","23:30",r),(0,i.l5)("yls-check-out","check-out",s,this.onCheckOutChange.bind(this),(0,i.rP)(c,r,n,e.minimum_bookable_hours),"23:30")))),o.createElement("div",{className:"yot-location-search__step__footer"},o.createElement("button",{className:"yotel-btn",onClick:this.handleNextClick.bind(this)},(0,a.Z)("Next"))))}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.Component),f=r(4735),h=r(7114);const d=(0,n.$j)((function(t,e){return{location:t.search.location,startDate:t.search.startDate,endDate:t.search.endDate,checkIn:t.search.checkIn,checkOut:t.search.checkOut}}),(function(t){return{goBack:function(){t((0,f.Fv)())},goToNext:function(){t((0,f.SZ)("guests-rooms-selector"))},setCheckIn:function(e){t((0,h._H)(e))},setCheckOut:function(e){t((0,h._K)(e))},setDates:function(e,r){t((0,h.rm)(e,r))}}}))(p)},4444:(t,e,r)=>{r.d(e,{Z:()=>R});var n=r(6113),o=r(7294),a=r(6300),i=r(30),c=r(5845),s=r(2276),u=r(6027),l=r(2620),p=r(7505),f=r(5559);function h(t){return h="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},h(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(){y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var a=e&&e.prototype instanceof f?e:f,i=Object.create(a.prototype),c=new C(o||[]);return n(i,"_invoke",{value:D(t,r,c)}),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p={};function f(){}function d(){}function v(){}var m={};s(m,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(j([])));g&&g!==e&&r.call(g,a)&&(m=g);var w=v.prototype=f.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function o(n,a,i,c){var s=l(t[n],t,a);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==h(p)&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){o("next",t,i,c)}),(function(t){o("throw",t,i,c)})):e.resolve(p).then((function(t){u.value=t,i(u)}),(function(t){return o("throw",t,i,c)}))}c(s.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function D(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=O(i,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:d,configurable:!0}),d.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(k.prototype),s(k.prototype,i,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new k(u(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(w),s(w,c,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
2h(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function v(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,k(n.key),n)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function _(t,e,r){return(e=k(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function k(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===h(e)?e:String(e)}var D=".yot-date-picker",O="keyboard-active",E=window.location.pathname.split("/")[1],S="react-datepicker__navigation--next",C="react-datepicker__navigation--previous",j="react-datepicker__day--keyboard-selected",P="react-datepicker__day--range-start",x=void 0,N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(T,t);var e,r,n,k,N=(n=T,k=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w(n);if(k){var r=w(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}(this,t)});function T(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,T),_(g(e=N.call(this,t)),"loadSelfbookCalendarData",function(){var t,r=(t=y().mark((function t(r,n){var o,a,i,p,f,h,d,v,m;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.props.location.id,a=e.props.location.currency.code,i=e.props.guests?e.props.guests:1,p=new Date(r.getFullYear(),r.getMonth(),1),f=(0,s.z)(p,3),f=(0,u.m)(f,-1),t.next=8,(0,c.c)(o,i,p,f,a);case 8:h=t.sent,d=e.props.calendarData,v=e.props.excludedDates,m=(0,l.WU)(new Date,"yyyy-MM-dd"),h.data.forEach((function(t){!d.find((function(e){return e.date===t.date}))&&t.date>=m&&d.push(t)})),e.props.setCalendarData(d,v),e.forceUpdate();case 15:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;
2return new Promise((function(n,o){var a=t.apply(e,r);function i(t){v(a,n,o,i,c,"next",t)}function c(t){v(a,n,o,i,c,"throw",t)}i(void 0)}))});return function(t,e){return r.apply(this,arguments)}}()),_(g(e),"renderDayContents",(function(t,r){if(Array.isArray(e.props.calendarData)&&e.props.calendarData.length>0){var n=e.props.calendarData.find((function(t){return t.date===(0,l.WU)(r,"yyyy-MM-dd")}));if(void 0!==n&&null!==n.price){var a=e.props.location?e.props.location.currency.sign:"£",i=n?a+Math.round(n.price):"";return o.createElement("div",null,o.createElement("span",{className:"day-number"},t),o.createElement("br",null),o.createElement("span",{className:"day-price"},i))}return o.createElement("div",null,o.createElement("span",{className:"day-number"},t),o.createElement("br",null),o.createElement("span",{className:"day-price"}," "))}return o.createElement("div",null,o.createElement("span",{className:"day-number"},t))})),e.popup=o.createRef(),e.segmentIn=o.createRef(),e.segmentOut=o.createRef(),e.previousDate=null,e}return e=T,(r=[{key:"componentDidMount",value:function(){this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability&&this.loadSelfbookCalendarData(new Date,"initial"),document.addEventListener("keydown",this.handleKeydown.bind(this)),(0,f.IX)()}},{key:"componentDidUpdate",value:function(t,e){var r;if(this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability){if(this.props.guests!==t.guests&&(this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(null!==(r=t.startDate)&&void 0!==r?r:new Date,"initial")),t.location&&this.props.location.id!==t.location.id)this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(new Date,"initial");else if(null===t.location){var n;this.props.setCalendarData([],[]),this.loadSelfbookCalendarData(null!==(n=t.startDate)&&void 0!==n?n:new Date,"initial")}}else this.props.location&&t.location&&this.props.location.id!==t.location.id&&this.props.setCalendarData([],[]);this.props.endDate==t.endDate&&this.props.startDate==t.startDate&&this.props.checkIn==t.checkIn||$("select").formSelect(),this.props.displayPopup&&this.datepickerTrapFocus()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeydown)}},{key:"handleKeydown",value:function(t){["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Tab"].includes(t.key)&&this.props.displayPopup&&$(D).addClass(O)}},{key:"handleDatePickerClick",value:function(){$(D).removeClass(O)}},{key:"onSegmentClick",value:function(t){var e=t.target;"INPUT"!==e.tagName&&"UL"!==e.tagName&&"LI"!==e.tagName&&(this.props.updatePopupDisplay(!this.props.displayPopup),x=void 0)}},{key:"onChange",value:function(t){var e,r,n=this,o=(r=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(t,e):void 0}}(e,r)||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.")}()),a=o[0],i=o[1];if(this.props.setDates(a,i),a&&i&&(this.props.updatePopupDisplay(!this.props.displayPopup),this.props.openGuestsRoomsPopup()),(0,f.DU)(new Date(a),new Date(i))&&this.props.setCheckOut((0,f.rP)(this.props.checkIn,a,i,this.props.location?this.props.location.minimum_bookable_hours:4)),(0,f.DU)(new Date(a),new Date(i))&&this.props.checkIn.split(":")[0]>=20){var c=new Date(a);c.setDate(a.getDate()+1),this.props.setDates(a,c)}if((0,f.DU)(new Date(a),new Date)){var s=(0,f.SA)("00:00","23:30"),u="".concat((new Date).getHours(),":").concat((new Date).getMinutes());this.props.checkIn<u&&s.some(function(t){return u<t&&n.onCheckInChange({target:{value:t}}),u<t}.bind(this))}}},{key:"onCheckInChange",value:function(t){if(this.props.setCheckIn(t.target.value),this.props.startDate.getDate()===this.props.endDate.getDate()&&this.props.setCheckOut((0,f.rP)(t.target.value,this.props.startDate,this.props.endDate,this.props.location?this.props.location.minimum_bookable_hours:4)),t.target.value.split(":")[0]>=20&&this.props.startDate.getDate()===this.props.endDate.getDate()){var e=new Date(this.props.startDate);e.setDate(this.props.startDate.getDate()+1),this.props.setDates(this.props.startDate,e)}}},{key:"onCheckOutChange",value:function(t){this.props.setCheckOut(t.target.value)}},{key:"onResetClick",value:function(){this.props.setDates(null,null)}},{key:"handleMonthChange",value:function(t){document.querySelectorAll(".react-datepicker__navigation").forEach((function(t){t.blur()})),this.props.location&&"selfbook"===this.props.location.platform&&"1"===this.props.location.show_prices_availability&&this.loadSelfbookCalendarData(t,this.previousDate&&t.getTime()<this.previousDate.getTime()?"previous":"next"),this.previousDate=t}},{key:"onKeyPressed",value:function(t){var e=t.keyCode,r=t.target;"INPUT"!==r.tagName&&"UL"!==r.tagName&&"LI"!==r.tagName&&(13!==e&&32!==e||(t.preventDefault(),t.stopPropagation(),t.target.classList.contains("yot-location-search__date-picker__close-overlay")&&this.props.setDates(null,null),x=t.target,this.props.updatePopupDisplay(!this.props.displayPopup)))}},{key:"datepickerTrapFocus",value:function(){var t=this,e=document.querySelector(".".concat(j,', .react-datepicker__day--selected[aria-selected="true"]'));e&&e.focus();var r=document.querySelector(".".concat(P,'[aria-selected="true"]'));r&&(r.focus(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"ArrowRight"})));var n=document.querySelector(".react-datepicker");if(n){var o,a,i,c=function(){o=r?n.querySelectorAll(".".concat(C,", .").concat(S,", .").concat(j,", .").concat(P)):n.querySelectorAll(".".concat(C,", .").concat(S,", .").concat(j)),a=o[0],i=o[o.length-1]};c(),document.addEventListener("focusin",(function(e){var r=e.target;if(r.classList.contains("react-datepicker__day")){var n=r.getAttribute("aria-label")||"";n=n.replace(/,?\s*(Check in date|Check out date)/g,"").trim();var o;o=!t.props.startDate||t.props.endDate?"Check in date":"Check out date",r.setAttribute("aria-label","".concat(n).concat(n?", ":"").concat(o))}})),document.addEventListener("keydown",(function(t){c();var e="Tab"===t.key,r=document.activeElement;["ArrowDown","ArrowUp","ArrowRight","ArrowLeft"].includes(t.key)&&document.querySelector(".".concat(j))&&(document.querySelector(".".concat(j)).focus(),t.preventDefault()),e&&(t.shiftKey&&r===a?(i.focus(),t.preventDefault()):t.shiftKey||r!==i||(a.focus(),t.preventDefault()))})),n.addEventListener("keydown",(function(e){var r=e.keyCode,o=13===r;if(27===r)return t.props.updatePopupDisplay(!t.props.displayPopup),void(document.querySelector(".yot-location-search__date-picker.yot-location-search__segment")&&x&&x.focus());o&&(c(),function(t){var e=t.target.classList.contains(S),r=t.target.classList.contains(C),o=n.querySelector(".".concat(S)),a=n.querySelector(".".concat(C));r?setTimeout((function(){n.querySelector(".".concat(C))||o.focus()}),50):e&&setTimeout((function(){n.querySelector(".".concat(S))||a.focus()}
2),50),(e||r)&&setTimeout((function(){return t.target.focus()}),50)}(e))}))}}},{key:"maxDate",value:function(t){if(this.props.startDate&&this.props.location&&"SNT"==this.props.location.platform){var e=new Date(this.props.startDate),r=t?365:2;return e.setDate(e.getDate()+r),e}}},{key:"render",value:function(){var t=this.props,e=t.location,r=t.startDate,n=t.endDate,c=t.checkIn,s=t.checkOut,u=t.stayOvernight;return t.guests,o.createElement("div",{className:"yot-location-search__date-picker yot-location-search__segment".concat(this.props.displayPopup?" is-active":"")},o.createElement("div",{className:"yot-location-search__segment",onClick:this.onSegmentClick.bind(this),onKeyDown:this.onKeyPressed.bind(this),"aria-label":(0,p.Z)("Check in"),tabIndex:"0",role:"button"},o.createElement("div",{ref:this.segmentIn},o.createElement("p",{className:"x-small purple"},(0,p.Z)("Check in")),o.createElement("p",{className:"x-small"},r?"".concat(f.Wz[r.getDay()],", ").concat(r.getDate()," ").concat(f.sR[r.getMonth()]):(0,p.Z)("Add date"))),o.createElement("div",{className:"yot-location-search__date-picker__time-picker ".concat(u?"":"is-active")},(0,f.l5)("yls-check-in","check-in",c,this.onCheckInChange.bind(this),"00:00","23:30",this.props.closePopups.bind(this),r)),r&&o.createElement("button",{className:"yotel-btn--no-style yot-location-search__date-picker__close-overlay",type:"button","aria-label":(0,p.Z)("Clear selected dates."),onClick:this.onResetClick.bind(this)},o.createElement("i",{className:"icon-close"}))),o.createElement("div",{className:"yot-location-search__segment",onKeyDown:this.onKeyPressed.bind(this),"aria-label":(0,p.Z)("Check out"),tabIndex:"0"},o.createElement("div",{className:"yot-location-search__segment__click-target",onClick:this.onSegmentClick.bind(this)}),o.createElement("div",{ref:this.segmentOut},o.createElement("p",{className:"x-small purple"},(0,p.Z)("Check out")),o.createElement("p",{className:"x-small"},n?"".concat(f.Wz[n.getDay()],", ").concat(n.getDate()," ").concat(f.sR[n.getMonth()]):(0,p.Z)("Add date"))),o.createElement("div",{className:"yot-location-search__date-picker__time-picker ".concat(u?"":"is-active")},(0,f.l5)("yls-check-out","check-out",s,this.onCheckOutChange.bind(this),(0,f.rP)(c,r,n,this.props.location?this.props.location.minimum_bookable_hours:4),"23:30",this.props.closePopups.bind(this))),n&&o.createElement("button",{className:"yotel-btn--no-style yot-location-search__date-picker__close-overlay",type:"button","aria-label":(0,p.Z)("Clear selected dates."),onClick:this.onResetClick.bind(this)},o.createElement("i",{className:"icon-close"}))),(this.props.displayPopup||this.props.startDate&&!this.props.endDate)&&o.createElement("div",{className:"yot-location-search__segment__popup",ref:this.popup},o.createElement(a.ZP,{locale:(0,i.e)(E),selected:r,onChange:this.onChange.bind(this),startDate:r,endDate:n,selectsRange:!0,monthsShown:2,renderDayContents:this.renderDayContents,excludeDates:this.props.excludedDates,inline:!0,minDate:this.props.location&&this.props.location.booking_start_date?new Date(this.props.location.booking_start_date):new Date,maxDate:this.maxDate(n),calendarClassName:"yot-date-picker",onMonthChange:this.handleMonthChange.bind(this),tabIndex:"0"}),o.createElement("div",{className:"yot-location-search__segment__popup-footer",tabIndex:"0"},o.createElement("p",{className:"semi-bold","aria-live":"polite"},(0,p.Z)("For overnight stays, our check in time is")+" "+(e&&e.checkin?e.checkin:"6pm")+" "+(0,p.Z)("and check out time is")+" "+(e&&e.checkout?e.checkout:"10am")))))}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),T}(o.Component),T=r(7114),I=r(2432);const R=(0,n.$j)((function(t,e){return{startDate:t.search.startDate,endDate:t.search.endDate,guests:t.search.guests,stayOvernight:t.search.stayOvernight,checkIn:t.search.checkIn,checkOut:t.search.checkOut,location:t.search.location,displayPopup:t.ux.displayDatepickerPopup,calendarData:t.search.calendarData,excludedDates:t.search.excludedDates}}),(function(t){return{setOvernightStay:function(e){t((0,T.sN)(e))},setDates:function(e,r){t((0,T.rm)(e,r))},setCheckIn:function(e){t((0,T._H)(e))},setCheckOut:function(e){t((0,T._K)(e))},updatePopupDisplay:function(e){t((0,I.v7)({displayDatepickerPopup:e}))},openGuestsRoomsPopup:function(){t((0,I.v7)({displayGuestRoomsPopup:!0}))},closePopups:function(){t((0,I.v7)())},setCalendarData:function(e,r){t((0,T.k2)(e,r))}}}))(N)},5445:(t,e,r)=>{r.d(e,{Z:()=>m});var n=r(6113),o=r(7114),a=r(2432),i=r(7294),c=r(7505),s=r(5559);function u(t){return u="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},u(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}
2function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t){var e=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===u(e)?e:String(e)}var y=function(t,e){if(e>0){var r="".concat(e," ").concat(t);return e>1&&(r+="s"),r}return""},v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(v,t);var e,r,n,o,a=(n=v,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(n);if(o){var r=h(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}(this,t)});function v(t){var e,r,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,v),r=f(e=a.call(this,t)),o=function(t){"Escape"===t.key&&e.props.displayPopup&&e.props.updatePopupDisplay(!1)},(n=d(n="handleGlobalKeyDown"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,e.popup=i.createRef(),e}return e=v,(r=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleGlobalKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleGlobalKeyDown)}},{key:"onSegmentClick",value:function(t){this.popup.current&&this.popup.current.contains(t.target)||this.props.updatePopupDisplay(!this.props.displayPopup)}},{key:"updateCorpoCode",value:function(t){this.props.setCode(t.target.value,"corpo"),this.props.setCode("","group"),this.props.setCode("","promo")}},{key:"updateGroupCode",value:function(t){this.props.setCode(t.target.value,"group"),this.props.setCode("","corpo"),this.props.setCode("","promo")}},{key:"updatePromoCode",value:function(t){this.props.setCode(t.target.value,"promo"),this.props.setCode("","group"),this.props.setCode("","corpo")}},{key:"onKeyPressed",value:function(t){this.popup.current&&this.popup.current.contains(t.target)||(" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.props.updatePopupDisplay(!this.props.displayPopup)),"Escape"===t.key&&this.props.displayPopup&&(t.preventDefault(),t.stopPropagation(),this.props.updatePopupDisplay(!1)))}},{key:"onKeyPressedResetGuestsRooms",value:function(t){32==t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.props.setGuests(0),this.props.setRooms(0))}},{key:"resetGuestsRooms",value:function(){this.props.setGuests(0),this.props.setRooms(0)}},{key:"render",value:function(){var t=this.props,e=t.location,r=t.guests,n=t.rooms,o=t.corpoCode,a=t.groupCode,u=t.promoCode;return i.createElement("div",{className:"yot-location-search__gr-selector yot-location-search__segment ".concat(this.props.displayPopup?"is-active":""),"aria-expanded":this.props.displayPopup,"aria-controls":"guests_rooms_popup",onKeyDown:this.onKeyPressed.bind(this),onClick:this.onSegmentClick.bind(this),tabIndex:"0",role:"button","aria-label":(0,c.Z)("Guest, rooms")},i.createElement("div",{className:"yot-location-search__segment__click-target"}),i.createElement("div",null,i.createElement("p",{className:"x-small purple semi-bold"},(0,c.Z)("Guests, rooms")),0==r&&0==n&&i.createElement("p",{className:"x-small"},(0,c.Z)("Add")),i.createElement("p",{className:"x-small"},y((0,c.Z)("guest"),r),r>0&&n>0?", ":" ",y((0,c.Z)("room"),n)),(r>1||n>1)&&i.createElement("button",{className:"yotel-btn--no-style yot-location-search__date-picker__close-overlay",type:"button","aria-label":(0,c.Z)("Clear guests number and rooms number data."),onClick:this.resetGuestsRooms.bind(this),onKeyDown:this.onKeyPressedResetGuestsRooms.bind(this)},i.createElement("i",{className:"icon-close"}))),this.props.displayPopup&&i.createElement("div",{className:"yot-location-search__segment__popup",id:"guests_rooms_popup",ref:this.popup},(0,s.hK)((0,c.Z)("guests"),r,this.props.setGuests.bind(this)),i.createElement("hr",null),(0,s.hK)((0,c.Z)("rooms"),n,this.props.setRooms.bind(this)),i.createElement("hr",null),e&&("Synxis"===e.platform||"selfbook"===e.platform||"hilton"===e.platform)&&i.createElement("div",null,i.createElement("p",{className:"yot-location-search__gr-selector__rate-title"},(0,c.Z)("Apply code")),i.createElement("div",{className:"input-field"},i.createElement("input",{placeholder:(0,c.Z)("Enter code"),id:"yls-promo-rate",type:"text",value:u||"",onChange:this.updatePromoCode.bind(this)}),i.createElement("label",{className:"active",htmlFor:"yls-promo-rate"},(0,c.Z)("Promo rate"))),i.createElement("div",{className:"input-field"},i.createElement("input",{placeholder:(0,c.Z)("Enter code"),id:"yls-corpo-rate",type:"text",value:o||"",onChange:this.updateCorpoCode.bind(this)}),i.createElement("label",{className:"active",htmlFor:"yls-corpo-rate"},(0,c.Z)("Corporate rate"))),i.createElement("div",{className:"input-field"},i.createElement("input",{placeholder:(0,c.Z)("Enter code"),id:"yls-group-rate",type:"text",value:a||"",onChange:this.updateGroupCode.bind(this)}),i.createElement("label",{className:"active",htmlFor:"yls-group-rate"},(0,c.Z)("Group rate"))))))}}])&&l(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Component);const m=(0,n.$j)((function(t,e){return{location:t.search.location,guests:t.search.guests,rooms:t.search.rooms,c
2orpoCode:t.search.corpoCode,promoCode:t.search.promoCode,groupCode:t.search.groupCode,displayPopup:t.ux.displayGuestRoomsPopup,calendarData:t.search.calendarData,excludedDates:t.search.excludedDates}}),(function(t){return{setGuests:function(e){var r;r=e<1?1:e>9?9:e,t((0,o.ab)(r)),t((0,o.k2)([],[]))},setRooms:function(e){var r;r=e<1?1:e>10?10:e,t((0,o.CF)(r)),t((0,o.k2)([],[]))},setCode:function(e,r){t((0,o.Gy)(e,r))},updatePopupDisplay:function(e){t((0,a.v7)({displayGuestRoomsPopup:e}))}}}))(v)},5559:(t,e,r)=>{r.d(e,{bZ:()=>st,DU:()=>rt,Wz:()=>it,SA:()=>tt,hK:()=>ct,rP:()=>nt,l5:()=>et,gA:()=>pt,sR:()=>at,sz:()=>ut,IX:()=>ot});var n=r(7294),o=r(7505),a=r(4128),i=r(2620),c=r(462),s=r(4369),u=function(t,e,r){var n=l(t),o=e.split(":");return r?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),0)).toISOString().split("T",1)[0]:new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),o[0],o[1])).toISOString().split(".")[0]},l=function(t){var e=t instanceof Date?t:(0,c.D)(t);if(!(0,s.J)(e))throw new Error('formatDateTime: invalid date "'.concat(t,'" - expected a Date object or an ISO 8601 string (e.g. "yyyy-MM-dd").'));return e},p=function(t){var e;return(null===(e=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))||void 0===e?void 0:e.pop())||null};function f(t){return f="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},f(t)}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===f(o)?o:String(o)),n)}var o}var d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r;return e=t,(r=[{key:"build",value:function(t,e){throw new Error("build() not implemented")}}])&&h(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new URLSearchParams;Object.entries(e).forEach((function(t){var e,n,o=(n=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(e,n)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(e,n)||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.")}()),a=o[0],i=o[1];null!=i&&""!==i&&r.append(a,i)}));var n=r.toString();if(!n)return t;var o=t.includes("?")?"&":"?";return"".concat(t).concat(o).concat(n)};function m(t){return m="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},m(t)}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===m(o)?o:String(o)),n)}var o}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}
2function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(i,t);var e,r,n,o,a=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=w(n);if(o){var r=w(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return e=i,r=[{key:"build",value:function(t){var e,r,n,o,a,i,c,s,l,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f={yotelReferrer:!0,fromId:"YOTELDIRECT",ctyhocn:t.hilton_id,numRooms:p.rooms||1,arrivalDate:p.startDate?u(p.startDate,p.checkIn,p.stayOvernight):void 0,departureDate:p.endDate?u(p.endDate,p.checkOut,p.stayOvernight):void 0,displayCurrency:null!==(e=null===(r=t.currency)||void 0===r?void 0:r.code)&&void 0!==e?e:void 0,locationDrupalId:t.drupalId,promotionCode:null!==(n=p.promoCode)&&void 0!==n?n:void 0,groupCode:null!==(o=p.groupCode)&&void 0!==o?o:void 0,corporateCode:null!==(a=p.corpoCode)&&void 0!==a?a:void 0,im_ref:null!==(i=p.impactUuid)&&void 0!==i?i:void 0,gclid:null!==(c=p.googleClickId)&&void 0!==c?c:void 0,fbclid:null!==(s=p.facebookClickId)&&void 0!==s?s:void 0,msclkid:null!==(l=p.bingClickId)&&void 0!==l?l:void 0};if(p.crossDomainMeta&&(f[p.crossDomainMeta.q]=p.crossDomainMeta.d),p.guests&&p.rooms)for(var h=Number(p.rooms),d=Number(p.guests)/h,y=Number(p.guests),m=1;m<=h;m++)if(m!==h){var b=Math.round(d);f["room".concat(m,"NumAdults")]=b.toString(),y-=b}else f["room".concat(m,"NumAdults")]=y.toString();return v("".concat(window.location.origin,"/").concat(window.drupalSettings.path.pathPrefix,"booking/interstitial"),f)}}],r&&b(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(d);function k(t){return k="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},k(t)}function D(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==k(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===k(o)?o:String(o)),n)}var o}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(i,t);var e,r,n,o,a=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=E(n);if(o){var r=E(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return e=i,r=[{key:"build",value:function(t){var e,r,n,o,a,i,c,s,l,p,f,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,d={SRC:"YOTEL",hotel:t.id,adult:null!==(e=h.guests)&&void 0!==e?e:2,child:null!==(r=h.children)&&void 0!==r?r:0,locale:null!==(n=h.locale)&&void 0!==n?n:"en",rooms:null!==(o=h.rooms)&&void 0!==o?o:1,chain:t.chain_id,level:"hotel",arrive:h.startDate?u(h.startDate,h.checkIn,h.stayOvernight):void 0,depart:h.endDate?u(h.endDate,h.checkOut,h.stayOvernight):void 0,promo:h.corpoCode||h.promoCode||void 0,group:null!==(a=h.groupCode)&&void 0!==a?a:void 0,im_ref:null!==(i=h.impactUuid)&&void 0!==i?i:void 0,client_id:null!==(c=h.gaClientId)&&void 0!==c?c:void 0,session_id:null!==(s=h.gaSessionId)&&void 0!==s?s:void 0,gclid:null!==(l=h.googleClickId)&&void 0!==l?l:void 0,fbclid:null!==(p=h.facebookClickId)&&void 0!==p?p:void 0,msclkid:null!==(f=h.bingClickId)&&void 0!==f?f:void 0};return h.crossDomainMeta&&(d[h.crossDomainMeta.q]=h.crossDomainMeta.d),v("https://be.synxis.com/",d)}}],r&&D(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(d);function C(t){return C="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},C(t)}function j(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==C(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===C(o)?o:String(o)),n)}var o}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(i,t);var e,r,n,o,a=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=x(n);if(o){var r=x(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return e=i,r=[{key:"build",value:function(t){var e,r,n,o,a,i,c,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p={yotelReferrer:!0,mewsAdultCount:null!==(e=l.guests)&&void 0!==e?e:"2",mewsStart:l.startDate?u(l.startDate,l.checkIn,l.stayOvernight):void 0,mewsEnd:l.endDate?u(l.endDate,l.checkOut,l.stayOvernight):void 0,mewsVoucherCode:null!==(r=l.promoCode)&&void 0!==r?r:void 0,im_ref:null!==(n=l.impactUuid)&&void 0!==n?n:void 0,client_id:null!==(o=l.gaClientId)&&void 0!==o?o:void 0,session_id:null!==(a=l.gaSessionId)&&void 0!==a?a:void 0,gclid:null!==(i=l.googleClickId)&&void 0!==i?i:void 0,fbclid:null!==(c=l.facebookClickId)&&void 0!==c?c:void 0,msclkid:null!==(s=l.bingClickId)&&void 0!==s?s:void 0};return l.crossDomainMeta&&(p[l.crossDomainMeta.q]=l.crossDomainMeta.d),v("https://".concat(t.mews_domain,"/distributor/").concat(t.mews_
2id),p)}}],r&&j(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(d);function T(t){return T="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},T(t)}function I(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==T(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===T(o)?o:String(o)),n)}var o}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}var A=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}(i,t);var e,r,n,o,a=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=L(n);if(o){var r=L(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),a.apply(this,arguments)}return e=i,r=[{key:"build",value:function(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.startDate,a=n.endDate;!o||a||n.stayOvernight||(a=o);var i={"nb-guests":null!==(e=n.guests)&&void 0!==e?e:"2","nb-rooms":null!==(r=n.rooms)&&void 0!==r?r:"1","start-date":o?u(o,n.checkIn,n.stayOvernight):void 0,"end-date":a?u(a,n.checkOut,n.stayOvernight):void 0};return v("".concat(window.location.origin,"/").concat(window.drupalSettings.path.pathPrefix,"booking/").concat(t.drupalId),i)}}],r&&I(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),i}(d);function Z(t){return Z="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},Z(t)}function M(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==Z(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===Z(o)?o:String(o)),n)}var o}var G={hilton:new _,Synxis:new S,mews:new N},U=new A,F=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r;return e=t,r=[{key:"get",value:function(t){return G[t]||U}}],null&&M(e.prototype,null),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();r(2582),r(2592),r(1860),Object.freeze(["startDate","endDate","checkIn","checkOut","guests","rooms","promoCode","corpoCode","groupCode","stayOvernight"]),Object.freeze(["gaClientId","gaSessionId","impactUuid","googleClickId","facebookClickId","bingClickId","crossDomainMeta"]);var B=function(t){return btoa(t).replace(/=/g,".")},K=function(){var t=arguments.length>
20&&void 0!==arguments[0]?arguments[0]:[],e=Math.floor(Date.now()/6e4),r=[window.navigator.userAgent,(new Date).getTimezoneOffset(),window.navigator.userLanguage||window.navigator.language,e,t.join("*")].join("*");return Y(r)},Y=function(t){for(var e=H(),r=-1,n=0;n<t.length;n++)r=r>>>8^e[255&(r^t.charCodeAt(n))];return(r=(-1^r)>>>0).toString(36)},H=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return t};const q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"get";if("undefined"==typeof window||void 0===window.document)throw new Error("googleTagLinker must be run in a browser context");var e=function(){var t,e=[],r=[/^_ga$/,/^_ga_[A-Z0-9]+$/,/^_gcl_(au|aw)$/,/^FPLC$/],n=/^G[A-Z][12]\.[0-9]+\.(.+)$/,o=/^\d+\.\d+\.(.+)$/;return document.cookie?(document.cookie.split("; ").forEach((function(a){var i=a.indexOf("=");if(-1!==i){var c=a.slice(0,i),s=a.slice(i+1);if(r.some((function(t){return t.test(c)})))if("FPLC"!==c)if("_gcl_au"!==c)if("_gcl_aw"!==c){if(/^_ga/.test(c)){var u=s.match(n);if(!u)return;e.push([c,B(u[1])].join("*"))}}else e.push(["_gcl_aw",B(s)].join("*"));else{var l=s.match(o);l&&e.push(["_gcl_au",B(l[1])].join("*"))}else t=["_fplc",B(s)].join("*")}})),t&&e.push(t),e):e}();if("get"===t)return["1",K(e),e.join("*")].join("*");throw new Error("Unsupported action: "+t)};function W(t){return W="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},W(t)}function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==W(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===W(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function X(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||V(t)||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.")}()}function V(t,e){if(t){if("string"==typeof t)return Q(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(t,e):void 0}}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var tt=function(t,e){return function(t,e){return Array(e-t+1).fill().map((function(e,r){return t+r}))}.apply(void 0,X([t,e].map((function(t){return function(t,e){return 2*t+e/30}.apply(void 0,X(t.split(":").map(parseFloat)))})))).map((function(t){return[("0"+Math.floor(t/2)).slice(-2),t%2?"30":"00"].join(":")}))},et=function(t,e,r,o,a,i,c,s){var u=tt(a,i),l=new Date,p=!1;return s&&(p=rt(l,s)),n.createElement("div",{className:"input-field x-small","data-form-select":!0,onClick:c},n.createElement("select",{name:t,id:t,onChange:o,value:r},u.map((function(t,e){var r=new Date,o=t.split(":");return r.setHours(o[0]),r.setMinutes(o[1]),n.createElement("option",{key:e,value:t,disabled:!!p&&l>r},t)}))),n.createElement("label",{htmlFor:t},e))},rt=function(t,e){return!(!t||!e)&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},nt=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o="00:00";if(e&&r&&t&&rt(e,r)){var c=t.split(":");e.setHours(c[0],c[1]),r=(0,a.T)(e,n),o=(0,i.WU)(r,"HH:mm")}return o},ot=function(){$("[data-form-select]").each((function(t,e){$(e).find("label"),$(e).find("ul li"),$(e).find(".select-wrapper");var r=$(e).find("select"),n=$("<label>").attr({for:r.attr("id"),class:"select-wrapper__label-mobile"}),o=$(e).parents("form").find('[type="submit"]');r.insertBefore(r.siblings("input.select-dropdown")),n.insertBefore(r),o.click((function(t){r.addClass("submitted")}))}))},at=[(0,o.Z)("Jan"),(0,o.Z)("Feb"),(0,o.Z)("Mar"),(0,o.Z)("Apr"),(0,o.Z)("May"),(0,o.Z)("Jun"),(0,o.Z)("Jul"),(0,o.Z)("Aug"),(0,o.Z)("Sep"),(0,o.Z)("Oct"),(0,o.Z)("Nov"),(0,o.Z)("Dec")],it=[(0,o.Z)("Sun"),(0,o.Z)("Mon"),(0,o.Z)("Tue"),
2(0,o.Z)("Wed"),(0,o.Z)("Thurs"),(0,o.Z)("Fri"),(0,o.Z)("Sat")],ct=function(t,e,r){return n.createElement("div",{className:"yot-location-search__quantity-selector"},n.createElement("p",{className:"yot-location-search__quantity-selector__label"},t.charAt(0).toUpperCase()+t.slice(1)),n.createElement("button",{className:"yotel-btn yotel-btn--round",onClick:function(t){t.preventDefault(),r(Number(e)-1)},"aria-controls":"counter-".concat(t),"aria-label":"Decrease ".concat(t," number")},n.createElement("span",null,"-")),n.createElement("p",{className:"yot-location-search__quantity-selector__value",id:"counter-".concat(t),"aria-live":"polite"},e),n.createElement("button",{className:"yotel-btn yotel-btn--round",onClick:function(t){t.preventDefault(),r(Number(e)+1)},"aria-controls":"counter-".concat(t),"aria-label":"Increase ".concat(t," number")},n.createElement("span",null,"+")))},st=function(t){var e=t.date,r=t.monthDate,a=t.decreaseMonth,i=t.increaseMonth,c=t.prevMonthButtonDisabled,s=t.nextMonthButtonDisabled,u=t.customHeaderCount,l=[(0,o.Z)("January"),(0,o.Z)("February"),(0,o.Z)("March"),(0,o.Z)("April"),(0,o.Z)("May"),(0,o.Z)("June"),(0,o.Z)("July"),(0,o.Z)("August"),(0,o.Z)("September"),(0,o.Z)("October"),(0,o.Z)("November"),(0,o.Z)("December")];return n.createElement("div",{className:"react-datepicker__header__inner"},0===u&&n.createElement("button",{className:"yotel-btn--no-style react-datepicker__header__prev",onClick:a,disabled:c,type:"button"},n.createElement("i",{className:"icon-chevron"})),n.createElement("h4",null,l[(r||e).getMonth()]," ",(r||e).getFullYear()),0===u&&n.createElement("button",{className:"yotel-btn--no-style react-datepicker__header__next",onClick:i,disabled:s,type:"button"},n.createElement("i",{className:"icon-chevron"})))},ut=function(t){var e,r,n,o={},a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=V(t))){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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,i=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}(t);try{for(a.s();!(e=a.n()).done;){var i=(r=e.value,n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,u=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(r,n)||V(r,n)||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.")}()),c=i[0],s=i[1];o[c]=s}}catch(t){a.e(t)}finally{a.f()}return o},lt=function(t){return(0,i.WU)(t,"yyyy-MM-dd")},pt=function(t){var e,r,n,o=t.location,a=t.startDate,i=t.endDate,c=t.checkIn,s=t.checkOut,u=t.guests,l=t.rooms,f=t.promoCode,h=t.corpoCode,d=t.groupCode,y=t.stayOvernight;switch(ft(o,a,i,c,s,u,l,f,h,d,y),o.platform){case"selfbook":for(var v={hotelId:o.id,startDate:lt(a),endDate:lt(i),promoCode:f||h||null,groupCode:d||null,locale:window.drupalSettings.language_id},m=u,b=Math.floor(u/l),g=1;g<=l;g++){var w=b;g<l?(w=b,m-=b):(w=m,m=0),v[1===g?"guests":"guestsRoom"+g]=[{type:"adult",count:w}]}bookNow(v);break;case"mews":case"hilton":case"Synxis":case"SNT":var _=(e=o.platform,r=o,n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({startDate:a,endDate:i,checkIn:c,checkOut:s,guests:u,rooms:l,promoCode:f,corpoCode:h,groupCode:d,stayOvernight:y},function(){var t=null,e=p("_ga");null!==e&&(t=(e=decodeURI(e)).substring(6));var r=null,n=p("_ga_Z2SX1JXWNT");null!==n&&(r=(n=decodeURI(n)).split("$")[0].substring(7));var o=null,a=p("IR_43835");if(null!==a){var i=(a=decodeURI(a)).split("|");o=""!==i[3]?i[3]:null}
2var c=null,s=p("_gcl_aw");if(null!==s){var u=(s=decodeURI(s)).split(".");c=""!==u[2]?u[2]:null}var l=null,f=p("_fbc");if(null!==f){var h=(f=decodeURI(f)).split(".");l=""!==h[3]?h[3]:null}var d=null,y=p("_uetmsclkid");null!==y&&(d=""!==(y=(y=decodeURI(y)).slice(4))?y:null);var v=null;return window.VWO&&window.VWO.getCrossDomainInfo&&"function"==typeof window.VWO.getCrossDomainInfo&&(v=window.VWO.getCrossDomainInfo()),{gaClientId:t,gaSessionId:r,impactUuid:o,googleClickId:c,facebookClickId:l,bingClickId:d,crossDomainMeta:v}}()),F.get(e).build(r,n)),k=q("get");if(_=_+(-1===_.indexOf("?")?"?":"&")+"_gl="+k){var D=window[window.GoogleAnalyticsObject];if(D&&("Synxis"===o.platform||"hilton"===o.platform||"mews"===o.platform)){var O=D.getAll()[0];_=new window.gaplugins.Linker(O).decorate(_)}switch(o.platform){case"Synxis":case"hilton":case"mews":window.open(_,"_blank");break;default:window.location=_}}}},ft=function(t,e,r,n,o,a,i,c,s,l,p){if(t){var f={event:"search_hotel",search:{location:t.name,hotel_id:t.drupalId,hotel_booking_id:t.id,check_in_date:e?u(e,n,p):"",check_out_date:r?u(r,o,p):"",num_guests:a,num_rooms:i}};window.dataLayer=window.dataLayer||[],window.dataLayer.push(f)}}},30:(t,e,r)=>{r.d(e,{e:()=>f});var n=r(9500),o=r(5248),a=r(152),i=r(2685),c=r(3489),s=r(7167),u=r(8510),l=r(7267),p=r(7989),f=function(t){switch(t){case"de":return n.de;case"es":return a.es;case"fr":return i.fr;case"id":return c.id;case"pt-pt":return s.pt;case"tr":return u.tr;case"ru":return l.ru;case"zh-hans":return p.U;default:return o.e}}},3736:(t,e,r)=>{function n(t,e){var r,n,o,a,i,c,s,u=t,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,p=e||function(t,e,r,n,o){};u.addEventListener("touchstart",(function(t){var e=t.changedTouches[0];r="none",n="none",o=e.pageX,a=e.pageY,s=(new Date).getTime(),p(t,"none","start",n,0),t.preventDefault()}),{capture:!1,passive:!0}),u.addEventListener("touchmove",(function(t){l.classList.add("is-moving");var e=t.changedTouches[0];i=e.pageX-o,c=e.pageY-a,Math.abs(i)>Math.abs(c)?p(t,r=i<0?"left":"right","move",n,i):p(t,r=c<0?"up":"down","move",n,c),t.preventDefault()}),{capture:!1,passive:!0}),u.addEventListener("touchend",(function(t){l.classList.remove("is-moving"),t.changedTouches[0],(new Date).getTime()-s<=500&&(Math.abs(i)>=150&&Math.abs(c)<=100||Math.abs(c)>=150&&Math.abs(i)<=100)&&(n=r),p(t,r,"end",n,"left"==r||"right"==r?i:c),t.preventDefault()}),!1)}r.d(e,{Z:()=>n})},7505:(t,e,r)=>{function n(t){return n="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},n(t)}r.d(e,{Z:()=>a});var o={};try{"object"!==n(o=window.drupalSettings.customStrings)&&(o={})}catch(t){}const a=function(t,e){var r=function(t){return o[t]||t}(t);return"object"===n(e)?function(t,e){var r=t;for(var n in e)0===n.indexOf("@")&&(r=r.replace(new RegExp(n,"g"),e[n]));return r}(r,e):r}},4735:(t,e,r)=>{r.d(e,{Fv:()=>a,JB:()=>i,Nw:()=>n,SZ:()=>o});var n={setStep:"SET_STEP",historyGoBack:"HISTORY_GO_BACK",setHistory:"SET_HISTORY"},o=function(t){return{type:n.setStep,step:t}},a=function(){return{type:n.historyGoBack}},i=function(t,e){return{type:n.setHistory,history:t,step:e}}},7114:(t,e,r)=>{r.d(e,{CF:()=>l,Gy:()=>p,Nw:()=>n,_H:()=>i,_K:()=>c,ab:()=>u,k2:()=>h,l6:()=>o,qP:()=>f,rm:()=>a,sN:()=>s});var n={setLocation:"SET_LOCATION",setDates:"SET_DATES",setCheckIn:"SET_CHECK_IN",setCheckOut:"SET_CHECK_OUT",setOvernightStay:"SET_OVERNIGHT_STAY",setGuests:"SET_GUESTS",setRooms:"SET_ROOMS",setCode:"SET_CODE",setSearch:"SET_SEARCH",setCalendarData:"SET_CALENDAR_DATA"},o=function(t){return{type:n.setLocation,location:t}},a=function(t,e){return{type:n.setDates,startDate:t,endDate:e}},i=function(t){return{type:n.setCheckIn,time:t}},c=function(t){return{type:n.setCheckOut,time:t}},s=function(t){return{type:n.setOvernightStay,stay:t}},u=function(t){return{type:n.setGuests,nbGuests:t}},l=function(t){return{type:n.setRooms,nbRooms:t}},p=function(t,e){return{type:n.setCode,code:t,codeType:e}},f=function(t){return{type:n.setSearch,search:t}},h=function(t,e){return{type:n.setCalendarData,calendarData:t,excludedDates:e}}},2432:(t,e,r)=>{r.d(e,{Jz:()=>o,Nw:()=>n,rt:()=>a,v7:()=>i});var n={set:"SET_PROP",reset:"RESET_UX",updateDisplay:"UPDATE_DISPLAY"},o=function(t){return{type:n.set,prop:t}},a=function(){return{type:n.reset}},i=function(t){return{type:n.updateDisplay,display:t}}},5627:(t,e,r)=>{r.d(e,{Z:()=>E}
2);var n=r(4890),o=r(2432);function a(t){return a="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},a(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={isOverlayDisplayed:!1,displayDatepickerPopup:!1,displayGuestRoomsPopup:!1,displayLocationSearchPopup:!1};var l=r(4735);function p(t){return p="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},p(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===p(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={history:["location-selector"],step:"location-selector"};var m=r(7114);function b(t){return b="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},b(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===b(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k={location:null,startDate:null,endDate:null,checkIn:"18:00",checkOut:"09:00",stayOvernight:!0,guests:1,rooms:1,corpoCode:null,groupCode:null,promoCode:null,calendarData:[],excludedDates:[]};const D=(0,n.UY)({ux:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case o.Nw.set:return c(c({},t),e.prop);case o.Nw.reset:return u;case o.Nw.updateDisplay:return c(c({},t),{},{displayDatepickerPopup:!1,displayGuestRoomsPopup:!1,displayLocationSearchPopup:!1},e.display);default:return t}},history:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case l.Nw.setStep:return d(d({},e),{},{step:r.step,history:e.history.concat(r.step)});case l.Nw.historyGoBack:var n=function(t){if(Array.isArray(t))return f(t)}(t=e.history)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(t)||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.")}();return n.splice(-1,1),d(d({},e),{},{history:n,step:n[n.length-1]});case l.Nw.setHistory:return d(d({},e),{},{history:r.history,step:r.step});default:return e}},search:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case m.Nw.setLocation:return e.location&&"SNT"==e.location.platform?w(w({},t),{},{location:e.location,stayOvernight:!1}):w(w({},t),{},{location:e.location,stayOvernight:!0});case m.Nw.setDates:return w(w({},t),{}
2,{startDate:e.startDate,endDate:e.endDate});case m.Nw.setCheckIn:return w(w({},t),{},{checkIn:e.time});case m.Nw.setCheckOut:return w(w({},t),{},{checkOut:e.time});case m.Nw.setOvernightStay:return w(w({},t),{},{stayOvernight:e.stay});case m.Nw.setGuests:return w(w({},t),{},{guests:e.nbGuests});case m.Nw.setRooms:return w(w({},t),{},{rooms:e.nbRooms});case m.Nw.setCode:if("corpo"==e.codeType)return w(w({},t),{},{corpoCode:e.code});if("group"==e.codeType)return w(w({},t),{},{groupCode:e.code});if("promo"==e.codeType)return w(w({},t),{},{promoCode:e.code});case m.Nw.setSearch:return w(w({},t),e.search);case m.Nw.setCalendarData:return w(w({},t),{},{calendarData:e.calendarData,excludedDates:e.excludedDates});default:return t}}});var O;const E=(O||(O=(0,n.MT)(D)),O)}}]);
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.