@traund/orquezta-widget-calculator 1.1.2 → 1.1.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 +39 -31
- package/dist/index.js.map +1 -1
- package/dist/module.js +39 -31
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/src/calculator.js +1980 -1980
- package/src/components/inputAmount.js +22 -24
- package/src/simulator.js +14 -14
package/dist/module.js
CHANGED
|
@@ -2708,7 +2708,7 @@ class $f22028e81f385e47$var$Calculator extends (0, $5OpyM$Component) {
|
|
|
2708
2708
|
country: this.state.toCountryValue,
|
|
2709
2709
|
currency: this.state.toCurrencyValue
|
|
2710
2710
|
},
|
|
2711
|
-
timestamp:
|
|
2711
|
+
timestamp: Date.now()
|
|
2712
2712
|
};
|
|
2713
2713
|
try {
|
|
2714
2714
|
const transaction = await db.collection("transactions").add(model);
|
|
@@ -5648,7 +5648,6 @@ var $aeba0491dead64b0$export$2e2bcd8739ae039 = $aeba0491dead64b0$var$OperationsH
|
|
|
5648
5648
|
|
|
5649
5649
|
|
|
5650
5650
|
|
|
5651
|
-
|
|
5652
5651
|
const $5432d217b58057a8$var$componentStyles = {
|
|
5653
5652
|
root: {
|
|
5654
5653
|
fontFamily: "Poppins",
|
|
@@ -5854,7 +5853,7 @@ const $9e00e2be3bd88fb2$var$InputAmount = (props)=>{
|
|
|
5854
5853
|
}),
|
|
5855
5854
|
/*#__PURE__*/ (0, $5OpyM$jsx)((0, $5OpyM$muimaterialGrid2), {
|
|
5856
5855
|
size: {
|
|
5857
|
-
xs:
|
|
5856
|
+
xs: 7
|
|
5858
5857
|
},
|
|
5859
5858
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $5OpyM$muimaterialAutocomplete), {
|
|
5860
5859
|
disabled: user.isLoading || user.isDisabled,
|
|
@@ -5867,36 +5866,26 @@ const $9e00e2be3bd88fb2$var$InputAmount = (props)=>{
|
|
|
5867
5866
|
fontSize: 18
|
|
5868
5867
|
}
|
|
5869
5868
|
},
|
|
5870
|
-
|
|
5871
|
-
value:
|
|
5869
|
+
filterOptions: $9e00e2be3bd88fb2$var$filterOptions,
|
|
5870
|
+
value: transferOptions.find((x)=>x.code == selectedOption.code),
|
|
5872
5871
|
autoHighlight: true,
|
|
5873
|
-
getOptionLabel: (option)
|
|
5874
|
-
if (!option) return '';
|
|
5875
|
-
if (typeof option === 'string') return option;
|
|
5876
|
-
if (typeof option.currency === 'string') return option.currency;
|
|
5877
|
-
return '';
|
|
5878
|
-
},
|
|
5872
|
+
getOptionLabel: (option)=>`${option?.currency || ""}`,
|
|
5879
5873
|
renderOption: (props, option)=>{
|
|
5880
|
-
if (!option) return null;
|
|
5881
5874
|
const { key: key, ...restProps } = props;
|
|
5882
|
-
|
|
5883
|
-
const currency = option.currency || '';
|
|
5884
|
-
const flagCode = code === "PE-USD" ? "PE" : code;
|
|
5885
|
-
return /*#__PURE__*/ (0, $5OpyM$jsxs)((0, $5OpyM$muimaterialBox), {
|
|
5886
|
-
component: "li",
|
|
5887
|
-
...restProps,
|
|
5875
|
+
return /*#__PURE__*/ (0, $5OpyM$jsxs)((0, $5OpyM$Fragment), {
|
|
5888
5876
|
children: [
|
|
5889
5877
|
/*#__PURE__*/ (0, $5OpyM$jsx)("span", {
|
|
5890
5878
|
style: {
|
|
5891
5879
|
marginRight: "5px"
|
|
5892
5880
|
},
|
|
5893
5881
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $61ae9c76249a96f4$export$2e2bcd8739ae039), {
|
|
5894
|
-
code:
|
|
5882
|
+
code: option.code == "PE-USD" ? "PE" : option.code
|
|
5895
5883
|
})
|
|
5896
5884
|
}),
|
|
5897
|
-
|
|
5885
|
+
" ",
|
|
5886
|
+
option?.currency || ""
|
|
5898
5887
|
]
|
|
5899
|
-
}
|
|
5888
|
+
});
|
|
5900
5889
|
},
|
|
5901
5890
|
disableClearable: true,
|
|
5902
5891
|
renderInput: (params)=>/*#__PURE__*/ (0, $5OpyM$jsx)((0, $5OpyM$muimaterialPaper), {
|
|
@@ -5917,7 +5906,7 @@ const $9e00e2be3bd88fb2$var$InputAmount = (props)=>{
|
|
|
5917
5906
|
}
|
|
5918
5907
|
})
|
|
5919
5908
|
}),
|
|
5920
|
-
onChange:
|
|
5909
|
+
onChange: onChangeCountry
|
|
5921
5910
|
})
|
|
5922
5911
|
})
|
|
5923
5912
|
]
|
|
@@ -7883,7 +7872,7 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
7883
7872
|
}, [
|
|
7884
7873
|
simulatorMode
|
|
7885
7874
|
]);
|
|
7886
|
-
return /*#__PURE__*/ (0, $5OpyM$jsxs)(
|
|
7875
|
+
return /*#__PURE__*/ (0, $5OpyM$jsxs)("main", {
|
|
7887
7876
|
children: [
|
|
7888
7877
|
/*#__PURE__*/ (0, $5OpyM$jsx)("link", {
|
|
7889
7878
|
href: "https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap",
|
|
@@ -7973,6 +7962,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
7973
7962
|
size: {
|
|
7974
7963
|
xs: 12
|
|
7975
7964
|
},
|
|
7965
|
+
sx: {
|
|
7966
|
+
paddingBottom: "15px"
|
|
7967
|
+
},
|
|
7976
7968
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $9e00e2be3bd88fb2$export$2e2bcd8739ae039), {
|
|
7977
7969
|
id: "transfer-sender",
|
|
7978
7970
|
content: content,
|
|
@@ -7997,6 +7989,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
7997
7989
|
size: {
|
|
7998
7990
|
xs: 12
|
|
7999
7991
|
},
|
|
7992
|
+
sx: {
|
|
7993
|
+
paddingBottom: "15px"
|
|
7994
|
+
},
|
|
8000
7995
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $9e00e2be3bd88fb2$export$2e2bcd8739ae039), {
|
|
8001
7996
|
id: "transfer-receiver",
|
|
8002
7997
|
content: content,
|
|
@@ -8009,6 +8004,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8009
8004
|
size: {
|
|
8010
8005
|
xs: 12
|
|
8011
8006
|
},
|
|
8007
|
+
sx: {
|
|
8008
|
+
paddingBottom: "15px"
|
|
8009
|
+
},
|
|
8012
8010
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $9e00e2be3bd88fb2$export$2e2bcd8739ae039), {
|
|
8013
8011
|
id: "wallet-receiver",
|
|
8014
8012
|
content: content,
|
|
@@ -8032,6 +8030,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8032
8030
|
size: {
|
|
8033
8031
|
xs: 12
|
|
8034
8032
|
},
|
|
8033
|
+
sx: {
|
|
8034
|
+
paddingBottom: "15px"
|
|
8035
|
+
},
|
|
8035
8036
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $9e00e2be3bd88fb2$export$2e2bcd8739ae039), {
|
|
8036
8037
|
id: "collect-sender",
|
|
8037
8038
|
content: content,
|
|
@@ -8056,6 +8057,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8056
8057
|
size: {
|
|
8057
8058
|
xs: 12
|
|
8058
8059
|
},
|
|
8060
|
+
sx: {
|
|
8061
|
+
paddingBottom: "15px"
|
|
8062
|
+
},
|
|
8059
8063
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $9e00e2be3bd88fb2$export$2e2bcd8739ae039), {
|
|
8060
8064
|
id: "collect-receiver",
|
|
8061
8065
|
content: content,
|
|
@@ -8075,6 +8079,10 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8075
8079
|
size: {
|
|
8076
8080
|
xs: 12
|
|
8077
8081
|
},
|
|
8082
|
+
sx: {
|
|
8083
|
+
marginTop: "15px",
|
|
8084
|
+
marginBottom: "15px"
|
|
8085
|
+
},
|
|
8078
8086
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $8010ff186eb4c648$export$2e2bcd8739ae039), {
|
|
8079
8087
|
paymentMethods: receiver.paymentMethods,
|
|
8080
8088
|
onChange: handleOnchangePaymentMethod
|
|
@@ -8084,6 +8092,9 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8084
8092
|
size: {
|
|
8085
8093
|
xs: 12
|
|
8086
8094
|
},
|
|
8095
|
+
sx: {
|
|
8096
|
+
marginBottom: "15px"
|
|
8097
|
+
},
|
|
8087
8098
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $8389761474a96b2d$export$2e2bcd8739ae039), {
|
|
8088
8099
|
simulatorMode: simulatorMode,
|
|
8089
8100
|
transferType: sender.selectedOption.type,
|
|
@@ -8096,10 +8107,6 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8096
8107
|
size: {
|
|
8097
8108
|
xs: 12
|
|
8098
8109
|
},
|
|
8099
|
-
sx: {
|
|
8100
|
-
marginTop: "15px",
|
|
8101
|
-
marginBottom: "15px"
|
|
8102
|
-
},
|
|
8103
8110
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $5OpyM$muimaterialButton), {
|
|
8104
8111
|
className: classes.button,
|
|
8105
8112
|
variant: "contained",
|
|
@@ -8115,7 +8122,8 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8115
8122
|
},
|
|
8116
8123
|
sx: {
|
|
8117
8124
|
textAlign: "center",
|
|
8118
|
-
marginTop: "15px"
|
|
8125
|
+
marginTop: "15px",
|
|
8126
|
+
marginBottom: "15px"
|
|
8119
8127
|
},
|
|
8120
8128
|
children: recalculate && sender.selectedOption.type != (0, $3217af864b2b4eed$export$1b5eb083c754a86b).WALLET && /*#__PURE__*/ (0, $5OpyM$jsx)((0, $49f826b4fff6422b$export$2e2bcd8739ae039), {
|
|
8121
8129
|
onTimeout: calculateAgain,
|
|
@@ -8127,7 +8135,7 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8127
8135
|
xs: 12
|
|
8128
8136
|
},
|
|
8129
8137
|
sx: {
|
|
8130
|
-
marginTop: "
|
|
8138
|
+
marginTop: "30px"
|
|
8131
8139
|
},
|
|
8132
8140
|
children: /*#__PURE__*/ (0, $5OpyM$jsx)((0, $5OpyM$muimaterialDivider), {})
|
|
8133
8141
|
}),
|
|
@@ -8151,14 +8159,14 @@ function $c4ee7a827d19e0d2$var$Simulator(props) {
|
|
|
8151
8159
|
},
|
|
8152
8160
|
children: [
|
|
8153
8161
|
/*#__PURE__*/ (0, $5OpyM$jsx)("span", {
|
|
8154
|
-
|
|
8162
|
+
style: {
|
|
8155
8163
|
fontSize: "10px",
|
|
8156
8164
|
textAlign: "center"
|
|
8157
8165
|
},
|
|
8158
8166
|
children: "Powered by\xa0"
|
|
8159
8167
|
}),
|
|
8160
8168
|
/*#__PURE__*/ (0, $5OpyM$jsx)("span", {
|
|
8161
|
-
|
|
8169
|
+
style: {
|
|
8162
8170
|
fontWeight: "bold",
|
|
8163
8171
|
fontSize: "12px",
|
|
8164
8172
|
textAlign: "center"
|