@ape.swap/bonds-sdk 1.0.138 → 1.0.139

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { jsxs as _jsxs, jsx as _jsx } from "theme-ui/jsx-runtime";
13
13
  /** @jsxImportSource theme-ui */
14
14
  import React, { useEffect, useState } from 'react';
15
- import { Flex, ThemeUIProvider, Input } from 'theme-ui';
15
+ import { Flex, ThemeUIProvider } from 'theme-ui';
16
16
  import { useWeb3React } from '@web3-react/core';
17
17
  import { defaultTheme } from '../../theme';
18
18
  import '../../scss/BondModal.scss';
@@ -23,6 +23,7 @@ import axios from 'axios';
23
23
  import { BigNumber } from 'bignumber.js';
24
24
  import { getFirstNonZeroDigits } from '../../utils/roundNumber';
25
25
  import { useNavigate } from 'react-router-dom';
26
+ import NumericInput from '../uikit/Input/NumericInput';
26
27
  var BondModal = function (_a) {
27
28
  var isOpen = _a.isOpen, onClose = _a.onClose, bondAddress = _a.bondAddress;
28
29
  if (!isOpen)
@@ -99,7 +100,7 @@ var BondModal = function (_a) {
99
100
  // };
100
101
  return (_jsx(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: bondData.map(function (bond) {
101
102
  var _a, _b, _c, _d, _e, _f, _g;
102
- return (_jsx(React.Fragment, { children: _jsx(Flex, __assign({ className: "modal modal-backdrop" }, { children: _jsxs(Flex, __assign({ className: "modal modal-content" }, { children: [isActive && account && (_jsxs("p", { children: ["Wallet Address: ", account] })), _jsxs(Flex, __assign({ className: "modal modal-header" }, { children: [_jsx(Flex, __assign({ className: "new", onClick: function () { return projectInfo(bond); } }, { children: "NEW" }), bond.billAddress), _jsxs(Flex, __assign({ className: "project-info", onClick: function () { return projectInfo(bond); } }, { children: ["Project Info", _jsx(Flex, __assign({ className: "project-info icon" }, { children: _jsx(Svg, { icon: "expand" }) }))] }), bond.billAddress), _jsx(Flex, __assign({ className: "svg-close", onClick: onClose }, { children: _jsx(Svg, { icon: "close" }) }))] })), _jsxs(Flex, __assign({ className: "modal-container table-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-container title-container" }, { children: [_jsx(Flex, __assign({ className: "title-container bond" }, { children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName })), _jsxs(Flex, __assign({ className: "title-container bond-price" }, { children: [_jsxs(Flex, __assign({ className: "bond-price price" }, { children: ["$", earnTokenPrice(bond)] })), _jsxs(Flex, __assign({ className: "bond-price discounted" }, { children: ["$", discountEarnTokenPrice(bond)] }))] }))] })), _jsx(Flex, __assign({ className: "modal-container description-container" }, { children: bond === null || bond === void 0 ? void 0 : bond.shortDescription })), _jsxs(Flex, __assign({ className: "modal-container blocks-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-block column-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)) }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Discount", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), "".concat((_a = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _a === void 0 ? void 0 : _a.toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-arr" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["ARR", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), "".concat(((((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) * 365) / vestingTime((_c = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _c !== void 0 ? _c : 0).days).toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-term" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Terms", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), vestingTime((_d = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _d !== void 0 ? _d : 0).days ? "".concat(vestingTime((_e = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _e !== void 0 ? _e : 0).days, " D") : '-'] })), _jsxs(Flex, __assign({ className: "modal-block column-maxbuy" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Max Buy", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), (_f = parseFloat(maxBuy(bond).toFixed(0))) === null || _f === void 0 ? void 0 : _f.toLocaleString('en-US')] }))] })), _jsxs(Flex, __assign({ className: "modal-container text-container" }, { children: [_jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsx("div", { children: "You spend:" }), _jsxs("div", { children: ["0 ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName, " = $ 0"] })] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs("div", { children: ["Premium: ", _jsx(Svg, { icon: "questionFill", width: "15px" })] }), _jsx("div", { children: "$ 0" })] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs("div", { children: ["You get (over ", vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days, " days):"] }), _jsxs("div", { children: ["0 ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ 0"] })] }))] })), _jsxs(Flex, __assign({ className: "modal-container input-container" }, { children: [_jsx(Flex, __assign({ className: "input-container input" }, { children: _jsx(Input, { type: "number", className: "number-input", placeholder: "0.0", value: inputValue, onChange: handleInputChange }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: _jsxs(Button, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] }) }))] }))] }))] })) })) }, bond.billAddress));
103
+ return (_jsx(React.Fragment, { children: _jsx(Flex, __assign({ className: "modal modal-backdrop" }, { children: _jsxs(Flex, __assign({ className: "modal modal-content" }, { children: [isActive && account && (_jsxs("p", { children: ["Wallet Address: ", account] })), _jsxs(Flex, __assign({ className: "modal modal-header" }, { children: [_jsx(Flex, __assign({ className: "new", onClick: function () { return projectInfo(bond); } }, { children: "NEW" }), bond.billAddress), _jsxs(Flex, __assign({ className: "project-info", onClick: function () { return projectInfo(bond); } }, { children: ["Project Info", _jsx(Flex, __assign({ className: "project-info icon" }, { children: _jsx(Svg, { icon: "expand" }) }))] }), bond.billAddress), _jsx(Flex, __assign({ className: "svg-close", onClick: onClose }, { children: _jsx(Svg, { icon: "close" }) }))] })), _jsxs(Flex, __assign({ className: "modal-container table-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-container title-container" }, { children: [_jsx(Flex, __assign({ className: "title-container bond" }, { children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName })), _jsxs(Flex, __assign({ className: "title-container bond-price" }, { children: [_jsxs(Flex, __assign({ className: "bond-price price" }, { children: ["$", earnTokenPrice(bond)] })), _jsxs(Flex, __assign({ className: "bond-price discounted" }, { children: ["$", discountEarnTokenPrice(bond)] }))] }))] })), _jsx(Flex, __assign({ className: "modal-container description-container" }, { children: bond === null || bond === void 0 ? void 0 : bond.shortDescription })), _jsxs(Flex, __assign({ className: "modal-container blocks-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-block column-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)) }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Discount", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), "".concat((_a = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _a === void 0 ? void 0 : _a.toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-arr" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["ARR", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), "".concat(((((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) * 365) / vestingTime((_c = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _c !== void 0 ? _c : 0).days).toFixed(2), "%")] })), _jsxs(Flex, __assign({ className: "modal-block column-term" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Terms", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), vestingTime((_d = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _d !== void 0 ? _d : 0).days ? "".concat(vestingTime((_e = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _e !== void 0 ? _e : 0).days, " D") : '-'] })), _jsxs(Flex, __assign({ className: "modal-block column-maxbuy" }, { children: [_jsxs(Flex, __assign({ className: "block-header header" }, { children: ["Max Buy", _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionFill", width: "15px" }) }))] })), (_f = parseFloat(maxBuy(bond).toFixed(0))) === null || _f === void 0 ? void 0 : _f.toLocaleString('en-US')] }))] })), _jsxs(Flex, __assign({ className: "modal-container text-container" }, { children: [_jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsx("div", { children: "You spend:" }), _jsxs("div", { children: ["0 ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName, " = $ 0"] })] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs("div", { children: ["Premium: ", _jsx(Svg, { icon: "questionFill", width: "15px" })] }), _jsx("div", { children: "$ 0" })] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs("div", { children: ["You get (over ", vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days, " days):"] }), _jsxs("div", { children: ["0 ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ 0"] })] }))] })), _jsxs(Flex, __assign({ className: "modal-container input-container" }, { children: [_jsx(Flex, __assign({ className: "input-container input" }, { children: _jsx(NumericInput, { placeholder: "0.0", value: inputValue, onUserInput: function () { return handleInputChange; } }) })), _jsx(Flex, __assign({ className: "input-container token" }, { children: bond === null || bond === void 0 ? void 0 : bond.principalTokenName }))] })), _jsxs(Flex, __assign({ className: "modal-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.principalTokenName] }) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: _jsxs(Button, { children: ["Buy ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName] }) }))] }))] }))] })) })) }, bond.billAddress));
103
104
  }) })));
104
105
  };
105
106
  export default BondModal;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ProgressBarProps {
3
+ value: number;
4
+ color?: string;
5
+ }
6
+ declare const ProgressBar: React.FC<ProgressBarProps>;
7
+ export default ProgressBar;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "theme-ui/jsx-runtime";
13
+ import { Box } from 'theme-ui';
14
+ import { Flex } from '../uikit';
15
+ var ProgressBar = function (_a) {
16
+ var value = _a.value, _b = _a.color, color = _b === void 0 ? 'text' : _b;
17
+ return (_jsx(Flex, __assign({ sx: { width: ['100px', '100px', '100px', '100%'], alignItems: 'center', flexDirection: 'row', mt: '5px' } }, { children: _jsx(Box, __assign({ sx: {
18
+ width: '100%',
19
+ height: '5px',
20
+ backgroundColor: 'white4',
21
+ borderRadius: '10px',
22
+ overflow: 'hidden',
23
+ } }, { children: _jsx(Box, { sx: {
24
+ width: "".concat(value <= 3 ? 3 : value, "%"),
25
+ background: color,
26
+ borderRadius: '10px',
27
+ height: '100%',
28
+ } }) })) })));
29
+ };
30
+ export default ProgressBar;
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ThemeUIStyleObject } from 'theme-ui';
3
+ export interface ProgressBarWrapperProps {
4
+ title?: string;
5
+ value?: React.ReactNode;
6
+ value2Direction?: 'column' | 'row';
7
+ toolTip?: string;
8
+ toolTipPlacement?: 'topLeft' | 'topRight' | 'bottomRight' | 'bottomLeft';
9
+ toolTipTransform?: string;
10
+ style?: ThemeUIStyleObject;
11
+ showTooltip?: boolean;
12
+ }
13
+ declare const _default: React.NamedExoticComponent<ProgressBarWrapperProps>;
14
+ export default _default;
@@ -0,0 +1,23 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
+ import React from 'react';
14
+ import { useTranslation } from '../../contexts/Localization';
15
+ import { styles } from './styles';
16
+ import { Flex, Skeleton, Text } from '../uikit';
17
+ import TooltipBubble from '../uikit/Tooltip';
18
+ var ProgressBarWrapper = function (_a) {
19
+ var title = _a.title, value = _a.value, style = _a.style, showTooltip = _a.showTooltip, toolTipPlacement = _a.toolTipPlacement, toolTipTransform = _a.toolTipTransform, toolTip = _a.toolTip;
20
+ var t = useTranslation().t;
21
+ return (_jsxs(Flex, __assign({ sx: style }, { children: [_jsx(Flex, __assign({ sx: { alignItems: 'center' } }, { children: _jsx(Text, __assign({ sx: styles.titleText }, { children: t("".concat(title)) })) })), showTooltip ? (_jsx(Flex, __assign({ sx: { alignItems: 'center', width: '100%' } }, { children: _jsx(TooltipBubble, __assign({ placement: toolTipPlacement, transformTip: toolTipTransform, body: _jsx(Flex, __assign({ sx: { justifyContent: 'center' } }, { children: toolTip })), width: "250px" }, { children: _jsx(Flex, __assign({ sx: { justifyContent: 'center', alignItems: 'center', width: '127px' } }, { children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) })) })) }))) : (_jsx(Flex, __assign({ sx: { justifyContent: 'center', alignItems: 'center' } }, { children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) })))] })));
22
+ };
23
+ export default React.memo(ProgressBarWrapper);
@@ -0,0 +1,2 @@
1
+ import { ThemeUIStyleObject } from 'theme-ui';
2
+ export declare const styles: Record<'listCardContainer' | 'listViewContainer' | 'titleContainer' | 'infoContentMobile' | 'tokensContainer' | 'titleText' | 'skeleton' | 'valueText' | 'secondaryText' | 'cardContentContainer' | 'animationDiv' | 'expandedWrapper', ThemeUIStyleObject>;
@@ -0,0 +1,82 @@
1
+ export var styles = {
2
+ listCardContainer: {
3
+ borderRadius: 0,
4
+ flexDirection: ['column', 'column', 'column', 'row'],
5
+ alignItems: 'center',
6
+ justifyContent: 'space-between',
7
+ background: 'white2',
8
+ borderBottom: '1px solid rgba(226, 226, 226, .2)',
9
+ padding: ['10px 20px 10px 20px', '10px 20px 10px 20px', '10px 20px 10px 20px', '0 30px 0 30px'],
10
+ margin: '0 10px 0 10px',
11
+ maxWidth: ['500px', '500px', '500px', '100%'],
12
+ minWidth: '300px',
13
+ width: '100%',
14
+ height: ['unset', 'unset', 'unset', '86px'],
15
+ },
16
+ listViewContainer: {
17
+ display: 'flex',
18
+ flexDirection: 'column',
19
+ alignItems: 'center',
20
+ width: '100%',
21
+ },
22
+ titleContainer: {
23
+ width: '100%',
24
+ justifyContent: 'space-between',
25
+ my: '5px',
26
+ },
27
+ infoContentMobile: {
28
+ display: ['flex', 'flex', 'flex', 'none'],
29
+ alignItems: 'center',
30
+ },
31
+ tokensContainer: {
32
+ alignItems: 'center',
33
+ height: '100%',
34
+ width: '100%',
35
+ },
36
+ titleText: {
37
+ opacity: 0.6,
38
+ fontSize: '12px',
39
+ lineHeight: ['16px', '16px', '16px', '24px'],
40
+ fontWeight: 400,
41
+ },
42
+ skeleton: {
43
+ width: ['45px', '45px', '60px'],
44
+ maxHeight: '18px',
45
+ minHeight: '18px',
46
+ },
47
+ valueText: {
48
+ fontSize: ['12px', '12px', '12px', '14px'],
49
+ color: 'primaryBright',
50
+ lineHeight: '16px',
51
+ fontWeight: 700,
52
+ mr: '5px',
53
+ display: 'flex',
54
+ alignItems: 'center',
55
+ },
56
+ secondaryText: {
57
+ fontSize: '12px',
58
+ color: 'gray',
59
+ lineHeight: '16px',
60
+ fontWeight: 400,
61
+ },
62
+ cardContentContainer: {
63
+ width: '100%',
64
+ height: '100%',
65
+ alignItems: 'center',
66
+ justifyContent: 'flex-end',
67
+ },
68
+ animationDiv: {
69
+ position: 'relative',
70
+ width: '100%',
71
+ maxWidth: ['500px', '500px', '500px', '100%'],
72
+ minWidth: '300px',
73
+ },
74
+ expandedWrapper: {
75
+ background: 'white3',
76
+ flexDirection: 'column',
77
+ justifyContent: 'space-between',
78
+ padding: '15px 10px',
79
+ flexWrap: 'wrap',
80
+ alignItems: 'center',
81
+ },
82
+ };
@@ -0,0 +1,11 @@
1
+ import { Language } from '../../contexts/Localization/types';
2
+ export declare const EN: Language;
3
+ export declare const ESES: Language;
4
+ export declare const JA: Language;
5
+ export declare const PTBR: Language;
6
+ export declare const RU: Language;
7
+ export declare const TR: Language;
8
+ export declare const ZHCN: Language;
9
+ export declare const ZHTW: Language;
10
+ export declare const languages: Record<string, Language>;
11
+ export declare const languageList: Language[];
@@ -0,0 +1,83 @@
1
+ // export const AR: Language = { locale: 'ar-SA', language: 'العربية', code: 'ar' }
2
+ // export const BN: Language = { locale: 'bn-BD', language: 'বাংলা', code: 'bn' }
3
+ export var EN = {
4
+ locale: 'en-US',
5
+ language: 'English',
6
+ code: 'en',
7
+ };
8
+ // export const DE: Language = { locale: 'de-DE', language: 'Deutsch', code: 'de' }
9
+ // export const EL: Language = { locale: 'el-GR', language: 'Ελληνικά', code: 'el' }
10
+ export var ESES = {
11
+ locale: 'es-ES',
12
+ language: 'Español',
13
+ code: 'es-ES',
14
+ };
15
+ // export const FI: Language = { locale: 'fi-FI', language: 'Suomalainen', code: 'fi' }
16
+ // export const FIL: Language = { locale: 'fil-PH', language: 'Filipino', code: 'fil' }
17
+ // export const FR: Language = { locale: 'fr-FR', language: 'Français', code: 'fr' }
18
+ // export const HI: Language = { locale: 'hi-IN', language: 'हिंदी', code: 'hi' }
19
+ // export const HU: Language = { locale: 'hu-HU', language: 'Magyar', code: 'hu' }
20
+ // export const ID: Language = { locale: 'id-ID', language: 'Bahasa Indonesia', code: 'id' }
21
+ // export const IT: Language = { locale: 'it-IT', language: 'Italiano', code: 'it' }
22
+ export var JA = { locale: 'ja-JP', language: '日本語', code: 'ja' };
23
+ // export const KO: Language = { locale: 'ko-KR', language: '한국어', code: 'ko' }
24
+ // export const NL: Language = { locale: 'nl-NL', language: 'Nederlands', code: 'nl' }
25
+ // export const PL: Language = { locale: 'pl-PL', language: 'Polski', code: 'pl' }
26
+ export var PTBR = {
27
+ locale: 'pt-BR',
28
+ language: 'Português (Brazil)',
29
+ code: 'pt-br',
30
+ };
31
+ // export const PTPT: Language = { locale: 'pt-PT', language: 'Português', code: 'pt-pt' }
32
+ // export const RO: Language = { locale: 'ro-RO', language: 'Română', code: 'ro' }
33
+ export var RU = {
34
+ locale: 'ru-RU',
35
+ language: 'Русский',
36
+ code: 'ru',
37
+ };
38
+ // export const SVSE: Language = { locale: 'sv-SE', language: 'Svenska', code: 'sv' }
39
+ // export const TA: Language = { locale: 'ta-IN', language: 'தமிழ்', code: 'ta' }
40
+ export var TR = { locale: 'tr-TR', language: 'Türkçe', code: 'tr' };
41
+ // export const UK: Language = { locale: 'uk-UA', language: 'Українська', code: 'uk' }
42
+ // export const VI: Language = { locale: 'vi-VN', language: 'Tiếng Việt', code: 'vi' }
43
+ export var ZHCN = {
44
+ locale: 'zh-CN',
45
+ language: '简体中文',
46
+ code: 'zh-cn',
47
+ };
48
+ export var ZHTW = {
49
+ locale: 'zh-TW',
50
+ language: '繁體中文',
51
+ code: 'zh-tw',
52
+ };
53
+ export var languages = {
54
+ // 'ar-SA': AR,
55
+ // 'bn-BD': BN,
56
+ 'en-US': EN,
57
+ // 'de-DE': DE,
58
+ // 'el-GR': EL,
59
+ 'es-ES': ESES,
60
+ // 'fi-FI': FI,
61
+ // 'fil-PH': FIL,
62
+ // 'fr-FR': FR,
63
+ // 'hi-IN': HI,
64
+ // 'hu-HU': HU,
65
+ // 'id-ID': ID,
66
+ // 'it-IT': IT,
67
+ 'ja-JP': JA,
68
+ // 'ko-KR': KO,
69
+ // 'nl-NL': NL,
70
+ // 'pl-PL': PL,
71
+ 'pt-BR': PTBR,
72
+ // 'pt-PT': PTPT,
73
+ // 'ro-RO': RO,
74
+ 'ru-RU': RU,
75
+ // 'sv-SE': SVSE,
76
+ // 'ta-IN': TA,
77
+ 'tr-TR': TR,
78
+ // 'uk-UA': UK,
79
+ // 'vi-VN': VI,
80
+ 'zh-CN': ZHCN,
81
+ 'zh-TW': ZHTW,
82
+ };
83
+ export var languageList = Object.values(languages);