// Module ID: 13752 // Function ID: 13753 // Name: isSupportedCurrency // Dependencies: [13669, 13753] // Module 13752 (isSupportedCurrency) import _formatToParts from "_formatToParts" /* 13669 */; import _mod13753 from "module_13753" /* 13753 */; require = arg1; const dependencyMap = arg6; function isSupportedCurrency(arr3, locale) { let str = locale; if (undefined === locale) { str = "en"; } try { const obj = { style: "currency", currencyDisplay: "name", currency: null }; obj[2] = arr3; const memoizedNumberFormat = _formatToParts.createMemoizedNumberFormat(str, obj); const str2 = memoizedNumberFormat.format(123); if (str2.substring(0, 3) !== arr3) { if (str3.substring(str3.length - 3) !== arr3) { return true; } } return false; } catch (err) { } } arg5.getSupportedCurrencies = function getSupportedCurrencies(locale) { const items = []; const currencies = _mod13753.currencies; for (let num = 0; num < currencies.length; num = num + 1) { let arr3 = currencies[num]; let tmp = num; if (3 === arr3.length) { let tmp8 = isSupportedCurrency; if (isSupportedCurrency(arr3, locale)) { let arr = items.push(arr3); } } else if (5 === arr3.length) { if ("~" === arr3[3]) { let indexOf = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf; let index = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(arr3[2]); let indexOf2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf; let index1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(arr3[4]); if (index <= index1) { do { let sum = arr3.substring(0, 2) + "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[index]; let tmp5 = isSupportedCurrency; let tmp6 = index; if (isSupportedCurrency(sum, locale)) { arr = items.push(sum); } index = index + 1; } while (index <= index1); } } } } return items; };