PageSourceSearch

https://www.hotelcleveland.org/new/designs/22/build/2303.c12f506e011dbfec87ea.js

js hotelcleveland.org collected 2026-10-10 02:36:13 UTC 8,146 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[2303],{2303:(t,e,i)=>{var n=i(56242),r=i(56080),o=i(42701),s=i(41695),l=(t,e)=>{var i=(e-t.offsetTop)/t.offsetHeight*100;return Math.max(0,Math.min(100,i))},a=()=>window.scrollY+window.innerHeight/4,c=(t,e,i)=>{var n=((t,e)=>{var i=t*(l(e,window.scrollY)/100);return Math.max(Math.round(t-i),0)})(t,e);((t,e)=>{t&&(t.textContent="".concat(e))})(i,n)},h=document.querySelector(".js-article-content"),d=[...h.querySelectorAll(".js-section-item")],g=[...h.querySelectorAll(".js-hotel-item")],u=[...h.querySelectorAll(".js-paragraph-item")],p=h.querySelector(".js-article-navigation"),m=p.querySelectorAll(".js-article-navigation-toggle-trigger"),v=[...p.querySelectorAll(".js-article-navigation-item")],f=p.querySelectorAll(".js-article-navigation-progress"),w=[...p.querySelectorAll(".js-article-paragraph-navigation-item")],y=document.querySelector(".js-header"),b=document.querySelector(".js-before-header"),E=null==b?void 0:b.getBoundingClientRect().height,_=null==y?void 0:y.getBoundingClientRect().height,j=h.getBoundingClientRect().top,k=p.querySelector(".js-article-navigation-reading-time"),S=parseInt(k.textContent);window.addEventListener("scroll",(()=>{var t,e,i,n,{activeSectionIndex:r,scrollPercent:o}=(t=>{var e=a(),i=((t,e)=>{var i=t,n=i.findIndex((t=>{var i=t.offsetTop,n=t.offsetHeight;return e<i+n}));return-1===n?i.length-1:n})(t,e);return{activeSectionIndex:i,scrollPercent:l(t[i],e)}})(d);t=f,e=r,i=o,n=(0,s.xl)()?"height":"width",t.forEach(((t,r)=>{t.style[n]=r<e?"100%":r===e?"".concat(i,"%"):"0%"})),c(S,h,k)}),{passive:!0}),(0,s.xl)()&&(new n.default(m,{multiple:!1,behavior:"smooth"}),new r.A({triggers:v,menuItems:v,targets:g,paddingTop:_+E,container:p}),new r.A({triggers:w,menuItems:w,targets:u,paddingTop:_+E,container:p})),new o.default(p,{toggleClass:"is-sticky",top:j-_})},56242:(t,e,i)=>{i.r(e),i.d(e,{default:()=>n});class n{constructor(t){var{multiple:e=!1,behavior:i="auto"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Selector or Dom elements is required");this._triggers="string"==typeof t?[...document.querySelectorAll(t)]:t,this._options={multiple:e,behavior:i},this._listeners={click:this._clickHandler.bind(this)},this._triggers.forEach((t=>t.addEventListener("click",this._listeners.click))),"smooth"===this._options.behavior&&this._triggers.forEach((t=>{var e=this._getTarget(t);e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",e.style.transition="all 0.5s"})),this._options.multiple||this._hideOther(null)}_toggleItem(t){var e=this._getTarget(t);t.classList.toggle("active"),e.classList.toggle("active"),"smooth"===this._options.behavior&&(e.style.height=e.classList.contains("active")?e.scrollHeight+"px":0)}_getTarget(t){var e=t.dataset.target||t.nextElementSibling;if(!e)throw new Error("Cannot find accordion target: "+t);return e}_clickHandler(t){var e=t.currentTarget;this._options.multiple||this._hideOther(e),this._toggleItem(e)}_hideOther(t){this._triggers.forEach((e=>{if(t!==e){var i=this._getTarget(e);e.classList.remove("active"),i.classList.remove("active"),"smooth"===this._options.behavior&&(i.style.height=0)}}))}_validateIndex(t,e){if("number"!=typeof t)throw new Error("Fail to open accordion target. ".concat(t," is not a number"));if(t>=e.length||t<0)throw new Error("Fail to open accordion target. Cannot find element with index ".concat(t))}closeAll(){this._hideOther(null)}open(t){this._validateIndex(t,this._triggers);var e=this._triggers[t];e.classList.contains("active")||(this._options.multiple||this._hideOther(null),this._toggleItem(e))}destroy(){this._triggers.forEach((t=>t.removeEventListener("click",this._listeners.click)))}}},56080:(t,e,i)=>{i.d(e,{A:()=>_});var n=i(78857),r=i(52192),o=i(80951);function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t,e,i){c(t,e),e.set(t,i)}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(t,e){return t.get(g(t,e))}function d(t,e,i){return t.set(g(t,e),i),i}function g(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,f=new WeakMap,w=new WeakMap,y=new WeakMap,b=new WeakSet,E=new WeakMap;class _ extends n.A{constructor(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),c(t=this,e=b),e.add(t),a(this,u,void 0),a(this,p,void 0),a(this,m,void 0),a(this,v,void 0),a(this,f,void 0),a(this,w,null),a(this,y,!1),a(this,E,(()=>{h(v,this).forEach((t=>t.htmlElement.classList.remove("is-active")))})),d(u,this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({triggers:".js-navigation-trigger",menuItems:".js-navigation-menu-item",targets:".js-section-item",paddingTop:0,paddingLeft:10,horizontalScroll:!1,container:".js-navigation-list"},i)),d(p,this,(0,o.XF)(h(u,this).container)),d(m,this,g(b,this,j).call(this,h(u,this).triggers)),d(v,this,g(b,this,k).call(this,h(u,this).menuItems)),d(f,this,g(b,this,S).call(this,h(u,this).targets)),h(v,this).length&&h(m,this).length&&h(f,this).length&&(d(w,this,h(v,this)[0]),g(b,this,T).call(this,h(w,this).id),g(b,this,O).call(this))}recalculateBlocksPosition(){h(f,this).forEach((t=>t.position=Math.floor(t.htmlElement.getBoundingClientRect().top+document.documentElement.scrollTop)))}}function j(t){var e=(0,o.mp)(t);if(e)return e.map((t=>({htmlElement:t,id:t.dataset.id})))}function k(t){var e=(0,o.mp)(t,h(p,this));if(e)return e.map((t=>({htmlElement:t,id:t.dataset.id})))}function S(t){var e=(0,o.mp)(t);if(e)return e.map((t=>({htmlElement:t,id:t.dataset.id,position:Math.floor(t.getBoundingClientRect().top+document.documentElement.scrollTop)})))}function O(){window.addEventListener("scroll",(()=>{if(!h(y,this)){this.recalculateBlocksPosition();var t=document.documentElement.scrollTop+h(u,this).paddingTop,e=h(f,this).filter((e=>e.position<=t));if(e.length){var i=e[e.length-1];i.id!==h(w,this).id&&g(b,this,T).call(this,i.id)}}})),window.addEventListener("load",(()=>this.recalculateBlocksPosition.bind(this))),window.addEventListener("resize",(()=>this.recalculateBlocksPosition.bind(this))),h(m,this).forEach((t=>{t.htmlElement.addEventListener("click",(()=>{g(b,this,T).call(this,t.id),g(b,this,x).call(this,t.id),this.emit("item-click",t.id)}))}))}function T(t){h(E,this).call(this),d(w,this,g(b,this,P).call(this,t)),h(w,this).htmlElement.classList.add("is-active"),h(u,this).horizontalScroll&&g(b,this,L).call(this,h(w,this).htmlElement)}function L(t){var e=t.closest(h(u,this).container);e&&(e.scrollLeft=t.offsetLeft-h(u,this).paddingLeft)}function P(t){return h(v,this).find((e=>t===e.id))}function x(t){var e=g(b,this,A).call(this,t);d(y,this,!0),(0,r.A)(e.htmlElement,{top:h(u,this).paddingTop}),setTimeout((()=>{d(y,this,!1)}),1e3)}function A(t){return h(f,this).find((e=>t===e.id))}},52192:(t,e,i)=>{i.d(e,{A:()=>r});var n=i(80951);const r=function(t){var{top:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,n.XF)(t),r=e||0,o=document.body.getBoundingClientRect().top,s=i.getBoundingClientRect().top-o-r;window.scrollTo({top:s,behavior:"smooth"})}}}]);

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.