PageSourceSearch

https://cheaphotelguide.com/_astro/hoisted.nubAD1eN.js

js cheaphotelguide.com collected 2026-10-09 23:50:14 UTC 3,465 bytes, 1 lines download raw bytes

1import"./hoisted.inoXx_pf.js";const E="https://www.stay22.com/allez/booking?campaign=",p="&aid=fancyhotels&link=",k="https://www.booking.com/searchresults.us.html?ss=",B=()=>{const{networkId:t}=window?.qs;return t},S=()=>{const{cityName:t,countryName:e}=window?.qs;return{cityName:t,countryName:e}},$=t=>{const e=btoa(`${location.href}+${t}`);return`tn-tn${B()}-${window.location.hostname.replaceAll("-","_")}-${window.location.pathname.replaceAll("-","_")}-${e}`},r=t=>{const{flag:e}=t,n=$(e),{cityName:o,countryName:a}=S(),l=new Date;l.setDate(l.getDate()+1);const s=l.toISOString().split("T")[0],i=new Date;i.setDate(i.getDate()+2);const y=i.toISOString().split("T")[0],w=`${E}${n}${p}`,h=`${o}, ${a}`,b=`${k}${encodeURIComponent(h)}`;return`${w}${b}&checkin=${s}&checkout=${y}`},c=(t,e)=>{t.onclick=()=>window.open(r(e),"_blank","noreferrer")},D=t=>new Promise(e=>setTimeout(e,t)),m="qs-isModalShowed",I=12e3,f=()=>{const t=localStorage.getItem(m);return t&&t==="true"},d=()=>{const t=document.getElementsByTagName("html")[0],e=document.getElementById("qs-modal");!f()&&e&&(t.style.overflow="hidden",e.style.display="block",localStorage.setItem(m,"true"))},g=()=>{const t=document.getElementsByTagName("html")[0],e=document.getElementById("qs-modal");e&&(e.style.display="none",t.style.overflow="initial")},u=t=>{const e=document.getElementById("isList-checkbox"),n=e&&e.checked;if(g(),n){const o=document.createElement("a");o.href=r({flag:t}),o.setAttribute("rel","noreferrer"),window.open(window.location.href,"_blank","noreferrer"),o.click()}},L=()=>{const t=document.getElementById("qs-modal-close"),e=document.getElementById("qs-modal-yes-btn"),n=document.getElementById("qs-modal-no-btn");if(e&&(e.onclick=()=>{g(),window.open(r({flag:"m-yes"}),"_blank","noreferrer")}),n&&(n.onclick=()=>u("m-no")),t&&(t.onclick=()=>u("m-x")),f())localStorage.setItem(m,"false");else{let o=function(){l||(s||d(),s=!0)},a=null,l=!1,s=!1;document.addEventListener("mouseleave",function(){l=!1,a=setTimeout(o,500)}),document.addEventListener("mouseover",function(){l=!0,a!==null&&clearTimeout(a)}),D(I).then(()=>d())}};L();const q=()=>{history.replaceState(null,document.title,location.pathname+"#bb"),history.pushState(null,document.title,location.pathname),window.addEventListener("popstate",function(){const t=r({flag:"bb"});location.hash==="#bb"&&t&&(history.replaceState(null,document.title,location.pathname),setTimeout(function(){location.replace(t)},0))},!1)};q();const N=()=>{const t=document.getElementById("bf-input"),e=document.getElementById("bf-date-range"),n=document.getElementById("bf-search-button");if(!e)return;t&&c(t,{flag:"bf-i"}),e&&c(e,{flag:"bf-dr"}),n&&c(n,{flag:"bf-s"});const o=new Date,a=new Date(o);o.setDate(o.getDate()+1),a.setDate(a.getDate()+2);const l={year:"numeric",month:"short",day:"numeric"};e.value=o.toLocaleDateString("en-US",l)+" - "+a.toLocaleDateString("en-US",l)};N();const v=()=>{Array.from(document.getElementsByClassName("qs-top-table-row")).forEach(n=>c(n,{flag:"tr-b"}));const e=document.getElementsByClassName("qs-top-table-show-more-wrapper")[0];c(e,{flag:"tsm-b"})};v();const A=()=>{const t=document.getElementsByClassName("qs-check-availability"),e=document.getElementsByClassName("qs-entity-image"),n=document.getElementsByClassName("qs-entity-title"),o=Array.from(t),a=Array.from(n),l=Array.from(e);o.forEach(s=>{s&&c(s,{flag:"c-b"})}),l.forEach(s=>{s&&c(s,{flag:"i-b"})}),a.forEach(s=>{s&&c(s,{flag:"t-b"})})};A();

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.