PageSourceSearch

https://www.bibleserver.com/build/headroom-BqSACnML.js

js bibleserver.com collected 2026-09-24 08:40:11 UTC 4,894 bytes, 2 lines download raw bytes

1import{g as Y}from"./_commonjsHelpers-DaWZu8wl.js";function j(h,m){for(var a=0;a<m.length;a++){const s=m[a];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in h)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(h,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};var M=p.exports,w;function P(){return w||(w=1,(function(h,m){(function(a,s){h.exports=s()})(M,function(){function a(){return typeof window<"u"}function s(){var t=!1;try{var o={get passive(){t=!0}};window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{t=!1}return t}function l(){return!!(a()&&(function(){}).bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function u(t){return t.nodeType===9}function B(t){return t&&t.document&&u(t.document)}function E(t){var o=t.document,n=o.body,c=o.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,c.scrollHeight,n.offsetHeight,c.offsetHeight,n.clientHeight,c.clientHeight)},height:function(){return t.innerHeight||c.clientHeight||n.clientHeight},scrollY:function(){return t.pageYOffset!==void 0?t.pageYOffset:(c||n.parentNode||n).scrollTop}}}function z(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}function S(t){return B(t)?E(t):z(t)}function L(t,o,n){var c=s(),C,v=!1,f=S(t),d=f.scrollY(),e={};function b(){var r=Math.round(f.scrollY()),T=f.height(),O=f.scrollHeight();e.scrollY=r,e.lastScrollY=d,e.direction=r>d?"down":"up",e.distance=Math.abs(r-d),e.isOutOfBounds=r<0||r+T>O,e.top=r<=o.offset[e.direction],e.bottom=r+T>=O,e.toleranceExceeded=e.distance>o.tolerance[e.direction],n(e),d=r,v=!1}function y(){v||(v=!0,C=requestAnimationFrame(b))}var H=c?{passive:!0,capture:!1}:!1;return t.addEventListener("scroll",y,H),b(),{destroy:function(){cancelAnimationFrame(C),t.removeEventListener("scroll",y,H)}}}function g(t){return t===Object(t)?t:{down:t,up:t}}function i(t,o){o=o||{},Object.assign(this,i.options,o),this.classes=Object.assign({},i.options.classes,o.classes),this.elem=t,this.tolerance=g(this.tolerance),this.offset=g(this.offset),this.initialised=!1,this.frozen=!1}return i.prototype={constructor:i,init:function(){return i.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=L(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){(this.hasClass("pinned")||!this.hasClass("unpinned"))&&(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){var o=t.direction==="down";return o&&!t.top&&t.toleranceExceeded},shouldPin:function(t){var o=t.direction==="up";return o&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(o){return this.classList.contains(o)},this.elem)},update:function(t){t.isOutOfBounds||this.frozen!==!0&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},i.options={tolerance:{up:0,down:0},offset:0,scroller:a()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},i.cutsTheMustard=l(),i})})(p)),p.exports}var x=P();const k=Y(x),U=j({__proto__:null,default:k},[x]);export{U as h};
2//# sourceMappingURL=headroom-BqSACnML.js.map

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.