@huma-finance/widgets 0.0.59-beta.486 → 0.0.59-beta.488
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/cjs/index.cjs +212 -205
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +214 -207
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Activity.tsx +2 -3
- package/src/components/ApproveAllowanceModal.tsx +2 -2
- package/src/components/ApproveAllowanceModalV2.tsx +2 -2
- package/src/components/ChooseAmountModal.tsx +15 -14
- package/src/components/ConfirmTransferModal.tsx +5 -6
- package/src/components/CreditLine/borrow/1-Evaluation.tsx +5 -5
- package/src/components/ErrorModal.tsx +5 -12
- package/src/components/Factoring/FactoredList.tsx +2 -2
- package/src/components/Factoring/UpcomingList.tsx +2 -2
- package/src/components/HumaSnackBar.tsx +2 -2
- package/src/components/HumaTable.tsx +3 -3
- package/src/components/InputAmountModal.tsx +9 -7
- package/src/components/Lend/addRedemptionV2/1-ChooseTranche.tsx +2 -2
- package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +2 -2
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +2 -2
- package/src/components/Lend/supplyV2/1-ChooseTranche.tsx +2 -2
- package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +4 -0
- package/src/components/Lend/supplyV2/8-PointsEarned.tsx +14 -9
- package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +8 -6
- package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +2 -2
- package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +3 -3
- package/src/components/Notifi/NotifiSubscriptionModal.tsx +2 -2
- package/src/components/ReceivableBackedCreditLine/payment/1-ChoosePaymentType.tsx +2 -2
- package/src/components/SignIn.tsx +2 -2
- package/src/components/SuperfluidFactoring/index.tsx +2 -2
- package/src/components/TxDoneModal.tsx +4 -4
- package/src/components/WrapperModal.tsx +3 -3
- package/src/components/humaModal/HumaModal.tsx +3 -3
- package/src/index.tsx +0 -2
- package/src/theme/components.ts +3 -2
- package/src/theme/palette.ts +7 -7
- package/src/theme/typography.ts +0 -1
- package/dist/assets/output-f6156dde.css +0 -45
- package/dist/cjs/assets/output-f6156dde.css +0 -45
- package/src/index.css +0 -61
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonRpcProvider } from '@ethersproject/providers';
|
|
2
|
-
import { txAtom, useMQ, supportedChainId, sendTxAtom, isTxFailed, getExplorerUrl, openInNewTab, usePoolUnderlyingTokenContract, TxStateType, useMount, decodeLogs, ERC20_ABI, downScale, formatMoney, POOL_NAME, POOL_TYPE, usePoolInfo, useAccountStats, getERC20Contract, usePoolInfoV2, usePoolUnderlyingTokenInfoV2, usePoolSafeAllowanceV2, useAuthErrorHandling, checkIsDev, EAService, EARejectionError, EARejectMessage, EARejectReason, useCLFeeManager, useCLPoolAllowance, usePoolContract, timeUtil, formatNumber, doesChainSupportNotifi, getBlockchainConfigFromChain, CreditState, useCreditContractV2, useCreditStatsV2, CreditStateV2, upScale, toBigNumber, TRANSFER_ABI, FirstLossCoverIndex, useFirstLossCoverContractV2, useFirstLossCoverRequirementV2, useFirstLossCoverAllowanceV2, useFeeManager, combineStyles, isEmpty, useInvoiceNFTContract, useRFPoolAllowance, useLenderDepositRecordV2, useLPConfigV2, useNextEpochStartTimeV2, timestampToLL, useTrancheVaultContractV2, getTrancheAssetsAndShares, useCancellableRedemptionInfoV2, useParamsSearch, IdentityService, CHAINS, configUtil, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, IdentityServiceV2, IdentityVerificationStatusV2, CampaignService, CAMPAIGN_REFERENCE_CODE, KYC_PROVIDER, useDebouncedValue, usePoolUnderlyingTokenBalanceV2, usePoolSettingsV2, useLenderApprovedV2, useLastDepositTime, usePoolBalance, formatAmount, getTrancheVaultContractV2, getTrancheRedemptionStatusV2, getPoolContractV2, useReceivableInfoV2, useReceivableContractV2, CURRENCY_CODE, CreditEventText, useERC2612Permit, SuperfluidPoolProcessor_ABI, useMultiSendContract, usePoolUnderlyingToken, hasRFActiveLoan, getWalletAddressAbbr, useFactoring, PoolMap,
|
|
2
|
+
import { txAtom, useMQ, supportedChainId, sendTxAtom, isTxFailed, getExplorerUrl, openInNewTab, usePoolUnderlyingTokenContract, TxStateType, useMount, decodeLogs, ERC20_ABI, downScale, formatMoney, POOL_NAME, POOL_TYPE, usePoolInfo, useAccountStats, getERC20Contract, usePoolInfoV2, usePoolUnderlyingTokenInfoV2, usePoolSafeAllowanceV2, useAuthErrorHandling, checkIsDev, EAService, EARejectionError, EARejectMessage, EARejectReason, useCLFeeManager, useCLPoolAllowance, usePoolContract, timeUtil, formatNumber, doesChainSupportNotifi, getBlockchainConfigFromChain, CreditState, useCreditContractV2, useCreditStatsV2, CreditStateV2, upScale, toBigNumber, TRANSFER_ABI, FirstLossCoverIndex, useFirstLossCoverContractV2, useFirstLossCoverRequirementV2, useFirstLossCoverAllowanceV2, useFeeManager, combineStyles, isEmpty, useInvoiceNFTContract, useRFPoolAllowance, useLenderDepositRecordV2, useLPConfigV2, useNextEpochStartTimeV2, timestampToLL, useTrancheVaultContractV2, getTrancheAssetsAndShares, useCancellableRedemptionInfoV2, useParamsSearch, IdentityService, CHAINS, configUtil, usePoolAllowance, useLenderApproved, useLenderPosition, useWithdrawlLockoutInSeconds, usePoolUnderlyingTokenBalance, IdentityServiceV2, IdentityVerificationStatusV2, CampaignService, CAMPAIGN_REFERENCE_CODE, KYC_PROVIDER, useDebouncedValue, usePoolUnderlyingTokenBalanceV2, usePoolSettingsV2, useLenderApprovedV2, useLastDepositTime, usePoolBalance, formatAmount, getTrancheVaultContractV2, getTrancheRedemptionStatusV2, getPoolContractV2, useReceivableInfoV2, useReceivableContractV2, CURRENCY_CODE, CreditEventText, useERC2612Permit, SuperfluidPoolProcessor_ABI, useMultiSendContract, usePoolUnderlyingToken, hasRFActiveLoan, getWalletAddressAbbr, useFactoring, PoolMap, CreditEvent, Provider as Provider$1 } from '@huma-finance/shared';
|
|
3
3
|
import { useTheme, css, Box, Typography, Tooltip, Button, Dialog, Slider, Input, Divider, TextField, FormControl, FormLabel, RadioGroup, FormControlLabel, Radio, Snackbar, Alert, Skeleton, TablePagination, LinearProgress, createTheme, ThemeProvider } from '@mui/material';
|
|
4
4
|
import { useAtom, Provider as Provider$2 } from 'jotai';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -22,7 +22,7 @@ import { NumericFormat } from 'react-number-format';
|
|
|
22
22
|
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
|
|
23
23
|
import Persona from 'persona';
|
|
24
24
|
import moment from 'moment';
|
|
25
|
-
import { drawdownWithReceivable, HumaContext, HumaReceivableFactory, makePaymentWithReceivable, makePrincipalPaymentAndDrawdownWithReceivable } from '@huma-finance/sdk';
|
|
25
|
+
import { drawdownWithReceivable, HumaContext, HumaReceivableFactory, makePaymentWithReceivable, makePrincipalPaymentAndDrawdownWithReceivable, SubgraphService } from '@huma-finance/sdk';
|
|
26
26
|
import { gql, useQuery, ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
|
|
27
27
|
import Table from '@mui/material/Table';
|
|
28
28
|
import TableBody from '@mui/material/TableBody';
|
|
@@ -237,10 +237,10 @@ function ErrorModal(_ref) {
|
|
|
237
237
|
wrapper: css(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
238
238
|
header: css(_templateObject2$o || (_templateObject2$o = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
239
239
|
sorry: css(_templateObject3$i || (_templateObject3$i = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n margin-right: ", ";\n & > img {\n width: 170px;\n }\n "])), theme.cssMixins.rowHCentered, theme.spacing(12), theme.spacing(4)),
|
|
240
|
-
content: css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: 100%;\n display: inline-table;\n padding: ", ";\n
|
|
241
|
-
errorIcon: css(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteral(["\n position: absolute;\n font-size: 20px;\n color:
|
|
242
|
-
messageWrapper: css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n color:
|
|
243
|
-
errorMessage: css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: 14px;\n font-
|
|
240
|
+
content: css(_templateObject4$d || (_templateObject4$d = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: 100%;\n display: inline-table;\n padding: ", ";\n position: relative;\n margin-top: ", ";\n height: 79px;\n "])), theme.spacing(2, 0), theme.spacing(9)),
|
|
241
|
+
errorIcon: css(_templateObject5$7 || (_templateObject5$7 = _taggedTemplateLiteral(["\n position: absolute;\n font-size: 20px;\n color: ", ";\n margin: ", ";\n "])), theme.palette.error.main, theme.spacing(0, 2)),
|
|
242
|
+
messageWrapper: css(_templateObject6$6 || (_templateObject6$6 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n padding-left: ", ";\n "])), theme.palette.text.primary, theme.spacing(6)),
|
|
243
|
+
errorMessage: css(_templateObject7$5 || (_templateObject7$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-size: 14px;\n font-weight: 400;\n color: ", ";\n cursor: pointer;\n display: -webkit-box;\n line-height: 16px;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-right: ", ";\n "])), theme.spacing(0.5), theme.palette.text.primary, theme.spacing(2)),
|
|
244
244
|
okButton: css(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteral(["\n & .MuiButtonBase-root {\n width: 100%;\n position: absolute;\n bottom: 0;\n }\n "])))
|
|
245
245
|
};
|
|
246
246
|
const handleCloseModal = useCallback(() => {
|
|
@@ -290,123 +290,6 @@ function ErrorModal(_ref) {
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
// primary
|
|
294
|
-
const primaryPurple = '#c265d0';
|
|
295
|
-
const primaryBlueLight = '#4473EB';
|
|
296
|
-
const pendingBlue = '#226BF9';
|
|
297
|
-
const pendingBlueMid = '#4584FF';
|
|
298
|
-
const pendingBlueLight = '#79A5FB';
|
|
299
|
-
const warningRed = '#D01638';
|
|
300
|
-
const warningRedLight = '#FF4366';
|
|
301
|
-
const warningRedPastel = '#FF708B';
|
|
302
|
-
const darkBackground = '#0C2436';
|
|
303
|
-
const white = '#FFFFFF';
|
|
304
|
-
const black = {
|
|
305
|
-
1: '#000000',
|
|
306
|
-
2: '#2A252F',
|
|
307
|
-
3: '#423B46',
|
|
308
|
-
4: '#534E59',
|
|
309
|
-
5: '#6B6572',
|
|
310
|
-
6: '#76707E'
|
|
311
|
-
};
|
|
312
|
-
const orange = {
|
|
313
|
-
100: '#FFA979',
|
|
314
|
-
300: '#FF8F51',
|
|
315
|
-
500: '#FD792F',
|
|
316
|
-
700: '#E96216'
|
|
317
|
-
};
|
|
318
|
-
const yellow = {
|
|
319
|
-
100: '#FFECB0',
|
|
320
|
-
300: '#FFE07E',
|
|
321
|
-
500: '#FFD54F',
|
|
322
|
-
700: '#F8BE28'
|
|
323
|
-
};
|
|
324
|
-
const grey = {
|
|
325
|
-
100: '#CBD6DE',
|
|
326
|
-
200: '#6B6B6B',
|
|
327
|
-
300: '#606060',
|
|
328
|
-
400: '#5E7485',
|
|
329
|
-
600: '#395062',
|
|
330
|
-
700: '#6B6572',
|
|
331
|
-
800: '#4A4A4A'
|
|
332
|
-
};
|
|
333
|
-
const green = {
|
|
334
|
-
100: '#66F8D3',
|
|
335
|
-
200: '#1DE9B6',
|
|
336
|
-
500: '#00CA97',
|
|
337
|
-
700: '#0DBC90'
|
|
338
|
-
};
|
|
339
|
-
const blue = {
|
|
340
|
-
50: '#8AD5FF',
|
|
341
|
-
100: '#3DB9FF',
|
|
342
|
-
200: '#0BA7FE',
|
|
343
|
-
300: '#0095E9',
|
|
344
|
-
500: '#0070AF',
|
|
345
|
-
800: '#013859'
|
|
346
|
-
};
|
|
347
|
-
const paletteCore = {
|
|
348
|
-
alert: {
|
|
349
|
-
contrastText: black[1],
|
|
350
|
-
dark: yellow[700],
|
|
351
|
-
light: yellow[300],
|
|
352
|
-
main: yellow[500]
|
|
353
|
-
},
|
|
354
|
-
background: {
|
|
355
|
-
default: white,
|
|
356
|
-
paper: white
|
|
357
|
-
},
|
|
358
|
-
common: {
|
|
359
|
-
black: black[1],
|
|
360
|
-
white
|
|
361
|
-
},
|
|
362
|
-
default: {
|
|
363
|
-
contrastText: black[1],
|
|
364
|
-
dark: white,
|
|
365
|
-
light: white,
|
|
366
|
-
main: white
|
|
367
|
-
},
|
|
368
|
-
divider: grey[600],
|
|
369
|
-
error: {
|
|
370
|
-
dark: warningRed,
|
|
371
|
-
light: warningRedPastel,
|
|
372
|
-
main: warningRedLight
|
|
373
|
-
},
|
|
374
|
-
grey,
|
|
375
|
-
info: {
|
|
376
|
-
contrastText: black[1],
|
|
377
|
-
dark: pendingBlue,
|
|
378
|
-
light: pendingBlueLight,
|
|
379
|
-
main: pendingBlueMid,
|
|
380
|
-
superDark: darkBackground,
|
|
381
|
-
superLight: blue[50]
|
|
382
|
-
},
|
|
383
|
-
mode: 'light',
|
|
384
|
-
primary: {
|
|
385
|
-
main: primaryPurple,
|
|
386
|
-
light: primaryBlueLight
|
|
387
|
-
},
|
|
388
|
-
secondary: {
|
|
389
|
-
contrastText: black[1],
|
|
390
|
-
main: white
|
|
391
|
-
},
|
|
392
|
-
success: {
|
|
393
|
-
light: green[100],
|
|
394
|
-
main: green[200]
|
|
395
|
-
},
|
|
396
|
-
text: {
|
|
397
|
-
primary: black[5],
|
|
398
|
-
secondary: black[6],
|
|
399
|
-
tertiary: black[3],
|
|
400
|
-
quaternary: grey[400]
|
|
401
|
-
},
|
|
402
|
-
warning: {
|
|
403
|
-
contrastText: black[1],
|
|
404
|
-
light: orange[100],
|
|
405
|
-
main: orange[500],
|
|
406
|
-
superLight: yellow[100]
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
|
|
410
293
|
function HumaModal(_ref) {
|
|
411
294
|
let {
|
|
412
295
|
children,
|
|
@@ -422,7 +305,7 @@ function HumaModal(_ref) {
|
|
|
422
305
|
isXsSize
|
|
423
306
|
} = useMQ();
|
|
424
307
|
const styles = {
|
|
425
|
-
wrapper: /*#__PURE__*/css$1("max-width:100vw;width:", isXsSize ? '100%' : width, ";height:auto;padding:", padding, ";box-sizing:border-box;" + (process.env.NODE_ENV === "production" ? "" : ";label:wrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
308
|
+
wrapper: /*#__PURE__*/css$1("max-width:100vw;width:", isXsSize ? '100%' : width, ";height:auto;padding:", padding, ";box-sizing:border-box;" + (process.env.NODE_ENV === "production" ? "" : ";label:wrapper;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFNb2RhbC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkJnQiIsImZpbGUiOiJIdW1hTW9kYWwudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBEaWFsb2cgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuaW1wb3J0IHsgdXNlTVEgfSBmcm9tICdAaHVtYS1maW5hbmNlL3NoYXJlZCdcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcblxudHlwZSBIdW1hTW9kYWxUeXBlID0ge1xuICBjaGlsZHJlbj86IFJlYWN0LlJlYWN0Tm9kZVxu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2snICYmIHJlYXNvbiAhPT0gJ2VzY2FwZUtleURvd24nKSB7XG4gICAgICBvbkNsb3NlKClcbiAgICB9XG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxEaWFsb2dcbiAgICAgIGlkPSdodW1hLW1vZGFsJ1xuICAgICAgZGlzYWJsZVNjcm9sbExvY2tcbiAgICAgIG1heFdpZHRoPXtmYWxzZX1cbiAgICAgIGZ1bGxTY3JlZW49e2lzWHNTaXplfVxuICAgICAgb3Blbj17aXNPcGVufVxuICAgICAgUGFwZXJQcm9wcz17e1xuICAgICAgICBzdHlsZToge1xuICAgICAgICAgIGJvcmRlcjogJzFweCBzb2xpZCAjMjAyMDIwJyxcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAncmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KScsXG4gICAgICAgICAgYmFja2Ryb3BGaWx0ZXI6ICdibHVyKDUwcHgpJyxcbiAgICAgICAgICBib3JkZXJSYWRpdXM6ICcxNnB4JyxcbiAgICAgICAgICBvdmVyZmxvdzogb3ZlcmZsb3cgfHwgJ2luaGVyaXQnLFxuICAgICAgICAgIG92ZXJmbG93WTogb3ZlcmZsb3dZIHx8ICdpbmhlcml0JyxcbiAgICAgICAgfSxcbiAgICAgIH19XG4gICAgICBvbkNsb3NlPXsoZXZlbnQsIHJlYXNvbikgPT4gaGFuZGxlQ2xvc2UocmVhc29uKX1cbiAgICA+XG4gICAgICA8ZGl2IGNzcz17c3R5bGVzLndyYXBwZXJ9PntjaGlsZHJlbn08L2Rpdj5cbiAgICA8L0RpYWxvZz5cbiAgKVxufVxuIl19 */")
|
|
426
309
|
};
|
|
427
310
|
const handleClose = reason => {
|
|
428
311
|
if (!disableBackdropClick) {
|
|
@@ -439,7 +322,9 @@ function HumaModal(_ref) {
|
|
|
439
322
|
open: isOpen,
|
|
440
323
|
PaperProps: {
|
|
441
324
|
style: {
|
|
442
|
-
|
|
325
|
+
border: '1px solid #202020',
|
|
326
|
+
background: 'rgba(255, 255, 255, 0.05)',
|
|
327
|
+
backdropFilter: 'blur(50px)',
|
|
443
328
|
borderRadius: '16px',
|
|
444
329
|
overflow: overflow || 'inherit',
|
|
445
330
|
overflowY: overflowY || 'inherit'
|
|
@@ -1754,8 +1639,8 @@ function WrapperModal(_ref) {
|
|
|
1754
1639
|
const theme = useTheme();
|
|
1755
1640
|
const styles = {
|
|
1756
1641
|
wrapper: css(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
1757
|
-
header: css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteral(["\n ", ";\n font-
|
|
1758
|
-
content: css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-
|
|
1642
|
+
header: css(_templateObject2$n || (_templateObject2$n = _taggedTemplateLiteral(["\n ", ";\n font-weight: 700;\n font-size: 20px;\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
1643
|
+
content: css(_templateObject3$h || (_templateObject3$h = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(4), theme.palette.text.secondary),
|
|
1759
1644
|
bottom: css(_templateObject4$c || (_templateObject4$c = _taggedTemplateLiteral(["\n & .MuiButtonBase-root {\n width: 100%;\n position: absolute;\n bottom: 0;\n }\n "])))
|
|
1760
1645
|
};
|
|
1761
1646
|
return jsxs(Box, {
|
|
@@ -1937,7 +1822,7 @@ function ApproveAllowanceModal(_ref) {
|
|
|
1937
1822
|
}, [handleSuccess, reset, resetAfterSuccess, state, symbol]);
|
|
1938
1823
|
const styles = {
|
|
1939
1824
|
iconWrapper: css(_templateObject$n || (_templateObject$n = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 220px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(6)),
|
|
1940
|
-
description: css(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-
|
|
1825
|
+
description: css(_templateObject2$l || (_templateObject2$l = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n padding: ", ";\n "])), theme.spacing(4), theme.palette.text.secondary, theme.spacing(0, 1))
|
|
1941
1826
|
};
|
|
1942
1827
|
const sendIncreaseAllowance = useCallback(async () => {
|
|
1943
1828
|
const allowanceSpender = spender !== null && spender !== void 0 ? spender : poolInfo.pool;
|
|
@@ -2021,8 +1906,8 @@ function TxDoneModal(_ref) {
|
|
|
2021
1906
|
const styles = {
|
|
2022
1907
|
wrapper: css(_templateObject$m || (_templateObject$m = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
2023
1908
|
header: css(_templateObject2$k || (_templateObject2$k = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
2024
|
-
content: css(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteral(["\n ", ";\n font-
|
|
2025
|
-
subContent: css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteral(["\n ", ";\n font-
|
|
1909
|
+
content: css(_templateObject3$g || (_templateObject3$g = _taggedTemplateLiteral(["\n ", ";\n font-weight: ", ";\n font-size: 18px;\n color: ", ";\n margin-top: ", ";\n text-align: center;\n "])), theme.cssMixins.colVCentered, subContent ? 700 : 400, theme.palette.text.secondary, theme.spacing(8)),
|
|
1910
|
+
subContent: css(_templateObject4$b || (_templateObject4$b = _taggedTemplateLiteral(["\n ", ";\n font-weight: 400;\n font-size: 18px;\n color: ", ";\n margin-top: ", ";\n text-align: center;\n "])), theme.cssMixins.colVCentered, theme.palette.text.primary, theme.spacing(2)),
|
|
2026
1911
|
check: css(_templateObject5$6 || (_templateObject5$6 = _taggedTemplateLiteral(["\n width: 100%;\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(10)),
|
|
2027
1912
|
doneButton: css(_templateObject6$5 || (_templateObject6$5 = _taggedTemplateLiteral(["\n width: 100%;\n position: absolute;\n bottom: 0;\n "])))
|
|
2028
1913
|
};
|
|
@@ -2181,7 +2066,7 @@ function ApproveAllowanceModalV2(_ref) {
|
|
|
2181
2066
|
}, [handleSuccess, reset, resetAfterSuccess, state]);
|
|
2182
2067
|
const styles = {
|
|
2183
2068
|
iconWrapper: css(_templateObject$l || (_templateObject$l = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 220px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(6)),
|
|
2184
|
-
description: css(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-
|
|
2069
|
+
description: css(_templateObject2$j || (_templateObject2$j = _taggedTemplateLiteral(["\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n padding: ", ";\n "])), theme.spacing(4), theme.palette.text.secondary, theme.spacing(0, 1))
|
|
2185
2070
|
};
|
|
2186
2071
|
const sendIncreaseAllowance = useCallback(async () => {
|
|
2187
2072
|
const allowanceSpender = spender !== null && spender !== void 0 ? spender : poolInfo.pool;
|
|
@@ -2368,7 +2253,7 @@ function SignIn(_ref) {
|
|
|
2368
2253
|
wrapper: css(_templateObject$k || (_templateObject$k = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
2369
2254
|
header: css(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
2370
2255
|
icon: css(_templateObject3$f || (_templateObject3$f = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n margin-right: ", ";\n & > img {\n width: 170px;\n }\n "])), theme.cssMixins.rowHCentered, theme.spacing(12), theme.spacing(4)),
|
|
2371
|
-
content: css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-
|
|
2256
|
+
content: css(_templateObject4$a || (_templateObject4$a = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(4), theme.palette.text.secondary, theme.spacing(8))
|
|
2372
2257
|
};
|
|
2373
2258
|
return jsxs(Box, {
|
|
2374
2259
|
css: styles.wrapper,
|
|
@@ -2423,10 +2308,10 @@ function Evaluation$4(_ref) {
|
|
|
2423
2308
|
const styles = {
|
|
2424
2309
|
wrapper: css(_templateObject$j || (_templateObject$j = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
2425
2310
|
header: css(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
2426
|
-
content: css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-
|
|
2427
|
-
checkWrapper: css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteral(["\n ", "\n width: 100%;\n height: 72px;\n background: #f9f8fa;\n border-radius: 4px;\n font-
|
|
2311
|
+
content: css(_templateObject3$e || (_templateObject3$e = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(4), theme.palette.text.secondary, theme.spacing(8)),
|
|
2312
|
+
checkWrapper: css(_templateObject4$9 || (_templateObject4$9 = _taggedTemplateLiteral(["\n ", "\n width: 100%;\n height: 72px;\n background: #f9f8fa;\n border-radius: 4px;\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n "])), theme.cssMixins.rowVCentered, theme.palette.text.secondary),
|
|
2428
2313
|
checkIcon: css(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n ", "\n width: 105px;\n height: 100%;\n\n & > img {\n max-width: 100%;\n max-height: 100%;\n }\n "])), theme.cssMixins.rowCentered),
|
|
2429
|
-
congratsWrapper: css(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral(["\n font-
|
|
2314
|
+
congratsWrapper: css(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 16px;\n padding: ", ";\n ", "\n margin-top: ", ";\n height: 52px;\n background: linear-gradient(\n 0deg,\n rgba(255, 255, 255, 0.9),\n rgba(255, 255, 255, 0.9)\n ),\n #2e7d32;\n border-radius: 4px;\n "])), theme.spacing(0, 2), theme.cssMixins.rowVCentered, theme.spacing(8)),
|
|
2430
2315
|
bottom: css(_templateObject7$4 || (_templateObject7$4 = _taggedTemplateLiteral(["\n & .MuiButtonBase-root {\n width: 100%;\n position: absolute;\n bottom: 0;\n }\n "])))
|
|
2431
2316
|
};
|
|
2432
2317
|
const goToNextStep = () => {
|
|
@@ -2517,10 +2402,10 @@ function ChooseAmountModal(_ref) {
|
|
|
2517
2402
|
} = useMQ();
|
|
2518
2403
|
const [inputTouched, setInputTouched] = useState(false);
|
|
2519
2404
|
const styles = {
|
|
2520
|
-
subTitle: css(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n font-
|
|
2521
|
-
description2: css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n ", ";\n font-
|
|
2405
|
+
subTitle: css(_templateObject$i || (_templateObject$i = _taggedTemplateLiteral(["\n font-weight: 400;\n "]))),
|
|
2406
|
+
description2: css(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowCentered, theme.palette.text.secondary, theme.spacing(2)),
|
|
2522
2407
|
chosenAmountWrapper: css(_templateObject3$d || (_templateObject3$d = _taggedTemplateLiteral(["\n ", ";\n background: linear-gradient(232.71deg, #a363f4 4.17%, #ff6a8a 178.69%);\n background-clip: text;\n -webkit-text-fill-color: transparent;\n font-weight: 700;\n font-size: 32px;\n margin-bottom: ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowCentered, theme.spacing(1), theme.spacing(4)),
|
|
2523
|
-
chosenAmount: css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteral(["\n font-
|
|
2408
|
+
chosenAmount: css(_templateObject4$8 || (_templateObject4$8 = _taggedTemplateLiteral(["\n font-weight: 700;\n font-size: 32px;\n "]))),
|
|
2524
2409
|
chosenAmountSymbol: css(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteral(["\n font-size: 75%;\n margin-left: ", ";\n letter-spacing: 0.1px;\n "])), theme.spacing(0.5)),
|
|
2525
2410
|
inputAmountWrapper: css(_templateObject6$3 || (_templateObject6$3 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n margin-top: ", ";\n "])), theme.spacing(1), theme.spacing(4)),
|
|
2526
2411
|
inputAmount: css(_templateObject7$3 || (_templateObject7$3 = _taggedTemplateLiteral(["\n ", ";\n "])), theme.cssMixins.rowSpaceBetweened),
|
|
@@ -2533,19 +2418,22 @@ function ChooseAmountModal(_ref) {
|
|
|
2533
2418
|
},
|
|
2534
2419
|
editIcon: css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n color: ", ";\n cursor: pointer;\n display: inline-grid;\n vertical-align: middle;\n & > svg {\n font-size: 24px;\n }\n & > svg:first-of-type {\n margin-bottom: ", ";\n }\n "])), theme.palette.primary.main, theme.spacing(-1)),
|
|
2535
2420
|
input: css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: 18px;\n -webkit-text-fill-color: ", ";\n "])), theme.palette.primary.main),
|
|
2536
|
-
slider: css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n &.MuiSlider-root {\n height: 8px !important;\n color:
|
|
2537
|
-
info: css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n font-
|
|
2538
|
-
divider: css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin: ", ";\n
|
|
2539
|
-
okButton: css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n font-
|
|
2540
|
-
terms: css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n ", ";\n font-weight: 400;\n font-size: 12px;\n color:
|
|
2421
|
+
slider: css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n &.MuiSlider-root {\n height: 8px !important;\n color: ", ";\n }\n & .MuiSlider-track {\n height: 8px !important;\n background: linear-gradient(232.71deg, #a363f4 4.17%, #ff6a8a 178.69%);\n border-radius: 8px;\n }\n & .MuiSlider-thumb::before {\n background: #ffffff;\n border: 1px solid #f9f9f9;\n box-shadow: 1px 1px 12px 2px rgba(163, 100, 244, 0.6);\n border-radius: 50px;\n width: 24px;\n height: 24px;\n }\n "])), theme.spacing(7), theme.palette.text.primary),
|
|
2422
|
+
info: css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n font-weight: 400;\n ", ";\n font-size: 16px;\n color: ", ";\n "])), theme.cssMixins.rowSpaceBetweened, theme.palette.text.secondary),
|
|
2423
|
+
divider: css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin: ", ";\n border-color: ", ";\n "])), theme.spacing(2, 0), theme.palette.divider),
|
|
2424
|
+
okButton: css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n font-weight: 700;\n width: 100%;\n position: absolute;\n bottom: ", ";\n "])), theme.spacing(isXsSize ? 2 : 0)),
|
|
2425
|
+
terms: css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n ", ";\n font-weight: 400;\n font-size: 12px;\n color: ", ";\n margin-top: ", ";\n letter-spacing: 0px;\n width: 100%;\n position: absolute;\n bottom: ", ";\n "])), theme.cssMixins.rowHCentered, theme.palette.text.secondary, theme.spacing(1), theme.spacing(-3))
|
|
2541
2426
|
};
|
|
2542
2427
|
const handleSliderChange = (event, newValue) => {
|
|
2543
2428
|
handleChangeAmount(newValue);
|
|
2544
2429
|
};
|
|
2545
2430
|
const handleInputChange = event => {
|
|
2546
2431
|
setInputTouched(true);
|
|
2547
|
-
|
|
2548
|
-
|
|
2432
|
+
if (!event.target.value) {
|
|
2433
|
+
handleChangeAmount(0);
|
|
2434
|
+
} else {
|
|
2435
|
+
handleChangeAmount(Number(event.target.value));
|
|
2436
|
+
}
|
|
2549
2437
|
};
|
|
2550
2438
|
const handleSetMax = () => {
|
|
2551
2439
|
handleChangeAmount(sliderMax);
|
|
@@ -3021,7 +2909,7 @@ function NotifiSubscriptionModal(_ref) {
|
|
|
3021
2909
|
handleSuccess();
|
|
3022
2910
|
}, [dispatch, handleSuccess, reset]);
|
|
3023
2911
|
const styles = {
|
|
3024
|
-
disclaimer: css(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n ", ";\n font-
|
|
2912
|
+
disclaimer: css(_templateObject$h || (_templateObject$h = _taggedTemplateLiteral(["\n ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowCentered, theme.palette.text.secondary, theme.spacing(6)),
|
|
3025
2913
|
inputField: css(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n width: 100%;\n font-size: 16px;\n "]))),
|
|
3026
2914
|
inputWrapper: css(_templateObject3$c || (_templateObject3$c = _taggedTemplateLiteral(["\n width: 100%;\n "]))),
|
|
3027
2915
|
header: css(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
@@ -3191,11 +3079,11 @@ function InputAmountModal(_ref) {
|
|
|
3191
3079
|
const styles = {
|
|
3192
3080
|
inputAmountWrapper: css(_templateObject$g || (_templateObject$g = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n margin-top: ", ";\n "])), theme.spacing(1), theme.spacing(16)),
|
|
3193
3081
|
inputAmount: css(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n ", ";\n "])), theme.cssMixins.rowSpaceBetweened),
|
|
3194
|
-
inputField: css(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteral(["\n input {\n width: 100%;\n color: ", ";\n font-
|
|
3082
|
+
inputField: css(_templateObject3$b || (_templateObject3$b = _taggedTemplateLiteral(["\n input {\n width: 100%;\n color: ", ";\n font-weight: 800;\n font-size: 40px;\n line-height: 133.4%;\n }\n "])), theme.palette.text.primary),
|
|
3195
3083
|
maxWrapper: css(_templateObject4$6 || (_templateObject4$6 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n justify-content: flex-end;\n "]))),
|
|
3196
|
-
maxTitle: css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n font-
|
|
3197
|
-
max: css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n display: flex;\n min-width: fit-content;\n justify-content: center;\n align-items: center;\n border-radius: 32px;\n
|
|
3198
|
-
info: css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral(["\n color: ", ";\n font-
|
|
3084
|
+
maxTitle: css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n font-weight: 400;\n font-size: 12px;\n line-height: 166%;\n letter-spacing: 0.4px;\n top: ", ";\n width: 200px;\n text-align: right;\n "])), theme.palette.text.primary, theme.spacing(-3)),
|
|
3085
|
+
max: css(_templateObject6$2 || (_templateObject6$2 = _taggedTemplateLiteral(["\n display: flex;\n min-width: fit-content;\n justify-content: center;\n align-items: center;\n border-radius: 32px;\n padding: 4px 10px;\n gap: 8px;\n font-weight: 700;\n font-size: 13px;\n line-height: 22px;\n letter-spacing: 0.46px;\n "]))),
|
|
3086
|
+
info: css(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 160%;\n letter-spacing: 0.15px;\n "])), theme.palette.text.primary)
|
|
3199
3087
|
};
|
|
3200
3088
|
const onChange = event => {
|
|
3201
3089
|
setInputTouched(true);
|
|
@@ -3233,6 +3121,7 @@ function InputAmountModal(_ref) {
|
|
|
3233
3121
|
children: maxAmountText
|
|
3234
3122
|
})]
|
|
3235
3123
|
}) : jsx(Button, {
|
|
3124
|
+
variant: "contained",
|
|
3236
3125
|
css: styles.max,
|
|
3237
3126
|
onClick: setMaxAmount,
|
|
3238
3127
|
children: maxAmountText
|
|
@@ -4154,11 +4043,11 @@ function ConfirmTransferModal(_ref) {
|
|
|
4154
4043
|
const styles = {
|
|
4155
4044
|
wrapper: css(_templateObject$f || (_templateObject$f = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n ", ";\n "])), theme.cssMixins.colStretch),
|
|
4156
4045
|
header: css(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n "])), theme.cssMixins.rowHCentered, theme.spacing(-0.5)),
|
|
4157
|
-
description: css(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteral(["\n font-
|
|
4046
|
+
description: css(_templateObject3$a || (_templateObject3$a = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n margin-top: ", ";\n text-align: center;\n "])), theme.palette.text.secondary, theme.spacing(4)),
|
|
4158
4047
|
transferWrapper: css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), theme.spacing(9)),
|
|
4159
|
-
transfer: css(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n font-
|
|
4048
|
+
transfer: css(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n font-weight: 400;\n ", "\n ", "\n height: 72px;\n background: #f9f8fa;\n border-radius: 4px;\n font-size: 16px;\n color: ", ";\n padding: ", ";\n margin-bottom: ", ";\n position: relative;\n box-sizing: border-box;\n "])), theme.cssMixins.rowSpaceBetweened, theme.cssMixins.rowVCentered, theme.palette.text.secondary, theme.spacing(3, 2), theme.spacing(1)),
|
|
4160
4049
|
transferItem: css(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral(["\n ", "\n "])), theme.cssMixins.rowVCentered),
|
|
4161
|
-
arrow: css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n @keyframes bounceAlpha {\n 0% {\n opacity: 1;\n transform: translateX(0px) scale(1);\n }\n 25% {\n opacity: 0;\n transform: translateX(10px) scale(0.9);\n }\n 26% {\n opacity: 0;\n transform: translateX(-10px) scale(0.9);\n }\n 55% {\n opacity: 1;\n transform: translateX(0px) scale(1);\n }\n }\n animation-name: bounceAlpha;\n animation-duration: 1.4s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n color:
|
|
4050
|
+
arrow: css(_templateObject7$1 || (_templateObject7$1 = _taggedTemplateLiteral(["\n @keyframes bounceAlpha {\n 0% {\n opacity: 1;\n transform: translateX(0px) scale(1);\n }\n 25% {\n opacity: 0;\n transform: translateX(10px) scale(0.9);\n }\n 26% {\n opacity: 0;\n transform: translateX(-10px) scale(0.9);\n }\n 55% {\n opacity: 1;\n transform: translateX(0px) scale(1);\n }\n }\n animation-name: bounceAlpha;\n animation-duration: 1.4s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n\n color: ", ";\n position: absolute;\n margin: auto;\n top: 0;\n left: calc(15% + 36px);\n bottom: 0;\n right: 0;\n width: 16px;\n height: 16px;\n "])), theme.palette.primary.main),
|
|
4162
4051
|
arrowFirst: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n left: calc(15% + 20px);\n animation-delay: 0.2s;\n "]))),
|
|
4163
4052
|
okButton: css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n width: 100%;\n position: absolute;\n bottom: 0;\n "]))),
|
|
4164
4053
|
usdcIcon: css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n width: 22px;\n margin-right: ", ";\n & > path:first-of-type {\n fill: #76707e;\n }\n "])), theme.spacing(2))
|
|
@@ -4182,7 +4071,7 @@ function ConfirmTransferModal(_ref) {
|
|
|
4182
4071
|
css: /*#__PURE__*/css$1({
|
|
4183
4072
|
width: '24px',
|
|
4184
4073
|
marginRight: theme.spacing(2)
|
|
4185
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:ConfirmTransferModal;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
4074
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:ConfirmTransferModal;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbmZpcm1UcmFuc2Zlck1vZGFsLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4SGMiLCJmaWxlIjoiQ29uZmlybVRyYW5zZmVyTW9kYWwudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY29tYmluZVN0eWxlcyB9IGZyb20gJ0BodW1hLWZpbmFuY2Uvc2hhcmVkJ1xuaW1wb3J0IEFycm93Rm9yd2FyZElvc0ljb24gZnJvbSAnQG11aS9pY29ucy1tYXRlcmlhbC9BcnJvd0ZvcndhcmRJb3MnXG5pbXBvcnQgeyBCb3gsIEJ1dHRvbiwgY3NzLCBUeXBvZ3JhcGh5LCB1c2VUaGVtZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5cbmltcG9ydCB7IFJlY2VpcHRJY29uLCBVc2RjSWNvbiB9IGZyb20gJy4vaWNvbnMnXG5cbnR5cGUgUHJvcHMgPSB7XG4gIHRpdGxlOiBzdHJpbmdcbiAgZGVzY3JpcHRpb246IHN0cmluZ1xuICBpdGVtczogW1xuICAgI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2NhbGUoMC45KTtcbiAgICAgICAgfVxuICAgICAgICA1NSUge1xuICAgICAgICAgIG9wYWNpdHk6IDE7XG4gICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDBweCkgc2NhbGUoMSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIGFuaW1hdGlvbi1uYW1lOiBib3VuY2VBbHBoYTtcbiAgICAgIGFuaW1hdGlvbi1kdXJhdGlvbjogMS40cztcbiAgICAgIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xuICAgICAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuXG4gICAgICBjb2xvcjogJHt0aGVtZS5wYWxldHRlLnByaW1hcnkubWFpbn07XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBtYXJnaW46IGF1dG87XG4gICAgICB0b3A6IDA7XG4gICAgICBsZWZ0OiBjYWxjKDE1JSArIDM2cHgpO1xuICAgICAgYm90dG9tOiAwO1xuICAgICAgcmlnaHQ6IDA7XG4gICAgICB3aWR0aDogMTZweDtcbiAgICAgIGhlaWdodDogMTZweDtcbiAgICBgLFxuICAgIGFycm93Rmlyc3Q6IGNzc2BcbiAgICAgIGxlZnQ6IGNhbGMoMTUlICsgMjBweCk7XG4gICAgICBhbmltYXRpb24tZGVsYXk6IDAuMnM7XG4gICAgYCxcbiAgICBva0J1dHRvbjogY3NzYFxuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICBib3R0b206IDA7XG4gICAgYCxcbiAgICB1c2RjSWNvbjogY3NzYFxuICAgICAgd2lkdGg6IDIycHg7XG4gICAgICBtYXJnaW4tcmlnaHQ6ICR7dGhlbWUuc3BhY2luZygyKX07XG4gICAgICAmID4gcGF0aDpmaXJzdC1vZi10eXBlIHtcbiAgICAgICAgZmlsbDogIzc2NzA3ZTtcbiAgICAgIH1cbiAgICBg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XG4gICAgICAgICAgICB7aXRlbXNbMV0ubGVmdFRleHR9XG4gICAgICAgICAgPC9Cb3g+XG4gICAgICAgICAgPEFycm93Rm9yd2FyZElvc0ljb25cbiAgICAgICAgICAgIGNzcz17Y29tYmluZVN0eWxlcyhbc3R5bGVzLmFycm93LCBzdHlsZXMuYXJyb3dGaXJzdF0pfVxuICAgICAgICAgIC8+XG4gICAgICAgICAgPEFycm93Rm9yd2FyZElvc0ljb24gY3NzPXtzdHlsZXMuYXJyb3d9IC8+XG4gICAgICAgICAgPEJveD57aXRlbXNbMV0ucmlnaHRUZXh0fTwvQm94PlxuICAgICAgICA8L0JveD5cbiAgICAgIDwvQm94PlxuICAgICAgPEJ1dHRvbiB2YXJpYW50PSdjb250YWluZWQnIGNzcz17c3R5bGVzLm9rQnV0dG9ufSBvbkNsaWNrPXtoYW5kbGVBY3Rpb259PlxuICAgICAgICB7YWN0aW9uVGV4dH1cbiAgICAgIDwvQnV0dG9uPlxuICAgIDwvQm94PlxuICApXG59XG4iXX0= */")
|
|
4186
4075
|
}), items[0].leftText]
|
|
4187
4076
|
}), jsx(ArrowForwardIosIcon, {
|
|
4188
4077
|
css: combineStyles([styles.arrow, styles.arrowFirst])
|
|
@@ -4548,9 +4437,9 @@ function ChooseTranche$1(_ref) {
|
|
|
4548
4437
|
const theme = useTheme();
|
|
4549
4438
|
const dispatch = useAppDispatch();
|
|
4550
4439
|
const styles = {
|
|
4551
|
-
subTitle: css(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral(["\n color: ", " !important;\n font-
|
|
4440
|
+
subTitle: css(_templateObject$e || (_templateObject$e = _taggedTemplateLiteral(["\n color: ", " !important;\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n margin-top: ", ";\n margin-left: ", ";\n "])), theme.palette.text.primary, theme.spacing(5), theme.spacing(2)),
|
|
4552
4441
|
radioGroup: css(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n margin-left: ", ";\n margin-top: ", ";\n "])), theme.spacing(3), theme.spacing(3)),
|
|
4553
|
-
formControl: css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n\n .MuiFormControlLabel-label {\n color: ", ";\n font-
|
|
4442
|
+
formControl: css(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n\n .MuiFormControlLabel-label {\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n }\n "])), theme.spacing(1), theme.palette.text.primary)
|
|
4554
4443
|
};
|
|
4555
4444
|
const handleNext = () => {
|
|
4556
4445
|
dispatch(setStep(WIDGET_STEP.ChooseAmount));
|
|
@@ -4936,7 +4825,7 @@ function EvaluationEA(_ref) {
|
|
|
4936
4825
|
const [loading, setLoading] = useState(false);
|
|
4937
4826
|
const styles = {
|
|
4938
4827
|
iconWrapper: css(_templateObject$d || (_templateObject$d = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 144px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(8)),
|
|
4939
|
-
description: css(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-
|
|
4828
|
+
description: css(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n "])), theme.cssMixins.rowCentered, theme.spacing(10), theme.spacing(0, 2), theme.palette.text.secondary)
|
|
4940
4829
|
};
|
|
4941
4830
|
const approveLender = async () => {
|
|
4942
4831
|
if (account) {
|
|
@@ -4986,12 +4875,12 @@ function EvaluationEA(_ref) {
|
|
|
4986
4875
|
|
|
4987
4876
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4988
4877
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
4989
|
-
name: "
|
|
4990
|
-
styles: "font-size:15px;font-
|
|
4878
|
+
name: "18lfdfz",
|
|
4879
|
+
styles: "font-size:15px;font-weight:400"
|
|
4991
4880
|
} : {
|
|
4992
|
-
name: "
|
|
4993
|
-
styles: "font-size:15px;font-
|
|
4994
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUNnQiIsImZpbGUiOiJIdW1hU25hY2tCYXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBBbGVydCwgQm94LCBTbmFja2JhciwgdXNlVGhlbWUgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuXG50eXBlIFByb3BzID0ge1xuICBvcGVuOiBib29sZWFuXG4gIHRpdGxlOiBzdHJpbmdcbiAgbWVzc2FnZTogc3RyaW5nXG4gIHNldmVyaXR5OiAnc3VjY2VzcycgfCAnaW5mbycgfCAnd2FybmluZycgfCAnZXJyb3InXG4gIGF1dG9IaWRlRHVyYXRpb24/
|
|
4881
|
+
name: "1hr00hl-message",
|
|
4882
|
+
styles: "font-size:15px;font-weight:400;label:message;",
|
|
4883
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUNnQiIsImZpbGUiOiJIdW1hU25hY2tCYXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBBbGVydCwgQ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uIChcbiAgICA8U25hY2tiYXJcbiAgICAgIG9wZW49e29wZW59XG4gICAgICBhdXRvSGlkZUR1cmF0aW9uPXthdXRvSGlkZUR1cmF0aW9uID8/IDYwMDB9XG4gICAgICBvbkNsb3NlPXtvbkNsb3NlfVxuICAgICAgY3NzPXtzdHlsZXMuc25hY2tiYXJ9XG4gICAgPlxuICAgICAgPEFsZXJ0XG4gICAgICAgIG9uQ2xvc2U9e29uQ2xvc2V9XG4gICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgc2V2ZXJpdHk9e3NldmVyaXR5fVxuICAgICAgICBjc3M9e3N0eWxlcy5hbGVydH1cbiAgICAgID5cbiAgICAgICAgPEJveCBjc3M9e3N0eWxlcy50aXRsZX0+e3RpdGxlfTwvQm94PlxuICAgICAgICA8Qm94IGNzcz17c3R5bGVzLm1lc3NhZ2V9PnttZXNzYWdlfTwvQm94PlxuICAgICAgPC9BbGVydD5cbiAgICA8L1NuYWNrYmFyPlxuICApXG59XG4iXX0= */",
|
|
4995
4884
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
4996
4885
|
};
|
|
4997
4886
|
function HumaSnackBar(_ref2) {
|
|
@@ -5005,9 +4894,9 @@ function HumaSnackBar(_ref2) {
|
|
|
5005
4894
|
} = _ref2;
|
|
5006
4895
|
const theme = useTheme();
|
|
5007
4896
|
const styles = {
|
|
5008
|
-
snackbar: /*#__PURE__*/css$1("margin-top:", theme.spacing(10), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:snackbar;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJpQiIsImZpbGUiOiJIdW1hU25hY2tCYXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBBbGVydCwgQm94LCBTbmFja2JhciwgdXNlVGhlbWUgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuXG50eXBlIFByb3BzID0ge1xuICBvcGVuOiBib29sZWFuXG4gIHRpdGxlOiBzdHJpbmdcbiAgbWVzc2FnZTogc3RyaW5nXG4gIHNldmVyaXR5OiAnc3VjY2VzcycgfCAnaW5mbycgfCAnd2FybmluZycgfCAnZXJyb3InXG4gIGF1dG9IaWRlRHVyYXRpb24/
|
|
5009
|
-
alert: /*#__PURE__*/css$1("max-width:400px;padding:", theme.spacing(2, 4, 2, 2), ";border-radius:16px;overflow:hidden;" + (process.env.NODE_ENV === "production" ? "" : ";label:alert;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
5010
|
-
title: /*#__PURE__*/css$1("margin-bottom:", theme.spacing(1), ";font-size:16px;font-
|
|
4897
|
+
snackbar: /*#__PURE__*/css$1("margin-top:", theme.spacing(10), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:snackbar;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUJpQiIsImZpbGUiOiJIdW1hU25hY2tCYXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnXG5pbXBvcnQgeyBBbGVydCwgQm94LCBTbmFja2JhciwgdXNlVGhlbWUgfSBmcm9tICdAbXVpL21hdGVyaWFsJ1xuXG50eXBlIFByb3BzID0ge1xuICBvcGVuOiBib29sZWFuXG4gIHRpdGxlOiBzdHJpbmdcbiAgbWVzc2FnZTogc3RyaW5nXG4gIHNldmVyaXR5OiAnc3VjY2VzcycgfCAna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AgPlxuICAgICAgPEFsZXJ0XG4gICAgICAgIG9uQ2xvc2U9e29uQ2xvc2V9XG4gICAgICAgIHRpdGxlPXt0aXRsZX1cbiAgICAgICAgc2V2ZXJpdHk9e3NldmVyaXR5fVxuICAgICAgICBjc3M9e3N0eWxlcy5hbGVydH1cbiAgICAgID5cbiAgICAgICAgPEJveCBjc3M9e3N0eWxlcy50aXRsZX0+e3RpdGxlfTwvQm94PlxuICAgICAgICA8Qm94IGNzcz17c3R5bGVzLm1lc3NhZ2V9PnttZXNzYWdlfTwvQm94PlxuICAgICAgPC9BbGVydD5cbiAgICA8L1NuYWNrYmFyPlxuICApXG59XG4iXX0= */"),
|
|
4898
|
+
alert: /*#__PURE__*/css$1("max-width:400px;padding:", theme.spacing(2, 4, 2, 2), ";border-radius:16px;overflow:hidden;" + (process.env.NODE_ENV === "production" ? "" : ";label:alert;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMEJjIiwiZmlsZSI6Ikh1bWFTbmFja0Jhci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IEFsZXJ0LCBCb3gsIFNuYWNrYmFyLCB1c2VUaGVtZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5cbnR5cGUgUHJvcHMgPSB7XG4gIG9wZW46IGJvb2xlYW5cbiAgdGl0bGU6IHN0cmluZ1xuICBtZXNzYWdlOiBzdHJpbmdcbiAgc2V2ZXJpdHk6ICdzdWNjZXNzJyB8ICdpbmZvJyB8ICd3YXJuaW5nJyB8ICdlcnJvcidcbiAgYXV0b0hpZGVEdXJhdGlvbj86IG51bWJlclxuICBvbkNsb3NlOiAoKSA9PiB2b2lkXG59XG5cb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ZXJpdHl9XG4gICAgICAgIGNzcz17c3R5bGVzLmFsZXJ0fVxuICAgICAgPlxuICAgICAgICA8Qm94IGNzcz17c3R5bGVzLnRpdGxlfT57dGl0bGV9PC9Cb3g+XG4gICAgICAgIDxCb3ggY3NzPXtzdHlsZXMubWVzc2FnZX0+e21lc3NhZ2V9PC9Cb3g+XG4gICAgICA8L0FsZXJ0PlxuICAgIDwvU25hY2tiYXI+XG4gIClcbn1cbiJdfQ== */"),
|
|
4899
|
+
title: /*#__PURE__*/css$1("margin-bottom:", theme.spacing(1), ";font-size:16px;font-weight:700;" + (process.env.NODE_ENV === "production" ? "" : ";label:title;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkh1bWFTbmFja0Jhci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0NjIiwiZmlsZSI6Ikh1bWFTbmFja0Jhci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcbmltcG9ydCB7IEFsZXJ0LCBCb3gsIFNuYWNrYmFyLCB1c2VUaGVtZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5cbnR5cGUgUHJvcHMgPSB7XG4gIG9wZW46IGJvb2xlYW5cbiAgdGl0bGU6IHN0cmluZ1xuICBtZXNzYWdlOiBzdHJpbmdcbiAgc2V2ZXJpdHk6ICdzdWNjZXNzJyB8ICdpbmZvJyB8ICd3YXJuaW5nJyB8ICdlcnJvcidcbiAgYXV0b0hpZGVEdXJhdGlvbj86IG51bWJlclxuICBvbkNsb3NlOiAoKSA9PiB2b2lkXG59XG5cbmV4cG9ydCBmdW5jdGlvbiBIdW1hU25hY2tCYXIoe1xuICBvcGVuLFxuICBhdXRvSGlkZUR1cmF0aW9uLFxuICB0aXRsZSxcbiAgbWVzc2FnZSxcbiAgc2V2Z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ICAgICAgIDxCb3ggY3NzPXtzdHlsZXMubWVzc2FnZX0+e21lc3NhZ2V9PC9Cb3g+XG4gICAgICA8L0FsZXJ0PlxuICAgIDwvU25hY2tiYXI+XG4gIClcbn1cbiJdfQ== */"),
|
|
5011
4900
|
message: _ref
|
|
5012
4901
|
};
|
|
5013
4902
|
return jsx(Snackbar, {
|
|
@@ -5098,7 +4987,7 @@ function EvaluationKYC(_ref) {
|
|
|
5098
4987
|
const [openSnackBar, setOpenSnackBar] = useState(false);
|
|
5099
4988
|
const styles = {
|
|
5100
4989
|
iconWrapper: css(_templateObject$c || (_templateObject$c = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 144px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(8)),
|
|
5101
|
-
description: css(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-
|
|
4990
|
+
description: css(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n "])), theme.cssMixins.rowCentered, theme.spacing(10), theme.spacing(0, 2), theme.palette.text.secondary)
|
|
5102
4991
|
};
|
|
5103
4992
|
const {
|
|
5104
4993
|
envelopeKey,
|
|
@@ -5551,9 +5440,9 @@ function ChooseTranche(_ref) {
|
|
|
5551
5440
|
const theme = useTheme();
|
|
5552
5441
|
const dispatch = useAppDispatch();
|
|
5553
5442
|
const styles = {
|
|
5554
|
-
subTitle: css(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n color: ", " !important;\n font-
|
|
5443
|
+
subTitle: css(_templateObject$b || (_templateObject$b = _taggedTemplateLiteral(["\n color: ", " !important;\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n margin-top: ", ";\n margin-left: ", ";\n "])), theme.palette.text.primary, theme.spacing(5), theme.spacing(2)),
|
|
5555
5444
|
radioGroup: css(_templateObject2$9 || (_templateObject2$9 = _taggedTemplateLiteral(["\n margin-left: ", ";\n margin-top: ", ";\n "])), theme.spacing(3), theme.spacing(3)),
|
|
5556
|
-
formControl: css(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n\n .MuiFormControlLabel-label {\n color: ", ";\n font-
|
|
5445
|
+
formControl: css(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n\n .MuiFormControlLabel-label {\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n }\n "])), theme.spacing(1), theme.palette.text.primary)
|
|
5557
5446
|
};
|
|
5558
5447
|
const handleNext = () => {
|
|
5559
5448
|
dispatch(setStep(WIDGET_STEP.ChooseAmount));
|
|
@@ -5647,15 +5536,15 @@ function PersonaEvaluation(_ref) {
|
|
|
5647
5536
|
const createNewWallet = async () => {
|
|
5648
5537
|
if (isWalletOwnershipVerified && campaign && account) {
|
|
5649
5538
|
var _localStorage$getItem;
|
|
5650
|
-
await CampaignService.createNewWallet(account, (_localStorage$getItem = localStorage.getItem(CAMPAIGN_REFERENCE_CODE)) !== null && _localStorage$getItem !== void 0 ? _localStorage$getItem : undefined);
|
|
5539
|
+
await CampaignService.createNewWallet(account, (_localStorage$getItem = localStorage.getItem(CAMPAIGN_REFERENCE_CODE)) !== null && _localStorage$getItem !== void 0 ? _localStorage$getItem : undefined, isDev);
|
|
5651
5540
|
}
|
|
5652
5541
|
};
|
|
5653
5542
|
createNewWallet();
|
|
5654
|
-
}, [account, campaign, isWalletOwnershipVerified]);
|
|
5543
|
+
}, [account, campaign, isDev, isWalletOwnershipVerified]);
|
|
5655
5544
|
useEffect(() => {
|
|
5656
5545
|
const getBasePoints = async () => {
|
|
5657
5546
|
if (campaign) {
|
|
5658
|
-
const estimatedPoints = await CampaignService.getEstimatedPoints(campaign.campaignGroupId, minDepositAmountBN.toString());
|
|
5547
|
+
const estimatedPoints = await CampaignService.getEstimatedPoints(campaign.campaignGroupId, minDepositAmountBN.toString(), isDev);
|
|
5659
5548
|
const campaignPoints = estimatedPoints.find(item => item.campaignId === campaign.id);
|
|
5660
5549
|
if (campaignPoints) {
|
|
5661
5550
|
const {
|
|
@@ -5671,7 +5560,7 @@ function PersonaEvaluation(_ref) {
|
|
|
5671
5560
|
}
|
|
5672
5561
|
};
|
|
5673
5562
|
getBasePoints();
|
|
5674
|
-
}, [campaign, isUniTranche, minDepositAmountBN]);
|
|
5563
|
+
}, [campaign, isDev, isUniTranche, minDepositAmountBN]);
|
|
5675
5564
|
const approveLender = useCallback(async () => {
|
|
5676
5565
|
try {
|
|
5677
5566
|
isActionOngoingRef.current = true;
|
|
@@ -5854,8 +5743,8 @@ function PersonaEvaluation(_ref) {
|
|
|
5854
5743
|
};
|
|
5855
5744
|
const styles = {
|
|
5856
5745
|
iconWrapper: css(_templateObject$a || (_templateObject$a = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 144px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(8)),
|
|
5857
|
-
description: css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n text-align: justify;\n margin-top: ", ";\n padding: ", ";\n font-
|
|
5858
|
-
points: css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n color:
|
|
5746
|
+
description: css(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteral(["\n text-align: justify;\n margin-top: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n "])), theme.spacing(10), theme.spacing(0, 2), theme.palette.text.primary),
|
|
5747
|
+
points: css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 700;\n "])), theme.palette.primary.main)
|
|
5859
5748
|
};
|
|
5860
5749
|
if (!loadingType) {
|
|
5861
5750
|
return jsxs(WrapperModal, {
|
|
@@ -6098,7 +5987,7 @@ function SecuritizeEvaluation(_ref) {
|
|
|
6098
5987
|
});
|
|
6099
5988
|
const styles = {
|
|
6100
5989
|
iconWrapper: css(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n & > img {\n width: 144px;\n }\n "])), theme.cssMixins.rowCentered, theme.spacing(8)),
|
|
6101
|
-
description: css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-
|
|
5990
|
+
description: css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteral(["\n ", ";\n margin-top: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 16px;\n color: ", ";\n "])), theme.cssMixins.rowCentered, theme.spacing(10), theme.spacing(0, 2), theme.palette.text.primary)
|
|
6102
5991
|
};
|
|
6103
5992
|
if (!loadingType) {
|
|
6104
5993
|
return jsxs(WrapperModal, {
|
|
@@ -6162,6 +6051,7 @@ function ChooseAmount$4(_ref) {
|
|
|
6162
6051
|
isUniTranche,
|
|
6163
6052
|
campaign
|
|
6164
6053
|
} = _ref;
|
|
6054
|
+
const isDev = checkIsDev();
|
|
6165
6055
|
const dispatch = useAppDispatch();
|
|
6166
6056
|
const {
|
|
6167
6057
|
account,
|
|
@@ -6183,7 +6073,7 @@ function ChooseAmount$4(_ref) {
|
|
|
6183
6073
|
useEffect(() => {
|
|
6184
6074
|
const getBasePoints = async () => {
|
|
6185
6075
|
if (campaign && selectedTranche && Number(debouncedValue) > 0) {
|
|
6186
|
-
const estimatedPoints = await CampaignService.getEstimatedPoints(campaign.campaignGroupId, ethers.utils.parseUnits(String(debouncedValue), poolInfo.poolUnderlyingToken.decimals).toString());
|
|
6076
|
+
const estimatedPoints = await CampaignService.getEstimatedPoints(campaign.campaignGroupId, ethers.utils.parseUnits(String(debouncedValue), poolInfo.poolUnderlyingToken.decimals).toString(), isDev);
|
|
6187
6077
|
const campaignPoints = estimatedPoints.find(item => item.campaignId === campaign.id);
|
|
6188
6078
|
if (campaignPoints) {
|
|
6189
6079
|
setCampaignPoints(campaignPoints["".concat(selectedTranche, "TranchePoints")]);
|
|
@@ -6192,7 +6082,7 @@ function ChooseAmount$4(_ref) {
|
|
|
6192
6082
|
}
|
|
6193
6083
|
};
|
|
6194
6084
|
getBasePoints();
|
|
6195
|
-
}, [campaign, debouncedValue, decimals, poolInfo.poolUnderlyingToken.decimals, selectedTranche]);
|
|
6085
|
+
}, [campaign, debouncedValue, decimals, isDev, poolInfo.poolUnderlyingToken.decimals, selectedTranche]);
|
|
6196
6086
|
const handleChangeAmount = newAmount => {
|
|
6197
6087
|
setCurrentAmount(newAmount);
|
|
6198
6088
|
dispatch(setSupplyAmount(Number(newAmount)));
|
|
@@ -6384,6 +6274,7 @@ function PointsEarned(_ref) {
|
|
|
6384
6274
|
handleAction
|
|
6385
6275
|
} = _ref;
|
|
6386
6276
|
const theme = useTheme();
|
|
6277
|
+
const isDev = checkIsDev();
|
|
6387
6278
|
const dispatch = useDispatch();
|
|
6388
6279
|
const {
|
|
6389
6280
|
account,
|
|
@@ -6397,7 +6288,7 @@ function PointsEarned(_ref) {
|
|
|
6397
6288
|
setError: setAuthError,
|
|
6398
6289
|
isWalletOwnershipVerified,
|
|
6399
6290
|
isWalletOwnershipVerificationRequired
|
|
6400
|
-
} = useAuthErrorHandling(
|
|
6291
|
+
} = useAuthErrorHandling(isDev);
|
|
6401
6292
|
const [walletOwnership, setWalletOwnership] = useState();
|
|
6402
6293
|
const [state, setState] = useState(STATE.Loading);
|
|
6403
6294
|
useEffect(() => {
|
|
@@ -6412,14 +6303,14 @@ function PointsEarned(_ref) {
|
|
|
6412
6303
|
}, [isWalletOwnershipVerified]);
|
|
6413
6304
|
useEffect(() => {
|
|
6414
6305
|
const checkWalletOwnership = async () => {
|
|
6415
|
-
const ownership = await CampaignService.checkWalletOwnership(account);
|
|
6306
|
+
const ownership = await CampaignService.checkWalletOwnership(account, isDev);
|
|
6416
6307
|
setWalletOwnership(ownership);
|
|
6417
6308
|
if (!ownership) {
|
|
6418
6309
|
setAuthError('WalletNotSignInException');
|
|
6419
6310
|
}
|
|
6420
6311
|
};
|
|
6421
6312
|
checkWalletOwnership();
|
|
6422
|
-
}, [account, setAuthError]);
|
|
6313
|
+
}, [account, isDev, setAuthError]);
|
|
6423
6314
|
useEffect(() => {
|
|
6424
6315
|
if (errorType === 'NotSignedIn') {
|
|
6425
6316
|
setState(STATE.SignIn);
|
|
@@ -6437,7 +6328,7 @@ function PointsEarned(_ref) {
|
|
|
6437
6328
|
const updateWalletPoints = async () => {
|
|
6438
6329
|
if (walletOwnership) {
|
|
6439
6330
|
try {
|
|
6440
|
-
const result = await CampaignService.updateWalletPoints(chainId, account, transactionHash);
|
|
6331
|
+
const result = await CampaignService.updateWalletPoints(chainId, account, transactionHash, isDev);
|
|
6441
6332
|
if (!result.pointsAccumulated) {
|
|
6442
6333
|
dispatch(setError({
|
|
6443
6334
|
errorMessage: ERROR_MESSAGE
|
|
@@ -6453,15 +6344,15 @@ function PointsEarned(_ref) {
|
|
|
6453
6344
|
}
|
|
6454
6345
|
};
|
|
6455
6346
|
updateWalletPoints();
|
|
6456
|
-
}, [account, chainId, dispatch, transactionHash, walletOwnership]);
|
|
6347
|
+
}, [account, chainId, dispatch, isDev, transactionHash, walletOwnership]);
|
|
6457
6348
|
const styles = {
|
|
6458
6349
|
wrapper: css(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral(["\n height: 518px;\n position: relative;\n "]))),
|
|
6459
6350
|
congrats: css(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n margin: ", ";\n "])), theme.spacing(-4, -4.5, 0, -4.5)),
|
|
6460
|
-
ribbon: css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n position: relative;\n ", ";\n font-
|
|
6351
|
+
ribbon: css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n position: relative;\n ", ";\n font-weight: 700;\n margin-top: ", ";\n color: ", ";\n font-size: 20px;\n line-height: 160%;\n letter-spacing: 0.15px;\n "])), theme.cssMixins.rowHCentered, theme.spacing(-8), theme.palette.text.primary),
|
|
6461
6352
|
ribbonContent: css(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral(["\n ", ";\n position: absolute;\n top: ", ";\n\n svg {\n margin-right: ", ";\n }\n "])), theme.cssMixins.rowVCentered, theme.spacing(1), theme.spacing(1)),
|
|
6462
|
-
entirePoints: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n text-align: center;\n font-
|
|
6463
|
-
entirePointsDetails: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n text-align: center;\n font-
|
|
6464
|
-
everyday: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-
|
|
6353
|
+
entirePoints: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n text-align: center;\n font-weight: 700;\n font-size: 20px;\n line-height: 160%;\n letter-spacing: 0.15px;\n margin-top: ", ";\n "])), theme.palette.text.tertiary, theme.spacing(7)),
|
|
6354
|
+
entirePointsDetails: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n text-align: center;\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n margin-top: ", ";\n "])), theme.palette.text.tertiary, theme.spacing(4)),
|
|
6355
|
+
everyday: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n font-weight: 700;\n "])))
|
|
6465
6356
|
};
|
|
6466
6357
|
if (state === STATE.SignIn) {
|
|
6467
6358
|
return jsx(SignIn, {
|
|
@@ -6884,10 +6775,10 @@ function ConfirmTransfer$1(_ref) {
|
|
|
6884
6775
|
dispatch(setStep(WIDGET_STEP.Transfer));
|
|
6885
6776
|
};
|
|
6886
6777
|
const styles = {
|
|
6887
|
-
itemWrapper: css(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n margin-top: ", ";\n color: ", ";\n font-
|
|
6778
|
+
itemWrapper: css(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n margin-top: ", ";\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 175%;\n letter-spacing: 0.15px;\n "])), theme.spacing(9), theme.palette.text.primary),
|
|
6888
6779
|
item: css(_templateObject2$5 || (_templateObject2$5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: ", ";\n "])), theme.spacing(3)),
|
|
6889
|
-
itemValue: css(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n font-size: 20px;\n font-
|
|
6890
|
-
divider: css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n border-color:
|
|
6780
|
+
itemValue: css(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n font-size: 20px;\n font-weight: 700;\n "]))),
|
|
6781
|
+
divider: css(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n border-color: ", ";\n margin-bottom: ", ";\n "])), theme.palette.divider, theme.spacing(3))
|
|
6891
6782
|
};
|
|
6892
6783
|
return jsxs(WrapperModal, {
|
|
6893
6784
|
title: "Withdraw ".concat(symbol),
|
|
@@ -7376,9 +7267,9 @@ function ChoosePaymentType(_ref) {
|
|
|
7376
7267
|
const theme = useTheme();
|
|
7377
7268
|
const dispatch = useAppDispatch();
|
|
7378
7269
|
const styles = {
|
|
7379
|
-
subTitle: css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n color: ", " !important;\n font-
|
|
7270
|
+
subTitle: css(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n color: ", " !important;\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n margin-top: ", ";\n margin-left: ", ";\n "])), theme.palette.text.primary, theme.spacing(5), theme.spacing(2)),
|
|
7380
7271
|
radioGroup: css(_templateObject2$4 || (_templateObject2$4 = _taggedTemplateLiteral(["\n margin-left: ", ";\n margin-top: ", ";\n "])), theme.spacing(3), theme.spacing(3)),
|
|
7381
|
-
formControl: css(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n .MuiFormControlLabel-label {\n color: ", ";\n font-
|
|
7272
|
+
formControl: css(_templateObject3$4 || (_templateObject3$4 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n .MuiFormControlLabel-label {\n color: ", ";\n font-weight: 400;\n font-size: 16px;\n line-height: 150%;\n letter-spacing: 0.15px;\n }\n "])), theme.spacing(1), theme.palette.text.primary)
|
|
7382
7273
|
};
|
|
7383
7274
|
const handleNext = () => {
|
|
7384
7275
|
dispatch(setStep(WIDGET_STEP.ChooseAmount));
|
|
@@ -7838,9 +7729,9 @@ function HumaTable(_ref) {
|
|
|
7838
7729
|
} = useElementDimensions(ref);
|
|
7839
7730
|
const isLoading = !columns || !rows;
|
|
7840
7731
|
const styles = {
|
|
7841
|
-
tableHeader: css(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n font-
|
|
7842
|
-
tableBody: css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n font-
|
|
7843
|
-
empty: css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: ", ";\n font-
|
|
7732
|
+
tableHeader: css(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n font-weight: 400;\n ", "\n font-size: 14px;\n color: rgba(0, 0, 0, 0.87);\n "])), theme.cssMixins.rowVCentered),
|
|
7733
|
+
tableBody: css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n font-weight: 400;\n font-size: 14px;\n color: rgba(0, 0, 0, 0.87);\n "]))),
|
|
7734
|
+
empty: css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: ", ";\n font-weight: 400;\n font-size: 14px;\n "])), theme.spacing(2))
|
|
7844
7735
|
};
|
|
7845
7736
|
const handleChangePage = (event, newPage) => {
|
|
7846
7737
|
setPage(newPage);
|
|
@@ -8030,8 +7921,8 @@ function Activity(_ref) {
|
|
|
8030
7921
|
}, [data === null || data === void 0 ? void 0 : data.creditEvents, decimals]);
|
|
8031
7922
|
const styles = {
|
|
8032
7923
|
wrapper: css(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n margin-top: ", ";\n "])), theme.spacing(9)),
|
|
8033
|
-
title: css(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n font-
|
|
8034
|
-
tableWrapper: css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral(["\n
|
|
7924
|
+
title: css(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n font-weight: 800;\n font-size: 24px;\n color: ", ";\n margin-bottom: ", ";\n "])), theme.palette.text.primary, theme.spacing(2)),
|
|
7925
|
+
tableWrapper: css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteral(["\n box-shadow: 0px 4px 40px 8px rgba(0, 0, 0, 0.04);\n border-radius: 24px;\n padding: ", ";\n "])), getPadding())
|
|
8035
7926
|
};
|
|
8036
7927
|
return jsxs(Box, {
|
|
8037
7928
|
css: styles.wrapper,
|
|
@@ -8415,8 +8306,8 @@ function UpcomingList(_ref) {
|
|
|
8415
8306
|
return theme.spacing(0, 2, 2, 2);
|
|
8416
8307
|
};
|
|
8417
8308
|
const styles = {
|
|
8418
|
-
title: css(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n font-
|
|
8419
|
-
description: css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n font-
|
|
8309
|
+
title: css(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n font-weight: 800;\n color: ", ";\n font-size: 24px;\n margin-bottom: ", ";\n "])), theme.palette.text.primary, theme.spacing(2)),
|
|
8310
|
+
description: css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n font-weight: 400;\n color: ", ";\n font-size: 1rem;\n "])), theme.palette.text.primary),
|
|
8420
8311
|
tableWrapper: css(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n margin-top: ", ";\n padding: ", ";\n background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);\n border: 1px solid #ffffff;\n border-radius: 24px;\n position: relative;\n "])), theme.spacing(3), getPadding()),
|
|
8421
8312
|
progress: css(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n width: calc(100% - 30px);\n position: absolute;\n top: 0;\n left: ", ";\n "])), theme.spacing(2))
|
|
8422
8313
|
};
|
|
@@ -8455,7 +8346,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
|
8455
8346
|
} : {
|
|
8456
8347
|
name: "w5slvu-icon",
|
|
8457
8348
|
styles: "width:24px;label:icon;",
|
|
8458
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZhY3RvcmVkTGlzdC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNkQ2QiIsImZpbGUiOiJGYWN0b3JlZExpc3QudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQm94LCBjc3MsIExpbmVhclByb2dyZXNzLCB1c2VUaGVtZSB9IGZyb20gJ0BtdWkvbWF0ZXJpYWwnXG5pbXBvcnQgeyB1c2VXZWIzUmVhY3QgfSBmcm9tICdAd2ViMy1yZWFjdC9jb3JlJ1xuaW1wb3J0IHtcbiAgQWNjb3VudFN0YXRzLFxuICBkb3duU2NhbGUsXG4gIGZvcm1hdE1vbmV5LFxuICBoYXNSRkFjdGl2ZUxvYW4sXG4gIFBvb2xJbmZvVHlwZSxcbiAgdGltZXN0YW1wVG9MTCxcbiAgdXNlTVEsXG4gIHVzZVBvb2xVbmRlcmx5aW5nVG9rZW4sXG59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Jz5cbiAgICAgICAgICAgIFBsZWFzZSBjb25uZWN0IHdhbGxldCB0byBjaGVjayB5b3VyIGZhY3RvcmVkIHt0aXRsZS50b0xvd2VyQ2FzZSgpfS5cbiAgICAgICAgICA8L0JveD5cbiAgICAgICAgKX1cbiAgICAgICAge2lzQWN0aXZlICYmICFoYXNBY3RpdmVMb2FuICYmIChcbiAgICAgICAgICA8Qm94IGNvbXBvbmVudD0nc3Bhbic+XG4gICAgICAgICAgICBZb3UgZG9u4oCZdCBoYXZlIGFueSBmYWN0b3JlZCB7dGl0bGUudG9Mb3dlckNhc2UoKX0uXG4gICAgICAgICAgPC9Cb3g+XG4gICAgICAgICl9XG4gICAgICAgIHtpc0FjdGl2ZSAmJiBoYXNBY3RpdmVMb2FuICYmIGZhY3RvcmVkSXRlbSAmJiAoXG4gICAgICAgICAgPEJveCBjc3M9e3N0eWxlcy50YWJsZVdyYXBwZXJ9PlxuICAgICAgICAgICAge2xvYWRpbmcgJiYgKFxuICAgICAgICAgICAgICA8Qm94IGNzcz17c3R5bGVzLnByb2dyZXNzfT5cbiAgICAgICAgICAgICAgICA8TGluZWFyUHJvZ3Jlc3MgLz5cbiAgICAgICAgICAgICAgPC9Cb3g+XG4gICAgICAgICAgICApfVxuICAgICAgICAgICAgPEh1bWFUYWJsZVxuICAgICAgICAgICAgICBjb2x1bW5zPXtnZXRDb2x1bW5zKGhhbmRsZVBheU1hbnVhbGx5KX1cbiAgICAgICAgICAgICAgcm93cz17W2ZhY3RvcmVkSXRlbV19XG4gICAgICAgICAgICAvPlxuICAgICAgICAgIDwvQm94PlxuICAgICAgICApfVxuICAgICAgPC9Cb3g+XG4gICAgPC9Cb3g+XG4gIClcbn1cbiJdfQ== */",
|
|
8459
8350
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
8460
8351
|
};
|
|
8461
8352
|
function FactoredList(_ref) {
|
|
@@ -8525,8 +8416,8 @@ function FactoredList(_ref) {
|
|
|
8525
8416
|
return theme.spacing(0, 2, 2, 2);
|
|
8526
8417
|
};
|
|
8527
8418
|
const styles = {
|
|
8528
|
-
title: css(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n font-
|
|
8529
|
-
description: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-
|
|
8419
|
+
title: css(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n font-weight: 800;\n color: ", ";\n font-size: 24px;\n margin-bottom: ", ";\n "])), theme.palette.text.primary, theme.spacing(2)),
|
|
8420
|
+
description: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-weight: 400;\n color: ", ";\n font-size: 1rem;\n "])), theme.palette.text.primary),
|
|
8530
8421
|
tableWrapper: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: ", ";\n padding: ", ";\n background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);\n border: 1px solid #ffffff;\n border-radius: 24px;\n position: relative;\n "])), theme.spacing(3), getPadding()),
|
|
8531
8422
|
progress: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: calc(100% - 30px);\n position: absolute;\n top: 0;\n left: ", ";\n "])), theme.spacing(2))
|
|
8532
8423
|
};
|
|
@@ -8734,7 +8625,7 @@ function SuperfluidUpcomingList(_ref) {
|
|
|
8734
8625
|
}
|
|
8735
8626
|
|
|
8736
8627
|
function SuperfluidFactoring() {
|
|
8737
|
-
var _PoolMap$Stream$poolN, _poolInfo$extra
|
|
8628
|
+
var _PoolMap$Stream$poolN, _poolInfo$extra;
|
|
8738
8629
|
const theme = useTheme();
|
|
8739
8630
|
const poolName = POOL_NAME.Superfluid;
|
|
8740
8631
|
const {
|
|
@@ -8777,7 +8668,7 @@ function SuperfluidFactoring() {
|
|
|
8777
8668
|
loading: loading && actionType === 'borrow'
|
|
8778
8669
|
})
|
|
8779
8670
|
}), jsx(ApolloWrapper, {
|
|
8780
|
-
uri: (
|
|
8671
|
+
uri: SubgraphService.getSubgraphUrlForChainId(chainId),
|
|
8781
8672
|
children: poolInfo && jsx(Activity, {
|
|
8782
8673
|
poolInfo: poolInfo,
|
|
8783
8674
|
targetEvents: [CreditEvent.DrawdownMadeWithReceivable, CreditEvent.PaymentMade, CreditEvent.ReceivedPaymentProcessed]
|
|
@@ -8836,7 +8727,7 @@ function components(theme) {
|
|
|
8836
8727
|
}
|
|
8837
8728
|
},
|
|
8838
8729
|
root: {
|
|
8839
|
-
|
|
8730
|
+
fontWeight: '700',
|
|
8840
8731
|
fontSize: '15px',
|
|
8841
8732
|
borderRadius: '32px',
|
|
8842
8733
|
'&.MuiButton-containedPrimary': {
|
|
@@ -8853,7 +8744,7 @@ function components(theme) {
|
|
|
8853
8744
|
textTransform: 'none',
|
|
8854
8745
|
'&.Mui-disabled': {
|
|
8855
8746
|
border: 'none',
|
|
8856
|
-
background: 'rgba(
|
|
8747
|
+
background: 'linear-gradient(232.71deg, rgba(178, 70, 255, 0.25) 5%, rgba(255, 106, 138, 0.25) 175%)',
|
|
8857
8748
|
boxShadow: 'unset'
|
|
8858
8749
|
}
|
|
8859
8750
|
}
|
|
@@ -9028,6 +8919,123 @@ const cssMixins = {
|
|
|
9028
8919
|
}
|
|
9029
8920
|
};
|
|
9030
8921
|
|
|
8922
|
+
// primary
|
|
8923
|
+
const primaryPurple = '#b246ff';
|
|
8924
|
+
const primaryBlueLight = '#4473EB';
|
|
8925
|
+
const pendingBlue = '#226BF9';
|
|
8926
|
+
const pendingBlueMid = '#4584FF';
|
|
8927
|
+
const pendingBlueLight = '#79A5FB';
|
|
8928
|
+
const warningRed = '#D01638';
|
|
8929
|
+
const warningRedLight = '#FF4366';
|
|
8930
|
+
const warningRedPastel = '#FF708B';
|
|
8931
|
+
const darkBackground = '#0C2436';
|
|
8932
|
+
const white = '#FFFFFF';
|
|
8933
|
+
const black = {
|
|
8934
|
+
1: '#000000',
|
|
8935
|
+
2: '#2A252F',
|
|
8936
|
+
3: '#423B46',
|
|
8937
|
+
4: '#534E59',
|
|
8938
|
+
5: '#6B6572',
|
|
8939
|
+
6: '#76707E'
|
|
8940
|
+
};
|
|
8941
|
+
const orange = {
|
|
8942
|
+
100: '#FFA979',
|
|
8943
|
+
300: '#FF8F51',
|
|
8944
|
+
500: '#FD792F',
|
|
8945
|
+
700: '#E96216'
|
|
8946
|
+
};
|
|
8947
|
+
const yellow = {
|
|
8948
|
+
100: '#FFECB0',
|
|
8949
|
+
300: '#FFE07E',
|
|
8950
|
+
500: '#FFD54F',
|
|
8951
|
+
700: '#F8BE28'
|
|
8952
|
+
};
|
|
8953
|
+
const grey = {
|
|
8954
|
+
100: '#CBD6DE',
|
|
8955
|
+
200: '#BDB5C8',
|
|
8956
|
+
300: '#d3ccdd',
|
|
8957
|
+
400: '#EAE6F0',
|
|
8958
|
+
600: '#395062',
|
|
8959
|
+
700: '#6B6572',
|
|
8960
|
+
800: '#4A4A4A'
|
|
8961
|
+
};
|
|
8962
|
+
const green = {
|
|
8963
|
+
100: '#66F8D3',
|
|
8964
|
+
200: '#1DE9B6',
|
|
8965
|
+
500: '#00CA97',
|
|
8966
|
+
700: '#0DBC90'
|
|
8967
|
+
};
|
|
8968
|
+
const blue = {
|
|
8969
|
+
50: '#8AD5FF',
|
|
8970
|
+
100: '#3DB9FF',
|
|
8971
|
+
200: '#0BA7FE',
|
|
8972
|
+
300: '#0095E9',
|
|
8973
|
+
500: '#0070AF',
|
|
8974
|
+
800: '#013859'
|
|
8975
|
+
};
|
|
8976
|
+
const paletteCore = {
|
|
8977
|
+
alert: {
|
|
8978
|
+
contrastText: black[1],
|
|
8979
|
+
dark: yellow[700],
|
|
8980
|
+
light: yellow[300],
|
|
8981
|
+
main: yellow[500]
|
|
8982
|
+
},
|
|
8983
|
+
background: {
|
|
8984
|
+
default: white,
|
|
8985
|
+
paper: white
|
|
8986
|
+
},
|
|
8987
|
+
common: {
|
|
8988
|
+
black: black[1],
|
|
8989
|
+
white
|
|
8990
|
+
},
|
|
8991
|
+
default: {
|
|
8992
|
+
contrastText: black[1],
|
|
8993
|
+
dark: white,
|
|
8994
|
+
light: white,
|
|
8995
|
+
main: white
|
|
8996
|
+
},
|
|
8997
|
+
divider: grey[600],
|
|
8998
|
+
error: {
|
|
8999
|
+
dark: warningRed,
|
|
9000
|
+
light: warningRedPastel,
|
|
9001
|
+
main: warningRedLight
|
|
9002
|
+
},
|
|
9003
|
+
grey,
|
|
9004
|
+
info: {
|
|
9005
|
+
contrastText: black[1],
|
|
9006
|
+
dark: pendingBlue,
|
|
9007
|
+
light: pendingBlueLight,
|
|
9008
|
+
main: pendingBlueMid,
|
|
9009
|
+
superDark: darkBackground,
|
|
9010
|
+
superLight: blue[50]
|
|
9011
|
+
},
|
|
9012
|
+
mode: 'light',
|
|
9013
|
+
primary: {
|
|
9014
|
+
main: primaryPurple,
|
|
9015
|
+
light: primaryBlueLight
|
|
9016
|
+
},
|
|
9017
|
+
secondary: {
|
|
9018
|
+
contrastText: black[1],
|
|
9019
|
+
main: white
|
|
9020
|
+
},
|
|
9021
|
+
success: {
|
|
9022
|
+
light: green[100],
|
|
9023
|
+
main: green[200]
|
|
9024
|
+
},
|
|
9025
|
+
text: {
|
|
9026
|
+
primary: grey[400],
|
|
9027
|
+
secondary: grey[200],
|
|
9028
|
+
tertiary: grey[300],
|
|
9029
|
+
quaternary: grey[400]
|
|
9030
|
+
},
|
|
9031
|
+
warning: {
|
|
9032
|
+
contrastText: black[1],
|
|
9033
|
+
light: orange[100],
|
|
9034
|
+
main: orange[500],
|
|
9035
|
+
superLight: yellow[100]
|
|
9036
|
+
}
|
|
9037
|
+
};
|
|
9038
|
+
|
|
9031
9039
|
const shape = {
|
|
9032
9040
|
borderRadius: coreThemeConstants.borderRadius.md
|
|
9033
9041
|
};
|
|
@@ -9127,8 +9135,7 @@ const typography = {
|
|
|
9127
9135
|
fontSize: '1.25rem',
|
|
9128
9136
|
fontWeight: 500,
|
|
9129
9137
|
letterSpacing: coreThemeConstants.letterSpacing.sm,
|
|
9130
|
-
lineHeight: coreThemeConstants.lineHeight.md
|
|
9131
|
-
color: 'rgba(0, 0, 0, 0.87)'
|
|
9138
|
+
lineHeight: coreThemeConstants.lineHeight.md
|
|
9132
9139
|
},
|
|
9133
9140
|
labsSmall: {
|
|
9134
9141
|
fontSize: '0.75rem'
|