@voplus/morpho-csp 6.0.127 → 6.0.129
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/es/data/corporate/interfaces.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js +0 -6
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js +13 -13
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCapitalCard/index.d.ts +1 -1
- package/es/modules/corporate/company/components/SharesCapitalCard/index.js +9 -6
- package/es/modules/corporate/company/components/SharesCapitalCard/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard2/index.d.ts +1 -0
- package/es/modules/corporate/company/components/SharesCard2/index.js +1 -1
- package/es/modules/corporate/company/components/SharesCard2/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +2 -2
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +31 -30
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +11 -10
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +15 -23
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +19 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/state.js.map +1 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +18 -12
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +5 -2
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +2 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +26 -24
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +19 -15
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +13 -14
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/state.js.map +1 -0
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +2 -2
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +29 -27
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +20 -13
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +11 -11
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/state.js.map +1 -0
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +5 -6
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +1 -8
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +0 -4
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +21 -17
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.less +7 -0
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.js +4 -4
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js +2 -2
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterPrintView/index.js +58 -16
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterPrintView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/Table.js +12 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/Table.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js +2 -5
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/TableCell.js.map +1 -1
- package/es/modules/corporate/share-class/components/NewShareClassForm/ShareClassForm.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js +7 -10
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.d.ts +3 -4
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +34 -25
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.less +26 -1
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
- package/es/{modules/corporate/company/pages → obsolete/corporate-page}/CompanyDefaultView/index.js +11 -11
- package/es/obsolete/corporate-page/CompanyDefaultView/index.js.map +1 -0
- package/es/{modules/corporate/company/pages → obsolete/corporate-page}/CompanyDefaultView/state.d.ts +1 -1
- package/es/obsolete/corporate-page/CompanyDefaultView/state.js.map +1 -0
- package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberItem/index.js +4 -4
- package/es/obsolete/corporate-page/CompanyMemberItem/index.js.map +1 -0
- package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberList/index.d.ts +1 -1
- package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberList/index.js +5 -5
- package/es/obsolete/corporate-page/CompanyMemberList/index.js.map +1 -0
- package/es/obsolete/corporate-page/CompanyMemberListCard/index.js.map +1 -0
- package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerItem/index.js +2 -2
- package/es/obsolete/corporate-page/ControllerItem/index.js.map +1 -0
- package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerList/index.js +12 -12
- package/es/obsolete/corporate-page/ControllerList/index.js.map +1 -0
- package/es/{modules/corporate/pages → obsolete/corporate-page}/CorporateDefaultView/index.js +2 -2
- package/es/obsolete/corporate-page/CorporateDefaultView/index.js.map +1 -0
- package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerItem/index.js +3 -3
- package/es/obsolete/corporate-page/OfficerItem/index.js.map +1 -0
- package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerList/index.d.ts +1 -1
- package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerList/index.js +6 -6
- package/es/obsolete/corporate-page/OfficerList/index.js.map +1 -0
- package/es/obsolete/corporate-page/OfficerListCard/index.js.map +1 -0
- package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassItem/index.js +7 -7
- package/es/obsolete/corporate-page/ShareClassItem/index.js.map +1 -0
- package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassList/index.js +4 -4
- package/es/obsolete/corporate-page/ShareClassList/index.js.map +1 -0
- package/package.json +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js.map +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/state.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListCard/index.js.map +0 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +0 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/state.js.map +0 -1
- package/es/modules/corporate/pages/CorporateDefaultView/index.js.map +0 -1
- package/es/modules/corporate/share-class/components/ShareClassItem/index.js.map +0 -1
- package/es/modules/corporate/share-class/components/ShareClassList/index.js.map +0 -1
- /package/es/modules/corporate/company/controller-register/components/{ControllerList → ControllerTableList}/state.d.ts +0 -0
- /package/es/modules/corporate/company/controller-register/components/{ControllerList → ControllerTableList}/state.js +0 -0
- /package/es/modules/corporate/company/member-register/components/{CompanyMemberList → MemberTableListCard}/state.d.ts +0 -0
- /package/es/modules/corporate/company/member-register/components/{CompanyMemberList → MemberTableListCard}/state.js +0 -0
- /package/es/modules/corporate/company/officer-register/components/{OfficerList → OfficerTableListCard}/state.d.ts +0 -0
- /package/es/modules/corporate/company/officer-register/components/{OfficerList → OfficerTableListCard}/state.js +0 -0
- /package/es/{modules/corporate/company/pages → obsolete/corporate-page}/CompanyDefaultView/index.d.ts +0 -0
- /package/es/{modules/corporate/company/pages → obsolete/corporate-page}/CompanyDefaultView/index.less +0 -0
- /package/es/{modules/corporate/company/pages → obsolete/corporate-page}/CompanyDefaultView/state.js +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberItem/index.d.ts +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberItem/index.less +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberList/index.less +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberListCard/index.d.ts +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberListCard/index.js +0 -0
- /package/es/{modules/corporate/company/member-register/components → obsolete/corporate-page}/CompanyMemberListCard/index.less +0 -0
- /package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerItem/index.d.ts +0 -0
- /package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerItem/index.less +0 -0
- /package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerList/index.d.ts +0 -0
- /package/es/{modules/corporate/company/controller-register/components → obsolete/corporate-page}/ControllerList/index.less +0 -0
- /package/es/{modules/corporate/pages → obsolete/corporate-page}/CorporateDefaultView/index.d.ts +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerItem/index.d.ts +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerItem/index.less +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerList/index.less +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerListCard/index.d.ts +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerListCard/index.js +0 -0
- /package/es/{modules/corporate/company/officer-register/components → obsolete/corporate-page}/OfficerListCard/index.less +0 -0
- /package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassItem/index.d.ts +0 -0
- /package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassItem/index.less +0 -0
- /package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassList/index.d.ts +0 -0
- /package/es/{modules/corporate/share-class/components → obsolete/corporate-page}/ShareClassList/index.less +0 -0
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
import { OfficerListProps } from "../OfficerList";
|
|
3
2
|
import { ListHeaderToolProps } from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
4
3
|
import "./index.less";
|
|
4
|
+
export type OfficerListProps = {
|
|
5
|
+
officersRegisterId?: string;
|
|
6
|
+
corporateId?: string;
|
|
7
|
+
/** 是否显示 send notice */
|
|
8
|
+
sendForm?: boolean;
|
|
9
|
+
isFilterPresent?: boolean;
|
|
10
|
+
tableCardProps?: {
|
|
11
|
+
className?: string;
|
|
12
|
+
isHeader?: boolean;
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
/** 头部的btn显示默认样式 还是 card 的样式; 是否是card */
|
|
16
|
+
type?: "card";
|
|
17
|
+
/** 是否显示详细的table内容 */
|
|
18
|
+
tableDetail?: boolean;
|
|
19
|
+
listHeaderToolProps?: ListHeaderToolProps;
|
|
20
|
+
onRedirect?: () => void;
|
|
21
|
+
onSelectCorporateUnit?: (params?: any) => void;
|
|
22
|
+
};
|
|
5
23
|
declare const OfficerTableListCard: {
|
|
6
|
-
(props: OfficerListProps
|
|
7
|
-
tableCardProps?: {
|
|
8
|
-
className?: string;
|
|
9
|
-
isHeader?: boolean;
|
|
10
|
-
title?: ReactNode;
|
|
11
|
-
};
|
|
12
|
-
/** 头部的btn显示默认样式 还是 card 的样式; 是否是card */
|
|
13
|
-
type?: "card";
|
|
14
|
-
/** 是否显示详细的table内容 */
|
|
15
|
-
tableDetail?: boolean;
|
|
16
|
-
listHeaderToolProps?: ListHeaderToolProps;
|
|
17
|
-
}): React.JSX.Element;
|
|
24
|
+
(props: OfficerListProps): React.JSX.Element;
|
|
18
25
|
defaultProps: {};
|
|
19
26
|
};
|
|
20
27
|
export default OfficerTableListCard;
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import React, { useState, useRef, useEffect } from "react";
|
|
2
|
+
import TableCellDetail, { columnsListDetail } from "./TableCellDetail";
|
|
3
|
+
import TableCell, { columnsList } from "./TableCell";
|
|
4
|
+
import { Badge, Button, Menu } from "antd";
|
|
5
|
+
import { State } from "./state";
|
|
6
|
+
import { useCorporate } from "../../../../../../data/corporate";
|
|
7
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
8
|
+
import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
|
|
1
9
|
import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
|
|
10
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
11
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
12
|
+
import { faPrint } from "@fortawesome/pro-solid-svg-icons";
|
|
2
13
|
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
3
14
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
4
15
|
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
5
16
|
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
6
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
7
17
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
8
18
|
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
9
|
-
import { Badge, Button, Menu } from "antd";
|
|
10
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
|
-
import { faPrint } from "@fortawesome/pro-solid-svg-icons";
|
|
12
|
-
import React, { useState, useRef, useEffect } from "react";
|
|
13
19
|
import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
|
|
14
20
|
import SelectOfficerForm from "../SelectOfficerForm";
|
|
15
|
-
import { useCorporate } from "../../../../../../data/corporate";
|
|
16
|
-
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
17
|
-
import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
|
|
18
|
-
import TableCell, { columnsList } from "./TableCell";
|
|
19
21
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
20
|
-
import TableCellDetail, { columnsListDetail } from "./TableCellDetail";
|
|
21
|
-
import { State } from "../OfficerList/state";
|
|
22
22
|
import classnames from "classnames";
|
|
23
23
|
import "./index.less";
|
|
24
24
|
const OfficerTableListCard = (props) => {
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,cAEN,MAAM,wEAAwE,CAAC;AAChF,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAgB,WAAW,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAC1E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,UAAU,MAAM,2BAA2B,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MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;gBACrC,IAAI,EAAE,EAAE,UAAU,EAAE,kBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBACvF,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,EAAE,CAAC;AAEvC,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/state.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9D,MAAM,OAAO,KAAK;IASjB;QARA,kCAAkC;QACf;;;;mBAAW,UAAU;WAAC;QACzC,4BAA4B;QACT;;;;mBAAU,KAAK;WAAC;QAChB;;;;mBAAU,KAAK;WAAC;QAEhB;;;;mBAAiB,EAAE;WAAC;QAQhC;;;;mBAAW,CAAC,QAAa,EAAE,EAAE;gBACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;gBACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,CAAC;WAAC;QARD,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAQD;AAjBmB;IAAlB,UAAU;uCAA8B;AAEtB;IAAlB,UAAU;sCAAwB;AAChB;IAAlB,UAAU;sCAAwB;AAEhB;IAAlB,UAAU;6CAA4B;AAQhC;IAFN,MAAM;IACP,yBAAyB;uCAIvB"}
|
|
@@ -15,7 +15,7 @@ const OfficerDefaultView = () => {
|
|
|
15
15
|
});
|
|
16
16
|
return observe(() => (React.createElement(MainContent, { className: "officer-default-view" },
|
|
17
17
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
18
|
-
React.createElement(OfficerProperties, { id: id, headerVisible: true })),
|
|
18
|
+
React.createElement(OfficerProperties, { id: id, headerVisible: true, verificationLayout: "vertical" })),
|
|
19
19
|
React.createElement("div", { className: "officer-context" },
|
|
20
20
|
React.createElement(AsideContent, { context: asideContext },
|
|
21
21
|
React.createElement(OfficerTabs, { id: id }))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,IAAC,SAAS,EAAC,sBAAsB;QAC5C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;YAC3B,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,IAAC,SAAS,EAAC,sBAAsB;QAC5C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;YAC3B,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,QAAC,kBAAkB,EAAC,UAAU,GAAG,CACzD;QAClB,6BAAK,SAAS,EAAC,iBAAiB;YAC/B,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;gBAClC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAG,GAAI,CACV,CACV,CACO,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef, useState } from "react";
|
|
2
2
|
import { Col, Row } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
4
5
|
import ActivityLogCard from "@voplus/morpho-org/es/components/ActivityLogCard";
|
|
5
6
|
import CompanyPageHead from "../../components/CompanyPageHead";
|
|
6
7
|
import CompanyProperties from "../../components/CompanyProperties/CompanyPropertiesCard";
|
|
@@ -10,7 +11,6 @@ import ContactPropertiesCard from "@voplus/morpho-org/es/components/ContactPrope
|
|
|
10
11
|
import OfficerTableListCard from "../../officer-register/components/OfficerTableListCard";
|
|
11
12
|
import FilingTimeLineCard from "../../../filing-record/components/FilingTimeLineCard";
|
|
12
13
|
import OrgContactListCard from "@voplus/morpho-org/es/modules/orgContact/components/OrgContactListCard";
|
|
13
|
-
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
14
14
|
import CompanyAlert from "../../components/CompanyAlert";
|
|
15
15
|
import SharesCapitalCard from "../../components/SharesCapitalCard";
|
|
16
16
|
import styles from "./index.less";
|
|
@@ -18,7 +18,6 @@ const Dashboard = (props) => {
|
|
|
18
18
|
const { corporate, membersRegisterId, officersRegisterId } = props;
|
|
19
19
|
const ref = useRef(null);
|
|
20
20
|
const unit = useUnit(props.unitId);
|
|
21
|
-
const [visible, setVisible] = useState(true);
|
|
22
21
|
const [activitiesHeight, setActivitiesHeight] = useState();
|
|
23
22
|
useLayoutEffect(() => {
|
|
24
23
|
var _a;
|
|
@@ -35,18 +34,18 @@ const Dashboard = (props) => {
|
|
|
35
34
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
36
35
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
37
36
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } }))),
|
|
38
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl:
|
|
39
|
-
React.createElement(SharesCapitalCard, {
|
|
37
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: 12 },
|
|
38
|
+
React.createElement(SharesCapitalCard, { corporateId: corporate.id, unitId: props.unitId }),
|
|
40
39
|
officersRegisterId && (React.createElement(OfficerTableListCard, { type: "card", isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
41
40
|
membersRegisterId && (React.createElement(MemberTableListCard, { type: "card", active: true, membersRegisterId: membersRegisterId, corporateId: corporate.id }))),
|
|
42
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl:
|
|
41
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: 6 },
|
|
43
42
|
((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id })),
|
|
44
43
|
React.createElement(ActivityLogCard, { id: corporate.id })),
|
|
45
44
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 0 },
|
|
46
45
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
47
46
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
48
47
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } })),
|
|
49
|
-
React.createElement(SharesCapitalCard, {
|
|
48
|
+
React.createElement(SharesCapitalCard, { corporateId: corporate.id, unitId: props.unitId }),
|
|
50
49
|
officersRegisterId && (React.createElement(OfficerTableListCard, { type: "card", isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
51
50
|
membersRegisterId && (React.createElement(MemberTableListCard, { type: "card", active: true, membersRegisterId: membersRegisterId, corporateId: corporate.id })),
|
|
52
51
|
((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,mBAAmB,MAA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AS,CAAC,EAAE,GAAI,CAChC,CACD,CACD,CACW,CACb,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
3
3
|
import { State } from "./state";
|
|
4
|
+
import { Skeleton } from "antd";
|
|
4
5
|
import { observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
5
6
|
import { useCorporate } from "../../../../../data/corporate";
|
|
6
7
|
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
7
8
|
import { CurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
|
8
9
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
9
10
|
import Dashboard from "./Dashboard";
|
|
10
|
-
import { Skeleton } from "antd";
|
|
11
11
|
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
|
12
12
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
13
13
|
import ShareClassListPage from "../../../share-class/pages/ShareClassListPage";
|
|
@@ -23,7 +23,6 @@ import CompanySetting from "./CompanySetting";
|
|
|
23
23
|
import "./index.less";
|
|
24
24
|
const CompanyPage = (props) => {
|
|
25
25
|
const [state] = useState(new State());
|
|
26
|
-
const [loaded, setLoaded] = useState(true);
|
|
27
26
|
const corporate = useCorporate(props.id, {
|
|
28
27
|
reload: true,
|
|
29
28
|
includes: "registers,filing-years,center,permissions,totals,notification-layout",
|
|
@@ -65,12 +64,6 @@ const CompanyPage = (props) => {
|
|
|
65
64
|
React.createElement(Route, { path: "settings", element: React.createElement(CompanySetting, { id: props.id, liabilityType: corporate.liabilityType }) }),
|
|
66
65
|
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) })))))));
|
|
67
66
|
});
|
|
68
|
-
function onReload() {
|
|
69
|
-
setLoaded(false);
|
|
70
|
-
setTimeout(() => {
|
|
71
|
-
setLoaded(true);
|
|
72
|
-
}, 100);
|
|
73
|
-
}
|
|
74
67
|
};
|
|
75
68
|
export default CompanyPage;
|
|
76
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAC3G,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;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,EAAE,eAAe,SAAS,CAAC,IAAI,EAAE,IAAI,WAAW,GACvD,GAEF;4BACF,oBAAC,KAAK,IACL,IAAI,EAAC,iBAAiB,EACtB,OAAO,EAAE,oBAAC,kBAAkB,IAAC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAI,GACzD;4BACF,oBAAC,KAAK,IACL,IAAI,EAAC,cAAc,EACnB,OAAO,EACN,oBAAC,gBAAgB,IAChB,QAAQ,EAAE,SAAS,CAAC,EAAE,EACtB,SAAS,EAAE,SAAS,CAAC,IAAI,EACzB,eAAe,EAAE,SAAS,CAAC,kBAAkB,EAC7C,WAAW,EAAE;wCACZ,KAAK,EAAE,yBAAyB;wCAChC,WAAW,EACV,wEAAwE;qCACzE,GACA,GAEF;4BACF,oBAAC,KAAK,IAAC,IAAI,EAAC,YAAY,EAAC,OAAO,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,SAAG,GAAI;4BAC/E,oBAAC,KAAK,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,SAAS,CAAC,aAAa,GAAI,GAChF;4BACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACJ,CACqB,CACjC,CAAA;KAAA,CAAC,CAAC;AAEJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -28,7 +28,7 @@ const Dashboard = (props) => {
|
|
|
28
28
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
29
29
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId })),
|
|
30
30
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: ((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) ? 12 : 18 },
|
|
31
|
-
React.createElement(SharesCapitalCard, {
|
|
31
|
+
React.createElement(SharesCapitalCard, { corporateId: corporate.id, unitId: props.unitId }),
|
|
32
32
|
officersRegisterId && (React.createElement(OfficerTableListCard, { type: "card", isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
33
33
|
membersRegisterId && (React.createElement(MemberTableListCard, { type: "card", membersRegisterId: membersRegisterId, corporateId: corporate.id }))),
|
|
34
34
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: ((_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id) ? 6 : 0 }, ((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement("div", { style: { height: `${activitiesHeight - 120}px` }, className: "filing-time-line-height" },
|
|
@@ -36,7 +36,7 @@ const Dashboard = (props) => {
|
|
|
36
36
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 0 },
|
|
37
37
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
38
38
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
39
|
-
React.createElement(SharesCapitalCard, {
|
|
39
|
+
React.createElement(SharesCapitalCard, { corporateId: corporate.id, unitId: props.unitId }),
|
|
40
40
|
officersRegisterId && (React.createElement(OfficerTableListCard, { type: "card", isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
41
41
|
membersRegisterId && (React.createElement(MemberTableListCard, { type: "card", membersRegisterId: membersRegisterId, corporateId: corporate.id })),
|
|
42
42
|
((_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_e = corporate.latestFilingYear) === null || _e === void 0 ? void 0 : _e.id })))))));
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Input, Menu } from "antd";
|
|
1
|
+
import { Input, Menu, Button } from "antd";
|
|
2
2
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
3
3
|
import React, { useState } from "react";
|
|
4
4
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
5
5
|
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
6
6
|
import { useShareTransactionListEffect, useShareTransactionStore, } from "../../../../../../data/share-transaction";
|
|
7
|
+
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
7
8
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
8
9
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
9
|
-
import { faFileInvoiceDollar } from "@fortawesome/pro-solid-svg-icons";
|
|
10
|
+
import { faFileInvoiceDollar, faPrint } from "@fortawesome/pro-solid-svg-icons";
|
|
10
11
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
11
12
|
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
12
13
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
@@ -18,7 +19,7 @@ import "./index.less";
|
|
|
18
19
|
import Item from "./Item";
|
|
19
20
|
import { useDeepMemo } from "@voplus/morpho-data";
|
|
20
21
|
const ShareTransactionTableList = (props) => {
|
|
21
|
-
const { shareTransactionId, pageHeader } = props;
|
|
22
|
+
const { shareTransactionId, corporateId, pageHeader } = props;
|
|
22
23
|
const [shareTransactionTotal, setShareTransactionTotal] = useState(0);
|
|
23
24
|
const [asideContext] = useState(AsideContent.createContext());
|
|
24
25
|
const shareStore = useShareTransactionStore();
|
|
@@ -43,21 +44,24 @@ const ShareTransactionTableList = (props) => {
|
|
|
43
44
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
44
45
|
React.createElement("div", { className: "registers-share-transaction-list" },
|
|
45
46
|
pageHeader && (React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileInvoiceDollar }), title: "Share Transaction", description: "Manage your share classes with ease" })),
|
|
46
|
-
React.createElement(ListHeaderTool, { visible: true, sortable: false, searchOptions: { placeholder: "Search in transaction" }, filterViewProps: {
|
|
47
|
+
React.createElement(ListHeaderTool, { visible: true, addAble: false, sortable: false, searchOptions: { placeholder: "Search in transaction" }, filterViewProps: {
|
|
47
48
|
columns: [React.createElement(TransactionTypeFilter, { key: "TransactionTypeFilter" })],
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
49
|
+
}, rightExtra: () => (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement(Button, { className: "print-btn", onClick: () => {
|
|
51
|
+
const url = window.location.origin + `/share-transactions/print/${corporateId}`;
|
|
52
|
+
window.open(url, "_blank");
|
|
53
|
+
} },
|
|
54
|
+
React.createElement(FAIcon, { icon: faPrint })),
|
|
55
|
+
React.createElement(AddDropDown2, { btnType: "text", trigger: ["click"], overlay: React.createElement(Menu, { onClick: state.onSelect, items: [
|
|
56
|
+
{ key: "Allotment", label: "Allotment" },
|
|
57
|
+
{ key: "Transfer", label: "Transfer" },
|
|
58
|
+
{ key: "Cancel", label: "Cancel" },
|
|
59
|
+
{ key: "Convert", label: "Convert" },
|
|
60
|
+
{ key: "Consolidate", label: "Consolidate" },
|
|
61
|
+
{ key: "Divide", label: "Divide" },
|
|
62
|
+
{ key: "Import", label: "Import" },
|
|
63
|
+
{ key: "Others", label: "Others" },
|
|
64
|
+
] }) }))) }),
|
|
61
65
|
React.createElement(ListView, { className: "list-content", asideable: false, headerProps: {
|
|
62
66
|
visible: false,
|
|
63
67
|
}, renderItem: ({ item }) => React.createElement(Item, { id: item.id }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,6BAA6B,EAC7B,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AACtB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAU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H,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;QACpB,MAAM,UAAU,CAAC,MAAM,CAAC;YACvB,IAAI,EAAE;gBACL,QAAQ,EAAE,kBAAkB;gBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,eAAe,EAAE,KAAK,CAAC,IAAI;gBAC3B,QAAQ,EAAE,KAAK;aACf;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
background: #f5f9fc;
|
|
7
7
|
.list-view-header-tool {
|
|
8
8
|
padding: 18px 20px 24px;
|
|
9
|
+
.print-btn {
|
|
10
|
+
height: 30px;
|
|
11
|
+
line-height: 20px;
|
|
12
|
+
color: #217eb2;
|
|
13
|
+
border-color: #217eb2;
|
|
14
|
+
margin-left: 15px;
|
|
15
|
+
}
|
|
9
16
|
}
|
|
10
17
|
.search-header-tool {
|
|
11
18
|
.ant-input-outlined {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
4
|
import { State } from "./state";
|
|
3
5
|
import classnames from "classnames";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import { useFilterOptionsContext } from "@voplus/morpho-ui/es/data";
|
|
6
6
|
const menuList = [
|
|
7
7
|
"Allotment",
|
|
8
8
|
"Transfer",
|
|
@@ -15,9 +15,9 @@ const menuList = [
|
|
|
15
15
|
];
|
|
16
16
|
const TransactionTypeFilter = () => {
|
|
17
17
|
const context = useFilterOptionsContext();
|
|
18
|
-
const state = context
|
|
18
|
+
const state = context.getFilterState("Status", () => new State());
|
|
19
19
|
return observe(() => (React.createElement("div", { className: "transaction-type-filter" },
|
|
20
|
-
React.createElement("div", { className: "menu-item-title" }, "
|
|
20
|
+
React.createElement("div", { className: "menu-item-title" }, "Transaction Type"),
|
|
21
21
|
menuList.map((type) => (React.createElement("div", { key: type, className: classnames("filter-menu-item", {
|
|
22
22
|
bold: state === null || state === void 0 ? void 0 : state.status.has(type),
|
|
23
23
|
}), onClick: () => state === null || state === void 0 ? void 0 : state.onChangeStatus(type) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,QAAQ,GAAG;IAChB,WAAW;IACX,UAAU;IACV,QAAQ;IACR,SAAS;IACT,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,QAAQ;CACR,CAAC;AAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAElE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,yBAAyB;QACvC,6BAAK,SAAS,EAAC,iBAAiB,uBAAuB;QACtD,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,CAC/B,6BACC,GAAG,EAAE,IAAI,EACT,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACzC,IAAI,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC;aAC7B,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,cAAc,CAAC,IAAI,CAAC;YAE1C,6BAAK,SAAS,EAAC,aAAa,IAAE,IAAI,CAAO,CACpC,CACN,CAAC,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { action,
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
3
|
import { DefaultFilterState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
export class State extends DefaultFilterState {
|
|
5
5
|
constructor() {
|
|
@@ -11,7 +11,7 @@ export class State extends DefaultFilterState {
|
|
|
11
11
|
writable: true,
|
|
12
12
|
value: new Map()
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
makeObservable(this);
|
|
15
15
|
}
|
|
16
16
|
/** update status */
|
|
17
17
|
onChangeStatus(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,OAAO,KAAM,SAAQ,kBAAkB;IAI5C;QACC,KAAK,EAAE,CAAC;QAJT,uBAAuB;QACJ;;;;mBAA+B,IAAI,GAAG,EAAE;WAAC;QAI3D,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,oBAAoB;IAEb,cAAc,CAAC,KAAa;QAClC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAED,IAAW,OAAO;QACjB,yCAAyC;QACzC,OAAO;YACN;gBACC,CAAC,EAAE,iBAAiB;gBACpB,CAAC,EAAE,UAAU;gBACb,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;gBAClD,CAAC,EAAE,KAAK;aACQ;SACjB,CAAC;IACH,CAAC;IACM,KAAK;QACX,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACrB,CAAC;CACD;AA3BmB;IAAlB,UAAU;qCAAiD;AASrD;IADN,MAAM;2CAGN"}
|
|
@@ -2,10 +2,11 @@ import { useLayout } from "@voplus/morpho-data";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useCorporate } from "../../../../../../data/corporate";
|
|
4
4
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
5
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
5
6
|
import { Table, Skeleton } from "antd";
|
|
6
7
|
import dayjs from "dayjs";
|
|
7
|
-
import { toJS } from "mobx";
|
|
8
8
|
import React from "react";
|
|
9
|
+
import { cloneDeep } from "lodash-es";
|
|
9
10
|
import { useParams } from "react-router-dom";
|
|
10
11
|
import "../../../officer-register/page/OfficeRegisterPrintView/index.less";
|
|
11
12
|
const ShareTransactionRegisterPrintView = () => {
|
|
@@ -14,24 +15,26 @@ const ShareTransactionRegisterPrintView = () => {
|
|
|
14
15
|
const corporateId = params.corporateId;
|
|
15
16
|
layout.menu.visible = false;
|
|
16
17
|
layout.tabNav.visible = false;
|
|
17
|
-
const corporate = useCorporate(corporateId, { includes: "register-of-
|
|
18
|
+
const corporate = useCorporate(corporateId, { includes: "register-of-transactions-report" });
|
|
18
19
|
const columns = [
|
|
19
20
|
{
|
|
20
21
|
title: "Transaction Date",
|
|
21
22
|
dataIndex: "date",
|
|
22
23
|
key: "date",
|
|
23
24
|
render: (_, { date }) => React.createElement(UTCShortDate, { value: date, format: "DD MMM YYYY" }),
|
|
25
|
+
onCell: (row) => ({ rowSpan: row.rowSpan || 0 }),
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
title: "Transaction Type",
|
|
27
29
|
key: "transactionType",
|
|
28
30
|
dataIndex: "transactionType",
|
|
31
|
+
onCell: (row) => ({ rowSpan: row.rowSpan || 0 }),
|
|
29
32
|
},
|
|
30
33
|
{
|
|
31
34
|
title: "Shareholder",
|
|
32
35
|
key: "shareholder",
|
|
33
36
|
dataIndex: "shareholder",
|
|
34
|
-
|
|
37
|
+
render: (_, { shareholder }) => (React.createElement(UnitNameNoteAlert, { id: shareholder.id, name: shareholder.name })),
|
|
35
38
|
},
|
|
36
39
|
{
|
|
37
40
|
title: "Shares",
|
|
@@ -49,19 +52,58 @@ const ShareTransactionRegisterPrintView = () => {
|
|
|
49
52
|
dataIndex: "consideration",
|
|
50
53
|
},
|
|
51
54
|
];
|
|
52
|
-
return observe(() =>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
return observe(() => {
|
|
56
|
+
const data = cloneDeep(corporate.registerOfTransactionsReport);
|
|
57
|
+
const list = [];
|
|
58
|
+
data === null || data === void 0 ? void 0 : data.map((item, i) => {
|
|
59
|
+
item.lines.map((l, j) => {
|
|
60
|
+
list.push({
|
|
61
|
+
id: item.id,
|
|
62
|
+
date: item.date,
|
|
63
|
+
transactionType: item.transactionType,
|
|
64
|
+
shareholder: l.shareholder,
|
|
65
|
+
shares: l.shares,
|
|
66
|
+
currency: l.currency,
|
|
67
|
+
consideration: l.consideration,
|
|
68
|
+
index: `${i}-${j}`,
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return (React.createElement("div", { className: "officer-register-print-page" },
|
|
73
|
+
React.createElement(Skeleton, { active: true, loading: !corporate.loaded },
|
|
74
|
+
React.createElement("header", { className: "print-view-header" },
|
|
75
|
+
React.createElement("div", { className: "print-info print-item-name" },
|
|
76
|
+
React.createElement("div", { className: "print-tilte" }, "Register of ShareTransactions"),
|
|
77
|
+
React.createElement("div", null, corporate.name),
|
|
78
|
+
React.createElement("div", null,
|
|
79
|
+
"UEN: ",
|
|
80
|
+
corporate.registrationNumber)),
|
|
81
|
+
React.createElement("div", { className: "print-info print-date" },
|
|
82
|
+
"Print Date: ",
|
|
83
|
+
dayjs(new Date()).format("DD MMM YYYY"))),
|
|
84
|
+
React.createElement(Table, { rowKey: "index", columns: columns, dataSource: handleData(list, "id"), pagination: false }))));
|
|
85
|
+
});
|
|
86
|
+
// 处理数据rowSpan函数
|
|
87
|
+
function handleData(array, key) {
|
|
88
|
+
if (array.length === 0)
|
|
89
|
+
return;
|
|
90
|
+
let arr = [...array];
|
|
91
|
+
// 1、startItem(默认rowSpan = 1)记录开始计数的对象
|
|
92
|
+
let startItem = arr[0];
|
|
93
|
+
startItem.rowSpan = 1;
|
|
94
|
+
// 2、遍历数组,取下一项进行比较,当name相同则startItem的rowSpan+1, 否则设置新的startItem为下一项
|
|
95
|
+
arr.forEach((item, index) => {
|
|
96
|
+
let nextItem = arr[index + 1] || {};
|
|
97
|
+
if (item[key] === nextItem[key]) {
|
|
98
|
+
startItem.rowSpan++;
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
startItem = nextItem;
|
|
102
|
+
startItem.rowSpan = 1;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
return arr;
|
|
106
|
+
}
|
|
65
107
|
};
|
|
66
108
|
export default ShareTransactionRegisterPrintView;
|
|
67
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SA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