Your IP : 52.14.60.56


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/wiki/public/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/wiki/public/dist/public.bundle.js

this.BX = this.BX || {};
this.BX.Landing = this.BX.Landing || {};
(function (exports,main_core,landing_sliderhacks) {
	'use strict';

	main_core.Event.bind(document, 'click', function (event) {
	  if (main_core.Type.isDomNode(event.target)) {
	    var link = event.target.closest('a:not(.ui-btn):not([data-fancybox])');
	    if (main_core.Type.isDomNode(link)) {
	      var isCurrentPageLink = main_core.Type.isStringFilled(link.href) && link.hash !== '' && link.pathname === document.location.pathname && link.hostname === document.location.hostname;
	      if (main_core.Type.isStringFilled(link.href) && link.target !== '_blank' && !isCurrentPageLink) {
	        event.preventDefault();
	        BX.Landing.Pub.TopPanel.pushHistory(link.href);
	        void landing_sliderhacks.SliderHacks.reloadSlider(link.href);
	      }
	    }
	    var pseudoLink = event.target.closest('[data-pseudo-url]');
	    if (main_core.Type.isDomNode(pseudoLink)) {
	      var urlParams = main_core.Dom.attr(pseudoLink, 'data-pseudo-url');
	      if (main_core.Text.toBoolean(urlParams.enabled) && main_core.Type.isStringFilled(urlParams.href) && urlParams.href.indexOf('/bitrix/services/main/ajax.php?action=landing.api.diskFile.download') !== 0) {
	        if (urlParams.query) {
	          urlParams.href += urlParams.href.includes('?') ? '&' : '?';
	          urlParams.href += urlParams.query;
	        }
	        if (urlParams.target === '_self') {
	          event.stopImmediatePropagation();
	          BX.Landing.Pub.TopPanel.pushHistory(urlParams.href);
	          void landing_sliderhacks.SliderHacks.reloadSlider(urlParams.href);
	        } else {
	          top.open(urlParams.href, urlParams.target);
	        }
	      }
	    }
	  }
	});

}((this.BX.Landing.Wiki = this.BX.Landing.Wiki || {}),BX,BX.Landing));
//# sourceMappingURL=public.bundle.js.map