@voplus/morpho-csp 1.2.184 → 1.3.0
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/components/LegalContactSelect/index.d.ts +1 -1
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/components/RegisteresMenuItem/index.js.map +1 -1
- package/es/components/VerificationInformation/state.js +1 -0
- package/es/components/VerificationInformation/state.js.map +1 -1
- package/es/data/CLDA/hooks.d.ts +3 -3
- package/es/data/account/hooks.d.ts +2 -2
- package/es/data/agm-clda/metas.js.map +1 -1
- package/es/data/cart/hooks.d.ts +1 -1
- package/es/data/clda-form/hooks.d.ts +2 -2
- package/es/data/clda-form/interfaces.d.ts +9 -1
- package/es/data/clda-form/metas.js.map +1 -1
- package/es/data/clda-form/types.d.ts +9 -1
- package/es/data/clda-meta/hook.d.ts +1 -1
- package/es/data/clda-setting/hook.d.ts +1 -1
- package/es/data/controller/hooks.d.ts +2 -2
- package/es/data/corporate/hooks.d.ts +2 -2
- package/es/data/entity/hooks.d.ts +1 -1
- package/es/data/filing-folder/hooks.d.ts +2 -2
- package/es/data/filing-type/hooks.d.ts +2 -2
- package/es/data/filing-year/hooks.d.ts +2 -2
- package/es/data/identity/hooks.d.ts +2 -2
- package/es/data/incorporation-clda/hooks.d.ts +2 -2
- package/es/data/incorporation-clda/metas.js.map +1 -1
- package/es/data/member/hooks.d.ts +2 -2
- package/es/data/officer/hooks.d.ts +2 -2
- package/es/data/order/hooks.d.ts +2 -2
- package/es/data/relationship/CorporateRelationshipContext.js +1 -0
- package/es/data/relationship/CorporateRelationshipContext.js.map +1 -1
- package/es/data/relationship/hooks.d.ts +1 -1
- package/es/data/risk-match/hooks.d.ts +2 -2
- package/es/data/risk-profile/hooks.d.ts +4 -4
- package/es/data/service/hooks.d.ts +2 -2
- package/es/data/serviceType/hooks.d.ts +2 -2
- package/es/data/share-certificate/hooks.d.ts +2 -2
- package/es/data/share-certificate/metas.js.map +1 -1
- package/es/data/share-transaction/hooks.d.ts +2 -2
- package/es/data/share-transaction/metas.js.map +1 -1
- package/es/data/shareOptionsRegister/hooks.d.ts +2 -2
- package/es/data/shareOptionsRegister/metas.js.map +1 -1
- package/es/modules/account/pages/AccountDefaultView/index.js +2 -3
- package/es/modules/account/pages/AccountDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js +2 -3
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/state.js +2 -0
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/state.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +2 -3
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js +3 -4
- package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js.map +1 -1
- package/es/modules/corporate/clda/components/AddProfileDialog/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
- package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +1 -1
- package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js +2 -3
- package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/CLDAClientContext.js +1 -0
- package/es/modules/corporate/clda/pages/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js +2 -3
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js +3 -3
- package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js +11 -10
- package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js.map +1 -1
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +9 -12
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyMemberSelect/index.d.ts +1 -1
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js +2 -2
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +6 -14
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +4 -10
- package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
- package/es/modules/corporate/company/components/InlineEditAddress/index.d.ts +1 -1
- package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +1 -1
- package/es/modules/corporate/company/components/InlineEditCountry/index.js.map +1 -1
- package/es/modules/corporate/company/components/InlineEditType/index.d.ts +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.js +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerList/state.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +2 -3
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +2 -0
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.d.ts +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +2 -3
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerList/state.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +2 -3
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +17 -22
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +17 -22
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +2 -3
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +2 -3
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
- package/es/modules/corporate/components/CorporateSelect/index.d.ts +6 -15
- package/es/modules/corporate/components/CorporateSelect/index.js +23 -15
- package/es/modules/corporate/components/CorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +1 -1
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +2 -3
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/AGM/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/AGM/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.js +5 -1
- package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/BankOpening/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/BankOpening/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.js +5 -1
- package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/Footer/index.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +1 -1
- package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
- package/es/modules/corporate/legal-generation/components/SubmitButton/index.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js +2 -2
- package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.js.map +1 -1
- package/es/modules/corporate/legal-generation/fields/StrikeOffFields.js +1 -1
- package/es/modules/corporate/legal-generation/fields/StrikeOffFields.js.map +1 -1
- package/es/modules/corporate/pages/CorporateDefaultView/index.js +4 -4
- package/es/modules/corporate/pages/CorporateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/pages/CorporatePage/index.js +4 -4
- package/es/modules/corporate/pages/CorporatePage/index.js.map +1 -1
- package/es/modules/corporate/pages/UnitCorporatePage/index.js +3 -4
- package/es/modules/corporate/pages/UnitCorporatePage/index.js.map +1 -1
- package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.d.ts +0 -5
- package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.js +265 -257
- package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.js.map +1 -1
- package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js +6 -5
- package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js.map +1 -1
- package/es/modules/corporate/service-type/pages/ServiceTypeDefaultView/index.js +2 -3
- package/es/modules/corporate/service-type/pages/ServiceTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +2 -3
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +2 -3
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/IncorporaitonCart/index.js +19 -20
- package/es/modules/self-registration/clda-form/IncorporaitonCart/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/IncorporationFormRoutes.d.ts +3 -3
- package/es/modules/self-registration/clda-form/IncorporationFormRoutes.js +8 -8
- package/es/modules/self-registration/clda-form/IncorporationFormRoutes.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormConfirmationDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js +74 -5
- package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js +3 -3
- package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +3 -3
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/components/StripeForm/state.js +2 -0
- package/es/modules/self-registration/components/StripeForm/state.js.map +1 -1
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.js +5 -5
- package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/state.js +2 -0
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/state.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +3 -3
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
- package/es/modules/self-registration/shopping-cart/CartState.js +2 -0
- package/es/modules/self-registration/shopping-cart/CartState.js.map +1 -1
- package/es/obsolete/OfficerRegisterDefaultView/index.js +3 -3
- package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
- package/es/obsolete/controller-register/components/ControllerList/state.js +1 -0
- package/es/obsolete/controller-register/components/ControllerList/state.js.map +1 -1
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js +3 -3
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js.map +1 -1
- package/es/obsolete/controllerRegister/hooks.d.ts +2 -2
- package/es/obsolete/order/components/OrderListView/index.js.map +1 -1
- package/es/obsolete/order/context/OrderContext.js +1 -0
- package/es/obsolete/order/context/OrderContext.js.map +1 -1
- package/es/obsolete/order/pages/OrderDefaultView/index.js +3 -3
- package/es/obsolete/order/pages/OrderDefaultView/index.js.map +1 -1
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +3 -3
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/obsolete/shareCertificate/hooks.d.ts +1 -1
- package/es/routes.d.ts +30 -38
- package/es/routes.js +94 -94
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,258 +1,266 @@
|
|
|
1
|
-
import { Graph } from "@antv/x6";
|
|
2
|
-
import React, { useLayoutEffect, useState } from "react";
|
|
3
|
-
import { State } from "./state";
|
|
4
|
-
import dagre from "dagre";
|
|
5
|
-
import { debounce } from "lodash-es";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import { useCorporateRelationshipContext } from "../../../../../data/relationship/CorporateRelationshipContext";
|
|
8
|
-
import { useRelationshipStore } from "../../../../../data/relationship";
|
|
9
|
-
const CorporateRelationshipChart = (props) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
1
|
+
// import { Cell, Graph } from "@antv/x6";
|
|
2
|
+
// import React, { useLayoutEffect, useState } from "react";
|
|
3
|
+
// import { State } from "./state";
|
|
4
|
+
// import dagre from "dagre";
|
|
5
|
+
// import { debounce } from "lodash-es";
|
|
6
|
+
// import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
// import { useCorporateRelationshipContext } from "../../../../../data/relationship/CorporateRelationshipContext";
|
|
8
|
+
// import { useRelationshipStore } from "../../../../../data/relationship";
|
|
9
|
+
// const CorporateRelationshipChart = (props: { onClick?: (id: string) => void }) => {
|
|
10
|
+
// const store = useRelationshipStore();
|
|
11
|
+
// const context = useCorporateRelationshipContext();
|
|
12
|
+
// const [state] = useState(new State());
|
|
13
|
+
// // 自定义节点
|
|
14
|
+
// Graph.registerNode(
|
|
15
|
+
// "org-node",
|
|
16
|
+
// {
|
|
17
|
+
// id: "id",
|
|
18
|
+
// data: "data",
|
|
19
|
+
// width: 120,
|
|
20
|
+
// height: 64,
|
|
21
|
+
// markup: [
|
|
22
|
+
// {
|
|
23
|
+
// tagName: "rect",
|
|
24
|
+
// attrs: {
|
|
25
|
+
// class: "body",
|
|
26
|
+
// cursor: state.cursor,
|
|
27
|
+
// // event: "node:click",
|
|
28
|
+
// },
|
|
29
|
+
// },
|
|
30
|
+
// {
|
|
31
|
+
// tagName: "image",
|
|
32
|
+
// attrs: {
|
|
33
|
+
// class: "image",
|
|
34
|
+
// cursor: state.cursor,
|
|
35
|
+
// // event: "node:click",
|
|
36
|
+
// },
|
|
37
|
+
// },
|
|
38
|
+
// {
|
|
39
|
+
// tagName: "text",
|
|
40
|
+
// attrs: {
|
|
41
|
+
// class: "name",
|
|
42
|
+
// cursor: state.cursor,
|
|
43
|
+
// // event: "node:click",
|
|
44
|
+
// },
|
|
45
|
+
// },
|
|
46
|
+
// ],
|
|
47
|
+
// attrs: {
|
|
48
|
+
// ".body": {
|
|
49
|
+
// refWidth: "100%",
|
|
50
|
+
// refHeight: "100%",
|
|
51
|
+
// fill: "#ffffff",
|
|
52
|
+
// },
|
|
53
|
+
// ".name": {
|
|
54
|
+
// refX: "50%",
|
|
55
|
+
// textAnchor: "middle",
|
|
56
|
+
// fontSize: 14,
|
|
57
|
+
// textWrap: {
|
|
58
|
+
// ellipsis: true,
|
|
59
|
+
// width: -10,
|
|
60
|
+
// },
|
|
61
|
+
// },
|
|
62
|
+
// },
|
|
63
|
+
// },
|
|
64
|
+
// true
|
|
65
|
+
// );
|
|
66
|
+
// // 自定义边
|
|
67
|
+
// Graph.registerEdge(
|
|
68
|
+
// "org-edge",
|
|
69
|
+
// {
|
|
70
|
+
// // router: {
|
|
71
|
+
// // name: "orth",
|
|
72
|
+
// // },
|
|
73
|
+
// attrs: {
|
|
74
|
+
// line: {
|
|
75
|
+
// stroke: "#000",
|
|
76
|
+
// strokeWidth: 1,
|
|
77
|
+
// },
|
|
78
|
+
// },
|
|
79
|
+
// connector: {
|
|
80
|
+
// name: "rounded",
|
|
81
|
+
// args: { radius: 10 },
|
|
82
|
+
// },
|
|
83
|
+
// },
|
|
84
|
+
// true
|
|
85
|
+
// );
|
|
86
|
+
// // 布局方向
|
|
87
|
+
// const dir: "LR" | "RL" | "TB" | "BT" = "TB"; // LR RL TB BT
|
|
88
|
+
// const debounceClick = debounce((node: any) => click(node), 200);
|
|
89
|
+
// useLayoutEffect(() => {
|
|
90
|
+
// // 创建画布
|
|
91
|
+
// state.graph = new Graph({
|
|
92
|
+
// container: document.getElementById("container") as HTMLElement,
|
|
93
|
+
// // interacting: false,
|
|
94
|
+
// autoResize: true,
|
|
95
|
+
// async: true,
|
|
96
|
+
// frozen: true,
|
|
97
|
+
// scroller: {
|
|
98
|
+
// enabled: true,
|
|
99
|
+
// pannable: true,
|
|
100
|
+
// modifiers: "ctrl",
|
|
101
|
+
// autoResize: true,
|
|
102
|
+
// pageVisible: false,
|
|
103
|
+
// pageBreak: false,
|
|
104
|
+
// },
|
|
105
|
+
// // panning: {
|
|
106
|
+
// // enabled: true,
|
|
107
|
+
// // modifiers: "ctrl",
|
|
108
|
+
// // },
|
|
109
|
+
// });
|
|
110
|
+
// /** 点击 */
|
|
111
|
+
// state.graph.on("node:click", ({ e, node, view }: any) => {
|
|
112
|
+
// e.stopPropagation();
|
|
113
|
+
// state.count += 1;
|
|
114
|
+
// debounceClick(node);
|
|
115
|
+
// });
|
|
116
|
+
// /** 鼠标按下 */
|
|
117
|
+
// // state.graph.on("cell:mousedown", ({ cell }: { cell: Cell }) => (state.cursor = "move"));
|
|
118
|
+
// /** 鼠标抬起 */
|
|
119
|
+
// // state.graph.on("node:mousemove", () => state.cursor = "po");
|
|
120
|
+
// const root = createNode(context.root.id, context.root.name, context.root, context.root.type);
|
|
121
|
+
// const nodes = context.root.relationships?.map((r: any) =>
|
|
122
|
+
// createNode(r.target.unit.id, r.target.unit.name, r, r.target.type)
|
|
123
|
+
// );
|
|
124
|
+
// const edges = context.root.relationships?.map((r: any, index: number) =>
|
|
125
|
+
// createEdge(root, nodes[index])
|
|
126
|
+
// );
|
|
127
|
+
// state.graph.resetCells([root, ...(nodes || []), ...(edges || [])]);
|
|
128
|
+
// layout();
|
|
129
|
+
// }, [context.root]);
|
|
130
|
+
// return observe(() => <div id="container" style={{ width: context.width, height: "100%" }}></div>);
|
|
131
|
+
// async function click(node: any) {
|
|
132
|
+
// console.log(node.id, context.root.id, "node.id !=== context.root.id");
|
|
133
|
+
// if (state.count === 2 && node.id !== context.root.id) {
|
|
134
|
+
// const res = await store.load(node.id, { reload: true });
|
|
135
|
+
// res.map((r: any) => {
|
|
136
|
+
// const member = createNode(r.target.unit.id, r.target.unit.name, r, r.target.type);
|
|
137
|
+
// state.graph.freeze();
|
|
138
|
+
// state.graph.addCell([member, createEdge(node, member)]);
|
|
139
|
+
// layout();
|
|
140
|
+
// });
|
|
141
|
+
// }
|
|
142
|
+
// if (state.count === 1) props.onClick?.(node.id);
|
|
143
|
+
// state.count = 0;
|
|
144
|
+
// }
|
|
145
|
+
// // }
|
|
146
|
+
// // 自动布局
|
|
147
|
+
// function layout() {
|
|
148
|
+
// const nodes = state.graph.getNodes();
|
|
149
|
+
// const edges = state.graph.getEdges();
|
|
150
|
+
// const g = new dagre.graphlib.Graph();
|
|
151
|
+
// g.setGraph({ rankdir: dir, nodesep: 16, ranksep: 16 });
|
|
152
|
+
// g.setDefaultEdgeLabel(() => ({}));
|
|
153
|
+
// const width = 280;
|
|
154
|
+
// const height = 140;
|
|
155
|
+
// nodes.forEach((node: any) => {
|
|
156
|
+
// g.setNode(node.id, { width, height });
|
|
157
|
+
// });
|
|
158
|
+
// edges.forEach((edge: any) => {
|
|
159
|
+
// const source = edge.getSource();
|
|
160
|
+
// const target = edge.getTarget();
|
|
161
|
+
// g.setEdge(source.cell, target.cell);
|
|
162
|
+
// });
|
|
163
|
+
// dagre.layout(g);
|
|
164
|
+
// state.graph.freeze();
|
|
165
|
+
// g.nodes().forEach((id) => {
|
|
166
|
+
// const node = state.graph.getCellById(id);
|
|
167
|
+
// if (node) {
|
|
168
|
+
// const pos = g.node(id);
|
|
169
|
+
// node.setProp({ x: pos.x, y: pos.y, });
|
|
170
|
+
// }
|
|
171
|
+
// });
|
|
172
|
+
// edges.forEach((edge: any) => {
|
|
173
|
+
// const source = edge.getSourceNode()!;
|
|
174
|
+
// const target = edge.getTargetNode()!;
|
|
175
|
+
// const sourceBBox = source.getBBox();
|
|
176
|
+
// const targetBBox = target.getBBox();
|
|
177
|
+
// if ((dir === "LR" || dir === "RL") && sourceBBox.y !== targetBBox.y) {
|
|
178
|
+
// const gap =
|
|
179
|
+
// dir === "LR"
|
|
180
|
+
// ? targetBBox.x - sourceBBox.x - sourceBBox.width
|
|
181
|
+
// : -sourceBBox.x + targetBBox.x + targetBBox.width;
|
|
182
|
+
// const fix = dir === "LR" ? sourceBBox.width : 0;
|
|
183
|
+
// const x = sourceBBox.x + fix + gap / 2;
|
|
184
|
+
// edge.setVertices([
|
|
185
|
+
// { x, y: sourceBBox.center.y },
|
|
186
|
+
// { x, y: targetBBox.center.y },
|
|
187
|
+
// ]);
|
|
188
|
+
// } else if ((dir === "TB" || dir === "BT") && sourceBBox.x !== targetBBox.x) {
|
|
189
|
+
// const gap =
|
|
190
|
+
// dir === "TB"
|
|
191
|
+
// ? targetBBox.y - sourceBBox.y - sourceBBox.height
|
|
192
|
+
// : -sourceBBox.y + targetBBox.y + targetBBox.height;
|
|
193
|
+
// const fix = dir === "TB" ? sourceBBox.height : 0;
|
|
194
|
+
// const y = sourceBBox.y + fix + gap / 2;
|
|
195
|
+
// edge.setVertices([
|
|
196
|
+
// { x: sourceBBox.center.x, y },
|
|
197
|
+
// { x: targetBBox.center.x, y },
|
|
198
|
+
// ]);
|
|
199
|
+
// } else {
|
|
200
|
+
// edge.setVertices([]);
|
|
201
|
+
// }
|
|
202
|
+
// });
|
|
203
|
+
// state.graph.unfreeze();
|
|
204
|
+
// state.graph.zoomTo(0.85);
|
|
205
|
+
// // state.graph.positionContent("top");
|
|
206
|
+
// }
|
|
207
|
+
// function createNode(id: string, name: string, data: any, type: string) {
|
|
208
|
+
// const attrs: any =
|
|
209
|
+
// type === "People"
|
|
210
|
+
// ? {
|
|
211
|
+
// ".image": {
|
|
212
|
+
// width: 46,
|
|
213
|
+
// height: 46,
|
|
214
|
+
// refX: 37,
|
|
215
|
+
// refY: 5,
|
|
216
|
+
// xlinkHref: "/img/people.svg",
|
|
217
|
+
// textAnchor: "middle",
|
|
218
|
+
// },
|
|
219
|
+
// ".name": {
|
|
220
|
+
// refY: 55,
|
|
221
|
+
// text: name,
|
|
222
|
+
// },
|
|
223
|
+
// }
|
|
224
|
+
// : {
|
|
225
|
+
// ".body": {
|
|
226
|
+
// rx: 10,
|
|
227
|
+
// ry: 10,
|
|
228
|
+
// strokeWidth: 1,
|
|
229
|
+
// fill: "#ffffff",
|
|
230
|
+
// stroke: "#000",
|
|
231
|
+
// },
|
|
232
|
+
// ".name": {
|
|
233
|
+
// refY: "50%",
|
|
234
|
+
// textVerticalAnchor: "middle",
|
|
235
|
+
// text: name,
|
|
236
|
+
// },
|
|
237
|
+
// };
|
|
238
|
+
// return state.graph.createNode({
|
|
239
|
+
// shape: "org-node",
|
|
240
|
+
// id: id,
|
|
241
|
+
// data: data,
|
|
242
|
+
// attrs: attrs,
|
|
243
|
+
// });
|
|
244
|
+
// }
|
|
245
|
+
// function createEdge(source: Cell, target: Cell) {
|
|
246
|
+
// let line = {};
|
|
247
|
+
// /** 高管 使用蓝色实心箭头 */
|
|
248
|
+
// if (target.data.type === "Officer") line = { stroke: "#2d85dc" };
|
|
249
|
+
// /** 亲人 (人——人) 使用黑色虚线无箭头 */
|
|
250
|
+
// if (target.data.type === "Family")
|
|
251
|
+
// line = { sourceMarker: null, targetMarker: null, strokeDasharray: 2 };
|
|
252
|
+
// /**最终拥有者 (人 -> 企业) 使用黑色虚线箭头边 */
|
|
253
|
+
// if (target.data.type === "UBO") line = { strokeDasharray: 2 };
|
|
254
|
+
// return state.graph.createEdge({
|
|
255
|
+
// shape: "org-edge",
|
|
256
|
+
// source: { cell: source.id },
|
|
257
|
+
// target: { cell: target.id },
|
|
258
|
+
// label: target.data.title,
|
|
259
|
+
// attrs: {
|
|
260
|
+
// line: line,
|
|
261
|
+
// },
|
|
262
|
+
// });
|
|
263
|
+
// }
|
|
264
|
+
// };
|
|
265
|
+
// export default CorporateRelationshipChart;
|
|
258
266
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipChart/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipChart/index.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,4DAA4D;AAE5D,mCAAmC;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AC3D,uDAAuD;AACvD,8CAA8C;AAC9C,yBAAyB;AACzB,sCAAsC;AACtC,sCAAsC;AACtC,UAAU;AACV,mFAAmF;AACnF,kBAAkB;AAClB,oBAAoB;AACpB,0DAA0D;AAC1D,4DAA4D;AAC5D,wDAAwD;AACxD,8CAA8C;AAC9C,yBAAyB;AACzB,sCAAsC;AACtC,sCAAsC;AACtC,UAAU;AACV,cAAc;AACd,4BAA4B;AAC5B,OAAO;AACP,QAAQ;AAER,4BAA4B;AAC5B,8BAA8B;AAC9B,2CAA2C;AAC3C,KAAK;AAEL,4EAA4E;AAC5E,uBAAuB;AACvB,uBAAuB;AACvB,UAAU;AACV,mBAAmB;AACnB,mBAAmB;AACnB,oBAAoB;AACpB,kBAAkB;AAClB,iBAAiB;AACjB,sCAAsC;AACtC,8BAA8B;AAC9B,UAAU;AACV,kBAAkB;AAClB,kBAAkB;AAClB,oBAAoB;AACpB,UAAU;AACV,QAAQ;AACR,UAAU;AACV,kBAAkB;AAClB,gBAAgB;AAChB,gBAAgB;AAChB,wBAAwB;AACxB,yBAAyB;AACzB,wBAAwB;AACxB,UAAU;AACV,kBAAkB;AAClB,qBAAqB;AACrB,sCAAsC;AACtC,oBAAoB;AACpB,UAAU;AACV,SAAS;AAET,oCAAoC;AACpC,wBAAwB;AACxB,aAAa;AACb,iBAAiB;AACjB,mBAAmB;AACnB,QAAQ;AACR,KAAK;AAEL,qDAAqD;AACrD,mBAAmB;AACnB,uBAAuB;AACvB,sEAAsE;AACtE,+BAA+B;AAC/B,uCAAuC;AACvC,4EAA4E;AAC5E,oCAAoC;AACpC,mEAAmE;AACnE,oCAAoC;AACpC,wBAAwB;AACxB,kCAAkC;AAClC,kCAAkC;AAClC,+BAA+B;AAC/B,cAAc;AACd,kBAAkB;AAClB,QAAQ;AACR,QAAQ;AACR,KAAK;AACL,KAAK;AAEL,6CAA6C"}
|
|
@@ -6,13 +6,12 @@ import { Spin } from "@voplus/antd";
|
|
|
6
6
|
import { runInAction } from "mobx";
|
|
7
7
|
import { useRelationshipStore } from "../../../../../data/relationship";
|
|
8
8
|
import { useUnit } from "@voplus/morpho-org";
|
|
9
|
-
import {
|
|
10
|
-
import CorporateRelationshipChart from "../CorporateRelationshipChart";
|
|
9
|
+
import { useParams } from "react-router";
|
|
10
|
+
// import CorporateRelationshipChart from "../CorporateRelationshipChart";
|
|
11
11
|
import UnitPropertiesView from "@voplus/morpho-org/es/components/UnitPropertiesView";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
const CorporateRelationshipView = () => {
|
|
14
|
-
const
|
|
15
|
-
const id = match.params.id;
|
|
14
|
+
const { id } = useParams();
|
|
16
15
|
const store = useRelationshipStore();
|
|
17
16
|
const [asideContext] = useState(AsideContent.createContext());
|
|
18
17
|
const [state] = useState(new State());
|
|
@@ -29,7 +28,9 @@ const CorporateRelationshipView = () => {
|
|
|
29
28
|
window.addEventListener("resize", () => runInAction(() => (state.width = asideContext.asideContent ? window.innerWidth / 2 : window.innerWidth)));
|
|
30
29
|
return observe(() => (React.createElement(CorporateRelationshipContext.Provider, { value: state },
|
|
31
30
|
React.createElement(AsideContent, { context: asideContext },
|
|
32
|
-
React.createElement("div", { className: "corporate-relationship-view" }, !state.loaded ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) })) : (
|
|
31
|
+
React.createElement("div", { className: "corporate-relationship-view" }, !state.loaded ? (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) })) : (
|
|
32
|
+
// <CorporateRelationshipChart onClick={onClick} />
|
|
33
|
+
React.createElement("div", null, "CorporateRelationshipChart")))))));
|
|
33
34
|
function onClick(id) {
|
|
34
35
|
state.width = window.innerWidth ? window.innerWidth / 2 : undefined;
|
|
35
36
|
asideContext.openAside(React.createElement(UnitPropertiesView, { id: id }), { span: 12 });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,4BAA4B,EAC5B,KAAK,GACL,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,4BAA4B,EAC5B,KAAK,GACL,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,0EAA0E;AAC1E,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACtC,MAAM,EAA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