%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.137.178.169
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/seo/install/js/seo/ads/login/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/seo/install/js/seo/ads/login/src/facebooklogin.js
import {Loc, Runtime} from 'main.core';
import {Login} from "./login";
import FacebookLoginComponent from './view/facebooklogincomponent.js';
import 'ui.dialogs.messagebox';
import './style.css'
import 'sidepanel';
import 'ui.sidepanel.layout';

export class FacebookLogin extends Login
{
	login()
	{
		BX.SidePanel.Instance.open('seo-fbe-install',{
			contentCallback: slider => {
					return BX.UI.SidePanel.Layout.createContent({
					title: Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_TITLE'),
					extensions:['seo.ads.login', 'ui.forms'],
					design:{ section: false },
					content()
					{
						return BX.ajax.runAction(
							'seo.api.business.setup.default',
							{
									data: {},
									analyticsLabel: {
										connect: "FBE",
										action: "connection_configuration",
										type: "connection"
									}
							})
							.then( response => slider.getData().set('setup',response.data) ?? true )
							.then(() => BX.ajax.runAction('seo.api.business.config.default', {data:{}}))
							.then( response => slider.getData().set('config',response.data) ?? true )
							.then(() => {
								slider.getData().set('COMPONENT_KEY', new FacebookLoginComponent({
									propsData: {
										defaultSetup: slider.getData().get('setup'),
										defaultConfig: slider.getData().get('config'),
									}
								}).$mount());
								return slider.getData().get('COMPONENT_KEY').$el;
							});
					},
					buttons:({cancelButton, SaveButton}) =>
					{
						return [
							new SaveButton({
								onclick: () => this.submit(),
								text: Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_SUBMIT_BUTTON'),
							}),
							cancelButton,
						];
					},
				});
			},
			title: Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_TITLE'),
			width: (BX.SidePanel.Instance.getTopSlider()?.getWidth() ?? 850),
			cacheable: false
		});
	}
	reject()
	{
		BX.SidePanel.Instance.getSlider('seo-fbe-install')?.close();
	}
	submit()
	{
		let slider = BX.SidePanel.Instance.getSlider('seo-fbe-install');
		if (slider && slider.getData().has('COMPONENT_KEY'))
		{
			slider.close();
			if(slider.getData().get('COMPONENT_KEY').validate())
			{
				this.servicePopup = BX.util.popup('',800,600);
				BX.ajax.runAction('seo.api.business.extension.install', {
					data: {
						engineCode: this.provider.ENGINE_CODE,
						setup: slider.getData().get('COMPONENT_KEY').getSetup(),
						config: slider.getData().get('COMPONENT_KEY').getConfig()
					},
					analyticsLabel: {
						connect: "FBE",
						action: "connection_start",
						type: "connection"
					}
				}).then((response) => {
						if(response && response.data && response.data.authUrl)
						{
							this.servicePopup.location = response.data.authUrl;
						}
					},
					(response) => {
						this.servicePopup.close();
						BX.UI.Dialogs.MessageBox.alert(
							Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_ERROR_CONTENT'),
							Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_ERROR_TITLE')
						);
					});
			}
			else
			{

				slider.getData().get('COMPONENT_KEY').alert(
					Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_ERROR_TITLE'),
					Loc.getMessage('SEO_ADS_FACEBOOK_BUSINESS_LOGIN_FIELDS_ERROR_CONTENT'),
					(messageBox) => {
						messageBox.close();
						this.login();
					}
				);
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit