1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[8433],{58433:(e,t,r)=>{r.r(t),r.d(t,{initSharedDestScrollLocker:()=>H,initSharedHotelScrollLocker:()=>D});var n=r(53894),o=r(79128),i=r(25295),l="locker-scroll",c=()=>{var e=(0,i.zx)(l);e&&((0,i.Xb)(l),requestAnimationFrame((()=>{var{scrollHeight:t,clientHeight:r}=document.documentElement,n=Math.round((t-r)*e/100);window.scrollTo(0,n)})))},a=r(75644);function s(e,t){u(e,t),t.add(e)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,d(e,t,"set"),r),r}function d(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function h(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}var v=new WeakMap,f=new WeakSet,b=new WeakSet;class w extends a.Z{constructor(){var e,t,r;super(),s(this,b),s(this,f),r={writable:!0,value:!1},u(e=this,t=v),t.set(e,r),window.addEventListener("scroll",h(this,f,m).bind(this),{passive:!0})}}function m(){var e;(function(e,t){return t.get?t.get.call(e):t.value})(e=this,d(e,v,"get"))||(p(this,v,!0),requestAnimationFrame((()=>{this.emit("scroll",{scrollPercent:h(this,b,y).call(this)}),p(this,v,!1)})))}function y(){var e=window.scrollY,t=document.documentElement.scrollHeight-document.documentElement.clientHeight;return t>0?Math.round(e/t*100):0}var k=new w,g=(e,t)=>{if("number"!=typeof e)throw new Error("initPromoScroll: threshold must be a number, got ".concat(e));k.on("scroll",(r=>{var{scrollPercent:n}=r;n<e||((e=>{(0,i.mW)(l,e)})(n),t())}))},O=r(42440),P=r(91566),j=r(85602);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var S="scroll-locker",T=12,D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c();var{scrollPercent:r=T}=t;if(e&&!(0,P.c)()){var i=(0,n.Mx)(),l=(0,o.Z)(_(_({},travel.isMobile()&&{subdomain:"sp"}),{},{label_type:S,event_id:i})),a=(0,n.kH)({type:"scroll-locker-clicktrip",event_id:i,href:encodeURIComponent(l),adults:"2",children:"0"}),s=()=>{window.open(location.href,"_blank"),location.href=l},u=()=>{(0,j.X)(_({h:travel.options.hotelExtId,labelData:(0,n.ZP)({type:"locker-clicktrip"},l)},a))},p=()=>{(0,P.c)()||((0,O.N)({view:e,onBeforeClose:u,onClose:s}),e.open())};g(r,p)}},H=function(e){var t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c();var{scrollPercent:l=T}=i;if(e&&!(0,P.c)()&&null!==(t=travel.options.clickTrip)&&void 0!==t&&t.cityId){var a=(0,n.Mx)(),s=(0,o.Z)(_(_({},travel.isMobile()&&{subdomain:"sp"}),{},{label_type:S,city_id:null===(r=travel.options.clickTrip)||void 0===r?void 0:r.cityId,event_id:a})),u=(0,n.kH)({type:"scroll-locker-clicktrip",event_id:a,href:encodeURIComponent(s),adults:"2",children:"0"}),p=()=>{window.open(location.href,"_blank"),location.href=s},d=()=>{var e;(0,j.X)(_({h:travel.options.hotelExtId,labelData:(0,n.ZP)({type:"locker-clicktrip",city_id:(null===(e=travel.options.clickTrip)||void 0===e?void 0:e.cityId)||""},s)},u))},h=()=>{(0,P.c)()||((0,O.N)({view:e,onBeforeClose:d,onClose:p}),e.open())};g(l,h)}}}}]);
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.