@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 CHANGED
@@ -2719,7 +2719,7 @@ class $eb8bef229a07cd2d$var$Calculator extends (0, $gXNCa$react.Component) {
2719
2719
  country: this.state.toCountryValue,
2720
2720
  currency: this.state.toCurrencyValue
2721
2721
  },
2722
- timestamp: new Date()
2722
+ timestamp: Date.now()
2723
2723
  };
2724
2724
  try {
2725
2725
  const transaction = await db.collection("transactions").add(model);
@@ -5659,7 +5659,6 @@ var $c0c7909cfff012a2$export$2e2bcd8739ae039 = $c0c7909cfff012a2$var$OperationsH
5659
5659
 
5660
5660
 
5661
5661
 
5662
-
5663
5662
  const $57d5e789e3634b87$var$componentStyles = {
5664
5663
  root: {
5665
5664
  fontFamily: "Poppins",
@@ -5865,7 +5864,7 @@ const $25bc95a5aba76853$var$InputAmount = (props)=>{
5865
5864
  }),
5866
5865
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$muimaterialGrid2))), {
5867
5866
  size: {
5868
- xs: 5
5867
+ xs: 7
5869
5868
  },
5870
5869
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$muimaterialAutocomplete))), {
5871
5870
  disabled: user.isLoading || user.isDisabled,
@@ -5878,36 +5877,26 @@ const $25bc95a5aba76853$var$InputAmount = (props)=>{
5878
5877
  fontSize: 18
5879
5878
  }
5880
5879
  },
5881
- isOptionEqualToValue: (option, value)=>option.code === value?.code,
5882
- value: selectedOption ? transferOptions.find((x)=>x.code === selectedOption.code) || null : null,
5880
+ filterOptions: $25bc95a5aba76853$var$filterOptions,
5881
+ value: transferOptions.find((x)=>x.code == selectedOption.code),
5883
5882
  autoHighlight: true,
5884
- getOptionLabel: (option)=>{
5885
- if (!option) return '';
5886
- if (typeof option === 'string') return option;
5887
- if (typeof option.currency === 'string') return option.currency;
5888
- return '';
5889
- },
5883
+ getOptionLabel: (option)=>`${option?.currency || ""}`,
5890
5884
  renderOption: (props, option)=>{
5891
- if (!option) return null;
5892
5885
  const { key: key, ...restProps } = props;
5893
- const code = option.code || 'unknown';
5894
- const currency = option.currency || '';
5895
- const flagCode = code === "PE-USD" ? "PE" : code;
5896
- return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, ($parcel$interopDefault($gXNCa$muimaterialBox))), {
5897
- component: "li",
5898
- ...restProps,
5886
+ return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactjsxruntime.Fragment), {
5899
5887
  children: [
5900
5888
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
5901
5889
  style: {
5902
5890
  marginRight: "5px"
5903
5891
  },
5904
5892
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $0b469f7a35a164ef$export$2e2bcd8739ae039), {
5905
- code: flagCode
5893
+ code: option.code == "PE-USD" ? "PE" : option.code
5906
5894
  })
5907
5895
  }),
5908
- currency
5896
+ " ",
5897
+ option?.currency || ""
5909
5898
  ]
5910
- }, `${code}-${currency}`);
5899
+ });
5911
5900
  },
5912
5901
  disableClearable: true,
5913
5902
  renderInput: (params)=>/*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$muimaterialPaper))), {
@@ -5928,7 +5917,7 @@ const $25bc95a5aba76853$var$InputAmount = (props)=>{
5928
5917
  }
5929
5918
  })
5930
5919
  }),
5931
- onChange: (event, value)=>onChangeCountry && onChangeCountry(event, value)
5920
+ onChange: onChangeCountry
5932
5921
  })
5933
5922
  })
5934
5923
  ]
@@ -7894,7 +7883,7 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
7894
7883
  }, [
7895
7884
  simulatorMode
7896
7885
  ]);
7897
- return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$react.Fragment), {
7886
+ return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("main", {
7898
7887
  children: [
7899
7888
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("link", {
7900
7889
  href: "https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap",
@@ -7984,6 +7973,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
7984
7973
  size: {
7985
7974
  xs: 12
7986
7975
  },
7976
+ sx: {
7977
+ paddingBottom: "15px"
7978
+ },
7987
7979
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $25bc95a5aba76853$export$2e2bcd8739ae039), {
7988
7980
  id: "transfer-sender",
7989
7981
  content: content,
@@ -8008,6 +8000,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8008
8000
  size: {
8009
8001
  xs: 12
8010
8002
  },
8003
+ sx: {
8004
+ paddingBottom: "15px"
8005
+ },
8011
8006
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $25bc95a5aba76853$export$2e2bcd8739ae039), {
8012
8007
  id: "transfer-receiver",
8013
8008
  content: content,
@@ -8020,6 +8015,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8020
8015
  size: {
8021
8016
  xs: 12
8022
8017
  },
8018
+ sx: {
8019
+ paddingBottom: "15px"
8020
+ },
8023
8021
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $25bc95a5aba76853$export$2e2bcd8739ae039), {
8024
8022
  id: "wallet-receiver",
8025
8023
  content: content,
@@ -8043,6 +8041,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8043
8041
  size: {
8044
8042
  xs: 12
8045
8043
  },
8044
+ sx: {
8045
+ paddingBottom: "15px"
8046
+ },
8046
8047
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $25bc95a5aba76853$export$2e2bcd8739ae039), {
8047
8048
  id: "collect-sender",
8048
8049
  content: content,
@@ -8067,6 +8068,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8067
8068
  size: {
8068
8069
  xs: 12
8069
8070
  },
8071
+ sx: {
8072
+ paddingBottom: "15px"
8073
+ },
8070
8074
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $25bc95a5aba76853$export$2e2bcd8739ae039), {
8071
8075
  id: "collect-receiver",
8072
8076
  content: content,
@@ -8086,6 +8090,10 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8086
8090
  size: {
8087
8091
  xs: 12
8088
8092
  },
8093
+ sx: {
8094
+ marginTop: "15px",
8095
+ marginBottom: "15px"
8096
+ },
8089
8097
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $c1882e163bdff66b$export$2e2bcd8739ae039), {
8090
8098
  paymentMethods: receiver.paymentMethods,
8091
8099
  onChange: handleOnchangePaymentMethod
@@ -8095,6 +8103,9 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8095
8103
  size: {
8096
8104
  xs: 12
8097
8105
  },
8106
+ sx: {
8107
+ marginBottom: "15px"
8108
+ },
8098
8109
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $5bf5c647168de599$export$2e2bcd8739ae039), {
8099
8110
  simulatorMode: simulatorMode,
8100
8111
  transferType: sender.selectedOption.type,
@@ -8107,10 +8118,6 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8107
8118
  size: {
8108
8119
  xs: 12
8109
8120
  },
8110
- sx: {
8111
- marginTop: "15px",
8112
- marginBottom: "15px"
8113
- },
8114
8121
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$muimaterialButton))), {
8115
8122
  className: classes.button,
8116
8123
  variant: "contained",
@@ -8126,7 +8133,8 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8126
8133
  },
8127
8134
  sx: {
8128
8135
  textAlign: "center",
8129
- marginTop: "15px"
8136
+ marginTop: "15px",
8137
+ marginBottom: "15px"
8130
8138
  },
8131
8139
  children: recalculate && sender.selectedOption.type != (0, $ee1f0011b010ab9b$export$1b5eb083c754a86b).WALLET && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, $3641e36ddb9c1c48$export$2e2bcd8739ae039), {
8132
8140
  onTimeout: calculateAgain,
@@ -8138,7 +8146,7 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8138
8146
  xs: 12
8139
8147
  },
8140
8148
  sx: {
8141
- marginTop: "60px"
8149
+ marginTop: "30px"
8142
8150
  },
8143
8151
  children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)((0, ($parcel$interopDefault($gXNCa$muimaterialDivider))), {})
8144
8152
  }),
@@ -8162,14 +8170,14 @@ function $d3c2b8c012a239f6$var$Simulator(props) {
8162
8170
  },
8163
8171
  children: [
8164
8172
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
8165
- sx: {
8173
+ style: {
8166
8174
  fontSize: "10px",
8167
8175
  textAlign: "center"
8168
8176
  },
8169
8177
  children: "Powered by\xa0"
8170
8178
  }),
8171
8179
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("span", {
8172
- sx: {
8180
+ style: {
8173
8181
  fontWeight: "bold",
8174
8182
  fontSize: "12px",
8175
8183
  textAlign: "center"