@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.
Files changed (227) hide show
  1. package/es/components/LegalContactSelect/index.d.ts +1 -1
  2. package/es/components/LegalContactSelect/index.js.map +1 -1
  3. package/es/components/RegisteresMenuItem/index.js.map +1 -1
  4. package/es/components/VerificationInformation/state.js +1 -0
  5. package/es/components/VerificationInformation/state.js.map +1 -1
  6. package/es/data/CLDA/hooks.d.ts +3 -3
  7. package/es/data/account/hooks.d.ts +2 -2
  8. package/es/data/agm-clda/metas.js.map +1 -1
  9. package/es/data/cart/hooks.d.ts +1 -1
  10. package/es/data/clda-form/hooks.d.ts +2 -2
  11. package/es/data/clda-form/interfaces.d.ts +9 -1
  12. package/es/data/clda-form/metas.js.map +1 -1
  13. package/es/data/clda-form/types.d.ts +9 -1
  14. package/es/data/clda-meta/hook.d.ts +1 -1
  15. package/es/data/clda-setting/hook.d.ts +1 -1
  16. package/es/data/controller/hooks.d.ts +2 -2
  17. package/es/data/corporate/hooks.d.ts +2 -2
  18. package/es/data/entity/hooks.d.ts +1 -1
  19. package/es/data/filing-folder/hooks.d.ts +2 -2
  20. package/es/data/filing-type/hooks.d.ts +2 -2
  21. package/es/data/filing-year/hooks.d.ts +2 -2
  22. package/es/data/identity/hooks.d.ts +2 -2
  23. package/es/data/incorporation-clda/hooks.d.ts +2 -2
  24. package/es/data/incorporation-clda/metas.js.map +1 -1
  25. package/es/data/member/hooks.d.ts +2 -2
  26. package/es/data/officer/hooks.d.ts +2 -2
  27. package/es/data/order/hooks.d.ts +2 -2
  28. package/es/data/relationship/CorporateRelationshipContext.js +1 -0
  29. package/es/data/relationship/CorporateRelationshipContext.js.map +1 -1
  30. package/es/data/relationship/hooks.d.ts +1 -1
  31. package/es/data/risk-match/hooks.d.ts +2 -2
  32. package/es/data/risk-profile/hooks.d.ts +4 -4
  33. package/es/data/service/hooks.d.ts +2 -2
  34. package/es/data/serviceType/hooks.d.ts +2 -2
  35. package/es/data/share-certificate/hooks.d.ts +2 -2
  36. package/es/data/share-certificate/metas.js.map +1 -1
  37. package/es/data/share-transaction/hooks.d.ts +2 -2
  38. package/es/data/share-transaction/metas.js.map +1 -1
  39. package/es/data/shareOptionsRegister/hooks.d.ts +2 -2
  40. package/es/data/shareOptionsRegister/metas.js.map +1 -1
  41. package/es/modules/account/pages/AccountDefaultView/index.js +2 -3
  42. package/es/modules/account/pages/AccountDefaultView/index.js.map +1 -1
  43. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js.map +1 -1
  44. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +1 -1
  45. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js +2 -3
  46. package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js.map +1 -1
  47. package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/state.js +2 -0
  48. package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/state.js.map +1 -1
  49. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.js.map +1 -1
  50. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js.map +1 -1
  51. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +1 -1
  52. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +2 -3
  53. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
  54. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js +3 -4
  55. package/es/modules/corporate/background-investigation/risk-profile/pages/UnitRiskProfilePage/index.js.map +1 -1
  56. package/es/modules/corporate/clda/components/AddProfileDialog/index.js.map +1 -1
  57. package/es/modules/corporate/clda/components/CLDAListView/index.js.map +1 -1
  58. package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +1 -1
  59. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.js.map +1 -1
  60. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js +2 -3
  61. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.js.map +1 -1
  62. package/es/modules/corporate/clda/pages/CLDAClientView/CLDAClientContext.js +1 -0
  63. package/es/modules/corporate/clda/pages/CLDAClientView/CLDAClientContext.js.map +1 -1
  64. package/es/modules/corporate/clda/pages/CLDAClientView/index.js +2 -3
  65. package/es/modules/corporate/clda/pages/CLDAClientView/index.js.map +1 -1
  66. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js +3 -3
  67. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.js.map +1 -1
  68. package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js +11 -10
  69. package/es/modules/corporate/clda/pages/SecretaryTestPage/CLDAListPage.js.map +1 -1
  70. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js +9 -12
  71. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.js.map +1 -1
  72. package/es/modules/corporate/company/components/CompanyMemberSelect/index.d.ts +1 -1
  73. package/es/modules/corporate/company/components/CompanyRegisterHead/index.js +2 -2
  74. package/es/modules/corporate/company/components/CompanyRegisterHead/index.js.map +1 -1
  75. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +6 -14
  76. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js +4 -10
  77. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.js.map +1 -1
  78. package/es/modules/corporate/company/components/InlineEditAddress/index.d.ts +1 -1
  79. package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +1 -1
  80. package/es/modules/corporate/company/components/InlineEditCountry/index.js.map +1 -1
  81. package/es/modules/corporate/company/components/InlineEditType/index.d.ts +1 -1
  82. package/es/modules/corporate/company/controller-register/components/ControllerList/state.js +1 -0
  83. package/es/modules/corporate/company/controller-register/components/ControllerList/state.js.map +1 -1
  84. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +2 -3
  85. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
  86. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
  87. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +2 -0
  88. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +1 -1
  89. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +1 -1
  90. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.d.ts +1 -1
  91. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +2 -3
  92. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
  93. package/es/modules/corporate/company/officer-register/components/OfficerList/state.js +1 -0
  94. package/es/modules/corporate/company/officer-register/components/OfficerList/state.js.map +1 -1
  95. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +2 -3
  96. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
  97. package/es/modules/corporate/company/pages/CompanyDefaultView/index.js +17 -22
  98. package/es/modules/corporate/company/pages/CompanyDefaultView/index.js.map +1 -1
  99. package/es/modules/corporate/company/pages/CompanyPage/index.js +17 -22
  100. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
  101. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +2 -3
  102. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
  103. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js +2 -3
  104. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.js.map +1 -1
  105. package/es/modules/corporate/components/CorporateSelect/index.d.ts +6 -15
  106. package/es/modules/corporate/components/CorporateSelect/index.js +23 -15
  107. package/es/modules/corporate/components/CorporateSelect/index.js.map +1 -1
  108. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.js.map +1 -1
  109. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -1
  110. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +1 -1
  111. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +2 -3
  112. package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -1
  113. package/es/modules/corporate/legal-generation/components/AGM/Fields.js +1 -1
  114. package/es/modules/corporate/legal-generation/components/AGM/Fields.js.map +1 -1
  115. package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.js +5 -1
  116. package/es/modules/corporate/legal-generation/components/AgentAppointment/Fields.js.map +1 -1
  117. package/es/modules/corporate/legal-generation/components/BankOpening/Fields.js +1 -1
  118. package/es/modules/corporate/legal-generation/components/BankOpening/Fields.js.map +1 -1
  119. package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.js +5 -1
  120. package/es/modules/corporate/legal-generation/components/ChangeAddress/Fields.js.map +1 -1
  121. package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.js +1 -1
  122. package/es/modules/corporate/legal-generation/components/ChangeFYE/Fields.js.map +1 -1
  123. package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.js +1 -1
  124. package/es/modules/corporate/legal-generation/components/ConsolidateDivide/Fields.js.map +1 -1
  125. package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.js +1 -1
  126. package/es/modules/corporate/legal-generation/components/DispenseAGM/Fields.js.map +1 -1
  127. package/es/modules/corporate/legal-generation/components/Footer/index.js.map +1 -1
  128. package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.js +1 -1
  129. package/es/modules/corporate/legal-generation/components/IncorporationDocuments/Fields.js.map +1 -1
  130. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js +1 -1
  131. package/es/modules/corporate/legal-generation/components/IssueShares/Fields.js.map +1 -1
  132. package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.js +1 -1
  133. package/es/modules/corporate/legal-generation/components/NomineeAppointment/Fields.js.map +1 -1
  134. package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.js +1 -1
  135. package/es/modules/corporate/legal-generation/components/NomineeTerminationForm/Fields.js.map +1 -1
  136. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js +1 -1
  137. package/es/modules/corporate/legal-generation/components/PowerOfAttroney/Fields.js.map +1 -1
  138. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js +1 -1
  139. package/es/modules/corporate/legal-generation/components/ResignationLetter/Fields.js.map +1 -1
  140. package/es/modules/corporate/legal-generation/components/SettingDialog/index.js.map +1 -1
  141. package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.js +1 -1
  142. package/es/modules/corporate/legal-generation/components/ShareReduction/Fields.js.map +1 -1
  143. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js +1 -1
  144. package/es/modules/corporate/legal-generation/components/ShareTransfer/Fields.js.map +1 -1
  145. package/es/modules/corporate/legal-generation/components/SubmitButton/index.js.map +1 -1
  146. package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.js +1 -1
  147. package/es/modules/corporate/legal-generation/fields/AGMNomineeStatementFields.js.map +1 -1
  148. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js +1 -1
  149. package/es/modules/corporate/legal-generation/fields/AppointOfficerFields.js.map +1 -1
  150. package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.js +1 -1
  151. package/es/modules/corporate/legal-generation/fields/ChangeCompanyNameFields.js.map +1 -1
  152. package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.js +1 -1
  153. package/es/modules/corporate/legal-generation/fields/ContractAgreementFields.js.map +1 -1
  154. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js +2 -2
  155. package/es/modules/corporate/legal-generation/fields/CorporateRepresentativeFields.js.map +1 -1
  156. package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.js +1 -1
  157. package/es/modules/corporate/legal-generation/fields/EmptyResolutionFields.js.map +1 -1
  158. package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.js +1 -1
  159. package/es/modules/corporate/legal-generation/fields/NoticeOfResolutionFields.js.map +1 -1
  160. package/es/modules/corporate/legal-generation/fields/StrikeOffFields.js +1 -1
  161. package/es/modules/corporate/legal-generation/fields/StrikeOffFields.js.map +1 -1
  162. package/es/modules/corporate/pages/CorporateDefaultView/index.js +4 -4
  163. package/es/modules/corporate/pages/CorporateDefaultView/index.js.map +1 -1
  164. package/es/modules/corporate/pages/CorporatePage/index.js +4 -4
  165. package/es/modules/corporate/pages/CorporatePage/index.js.map +1 -1
  166. package/es/modules/corporate/pages/UnitCorporatePage/index.js +3 -4
  167. package/es/modules/corporate/pages/UnitCorporatePage/index.js.map +1 -1
  168. package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.d.ts +0 -5
  169. package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.js +265 -257
  170. package/es/modules/corporate/relationship/components/CorporateRelationshipChart/index.js.map +1 -1
  171. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js +6 -5
  172. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.js.map +1 -1
  173. package/es/modules/corporate/service-type/pages/ServiceTypeDefaultView/index.js +2 -3
  174. package/es/modules/corporate/service-type/pages/ServiceTypeDefaultView/index.js.map +1 -1
  175. package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +1 -1
  176. package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -1
  177. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +2 -3
  178. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
  179. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +2 -3
  180. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
  181. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.js +19 -20
  182. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.js.map +1 -1
  183. package/es/modules/self-registration/clda-form/IncorporationFormRoutes.d.ts +3 -3
  184. package/es/modules/self-registration/clda-form/IncorporationFormRoutes.js +8 -8
  185. package/es/modules/self-registration/clda-form/IncorporationFormRoutes.js.map +1 -1
  186. package/es/modules/self-registration/clda-form/components/CLDAFormConfirmationDialog/index.js.map +1 -1
  187. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
  188. package/es/modules/self-registration/clda-form/components/NewDirectorDialog/index.js.map +1 -1
  189. package/es/modules/self-registration/clda-form/components/NewSecretaryDialog/index.js.map +1 -1
  190. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.js.map +1 -1
  191. package/es/modules/self-registration/clda-form/incorporation/agm/index.js +74 -5
  192. package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
  193. package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js +3 -3
  194. package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js.map +1 -1
  195. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +3 -3
  196. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
  197. package/es/modules/self-registration/components/StripeForm/state.js +2 -0
  198. package/es/modules/self-registration/components/StripeForm/state.js.map +1 -1
  199. package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -1
  200. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
  201. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.js +5 -5
  202. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.js.map +1 -1
  203. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/state.js +2 -0
  204. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/state.js.map +1 -1
  205. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +3 -3
  206. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
  207. package/es/modules/self-registration/shopping-cart/CartState.js +2 -0
  208. package/es/modules/self-registration/shopping-cart/CartState.js.map +1 -1
  209. package/es/obsolete/OfficerRegisterDefaultView/index.js +3 -3
  210. package/es/obsolete/OfficerRegisterDefaultView/index.js.map +1 -1
  211. package/es/obsolete/controller-register/components/ControllerList/state.js +1 -0
  212. package/es/obsolete/controller-register/components/ControllerList/state.js.map +1 -1
  213. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js +3 -3
  214. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.js.map +1 -1
  215. package/es/obsolete/controllerRegister/hooks.d.ts +2 -2
  216. package/es/obsolete/order/components/OrderListView/index.js.map +1 -1
  217. package/es/obsolete/order/context/OrderContext.js +1 -0
  218. package/es/obsolete/order/context/OrderContext.js.map +1 -1
  219. package/es/obsolete/order/pages/OrderDefaultView/index.js +3 -3
  220. package/es/obsolete/order/pages/OrderDefaultView/index.js.map +1 -1
  221. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +3 -3
  222. package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
  223. package/es/obsolete/shareCertificate/hooks.d.ts +1 -1
  224. package/es/routes.d.ts +30 -38
  225. package/es/routes.js +94 -94
  226. package/es/routes.js.map +1 -1
  227. 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
- const store = useRelationshipStore();
11
- const context = useCorporateRelationshipContext();
12
- const [state] = useState(new State());
13
- // 自定义节点
14
- Graph.registerNode("org-node", {
15
- id: "id",
16
- data: "data",
17
- width: 120,
18
- height: 64,
19
- markup: [
20
- {
21
- tagName: "rect",
22
- attrs: {
23
- class: "body",
24
- cursor: state.cursor,
25
- // event: "node:click",
26
- },
27
- },
28
- {
29
- tagName: "image",
30
- attrs: {
31
- class: "image",
32
- cursor: state.cursor,
33
- // event: "node:click",
34
- },
35
- },
36
- {
37
- tagName: "text",
38
- attrs: {
39
- class: "name",
40
- cursor: state.cursor,
41
- // event: "node:click",
42
- },
43
- },
44
- ],
45
- attrs: {
46
- ".body": {
47
- refWidth: "100%",
48
- refHeight: "100%",
49
- fill: "#ffffff",
50
- },
51
- ".name": {
52
- refX: "50%",
53
- textAnchor: "middle",
54
- fontSize: 14,
55
- textWrap: {
56
- ellipsis: true,
57
- width: -10,
58
- },
59
- },
60
- },
61
- }, true);
62
- // 自定义边
63
- Graph.registerEdge("org-edge", {
64
- // router: {
65
- // name: "orth",
66
- // },
67
- attrs: {
68
- line: {
69
- stroke: "#000",
70
- strokeWidth: 1,
71
- },
72
- },
73
- connector: {
74
- name: "rounded",
75
- args: { radius: 10 },
76
- },
77
- }, true);
78
- // 布局方向
79
- const dir = "TB"; // LR RL TB BT
80
- const debounceClick = debounce((node) => click(node), 200);
81
- useLayoutEffect(() => {
82
- var _a, _b;
83
- // 创建画布
84
- state.graph = new Graph({
85
- container: document.getElementById("container"),
86
- // interacting: false,
87
- autoResize: true,
88
- async: true,
89
- frozen: true,
90
- scroller: {
91
- enabled: true,
92
- pannable: true,
93
- modifiers: "ctrl",
94
- autoResize: true,
95
- pageVisible: false,
96
- pageBreak: false,
97
- },
98
- // panning: {
99
- // enabled: true,
100
- // modifiers: "ctrl",
101
- // },
102
- });
103
- /** 点击 */
104
- state.graph.on("node:click", ({ e, node, view }) => {
105
- e.stopPropagation();
106
- state.count += 1;
107
- debounceClick(node);
108
- });
109
- /** 鼠标按下 */
110
- // state.graph.on("cell:mousedown", ({ cell }: { cell: Cell }) => (state.cursor = "move"));
111
- /** 鼠标抬起 */
112
- // state.graph.on("node:mousemove", () => state.cursor = "po");
113
- const root = createNode(context.root.id, context.root.name, context.root, context.root.type);
114
- const nodes = (_a = context.root.relationships) === null || _a === void 0 ? void 0 : _a.map((r) => createNode(r.target.unit.id, r.target.unit.name, r, r.target.type));
115
- const edges = (_b = context.root.relationships) === null || _b === void 0 ? void 0 : _b.map((r, index) => createEdge(root, nodes[index]));
116
- state.graph.resetCells([root, ...(nodes || []), ...(edges || [])]);
117
- layout();
118
- }, [context.root]);
119
- return observe(() => React.createElement("div", { id: "container", style: { width: context.width, height: "100%" } }));
120
- async function click(node) {
121
- var _a;
122
- console.log(node.id, context.root.id, "node.id !=== context.root.id");
123
- if (state.count === 2 && node.id !== context.root.id) {
124
- const res = await store.load(node.id, { reload: true });
125
- res.map((r) => {
126
- const member = createNode(r.target.unit.id, r.target.unit.name, r, r.target.type);
127
- state.graph.freeze();
128
- state.graph.addCell([member, createEdge(node, member)]);
129
- layout();
130
- });
131
- }
132
- if (state.count === 1)
133
- (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, node.id);
134
- state.count = 0;
135
- }
136
- // }
137
- // 自动布局
138
- function layout() {
139
- const nodes = state.graph.getNodes();
140
- const edges = state.graph.getEdges();
141
- const g = new dagre.graphlib.Graph();
142
- g.setGraph({ rankdir: dir, nodesep: 16, ranksep: 16 });
143
- g.setDefaultEdgeLabel(() => ({}));
144
- const width = 280;
145
- const height = 140;
146
- nodes.forEach((node) => {
147
- g.setNode(node.id, { width, height });
148
- });
149
- edges.forEach((edge) => {
150
- const source = edge.getSource();
151
- const target = edge.getTarget();
152
- g.setEdge(source.cell, target.cell);
153
- });
154
- dagre.layout(g);
155
- state.graph.freeze();
156
- g.nodes().forEach((id) => {
157
- const node = state.graph.getCellById(id);
158
- if (node) {
159
- const pos = g.node(id);
160
- node.setProp({ x: pos.x, y: pos.y, });
161
- }
162
- });
163
- edges.forEach((edge) => {
164
- const source = edge.getSourceNode();
165
- const target = edge.getTargetNode();
166
- const sourceBBox = source.getBBox();
167
- const targetBBox = target.getBBox();
168
- if ((dir === "LR" || dir === "RL") && sourceBBox.y !== targetBBox.y) {
169
- const gap = dir === "LR"
170
- ? targetBBox.x - sourceBBox.x - sourceBBox.width
171
- : -sourceBBox.x + targetBBox.x + targetBBox.width;
172
- const fix = dir === "LR" ? sourceBBox.width : 0;
173
- const x = sourceBBox.x + fix + gap / 2;
174
- edge.setVertices([
175
- { x, y: sourceBBox.center.y },
176
- { x, y: targetBBox.center.y },
177
- ]);
178
- }
179
- else if ((dir === "TB" || dir === "BT") && sourceBBox.x !== targetBBox.x) {
180
- const gap = dir === "TB"
181
- ? targetBBox.y - sourceBBox.y - sourceBBox.height
182
- : -sourceBBox.y + targetBBox.y + targetBBox.height;
183
- const fix = dir === "TB" ? sourceBBox.height : 0;
184
- const y = sourceBBox.y + fix + gap / 2;
185
- edge.setVertices([
186
- { x: sourceBBox.center.x, y },
187
- { x: targetBBox.center.x, y },
188
- ]);
189
- }
190
- else {
191
- edge.setVertices([]);
192
- }
193
- });
194
- state.graph.unfreeze();
195
- state.graph.zoomTo(0.85);
196
- // state.graph.positionContent("top");
197
- }
198
- function createNode(id, name, data, type) {
199
- const attrs = type === "People"
200
- ? {
201
- ".image": {
202
- width: 46,
203
- height: 46,
204
- refX: 37,
205
- refY: 5,
206
- xlinkHref: "/img/people.svg",
207
- textAnchor: "middle",
208
- },
209
- ".name": {
210
- refY: 55,
211
- text: name,
212
- },
213
- }
214
- : {
215
- ".body": {
216
- rx: 10,
217
- ry: 10,
218
- strokeWidth: 1,
219
- fill: "#ffffff",
220
- stroke: "#000",
221
- },
222
- ".name": {
223
- refY: "50%",
224
- textVerticalAnchor: "middle",
225
- text: name,
226
- },
227
- };
228
- return state.graph.createNode({
229
- shape: "org-node",
230
- id: id,
231
- data: data,
232
- attrs: attrs,
233
- });
234
- }
235
- function createEdge(source, target) {
236
- let line = {};
237
- /** 高管 使用蓝色实心箭头 */
238
- if (target.data.type === "Officer")
239
- line = { stroke: "#2d85dc" };
240
- /** 亲人 (人——人) 使用黑色虚线无箭头 */
241
- if (target.data.type === "Family")
242
- line = { sourceMarker: null, targetMarker: null, strokeDasharray: 2 };
243
- /**最终拥有者 (人 -> 企业) 使用黑色虚线箭头边 */
244
- if (target.data.type === "UBO")
245
- line = { strokeDasharray: 2 };
246
- return state.graph.createEdge({
247
- shape: "org-edge",
248
- source: { cell: source.id },
249
- target: { cell: target.id },
250
- label: target.data.title,
251
- attrs: {
252
- line: line,
253
- },
254
- });
255
- }
256
- };
257
- export default CorporateRelationshipChart;
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,MAAM,+DAA+D,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,MAAM,0BAA0B,GAAG,CAAC,KAAyC,EAAE,EAAE;IAChF,MAAM,KAAK,GAAG,oBAAoB,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C;IACJ,CAAC;IAED,SAAS,UAAU,CAAC,MAAY,EAAE,MAAY;QAC7C,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,kBAAkB;QAClB,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,IAAI,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;QACjE,0BAA0B;QAC1B,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ;YAChC,IAAI,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;QACvE,+BAA+B;QAC/B,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,KAAK;YAAE,IAAI,GAAG,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;QAC9D,OAAO,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC;YAC7B,KAAK,EAAE,UAAU;YACjB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3B,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,EAAE;YAC3B,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK;YACxB,KAAK,EAAE;gBACN,IAAI,EAAE,IAAI;aACV;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/relationship/components/CorporateRelationshipChart/index.tsx"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,4DAA4D;AAE5D,mCAAmC;AACnC,6BAA6B;AAC7B,wCAAwC;AACxC,+CAA+C;AAC/C,mHAAmH;AACnH,2EAA2E;AAE3E,sFAAsF;AACtF,yCAAyC;AAEzC,sDAAsD;AAEtD,0CAA0C;AAE1C,YAAY;AACZ,uBAAuB;AACvB,gBAAgB;AAChB,MAAM;AACN,eAAe;AACf,mBA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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 { useRouteMatch } from "react-router";
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 match = useRouteMatch();
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 }) })) : (React.createElement(CorporateRelationshipChart, { onClick: onClick })))))));
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,E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AClD,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;YAClC,6BAAK,SAAS,EAAC,6BAA6B,IAC1C,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAChB,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,eAAe,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG,GAAI,CACtE,CAAC,CAAC,CAAC,CACH,oBAAC,0BAA0B,IAAC,OAAO,EAAE,OAAO,GAAI,CAChD,CACI,CACQ,CACwB,CACxC,CAAC,CAAC;IACH,SAAS,OAAO,CAAC,EAAU;QAC1B,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACpE,YAAY,CAAC,SAAS,CAAC,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
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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