@voplus/morpho-csp 1.2.0-dev09 → 1.2.2

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 (158) hide show
  1. package/es/Modules.js +1 -1
  2. package/es/Modules.js.map +1 -1
  3. package/es/components/CompanyMemberSelect/index.js +1 -1
  4. package/es/components/CompanyMemberSelect/index.js.map +1 -1
  5. package/es/components/RegisteresMenuItem/index.d.ts +7 -0
  6. package/es/components/RegisteresMenuItem/index.js +37 -0
  7. package/es/components/RegisteresMenuItem/index.js.map +1 -0
  8. package/es/components/TableDragRow/index.js +1 -1
  9. package/es/components/TableDragRow/index.js.map +1 -1
  10. package/es/data/controllerRegister/ControllerStore.d.ts +27 -0
  11. package/es/data/controllerRegister/ControllerStore.js +93 -0
  12. package/es/data/controllerRegister/ControllerStore.js.map +1 -0
  13. package/es/data/controllerRegister/hooks.d.ts +10 -0
  14. package/es/data/controllerRegister/hooks.js +19 -0
  15. package/es/data/controllerRegister/hooks.js.map +1 -0
  16. package/es/data/controllerRegister/index.d.ts +4 -0
  17. package/es/data/controllerRegister/index.js +5 -0
  18. package/es/data/controllerRegister/index.js.map +1 -0
  19. package/es/data/controllerRegister/interfaces.d.ts +15 -0
  20. package/es/data/controllerRegister/interfaces.js +2 -0
  21. package/es/data/controllerRegister/interfaces.js.map +1 -0
  22. package/es/data/controllerRegister/types.d.ts +35 -0
  23. package/es/data/controllerRegister/types.js +2 -0
  24. package/es/data/controllerRegister/types.js.map +1 -0
  25. package/es/data/relationship/CorporateRelationshipContext.d.ts +18 -0
  26. package/es/data/relationship/CorporateRelationshipContext.js +43 -0
  27. package/es/data/relationship/CorporateRelationshipContext.js.map +1 -0
  28. package/es/data/relationship/RelationshipStore.d.ts +16 -0
  29. package/es/data/relationship/RelationshipStore.js +48 -0
  30. package/es/data/relationship/RelationshipStore.js.map +1 -0
  31. package/es/data/relationship/hooks.d.ts +6 -0
  32. package/es/data/relationship/hooks.js +12 -0
  33. package/es/data/relationship/hooks.js.map +1 -0
  34. package/es/data/relationship/index.d.ts +4 -0
  35. package/es/data/relationship/index.js +5 -0
  36. package/es/data/relationship/index.js.map +1 -0
  37. package/es/data/relationship/interfaces.d.ts +18 -0
  38. package/es/data/relationship/interfaces.js +2 -0
  39. package/es/data/relationship/interfaces.js.map +1 -0
  40. package/es/data/relationship/types.d.ts +7 -0
  41. package/es/data/relationship/types.js +2 -0
  42. package/es/data/relationship/types.js.map +1 -0
  43. package/es/data/shareOptionsRegister/ShareOptionStore.d.ts +12 -0
  44. package/es/data/shareOptionsRegister/ShareOptionStore.js +22 -0
  45. package/es/data/shareOptionsRegister/ShareOptionStore.js.map +1 -0
  46. package/es/data/shareOptionsRegister/hooks.d.ts +9 -0
  47. package/es/data/shareOptionsRegister/hooks.js +20 -0
  48. package/es/data/shareOptionsRegister/hooks.js.map +1 -0
  49. package/es/data/shareOptionsRegister/index.d.ts +4 -0
  50. package/es/data/shareOptionsRegister/index.js +5 -0
  51. package/es/data/shareOptionsRegister/index.js.map +1 -0
  52. package/es/data/shareOptionsRegister/interfaces.d.ts +28 -0
  53. package/es/data/shareOptionsRegister/interfaces.js +2 -0
  54. package/es/data/shareOptionsRegister/interfaces.js.map +1 -0
  55. package/es/data/shareOptionsRegister/metas.d.ts +6 -0
  56. package/es/data/shareOptionsRegister/metas.js +14 -0
  57. package/es/data/shareOptionsRegister/metas.js.map +1 -0
  58. package/es/data/shareOptionsRegister/types.d.ts +29 -0
  59. package/es/data/shareOptionsRegister/types.js +2 -0
  60. package/es/data/shareOptionsRegister/types.js.map +1 -0
  61. package/es/modules/account/AccountPropertiesView/index.js +1 -1
  62. package/es/modules/account/AccountPropertiesView/index.js.map +1 -1
  63. package/es/modules/corporate/CLDA/CLDAListView/index.js +8 -18
  64. package/es/modules/corporate/CLDA/CLDAListView/index.js.map +1 -1
  65. package/es/modules/corporate/CLDA/CLDAListView/state.d.ts +1 -1
  66. package/es/modules/corporate/CLDA/CLDAListView/state.js +3 -1
  67. package/es/modules/corporate/CLDA/CLDAListView/state.js.map +1 -1
  68. package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.d.ts +4 -0
  69. package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js +21 -0
  70. package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.js.map +1 -0
  71. package/es/modules/corporate/ControllerRegister/ControllerDefaultView/index.less +1 -0
  72. package/es/modules/corporate/ControllerRegister/ControllerInformation/index.d.ts +11 -0
  73. package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js +53 -0
  74. package/es/modules/corporate/ControllerRegister/ControllerInformation/index.js.map +1 -0
  75. package/es/modules/corporate/ControllerRegister/ControllerItem/index.d.ts +13 -0
  76. package/es/modules/corporate/ControllerRegister/ControllerItem/index.js +32 -0
  77. package/es/modules/corporate/ControllerRegister/ControllerItem/index.js.map +1 -0
  78. package/es/modules/corporate/ControllerRegister/ControllerItem/index.less +29 -0
  79. package/es/modules/corporate/ControllerRegister/ControllerList/index.d.ts +7 -0
  80. package/es/modules/corporate/ControllerRegister/ControllerList/index.js +72 -0
  81. package/es/modules/corporate/ControllerRegister/ControllerList/index.js.map +1 -0
  82. package/es/modules/corporate/ControllerRegister/ControllerList/index.less +12 -0
  83. package/es/modules/corporate/ControllerRegister/ControllerList/state.d.ts +9 -0
  84. package/es/modules/corporate/ControllerRegister/ControllerList/state.js +49 -0
  85. package/es/modules/corporate/ControllerRegister/ControllerList/state.js.map +1 -0
  86. package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.d.ts +8 -0
  87. package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js +67 -0
  88. package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.js.map +1 -0
  89. package/es/modules/corporate/ControllerRegister/ControllerPropertiesView/index.less +39 -0
  90. package/es/modules/corporate/CorporateSelect/index.js +1 -1
  91. package/es/modules/corporate/CorporateSelect/index.js.map +1 -1
  92. package/es/modules/corporate/DocumentIconList/index.js +1 -1
  93. package/es/modules/corporate/DocumentIconList/index.js.map +1 -1
  94. package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js +3 -3
  95. package/es/modules/corporate/LegalGeneration/components/BankOpening/Fields.js.map +1 -1
  96. package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js +7 -7
  97. package/es/modules/corporate/LegalGeneration/components/IssueShares/Fields.js.map +1 -1
  98. package/es/modules/corporate/Relationship/CorporateRelationshipView/index.d.ts +4 -0
  99. package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js +36 -0
  100. package/es/modules/corporate/Relationship/CorporateRelationshipView/index.js.map +1 -0
  101. package/es/modules/corporate/Relationship/CorporateRelationshipView/index.less +5 -0
  102. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.d.ts +5 -0
  103. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js +259 -0
  104. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/index.js.map +1 -0
  105. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.d.ts +11 -0
  106. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js +46 -0
  107. package/es/modules/corporate/Relationship/components/CorporateRelationshipChart/state.js.map +1 -0
  108. package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.d.ts +7 -0
  109. package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js +26 -0
  110. package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.js.map +1 -0
  111. package/es/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.less +11 -0
  112. package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.d.ts +4 -0
  113. package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js +78 -0
  114. package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.js.map +1 -0
  115. package/es/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.less +89 -0
  116. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.d.ts +12 -0
  117. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js +59 -0
  118. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.js.map +1 -0
  119. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.less +84 -0
  120. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.d.ts +28 -0
  121. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js +83 -0
  122. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDataContext.js.map +1 -0
  123. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.d.ts +3 -0
  124. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js +93 -0
  125. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/TableDragCell.js.map +1 -0
  126. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.d.ts +6 -0
  127. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js +132 -0
  128. package/es/modules/corporate/ShareOptionsRegister/ShareOptionItems/index.js.map +1 -0
  129. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.d.ts +10 -0
  130. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js +95 -0
  131. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.js.map +1 -0
  132. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/index.less +22 -0
  133. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.d.ts +9 -0
  134. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js +56 -0
  135. package/es/modules/corporate/ShareOptionsRegister/ShareOptionList/state.js.map +1 -0
  136. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.d.ts +6 -0
  137. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js +48 -0
  138. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/Content.js.map +1 -0
  139. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.d.ts +12 -0
  140. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js +15 -0
  141. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.js.map +1 -0
  142. package/es/modules/corporate/ShareOptionsRegister/ShareOptionPropertiesView/index.less +89 -0
  143. package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page4.js.map +1 -1
  144. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js +1 -1
  145. package/es/modules/corporate/company/MemberRegister/components/CompanyMemberPropertiesView/index.js.map +1 -1
  146. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js +1 -1
  147. package/es/modules/corporate/company/Officer/OfficerPropertiesView/index.js.map +1 -1
  148. package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js +1 -1
  149. package/es/modules/corporate/company/Officer/components/CorporateOfficerSelect/index.js.map +1 -1
  150. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js +1 -1
  151. package/es/modules/corporate/company/OfficerRegister/OfficerItem/index.js.map +1 -1
  152. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js +2 -2
  153. package/es/modules/legalEntity/shareTransactionsRegister/ShareTransactionItems/TableDragCell.js.map +1 -1
  154. package/es/routes.d.ts +12 -0
  155. package/es/routes.js +27 -1
  156. package/es/routes.js.map +1 -1
  157. package/package.json +21 -24
  158. package/changelog.md +0 -0
@@ -0,0 +1,259 @@
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.getCell(id);
158
+ if (node) {
159
+ const pos = g.node(id);
160
+ /** 因node上不存在position,npm run build不成功,暂时注释,需要修复 */
161
+ // node.position(pos.x, pos.y);
162
+ }
163
+ });
164
+ edges.forEach((edge) => {
165
+ const source = edge.getSourceNode();
166
+ const target = edge.getTargetNode();
167
+ const sourceBBox = source.getBBox();
168
+ const targetBBox = target.getBBox();
169
+ if ((dir === "LR" || dir === "RL") && sourceBBox.y !== targetBBox.y) {
170
+ const gap = dir === "LR"
171
+ ? targetBBox.x - sourceBBox.x - sourceBBox.width
172
+ : -sourceBBox.x + targetBBox.x + targetBBox.width;
173
+ const fix = dir === "LR" ? sourceBBox.width : 0;
174
+ const x = sourceBBox.x + fix + gap / 2;
175
+ edge.setVertices([
176
+ { x, y: sourceBBox.center.y },
177
+ { x, y: targetBBox.center.y },
178
+ ]);
179
+ }
180
+ else if ((dir === "TB" || dir === "BT") && sourceBBox.x !== targetBBox.x) {
181
+ const gap = dir === "TB"
182
+ ? targetBBox.y - sourceBBox.y - sourceBBox.height
183
+ : -sourceBBox.y + targetBBox.y + targetBBox.height;
184
+ const fix = dir === "TB" ? sourceBBox.height : 0;
185
+ const y = sourceBBox.y + fix + gap / 2;
186
+ edge.setVertices([
187
+ { x: sourceBBox.center.x, y },
188
+ { x: targetBBox.center.x, y },
189
+ ]);
190
+ }
191
+ else {
192
+ edge.setVertices([]);
193
+ }
194
+ });
195
+ state.graph.unfreeze();
196
+ state.graph.zoomTo(0.85);
197
+ // state.graph.positionContent("top");
198
+ }
199
+ function createNode(id, name, data, type) {
200
+ const attrs = type === "People"
201
+ ? {
202
+ ".image": {
203
+ width: 46,
204
+ height: 46,
205
+ refX: 37,
206
+ refY: 5,
207
+ xlinkHref: "/img/people.svg",
208
+ textAnchor: "middle",
209
+ },
210
+ ".name": {
211
+ refY: 55,
212
+ text: name,
213
+ },
214
+ }
215
+ : {
216
+ ".body": {
217
+ rx: 10,
218
+ ry: 10,
219
+ strokeWidth: 1,
220
+ fill: "#ffffff",
221
+ stroke: "#000",
222
+ },
223
+ ".name": {
224
+ refY: "50%",
225
+ textVerticalAnchor: "middle",
226
+ text: name,
227
+ },
228
+ };
229
+ return state.graph.createNode({
230
+ shape: "org-node",
231
+ id: id,
232
+ data: data,
233
+ attrs: attrs,
234
+ });
235
+ }
236
+ function createEdge(source, target) {
237
+ let line = {};
238
+ /** 高管 使用蓝色实心箭头 */
239
+ if (target.data.type === "Officer")
240
+ line = { stroke: "#2d85dc" };
241
+ /** 亲人 (人——人) 使用黑色虚线无箭头 */
242
+ if (target.data.type === "Family")
243
+ line = { sourceMarker: null, targetMarker: null, strokeDasharray: 2 };
244
+ /**最终拥有者 (人 -> 企业) 使用黑色虚线箭头边 */
245
+ if (target.data.type === "UBO")
246
+ line = { strokeDasharray: 2 };
247
+ return state.graph.createEdge({
248
+ shape: "org-edge",
249
+ source: { cell: source.id },
250
+ target: { cell: target.id },
251
+ label: target.data.title,
252
+ attrs: {
253
+ line: line,
254
+ },
255
+ });
256
+ }
257
+ };
258
+ export default CorporateRelationshipChart;
259
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,m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AC;YAC7B,KAAK,EAAE,UAAU;YACjB,EAAE,EAAE,EAAE;YACN,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;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"}
@@ -0,0 +1,11 @@
1
+ import { Graph } from "@antv/x6";
2
+ import { IUnitRelationship } from "src/data/relationship";
3
+ export declare class State {
4
+ graph: Graph;
5
+ /** 单击:count = 1, 双击: count = 2 */
6
+ count: number;
7
+ /** */
8
+ cursor: string;
9
+ /** */
10
+ relationships: IUnitRelationship[];
11
+ }
@@ -0,0 +1,46 @@
1
+ import { __decorate } from "tslib";
2
+ import { observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "graph", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: void 0
10
+ });
11
+ /** 单击:count = 1, 双击: count = 2 */
12
+ Object.defineProperty(this, "count", {
13
+ enumerable: true,
14
+ configurable: true,
15
+ writable: true,
16
+ value: 0
17
+ });
18
+ /** */
19
+ Object.defineProperty(this, "cursor", {
20
+ enumerable: true,
21
+ configurable: true,
22
+ writable: true,
23
+ value: "pointer"
24
+ });
25
+ /** */
26
+ Object.defineProperty(this, "relationships", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true,
30
+ value: void 0
31
+ });
32
+ }
33
+ }
34
+ __decorate([
35
+ observable
36
+ ], State.prototype, "graph", void 0);
37
+ __decorate([
38
+ observable
39
+ ], State.prototype, "count", void 0);
40
+ __decorate([
41
+ observable
42
+ ], State.prototype, "cursor", void 0);
43
+ __decorate([
44
+ observable
45
+ ], State.prototype, "relationships", void 0);
46
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/Relationship/components/CorporateRelationshipChart/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACa;;;;;WAAoB;QAChC,kCAAkC;QACtB;;;;mBAAe,CAAC;WAAC;QAC7B,OAAO;QACK;;;;mBAAgB,SAAS;WAAC;QACtC,OAAO;QACK;;;;;WAA0C;IACvD,CAAC;CAAA;AAPY;IAAX,UAAU;oCAAqB;AAEpB;IAAX,UAAU;oCAAkB;AAEjB;IAAX,UAAU;qCAA2B;AAE1B;IAAX,UAAU;4CAA2C"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { IVestingSchedule } from "src/data/shareOptionsRegister";
4
+ declare const ShareMovementsDataIcon: (props: {
5
+ lines: IVestingSchedule[];
6
+ }) => JSX.Element;
7
+ export default ShareMovementsDataIcon;
@@ -0,0 +1,26 @@
1
+ import "./index.less";
2
+ import { Popover, Table } from "@voplus/antd";
3
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
+ import React from "react";
5
+ import { faTable } from "@fortawesome/pro-light-svg-icons";
6
+ import moment from "moment";
7
+ const columns = [
8
+ {
9
+ title: "Date",
10
+ dataIndex: "shareholder",
11
+ render: (date, record) => moment(date).format("DD MMM YYYY"),
12
+ },
13
+ {
14
+ title: "Options",
15
+ dataIndex: "options",
16
+ },
17
+ ];
18
+ const ShareMovementsDataIcon = (props) => {
19
+ const { lines } = props;
20
+ const content = React.createElement(Table, { columns: columns, rowKey: "id", dataSource: lines, pagination: false });
21
+ return (React.createElement(Popover, { placement: "topLeft", title: "ShareOption Schedule", content: content, overlayClassName: "share-movements-data-popover" },
22
+ React.createElement("span", null,
23
+ React.createElement(FAIcon, { icon: faTable, className: "share-movements-data-icon" }))));
24
+ };
25
+ export default ShareMovementsDataIcon;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareMovementsDataIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAU,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,OAAO,GAAG;IACf;QACC,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,aAAa;QACxB,MAAM,EAAE,CAAC,IAAS,EAAE,MAAwB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;KACnF;IACD;QACC,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;KACpB;CACD,CAAC;AACF,MAAM,sBAAsB,GAAG,CAAC,KAAoC,EAAE,EAAE;IACvE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAExB,MAAM,OAAO,GAAG,oBAAC,KAAK,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAC,IAAI,EAAC,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAI,CAAC;IAC9F,OAAO,CACN,oBAAC,OAAO,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,sBAAsB,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAC,8BAA8B;QAE/C;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAC,2BAA2B,GAAG,CACzD,CACE,CACV,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,11 @@
1
+ :global {
2
+ .share-movements-data-popover {
3
+ .ant-table-thead > tr > th,
4
+ .ant-table-tbody > tr > td {
5
+ padding: 10px 15px;
6
+ }
7
+ }
8
+ .share-movements-data-icon {
9
+ cursor: pointer;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const ShareOptionDefaultView: () => JSX.Element;
4
+ export default ShareOptionDefaultView;
@@ -0,0 +1,78 @@
1
+ import "./index.less";
2
+ import { Archive, Reload, Sidebar, Versions, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
3
+ import { AsideContent, InlineEdit } from "@voplus/morpho-ui";
4
+ import React, { useEffect, useState } from "react";
5
+ import { useRouteMatch } from "react-router";
6
+ import { useShareOptionStore } from "../../../../data/shareOptionsRegister";
7
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
8
+ import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
9
+ import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
10
+ import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
11
+ import ShareOptionItems from "../ShareOptionItems";
12
+ import { Skeleton } from "@voplus/antd";
13
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
14
+ import moment from "moment";
15
+ import { observe } from "@voplus/morpho-ui";
16
+ import { useTabItem } from "@voplus/morpho-data";
17
+ const ShareOptionDefaultView = () => {
18
+ const match = useRouteMatch();
19
+ const id = match.params.id;
20
+ const [reload, setReload] = useState(true);
21
+ // const shareOption = useShareOption(id, { reload, includes: "tags" });
22
+ const shareOption = {
23
+ id: "e1c06629-f110-4016-b206-ac7700311c7b",
24
+ date: "2021-03-11",
25
+ class: "Allotment",
26
+ schedule: [{ date: "2021-03-11", options: 5000 }],
27
+ loading: false,
28
+ };
29
+ const shareStore = useShareOptionStore();
30
+ const tab = useTabItem();
31
+ const [asideContext] = useState(AsideContent.createContext());
32
+ useEffect(() => {
33
+ asideContext.openAside(AsideElement, { span: 11 });
34
+ }, []);
35
+ const AsideElement = (React.createElement("div", { className: "csp-default-view_aside" },
36
+ React.createElement(DocumentTabs, { id: id })));
37
+ useEffect(() => {
38
+ tab.title = (shareOption === null || shareOption === void 0 ? void 0 : shareOption.name) || "";
39
+ }, [shareOption === null || shareOption === void 0 ? void 0 : shareOption.name]);
40
+ return observe(() => (React.createElement(AsideContent, { context: asideContext },
41
+ React.createElement("div", { className: "share-option-default-view" },
42
+ shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
43
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(DocumentHeader, { id: id, size: "h3", tools: React.createElement(React.Fragment, null,
44
+ React.createElement(ToolBar, { id: id },
45
+ React.createElement(Reload, { action: onReLoad }),
46
+ React.createElement(Sidebar, { action: () => asideContext.asideContent
47
+ ? asideContext.closeAside()
48
+ : asideContext.openAside(AsideElement, { span: 12 }) }),
49
+ React.createElement(Archive, null),
50
+ React.createElement(Versions, null))) })),
51
+ shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
52
+ React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "share-option-item-info" },
53
+ React.createElement("div", null,
54
+ React.createElement("div", { className: "bold" }, "Date"),
55
+ React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareOption.readonly, defaultValue: moment(shareOption.date), content: (v) => (React.createElement(React.Fragment, null, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: (v) => v
56
+ ? shareStore.edit(id, {
57
+ data: {
58
+ Date: v.format("DD MMM YYYY"),
59
+ },
60
+ error: "message",
61
+ })
62
+ : null })),
63
+ React.createElement("div", null,
64
+ React.createElement("div", { className: "bold" }, "TransactionType"),
65
+ React.createElement("span", { className: "transaction-type" }, shareOption.class)))),
66
+ shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
67
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(ShareOptionItems, { data: shareOption })),
68
+ shareOption.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
69
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: shareOption.description, readonly: shareOption.readonly, padding: "0.75rem 0" }))))));
70
+ function onReLoad() {
71
+ setReload(false);
72
+ setTimeout(() => {
73
+ setReload(true);
74
+ }, 100);
75
+ }
76
+ };
77
+ export default ShareOptionDefaultView;
78
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,GACR,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,UAAU,E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,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,gBAAgB,IAAC,IAAI,EAAE,WAAW,GAAI,CACvC;YACA,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CACtB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,QAAQ,EAAE,WAAW,CAAC,QAAQ,EAC9B,OAAO,EAAC,WAAW,GAClB,CACF,CACI,CACQ,CACf,CAAC,CAAC;IACH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,89 @@
1
+ @import "../../../../style/common.less";
2
+ :global {
3
+ .share-option-default-view {
4
+ // padding: 10px 0;
5
+ .ant-table {
6
+ margin: 0 20px;
7
+ }
8
+ .share-option-item-info {
9
+ display: flex;
10
+ padding: 0 15px 10px 15px;
11
+ > div {
12
+ flex: 1;
13
+ color: #000;
14
+ padding: 0 10px;
15
+ }
16
+ .bold {
17
+ font-weight: 500;
18
+ font-size: 15px;
19
+ padding-bottom: 10px;
20
+ }
21
+ .morpho-inline-edit {
22
+ display: inline-block;
23
+
24
+ .svg-inline--fa {
25
+ margin-right: 5px;
26
+ }
27
+ }
28
+ .ant-select {
29
+ width: 130px !important;
30
+ }
31
+ }
32
+ .ant-table {
33
+ .ant-table-container {
34
+ overflow-x: auto;
35
+ }
36
+ .ant-input-number {
37
+ width: 100%;
38
+ }
39
+ .ant-table-thead > tr > th {
40
+ padding: 10px;
41
+ }
42
+ .ant-table-tbody > tr > td {
43
+ padding: 5px 10px;
44
+ min-width: 120px;
45
+ height: 54px;
46
+ &.column-dnd {
47
+ min-width: 40px;
48
+ text-align: center;
49
+ }
50
+ }
51
+ .editable-cell-wrap {
52
+ display: flex;
53
+ justify-content: space-between;
54
+ align-items: center;
55
+ > div {
56
+ flex: 1;
57
+ }
58
+ .ant-empty {
59
+ width: 100%;
60
+ }
61
+ }
62
+ .ant-table-footer {
63
+ display: flex;
64
+ justify-content: space-between;
65
+ align-items: center;
66
+ padding: 10px 0;
67
+ .operate {
68
+ flex: 1;
69
+ .cancel {
70
+ color: #666;
71
+ }
72
+ }
73
+ .total {
74
+ display: inline-block;
75
+ min-width: calc((100% - 40px) / 5);
76
+ padding-left: 10px;
77
+ span {
78
+ margin-left: 5px;
79
+ font-size: 15px;
80
+ font-weight: 500;
81
+ }
82
+ & + .total {
83
+ margin-left: calc((100% - 40px) / 5);
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const ShareOptionItem: (props: {
4
+ /** id of item of the shareOption*/
5
+ id: string;
6
+ /** 拖拽源 */
7
+ connectDragSource?: any;
8
+ /** 是否有AsideContent侧边栏 */
9
+ sidebar?: boolean;
10
+ className?: string;
11
+ }) => JSX.Element;
12
+ export default ShareOptionItem;
@@ -0,0 +1,59 @@
1
+ import "./index.less";
2
+ import { useShareOptionStore, } from "../../../../data/shareOptionsRegister";
3
+ import { InlineEdit, useAsideContentContext } from "@voplus/morpho-ui";
4
+ import React, { useLayoutEffect, useState } from "react";
5
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
6
+ import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
7
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
8
+ import ShareMovementsDataIcon from "../ShareMovementsDataIcon";
9
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
10
+ import classnames from "classnames";
11
+ import moment from "moment";
12
+ import { observe } from "@voplus/morpho-ui";
13
+ const ShareOptionItem = (props) => {
14
+ const { id, sidebar, className } = props;
15
+ // const shareOption = useShareOption(id, {
16
+ // reload: (i: IDocument & { transactionType: ShareOptionType }) => !i.tags || !i.transactionType,
17
+ // includes: "tags",
18
+ // });
19
+ const shareOption = {
20
+ id: "e1c06629-f110-4016-b206-ac7700311c7b",
21
+ date: "2021-03-11",
22
+ class: "Allotment",
23
+ schedule: [{ date: "2021-03-11", options: 5000 }],
24
+ };
25
+ const [hover, setHover] = useState(false);
26
+ const shareStore = useShareOptionStore();
27
+ const asideContext = useAsideContentContext();
28
+ /** 设置New ShareTransaction Form 宽度*/
29
+ useLayoutEffect(() => {
30
+ /** 需要打开AsideContent的时候才设置 */
31
+ if (sidebar) {
32
+ const ref = document.getElementsByClassName("create-shareOption-form")[0];
33
+ const listRef = document.getElementsByClassName("list-view-main")[0];
34
+ if (ref) {
35
+ if (listRef)
36
+ listRef.style.paddingBottom = "42px";
37
+ if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
38
+ ref.style.width = "50%";
39
+ }
40
+ else {
41
+ listRef.style = {};
42
+ }
43
+ }
44
+ });
45
+ return observe(() => (React.createElement(DocumentHeader, { id: id, preVisible: false, flagVisible: false, itemHover: true, onMouse: (over) => setHover(over), className: classnames("share-option-item", className, { hover }, { sidebar }), quickDataBar: React.createElement("div", { className: "share-option-item-info" },
46
+ React.createElement(InlineEdit, { editor: DateInputEditor, editable: !shareOption.readonly, defaultValue: shareOption.date ? moment(shareOption.date) : undefined, content: (v) => (React.createElement("span", { className: "transaction-date" }, v.store.value ? moment(v.store.value).format("DD MMM YYYY") : "Add DateTime")), onSave: (v) => v
47
+ ? shareStore.edit(id, {
48
+ data: {
49
+ Date: v.format("DD MMM YYYY"),
50
+ },
51
+ error: "message",
52
+ })
53
+ : null }),
54
+ React.createElement("span", { className: "transaction-type" }, shareOption.class),
55
+ !!(shareOption.schedule && shareOption.schedule.length) && (React.createElement(ShareMovementsDataIcon, { lines: shareOption.schedule }))), toolsVisible: !sidebar, tools: React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
56
+ React.createElement(Open, { size: "middle", url: `/shareOptions/${id}` })) })));
57
+ };
58
+ export default ShareOptionItem;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/corporate/ShareOptionsRegister/ShareOptionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAIN,mBAAmB,GACnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAQxB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEzC,2CAA2C;IAC3C,mGAAmG;IACnG,qBAAqB;IACrB,MAAM;IAEN,MAAM,WAAW,GAAG;QACnB,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,WAAW;QAClB,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE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