@voplus/morpho-csp 5.0.72 → 5.0.74

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.
Files changed (37) hide show
  1. package/es/components/CurrencyView/index.d.ts +2 -1
  2. package/es/components/CurrencyView/index.js +1 -1
  3. package/es/components/CurrencyView/index.js.map +1 -1
  4. package/es/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.js +1 -1
  5. package/es/modules/corporate/clda/components/NewCLDAForm/NewCLDAFormDialog.js.map +1 -1
  6. package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.js +1 -1
  7. package/es/modules/corporate/company/share-transactions-register/components/CertCancelCreateDialog/index.js.map +1 -1
  8. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.d.ts +5 -9
  9. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js +20 -19
  10. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDataContext.js.map +1 -1
  11. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +139 -124
  12. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
  13. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.d.ts +2 -1
  14. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js +2 -4
  15. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.js.map +1 -1
  16. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +47 -0
  17. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js +6 -4
  18. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.js.map +1 -1
  19. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js +1 -1
  20. package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/NewFilingRecoreFormDialog.js.map +1 -1
  21. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.d.ts +7 -13
  22. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.js +19 -20
  23. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDataContext.js.map +1 -1
  24. package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js +50 -95
  25. package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js.map +1 -1
  26. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +1 -1
  27. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
  28. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +12 -27
  29. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js +1 -1
  30. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.d.ts +0 -3
  33. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +0 -160
  34. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js.map +0 -1
  35. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.d.ts +0 -3
  36. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.js +0 -93
  37. package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.js.map +0 -1
@@ -1,160 +0,0 @@
1
- import { AutoComplete, Button, Form, InputNumber } from "antd";
2
- import { useShareTransactionStore, } from "../../../../../../data/share-transaction";
3
- import React, { useRef, useState } from "react";
4
- import { faBars, faTrashAlt } from "@fortawesome/pro-light-svg-icons";
5
- import CurrencyAmount from "@voplus/morpho-ui/es/controls/CurrencyAmount";
6
- import CurrencyView from "../../../../../../components/CurrencyView";
7
- import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference";
8
- import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
9
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
10
- import ShareholderSelector from "../ShareholderSelector";
11
- import classnames from "classnames";
12
- import { isEqual } from "lodash-es";
13
- import { observe } from "@voplus/morpho-ui";
14
- import { useFormRowContext } from "../../../../../../components/DragTableRow/FormRowContext";
15
- import { useTableDataContext } from "./TableDataContext";
16
- import CertCancelCreateDialog from "../CertCancelCreateDialog";
17
- const DragTableCell = (props) => {
18
- const { shareTransaction, verified, confirmed, editable, dataIndex, record, rowIndex, children, onAdd, onDel, ...restProps } = props;
19
- const [editing, setEditing] = useState(false);
20
- const [certCancelCreate, setCertCancelCreate] = useState({ visible: false, shareLine: {} });
21
- /** Open of shareType */
22
- const [open, setOpen] = useState(false);
23
- const ref = useRef();
24
- const formContext = useFormRowContext();
25
- const dataContext = useTableDataContext();
26
- const store = useShareTransactionStore();
27
- const required = dataIndex === "certificate" || dataIndex === "currency" ? false : true;
28
- return observe(() => {
29
- var _a, _b, _c, _d, _e, _f, _g;
30
- return (React.createElement("td", { ...restProps, ref: ref },
31
- dataIndex === "Dnd" ? (record.added ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
32
- React.createElement(FAIcon, { icon: faTrashAlt }))) : (formContext.connectDragSource(React.createElement("span", { style: shareTransaction.readonly ? { pointerEvents: "none" } : { cursor: "move" } },
33
- React.createElement(FAIcon, { icon: faBars }))))) : editable ? ((record && record.added) || editing ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [{ required: required, message: `${dataIndex} is required.` }] }, dataIndex === "shareholder" ? (React.createElement(ShareholderSelector, { memberId: shareTransaction.memberRegisterId, open: editing, defaultValue: record.shareholder, onChange: save })) : dataIndex === "class" ? (React.createElement(AutoComplete
34
- // autoFocus
35
- , {
36
- // autoFocus
37
- open: open || editing, onSelect: save, onBlur: save, onDropdownVisibleChange: (open) => setOpen(open) },
38
- React.createElement(AutoComplete.Option, { value: "Ordinary" }, "Ordinary"),
39
- React.createElement(AutoComplete.Option, { value: "Preference" }, "Preference"))) : dataIndex === "certificate" ? (shareTransaction.transactionType !== "Allotment" &&
40
- dataContext.hoverKey === rowIndex ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
41
- React.createElement(FAIcon, { icon: faTrashAlt }))) : null) : dataIndex === "currency" ? (React.createElement(CurrencyView, { currency: record.currency, editable: !!record.added, onChange: save })) : dataIndex === "consideration" ? (React.createElement("div", { className: "table-consideration-edit" },
42
- React.createElement(InputNumber, { autoFocus: editing, min: inputNumberMinVal(shareTransaction.transactionType, dataIndex), max: dataIndex === "discount" ? 100 : 100000000000, precision: 2, onPressEnter: save, onBlur: save, onKeyDown: onKeyDown }),
43
- shareTransaction.transactionType === "Allotment" &&
44
- dataContext.hoverKey === rowIndex && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
45
- React.createElement(FAIcon, { icon: faTrashAlt }))))) : (React.createElement(InputNumber, { autoFocus: editing, min: inputNumberMinVal(shareTransaction.transactionType, dataIndex), max: dataIndex === "discount" ? 100 : 100000000000, precision: dataIndex === "price" ? 2 : 0, onPressEnter: save, onBlur: save, onKeyDown: onKeyDown })))) : dataIndex === "shareholder" && record.shareholder ? (React.createElement("div", { onClick: () => !record.id && toggleEdit() }, record.shareholder.name)) : dataIndex === "shares" ? (record.shares) : dataIndex === "certificate" ? (React.createElement("div", { className: "certificate-conetnt" },
46
- record.newCertificate || ((_a = record.cancelledCertificates) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: "share-transaction-table-share" },
47
- record.newCertificate && (React.createElement("div", { className: "new-certificate" },
48
- ((_b = record.cancelledCertificates) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (React.createElement("div", { className: "new-certificate-title" }, "New")) : null,
49
- React.createElement(DocumentReference, { id: (_c = record.newCertificate) === null || _c === void 0 ? void 0 : _c.id }))),
50
- ((_d = record.cancelledCertificates) === null || _d === void 0 ? void 0 : _d.length) > 0 ? (React.createElement("div", { className: "cancelled-certificates" },
51
- React.createElement("div", { className: "cancelled-certificates-title" }, "Cancelled"),
52
- React.createElement(ReferenceList, { canEdit: false, document: record.cancelledCertificates }))) : null)) : record.shares > 0 ? (confirmed && verified ? (React.createElement(Button, { disabled: shareTransaction.readonly, onClick: () => createCertificate(record.id) }, "Create")) : null) : confirmed && verified ? (React.createElement(Button, { disabled: shareTransaction.readonly, onClick: () => setCertCancelCreate({
53
- visible: true,
54
- shareLine: record,
55
- }) }, "Create")) : null,
56
- shareTransaction.transactionType !== "Allotment" &&
57
- dataContext.hoverKey === rowIndex &&
58
- !((_e = record.certificate) === null || _e === void 0 ? void 0 : _e.id) &&
59
- verified === false &&
60
- confirmed === false && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
61
- React.createElement(FAIcon, { icon: faTrashAlt }))))) : dataIndex === "consideration" ? (React.createElement("div", { className: "consideration-content" },
62
- React.createElement(CurrencyAmount, { amount: (_f = record.consideration) !== null && _f !== void 0 ? _f : 0 }),
63
- dataIndex === "consideration" &&
64
- dataContext.hoverKey === rowIndex &&
65
- !((_g = record.certificate) === null || _g === void 0 ? void 0 : _g.id) &&
66
- verified === false &&
67
- confirmed === false && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
68
- React.createElement(FAIcon, { icon: faTrashAlt }))))) : (React.createElement(React.Fragment, null,
69
- React.createElement("div", { className: classnames({
70
- "editable-cell-wrap": dataIndex === "consideration",
71
- }) },
72
- React.createElement("div", { onClick: toggleEdit }, children))))) : dataIndex === "shareholder" && record.shareholder ? (record.shareholder.name) : (children),
73
- certCancelCreate.visible && (React.createElement(CertCancelCreateDialog, { transactionId: shareTransaction.id, shareLine: certCancelCreate.shareLine, onCancel: () => setCertCancelCreate({
74
- visible: false,
75
- shareLine: {},
76
- }) }))));
77
- });
78
- function inputNumberMinVal(transactionType, dataIndex) {
79
- if (transactionType === "Allotment") {
80
- return 0;
81
- }
82
- else {
83
- if (dataIndex === "shares") {
84
- return undefined;
85
- }
86
- return 0;
87
- }
88
- }
89
- function toggleEdit() {
90
- var _a;
91
- if ((_a = record.certificate) === null || _a === void 0 ? void 0 : _a.id)
92
- return;
93
- if (verified || confirmed)
94
- return;
95
- formContext.form.setFieldsValue(record);
96
- setEditing(!editing);
97
- }
98
- async function createCertificate(lineId) {
99
- await store
100
- .createCertificate(shareTransaction.id, lineId, {
101
- error: "message",
102
- })
103
- .then(() => store.refresh(shareTransaction.id, {}));
104
- }
105
- function save() {
106
- formContext.form
107
- .validateFields()
108
- .then((sharesLine) => {
109
- const { added, shareholder, consideration, shares, currency } = record;
110
- const line = {
111
- shareholder: sharesLine.shareholder || shareholder,
112
- class: sharesLine.class || record.class,
113
- consideration: sharesLine.consideration || consideration,
114
- shares: sharesLine.shares || shares,
115
- currency: sharesLine.currency || currency,
116
- };
117
- const hasChange = !isEqual(line, {
118
- shareholder,
119
- class: record.class,
120
- consideration,
121
- shares,
122
- currency,
123
- });
124
- /** Add or edit shareOption line */
125
- if (added || hasChange) {
126
- setSharesLine(rowIndex, sharesLine);
127
- }
128
- if (!added)
129
- return toggleEdit();
130
- })
131
- .catch((errorInfo) => {
132
- // console.log(errorInfo, "errorInfo");
133
- });
134
- }
135
- function onKeyDown(e) {
136
- /** Esc to quit editing */
137
- if (e.keyCode === 27)
138
- return setEditing(false);
139
- if (e.keyCode !== 9 || dataIndex !== "discount")
140
- return;
141
- formContext.form
142
- .validateFields()
143
- .then(() => {
144
- onAdd();
145
- })
146
- .catch((errorInfo) => {
147
- // console.log(errorInfo, "errorInfo");
148
- });
149
- return;
150
- }
151
- function setSharesLine(index, sharesLine) {
152
- dataContext.invoiceLines[index] = {
153
- ...dataContext.invoiceLines[index],
154
- ...sharesLine,
155
- };
156
- dataContext.invoiceLines = [...dataContext.invoiceLines];
157
- }
158
- };
159
- export default DragTableCell;
160
- //# sourceMappingURL=TableDragCell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableDragCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAEN,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAE/D,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;IACpC,MAAM,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,GAAG,SAAS,EACZ,GAAG,KAAK,CAAC;IAEV,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,gBAAgB,E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EAAE,EAAE;YACzB,uCAAuC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC;IACD,SAAS,SAAS,CAAC,CAAM;QACxB,0BAA0B;QAC1B,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,IAAI,SAAS,KAAK,UAAU;YAAE,OAAO;QACxD,WAAW,CAAC,IAAI;aACd,cAAc,EAAE;aAChB,IAAI,CAAC,GAAG,EAAE;YACV,KAAK,EAAE,CAAC;QACT,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,SAAc,EAAE,EAAE;YACzB,uCAAuC;QACxC,CAAC,CAAC,CAAC;QACJ,OAAO;IACR,CAAC;IACD,SAAS,aAAa,CAAC,KAAa,EAAE,UAAe;QACpD,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG;YACjC,GAAG,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC;YAClC,GAAG,UAAU;SACb,CAAC;QACF,WAAW,CAAC,YAAY,GAAG,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IAC1D,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const DragTableCell: (props: any) => React.JSX.Element;
3
- export default DragTableCell;
@@ -1,93 +0,0 @@
1
- import { AutoComplete, Button, Form, InputNumber } from "antd";
2
- import React, { useRef, useState } from "react";
3
- import { faBars, faTrashAlt } from "@fortawesome/pro-light-svg-icons";
4
- import CurrencyView from "../../../../../components/CurrencyView";
5
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
- import classnames from "classnames";
7
- import { isEqual } from "lodash-es";
8
- import { observe } from "@voplus/morpho-ui";
9
- import { useFormRowContext } from "../../../../../components/DragTableRow/FormRowContext";
10
- import { useTableDataContext } from "./TableDataContext";
11
- const DragTableCell = (props) => {
12
- const { editable, dataIndex, record, rowIndex, children, onAdd, onDel, ...restProps } = props;
13
- const formContext = useFormRowContext();
14
- const dataContext = useTableDataContext();
15
- const [editing, setEditing] = useState(false);
16
- /** Open of shareType */
17
- const [open, setOpen] = useState(false);
18
- const ref = useRef();
19
- return observe(() => (React.createElement("td", { ...restProps, ref: ref }, dataIndex === "Dnd" ? (record.added ? (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
20
- React.createElement(FAIcon, { icon: faTrashAlt }))) : (formContext.connectDragSource(React.createElement("span", { style: { cursor: "move" } },
21
- React.createElement(FAIcon, { icon: faBars }))))) : editable ? ((record && record.added) || editing ? (React.createElement(Form.Item, { name: dataIndex, style: { margin: 0 }, rules: [{ required: true, message: `${dataIndex} is required.` }] }, dataIndex === "class" ? (React.createElement(AutoComplete
22
- // autoFocus
23
- , {
24
- // autoFocus
25
- open: open || editing, onSelect: save, onBlur: save, onDropdownVisibleChange: (open) => setOpen(open) },
26
- React.createElement(AutoComplete.Option, { value: "Ordinary" }, "Ordinary"),
27
- React.createElement(AutoComplete.Option, { value: "Preference" }, "Preference"))) : dataIndex === "currency" ? (React.createElement(CurrencyView, { currency: record.currency, editable: !!record.added, onChange: save })) : (React.createElement(InputNumber, { autoFocus: editing, min: dataIndex === "qty" ? 1 : 0, max: dataIndex === "discount" ? 100 : 100000000000, precision: dataIndex === "price" ? 2 : 0, onPressEnter: save, onBlur: save, onKeyDown: onKeyDown })))) : dataIndex === "shareholder" && record.shareholder ? (React.createElement("div", { onClick: toggleEdit }, record.shareholder.name)) : (React.createElement(React.Fragment, null,
28
- React.createElement("div", { className: classnames({
29
- "editable-cell-wrap": dataIndex === "consideration",
30
- }) },
31
- React.createElement("div", { onClick: toggleEdit }, children),
32
- dataIndex === "consideration" && dataContext.hoverKey === rowIndex && (React.createElement(Button, { danger: true, shape: "circle", onClick: () => onDel(record.id) },
33
- React.createElement(FAIcon, { icon: faTrashAlt }))))))) : dataIndex === "shareholder" && record.shareholder ? (record.shareholder.name) : (children))));
34
- function toggleEdit() {
35
- formContext.form.setFieldsValue(record);
36
- setEditing(!editing);
37
- }
38
- function save() {
39
- formContext.form
40
- .validateFields()
41
- .then((sharesLine) => {
42
- const { added, shareholder, consideration, shares, currency } = record;
43
- const line = {
44
- shareholder: sharesLine.shareholder || shareholder,
45
- class: sharesLine.class || record.class,
46
- consideration: sharesLine.consideration || consideration,
47
- shares: sharesLine.shares || shares,
48
- currency: sharesLine.currency || currency,
49
- };
50
- const hasChange = !isEqual(line, {
51
- shareholder,
52
- class: record.class,
53
- consideration,
54
- shares,
55
- currency,
56
- });
57
- /** Add or edit shareOption line */
58
- if (added || hasChange) {
59
- setSharesLine(rowIndex, sharesLine);
60
- }
61
- if (!added)
62
- return toggleEdit();
63
- })
64
- .catch((errorInfo) => {
65
- // console.log(errorInfo, "errorInfo");
66
- });
67
- }
68
- function onKeyDown(e) {
69
- /** Esc to quit editing */
70
- if (e.keyCode === 27)
71
- return setEditing(false);
72
- if (e.keyCode !== 9 || dataIndex !== "discount")
73
- return;
74
- formContext.form
75
- .validateFields()
76
- .then(() => {
77
- onAdd();
78
- })
79
- .catch((errorInfo) => {
80
- // console.log(errorInfo, "errorInfo");
81
- });
82
- return;
83
- }
84
- function setSharesLine(index, sharesLine) {
85
- dataContext.invoiceLines[index] = {
86
- ...dataContext.invoiceLines[index],
87
- ...sharesLine,
88
- };
89
- dataContext.invoiceLines = [...dataContext.invoiceLines];
90
- }
91
- };
92
- export default DragTableCell;
93
- //# sourceMappingURL=TableDragCell.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableDragCell.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAU,MAAM,MAAM,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC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