@traund/orquezta-widget-calculator 1.0.3 → 1.0.4
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 +9 -8
- package/dist/index.js.map +1 -1
- package/dist/module.js +9 -8
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/src/core/endpoints.js +1 -1
- package/src/simulator.js +3 -3
- package/src/utils/calculateHelper.js +3 -2
- package/src/utils/operationsHelper.js +1 -1
- package/src/utils/rateHelper.js +1 -1
package/dist/module.js
CHANGED
|
@@ -2326,7 +2326,7 @@ var $49f826b4fff6422b$export$2e2bcd8739ae039 = $49f826b4fff6422b$var$Timer;
|
|
|
2326
2326
|
class $6f87a65d2d16a22f$var$EndPoints {
|
|
2327
2327
|
constructor(testMode = 'production', externalConfig = null){
|
|
2328
2328
|
this._testMode = testMode;
|
|
2329
|
-
this.baseUrl = externalConfig
|
|
2329
|
+
this.baseUrl = externalConfig?.backendUrl;
|
|
2330
2330
|
this.path_managment_operations = `${this.baseUrl}/handle-operations`;
|
|
2331
2331
|
}
|
|
2332
2332
|
get CALLBACK() {
|
|
@@ -4806,7 +4806,7 @@ var $ee6357194386215f$export$2e2bcd8739ae039 = $ee6357194386215f$var$TransferUse
|
|
|
4806
4806
|
|
|
4807
4807
|
class $9ac168cb9a22c932$var$RateHelper {
|
|
4808
4808
|
constructor(testMode = 'production', externalConfig = null){
|
|
4809
|
-
this.endpoints = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(testMode, externalConfig
|
|
4809
|
+
this.endpoints = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(testMode, externalConfig);
|
|
4810
4810
|
}
|
|
4811
4811
|
async getExchangeRate(currencyFrom, currencyTo) {
|
|
4812
4812
|
try {
|
|
@@ -4839,11 +4839,12 @@ var $9ac168cb9a22c932$export$2e2bcd8739ae039 = $9ac168cb9a22c932$var$RateHelper;
|
|
|
4839
4839
|
|
|
4840
4840
|
|
|
4841
4841
|
class $006ea4d50140482f$var$CalculateHelper {
|
|
4842
|
-
constructor(testMode = 'production'){
|
|
4842
|
+
constructor(testMode = 'production', config = null){
|
|
4843
4843
|
this._testMode = testMode;
|
|
4844
|
+
this.config = config;
|
|
4844
4845
|
}
|
|
4845
4846
|
async getCaculateRates(countriesData) {
|
|
4846
|
-
const rateHelper = new (0, $9ac168cb9a22c932$export$2e2bcd8739ae039)(this._testMode);
|
|
4847
|
+
const rateHelper = new (0, $9ac168cb9a22c932$export$2e2bcd8739ae039)(this._testMode, this.config);
|
|
4847
4848
|
const middleCurrency = "USD";
|
|
4848
4849
|
for(var key in countriesData)if (countriesData.hasOwnProperty(key)) {
|
|
4849
4850
|
let itemCountry = countriesData[key];
|
|
@@ -5408,7 +5409,7 @@ function $6bf8ac1124443ad4$export$354ffc3468f9d23e(calculateType, day) {
|
|
|
5408
5409
|
|
|
5409
5410
|
class $aeba0491dead64b0$var$OperationsHelper {
|
|
5410
5411
|
constructor(testMode = 'production', secretKey = null, config = null){
|
|
5411
|
-
this.endpoints = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(testMode, config
|
|
5412
|
+
this.endpoints = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(testMode, config);
|
|
5412
5413
|
this.reference = secretKey;
|
|
5413
5414
|
this.FEES = {
|
|
5414
5415
|
"ach": {
|
|
@@ -7019,9 +7020,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
7019
7020
|
*/ const { locale: locale, pathname: pathname, locales: locales } = props;
|
|
7020
7021
|
const content = locale === "es" ? (0, $af3f68c5ac2f1e3c$export$2e2bcd8739ae039) : (0, $18d8bd1c5cecbd36$export$2e2bcd8739ae039);
|
|
7021
7022
|
const classes = $c4ee7a827d19e0d2$var$useStyles();
|
|
7022
|
-
const __ENDPOINTS = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(props.testMode, props.config
|
|
7023
|
-
const __calculateHelper = new (0, $006ea4d50140482f$export$2e2bcd8739ae039)(props.testMode);
|
|
7024
|
-
const __operationsHelper = new (0, $aeba0491dead64b0$export$2e2bcd8739ae039)(props.testMode, props.reference);
|
|
7023
|
+
const __ENDPOINTS = new (0, $6f87a65d2d16a22f$export$2e2bcd8739ae039)(props.testMode, props.config);
|
|
7024
|
+
const __calculateHelper = new (0, $006ea4d50140482f$export$2e2bcd8739ae039)(props.testMode, props.config);
|
|
7025
|
+
const __operationsHelper = new (0, $aeba0491dead64b0$export$2e2bcd8739ae039)(props.testMode, props.reference, props.config);
|
|
7025
7026
|
const __firebase = (0, $9ea2f2608ea58c4b$export$2e2bcd8739ae039)(props.testMode, props.config);
|
|
7026
7027
|
const [simulatorMode, setSimulatorMode] = (0, $5OpyM$useState)((0, $3217af864b2b4eed$export$e3d7a3ffb08d3f7a).SEND);
|
|
7027
7028
|
const [suscribedGlobalOptions, setSuscribedGlobalOptions] = (0, $5OpyM$useState)(false);
|