uawdijnntqw1x1x1
IP : 3.144.230.177
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
rostov.axolotls.ru
/
bitrix
/
js
/
currency
/
core_currency.min.js
/
/
(function(r){BX.namespace("BX.Currency");if(BX.Currency.defaultFormat){return}BX.mergeEx(BX.Currency,{currencyList:[],defaultFormat:{FORMAT_STRING:"#",DEC_POINT:".",THOUSANDS_SEP:" ",DECIMALS:2,HIDE_ZERO:"N"},setCurrencyFormat:function(r,t,e){var n=this.getCurrencyIndex(r),c=BX.clone(this.defaultFormat,true),i;e=!!e;if(n>-1&&!e){return}if(n===-1){n=this.currencyList.length}for(i in c){if(c.hasOwnProperty(i)&&typeof t[i]!=="undefined"){c[i]=t[i]}}this.currencyList[n]={currency:r,format:BX.clone(c,true)}},setCurrencies:function(r,t){var e;if(!!r&&BX.type.isArray(r)){for(e=0;e<r.length;e++){if(!!r[e].CURRENCY&&!!r[e].FORMAT){this.setCurrencyFormat(r[e].CURRENCY,r[e].FORMAT,t)}}}},getCurrencyFormat:function(r){var t=this.getCurrencyIndex(r);return t>-1?this.currencyList[t].format:false},getCurrencyIndex:function(r){var t,e=-1;if(this.currencyList.length===0){return e}for(t=0;t<this.currencyList.length;t++){if(this.currencyList[t].currency===r){e=t;break}}return e},clearCurrency:function(r){var t=this.getCurrencyIndex(r);if(t>-1)this.currencyList=BX.util.deleteFromArray(this.currencyList,t)},clean:function(){this.currencyList=[]},currencyFormat:function(r,t,e){var n="",c;e=!!e;c=this.getCurrencyFormat(t);if(!!c&&typeof c==="object"){c.CURRENT_DECIMALS=c.DECIMALS;if(c.HIDE_ZERO==="Y"&&r==parseInt(r,10))c.CURRENT_DECIMALS=0;n=BX.util.number_format(r,c.CURRENT_DECIMALS,c.DEC_POINT,c.THOUSANDS_SEP);if(e)n=c.FORMAT_STRING.replace(/(^|[^&])#/,"$1"+n)}return n},loadCurrencyFormat:function(r){return new Promise(function(t,e){var n=this.getCurrencyIndex(r);if(n>-1){t(this.currencyList[n].format)}else{BX.ajax.runAction("currency.format.get",{data:{currencyId:r}}).then(function(e){var n=e.data;this.setCurrencyFormat(r,n);t(n)}.bind(this)).catch(function(r){e(r.errors)})}}.bind(this))}})})(window); //# sourceMappingURL=core_currency.map.js
/var/www/axolotl/data/www/rostov.axolotls.ru/bitrix/js/currency/core_currency.min.js