PageSourceSearch

https://xn--b1addba9ahjgkpw5k.xn--p1ai/js/chunks/scrollSlider.712593231bd982a3.js

js xn--b1addba9ahjgkpw5k.xn--p1ai collected 2026-10-01 05:43:18 UTC 3,955 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmulti_kelnik_2_0=self.webpackChunkmulti_kelnik_2_0||[]).push([[459],{2779:function(t,e,i){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function o(t,e,i){return(e=l(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function l(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}i.r(e);var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"wrapper",void 0),o(this,"inner",void 0),o(this,"sliderButton",void 0),o(this,"overlay",void 0),o(this,"startingX",void 0),o(this,"overlayStartingX",void 0),o(this,"overlayStartingY",void 0),this.wrapper=null,this.sliderButton=null,this.overlay=null,this.startingX=0,this.overlayStartingX=0,this.overlayStartingY=0},(e=[{key:"init",value:function(t){this.wrapper=t.wrapper,this._getElements(),this._bindEvents()}},{key:"_getElements",value:function(){var t,e,i;this.inner=(null===(t=this.wrapper)||void 0===t?void 0:t.querySelector(".j-scroll-slider-inner"))||null,this.sliderButton=(null===(e=this.wrapper)||void 0===e?void 0:e.querySelector(".j-scroll-slider"))||null,this.overlay=(null===(i=this.wrapper)||void 0===i?void 0:i.querySelector(".j-scroll-slider-overlay"))||null}},{key:"_bindEvents",value:function(){var t,e,i,n,r,o,l=this;null===(t=this.sliderButton)||void 0===t||t.addEventListener("touchstart",this._moveInnerStart.bind(this)),null===(e=this.sliderButton)||void 0===e||e.addEventListener("touchmove",this._moveInnerMove.bind(this)),null===(i=this.inner)||void 0===i||i.addEventListener("scroll",this._moveSlider.bind(this)),null===(n=this.overlay)||void 0===n||n.addEventListener("touchstart",this._overlayMoveStart.bind(this)),null===(r=this.overlay)||void 0===r||r.addEventListener("touchmove",this._overlayMove.bind(this)),null===(o=this.overlay)||void 0===o||o.addEventListener("click",(function(){l.overlay&&(l.overlay.style.display="none")}))}},{key:"_overlayMoveStart",value:function(t){var e,i;this.overlayStartingX=(null===(e=t.touches[0])||void 0===e?void 0:e.clientX)||0,this.overlayStartingY=(null===(i=t.touches[0])||void 0===i?void 0:i.clientY)||0}},{key:"_overlayMove",value:function(t){var e,i,n=null===(e=t.touches[0])||void 0===e?void 0:e.clientX,r=null===(i=t.touches[0])||void 0===i?void 0:i.clientY,o=n?n-this.overlayStartingX:0,l=r?r-this.overlayStartingY:0;Math.abs(o)>Math.abs(l)&&this.overlay&&(this.overlay.style.display="none")}},{key:"_moveInnerStart",value:function(t){0===this.startingX&&t.touches[0]&&(this.startingX=t.touches[0].clientX),this.overlay&&(this.overlay.style.display="none")}},{key:"_moveInnerMove",value:function(t){var e,i,n=0,r=((null===(e=t.touches[0])||void 0===e?void 0:e.clientX)||0)-this.startingX;this.inner&&(n=this.inner.scrollWidth-this.inner.clientWidth),r>=0&&r<=n&&(null===(i=this.inner)||void 0===i||i.scrollTo(5*r,0))}},{key:"_moveSlider",value:function(){if(this.inner){var t=this.inner.scrollLeft,e=this.inner.scrollWidth-this.inner.clientWidth;this.sliderButton&&(this.sliderButton.style.left="".concat(t/e*100,"%"),this.sliderButton.style.transform="translateX(-".concat(t/e*100,"%)"))}}}])&&r(t.prototype,e),i&&r(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,i}();e.default=s}}]);
2//# sourceMappingURL=scrollSlider.712593231bd982a3.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.