PageSourceSearch

https://www.imperialoil.ca/Assets/component-VX1172.bundle-260929.14.js

js imperialoil.ca collected 2026-10-02 06:12:04 UTC 2,527 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{144:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(66);var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.html=e,this.CONTAINER={LEFT:0,RIGHT:1},this.isOneCol=(0,i.hasClass)(this.html.parentNode,"article--wrapper")||(0,i.hasClass)(this.html.parentNode,"topicContainer--oneColumn"),this.isTwoCol31=(0,i.closest)(this.html,".topicContainer--twoColumn-3-1"),this.isScEnabledChrome=(0,i.hasClass)(this.html,"scEnabledChrome"),this.isDesktop="desktop"===(0,i.deviceDetection)({isNew:this.isTwoCol31}),this.isTopicRelatedContentLeft=(0,i.hasClass)(this.html.parentNode,"topicContainer--left"),this.vh=(0,i.getVh)();var o=this.html.parentNode&&this.html.parentNode.parentNode,s=o&&o.children[this.isTopicRelatedContentLeft?this.CONTAINER.RIGHT:this.CONTAINER.LEFT];this.oppositeComponent=s&&s.children[0],this.oppositeComponent&&(this.isTopicRelatedContentHigher=this.html.offsetHeight>=this.oppositeComponent.offsetHeight,this.isNotScrollAble=this.isTopicRelatedContentHigher&&this.html.offsetHeight<this.vh,this.stickyComponent=this.isTopicRelatedContentHigher?this.oppositeComponent:this.html,this.isOneCol||(this.handleHeight(),this.isNotScrollAble||this.handleScroll()))}return t.prototype.handleHeight=function(){!this.isTopicRelatedContentHigher&&this.oppositeComponent.offsetHeight<=this.vh&&(this.html.style.minHeight=this.oppositeComponent.offsetHeight+"px")},t.prototype.handleScroll=function(){var t=this;if(this.isTopicRelatedContentLeft&&(0,i.addClass)(this.html.parentNode,"have-related-content"),!this.isScEnabledChrome&&this.isDesktop&&this.stickyComponent){var e=window.scrollY;(0,i.addClass)(this.stickyComponent,"sticky h-fit-content"),(0,i.$on)(window,"scroll",(function(){var o=(0,i.stickyTocHeight)();o?(0,i.addClass)(t.stickyComponent,"TOC-show"):(0,i.removeClass)(t.stickyComponent,"TOC-show");var s=window.innerHeight,n=t.stickyComponent.offsetHeight,h=window.scrollY,l=h+s,p=t.stickyComponent.offsetTop,a=p+n,c=Math.abs(s-n),r=e-h,C=h>e,d=s>n,m=p>=h&&!C,f=s===n+o;if(a<=l&&C)t.stickyComponent.style.top=f&&o||d?o+"px":-c+"px";else if(m)t.stickyComponent.style.top=o||0;else if(f)t.stickyComponent.style.top=o+"px";else{var y=-c,w=parseInt((0,i.getStyle)(t.stickyComponent,"top"),10)+r;y>w&&(w=y);var T=h+s>=document.documentElement.scrollHeight?y:w;t.stickyComponent.style.top=(T>=o?o:T)+"px"}e=h}))}},t}();e.default=s}}]);

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.