Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/modules/catalog/install/js/catalog/store-chart/
Upload File :
Current File : /var/www/homesaver/www/bitrix/modules/catalog/install/js/catalog/store-chart/config.php

<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

$currencyId = '';
$currencyFormat = '';
$currencySymbol = '';
if (\Bitrix\Main\Loader::includeModule('currency'))
{
	$currencyId = \Bitrix\Currency\CurrencyManager::getBaseCurrency();
	$currencyFormat = \CCurrencyLang::GetFormatDescription($currencyId);
	$currencySymbol = isset($currencyFormat['FORMAT_STRING']) ? trim(\CCurrencyLang::applyTemplate('', $currencyFormat['FORMAT_STRING'])) : '';
}

return [
	'js' => 'dist/store-chart.bundle.js',
	'css' => 'dist/store-chart.bundle.css',
	'rel' => [
		'main.popup',
		'currency.currency-core',
		'main.core',
		'ui.design-tokens',
		'ui.fonts.opensans',
	],
	'skip_core' => false,
	'settings' => [
		'currency' => $currencyId,
		'currencySymbol' => $currencySymbol,
		'currencyFormat' => $currencyFormat,
	]
];