(()=>{var t={4849:t=>{t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{var n=r(4849);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},3564:(t,e,r)=>{var n=r(4928);function o(t,e,r,o,i,a,c){try{var u=t[a](c),s=u.value}catch(t){return void r(t)}u.done?e(s):n.resolve(s).then(o,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new n((function(n,i){var a=t.apply(e,r);function c(t){o(a,n,i,c,u,"next",t)}function u(t){o(a,n,i,c,u,"throw",t)}c(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},7837:t=>{t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},8424:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},1026:(t,e,r)=>{var n=r(6834);t.exports=function(t){if(void 0!==n&&null!=t[n.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},8002:t=>{t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},2918:(t,e,r)=>{var n=r(9168),o=r(1026),i=r(1288),a=r(8002);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},2924:(t,e,r)=>{var n=r(6834);function o(e){return t.exports=o="function"==typeof n&&"symbol"==typeof n.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof n&&t.constructor===n&&t!==n.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},1288:(t,e,r)=>{var n=r(4849);t.exports=function(t,e){if(t){if("string"==typeof t)return n(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)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},4264:(t,e,r)=>{t.exports=r(7588)},6615:(t,e,r)=>{"use strict";var n=r(4652),o=r(1574),i=r(2680),a=r(4694),c=r(1760);(t.exports=function(t,e){var r,o,u,s,f;return arguments.length<2||"string"!=typeof t?(s=e,e=t,t=null):s=arguments[2],n(t)?(r=c.call(t,"c"),o=c.call(t,"e"),u=c.call(t,"w")):(r=u=!0,o=!1),f={value:e,configurable:r,enumerable:o,writable:u},s?i(a(s),f):f}).gs=function(t,e,r){var u,s,f,l;return"string"!=typeof t?(f=r,r=e,e=t,t=null):f=arguments[3],n(e)?o(e)?n(r)?o(r)||(f=r,r=void 0):r=void 0:(f=e,e=r=void 0):e=void 0,n(t)?(u=c.call(t,"c"),s=c.call(t,"e")):(u=!0,s=!1),l={get:e,set:r,configurable:u,enumerable:s},f?i(a(f),l):l}},7076:(t,e,r)=>{"use strict";var n,o,i,a=r(8424)(r(2924));i=function(){var t=6e4,e=36e5,r="millisecond",n="second",o="minute",i="hour",c="day",u="week",s="month",f="quarter",l="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},w={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),o=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(o,2,"0")},m:function t(e,r){if(e.date(){"use strict";t.exports=function(){}},2680:(t,e,r)=>{"use strict";t.exports=r(3365)()?Object.assign:r(9716)},3365:t=>{"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},9716:(t,e,r)=>{"use strict";var n=r(7598),o=r(2066),i=Math.max;t.exports=function(t,e){var r,a,c,u=i(arguments.length,2);for(t=Object(o(t)),c=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},a=1;a{"use strict";var n=r(6729)();t.exports=function(t){return t!==n&&null!==t}},7598:(t,e,r)=>{"use strict";t.exports=r(7161)()?Object.keys:r(5757)},7161:t=>{"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},5757:(t,e,r)=>{"use strict";var n=r(9075),o=Object.keys;t.exports=function(t){return o(n(t)?Object(t):t)}},4694:(t,e,r)=>{"use strict";var n=r(9075),o=Array.prototype.forEach,i=Object.create,a=function(t,e){var r;for(r in t)e[r]=t[r]};t.exports=function(t){var e=i(null);return o.call(arguments,(function(t){n(t)&&a(Object(t),e)})),e}},2066:(t,e,r)=>{"use strict";var n=r(9075);t.exports=function(t){if(!n(t))throw new TypeError("Cannot use null or undefined");return t}},1760:(t,e,r)=>{"use strict";t.exports=r(8949)()?String.prototype.contains:r(4419)},8949:t=>{"use strict";var e="razdwatrzy";t.exports=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}},4419:t=>{"use strict";var e=String.prototype.indexOf;t.exports=function(t){return e.call(this,t,arguments[1])>-1}},6834:(t,e,r)=>{"use strict";t.exports=r(9545)()?r(5835).Symbol:r(2278)},9545:(t,e,r)=>{"use strict";var n=r(8424)(r(2924)),o=r(5835),i={object:!0,symbol:!0};t.exports=function(){var t,e=o.Symbol;if("function"!=typeof e)return!1;t=e("test symbol");try{String(t)}catch(t){return!1}return!!i[(0,n.default)(e.iterator)]&&!!i[(0,n.default)(e.toPrimitive)]&&!!i[(0,n.default)(e.toStringTag)]}},1495:(t,e,r)=>{"use strict";var n=r(8424)(r(2924));t.exports=function(t){return!!t&&("symbol"===(0,n.default)(t)||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}},9313:(t,e,r)=>{"use strict";var n=r(6615),o=Object.create,i=Object.defineProperty,a=Object.prototype,c=o(null);t.exports=function(t){for(var e,r,o=0;c[t+(o||"")];)++o;return c[t+=o||""]=!0,i(a,e="@@"+t,n.gs(null,(function(t){r||(r=!0,i(this,e,n(t)),r=!1)}))),e}},9675:(t,e,r)=>{"use strict";var n=r(6615),o=r(5835).Symbol;t.exports=function(t){return Object.defineProperties(t,{hasInstance:n("",o&&o.hasInstance||t("hasInstance")),isConcatSpreadable:n("",o&&o.isConcatSpreadable||t("isConcatSpreadable")),iterator:n("",o&&o.iterator||t("iterator")),match:n("",o&&o.match||t("match")),replace:n("",o&&o.replace||t("replace")),search:n("",o&&o.search||t("search")),species:n("",o&&o.species||t("species")),split:n("",o&&o.split||t("split")),toPrimitive:n("",o&&o.toPrimitive||t("toPrimitive")),toStringTag:n("",o&&o.toStringTag||t("toStringTag")),unscopables:n("",o&&o.unscopables||t("unscopables"))})}},2223:(t,e,r)=>{"use strict";var n=r(6615),o=r(223),i=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return i[e]?i[e]:i[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in o(t),i)if(i[e]===t)return e}))})}},2278:(t,e,r)=>{"use strict";var n,o,i,a=r(8424)(r(2924)),c=r(6615),u=r(223),s=r(5835).Symbol,f=r(9313),l=r(9675),p=r(2223),d=Object.create,h=Object.defineProperties,y=Object.defineProperty;if("function"==typeof s)try{String(s()),i=!0}catch(t){}else s=null;o=function(t){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return n(t)},t.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return i?s(e):(r=d(o.prototype),e=void 0===e?"":String(e),h(r,{__description__:c("",e),__name__:c("",f(e))}))},l(n),p(n),h(o.prototype,{constructor:c(n),toString:c("",(function(){return this.__name__}))}),h(n.prototype,{toString:c((function(){return"Symbol ("+u(this).__description__+")"})),valueOf:c((function(){return u(this)}))}),y(n.prototype,n.toPrimitive,c("",(function(){var t=u(this);return"symbol"===(0,a.default)(t)?t:t.toString()}))),y(n.prototype,n.toStringTag,c("c","Symbol")),y(o.prototype,n.toStringTag,c("c",n.prototype[n.toStringTag])),y(o.prototype,n.toPrimitive,c("c",n.prototype[n.toPrimitive]))},223:(t,e,r)=>{"use strict";var n=r(1495);t.exports=function(t){if(!n(t))throw new TypeError(t+" is not a symbol");return t}},7241:(t,e,r)=>{"use strict";var n=r(8424)(r(2924)),o=function(){if("object"===("undefined"==typeof self?"undefined":(0,n.default)(self))&&self)return self;if("object"===("undefined"==typeof window?"undefined":(0,n.default)(window))&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return o()}try{return __global__||o()}finally{delete Object.prototype.__global__}}()},5835:(t,e,r)=>{"use strict";t.exports=r(3706)()?globalThis:r(7241)},3706:(t,e,r)=>{"use strict";var n=r(8424)(r(2924));t.exports=function(){return"object"===("undefined"==typeof globalThis?"undefined":(0,n.default)(globalThis))&&!!globalThis&&globalThis.Array===Array}},2302:(t,e,r)=>{"use strict";var n,o,i=r(8424)(r(2924));!function(a){var c;if(void 0===(o="function"==typeof(n=a)?n.call(e,r,e,t):n)||(t.exports=o),c=!0,"object"===(0,i.default)(e)&&(t.exports=a(),c=!0),!c){var u=window.Cookies,s=window.Cookies=a();s.noConflict=function(){return window.Cookies=u,s}}}((function(){function t(){for(var t=0,e={};t{"use strict";var n,o=r(8424)(r(2924)),i="pending",a="settled",c="fulfilled",u="rejected",s=function(){},f=void 0!==r.g&&void 0!==r.g.process&&"function"==typeof r.g.process.emit,l="undefined"==typeof setImmediate?setTimeout:setImmediate,p=[];function d(){for(var t=0;t{"use strict";t=r.nmd(t);var n=r(6834),o=r(4928),i=r(8424)(r(2924)),a=function(t){var e,r=Object.prototype,a=r.hasOwnProperty,c="function"==typeof n?n:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.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 m?e:m,i=Object.create(o.prototype),a=new D(n||[]);return i._invoke=function(t,e,r){var n=h;return function(o,i){if(n===v)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=$(a,r);if(c){if(c===w)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===h)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var u=d(t,e,r);if("normal"===u.type){if(n=r.done?g:y,u.arg===w)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=g,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var h="suspendedStart",y="suspendedYield",v="executing",g="completed",w={};function m(){}function b(){}function _(){}var x={};l(x,u,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(A([])));j&&j!==r&&a.call(j,u)&&(x=j);var S=_.prototype=m.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function r(n,o,c,u){var s=d(t[n],t,o);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"===(0,i.default)(l)&&a.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function $(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,$(t,r),"throw"===r.method))return w;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var o=d(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,w;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,w):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,w)}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 T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),w}},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;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:A(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),w}},t}("object"===(0,i.default)(t)?t.exports:{});try{regeneratorRuntime=a}catch(t){"object"===("undefined"==typeof globalThis?"undefined":(0,i.default)(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},3557:(t,e,r)=>{"use strict";var n=r(8110);t.exports=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},3270:(t,e,r)=>{"use strict";var n=r(8424)(r(2924)),o=r(4652),i={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!o(t)&&hasOwnProperty.call(i,(0,n.default)(t))}},1574:(t,e,r)=>{"use strict";var n=r(3557),o=/^\s*class[\s{/}]/,i=Function.prototype.toString;t.exports=function(t){return!!n(t)&&!o.test(i.call(t))}},8110:(t,e,r)=>{"use strict";var n=r(3270);t.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}},4652:t=>{"use strict";t.exports=function(t){return null!=t}},8752:(t,e,r)=>{"use strict";var n=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.app=function(t,e){return f.apply(this,arguments)};var o=n(r(4264)),i=n(r(3564)),a=n(r(7076)),c=r(9288),u=r(9925);function s(t){if(t){var e=(0,a.default)(t);return e.isValid()?e.format("YYYY-MM-DD"):void 0}}function f(){return(f=(0,i.default)(o.default.mark((function t(e,r){var n,i;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.apiKey){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,r.getClientData(e.apiKey);case 4:if(n=t.sent){t.next=7;break}return t.abrupt("return");case 7:if(!window.ttGoogleGlobalSiteTagAdded&&n.hotel.googleAdsAccountId&&(l(n.hotel.googleAdsAccountId),window.ttGoogleGlobalSiteTagAdded=!0),!window.ttWihpGlobalSiteTagAdded&&n.hotel.wihpId&&(p(),window.ttWihpGlobalSiteTagAdded=!0),"Confirmation"!==e.type){t.next=13;break}return i={hotelKey:e.apiKey,bookingRef:e.reference,checkin:s(e.checkin),checkout:s(e.checkout),currency:e.currency,totalAmount:e.price?e.price.toFixed(2):"",basePrice:e.basePrice?e.basePrice.toFixed(2):""},t.next=13,(0,c.initiateAcquisitionConversionTracking)(n,i);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){if(!window.gtag){var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=".concat(t),document.head.appendChild(e),new Function("\n window.dataLayer = window.dataLayer || [];\n if (!window.gtag) {\n window.gtag = function () {\n window.dataLayer.push(arguments);\n };\n }\n ")()}window.gtag("js",new Date),window.gtag("config",t)}function p(){(0,u.injectTag)("p.relay-t.io/wh.js","triptease-wihp-global")}},8970:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createClientApi=void 0;var n=r(1503),o=/\/+$/,i=/^\/+/;e.createClientApi=function(t,e){var r=e.replace(o,""),a=function(t){var e=t.replace(i,"");return"".concat(r,"/").concat(e)};return{getClientData:function(e){return(0,n.getClientData)(t,a,e)}}}},1503:(t,e,r)=>{"use strict";var n=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.getClientData=void 0;var o=n(r(4264)),i=n(r(3564)),a=function(){var t=(0,i.default)(o.default.mark((function t(e,r,n){var i,a,c,u;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="/bundle-data/".concat(n),a=r(i),t.next=4,e(a,{method:"GET"});case 4:if(200===(c=t.sent).status&&c.body){t.next=7;break}return t.abrupt("return",void 0);case 7:if(200===(u=JSON.parse(c.body)).statusCode){t.next=10;break}return t.abrupt("return",void 0);case 10:return t.abrupt("return",u);case 11:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.getClientData=a},2860:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ClientApi",{enumerable:!0,get:function(){return n.ClientApi}}),Object.defineProperty(e,"ClientApiConfig",{enumerable:!0,get:function(){return n.ClientApiConfig}}),Object.defineProperty(e,"createClientApi",{enumerable:!0,get:function(){return o.createClientApi}});var n=r(2971),o=r(8970)},2971:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},5186:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={clientApi:{url:"http://localhost:8089"},zappyUrl:"https://stg-api.triptease.io/zappy"}},3762:(t,e,r)=>{"use strict";var n=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(r(5186));var o=n(r(6069)).default;e.default=o},6069:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={version:"0.0.0-nosha",clientApi:{url:"https://static-meta.triptease.io/client"},zappyUrl:"https://api.triptease.io/zappy"}},1443:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addGoogleScript=function(t,e,r,n,o){try{!function(t){if(!t.hotelKey)throw new Error("Bad value: hotelKey");if(!t.totalAmount)throw new Error("Bad value: totalAmount");if(!t.bookingRef)throw new Error("Bad value: bookingRef");if(!t.currency)throw new Error("Bad value: currency");if(!t.checkin)throw new Error("Bad value: checkin");if(!t.checkout)throw new Error("Bad value: checkout")}(t),function(t,e,r,n,o){if(function(t){return!["OXFORDCOLLECTION"].includes(t)}(o)){var i=t.totalAmount,a=t.basePrice,c=t.bookingRef,u=t.currency,s=t.checkin,f=t.checkout;window.gtag("event",function(t){return function(t){return["INSOTELHOTELGROUP","ATTITUDE"].includes(t)}(t)?"triptease-conversion":"purchase"}(o),{send_to:r,transaction_id:c,value:"base"===n&&a?a:i,currency:u,items:[{id:e,start_date:s,end_date:f}]})}}(t,e,r,n,o)}catch(t){var i=t instanceof Error?t.message:t;throw new Error("Failed to add Google script: ".concat(i))}}},9288:(t,e,r)=>{"use strict";var n=r(4928),o=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.initiateAcquisitionConversionTracking=function(t,e){return p.apply(this,arguments)};var i=o(r(4264)),a=o(r(2918)),c=o(r(3564)),u=o(r(2302)),s=r(1443),f=r(538),l=r(8566);function p(){return(p=(0,c.default)(i.default.mark((function t(e,r){var o,c,p,h,y,v,g;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.default.get("triptease-bref-".concat(r.bookingRef))){t.next=2;break}return t.abrupt("return");case 2:return u.default.set("triptease-bref-".concat(r.bookingRef),"confirmed"),o=e.hotel,c=o.googleAdsHotelId,p=o.partner,h=o.wihpId,y=o.googleAdsReportRate,v=e.gaConversionLabels?e.gaConversionLabels:[],g=[],!h||"wihp"!==p&&"wihphopper"!==p||(window.gtag&&(window.gtag("config","HA-75",{conversion_cookie_prefix:"_ha"}),v=["HA-75"].concat((0,a.default)(v))),g.push(d((function(){(0,f.trackWihpConversion)(r,h),(0,f.addWihpScript)(r,h)})).catch(l.noop)),g.push(d((function(){return(0,f.addGoogleHotelAdsImage)(r,h)})).catch(l.noop))),c&&v.length>0&&g.push(d((function(){return(0,s.addGoogleScript)(r,c,v,y,e.hotel.clientName)})).catch(l.noop)),t.next=10,n.all(g);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t){return new n((function(e,r){try{t(),e()}catch(t){r(t)}}))}},538:(t,e,r)=>{"use strict";var n=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.addGoogleHotelAdsImage=function(t,e){var r=t.totalAmount,n=t.bookingRef,a=t.currency,c=t.checkin,u=t.checkout,s=t.dateFormat,f=void 0===s?"%Y-%m-%d":s,l=(0,o.default)(c),p=(0,o.default)(u).diff(l,"day"),d=Math.floor(5e3*Math.random()+1),h=t.basePrice||r,y="https://www.googletraveladservices.com/travel/clk/pagead/conversion/75/?label=HPA&guid=ON&script=0&ord=".concat(d,"&data=hct_partner_hotel_id%3D").concat(e,"%3Bhct_base_price%3D").concat(h,"%3Bhct_total_price%3D").concat(r,"%3Bhct_currency_code%3D").concat(a,"%3Bhct_checkin_date%3D").concat(c,"%3Bhct_checkout_date%3D").concat(u,"%3Bhct_length_of_stay%3D").concat(p,"%3Bhct_date_format%3D").concat(f,"%3Bhct_booking_xref%3D").concat(n,"%3Bhct_ver%3D1.0.i");(0,i.injectImage)(y,"triptease-gha")},e.addWihpScript=function(t,e){try{!function(t){if(!t.hotelKey)throw new Error("Bad value: hotelKey");if(!t.totalAmount)throw new Error("Bad value: totalAmount");if(!t.bookingRef)throw new Error("Bad value: bookingRef");if(!t.currency)throw new Error("Bad value: currency");if(!t.checkin)throw new Error("Bad value: checkin");if(!t.checkout)throw new Error("Bad value: checkout")}(t);var r=t.totalAmount,n=t.bookingRef,o=t.currency,a=t.checkin,c=t.checkout,u="https://secure-hotel-tracker.com/tics/log.php?act=conversion&ref=".concat(encodeURIComponent(n),"&amount=").concat(r,"¤cy=").concat(o,"&idbe=3&idwihp=").concat(e,"&checkin=").concat(a,"&checkout=").concat(c,"&date_format=YYYY-MM-DD");(0,i.injectImage)(u,"triptease-wihp")}catch(t){var s=t instanceof Error?t.message:t;throw new Error("Failed to add WIHP script: ".concat(s))}},e.trackWihpConversion=function(t,e){var r=t.totalAmount,n=t.bookingRef,o=t.currency,a=t.checkin,c=t.checkout;window._wic=window._wic||[],window._wic.push(["_setHotel",e]),window._wic.push(["_setRef",n]),window._wic.push(["_setAmount",String(r)]),window._wic.push(["_setCurrency",o]),window._wic.push(["_setIDBE","3"]),window._wic.push(["_setCheckin",a||""]),window._wic.push(["_setCheckout",c||""]),window._wic.push(["_setDateFormat","YYYY-MM-DD"]),(0,i.injectTag)("p.relay-t.io/conv.js","triptease-wihp-conversion")};var o=n(r(7076)),i=r(9925)},9925:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectImage=function(t,e){var r=document.createElement("img");r.height=1,r.width=1,r.alt="",r.src=t,r.className=e,document.getElementsByTagName("body")[0].appendChild(r)},e.injectTag=function(t,e){var r,n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=("https:"==document.location.protocol?"https://":"http://")+t,n.className=e;var o=document.getElementsByTagName("script")[0];null==o||null===(r=o.parentNode)||void 0===r||r.insertBefore(n,o)}},8568:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MiniHttp",{enumerable:!0,get:function(){return n.MiniHttp}}),Object.defineProperty(e,"http",{enumerable:!0,get:function(){return o.http}});var n=r(3646),o=r(2156)},2156:(t,e,r)=>{"use strict";var n=r(4928),o=r(8424);Object.defineProperty(e,"__esModule",{value:!0}),e.httpBase=e.http=e.defaultInit=e.XHR_NETWORK_ERROR_TEXT=void 0;var i=o(r(4264)),a=o(r(7837)),c=o(r(3564));function u(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 s(t){for(var e=1;e{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},8566:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.noop=function(){}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=r(8424),e=t(r(4264)),n=t(r(3564)),o=t(r(3762)),i=r(2860),a=r(8752),c=r(8568),u=r(8566);!function(t,r){function o(t,e){return i.apply(this,arguments)}function i(){return i=(0,n.default)(e.default.mark((function t(r,n){return e.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,a.app)(r,n);case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])}))),i.apply(this,arguments)}t.addEventListener("message",(function(t){var e=t.data;e&&"triptease.config"===e.type&&o(e.payload,r).catch(u.noop)})),o(t.triptease.config,r).catch(u.noop)}(window,(0,i.createClientApi)(c.http,o.default.clientApi.url))})()})();