@traund/orquezta-widget-calculator 1.1.1 → 1.1.2
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.
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/dist/module.js +16 -10
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/src/calculator.js +8 -8
- package/src/data/countries.js +2 -1
- package/src/helpers/flagsHelpers.js +1 -1
package/dist/module.js
CHANGED
|
@@ -1118,8 +1118,8 @@ var $9ea2f2608ea58c4b$export$2e2bcd8739ae039 = $9ea2f2608ea58c4b$var$loadFirebas
|
|
|
1118
1118
|
|
|
1119
1119
|
const $0f961b0b28f97b26$export$e5ad74579c86b003 = [
|
|
1120
1120
|
{
|
|
1121
|
-
code: "
|
|
1122
|
-
label: "WALLET
|
|
1121
|
+
code: "WLT",
|
|
1122
|
+
label: "WALLET",
|
|
1123
1123
|
prefix: "+1",
|
|
1124
1124
|
currency: "USDT"
|
|
1125
1125
|
},
|
|
@@ -1129,6 +1129,12 @@ const $0f961b0b28f97b26$export$e5ad74579c86b003 = [
|
|
|
1129
1129
|
prefix: "+1",
|
|
1130
1130
|
currency: "USD"
|
|
1131
1131
|
},
|
|
1132
|
+
{
|
|
1133
|
+
code: "USDT",
|
|
1134
|
+
label: "USDT",
|
|
1135
|
+
prefix: "+1",
|
|
1136
|
+
currency: "USDT"
|
|
1137
|
+
},
|
|
1132
1138
|
{
|
|
1133
1139
|
code: "AD",
|
|
1134
1140
|
label: "Andorra",
|
|
@@ -2477,7 +2483,7 @@ const $61ae9c76249a96f4$var$FlagsHelpers = (props)=>{
|
|
|
2477
2483
|
let code = props.code && props.code.toLowerCase();
|
|
2478
2484
|
if (code == "ach") code = "us";
|
|
2479
2485
|
let url = {
|
|
2480
|
-
'
|
|
2486
|
+
'wlt': 'https://images-traund.s3.amazonaws.com/payment-methods/Traund.svg',
|
|
2481
2487
|
'paypal': 'https://images-traund.s3.amazonaws.com/payment-methods/paypal.svg',
|
|
2482
2488
|
'usdt': 'https://images-traund.s3.amazonaws.com/payment-methods/Tether.svg',
|
|
2483
2489
|
'wise': 'https://images-traund.s3.amazonaws.com/payment-methods/Wise.svg',
|
|
@@ -2763,7 +2769,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
2763
2769
|
fromExchangeRate: from.exchangeRate,
|
|
2764
2770
|
fromCurrencyValue: from.currency,
|
|
2765
2771
|
toCurrencyValue: to.currency,
|
|
2766
|
-
fromCountryValue: from.country === "TR" ? "
|
|
2772
|
+
fromCountryValue: from.country === "TR" ? "WLT" : from.country,
|
|
2767
2773
|
toCountryValue: to.country,
|
|
2768
2774
|
coupon: data.coupon,
|
|
2769
2775
|
plus: data.coupon ? data.promo : 0,
|
|
@@ -2853,7 +2859,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
2853
2859
|
"US",
|
|
2854
2860
|
"VE",
|
|
2855
2861
|
"ES",
|
|
2856
|
-
"
|
|
2862
|
+
"WLT"
|
|
2857
2863
|
];
|
|
2858
2864
|
const rates = {};
|
|
2859
2865
|
let body = {
|
|
@@ -2873,7 +2879,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
2873
2879
|
};
|
|
2874
2880
|
let usdRate = "";
|
|
2875
2881
|
if (!rates.hasOwnProperty(c)) {
|
|
2876
|
-
let forceUSD = c == "USDT" || c == "
|
|
2882
|
+
let forceUSD = c == "USDT" || c == "WLT";
|
|
2877
2883
|
currency = (0, $0f961b0b28f97b26$export$e5ad74579c86b003).find((country)=>country.code == (forceUSD ? "US" : c)).currency;
|
|
2878
2884
|
usdRate = currency == "USD" ? {
|
|
2879
2885
|
result: 1
|
|
@@ -2994,7 +3000,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
2994
3000
|
});
|
|
2995
3001
|
};
|
|
2996
3002
|
updateLimits = (selectedMethod)=>{
|
|
2997
|
-
const countryData = this.state.calculator[this.state.fromCountryValue == "TR" ? "
|
|
3003
|
+
const countryData = this.state.calculator[this.state.fromCountryValue == "TR" ? "WLT" : this.state.fromCountryValue];
|
|
2998
3004
|
let { countryMin: countryMin, countryMax: countryMax, usdBuy: usdBuy } = countryData;
|
|
2999
3005
|
let { usdSell: usdSell } = countryData.countryTo[this.state.toCountryValue || "US"];
|
|
3000
3006
|
if (this.state.paymentMethods && this.state.paymentMethods.length && this.state.paymentMethods[0].isWallet && this.state.paymentMethods[0].isActive) //usdBuy = 1;
|
|
@@ -3133,12 +3139,12 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
3133
3139
|
plus: 0
|
|
3134
3140
|
});
|
|
3135
3141
|
if (this.state.recalc) clearTimeout(this.state.recalc);
|
|
3136
|
-
let { newAmountSender: newAmountSender } = (0, $d148f4b6315cfc41$export$9bf65ee82f4648c8)(this.state.fromCountryValue === "
|
|
3142
|
+
let { newAmountSender: newAmountSender } = (0, $d148f4b6315cfc41$export$9bf65ee82f4648c8)(this.state.fromCountryValue === "WLT" ? "TR" : this.state.fromCountryValue, this.state.toCountryValue, this.state.sendValue, this.state.receivedValue);
|
|
3137
3143
|
let model = {
|
|
3138
3144
|
coupon: this.state.couponValue,
|
|
3139
3145
|
from: {
|
|
3140
3146
|
amount: newAmountSender,
|
|
3141
|
-
country: this.state.fromCountryValue === "
|
|
3147
|
+
country: this.state.fromCountryValue === "WLT" ? "TR" : this.state.fromCountryValue,
|
|
3142
3148
|
currency: this.state.fromCurrencyValue
|
|
3143
3149
|
},
|
|
3144
3150
|
to: {
|
|
@@ -3743,7 +3749,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
3743
3749
|
code: option.code == "PE-USD" ? "PE" : option.code
|
|
3744
3750
|
})
|
|
3745
3751
|
}),
|
|
3746
|
-
option.currency
|
|
3752
|
+
option.code === "WLT" ? "WLT" : option.code === "USDT" ? "USDT" : option.currency
|
|
3747
3753
|
]
|
|
3748
3754
|
}),
|
|
3749
3755
|
disableClearable: true,
|