This commit is contained in:
chip committed 2020-10-28 21:51:14 +01:00
commit 448b273dea
39 files changed
+988 -174

No files matched your search

+27 -1
View File
@@ -4,7 +4,33 @@ TODO
## Production Server Installation
TODO
### Configuration
This resource is highly configurable through the [config.json](./config.json). This JSON file holds configuration for the phone itself, for the apps running on it and peripheral information.
Below is the list of configuration options:
| Option | Default | Description |
|--------------------------------------|----------|--------------------------------------------------------------------------------------------------------------------------------|
| Locale | en | The language locale used by the app. See [fivem keybinds](https://docs.fivem.net/docs/game-references/controls/) for options |
| KeyTogglePhone | 288 (F1) | The keybind to open and close the app. See [fivem keybinds](https://docs.fivem.net/docs/game-references/controls/) for options |
| PhoneAsItem | false | whether or not the phone is an item in game |
| SwimDestroy | false | whether or not the phone will have a chance to be destroyed while swimming |
| RunRate | 10 | interval in seconds to check phone destruction |
| DestoryChance | 100 | Percent chance that phone destruction will occur |
| DestroyPhoneReCheck | 3 | Time in minutes before another phone destruction attempt will happen |
| notificationPosition.horizontal | right | Horizontal position of phone notifications. `left`, `center` or `right` |
| notificationPosition.vertical | bottom | Vertical positon of phone notifications. `top` or `bottom` |
| twitter.showNotifications | true | Whether or not to show twitter notifications |
| twitter.generateProfileNameFromUsers | true | Whether or not the server should automtically generate a player's profile name from their user in the database |
| twitter.allowEdtiableProfileName | true | Whether or not players can edit their profile name |
| twitter.characterLimit | 240 | Limit on how many characters tweets can contain |
| twitter.enableAvatars | true | Whether or not player's can select avatars for their twitter profile |
| twitter.enableEmojis | true | Whether or not player's can use emojis in tweets |
| twitter.enableImages | true | Whether or not player's can add images to tweets (external URLs) |
| twitter.maxImages | 3 | The maximum amount of images allowed in a tweet |
## Development
+24
View File
@@ -0,0 +1,24 @@
{
"Locale": "en",
"KeyTogglePhone": 288,
"KeyTakeCall": 38,
"PhoneAsItem": false,
"SwimDestroy": false,
"RunRate": 10,
"DestoryChance": 100,
"DestroyPhoneReCheck": 3,
"notificationPosition": {
"horizontal": "right",
"vertical": "bottom"
},
"twitter": {
"showNotifications": true,
"generateProfileNameFromUsers": true,
"allowEdtiableProfileName": true,
"characterLimit": 240,
"enableAvatars": true,
"enableEmojis": true,
"enableImages": true,
"maxImages": 3
}
}
+49 -2
View File
@@ -34,6 +34,23 @@ setTimeout(() => {
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
data: {
app: "BANK",
method: "setCredentials",
data:
{
name: "Firstname Lastname",
balance: 2000
}
},
})
);
}, 1000);
setTimeout(() => {
window.dispatchEvent(
new MessageEvent("message", {
@@ -44,13 +61,43 @@ setTimeout(() => {
{
id: 1,
amount: 200,
type: 'transfer'
type: 'Deposit',
source: "chip"
},{
id: 2,
amount: 200,
type: 'Withdraw',
source: "chip"
},
{
id: 3,
amount: 200,
type: 'Withdraw',
source: "chip"
},
{
id: 4,
amount: 50,
type: 'Deposit',
source: "chip"
},
{
id: 4,
amount: 50,
type: 'Deposit',
source: "chip"
},
{
id: 4,
amount: 50,
type: 'Deposit',
source: "chip"
}
]
}
})
)
})
}, 1000)
setTimeout(() => {
window.dispatchEvent(
@@ -1 +1,45 @@
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
/* #### Generated By: http://www.cufonfonts.com #### */
@font-face {
font-family: 'Bahnschrift Regular';
font-style: normal;
font-weight: normal;
src: local('Bahnschrift Regular'), url('../fonts/BAHNSCHRIFT.woff') format('woff');
}
#account-section, #transaction-section {
font-family: 'Bahnschrift Regular'
}
#transaction-section .MuiTablePagination-root {
font-size: 15px;
}
#transaction-section .MuiTablePagination-caption {
font-size: 15px;
font-family: 'Bahnschrift Regular';
}
#transaction-section .MuiTablePagination-actions {
font-size: 50px;
}
#bank-app .Mui-selected {
color: #388CF8 !important;
}
#bank-title {
font-family: 'Bebas Neue', cursive;
font-size: 50px;
}
.card-name {
font-size: 20px;
}
#actionButton a {
color: #fff;
}
+24 -19
View File
@@ -1,19 +1,26 @@
import React from "react";
import { makeStyles } from "@material-ui/core";
import { BankTitle } from './BankTitle';
import { makeStyles, Paper, Typography } from "@material-ui/core";
import { BankTitle } from "./BankTitle";
import { AppWrapper } from "../../../ui/components";
import { AppContent } from "../../../ui/components/AppContent";
import { Button } from "../../../ui/components/Button";
import { useTranslation } from "react-i18next";
import { useTransactions } from "../hooks/useTransactions";
import { TransactionList } from './transactions/TransactionList';
import "./BankApp.css";
import { useApp } from "../../../os/apps/hooks/useApps";
import { TransferModal } from './transfers/TransferModal';
import { TransferModal } from "./transfers/TransferModal";
import { useBankModal } from '../hooks/useBankModal';
import { useModal } from "../../twitter/hooks/useModal";
import { useBankModal } from "../hooks/useBankModal";
import { useCredentials } from "../hooks/useCredentials";
import { Switch, Route } from "react-router-dom";
// image
import CreditCard from '../img/credit-card.png'
import { NavigationBar } from "./navigation/NavigationBar";
import { BankHome } from './home/BankHome';
import { BankAccount } from './account/BankAccount';
import { TransactionList } from "./transactions/TransactionList";
const useStyles = makeStyles((theme) => ({
root: {
@@ -41,29 +48,27 @@ const useStyles = makeStyles((theme) => ({
}));
export const BankApp = () => {
const { showBankModal, setShowBankModal } = useBankModal()
const { transactionList } = useTransactions();
const { showBankModal, setShowBankModal } = useBankModal();
const { t } = useTranslation();
const classes = useStyles();
const openTransactionsModal = () => {
setShowBankModal(true)
}
setShowBankModal(true);
};
return (
<AppWrapper>
<AppWrapper id="bank-app">
<BankTitle />
<TransferModal />
<div className={showBankModal ? classes.backgroundModal : undefined} />
<AppContent>
<div>
<Button onClick={openTransactionsModal} fullWidth>{t("APPS_BANK_TRANSFER")}</Button>
</div>
<TransactionList transactions={transactionList}/>
<Switch>
<Route path="/bank" exact component={BankHome} />
<Route path="/bank/account" exact component={BankAccount} />
<Route path="/bank/transactions" exact component={TransactionList} />
</Switch>
</AppContent>
<NavigationBar />
</AppWrapper>
);
};
+4 -5
View File
@@ -3,11 +3,13 @@ import Paper from "@material-ui/core/Paper";
import { Typography ,makeStyles } from "@material-ui/core";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import './BankApp.css'
const useStyles = makeStyles((theme) => ({
root: {
height: "90px",
width: "100%",
display: "block",
display: "flex",
margin: 0,
justifyContent: "center",
alignItems: "center",
@@ -24,10 +26,7 @@ export const BankTitle = () => {
const classes = useStyles();
return (
<Paper className={classes.root} square variant="outlined" elevation={24}>
<Typography style={{ margin: 0}} variant="h4">WhoDis Banking</Typography>
<Typography variant="subtitle2">Some player name</Typography>
<Typography id="bank-title" style={{ margin: 0}} variant="h4">WhoDis Banking</Typography>
</Paper>
);
};
@@ -0,0 +1,104 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { makeStyles, Paper, Typography, Button } from "@material-ui/core";
import { useTransactions } from "../../hooks/useTransactions";
import { red } from "@material-ui/core/colors";
const useStyles = makeStyles((theme) => ({
root: {
width: "100%",
},
header: {
width: "90%",
display: "flex",
justifyItems: "center",
justifyContent: "space-between",
margin: "auto",
},
title: {
padding: 7,
borderRadius: "10px",
display: "flex",
justifyItems: "center",
justifyContent: "center",
fontSize: "24px",
},
seeAll: {
fontFamily: "Bahnschrift Regular",
fontWeight: "bold",
height: 'auto'
},
transcationDiv: {
marginTop: '-30px',
},
transactions: {
marginLeft: "32px",
display: "flex",
justifyContent: "space-between",
borderBottom: "2px solid #707070",
width: "85%",
margin: "auto",
},
tranSource: {
fontSize: "22px",
},
tranType: {
fontSize: "18px",
fontWeight: "bold",
color: "#BFBFBF",
marginTop: "-18px",
width: "100%",
},
depositType: {
color: "#55B452",
marginRight: "32px",
fontSize: "22px",
fontWeight: "bold",
},
withdrawType: {
color: "#FF5E5E",
marginRight: "32px",
fontSize: "22px",
fontWeight: "bold",
},
}));
export const AccountTransactions = (): any => {
const classes = useStyles();
const TransactionTypes = {
Deposit: classes.depositType,
Withdraw: classes.withdrawType,
Transfer: classes.depositType
};
const { transactionList } = useTransactions();
const { t } = useTranslation();
return (
<div id="account-section">
<div className={classes.header}>
<h2 className={classes.title}>{t("APPS_BANK_ACCOUNT_TRANSACTIONS")}</h2>
<Button className={classes.seeAll}>
{t("APPS_BANK_ACCOUNT_SEE_TRANSACTION")}
</Button>
</div>
<div className={classes.transcationDiv}>
{transactionList.slice(0, 3).map((transaction: any) => (
<div className={classes.transactions}>
<div>
<h1 className={classes.tranSource}>{transaction.source}</h1>
<p className={classes.tranType}>{transaction.type}</p>
</div>
<div>
<p className={TransactionTypes[transaction.type]}>
{transaction.type == "Withdraw" ? "-" : "+"}
{transaction.amount}
</p>
</div>
</div>
))}
</div>
</div>
);
};
@@ -0,0 +1,33 @@
import React from 'react'
import { Button } from "../../../../ui/components/Button";
import { makeStyles, Paper, Typography } from "@material-ui/core";
import { useTranslation } from "react-i18next";
import { BankCard } from './BankCard';
import { AccountTransactions } from './AccountTransactions';
import { useCredentials } from '../../hooks/useCredentials';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
fontFamily: 'Bahnschrift Regular'
},
title: {
fontSize: '30px',
marginLeft: '29px'
}
}))
export const BankAccount = () => {
const classes = useStyles();
const { credentials } = useCredentials();
const { t } = useTranslation();
return (
<div className={classes.root}>
<div>
<h1 className={classes.title} >{t("APPS_BANK_ACCOUNT_TITLE")}</h1>
</div>
<BankCard name={credentials.name} account="Checking" balance={credentials.balance} />
<AccountTransactions />
</div>
)
}
@@ -0,0 +1,58 @@
import React from 'react'
import { makeStyles, Box, Typography } from "@material-ui/core";
import { shadows } from '@material-ui/system';
/*
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
display: block;
line-height: 1em;
max-height: 2em; */
const useStyles = makeStyles((theme) => ({
root: {
background: '#388CF8',
height: '179px',
width: '350px',
margin: 'auto',
borderRadius: '15px',
fontFamily: 'Bahnschrift Regular'
},
cardName: {
margin: 10,
paddingTop: 15,
fontSize: '24px',
},
cardAccount: {
margin: '10px',
marginTop: '10px',
color: '#DFDFDF',
fontWeight: 'bold',
borderBottom: '2px solid #D8D1D1',
paddingBottom: 5
},
balance: {
position: "absolute",
bottom: '53%',
left: '10%'
},
balanceFont: {
fontSize: '29px'
}
}))
export const BankCard = (props) => {
const classes = useStyles();
return (
<Box boxShadow={5} className={classes.root}>
<div>
<h2 className={classes.cardName}>{props.name}</h2>
<p className={classes.cardAccount}>{props.account}</p>
</div>
<div className={classes.balance}>
<h3 className={classes.balanceFont}><span style={{ fontSize: '30px'}}>$</span>{props.balance}</h3>
</div>
</Box>
)
}
@@ -0,0 +1,95 @@
import { makeStyles } from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
paper: {
padding: theme.spacing(1),
textAlign: "center",
width: "50%",
backgroundColor: "#2d3436",
margin: 20,
color: "#fff",
},
table: {
width: "100%",
color: "#fff",
},
cell: {
color: "#fff",
},
container: {
maxHeight: 350,
},
list: {
marginTop: "8.5em",
},
root: {
width: "100%",
},
header: {
width: "90%",
display: "flex",
justifyItems: "center",
justifyContent: "space-between",
margin: "auto",
},
title: {
padding: 7,
borderRadius: "10px",
display: "flex",
justifyItems: "center",
justifyContent: "center",
fontSize: "30px",
},
seeAll: {
fontFamily: "Bahnschrift Regular",
fontWeight: "bold",
height: "auto",
},
transcationDiv: {
marginTop: "-30px",
minHeight: 200,
maxHeight: 240
},
transactions: {
marginLeft: "32px",
display: "flex",
justifyContent: "space-between",
borderBottom: "2px solid #707070",
width: "85%",
margin: "auto",
},
tranSource: {
fontSize: "22px",
},
tranType: {
fontSize: "18px",
fontWeight: "bold",
color: "#BFBFBF",
marginTop: "-18px",
width: "100%",
},
depositType: {
color: "#55B452",
marginRight: "32px",
fontSize: "22px",
fontWeight: "bold",
},
withdrawType: {
color: "#FF5E5E",
marginRight: "32px",
fontSize: "22px",
fontWeight: "bold",
},
pagination: {
background: '#262525',
width: '100%',
position: 'absolute',
bottom: 0,
maxWidth: '100%',
overflow: 'hidden',
borderBottom: "2px solid #707070"
}
}))
export default useStyles
@@ -0,0 +1,42 @@
import React from "react";
import { makeStyles, Paper, Typography } from "@material-ui/core";
import { BankTitle } from "../BankTitle";
import { Button } from "../../../../ui/components/Button";
import { useTranslation } from "react-i18next";
import { useTransactions } from "../../hooks/useTransactions";
import { TransactionList } from "../transactions/TransactionList";
import { TransferModal } from "../transfers/TransferModal";
import { useBankModal } from "../../hooks/useBankModal";
import { useCredentials } from "../../hooks/useCredentials";
import { NavLink } from 'react-router-dom';
// image
import CreditCard from '../img/credit-card.png'
import useStyles from './home.styles';
export const BankHome = () => {
const { showBankModal, setShowBankModal } = useBankModal();
const { credentials } = useCredentials();
const { transactionList } = useTransactions();
const { t } = useTranslation();
const classes = useStyles();
const openTransactionsModal = () => {
setShowBankModal(true);
};
return (
<div className={classes.root} >
<Typography className={classes.headTitle}><span style={{ fontWeight: 'bold' }}>{t("APPS_BANK_HOME_TITLE")}</span>, {credentials.name}</Typography>
<div className={classes.accounts}>
<h2 className={classes.accountsType}>Checking:</h2>
<p className={classes.accountBalance}>${credentials.balance}</p>
</div>
<div className={classes.actions}>
<Button id="actionButton" className={classes.actionButton}><NavLink to="/bank/account">{t("APPS_BANK_ACCOUNT_LINK")}</NavLink></Button>
<Button onClick={openTransactionsModal} className={classes.actionButton}>{t("APPS_BANK_ACTIONS_TRANSFER")}</Button>
</div>
</div>
);
};
@@ -0,0 +1,48 @@
import { makeStyles } from "@material-ui/core";
const useStyles = makeStyles((theme) => ({
root: {
width: "100%",
fontFamily: 'Bahnschrift Regular'
},
headTitle: {
textAlign: 'center',
fontSize: '28px',
marginTop: 30,
},
actions: {
width: '50%',
display: 'block',
margin: '0 auto',
textAlign: 'center'
},
actionButton: {
background: '#388CF8',
width: 200,
height: 50,
borderRadius: '10px',
textDecoration: 'none',
margin: 'auto',
fontFamily: 'Bahnschrift Regular',
fontWeight: 'bold',
fontSize: '20px',
marginBottom: 20,
boxShadow: '0px 2px 7px -2px rgba(0,0,0,0.75)'
},
accounts: {
marginTop: 20,
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
margin: 30,
borderBottom: '1px solid #707070'
},
accountsType: {
},
accountBalance: {
},
}))
export default useStyles;
@@ -0,0 +1,51 @@
import React, { useState } from 'react'
import { Link } from "react-router-dom";
import { BottomNavigation, BottomNavigationAction } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faHome, faList, faMoneyCheck } from "@fortawesome/free-solid-svg-icons";
const useStyles = makeStyles((theme) => ({
root: {
width: "100%",
},
icon: {
color: "#f44336",
},
}))
export const NavigationBar = () => {
const classes = useStyles();
const [activePage, setActivePage] = useState(0)
return (
<BottomNavigation
style={{
background: '#262525'
}}
value={activePage}
onChange={(event, newPage) => {
setActivePage(newPage);
}}
showLabels
className={classes.root}
>
<BottomNavigationAction
component={Link}
icon={<FontAwesomeIcon icon={faHome} />}
to="/bank"
/>
<BottomNavigationAction
component={Link}
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
to="/bank/account"
/>
<BottomNavigationAction
component={Link}
icon={<FontAwesomeIcon icon={faList} />}
to="/bank/transactions"
/>
</BottomNavigation>
)
}
@@ -0,0 +1,16 @@
import React from 'react'
import Alert from '@material-ui/lab/Alert';
import Notification from '../../../../ui/components/Notification';
import { useBankAlert } from './../../hooks/useBankAlert';
export const BankNotification = ({ alert }) => {
const { setBankAlert } = useBankAlert();
const handleClose = () => {
setBankAlert(false)
}
return (
<div></div>
)
}
@@ -1,19 +1,86 @@
import React from "react";
import React, { useState } from "react";
import { List } from "../../../../ui/components/List";
import { ListItem } from "../../../../ui/components/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import { Typography, makeStyles, Button } from "@material-ui/core";
import useStyles from '../bank.styles';
import { useTranslation } from "react-i18next";
import TablePagination from '@material-ui/core/TablePagination';
import { useTransactions } from "../../hooks/useTransactions";
const columns = [
{ id: "type", label: "Type", minWidth: 100 },
{ id: "amount", label: "Amount", minWidth: 100 },
{
id: "message",
label: "Message",
minWidth: 170,
align: "left",
format: (value: number) => value.toLocaleString("en-US"),
},
];
export const TransactionList = () => {
const { transactionList } = useTransactions();
const { t } = useTranslation();
const classes = useStyles();
const [page, setPage] = useState(0);
const [rowsPerPage, setRowsPerPage] = useState(5);
const TransactionTypes = {
Deposit: classes.depositType,
Withdraw: classes.withdrawType,
Transfer: classes.depositType
};
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(+event.target.value);
setPage(0);
};
export const TransactionList = ({ transactions }) => {
return (
<List>
{transactions.map((transaction) => (
<ListItem key={transaction.id} divider>
<ListItemText
primary={transaction.amount}
secondary={transaction.type}
<div id="transaction-section">
<div className={classes.header}>
<h2 className={classes.title}>{t("APPS_BANK_ACCOUNT_TRANSACTIONS")}</h2>
</div>
<div className={classes.transcationDiv}>
{transactionList
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
.map((transaction: any) => (
<div className={classes.transactions}>
<div>
<h1 className={classes.tranSource}>{transaction.source}</h1>
<p className={classes.tranType}>{transaction.type}</p>
</div>
<div>
<p className={TransactionTypes[transaction.type]}>
{transaction.type == "Withdraw" ? "-" : "+"}
{transaction.amount}
</p>
</div>
</div>
))}
<TablePagination
rowsPerPageOptions={[3, 5]}
className={classes.pagination}
component="div"
count={transactionList.length}
rowsPerPage={rowsPerPage}
page={page}
onChangePage={handleChangePage}
onChangeRowsPerPage={handleChangeRowsPerPage}
/>
</ListItem>
))}
</List>
</div>
</div>
);
};
@@ -1,13 +1,44 @@
import React, { useState } from 'react'
import Modal from '../../../../ui/components/Modal';
import { Button, List, ListItem, TextField } from '@material-ui/core';
import { Button, List, ListItem, TextField, makeStyles } from '@material-ui/core';
import CloseIcon from '@material-ui/icons/Close';
import Nui from '../../../../os/nui-events/utils/Nui';
import { useBankModal} from '../../hooks/useBankModal';
const useStyles = makeStyles((theme) => ({
input: {
width: "60%",
margin: 'auto',
},
modalInput: {
fontSize: 20
},
modalInputCenter: {
fontSize: 20,
textAlign: 'center',
},
transferButton: {
background: "#2E7D32",
width: 120,
padding: 5,
margin: "auto",
fontSize: 16,
marginBottom: 30
},
closeButton: {
position: 'absolute',
right: 0,
width: "10%"
}
}))
export const TransferModal = () => {
const classes = useStyles();
const [ targetID, setTargetID ] = useState('');
const [ amount, setAmount ] = useState('');
const [ message, setMessage ] = useState('');
@@ -24,14 +55,21 @@ export const TransferModal = () => {
amount,
message
})
setTimeout(() => {
setShowBankModal(false)
}, 200)
}
return (
<Modal visible={showBankModal} handleClose={_handleClose}>
<Button onClick={_handleClose}></Button>
<List>
<Button className={classes.closeButton} onClick={_handleClose}><CloseIcon /></Button>
<List style={{ marginTop: 20 }}>
<ListItem>
<TextField
<TextField
inputProps={{ className: classes.modalInputCenter }}
fullWidth
type="number"
placeholder="ID"
value={targetID}
onChange={e => setTargetID(e.target.value)}
@@ -39,20 +77,26 @@ export const TransferModal = () => {
</ListItem>
<ListItem>
<TextField
inputProps={{ className: classes.modalInputCenter }}
placeholder="Amount"
fullWidth
type="number"
value={amount}
onChange={e => setAmount(e.target.value)}
/>
</ListItem>
<ListItem>
<TextField
<TextField
inputProps={{ className: classes.modalInput }}
placeholder="Message"
fullWidth
value={message}
multiline
onChange={e => setMessage(e.target.value)}
/>
</ListItem>
<Button onClick={addTransfer}>Transfer</Button>
</List>
<Button className={classes.transferButton} onClick={addTransfer}>Transfer</Button>
</Modal>
)
}
Binary file not shown.
+8
View File
@@ -8,5 +8,13 @@ export const bankState = {
bankModal: atom({
key: 'modalVisibility',
default: false,
}),
bankAlert: atom({
key: 'bankAlert',
default: false
}),
bankCredentials: atom({
key: 'bankCredentails',
default: null
})
}
@@ -0,0 +1,7 @@
import { useRecoilState } from 'recoil';
import { bankState } from './state';
export const useBankAlert = () => {
const [ bankAlert, setBankAlert ] = useRecoilState(bankState.bankAlert);
return { bankAlert, setBankAlert };
}
+4 -1
View File
@@ -1,10 +1,13 @@
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
import { bankState } from './state';
import { useTransactions } from './useTransactions'
import { useCredentials } from './useCredentials';
import { useSetRecoilState } from 'recoil'
export const useBankService = () => {
const setTransaction = useSetRecoilState(bankState.transactions)
const setCredentials = useSetRecoilState(bankState.bankCredentials)
useNuiEvent('BANK', 'setTransaction', setTransaction);
return useTransactions;
useNuiEvent('BANK', 'setCredentials', setCredentials)
return {useTransactions, useCredentials};
}
@@ -0,0 +1,7 @@
import { useRecoilValue } from 'recoil';
import { bankState } from './state';
export const useCredentials = (): any => {
const credentials = useRecoilValue(bankState.bankCredentials);
return { credentials };
}
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useEffect, useState, memo } from "react";
import { List } from "../../../../ui/components/List";
import Tweet from "./Tweet";
@@ -21,6 +21,7 @@ export function TweetList({ tweets }) {
// another flash to the tweets screen.
const hasLoaded = tweets && minimumLoadPassed;
if (!hasLoaded) return <TweetSkeletonList />;
return (
<List>
@@ -31,4 +32,4 @@ export function TweetList({ tweets }) {
);
}
export default TweetList;
export default memo(TweetList); // only re-render if our tweets change
-10
View File
@@ -1,10 +0,0 @@
export interface Tweet {
id: number;
profile_name?: string;
avatar_url?: string;
message: string;
createdAt?: string;
updatedAt?: string;
images?: string;
likes?: number;
}
+29
View File
@@ -0,0 +1,29 @@
interface TwitterConfig {
showNotifications: boolean;
generateProfileNameFromUsers: boolean;
allowEdtiableProfileName: boolean;
characterLimit: number;
enableAvatars: boolean;
enableEmojis: boolean;
enableImages: boolean;
maxImages: number;
}
interface NotificationConfig {
horizontal: "left" | "center" | "right";
vertical: "bottom" | "top";
}
export interface ServerConfig {
Locale: string;
KeyTogglePhone: number;
KeyTakeCall: number;
PhoneAsItem: boolean;
SwimDestroy: boolean;
RunRate: number;
DestoryChance: number;
DestroyPhoneReCheck: number;
twitter: TwitterConfig;
notificationPosition: NotificationConfig;
}
+25
View File
@@ -0,0 +1,25 @@
export interface Tweet {
id: number;
profile_name?: string;
profile_id: number;
avatar_url?: string;
message: string;
createdAt?: string;
updatedAt?: string;
images?: string;
likes?: number;
}
export interface Profile {
id: number;
profile_name: string;
identifier: string;
avatar_url?: string;
bio?: string;
location?: string;
job?: string;
createdAt: string;
updatedAt: string;
}
-21
View File
@@ -1,21 +0,0 @@
interface TwitterConfig {
generateProfileNameFromUsers: boolean;
characterLimit: number;
allowEdtiableProfileName: boolean;
enableAvatars: boolean;
enableEmojis: boolean;
enableImages: boolean;
maxImages: number;
}
export interface ServerConfig {
Locale: string;
KeyTogglePhone: number;
KeyTakeCall: number;
PhoneAsItem: boolean;
SwimDestroy: boolean;
RunRate: number;
DestoryChance: number;
DestroyPhoneReCheck: number;
twitter: TwitterConfig;
}
+2 -6
View File
@@ -8,8 +8,6 @@
"APPS_SETTINGS": "Settings",
"APPS_BANK": "WhoDis Banking",
"APPS_EXAMPLE": "Example app",
"APPS_BANK_DEPOSIT": "Deposit",
"APPS_BANK_WITHDRAW": "Withdraw",
"APPS_BANK_TRANSFER": "Transfer",
"APPS_SETTINGS_OPTIONS_WALLPAPER": "Wallpaper",
"APPS_SETTINGS_OPTIONS_FRAME": "Frame",
@@ -38,11 +36,9 @@
"APPS_TWITTER_TIME_HOURS": "h",
"APPS_TWITTER_TIME_DAYS": "d",
"APPS_BANK_HOME_TITLE": "Welcome",
"APPS_BANK_ACCOUNT_LINK": "Account",
"APPS_BANK_HOME_TITLE": "Welcome, ",
"APPS_BANK_ACCOUNT_TITLE": "Account Summary",
"APPS_BANK_ACCOUNT_TRANSACTIONS": "Transactions",
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "See all",
"APPS_BANK_ACTIONS_TRANSFER": "Transfer"
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "See all"
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ import {
faAd,
faPlaneArrival,
faPhoneAlt,
faLandmark,
faWonSign
} from "@fortawesome/free-solid-svg-icons";
import { faTwitter } from "@fortawesome/free-brands-svg-icons";
@@ -86,7 +86,7 @@ const appsState = atom({
{
id: "BANK",
nameLocale: "APPS_BANK",
icon: <FontAwesomeIcon icon={faLandmark} size="xs" />,
icon: <FontAwesomeIcon icon={faWonSign} size="xs" />,
backgroundColor: blue[900],
color: common.white,
path: "/bank",
-28
View File
@@ -1,28 +0,0 @@
interface TwitterConfig {
showNotifications: boolean;
generateProfileNameFromUsers: boolean;
characterLimit: number;
allowEdtiableProfileName: boolean;
enableAvatars: boolean;
enableEmojis: boolean;
enableImages: boolean;
maxImages: number;
}
interface NotificationConfig {
horizontal: "left" | "center" | "right";
vertical: "bottom" | "top";
}
export interface ServerConfig {
Locale: string;
KeyTogglePhone: number;
KeyTakeCall: number;
PhoneAsItem: boolean;
SwimDestroy: boolean;
RunRate: number;
DestoryChance: number;
DestroyPhoneReCheck: number;
twitter: TwitterConfig;
notificationPosition: NotificationConfig;
}
+1 -1
View File
@@ -1,6 +1,6 @@
import { useRecoilValue } from "recoil";
import { phoneState } from "./state";
import { ServerConfig } from "../../interfaces/serverConfig";
import { ServerConfig } from "../../../common/interfaces/config";
interface IUsePhone {
visibility: boolean;
+33
View File
@@ -0,0 +1,33 @@
import events from '../utils/events';
onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => {
SendNuiMessage(
JSON.stringify({
app: "BANK",
method: "setTransaction",
data: transfer
})
)
})
onNet(events.BANK_SEND_CREDENTIALS, (credentials: any) => {
console.log("Client:", credentials.balance, credentials.name)
SendNuiMessage(
JSON.stringify({
app: "BANK",
method: "setCredentials",
data: credentials
})
)
})
RegisterNuiCallbackType(events.BANK_ADD_TRANSFER);
on(`__cfx_nui:${events.BANK_ADD_TRANSFER}`, (data: any) => {
const transfer = data;
emitNet(events.BANK_ADD_TRANSFER, transfer)
setTimeout(() => {
emitNet(events.BANK_FETCH_TRANSACTIONS);
}, 500)
})
+4
View File
@@ -237,6 +237,8 @@ async function Phone() {
emitNet('phone:getCredentials')
emitNet(events.CONTACTS_GET_CONTACTS);
emitNet(events.SELLOUT_FETCH_LISTING);
emitNet(events.BANK_FETCH_TRANSACTIONS);
emitNet(events.BANK_GET_CREDENTIALS);
console.log("Sellout fetched from client side")// Gets the credentials. Will eventually most likely only get the phone number and name, idk.
SetCursorLocation(0.90, 0.922) //Experimental
let res = GetActiveScreenResolution()
@@ -274,6 +276,8 @@ async function Phone() {
emitNet('phone:getCredentials')
emitNet(events.CONTACTS_GET_CONTACTS);
emitNet(events.SELLOUT_FETCH_LISTING);
emitNet(events.BANK_FETCH_TRANSACTIONS);
emitNet(events.BANK_GET_CREDENTIALS);
console.log("Sellout fetched from client side")
SetCursorLocation(0.936, 0.922) //Experimental
let res = GetActiveScreenResolution()
+1
View File
@@ -3,6 +3,7 @@ import './cl_main';
import './cl_twitter';
import './cl_contacts';
import './cl_sellout';
import './cl_bank';
export let ESX: ESXClient = null;
+7 -7
View File
@@ -1,14 +1,14 @@
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=245)}([function(e,t,a){"use strict";e.exports=a(432)},function(e,t,a){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}a.d(t,"a",(function(){return n}))},function(e,t,a){e.exports=a(442)()},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(37);function r(e,t){if(null==e)return{};var a,r,i=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}},function(e,t,a){"use strict";e.exports=a(436)},function(e,t,a){var n=a(14),r=a(25),i=a(42),o=a(39),u=a(47),s=function(e,t,a){var l,f,d,c,_=e&s.F,h=e&s.G,g=e&s.S,m=e&s.P,F=e&s.B,p=h?n:g?n[t]||(n[t]={}):(n[t]||{}).prototype,b=h?r:r[t]||(r[t]={}),y=b.prototype||(b.prototype={});for(l in h&&(a=t),a)d=((f=!_&&p&&void 0!==p[l])?p:a)[l],c=F&&f?u(d,n):m&&"function"==typeof d?u(Function.call,d):d,p&&o(p,l,d,e&s.U),b[l]!=d&&i(b,l,c),m&&y[l]!=d&&(y[l]=d)};n.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,a){"use strict";function n(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(a=n(e[t]))&&(r&&(r+=" "),r+=a);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}t.a=function(){for(var e,t,a=0,r="";a<arguments.length;)(e=arguments[a++])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}},function(e,t,a){"use strict";var n=a(1),r=a(3),i=a(0),o=a.n(i),u=(a(2),a(85)),s=a.n(u),l=a(497),f=a(496),d=a(495),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(a){var i=t.defaultTheme,u=t.withTheme,c=void 0!==u&&u,_=t.name,h=Object(r.a)(t,["defaultTheme","withTheme","name"]);var g=_,m=Object(l.a)(e,Object(n.a)({defaultTheme:i,Component:a,name:_||a.displayName,classNamePrefix:g},h)),F=o.a.forwardRef((function(e,t){e.classes;var u,s=e.innerRef,l=Object(r.a)(e,["classes","innerRef"]),h=m(Object(n.a)(Object(n.a)({},a.defaultProps),e)),g=l;return("string"==typeof _||c)&&(u=Object(d.a)()||i,_&&(g=Object(f.a)({theme:u,name:_,props:l})),c&&!g.theme&&(g.theme=u)),o.a.createElement(a,Object(n.a)({ref:s||t,classes:h},g))}));return s()(F,a),F}},_=a(62);t.a=function(e,t){return c(e,Object(n.a)({defaultTheme:_.a},t))}},,function(e,t,a){"use strict";function n(e,t){return function(){return null}}a.r(t),a.d(t,"chainPropTypes",(function(){return n})),a.d(t,"deepmerge",(function(){return r.a})),a.d(t,"elementAcceptingRef",(function(){return s})),a.d(t,"elementTypeAcceptingRef",(function(){return l})),a.d(t,"exactProp",(function(){return f})),a.d(t,"formatMuiErrorMessage",(function(){return d.a})),a.d(t,"getDisplayName",(function(){return p})),a.d(t,"HTMLElementType",(function(){return b})),a.d(t,"ponyfillGlobal",(function(){return y})),a.d(t,"refType",(function(){return k}));var r=a(153),i=a(2),o=a.n(i);var u=(o.a.element,function(){return null});u.isRequired=(o.a.element.isRequired,function(){return null});var s=u;var l=(i.elementType,function(){return null});a(24),a(1);function f(e){return e}var d=a(110),c=a(34),_=a(58),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g(e){var t="".concat(e).match(h);return t&&t[1]||""}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||g(e)||t}function F(e,t,a){var n=m(t);return e.displayName||(""!==n?"".concat(a,"(").concat(n,")"):a)}function p(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return m(e,"Component");if("object"===Object(c.a)(e))switch(e.$$typeof){case _.ForwardRef:return F(e,e.render,"ForwardRef");case _.Memo:return F(e,e.type,"memo");default:return}}}function b(e,t,a,n,r){return null}var y="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k=o.a.oneOfType([o.a.func,o.a.object])},function(e,t,a){"use strict";a.dLine truncated
!function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=245)}([function(e,t,a){"use strict";e.exports=a(432)},function(e,t,a){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e}).apply(this,arguments)}a.d(t,"a",(function(){return n}))},function(e,t,a){e.exports=a(442)()},function(e,t,a){"use strict";e.exports=a(436)},function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(37);function r(e,t){if(null==e)return{};var a,r,i=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}},function(e,t,a){var n=a(13),r=a(25),i=a(43),o=a(39),u=a(47),s=function(e,t,a){var l,f,d,c,_=e&s.F,h=e&s.G,g=e&s.S,m=e&s.P,F=e&s.B,p=h?n:g?n[t]||(n[t]={}):(n[t]||{}).prototype,b=h?r:r[t]||(r[t]={}),y=b.prototype||(b.prototype={});for(l in h&&(a=t),a)d=((f=!_&&p&&void 0!==p[l])?p:a)[l],c=F&&f?u(d,n):m&&"function"==typeof d?u(Function.call,d):d,p&&o(p,l,d,e&s.U),b[l]!=d&&i(b,l,c),m&&y[l]!=d&&(y[l]=d)};n.core=r,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,a){"use strict";function n(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(a=n(e[t]))&&(r&&(r+=" "),r+=a);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}t.a=function(){for(var e,t,a=0,r="";a<arguments.length;)(e=arguments[a++])&&(t=n(e))&&(r&&(r+=" "),r+=t);return r}},function(e,t,a){"use strict";var n=a(1),r=a(4),i=a(0),o=a.n(i),u=(a(2),a(86)),s=a.n(u),l=a(498),f=a(497),d=a(496),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(a){var i=t.defaultTheme,u=t.withTheme,c=void 0!==u&&u,_=t.name,h=Object(r.a)(t,["defaultTheme","withTheme","name"]);var g=_,m=Object(l.a)(e,Object(n.a)({defaultTheme:i,Component:a,name:_||a.displayName,classNamePrefix:g},h)),F=o.a.forwardRef((function(e,t){e.classes;var u,s=e.innerRef,l=Object(r.a)(e,["classes","innerRef"]),h=m(Object(n.a)(Object(n.a)({},a.defaultProps),e)),g=l;return("string"==typeof _||c)&&(u=Object(d.a)()||i,_&&(g=Object(f.a)({theme:u,name:_,props:l})),c&&!g.theme&&(g.theme=u)),o.a.createElement(a,Object(n.a)({ref:s||t,classes:h},g))}));return s()(F,a),F}},_=a(63);t.a=function(e,t){return c(e,Object(n.a)({defaultTheme:_.a},t))}},,function(e,t,a){"use strict";function n(e,t){return function(){return null}}a.r(t),a.d(t,"chainPropTypes",(function(){return n})),a.d(t,"deepmerge",(function(){return r.a})),a.d(t,"elementAcceptingRef",(function(){return s})),a.d(t,"elementTypeAcceptingRef",(function(){return l})),a.d(t,"exactProp",(function(){return f})),a.d(t,"formatMuiErrorMessage",(function(){return d.a})),a.d(t,"getDisplayName",(function(){return p})),a.d(t,"HTMLElementType",(function(){return b})),a.d(t,"ponyfillGlobal",(function(){return y})),a.d(t,"refType",(function(){return k}));var r=a(153),i=a(2),o=a.n(i);var u=(o.a.element,function(){return null});u.isRequired=(o.a.element.isRequired,function(){return null});var s=u;var l=(i.elementType,function(){return null});a(24),a(1);function f(e){return e}var d=a(111),c=a(34),_=a(59),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function g(e){var t="".concat(e).match(h);return t&&t[1]||""}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||g(e)||t}function F(e,t,a){var n=m(t);return e.displayName||(""!==n?"".concat(a,"(").concat(n,")"):a)}function p(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return m(e,"Component");if("object"===Object(c.a)(e))switch(e.$$typeof){case _.ForwardRef:return F(e,e.render,"ForwardRef");case _.Memo:return F(e,e.type,"memo");default:return}}}function b(e,t,a,n,r){return null}var y="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),k=o.a.oneOfType([o.a.func,o.a.object])},function(e,t,a){"use strict";a.dLine truncated
/*!
* Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){o(e,t,a[t])}))}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=[],n=!0,r=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return a}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}a.d(t,"a",(function(){return Ee})),a.d(t,"b",(function(){return we}));var l=function(){},f={},d={},c={mark:l,measure:l};try{"undefined"!=typeof window&&(f=window),"undefined"!=typeof document&&(d=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(c=performance)}catch(e){}var _=(f.navigator||{}).userAgent,h=void 0===_?"":_,g=f,m=d,F=c,p=(g.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),b=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),y=b.concat([11,12,13,14,15,16,17,18,19,20]),k={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},v=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",k.GROUP,k.SWAP_OPACITY,k.PRIMARY,k.SECONDARY].concat(b.map((function(e){return"".concat(e,"x")}))).concat(y.map((function(e){return"w-".concat(e)}))),g.FontAwesomeConfig||{});if(m&&"function"==typeof m.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),a=t[0],n=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(a));null!=r&&(v[n]=r)}))}var w=u({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},v);w.autoReplaceSvg||(w.observeMutations=!1);var E=u({},w);g.FontAwesomeConfig=E;var D=g||{};D.___FONT_AWESOME___||(D.___FONT_AWESOME___={}),D.___FONT_AWESOME___.styles||(D.___FONT_AWESOME___.styles={}),D.___FONT_AWESOME___.hooks||(D.___FONT_AWESOME___.hooks={}),D.___FONT_AWESOME___.shims||(D.___FONT_AWESOME___.shims=[]);var x=D.___FONT_AWESOME___,C=[];p&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),1,C.map((function(e){return e()}))})));var j,S=function(){},O=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,B=void 0===n?setTimeout:n,q=[];function T(){for(var e=0;e<q.length;e++)q[e][0](q[e][1]);q=[],j=!1}function A(e,t){q.push([e,t]),j||(j=!0,B(T,0))}function P(e){var t=e.owner,a=t._state,n=t._data,r=e[a],i=e.then;if("function"==typeof r){a="fulfilled";try{n=r(n)}catch(e){L(i,e)}}R(i,n)||("fulfilled"===a&&M(i,n),"rejected"===a&&L(i,n))}function R(e,t){var a;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===r(t))){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){a||(a=!0,t===n?N(e,n):M(e,n))}),(function(t){a||(a=!0,L(e,t))})),!0}}catch(t){return a||L(e,t),!0}return!1}function M(e,t){e!==t&&R(e,t)||N(e,t)}function N(e,t){"pending"===e._state&&(e._state="settled",e._data=t,A(z,e))}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,A(W,e))}function I(e){e._then=e._then.forEach(P)}function z(e){e._state="fulfilled",I(e)}function W(t){Line truncated
function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{},n=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(a).filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})))),n.forEach((function(t){o(e,t,a[t])}))}return e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=[],n=!0,r=!1,i=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return a}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}a.d(t,"a",(function(){return Ee})),a.d(t,"b",(function(){return we}));var l=function(){},f={},d={},c={mark:l,measure:l};try{"undefined"!=typeof window&&(f=window),"undefined"!=typeof document&&(d=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(c=performance)}catch(e){}var _=(f.navigator||{}).userAgent,h=void 0===_?"":_,g=f,m=d,F=c,p=(g.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),b=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),y=b.concat([11,12,13,14,15,16,17,18,19,20]),k={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},v=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",k.GROUP,k.SWAP_OPACITY,k.PRIMARY,k.SECONDARY].concat(b.map((function(e){return"".concat(e,"x")}))).concat(y.map((function(e){return"w-".concat(e)}))),g.FontAwesomeConfig||{});if(m&&"function"==typeof m.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),a=t[0],n=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(a));null!=r&&(v[n]=r)}))}var w=u({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},v);w.autoReplaceSvg||(w.observeMutations=!1);var E=u({},w);g.FontAwesomeConfig=E;var D=g||{};D.___FONT_AWESOME___||(D.___FONT_AWESOME___={}),D.___FONT_AWESOME___.styles||(D.___FONT_AWESOME___.styles={}),D.___FONT_AWESOME___.hooks||(D.___FONT_AWESOME___.hooks={}),D.___FONT_AWESOME___.shims||(D.___FONT_AWESOME___.shims=[]);var x=D.___FONT_AWESOME___,C=[];p&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),1,C.map((function(e){return e()}))})));var j,S=function(){},O=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,B=void 0===n?setTimeout:n,q=[];function T(){for(var e=0;e<q.length;e++)q[e][0](q[e][1]);q=[],j=!1}function A(e,t){q.push([e,t]),j||(j=!0,B(T,0))}function P(e){var t=e.owner,a=t._state,n=t._data,r=e[a],i=e.then;if("function"==typeof r){a="fulfilled";try{n=r(n)}catch(e){L(i,e)}}R(i,n)||("fulfilled"===a&&M(i,n),"rejected"===a&&L(i,n))}function R(e,t){var a;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===r(t))){var n=t.then;if("function"==typeof n)return n.call(t,(function(n){a||(a=!0,t===n?N(e,n):M(e,n))}),(function(t){a||(a=!0,L(e,t))})),!0}}catch(t){return a||L(e,t),!0}return!1}function M(e,t){e!==t&&R(e,t)||N(e,t)}function N(e,t){"pending"===e._state&&(e._state="settled",e._data=t,A(z,e))}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,A(W,e))}function I(e){e._then=e._then.forEach(P)}function z(e){e._state="fulfilled",I(e)}function W(t){Line truncated
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,u,s=o(e),l=1;l<arguments.length;l++){for(var f in a=Object(arguments[l]))r.call(a,f)&&(s[f]=a[f]);if(n){u=n(a);for(var d=0;d<u.length;d++)i.call(a,u[d])&&(s[u[d]]=a[u[d]])}}return s}},function(e,t,a){"use strict";var n=a(1),r=a(3),i=a(0),o=(a(2),a(6)),u=a(7),s=a(10),l=i.forwardRef((function(e,t){var a=e.children,u=e.classes,l=e.className,f=e.color,d=void 0===f?"inherit":f,c=e.component,_=void 0===c?"svg":c,h=e.fontSize,g=void 0===h?"default":h,m=e.htmlColor,F=e.titleAccess,p=e.viewBox,b=void 0===p?"0 0 24 24":p,y=Object(r.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(_,Object(n.a)({className:Object(o.a)(u.root,l,"inherit"!==d&&u["color".concat(Object(s.a)(d))],"default"!==g&&u["fontSize".concat(Object(s.a)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!F||void 0,role:F?"img":void 0,ref:t},y),a,F?i.createElement("title",null,F):null)}));l.muiName="SvgIcon",t.a=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l)},function(e,t){var a,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(a===setTimeout)return setTimeout(e,0);if((a===i||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:i}catch(e){a=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],f=!1,d=-1;function c(){f&&s&&(f=!1,s.length?l=s.concat(l):d=-1,l.length&&_())}function _(){if(!f){var e=u(c);f=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];l.push(new h(e,t)),1!==l.length||f||u(_)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,a){"use strict";a.r(t);var n=a(198);a.d(t,"default",(function(){return n.a}))},function(e){e.exports=JSON.parse('{"translation":{"COMING_SOON":"Coming soon...","APPS_DIALER":"Phone","APPS_CONTACTS":"Contacts","APPS_MESSAGES":"Messages","APPS_CALCULATOR":"Calculator","APPS_SETTINGS":"Settings","APPS_BANK":"WhoDis Banking","APPS_EXAMPLE":"Example app","APPS_BANK_DEPOSIT":"Deposit","APPS_BANK_WITHDRAW":"Withdraw","APPS_BANK_TRANSFER":"Transfer","APPS_SETTINGS_OPTIONS_WALLPAPER":"Wallpaper","APPS_SETTINGS_OPTIONS_FRAME":"Frame","APPS_TWITTER":"Twitter","APPS_TWITTER_TWEET":"Tweet","APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER":"What\'s happening?","APPS_TWITTER_IMAGE_PLACEHOLDER":"A link to your image or gif","APPS_TWITTER_SUBMIT_IMAGE":"Add Media","APPS_TWITTER_CLOSE_IMAGE":"Close","APPS_TWITTER_CLOSE":"Close","APPS_TWITTER_JUST_NOW":"Just now","APPS_TWITTER_SEARCH_TWEETS":"Search for tweets","APPS_TWITTER_SEARCH_TWEETS_PLACEHOLDER":"Search by profile name or messageLine truncated
*/var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var a,u,s=o(e),l=1;l<arguments.length;l++){for(var f in a=Object(arguments[l]))r.call(a,f)&&(s[f]=a[f]);if(n){u=n(a);for(var d=0;d<u.length;d++)i.call(a,u[d])&&(s[u[d]]=a[u[d]])}}return s}},function(e,t,a){"use strict";var n=a(1),r=a(4),i=a(0),o=(a(2),a(6)),u=a(7),s=a(10),l=i.forwardRef((function(e,t){var a=e.children,u=e.classes,l=e.className,f=e.color,d=void 0===f?"inherit":f,c=e.component,_=void 0===c?"svg":c,h=e.fontSize,g=void 0===h?"default":h,m=e.htmlColor,F=e.titleAccess,p=e.viewBox,b=void 0===p?"0 0 24 24":p,y=Object(r.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(_,Object(n.a)({className:Object(o.a)(u.root,l,"inherit"!==d&&u["color".concat(Object(s.a)(d))],"default"!==g&&u["fontSize".concat(Object(s.a)(g))]),focusable:"false",viewBox:b,color:m,"aria-hidden":!F||void 0,role:F?"img":void 0,ref:t},y),a,F?i.createElement("title",null,F):null)}));l.muiName="SvgIcon",t.a=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l)},function(e,t){var a,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(a===setTimeout)return setTimeout(e,0);if((a===i||!a)&&setTimeout)return a=setTimeout,setTimeout(e,0);try{return a(e,0)}catch(t){try{return a.call(null,e,0)}catch(t){return a.call(this,e,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:i}catch(e){a=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],f=!1,d=-1;function c(){f&&s&&(f=!1,s.length?l=s.concat(l):d=-1,l.length&&_())}function _(){if(!f){var e=u(c);f=!0;for(var t=l.length;t;){for(s=l,l=[];++d<t;)s&&s[d].run();d=-1,t=l.length}s=null,f=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];l.push(new h(e,t)),1!==l.length||f||u(_)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,a){"use strict";a.r(t);var n=a(198);a.d(t,"default",(function(){return n.a}))},function(e,t,a){var n=a(462);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};a(76)(n,r);n.locals&&(e.exports=n.locals)},function(e){e.exports=JSON.parse('{"translation":{"COMING_SOON":"Coming soon...","APPS_DIALER":"Phone","APPS_CONTACTS":"Contacts","APPS_MESSAGES":"Messages","APPS_CALCULATOR":"Calculator","APPS_SETTINGS":"Settings","APPS_BANK":"WhoDis Banking","APPS_EXAMPLE":"Example app","APPS_BANK_DEPOSIT":"Deposit","APPS_BANK_WITHDRAW":"Withdraw","APPS_BANK_TRANSFER":"Transfer","APPS_SETTINGS_OPTIONS_WALLPAPER":"Wallpaper","APPS_SETTINGS_OPTIONS_FRAME":"Frame","APPS_TWITTER":"Twitter","APPS_TWITTER_TWEET":"Tweet","APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER":"What\'s happening?","APPS_TWITTER_IMAGE_PLACEHOLDER":"A link to your image or gif","APPS_TWITTER_SUBMIT_IMAGE":"Add Media","APPS_TWITTER_CLOSE_IMAGE":"Close","APPS_TWITTER_CLOSE":"Close",Line truncated
/** @license React v16.13.1
* react.production.min.js
*
@@ -32,7 +32,7 @@ object-assign
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n,r,i,o,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var c=window.performance,_=window.Date,h=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof c&&"function"==typeof c.now)t.unstable_now=function(){return c.now()};else{var F=_.now();t.unstable_now=function(){return _.now()-F}}var p=!1,b=null,y=-1,k=5,v=0;o=function(){return t.unstable_now()>=v},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();v=e+k;try{b(!0,e)?E.postMessage(null):(p=!1,b=null)}catch(e){throw E.postMessage(null),e}}else p=!1},n=function(e){b=e,p||(p=!0,E.postMessage(null))},r=function(e,a){y=h((function(){e(t.unstable_now())}),a)},i=function(){g(y),y=-1}}function D(e,t){var a=e.length;e.push(t);e:for(;;){var n=a-1>>>1,r=e[n];if(!(void 0!==r&&0<j(r,t)))break e;e[n]=t,e[a]=r,a=n}}function x(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length;n<r;){var i=2*(n+1)-1,o=e[i],u=i+1,s=e[u];if(void 0!==o&&0>j(o,a))void 0!==s&&0>j(s,o)?(e[n]=s,e[u]=a,n=u):(e[n]=o,e[i]=a,n=i);else{if(!(void 0!==s&&0>j(s,a)))break e;e[n]=s,e[u]=a,n=u}}}return t}return null}function j(e,t){var a=e.sortIndex-t.sortIndex;return 0!==a?a:e.id-t.id}var S=[],O=[],B=1,q=null,T=3,A=!1,P=!1,R=!1;function M(e){for(var t=x(O);null!==t;){if(null===t.callback)C(O);else{if(!(t.startTime<=e))break;C(O),t.sortIndex=t.expirationTime,D(S,t)}t=x(O)}}function N(e){if(R=!1,M(e),!P)if(null!==x(S))P=!0,n(L);else{var t=x(O);null!==t&&r(N,t.startTime-e)}}function L(e,a){P=!1,R&&(R=!1,i()),A=!0;var n=T;try{for(M(a),q=x(S);null!==q&&(!(q.expirationTime>a)||e&&!o());){var u=q.callback;if(null!==u){q.callback=null,T=q.priorityLevel;var s=u(q.expirationTime<=a);a=t.unstable_now(),"function"==typeof s?q.callback=s:q===x(S)&&C(S),M(a)}else C(S);q=x(S)}if(null!==q)var l=!0;else{var f=x(O);null!==f&&r(N,f.startTime-a),l=!1}return l}finally{q=null,T=n,A=!1}}function I(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||A||(P=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(S)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var a=T;T=t;try{return e()}finally{T=a}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=T;T=e;try{return t()}finally{T=a}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?u+s:u,o="number"==typeof o.timeout?o.timeout:I(e)}else o=I(e),s=u;return e={id:B++,callback:a,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>u?(e.sortIndex=s,D(O,e),null===x(S)&&e===x(O)&&(R?i():R=!0,r(N,s-u))):(e.sortIndex=o,D(S,e),P||A||(P=!0,n(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var a=x(S);return a!==q&&null!==q&&null!==a&&null!==a.callback&&a.startTime<=e&&a.expirationTime<q.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=T;return function(){var a=T;T=t;try{return e.apply(this,arguments)}finally{T=a}}}},function(e,t,a){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=n(a(0)),i=n(a(18));function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class u{constructor(e){o(this,"key",void 0),this.key=e}}class s extends u{}class l extends u{}var f={AbstractRecoilValue:u,Re Line truncated
*/var n,r,i,o,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var c=window.performance,_=window.Date,h=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof c&&"function"==typeof c.now)t.unstable_now=function(){return c.now()};else{var F=_.now();t.unstable_now=function(){return _.now()-F}}var p=!1,b=null,y=-1,k=5,v=0;o=function(){return t.unstable_now()>=v},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();v=e+k;try{b(!0,e)?E.postMessage(null):(p=!1,b=null)}catch(e){throw E.postMessage(null),e}}else p=!1},n=function(e){b=e,p||(p=!0,E.postMessage(null))},r=function(e,a){y=h((function(){e(t.unstable_now())}),a)},i=function(){g(y),y=-1}}function D(e,t){var a=e.length;e.push(t);e:for(;;){var n=a-1>>>1,r=e[n];if(!(void 0!==r&&0<j(r,t)))break e;e[n]=t,e[a]=r,a=n}}function x(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length;n<r;){var i=2*(n+1)-1,o=e[i],u=i+1,s=e[u];if(void 0!==o&&0>j(o,a))void 0!==s&&0>j(s,o)?(e[n]=s,e[u]=a,n=u):(e[n]=o,e[i]=a,n=i);else{if(!(void 0!==s&&0>j(s,a)))break e;e[n]=s,e[u]=a,n=u}}}return t}return null}function j(e,t){var a=e.sortIndex-t.sortIndex;return 0!==a?a:e.id-t.id}var S=[],O=[],B=1,q=null,T=3,A=!1,P=!1,R=!1;function M(e){for(var t=x(O);null!==t;){if(null===t.callback)C(O);else{if(!(t.startTime<=e))break;C(O),t.sortIndex=t.expirationTime,D(S,t)}t=x(O)}}function N(e){if(R=!1,M(e),!P)if(null!==x(S))P=!0,n(L);else{var t=x(O);null!==t&&r(N,t.startTime-e)}}function L(e,a){P=!1,R&&(R=!1,i()),A=!0;var n=T;try{for(M(a),q=x(S);null!==q&&(!(q.expirationTime>a)||e&&!o());){var u=q.callback;if(null!==u){q.callback=null,T=q.priorityLevel;var s=u(q.expirationTime<=a);a=t.unstable_now(),"function"==typeof s?q.callback=s:q===x(S)&&C(S),M(a)}else C(S);q=x(S)}if(null!==q)var l=!0;else{var f=x(O);null!==f&&r(N,f.startTime-a),l=!1}return l}finally{q=null,T=n,A=!1}}function I(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||A||(P=!0,n(L))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return x(S)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var a=T;T=t;try{return e()}finally{T=a}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=T;T=e;try{return t()}finally{T=a}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();if("object"==typeof o&&null!==o){var s=o.delay;s="number"==typeof s&&0<s?u+s:u,o="number"==typeof o.timeout?o.timeout:I(e)}else o=I(e),s=u;return e={id:B++,callback:a,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>u?(e.sortIndex=s,D(O,e),null===x(S)&&e===x(O)&&(R?i():R=!0,r(N,s-u))):(e.sortIndex=o,D(S,e),P||A||(P=!0,n(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var a=x(S);return a!==q&&null!==q&&null!==a&&null!==a.callback&&a.startTime<=e&&a.expirationTime<q.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=T;return function(){var a=T;T=t;try{return e.apply(this,arguments)}finally{T=a}}}},function(e,t,a){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=n(a(0)),i=n(a(18));function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class u{constructor(e){o(this,"key",void 0),this.key=e}}class s extends u{}class l extends u{}var f={AbstractRecoilValue:u,Re Line truncated
/** @license React v16.13.1
* react-is.production.min.js
*
@@ -40,15 +40,15 @@ object-assign
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,F=n?Symbol.for("react.lazy"):60116,p=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case c:case o:case s:case u:case h:return e;default:switch(e=e&&e.$$typeof){case f:case _:case F:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return v(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=f,t.ContextProvider=l,t.Element=r,t.ForwardRef=_,t.Fragment=o,t.Lazy=F,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||v(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===f},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===_},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===F},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===u},t.isSuspense=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===s||e===u||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===F||e.$$typeof===m||e.$$typeof===l||e.$$typeof===f||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y||e.$$typeof===k||e.$$typeof===p)},t.typeOf=v},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(452),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,a(109))},function(e,t,a){(function(e,t){!function(e,a){"use strict";if(!e.setImmediate){var n,r,i,o,u,s=1,l={},f=!1,d=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),n=function(t){e.postMessage(o+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a<t.length;a++)t[a]=arguments[a+1];var r={callback:e,args:t};return l[s]=r,n(s),s++},c.clearImmediate=_}function _(e){delete l[e]}function h(e){if(f)setTimeout(h,0,e);else{var t=l[e];if(t){f=!0;try{!function(e){var t=e.callback,a=e.args;switch(a.length){case 0:t();break;case 1:t(a[0]);break;case 2:t(a[0],a[1]);break;case 3:t(a[0],a[1],a[2]);break;default:t.apply(void 0,a)}}(t)}finally{_(e),f=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,a(109),a(199))},function(e,t,a){var n=a(454);"stLine truncated
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,F=n?Symbol.for("react.lazy"):60116,p=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case c:case o:case s:case u:case h:return e;default:switch(e=e&&e.$$typeof){case f:case _:case F:case m:case l:return e;default:return t}}case i:return t}}}function w(e){return v(e)===c}t.AsyncMode=d,t.ConcurrentMode=c,t.ContextConsumer=f,t.ContextProvider=l,t.Element=r,t.ForwardRef=_,t.Fragment=o,t.Lazy=F,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=u,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||v(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===f},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===_},t.isFragment=function(e){return v(e)===o},t.isLazy=function(e){return v(e)===F},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===u},t.isSuspense=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===s||e===u||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===F||e.$$typeof===m||e.$$typeof===l||e.$$typeof===f||e.$$typeof===_||e.$$typeof===b||e.$$typeof===y||e.$$typeof===k||e.$$typeof===p)},t.typeOf=v},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,a){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},a(452),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,a(110))},function(e,t,a){(function(e,t){!function(e,a){"use strict";if(!e.setImmediate){var n,r,i,o,u,s=1,l={},f=!1,d=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){i.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(h,0,e)}:(o="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),n=function(t){e.postMessage(o+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),a=0;a<t.length;a++)t[a]=arguments[a+1];var r={callback:e,args:t};return l[s]=r,n(s),s++},c.clearImmediate=_}function _(e){delete l[e]}function h(e){if(f)setTimeout(h,0,e);else{var t=l[e];if(t){f=!0;try{!function(e){var t=e.callback,a=e.args;switch(a.length){case 0:t();break;case 1:t(a[0]);break;case 2:t(a[0],a[1]);break;case 3:t(a[0],a[1],a[2]);break;default:t.apply(void 0,a)}}(t)}finally{_(e),f=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,a(110),a(199))},function(e,t,a){var n=a(454);"stLine truncated
/*!
* Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/var wr=r.createContext({}),Er=r.forwardRef((function(e,t){var a=e.children,n=e.classes,i=e.className,o=e.disableTypography,u=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,f=e.primary,c=e.primaryTypographyProps,_=e.secondary,h=e.secondaryTypographyProps,g=Object(ta.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=r.useContext(wr).dense,F=null!=f?f:a;null==F||F.type===da||u||(F=r.createElement(da,Object(d.a)({variant:m?"body2":"body1",className:n.primary,component:"span",display:"block"},c),F));var p=_;return null==p||p.type===da||u||(p=r.createElement(da,Object(d.a)({variant:"body2",className:n.secondary,color:"textSecondary",display:"block"},h),p)),r.createElement("div",Object(d.a)({className:Object(aa.a)(n.root,i,m&&n.dense,l&&n.inset,F&&p&&n.multiline),ref:t},g),F,p)})),Dr=Object(ua.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Er),xr=a(208),Cr=a.n(xr),jr=a(209),Sr=a.n(jr),Or=r.forwardRef((function(e,t){var a=e.children,n=e.classes,i=e.className,o=e.component,u=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,f=e.disablePadding,c=void 0!==f&&f,_=e.subheader,h=Object(ta.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:l}}),[l]);return r.createElement(wr.Provider,{value:g},r.createElement(u,Object(d.a)({className:Object(aa.a)(n.root,i,l&&n.dense,!c&&n.padding,_&&n.subheader),ref:t},h),_,a))})),Br=Object(ua.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Or),qr=function(){return(qr=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Tr=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a},Ar=function(e){var t=Tr(e,[]);return i.a.createElement(Br,qr({"aria-label":"list"},t),t.children)};function Pr(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Rr="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Mr=r.forwardRef((function(e,t){var a=e.alignItems,n=void 0===a?"center":a,i=e.autoFocus,u=void 0!==i&&i,s=e.button,l=void 0!==s&&s,f=e.children,c=e.classes,_=e.className,h=e.component,g=e.ContainerComponent,m=void 0===g?"li":g,F=e.ContainerProps,p=(F=void 0===F?{}:F).className,b=Object(ta.a)(F,["className"]),y=e.dense,k=void 0!==y&&y,v=e.disabled,w=void 0!==v&&v,E=e.disableGutters,D=void 0!==E&&E,x=e.divider,C=void 0!==x&&x,j=e.focusVisibleClassName,S=e.selected,O=void 0!==S&&S,B=Object(ta.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=r.useContext(wr),T={dense:k||q.dense||!1,alignItems:n},A=r.useRef(null);Rr((function(){u&&A.current&&A.current.focus()}),[u]);var P=r.Children.toArray(f),R=P.length&&Pr(P[P.length-1],["ListItemSecondaryAction"]),M=Ia(r.useCallback((function(e){A.current=o.findDOMNode(e)}),[]),t),N=Object(d.a)({className:Object(aa.a)(c.root,_,T.dense&&c.dense,!D&&c.gutters,C&&c.divider,w&&c.disabled,l&&c.button,"center"!==n&&c.alignItemsFlexStart,R&&c.secondaryAction,O&&c.selected),disabled:w},B),L=h||"li";return l&&(N.component=h||"div",N.focusVisibleClassName=Object(aa.a)(c.focusVisible,j),L=xn),R?(L=N.component||h?L:"div","li"===m&&("li"===L?L="div":"li"===N.component&&(N.component="div")),r.createElement(wr.Provider,{value:T},r.createElement(m,Object(d.a)({className:Object(aa.a)(c.container,p),ref:M},b),r.createElement(L,N,P),P.pop()))):r.createElement(wr.Provider,{value:T},r.createElement(L,Object(d.a)({ref:M},N),P))})),Nr=Object(ua.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:Line truncated
*/var wr=r.createContext({}),Er=r.forwardRef((function(e,t){var a=e.children,n=e.classes,i=e.className,o=e.disableTypography,u=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,f=e.primary,c=e.primaryTypographyProps,_=e.secondary,h=e.secondaryTypographyProps,g=Object(ta.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=r.useContext(wr).dense,F=null!=f?f:a;null==F||F.type===da||u||(F=r.createElement(da,Object(d.a)({variant:m?"body2":"body1",className:n.primary,component:"span",display:"block"},c),F));var p=_;return null==p||p.type===da||u||(p=r.createElement(da,Object(d.a)({variant:"body2",className:n.secondary,color:"textSecondary",display:"block"},h),p)),r.createElement("div",Object(d.a)({className:Object(aa.a)(n.root,i,m&&n.dense,l&&n.inset,F&&p&&n.multiline),ref:t},g),F,p)})),Dr=Object(ua.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Er),xr=a(210),Cr=a.n(xr),jr=a(211),Sr=a.n(jr),Or=r.forwardRef((function(e,t){var a=e.children,n=e.classes,i=e.className,o=e.component,u=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,f=e.disablePadding,c=void 0!==f&&f,_=e.subheader,h=Object(ta.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:l}}),[l]);return r.createElement(wr.Provider,{value:g},r.createElement(u,Object(d.a)({className:Object(aa.a)(n.root,i,l&&n.dense,!c&&n.padding,_&&n.subheader),ref:t},h),_,a))})),Br=Object(ua.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Or),qr=function(){return(qr=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Tr=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a},Ar=function(e){var t=Tr(e,[]);return i.a.createElement(Br,qr({"aria-label":"list"},t),t.children)};function Pr(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var Rr="undefined"==typeof window?r.useEffect:r.useLayoutEffect,Mr=r.forwardRef((function(e,t){var a=e.alignItems,n=void 0===a?"center":a,i=e.autoFocus,u=void 0!==i&&i,s=e.button,l=void 0!==s&&s,f=e.children,c=e.classes,_=e.className,h=e.component,g=e.ContainerComponent,m=void 0===g?"li":g,F=e.ContainerProps,p=(F=void 0===F?{}:F).className,b=Object(ta.a)(F,["className"]),y=e.dense,k=void 0!==y&&y,v=e.disabled,w=void 0!==v&&v,E=e.disableGutters,D=void 0!==E&&E,x=e.divider,C=void 0!==x&&x,j=e.focusVisibleClassName,S=e.selected,O=void 0!==S&&S,B=Object(ta.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=r.useContext(wr),T={dense:k||q.dense||!1,alignItems:n},A=r.useRef(null);Rr((function(){u&&A.current&&A.current.focus()}),[u]);var P=r.Children.toArray(f),R=P.length&&Pr(P[P.length-1],["ListItemSecondaryAction"]),M=Ia(r.useCallback((function(e){A.current=o.findDOMNode(e)}),[]),t),N=Object(d.a)({className:Object(aa.a)(c.root,_,T.dense&&c.dense,!D&&c.gutters,C&&c.divider,w&&c.disabled,l&&c.button,"center"!==n&&c.alignItemsFlexStart,R&&c.secondaryAction,O&&c.selected),disabled:w},B),L=h||"li";return l&&(N.component=h||"div",N.focusVisibleClassName=Object(aa.a)(c.focusVisible,j),L=xn),R?(L=N.component||h?L:"div","li"===m&&("li"===L?L="div":"li"===N.component&&(N.component="div")),r.createElement(wr.Provider,{value:T},r.createElement(m,Object(d.a)({className:Object(aa.a)(c.container,p),ref:M},b),r.createElement(L,N,P),P.pop()))):r.createElement(wr.Provider,{value:T},r.createElement(L,Object(d.a)({ref:M},N),P))})),Nr=Object(ua.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:Line truncated
/**
* A better abstraction over CSS.
*
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
* @website https://github.com/cssinjs/jss
* @license MIT
*/var Ee=Date.now(),De="fnValues"+Ee,xe="fnStyle"+ ++Ee;var Ce=function(){return{onCreateRule:function(e,t,a){if("function"!=typeof t)return null;var n=g(e,{},a);return n[xe]=t,n},onProcessStyle:function(e,t){if(De in t||xe in t)return e;var a={};for(var n in e){var r=e[n];"function"==typeof r&&(delete e[n],a[n]=r)}return t[De]=a,e},onUpdate:function(e,t,a,n){var r=t,i=r[xe];i&&(r.style=i(e)||{});var o=r[De];if(o)for(var u in o)r.prop(u,o[u](e),n)}}},je="@global",Se=function(){function e(e,t,a){for(var n in this.type="global",this.at=je,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=a,this.rules=new X(Object(r.a)({},a,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,a){var n=this.rules.add(e,t,a);return this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Oe=function(){function e(e,t,a){this.type="global",this.at=je,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=a;var n=e.substr("@global ".length);this.rule=a.jss.createRule(n,t,Object(r.a)({},a,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function qe(e,t){for(var a=e.split(Be),n="",r=0;r<a.length;r++)n+=t+" "+a[r].trim(),a[r+1]&&(n+=", ");return n}var Te=function(){return{onCreateRule:function(e,t,a){if(!e)return null;if(e===je)return new Se(e,t,a);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new Oe(e,t,a);var n=a.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(a.scoped=!1),!1===a.scoped&&(a.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,a=e.style,n=a?a[je]:null;if(n){for(var i in n)t.sheet.addRule(i,n[i],Object(r.a)({},t,{selector:qe(i,e.selector)}));delete a[je]}}(e),function(e){var t=e.options,a=e.style;for(var n in a)if("@"===n[0]&&n.substr(0,je.length)===je){var i=qe(n.substr(je.length),e.selector);t.sheet.addRule(i,a[n],Object(r.a)({},t,{selector:i})),delete a[n]}}(e))}}},Ae=/\s*,\s*/g,Pe=/&/g,Re=/\$([\w-]+)/g;var Me=function(){function e(e,t){return function(a,n){var r=e.getRule(n)||t&&t.getRule(n);return r?(r=r).selector:n}}function t(e,t){for(var a=t.split(Ae),n=e.split(Ae),r="",i=0;i<a.length;i++)for(var o=a[i],u=0;u<n.length;u++){var s=n[u];r&&(r+=", "),r+=-1!==s.indexOf("&")?s.replace(Pe,o):o+" "+s}return r}function a(e,t,a){if(a)return Object(r.a)({},a,{index:a.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=Object(r.a)({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var u,s,l=i,f=l.options.parent;for(var d in n){var c=-1!==d.indexOf("&"),_="@"===d[0];if(c||_){if(u=a(l,f,u),c){var h=t(d,l.selector);s||(s=e(f,o)),h=h.replace(Re,s),f.addRule(h,n[d],Object(r.a)({},u,{selector:h}))}else _&&f.addRule(d,{},u).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}},Ne=/[A-Z]/g,Le=/^ms-/,Ie={};function ze(e){return"-"+e.toLowerCase()}var We=function(e){if(Ie.hasOwnProperty(e))return Ie[e];var t=e.replace(Ne,ze);return Ie[e]=Le.test(t)?"-"+t:t};function Ve(e){var t={};for(var a in e){t[0===a.indexOf("--")?a:We(a)]=e[a]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ve):t.fallbacks=Ve(e.fallbacks)),t}var He=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ve(e[t]);return e}return Ve(e)},onChangeValue:function(e,t,a){if(0===t.indexOf("--"))return e;var n=We(t);return t===n?e:(a.prop(n,e),null)}}},Ue=Fe&&CSS?CSS.px:"px",Ge=Fe&&CSS?CSS.ms:"ms",$e=Fe&&CSS?CSS.percent:"%";function Ke(e){var t=/(-[a-z])/g,a=function(e){return e[1].toUpperCase()},n={};for(var r in e)n[r]=e[r],n[r.replace(t,a)]=e[r];return n}var Ye=Ke({"animation-delay":Ge,"animation-duration":Ge,"background-position":Ue,"background-position-x":Ue,"background-position-y":Ue,"background-size":Ue,border:Ue,"border-bottom":Ue,"border-bottom-left-radius":Ue,"border-bottom-right-radius":Ue,"border-bottom-width":Ue,"border-left":Ue,"border-left-width":Ue,"border-radius":Ue,"border-right":Ue,"border-right-width":Ue,"border-top":Ue,"border-top-left-radius":Ue,"border-top-right-radius":Ue,"border-top-width":Ue,"border-width":Ue,margin:Ue,"margin-bottom":Ue,"margin-left":Ue,"margin-right":Ue,"margin-top":Ue,padding:Ue,"padding-bottom":Ue,"padding-left":Ue,"padding-right":Ue,"padding-top":Ue,"mask-position-x":Ue,"mask-position-y":Ue,"mask-size":Ue,height:Ue,width:Ue,"min-height":Ue,"max-height":Ue,"min-width":Ue,"max-width":Ue,bottom:Ue,left:Ue,top:Ue,right:Ue,"box-shadow":Ue,"text-shadow":Ue,"column-gap":Ue,"column-rule":Ue,"column-rule-width":Ue,"column-width":Ue,"font-size":Ue,"font-size-delta":Ue,"letter-spacing":Ue,"text-iLine truncated
*/var Ee=Date.now(),De="fnValues"+Ee,xe="fnStyle"+ ++Ee;var Ce=function(){return{onCreateRule:function(e,t,a){if("function"!=typeof t)return null;var n=g(e,{},a);return n[xe]=t,n},onProcessStyle:function(e,t){if(De in t||xe in t)return e;var a={};for(var n in e){var r=e[n];"function"==typeof r&&(delete e[n],a[n]=r)}return t[De]=a,e},onUpdate:function(e,t,a,n){var r=t,i=r[xe];i&&(r.style=i(e)||{});var o=r[De];if(o)for(var u in o)r.prop(u,o[u](e),n)}}},je="@global",Se=function(){function e(e,t,a){for(var n in this.type="global",this.at=je,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=a,this.rules=new X(Object(r.a)({},a,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,a){var n=this.rules.add(e,t,a);return this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Oe=function(){function e(e,t,a){this.type="global",this.at=je,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=a;var n=e.substr("@global ".length);this.rule=a.jss.createRule(n,t,Object(r.a)({},a,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function qe(e,t){for(var a=e.split(Be),n="",r=0;r<a.length;r++)n+=t+" "+a[r].trim(),a[r+1]&&(n+=", ");return n}var Te=function(){return{onCreateRule:function(e,t,a){if(!e)return null;if(e===je)return new Se(e,t,a);if("@"===e[0]&&"@global "===e.substr(0,"@global ".length))return new Oe(e,t,a);var n=a.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(a.scoped=!1),!1===a.scoped&&(a.selector=e),null},onProcessRule:function(e){"style"===e.type&&(function(e){var t=e.options,a=e.style,n=a?a[je]:null;if(n){for(var i in n)t.sheet.addRule(i,n[i],Object(r.a)({},t,{selector:qe(i,e.selector)}));delete a[je]}}(e),function(e){var t=e.options,a=e.style;for(var n in a)if("@"===n[0]&&n.substr(0,je.length)===je){var i=qe(n.substr(je.length),e.selector);t.sheet.addRule(i,a[n],Object(r.a)({},t,{selector:i})),delete a[n]}}(e))}}},Ae=/\s*,\s*/g,Pe=/&/g,Re=/\$([\w-]+)/g;var Me=function(){function e(e,t){return function(a,n){var r=e.getRule(n)||t&&t.getRule(n);return r?(r=r).selector:n}}function t(e,t){for(var a=t.split(Ae),n=e.split(Ae),r="",i=0;i<a.length;i++)for(var o=a[i],u=0;u<n.length;u++){var s=n[u];r&&(r+=", "),r+=-1!==s.indexOf("&")?s.replace(Pe,o):o+" "+s}return r}function a(e,t,a){if(a)return Object(r.a)({},a,{index:a.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=Object(r.a)({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var u,s,l=i,f=l.options.parent;for(var d in n){var c=-1!==d.indexOf("&"),_="@"===d[0];if(c||_){if(u=a(l,f,u),c){var h=t(d,l.selector);s||(s=e(f,o)),h=h.replace(Re,s),f.addRule(h,n[d],Object(r.a)({},u,{selector:h}))}else _&&f.addRule(d,{},u).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}},Ne=/[A-Z]/g,Le=/^ms-/,Ie={};function ze(e){return"-"+e.toLowerCase()}var We=function(e){if(Ie.hasOwnProperty(e))return Ie[e];var t=e.replace(Ne,ze);return Ie[e]=Le.test(t)?"-"+t:t};function Ve(e){var t={};for(var a in e){t[0===a.indexOf("--")?a:We(a)]=e[a]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ve):t.fallbacks=Ve(e.fallbacks)),t}var He=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ve(e[t]);return e}return Ve(e)},onChangeValue:function(e,t,a){if(0===t.indexOf("--"))return e;var n=We(t);return t===n?e:(a.prop(n,e),null)}}},Ue=Fe&&CSS?CSS.px:"px",Ge=Fe&&CSS?CSS.ms:"ms",$e=Fe&&CSS?CSS.percent:"%";function Ke(e){var t=/(-[a-z])/g,a=function(e){return e[1].toUpperCase()},n={};for(var r in e)n[r]=e[r],n[r.replace(t,a)]=e[r];return n}var Ye=Ke({"animation-delay":Ge,"animation-duration":Ge,"background-position":Ue,"background-position-x":Ue,"background-position-y":Ue,"background-size":Ue,border:Ue,"border-bottom":Ue,"border-bottom-left-radius":Ue,"border-bottom-right-radius":Ue,"border-bottom-width":Ue,"border-left":Ue,"border-left-width":Ue,"border-radius":Ue,"border-right":Ue,"border-right-width":Ue,"border-top":Ue,"border-top-left-radius":Ue,"border-top-right-radius":Ue,"border-top-width":Ue,"border-width":Ue,margin:Ue,"margin-bottom":Ue,"margin-left":Ue,"margin-right":Ue,"margin-top":Ue,padding:Ue,"padding-bottom":Ue,"padding-left":Ue,"padding-right":Ue,"padding-top":Ue,"mask-position-x":Ue,"mask-position-y":Ue,"mask-size":Ue,height:Ue,width:Ue,"min-height":Ue,"max-height":Ue,"min-width":Ue,"max-width":Ue,bottom:Ue,left:Ue,top:Ue,right:Ue,"box-shadow":Ue,"text-shadow":Ue,"column-gap":Ue,"column-rule":Ue,"column-rule-width":Ue,"column-width":Ue,"font-size":Ue,"font-size-delta":Ue,"letter-spacing":Ue,"text-iLine truncated
+1
View File
@@ -5,6 +5,7 @@ import './sv_twitter';
import './sv_main';
import './sv_contacts';
import './sv_sellout';
import './sv_bank';
export let ESX: ESXServer = null;
+94
View File
@@ -0,0 +1,94 @@
import events from '../utils/events';
import { ESX, getSource } from './server';
import { pool } from './db';
import { resourceLimits } from 'worker_threads';
interface Transfer {
targetID: string;
amount: number;
message: string;
}
interface Credentials {
name: string;
balance: number;
}
async function fetchAllTransactions(identifier: string): Promise<Transfer[]> {
const query = "SELECT * FROM npwd_bank_transfers WHERE identifier = ? ORDER BY id DESC"
const [ results ] = await pool.query(query, [identifier])
const transactions = <Transfer[]>results;
return transactions;
}
function fetchCredentials(): Credentials {
const name = ESX.GetPlayerFromId(getSource()).getName();
const balance = ESX.GetPlayerFromId(getSource()).getAccount('bank').money
const result = {
name,
balance
}
console.log(result.name, result.balance);
return result;
}
async function addTransfer(identifier: string, transfer: Transfer): Promise<any> {
const xPlayer = ESX.GetPlayerFromId(getSource())
const bankBalance = xPlayer.getAccount('bank').money;
console.log(bankBalance)
if (transfer.amount > bankBalance) {
console.log("poor man")
emitNet(events.BANK_TRANSACTION_ALERT, getSource, 'You do not have enough money on your account', 'error')
}
else if (transfer.amount <= bankBalance) {
const query = "INSERT INTO npwd_bank_transfers (identifier, target, amount, message) VALUES (?, ?, ?, ?)"
await pool.query(query, [
identifier,
transfer.targetID,
transfer.amount,
transfer.message
])
emitNet(events.BANK_TRANSACTION_ALERT, getSource, 'You succesfully transferred money to someone', 'success')
}
}
onNet(events.BANK_FETCH_TRANSACTIONS, async () => {
try {
const _source = (global as any).source;
const _identifier = ESX.GetPlayerFromId(getSource()).getIdentifier()
const transfer = await fetchAllTransactions(_identifier);
emitNet(events.BANK_SEND_TRANSFERS, _source, transfer)
console.log("WOORK")
} catch (error) {
console.log('Failed to fetch transactions', error)
}
})
onNet(events.BANK_ADD_TRANSFER, (transfer: Transfer) => {
try {
const _identifier = ESX.GetPlayerFromId(getSource()).getIdentifier()
addTransfer(_identifier, transfer)
} catch (error) {
console.log('Failed to add transfer', error)
}
})
onNet(events.BANK_GET_CREDENTIALS, () => {
try {
const credentials = fetchCredentials()
console.log("New log: ", credentials.balance, credentials.name)
emitNet(events.BANK_SEND_CREDENTIALS, getSource(), credentials)
} catch (error) {
console.log(error)
}
})
+1 -22
View File
@@ -1,35 +1,14 @@
import { pool } from "./db";
import { ESX, getSource } from "./server";
import { Tweet, Profile } from '../../phone/src/common/interfaces/twitter';
import events from "../utils/events";
import config from "../utils/config";
interface Profile {
id: number;
profile_name: string;
identifier: string;
avatar_url?: string;
bio?: string;
location?: string;
job?: string;
createdAt: string;
updatedAt: string;
}
interface ProfileName {
profile_name: string;
}
interface Tweet {
id: number;
profile_name?: string;
avatar_url?: string;
message: string;
createdAt?: string;
updatedAt?: string;
images?: string;
likes?: number;
}
/**
* Retrieve the latest 100 tweets
* @param profileId - twitter profile id of the player
+3 -29
View File
@@ -1,30 +1,4 @@
export default {
Locale: "en",
KeyTogglePhone: 288,
KeyTakeCall: 38,
PhoneAsItem: false,
import config from '../../config.json';
import { ServerConfig } from '../../phone/src/common/interfaces/config';
// destroy phone
SwimDestroy: false,
RunRate: 10,
DestoryChance: 100,
DestroyPhoneReCheck: 3,
// notification settings
notificationPosition: {
horizontal: 'right', // left, center, right
vertical: 'bottom', // bottom, top
},
// twitter app
twitter: {
showNotifications: true,
generateProfileNameFromUsers: true,
characterLimit: 240,
allowEdtiableProfileName: true,
enableAvatars: true,
enableEmojis: true,
enableImages: true,
maxImages: 3,
},
};
export default <ServerConfig>config;
+9 -1
View File
@@ -31,5 +31,13 @@ export default {
// Sellout
SELLOUT_ADD_LISTING: 'phone:addListing',
SELLOUT_FETCH_LISTING: 'phone:fetchAllListings',
SELLOUT_SEND_LISTING: 'phone:sendAllListings'
SELLOUT_SEND_LISTING: 'phone:sendAllListings',
// Bank
BANK_ADD_TRANSFER: 'phone:addTransfer',
BANK_FETCH_TRANSACTIONS: 'phone:fetchAllTransactions',
BANK_SEND_TRANSFERS: 'phone:sendTransfers',
BANK_TRANSACTION_ALERT: 'phone:transactionAlert',
BANK_SEND_CREDENTIALS: 'phone:sendBankCredentials',
BANK_GET_CREDENTIALS: 'phone:getBankCredentials'
}