1"use strict";(self.webpackChunkredbarrelsgames=self.webpackChunkredbarrelsgames||[]).push([["src_js_modules_pb-row-rich-scrolling-content_index_js"],{
1"./src/js/modules/pb-row-rich-scrolling-content/index.js":(t,e,n)=>{n.r(e),n.d(e,{default:()=>c});var i=n("./src/js/utils/dom.js"),r=n("./src/js/utils/resize.js"),s=n("./src/js/utils/viewport.js");function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.title=(0,i.$)(".pb-row-rich-scrolling-content__title",this.el),this.contents=(0,i.$)(".pb-row-rich-scrolling-content__contents",this.el),this.media=(0,i.$)(".pb-row-rich-scrolling-content__media__inner",this.el),this.medias=a((0,i.$$)(".pb-row-rich-scrolling-content__media__video, .pb-row-rich-scrolling-content__media__img",this.el)),this._onResize=this._onResize.bind(this)}var e,n,o;return e=t,(n=[{key:"init",value:function(){this._onResize(),this._bindEvents()}},{key:"destroy",value:function(){this._unbindEvents(),this.el=null,this.title=null,this.contents=null,this.media=null,this.medias=null,this._onResize=null}},{key:"_bindEvents",value:function(){r.ZP.add(this._onResize,r._q)}},{key:"_unbindEvents",value:function(){r.ZP.remove(this._onResize)}},{key:"_onResize",value:function(){var t=s.Z.width>=1200,e=s.Z.height;if(this.title&&this.title.style.setProperty("--sticky-top","".concat(Math.round((e-(0,i.JA)(this.title).height)/2),"px")),this.media){var n=(0,i.JA)(this.media).height,r=t?Math.floor((e-n)/2):0,o=this.medias.length-1;this.contents.style.setProperty("--media-height","".concat(n,"px")),this.medias.forEach((function(t,e){return t.setAttribute("data-scroll-offset","".concat(0===e?0:r,"px,").concat(e===o?0:r,"px"))}))}}}])&&l(e.prototype,n),o&&l(e,o),t}()}
1}]); 2//# sourceMappingURL=src_js_modules_pb-row-rich-scrolling-content_index_js.da073d32d8d52b7ce04e.bundle.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.