@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/index.js
CHANGED
|
@@ -1129,8 +1129,8 @@ var $9a120cc4db7b0570$export$2e2bcd8739ae039 = $9a120cc4db7b0570$var$loadFirebas
|
|
|
1129
1129
|
|
|
1130
1130
|
const $238b5c7df6f88375$export$e5ad74579c86b003 = [
|
|
1131
1131
|
{
|
|
1132
|
-
code: "
|
|
1133
|
-
label: "WALLET
|
|
1132
|
+
code: "WLT",
|
|
1133
|
+
label: "WALLET",
|
|
1134
1134
|
prefix: "+1",
|
|
1135
1135
|
currency: "USDT"
|
|
1136
1136
|
},
|
|
@@ -1140,6 +1140,12 @@ const $238b5c7df6f88375$export$e5ad74579c86b003 = [
|
|
|
1140
1140
|
prefix: "+1",
|
|
1141
1141
|
currency: "USD"
|
|
1142
1142
|
},
|
|
1143
|
+
{
|
|
1144
|
+
code: "USDT",
|
|
1145
|
+
label: "USDT",
|
|
1146
|
+
prefix: "+1",
|
|
1147
|
+
currency: "USDT"
|
|
1148
|
+
},
|
|
1143
1149
|
{
|
|
1144
1150
|
code: "AD",
|
|
1145
1151
|
label: "Andorra",
|
|
@@ -2488,7 +2494,7 @@ const $0b469f7a35a164ef$var$FlagsHelpers = (props)=>{
|
|
|
2488
2494
|
let code = props.code && props.code.toLowerCase();
|
|
2489
2495
|
if (code == "ach") code = "us";
|
|
2490
2496
|
let url = {
|
|
2491
|
-
'
|
|
2497
|
+
'wlt': 'https://images-traund.s3.amazonaws.com/payment-methods/Traund.svg',
|
|
2492
2498
|
'paypal': 'https://images-traund.s3.amazonaws.com/payment-methods/paypal.svg',
|
|
2493
2499
|
'usdt': 'https://images-traund.s3.amazonaws.com/payment-methods/Tether.svg',
|
|
2494
2500
|
'wise': 'https://images-traund.s3.amazonaws.com/payment-methods/Wise.svg',
|
|
@@ -2774,7 +2780,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
2774
2780
|
fromExchangeRate: from.exchangeRate,
|
|
2775
2781
|
fromCurrencyValue: from.currency,
|
|
2776
2782
|
toCurrencyValue: to.currency,
|
|
2777
|
-
fromCountryValue: from.country === "TR" ? "
|
|
2783
|
+
fromCountryValue: from.country === "TR" ? "WLT" : from.country,
|
|
2778
2784
|
toCountryValue: to.country,
|
|
2779
2785
|
coupon: data.coupon,
|
|
2780
2786
|
plus: data.coupon ? data.promo : 0,
|
|
@@ -2864,7 +2870,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
2864
2870
|
"US",
|
|
2865
2871
|
"VE",
|
|
2866
2872
|
"ES",
|
|
2867
|
-
"
|
|
2873
|
+
"WLT"
|
|
2868
2874
|
];
|
|
2869
2875
|
const rates = {};
|
|
2870
2876
|
let body = {
|
|
@@ -2884,7 +2890,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
2884
2890
|
};
|
|
2885
2891
|
let usdRate = "";
|
|
2886
2892
|
if (!rates.hasOwnProperty(c)) {
|
|
2887
|
-
let forceUSD = c == "USDT" || c == "
|
|
2893
|
+
let forceUSD = c == "USDT" || c == "WLT";
|
|
2888
2894
|
currency = (0, $238b5c7df6f88375$export$e5ad74579c86b003).find((country)=>country.code == (forceUSD ? "US" : c)).currency;
|
|
2889
2895
|
usdRate = currency == "USD" ? {
|
|
2890
2896
|
result: 1
|
|
@@ -3005,7 +3011,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
3005
3011
|
});
|
|
3006
3012
|
};
|
|
3007
3013
|
updateLimits = (selectedMethod)=>{
|
|
3008
|
-
const countryData = this.state.calculator[this.state.fromCountryValue == "TR" ? "
|
|
3014
|
+
const countryData = this.state.calculator[this.state.fromCountryValue == "TR" ? "WLT" : this.state.fromCountryValue];
|
|
3009
3015
|
let { countryMin: countryMin, countryMax: countryMax, usdBuy: usdBuy } = countryData;
|
|
3010
3016
|
let { usdSell: usdSell } = countryData.countryTo[this.state.toCountryValue || "US"];
|
|
3011
3017
|
if (this.state.paymentMethods && this.state.paymentMethods.length && this.state.paymentMethods[0].isWallet && this.state.paymentMethods[0].isActive) //usdBuy = 1;
|
|
@@ -3144,12 +3150,12 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
3144
3150
|
plus: 0
|
|
3145
3151
|
});
|
|
3146
3152
|
if (this.state.recalc) clearTimeout(this.state.recalc);
|
|
3147
|
-
let { newAmountSender: newAmountSender } = (0, $f8857514bce27180$export$9bf65ee82f4648c8)(this.state.fromCountryValue === "
|
|
3153
|
+
let { newAmountSender: newAmountSender } = (0, $f8857514bce27180$export$9bf65ee82f4648c8)(this.state.fromCountryValue === "WLT" ? "TR" : this.state.fromCountryValue, this.state.toCountryValue, this.state.sendValue, this.state.receivedValue);
|
|
3148
3154
|
let model = {
|
|
3149
3155
|
coupon: this.state.couponValue,
|
|
3150
3156
|
from: {
|
|
3151
3157
|
amount: newAmountSender,
|
|
3152
|
-
country: this.state.fromCountryValue === "
|
|
3158
|
+
country: this.state.fromCountryValue === "WLT" ? "TR" : this.state.fromCountryValue,
|
|
3153
3159
|
currency: this.state.fromCurrencyValue
|
|
3154
3160
|
},
|
|
3155
3161
|
to: {
|
|
@@ -3754,7 +3760,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
|
|
|
3754
3760
|
code: option.code == "PE-USD" ? "PE" : option.code
|
|
3755
3761
|
})
|
|
3756
3762
|
}),
|
|
3757
|
-
option.currency
|
|
3763
|
+
option.code === "WLT" ? "WLT" : option.code === "USDT" ? "USDT" : option.currency
|
|
3758
3764
|
]
|
|
3759
3765
|
}),
|
|
3760
3766
|
disableClearable: true,
|