403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/info-helper/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/ui/info-helper/src/info-helper.js
import { Type } from 'main.core';
import { SliderProvider } from './providers/slider-provider';

export class InfoHelper
{
	static frameUrlTemplate : '';
	static frameNode : null;
	static popupLoader : null;
	static availableDomainList : null;
	static frameUrl: '';
	static inited: false;
	static sliderProviderForOldFormat: null;

	static init(params): void
	{
		this.sliderProviderForOldFormat = new SliderProvider({
			width: 700,
			frameUrlTemplate: params.frameUrlTemplate,
		});
	}

	static __showExternal(code, option): void
	{
		this.sliderProviderForOldFormat?.__showExternal(code, option);
	}

	static show(code, params): void
	{
		if (!Type.isPlainObject(params))
		{
			params = {};
		}

		this.init({});
		this.sliderProviderForOldFormat?.show(code, params);
	}

	static close(): void
	{
		this.sliderProviderForOldFormat?.close();
	}

	static getContent()
	{
		return this.sliderProviderForOldFormat?.getContent();
	}

	static getFrame()
	{
		return this.sliderProviderForOldFormat?.getFrame();
	}

	static showFrame(frame)
	{
		this.sliderProviderForOldFormat?.showFrame(frame);
	}

	static getLoader()
	{
		return this.sliderProviderForOldFormat?.getLoader();
	}

	static getSliderId(): string
	{
		return this.sliderProviderForOldFormat?.getId();
	}

	static getSlider()
	{
		return this.sliderProviderForOldFormat?.getSlider();
	}

	static reloadParent(): void
	{
		let slider = false;
		const sliderTop = BX.SidePanel.Instance.getTopSlider();

		if (sliderTop)
		{
			slider = BX.SidePanel.Instance.getPreviousSlider(sliderTop);
		}

		if (slider)
		{
			slider.reload();
		}
		else
		{
			window.location.reload();
		}
	}

	static isOpen(): boolean
	{
		return this.sliderProviderForOldFormat?.isOpen();
	}

	static isInited(): boolean
	{
		return this.inited;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit