1(function(){"use strict";var FALLBACK_SELECTORS=["#SiteHeader",".site-header","header-section","#HeaderWrapper",".header-wrapper",".shopify-section-group-header-group","#shopify-section-header","header.header","header"],MAX_REASONABLE_HEIGHT=480;function findHeaderEl(customSelector){if(customSelector){var custom=document.querySelector(customSelector);if(custom)return custom}for(var i=0;i<FALLBACK_SELECTORS.length;i++){var el=document.querySelector(FALLBACK_SELECTORS[i]);if(el)return el}return null}function isActuallyVisible(elm){var closedDetails=elm.closest("details");if(closedDetails&&!closedDetails.open)return!1;var cs=getComputedStyle(elm);return!(cs.visibility==="hidden"||parseFloat(cs.opacity)<.05)}function getRenderedBottom(headerEl){for(var maxBottom=headerEl.getBoundingClientRect().bottom,descendants=headerEl.querySelectorAll("*"),i=0;i<descendants.length;i++){var el=descendants[i],rect=el.getBoundingClientRect();rect.width===0||rect.height===0||rect.bottom<=maxBottom||isActuallyVisible(el)&&(maxBottom=rect.bottom)}return maxBottom}function TrustBarSticky(el){this.el=el,this.isSticky=el.dataset.sticky==="true",this.headerEl=null,this.spacer=null,this.isSticky&&(this.headerEl=findHeaderEl(el.dataset.headerSelector),this.spacer=document.createElement("div"),this.spacer.className="trust-bar__spacer",el.parentNode.insertBefore(this.spacer,el),this.update=this.update.bind(this),this.onScroll=this.onScroll.bind(this),window.addEventListener("resize",this.update),window.addEventListener("load",this.update),document.addEventListener("shopify:section:load",this.update),window.addEventListener("scroll",this.onScroll,{passive:!0}),"ResizeObserver"in window&&(this.resizeObserver=new ResizeObserver(this.update),this.resizeObserver.observe(this.el),this.headerEl&&this.resizeObserver.observe(this.headerEl)),this.update())}TrustBarSticky.prototype.onScroll=function(){if(!this.scrollTicking){this.scrollTicking=!0;var self=this;requestAnimationFrame(function(){self.update(),self.scrollTicking=!1})}clearTimeout(this.settleTimer);var self2=this;this.settleTimer=setTimeout(function(){self2.update(),setTimeout(function(){self2.update()},150),setTimeout(function(){self2.update()},350)},50)},TrustBarSticky.prototype.update=function(){this.headerEl||(this.headerEl=findHeaderEl(this.el.dataset.headerSelector),this.headerEl&&this.resizeObserver&&this.resizeObserver.observe(this.headerEl));var headerHeight=this.headerEl?getRenderedBottom(this.headerEl):0;(headerHeight<0||headerHeight>MAX_REASONABLE_HEIGHT)&&(headerHeight=0),this.el.style.setProperty("--tb-header-height",headerHeight+"px");var barHeight=this.el.offsetHeight;this.spacer&&(this.spacer.style.height=barHeight+"px")};function init(){var bars=document.querySelectorAll("trust-bar-sticky");bars.forEach(function(bar){bar._trustBarInstance||(bar._trustBarInstance=new TrustBarSticky(bar))})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",init):init(),document.addEventListener("shopify:section:load",function(event){var bar=event.target.querySelector&&event.target.querySelector("trust-bar-sticky");bar&&!bar._trustBarInstance&&(bar._trustBarInstance=new TrustBarSticky(bar))})})(); 2//# sourceMappingURL=/cdn/shop/t/105/assets/trust-bar.js.map?v=37007928807619589041791053723
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.