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/landing/imageeditor/src/internal/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/landing/imageeditor/src/internal/path.resolver.js
const assetPath = '/bitrix/js/main/imageeditor/external/photoeditorsdk/assets';
const landingAssetsPath = '/bitrix/images/landing/imageeditor/assets';

export default function pathResolver(path)
{
	if (path.includes('sites_recommended_transform_default'))
	{
		const [, fileName] = path.split('sites_recommended_transform_default');
		return `${assetPath}/ui/desktop/editor/controls/transform/ratios/imgly_transform_common_4-3${fileName}`;
	}

	if (path.includes('sites_recommended_transform_retina'))
	{
		const [, fileName] = path.split('sites_recommended_transform_retina');
		return `${assetPath}/ui/desktop/editor/controls/transform/ratios/imgly_transform_common_4-3${fileName}`;
	}

	if (path.includes('landing-transform-3-4'))
	{
		const [, fileName] = path.split('landing-transform-3-4');
		return `${landingAssetsPath}/transform/ratios/landing-transform-3-4${fileName}`;
	}

	if (path.includes('landing-transform-4-3'))
	{
		const [, fileName] = path.split('landing-transform-4-3');
		return `${landingAssetsPath}/transform/ratios/landing-transform-4-3${fileName}`;
	}

	if (path.includes('landing-transform-9-16'))
	{
		const [, fileName] = path.split('landing-transform-9-16');
		return `${landingAssetsPath}/transform/ratios/landing-transform-9-16${fileName}`;
	}

	if (path.includes('landing-transform-16-9'))
	{
		const [, fileName] = path.split('landing-transform-16-9');
		return `${landingAssetsPath}/transform/ratios/landing-transform-16-9${fileName}`;
	}

	if (path.includes('landing-transform-1-1'))
	{
		const [, fileName] = path.split('landing-transform-1-1');
		return `${landingAssetsPath}/transform/ratios/landing-transform-1-1${fileName}`;
	}

	if (path.includes('landing-transform-custom'))
	{
		const [, fileName] = path.split('landing-transform-custom');
		return `${landingAssetsPath}/transform/ratios/landing-transform-custom${fileName}`;
	}

	return path;
}

Youez - 2016 - github.com/yon3zu
LinuXploit