@mx-cartographer/experiences 9.7.49 → 9.7.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/core/constants/Help.d.ts +4 -27
- package/dist/core/constants/Help.es.js +46 -15
- package/dist/core/constants/Help.es.js.map +1 -1
- package/dist/core/types/Help.d.ts +13 -0
- package/dist/core/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/core/utils/HelpUtil.es.js +7 -7
- package/dist/core/utils/HelpUtil.es.js.map +1 -1
- package/dist/core/utils/TransactionUtils.d.ts +1 -0
- package/dist/core/utils/TransactionUtils.es.js +19 -18
- package/dist/core/utils/TransactionUtils.es.js.map +1 -1
- package/dist/help/components/Help.es.js +30 -29
- package/dist/help/components/Help.es.js.map +1 -1
- package/dist/help/components/content/ContentItem.es.js +24 -23
- package/dist/help/components/content/ContentItem.es.js.map +1 -1
- package/dist/help/components/content/section/General.es.js +37 -32
- package/dist/help/components/content/section/General.es.js.map +1 -1
- package/dist/help/components/content/section/LoginIssues.es.js +10 -7
- package/dist/help/components/content/section/LoginIssues.es.js.map +1 -1
- package/dist/help/components/content/section/index.es.js +24 -24
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +24 -20
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -1
- package/dist/transactions/TransactionWidget.es.js +37 -36
- package/dist/transactions/TransactionWidget.es.js.map +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.es.js +46 -45
- package/dist/transactions/components/shared/TransactionList.es.js.map +1 -1
- package/dist/transactions/components/shared/UnviewedIndicator.d.ts +6 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js +21 -0
- package/dist/transactions/components/shared/UnviewedIndicator.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +2 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +38 -37
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js +23 -32
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { useGlobalCopyStore as
|
|
2
|
-
import { TransactionType as
|
|
3
|
-
import { formatCurrency as
|
|
4
|
-
import { isTransferTransaction as
|
|
5
|
-
import { ListItemWrapper as
|
|
1
|
+
import { useGlobalCopyStore as C, useTransactionStore as S } from "../../../../common/context/hooks.es.js";
|
|
2
|
+
import { TransactionType as N } from "../../../../core/types/Transaction.es.js";
|
|
3
|
+
import { formatCurrency as k } from "../../../../core/utils/NumberFormatting.es.js";
|
|
4
|
+
import { isTransferTransaction as L, isUnviewedTransaction as E } from "../../../../core/utils/TransactionUtils.es.js";
|
|
5
|
+
import { ListItemWrapper as R } from "../../../../common/components/ListItemWrapper.es.js";
|
|
6
6
|
import { useTransactionsUiStore as f } from "../../../context/hooks.es.js";
|
|
7
|
-
import { ON_CLICK_EVENTS as
|
|
8
|
-
import
|
|
7
|
+
import { ON_CLICK_EVENTS as j } from "../../../constants/OnClickEvents.es.js";
|
|
8
|
+
import M from "../TransactionInsightTag.es.js";
|
|
9
|
+
import z from "../UnviewedIndicator.es.js";
|
|
9
10
|
import _ from "react";
|
|
10
|
-
import { observer as
|
|
11
|
+
import { observer as A } from "mobx-react-lite";
|
|
11
12
|
import n from "@mui/material/Stack";
|
|
12
|
-
import { Icon as a, MerchantLogo as
|
|
13
|
-
import { jsx as r, jsxs as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
var
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
return i.is_flagged &&
|
|
13
|
+
import { Icon as a, MerchantLogo as G, Text as d } from "@mxenabled/mxui";
|
|
14
|
+
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
15
|
+
import { useTheme as O } from "@mui/material/styles";
|
|
16
|
+
import U from "@mui/material/ListItemAvatar";
|
|
17
|
+
import B from "@mui/material/ListItemText";
|
|
18
|
+
var D = ({ transaction: e, disabled: g = !1, onClick: m, component: c, showUnviewedIndicator: h = !1 }) => {
|
|
19
|
+
const T = O().palette.mode === "dark", { associatedBeats: p } = S(), { expandedSplits: y } = f(), { transactions: I } = C(), { showInsights: b } = f(), l = e.transaction_type === N.CREDIT, v = L(e) && !!e.institutionName, u = _.useMemo(() => p.find((i) => i.associated_transaction_guid === e.guid), [p, e]), x = (i, s) => {
|
|
20
|
+
const t = [];
|
|
21
|
+
return i.is_flagged && t.push(/* @__PURE__ */ r(a, {
|
|
21
22
|
fill: !0,
|
|
22
23
|
name: "flag",
|
|
23
24
|
size: 16,
|
|
24
|
-
sx: { color:
|
|
25
|
-
}, "flag")), i.is_hidden &&
|
|
25
|
+
sx: { color: s ? "primary.main" : "warning.dark" }
|
|
26
|
+
}, "flag")), i.is_hidden && t.push(/* @__PURE__ */ r(a, {
|
|
26
27
|
name: "visibility_off",
|
|
27
28
|
size: 16
|
|
28
|
-
}, "hidden")), i.has_been_split &&
|
|
29
|
+
}, "hidden")), i.has_been_split && t.push(/* @__PURE__ */ r(a, {
|
|
29
30
|
name: "call_split",
|
|
30
31
|
size: 16
|
|
31
|
-
}, "split")),
|
|
32
|
-
},
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
clickEventName:
|
|
32
|
+
}, "split")), h && E(i) && t.push(/* @__PURE__ */ r(z, {}, "unviewed")), t;
|
|
33
|
+
}, w = (i, s) => i.is_hidden ? s.is_excluded : i.has_been_split ? s.split_transaction_category_label : i.category || "";
|
|
34
|
+
return /* @__PURE__ */ o(R, {
|
|
35
|
+
clickEventName: j.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
35
36
|
...c && { component: c },
|
|
36
37
|
disabled: g,
|
|
37
38
|
onClick: m ? () => m(e.guid) : void 0,
|
|
@@ -39,26 +40,26 @@ var O = ({ transaction: e, disabled: g = !1, onClick: m, component: c }) => {
|
|
|
39
40
|
backgroundColor: "grey.50",
|
|
40
41
|
color: "text.secondary"
|
|
41
42
|
} : void 0,
|
|
42
|
-
children: [/* @__PURE__ */ r(
|
|
43
|
+
children: [/* @__PURE__ */ r(U, { children: e.parent_guid && y.includes(e.parent_guid) ? /* @__PURE__ */ r(_.Fragment, {}) : /* @__PURE__ */ r(G, {
|
|
43
44
|
categoryGuid: e.top_level_category_guid || "",
|
|
44
45
|
merchantGuid: e.merchant_guid || ""
|
|
45
|
-
}) }), /* @__PURE__ */ r(
|
|
46
|
+
}) }), /* @__PURE__ */ r(B, {
|
|
46
47
|
disableTypography: !0,
|
|
47
|
-
secondary: /* @__PURE__ */
|
|
48
|
+
secondary: /* @__PURE__ */ o(n, {
|
|
48
49
|
direction: "row",
|
|
49
50
|
justifyContent: "space-between",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ o(n, {
|
|
51
52
|
alignItems: "center",
|
|
52
53
|
direction: "row",
|
|
53
54
|
gap: 4,
|
|
54
|
-
children: [
|
|
55
|
+
children: [x(e, T), /* @__PURE__ */ r(d, {
|
|
55
56
|
truncate: !0,
|
|
56
57
|
variant: "caption",
|
|
57
|
-
children:
|
|
58
|
+
children: w(e, I)
|
|
58
59
|
})]
|
|
59
|
-
}), u && b && /* @__PURE__ */ r(
|
|
60
|
+
}), u && b && /* @__PURE__ */ r(M, { beat: u })]
|
|
60
61
|
}),
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ o(n, {
|
|
62
63
|
direction: "row",
|
|
63
64
|
justifyContent: "space-between",
|
|
64
65
|
sx: { gap: 8 },
|
|
@@ -66,20 +67,20 @@ var O = ({ transaction: e, disabled: g = !1, onClick: m, component: c }) => {
|
|
|
66
67
|
bold: !0,
|
|
67
68
|
truncate: !0,
|
|
68
69
|
variant: "body1",
|
|
69
|
-
children:
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
children: v ? e.institutionName : e.payee || e.description || e.feed_description
|
|
71
|
+
}), /* @__PURE__ */ o(d, {
|
|
71
72
|
bold: !0,
|
|
72
73
|
color: l ? "success.main" : "text.primary",
|
|
73
74
|
sx: { flexShrink: 0 },
|
|
74
75
|
variant: "body1",
|
|
75
|
-
children: [l ? "+" : "",
|
|
76
|
+
children: [l ? "+" : "", k(e.amount, "0,0.00")]
|
|
76
77
|
})]
|
|
77
78
|
})
|
|
78
79
|
})]
|
|
79
80
|
});
|
|
80
|
-
},
|
|
81
|
+
}, oe = A(D);
|
|
81
82
|
export {
|
|
82
|
-
|
|
83
|
+
oe as default
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
//# sourceMappingURL=TransactionRow.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRow.es.js","names":[],"sources":["../../../../../src/transactions/components/shared/transactionlist/TransactionRow.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport ListItemAvatar from '@mui/material/ListItemAvatar'\nimport ListItemText from '@mui/material/ListItemText'\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\n\nimport { Icon, MerchantLogo, Text } from '@mxenabled/mxui'\n\nimport { ListItemWrapper, useGlobalCopyStore, useTransactionStore } from '../../../../common'\nimport { Transaction, TransactionType } from '../../../../core'\nimport {
|
|
1
|
+
{"version":3,"file":"TransactionRow.es.js","names":[],"sources":["../../../../../src/transactions/components/shared/transactionlist/TransactionRow.tsx"],"sourcesContent":["import React from 'react'\nimport { observer } from 'mobx-react-lite'\n\nimport ListItemAvatar from '@mui/material/ListItemAvatar'\nimport ListItemText from '@mui/material/ListItemText'\nimport Stack from '@mui/material/Stack'\nimport { useTheme } from '@mui/material/styles'\n\nimport { Icon, MerchantLogo, Text } from '@mxenabled/mxui'\n\nimport { ListItemWrapper, useGlobalCopyStore, useTransactionStore } from '../../../../common'\nimport { Transaction, TransactionType } from '../../../../core'\nimport {\n isTransferTransaction,\n isUnviewedTransaction,\n} from '../../../../core/utils/TransactionUtils'\n\nimport TransactionInsightTag from '../TransactionInsightTag'\nimport UnviewedIndicator from '../UnviewedIndicator'\n\nimport { ON_CLICK_EVENTS } from '../../../constants/OnClickEvents'\nimport { useTransactionsUiStore } from '../../../context/hooks'\nimport { formatCurrency } from '../../../../core/utils/NumberFormatting'\n\ninterface TransactionRowProps {\n component?: React.ElementType\n /** Shows the row greyed out and inert (see {@link ListItemWrapper}). */\n disabled?: boolean\n onClick?: (guid: string) => void\n /** Only the Transactions widget marks a transaction viewed, so other widgets leave this off. */\n showUnviewedIndicator?: boolean\n transaction: Transaction\n}\n\nconst TransactionRow: React.FC<TransactionRowProps> = ({\n transaction,\n disabled = false,\n onClick,\n component,\n showUnviewedIndicator = false,\n}) => {\n const theme = useTheme()\n const isDarkMode = theme.palette.mode === 'dark'\n\n const { associatedBeats } = useTransactionStore()\n const { expandedSplits } = useTransactionsUiStore()\n const { transactions: copy } = useGlobalCopyStore()\n const { showInsights } = useTransactionsUiStore()\n\n const isCredit = transaction.transaction_type === TransactionType.CREDIT\n\n const showInstitution = isTransferTransaction(transaction) && Boolean(transaction.institutionName)\n\n const beat = React.useMemo(() => {\n return associatedBeats.find((beat) => beat.associated_transaction_guid === transaction.guid)\n }, [associatedBeats, transaction])\n\n const getTransactionStatusIcons = (\n transaction: Transaction,\n isDarkMode: boolean,\n ): React.ReactNode[] => {\n const icons: React.ReactNode[] = []\n\n if (transaction.is_flagged) {\n icons.push(\n <Icon\n fill={true}\n key=\"flag\"\n name=\"flag\"\n size={16}\n sx={{ color: isDarkMode ? 'primary.main' : 'warning.dark' }}\n />,\n )\n }\n\n if (transaction.is_hidden) {\n icons.push(<Icon key=\"hidden\" name=\"visibility_off\" size={16} />)\n }\n\n if (transaction.has_been_split) {\n icons.push(<Icon key=\"split\" name=\"call_split\" size={16} />)\n }\n\n if (showUnviewedIndicator && isUnviewedTransaction(transaction)) {\n icons.push(<UnviewedIndicator key=\"unviewed\" />)\n }\n\n return icons\n }\n\n const getTransactionCategoryText = (transaction: Transaction, copy: any): string => {\n if (transaction.is_hidden) {\n return copy.is_excluded\n }\n\n if (transaction.has_been_split) {\n return copy.split_transaction_category_label\n }\n\n return transaction.category || ''\n }\n\n return (\n //TODO: implement common/components/ListItemRow.tsx\n <ListItemWrapper\n clickEventName={ON_CLICK_EVENTS.ON_TRANSACTION_LIST_ITEM_CLICK}\n {...(component && { component })}\n disabled={disabled}\n onClick={onClick ? () => onClick(transaction.guid) : undefined}\n sx={\n transaction.is_hidden ? { backgroundColor: 'grey.50', color: 'text.secondary' } : undefined\n }\n >\n <ListItemAvatar>\n {transaction.parent_guid && expandedSplits.includes(transaction.parent_guid) ? (\n <React.Fragment />\n ) : (\n <MerchantLogo\n categoryGuid={transaction.top_level_category_guid || ''}\n merchantGuid={transaction.merchant_guid || ''}\n />\n )}\n </ListItemAvatar>\n <ListItemText\n disableTypography={true}\n secondary={\n <Stack direction=\"row\" justifyContent=\"space-between\">\n <Stack alignItems=\"center\" direction=\"row\" gap={4}>\n {getTransactionStatusIcons(transaction, isDarkMode)}\n <Text truncate={true} variant=\"caption\">\n {getTransactionCategoryText(transaction, copy)}\n </Text>\n </Stack>\n {beat && showInsights && <TransactionInsightTag beat={beat} />}\n </Stack>\n }\n >\n <Stack direction=\"row\" justifyContent=\"space-between\" sx={{ gap: 8 }}>\n <Text bold={true} truncate={true} variant=\"body1\">\n {showInstitution\n ? transaction.institutionName\n : transaction.payee || transaction.description || transaction.feed_description}\n </Text>\n <Text\n bold={true}\n color={isCredit ? 'success.main' : 'text.primary'}\n sx={{ flexShrink: 0 }}\n variant=\"body1\"\n >\n {isCredit ? '+' : ''}\n {formatCurrency(transaction.amount, '0,0.00')}\n </Text>\n </Stack>\n </ListItemText>\n </ListItemWrapper>\n )\n}\n\nexport default observer(TransactionRow)\n"],"mappings":";;;;;;;;;;;;;;;;;AAkCA,IAAM,IAAA,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A,EAAC,GAAD;AAAA,UACE,MAAM;AAAA,UACN,OAAO,IAAW,iBAAiB;AAAA,UACnC,IAAI,EAAE,YAAY,EAAE;AAAA,UACpB,SAAQ;AAAA,UAJV,UAAA,CAMG,IAAW,MAAM,IACjB,EAAe,EAAY,QAAQ,QAAQ,CACxC;AAAA,QACD,CAAA,CAAA;AAAA;IACK,CAAA,CACC;AAAA;AAErB,GAEA,KAAe,EAAS,CAAc"}
|
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
import { useGlobalCopyStore as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { useGlobalCopyStore as d } from "../../../../../common/context/hooks.es.js";
|
|
2
|
+
import { isUnviewedTransaction as m } from "../../../../../core/utils/TransactionUtils.es.js";
|
|
3
|
+
import f from "../../UnviewedIndicator.es.js";
|
|
4
|
+
import { observer as c } from "mobx-react-lite";
|
|
5
|
+
import { Icon as s } from "@mxenabled/mxui";
|
|
6
|
+
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import { useTheme as u } from "@mui/material/styles";
|
|
8
|
+
import g from "@mui/material/Box";
|
|
9
|
+
var v = (o) => {
|
|
10
|
+
const l = u().palette.mode === "dark", { transactions: r } = d(), { is_flagged: e, is_hidden: t } = o.row, a = m(o.row), n = [
|
|
11
|
+
e && r.is_flagged,
|
|
12
|
+
!e && t && r.is_excluded,
|
|
13
|
+
a && r.is_unviewed
|
|
14
|
+
].filter(Boolean);
|
|
15
|
+
return /* @__PURE__ */ p(g, {
|
|
16
|
+
"aria-label": n.length ? n.join(", ") : void 0,
|
|
17
|
+
tabIndex: o.tabIndex,
|
|
12
18
|
children: [
|
|
13
|
-
|
|
19
|
+
e && /* @__PURE__ */ i(s, {
|
|
14
20
|
fill: !0,
|
|
15
21
|
name: "flag",
|
|
16
22
|
size: 16,
|
|
17
|
-
sx: { color:
|
|
23
|
+
sx: { color: l ? "primary.main" : "warning.dark" }
|
|
18
24
|
}),
|
|
19
|
-
!
|
|
25
|
+
!e && t && /* @__PURE__ */ i(s, {
|
|
20
26
|
name: "visibility_off",
|
|
21
27
|
size: 16
|
|
22
28
|
}),
|
|
23
|
-
|
|
24
|
-
"data-testid": "svg",
|
|
25
|
-
style: {
|
|
26
|
-
display: "inline-block",
|
|
27
|
-
height: 16,
|
|
28
|
-
fill: r.palette.primary.light,
|
|
29
|
-
verticalAlign: "middle",
|
|
30
|
-
width: 16
|
|
31
|
-
},
|
|
32
|
-
viewBox: "0 0 512 512",
|
|
33
|
-
children: /* @__PURE__ */ e("circle", {
|
|
34
|
-
cx: "256",
|
|
35
|
-
cy: "256",
|
|
36
|
-
r: "60"
|
|
37
|
-
})
|
|
38
|
-
})
|
|
29
|
+
a && /* @__PURE__ */ i(f, { decorative: !0 })
|
|
39
30
|
]
|
|
40
31
|
});
|
|
41
|
-
},
|
|
32
|
+
}, j = c(v);
|
|
42
33
|
export {
|
|
43
|
-
|
|
34
|
+
j as default
|
|
44
35
|
};
|
|
45
36
|
|
|
46
37
|
//# sourceMappingURL=FlagCell.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlagCell.es.js","names":[],"sources":["../../../../../../src/transactions/components/shared/transactiontable/cells/FlagCell.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport { GridRenderCellParams } from '@mui/x-data-grid-pro'\nimport { Icon } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../../../common'\n\nconst FlagCell = (params: GridRenderCellParams) => {\n const theme = useTheme()\n const isDarkMode = theme.palette.mode === 'dark'\n\n const { transactions: transactionsCopy } = useGlobalCopyStore()\n const { is_flagged, is_hidden
|
|
1
|
+
{"version":3,"file":"FlagCell.es.js","names":[],"sources":["../../../../../../src/transactions/components/shared/transactiontable/cells/FlagCell.tsx"],"sourcesContent":["import Box from '@mui/material/Box'\nimport { observer } from 'mobx-react-lite'\n\nimport { useTheme } from '@mui/material/styles'\nimport { GridRenderCellParams } from '@mui/x-data-grid-pro'\nimport { Icon } from '@mxenabled/mxui'\n\nimport { useGlobalCopyStore } from '../../../../../common'\nimport { isUnviewedTransaction } from '../../../../../core/utils/TransactionUtils'\n\nimport UnviewedIndicator from '../../UnviewedIndicator'\n\nconst FlagCell = (params: GridRenderCellParams) => {\n const theme = useTheme()\n const isDarkMode = theme.palette.mode === 'dark'\n\n const { transactions: transactionsCopy } = useGlobalCopyStore()\n const { is_flagged, is_hidden } = params.row\n const hasNotBeenViewed = isUnviewedTransaction(params.row)\n const statusLabels = [\n is_flagged && transactionsCopy.is_flagged,\n !is_flagged && is_hidden && transactionsCopy.is_excluded,\n hasNotBeenViewed && transactionsCopy.is_unviewed,\n ].filter(Boolean)\n\n return (\n <Box\n aria-label={statusLabels.length ? statusLabels.join(', ') : undefined}\n tabIndex={params.tabIndex}\n >\n {is_flagged && (\n <Icon\n fill={true}\n name=\"flag\"\n size={16}\n sx={{ color: isDarkMode ? 'primary.main' : 'warning.dark' }}\n />\n )}\n {!is_flagged && is_hidden && <Icon name=\"visibility_off\" size={16} />}\n {hasNotBeenViewed && <UnviewedIndicator decorative={true} />}\n </Box>\n )\n}\n\nexport default observer(FlagCell)\n"],"mappings":";;;;;;;;AAYA,IAAM,IAAA,CAAY,MAAiC;AAEjD,QAAM,IADQ,EACK,EAAM,QAAQ,SAAS,QAEpC,EAAE,cAAc,EAAA,IAAqB,EAAmB,GACxD,EAAE,YAAA,GAAY,WAAA,EAAA,IAAc,EAAO,KACnC,IAAmB,EAAsB,EAAO,GAAG,GACnD,IAAe;AAAA,IACnB,KAAc,EAAiB;AAAA,IAC/B,CAAC,KAAc,KAAa,EAAiB;AAAA,IAC7C,KAAoB,EAAiB;AAAA,EACvC,EAAE,OAAO,OAAO;AAEhB,SACE,gBAAA,EAAC,GAAD;AAAA,IACE,cAAY,EAAa,SAAS,EAAa,KAAK,IAAI,IAAI;AAAA,IAC5D,UAAU,EAAO;AAAA,IAFnB,UAAA;AAAA,MAIG,KACC,gBAAA,EAAC,GAAD;AAAA,QACE,MAAM;AAAA,QACN,MAAK;AAAA,QACL,MAAM;AAAA,QACN,IAAI,EAAE,OAAO,IAAa,iBAAiB,eAAe;AAAA,MAC3D,CAAA;AAAA,MAEF,CAAC,KAAc,KAAa,gBAAA,EAAC,GAAD;AAAA,QAAM,MAAK;AAAA,QAAiB,MAAM;AAAA,MAAK,CAAA;AAAA,MACnE,KAAoB,gBAAA,EAAC,GAAD,EAAmB,YAAY,GAAO,CAAA;AAAA,IACxD;AAAA;AAET,GAEA,IAAe,EAAS,CAAQ"}
|