1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7048],{7048:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var i=n(7251),o=n(3745),r=n(9898),s=n(2672),c=n(6966),l=n(4232),a=n(6581),h=n(7876);function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(d=function(){return!!e})()}var u=function(e){function t(e){var n,o,c;return(0,i.A)(this,t),o=t,c=[e],o=(0,s.A)(o),(n=(0,r.A)(this,d()?Reflect.construct(o,c||[],(0,s.A)(this).constructor):o.apply(this,c))).handleScroll=n.handleScroll.bind(n),n.imageRefs=[],n.railRef=(0,l.createRef)(),n.scrollHandlerSet=!1,n.state={hidden:!1},n}return(0,c.A)(t,e),(0,o.A)(t,[{key:"setImageRefs",value:function(){this.imageRefs=document.querySelectorAll(".shortcode-image.content-parallax,.shortcode-image.content-full,blockquote:nth-of-type(even)")}},{key:"componentDidMount",value:function(){this.setImageRefs(),this.imageRefs.length&&window.innerWidth>1350&&(window.addEventListener("scroll",this.handleScroll),this.scrollHandlerSet=!0)}},{key:"componentDidUpdate",value:function(){this.imageRefs.length&&this.setImageRefs()}},{key:"componentWillUnmount",value:function(){this.scrollHandlerSet&&window.removeEventListener("scroll",this.handleScroll)}},{key:"handleScroll",value:function(){var e=this;if(this.railRef.current&&!(this.imageRefs.length<=0)){var t=this.railRef.current.getBoundingClientRect(),n=t.top,i=t.top+t.height,o=!1;this.imageRefs.forEach(function(t){if(t&&t.current&&e.railRef.current){var r=t.current.getBoundingClientRect(),s=r.top-20,c=r.top+r.height;i>s&&n<c&&(o=!0)}}),o&&!this.state.hidden?this.setState({hidden:!0}):!o&&this.state.hidden&&this.setState({hidden:!1})}}},{key:"render",value:function(){var e=this.props,t=e.additionalClasses,n=e.children,i=e.side,o=e.store,r=o.get("headerHeight"),s=o.get("heroStuck");return(0,h.jsx)("div",{className:"".concat(i,"-rail").concat(t?" ".concat(t):"").concat(s?" hero-stuck":""),children:(0,h.jsxs)("div",{style:{top:"".concat(r+15,"px"),position:"sticky"},children:[s&&(0,h.jsx)("div",{id:"hero-placeholder-side",className:"hero-placeholder-side"}),(0,h.jsx)("div",{ref:this.railRef,className:"".concat(i,"-rail__content ").concat(this.state.hidden?"hide":""),children:n})]})})}}])}(l.Component);let f=a.A.withStore(u)}}]);
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.