PageSourceSearch

https://korobki-minsk.by/cloud-cgi/static/belprom-uc/production/design_template/648/csjs/menu-triangle.js

js korobki-minsk.by collected 2026-09-28 22:59:38 UTC 2,708 bytes, 1 lines download raw bytes

1"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function j(e,t){return(t.y-e.y)/(t.x-e.x)}function O(){}function e(n){return function(t,e){e.forEach(function(e){t.classList[n](e)})}}var W=e("add"),X=e("remove");function t(n,e){if(n){var t,o=e.contentDirection||"right",i=e.delay||300,c=e.menuItemSelector||".item",l=[].concat(e.menuItemActiveClassName||"hover"),u=[].concat(e.delayingClassName||"delaying"),a=e.activateCallback||O,r=e.deactivateCallback||O,s=e.mouseEnterCallback||O,m=e.mouseLeaveCallback||O,f=null,d=null,v=null,y=null,p=null,b={top:(t=n.getBoundingClientRect()).top+(window.pageYOffset||document.documentElement.scrollTop),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft)},_={x:b.left,y:b.top},w={x:b.left+n.offsetWidth,y:_.y},g={x:b.left,y:b.top+n.offsetHeight},E={x:b.left+n.offsetWidth,y:g.y},h=void 0,x=void 0;switch(o){case"top":h=_,x=w;break;case"bottom":h=E,x=g;break;case"left":h=g,x=_;break;default:h=w,x=E}var L=[].slice.call(n.querySelectorAll(c));return L.forEach(function(e){e.addEventListener("click",q),e.addEventListener("mouseenter",D)}),window.addEventListener("mousemove",k),window.addEventListener("click",T),n.addEventListener("mouseleave",I),function(){L.forEach(function(e){e.removeEventListener("click",q),e.removeEventListener("mouseenter",D)}),window.removeEventListener("mousemove",k),window.removeEventListener("click",T),n.removeEventListener("mouseleave",I)}}function k(e){v=y,y={x:e.pageX,y:e.pageY}}function C(){d&&clearTimeout(d)}function S(){f&&(X(f,l),r(f),f=null)}function A(e){e!==f&&(S(),W(e,l),a(e),f=e)}function N(){return!f||!y||!v||v.x<_.x||v.x>E.x||v.y<_.y||v.y>E.y||p&&y.x===p.x&&y.y===p.y||j(y,h)>j(v,h)||j(y,x)<j(v,x)?(p=null,X(n,u),!0):(p=y,W(n,u),!1)}function I(){N()&&(C(),m(f),S())}function q(){C(),A(this)}function D(){var e=null===f;!function e(t){if(C(),N())return A(t);d=setTimeout(function(){e(t)},i)}(this),e&&s(f)}function T(e){for(var t=e.target;t&&t!==n;)t=t.parentNode;t||S()}}"object"===("undefined"==typeof module?"undefined":_typeof(module))?module.exports=t:window.menuAim=t}(),window.menuAim(document.querySelector(".csjs-nav-list"),{contentDirection:"right",menuItemSelector:".cs-nav__item",menuItemActiveClassName:"cs-nav__item_state_hover",delayingClassName:"cs-nav__list_state_delaying"}),window.menuAim(document.querySelector(".cs-sub-nav"),{contentDirection:"right",menuItemSelector:".cs-sub-nav__item",menuItemActiveClassName:"cs-sub-nav__item_state_hover",delayingClassName:"cs-sub-nav_state_delaying"});

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.