PageSourceSearch

https://cdn.tourradar.com/include/pw/build/39884/script.bf8af798b6082658ba8e.min.js

js tourradar.com collected 2026-10-02 03:20:27 UTC 9,820 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktourradar_com=self.webpackChunktourradar_com||[]).push([[39884],{36820:function(e,t){var n="js-am-loading-overlay",o=null,r=function(){if(o)return o;var e=document.querySelector(".".concat(n));return e?o=e:((o=document.createElement("div")).className="".concat("am-loading-overlay"," ").concat(n," ").concat("hid"),document.body.appendChild(o),o)};t.A={initiate:function(){r()},show:function(){r().classList.remove("hid")},hide:function(){r().classList.add("hid")}}},39884:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(18420),r=n(55188);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function i(){var e=".js-price-breakdown",t=".js-ao-common-price-breakdown__card",n=".js-ao-common-price-breakdown__room",i=".js-ao-common-price-breakdown__local-note",l="ao-common-price-breakdown--open",s="ao-common-price-breakdown--sheet",c=[[".js-ao-common-price-breakdown__list","bdList"],[n,"bdRoom"],[".js-ao-common-price-breakdown__promo","bdPromo"],[".js-ao-common-price-breakdown__promo-caption","bdPromoCaption"],[".js-ao-common-price-breakdown__level-label","bdLevelLabel"],[".js-ao-common-price-breakdown__loyalty","bdLoyalty"],[".js-ao-common-price-breakdown__final","bdFinal"],[".js-ao-common-price-breakdown__local","bdLocal"],[i,"bdLocalNote"]],u=void 0!==o.s9?{getUserTrPlusLevel:o.gR,sendAmplitudeEvent:o.s9}:common,d=!1,m=null,v=null,p=null,f=null,g=function(){return document.querySelector(".js-ao-common-price-breakdown")},_=function(){var e=g();return e?e.querySelector(t):null},w=function(){var e=g();return!!e&&e.classList.contains(l)},h=function(){return window.matchMedia("(min-width: 768px)").matches},b=function(){return h()&&window.matchMedia("(hover: hover) and (pointer: fine)").matches},y=function(){var e=_();return!!e&&"static"!==getComputedStyle(e).position},E=function(e){clearTimeout(f);var t=0,n=function(){y()?e():(t+=1)>=60||(f=setTimeout(n,50))};f=setTimeout(n,50)},L=function(){clearTimeout(m);var e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflowY="hidden",e>0&&(document.documentElement.style.marginRight="".concat(e,"px"))},k=function(){document.documentElement.style.overflowY="",document.documentElement.style.marginRight=""},j=function(e){var t=_(),n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.min(n.left,window.innerWidth-o.width-16);r=Math.max(r,16);var a=n.bottom+8;a+o.height>window.innerHeight-16&&(a=n.top-o.height-8),a=Math.max(a,16),t.style.top="".concat(Math.round(a),"px"),t.style.left="".concat(Math.round(r),"px")},T=null,A=null,S=null,N=!1,R=function(){var e=g();e&&w()&&(clearTimeout(v),clearTimeout(p),e.classList.remove(l),S=null,window.removeEventListener("scroll",T,!0),window.removeEventListener("resize",A),e.classList.contains(s)&&(m=setTimeout(k,300)))};T=function(){S&&!N&&(N=!0,window.requestAnimationFrame(function(){N=!1,S&&j(S)}))},A=function(){return R()};var q=function(){u.sendAmplitudeEvent({ampEventName:"price_breakdown_closed"}),R()},C=function(e){var t=g();c.forEach(function(n){var o=function(e){if(Array.isArray(e))return e}(n)||function(e){var t,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var r=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(t=o.next()).done)&&(r.push(t.value),2!==r.length);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return r}}(n)||function(e){if(e){if("string"==typeof e)return a(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,2)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=o[0],i=o[1],l=t.querySelector(r);l&&(l.textContent=e.dataset[i]||"")}),t.querySelector(n).classList.toggle("hid",!e.dataset.bdRoom),t.querySelector(".js-ao-common-price-breakdown__promo-row").classList.toggle("hid",!e.dataset.bdPromo),t.querySelector(".js-ao-common-price-breakdown__local-row").classList.toggle("hid",!e.dataset.bdLocal),t.querySelector(i).classList.toggle("hid",!e.dataset.bdLocalNote)},M=function(e){var t=g();if(!y())return void E(function(){return M(e)});C(e),t.hidden=!1;var n=_();h()?(t.classList.remove(s),k(),j(e),S=e,window.addEventListener("scroll",T,!0)):(t.classList.add(s),n.style.top="",n.style.left="",L()),t.classList.add(l),window.addEventListener("resize",A),u.sendAmplitudeEvent({ampEventName:"price_breakdown_opened",source:e.dataset.positioning||"",user_trplus_level:u.getUserTrPlusLevel()})},P=function(){u.sendAmplitudeEvent({ampEventName:"price_breakdown_learn_more_clicked"}),R(),clearTimeout(m),k(),(0,r.A)().show("price_breakdown")},U=function(n){var o=n.target.closest?n.target.closest(e):null;if(o){if(n.preventDefault(),b()&&S===o&&w())return;w()&&R(),M(o);return}
1if(w()){if(n.target.closest(".js-ao-common-price-breakdown__learn-more"))return void P();(n.target.closest(".js-ao-common-price-breakdown__close")||n.target.closest(".js-ao-common-price-breakdown__overlay")||!n.target.closest(t))&&q()}},x=function(){clearTimeout(v),clearTimeout(p)},W=function(n){return!!(n&&n.closest&&(n.closest(e)||n.closest(t)))},D=function(n){if(b()){var o=n.target.closest?n.target.closest(e):null;if(!o){n.target.closest&&n.target.closest(t)&&x();return}x(),S===o&&w()||(v=setTimeout(function(){w()&&R(),M(o)},120))}},Y=function(e){!b()||!W(e.target)||W(e.relatedTarget)||(clearTimeout(v),clearTimeout(f),w()&&(p=setTimeout(R,200)))},$=function(e){"Escape"===e.key&&w()&&q()};return{initiate:function(){!d&&g()&&(d=!0,document.body.addEventListener("click",U),document.body.addEventListener("mouseover",D),document.body.addEventListener("mouseout",Y),document.addEventListener("keydown",$))}}}void 0===o.s9&&window.addEventListener("load",function(){i().initiate()})},55188:function(e,t,n){n.d(t,{A:function(){return i}});var o=n(18420),r=n(36820),a="ao-common-tourradar-plus-level-savings-panel--open";function i(){var e=void 0!==o.w$,t=e?{getUserLoginStatus:o.nM,getUserTrPlusLevel:o.gR,sendAmplitudeEvent:o.s9,sendRequest:o.w$,setAuthTriggerSource:o.S9}:common,i=!1,l=!1,s=null,c=null,u="",d=function(){return document.querySelector(".js-ao-common-tourradar-plus-level-savings-panel")},m=function(){var e=d();return!!e&&e.classList.contains(a)},v=function(){clearTimeout(c);var e=window.innerWidth-document.documentElement.clientWidth;document.documentElement.style.overflowY="hidden",e>0&&(document.documentElement.style.marginRight="".concat(e,"px"))},p=function(){document.documentElement.style.overflowY="",document.documentElement.style.marginRight=""},f=function(){d().classList.remove(a),c=setTimeout(p,300)},g=function(){t.sendAmplitudeEvent({ampEventName:"level_savings_closed"}),f()},_=function(){var e,n,o=d();v();var r=o.querySelector(".js-ao-common-tourradar-plus-level-savings-panel__scroll");r&&(r.scrollTop=0),o.getBoundingClientRect(),o.classList.add(a),t.sendAmplitudeEvent({ampEventName:"level_savings_opened",source:u}),t.sendAmplitudeEvent({ampEventName:"side_panel_opened",source:u,page_type:(null==(n=window.dataLayer)||null==(e=n[0])?void 0:e.contentType)||"",user_login_status:t.getUserLoginStatus(),user_trplus_level:t.getUserTrPlusLevel()}),"book_now"===u&&t.sendAmplitudeEvent({ampEventName:"bnp_membership_panel_modal_opened",user_trplus_level:t.getUserTrPlusLevel()})},w=function(o){if(f(),clearTimeout(c),p(),!e){var r;null==(r=t.setAuthTriggerSource)||r.call(t,"side_panel"),window.location.assign("register"===o?"/registration":"/login");return}Promise.all([n.e(12926),n.e(45645),n.e(36696)]).then(n.bind(n,99534)).then(function(e){var t=e.default;s||(s=new t({})),s.openLoginRegisterDialog(o,!1,null,"side_panel")})},h=function(e){if(e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__close")||e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__overlay"))return void g();if(e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__join")){t.sendAmplitudeEvent({ampEventName:"level_savings_join_clicked"}),w("register");return}if(e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__login")){e.preventDefault(),t.sendAmplitudeEvent({ampEventName:"level_savings_login_clicked"}),w("login");return}if(e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__continue")){t.sendAmplitudeEvent({ampEventName:"level_savings_continue_clicked"}),f();return}e.target.closest(".js-ao-common-tourradar-plus-level-savings-panel__learn-more")&&(t.sendAmplitudeEvent({ampEventName:"level_savings_learn_more_clicked"}),t.sendAmplitudeEvent({ampEventName:"side_panel_learn_more_clicked",user_login_status:t.getUserLoginStatus(),user_trplus_level:t.getUserTrPlusLevel()}))},b=function(e){"Escape"===e.key&&m()&&g()},y=function(){d().addEventListener("click",h),document.addEventListener("keydown",b)},E=function(){if(!l){l=!0;var e=!1;r.A.show();var n=function(){l=!1,r.A.hide()},o=setTimeout(function(){e=!0,n()},6e3);t.sendRequest("/api/popup/tourradar-plus-level-savings",{},function(t){clearTimeout(o),n(),!0===t.success&&(d()||(document.body.insertAdjacentHTML("beforeend",t.component),y()),e||_())},{type:"GET"},function(){clearTimeout(o),n()})}},L=function(e){if(!m()){if(u=e,d())return void _();E()}}
1,k=function(e){var t=e.target.closest?e.target.closest(".js-level-savings"):null;!t||t.classList.contains("js-price-breakdown")||(e.preventDefault(),L(t.dataset.positioning||""))};return{initiate:function(){i||(i=!0,r.A.initiate(),document.body.addEventListener("click",k))},show:L}}void 0===o.w$&&window.addEventListener("load",function(){i().initiate()})}}]);

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.