Your IP : 3.145.40.61


Current Path : /var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/socialnetwork/slider/
Upload File :
Current File : /var/www/axolotl/data/www/axolotl.ru/www/bitrix/js/socialnetwork/slider/socialnetwork.slider.js

(function() {

if (window.top !== window)
{
	return;
}

if (
	!BX.type.isNotEmptyString(BX.message('SONET_SLIDER_USER_SEF'))
	|| BX.message('SONET_SLIDER_INTRANET_INSTALLED') !== 'Y'
)
{
	return;
}

BX.SidePanel.Instance.bindAnchors({
	rules: [
		{
			condition: [
				BX.message('SONET_SLIDER_USER_SEF') + 'user/(\\d+)/groups/create/'
			],
			loader: 'group-loader',
			options: {
				width: 1200
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/edit/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 1200,
					loader: '/bitrix/js/socialnetwork/slider/images/group.svg',
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/invite/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 950,
					loader: 'group-invite-loader',
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/features/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 800,
					loader: 'group-features-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/card/'
			],
			loader: 'socialnetwork:group-card',
			options: {
				width: 900
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/users/',
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/moderators/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 1200,
					loader: 'group-users-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/user_request/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 800,
					loader: 'group-user-request-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/user_leave/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 800,
					loader: 'group-user-leave-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/requests/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 1200,
					loader: 'group-requests-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/requests_out/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 1200,
					loader: 'group-requests-out-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/delete/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 800,
					loader: 'group-delete-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		},
		{
			condition: [
				BX.message('SONET_SLIDER_GROUP_SEF') + 'group/(\\d+)/copy/'
			],
			handler: function(event, link)
			{
				BX.SidePanel.Instance.open(link.url, {
					width: 1000,
					loader: 'group-copy-loader'
				});
				BX.SocialnetworkUICommon.closeGroupCardMenu(link.anchor);
				event.preventDefault();
			}
		}
	]
});

})();