@voplus/morpho-document 1.0.0-dev222 → 1.0.0-dev225

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 (83) hide show
  1. package/changelog.md +5 -0
  2. package/es/components/DocumentHeader/index.js +4 -8
  3. package/es/components/DocumentHeader/index.js.map +1 -1
  4. package/es/components/DocumentList/index.js +1 -3
  5. package/es/components/DocumentList/index.js.map +1 -1
  6. package/es/components/DocumentMenu/index.js +2 -4
  7. package/es/components/DocumentMenu/index.js.map +1 -1
  8. package/es/components/DocumentMenu/state.d.ts +2 -4
  9. package/es/components/DocumentMenu/state.js +4 -7
  10. package/es/components/DocumentMenu/state.js.map +1 -1
  11. package/es/data/DocumentStore/DocumentStore.d.ts +5 -1
  12. package/es/data/DocumentStore/DocumentStore.js +21 -1
  13. package/es/data/DocumentStore/DocumentStore.js.map +1 -1
  14. package/es/data/FileStore/index.d.ts +0 -1
  15. package/es/data/FileStore/index.js +0 -1
  16. package/es/data/FileStore/index.js.map +1 -1
  17. package/es/modules/unit/components/Members/index.js +4 -6
  18. package/es/modules/unit/components/Members/index.js.map +1 -1
  19. package/es/modules/unit/components/NewUnitForm/index.d.ts +1 -1
  20. package/es/modules/unit/components/SubUnitList/index.js +2 -4
  21. package/es/modules/unit/components/SubUnitList/index.js.map +1 -1
  22. package/es/modules/unit/components/UnitItem/SubUnitItem.js +0 -1
  23. package/es/modules/unit/components/UnitItem/SubUnitItem.js.map +1 -1
  24. package/es/modules/unit/controls/ToolBar/ContactMenu/index.js +12 -8
  25. package/es/modules/unit/controls/ToolBar/ContactMenu/index.js.map +1 -1
  26. package/es/modules/unit/controls/ToolBar/ContactMenu/state.d.ts +6 -5
  27. package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +12 -7
  28. package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +1 -1
  29. package/es/modules/unit/data/UnitStore.d.ts +12 -2
  30. package/es/modules/unit/data/UnitStore.js +38 -7
  31. package/es/modules/unit/data/UnitStore.js.map +1 -1
  32. package/es/modules/unit/data/hooks/index.d.ts +6 -0
  33. package/es/modules/unit/data/hooks/index.js +7 -0
  34. package/es/modules/unit/data/hooks/index.js.map +1 -0
  35. package/es/modules/unit/data/hooks/member-events/index.d.ts +3 -0
  36. package/es/modules/unit/data/hooks/member-events/index.js +4 -0
  37. package/es/modules/unit/data/hooks/member-events/index.js.map +1 -0
  38. package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.d.ts +4 -0
  39. package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.js +13 -0
  40. package/es/modules/unit/data/hooks/member-events/useAutoUpdateMemberListData.js.map +1 -0
  41. package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.d.ts +4 -0
  42. package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.js +17 -0
  43. package/es/modules/unit/data/hooks/member-events/useOnDeleteMember.js.map +1 -0
  44. package/es/modules/unit/data/hooks/member-events/useOnNewMember.d.ts +4 -0
  45. package/es/modules/unit/data/hooks/member-events/useOnNewMember.js +17 -0
  46. package/es/modules/unit/data/hooks/member-events/useOnNewMember.js.map +1 -0
  47. package/es/modules/unit/data/hooks/unit-events/index.d.ts +3 -0
  48. package/es/modules/unit/data/hooks/unit-events/index.js +4 -0
  49. package/es/modules/unit/data/hooks/unit-events/index.js.map +1 -0
  50. package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.d.ts +4 -0
  51. package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.js +13 -0
  52. package/es/modules/unit/data/hooks/unit-events/useAutoUpdateUnitListData.js.map +1 -0
  53. package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.d.ts +4 -0
  54. package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.js +17 -0
  55. package/es/modules/unit/data/hooks/unit-events/useOnDeleteUnit.js.map +1 -0
  56. package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.d.ts +4 -0
  57. package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.js +17 -0
  58. package/es/modules/unit/data/hooks/unit-events/useOnNewUnit.js.map +1 -0
  59. package/es/modules/unit/data/hooks/useTeamListEffect.d.ts +8 -0
  60. package/es/modules/unit/data/hooks/useTeamListEffect.js +27 -0
  61. package/es/modules/unit/data/hooks/useTeamListEffect.js.map +1 -0
  62. package/es/modules/unit/data/hooks/useUnit.d.ts +6 -0
  63. package/es/modules/unit/data/hooks/useUnit.js +12 -0
  64. package/es/modules/unit/data/hooks/useUnit.js.map +1 -0
  65. package/es/modules/unit/data/hooks/useUnitActivityListEffect.d.ts +8 -0
  66. package/es/modules/unit/data/hooks/useUnitActivityListEffect.js +16 -0
  67. package/es/modules/unit/data/hooks/useUnitActivityListEffect.js.map +1 -0
  68. package/es/modules/unit/data/hooks/useUnitListEffect.d.ts +8 -0
  69. package/es/modules/unit/data/hooks/useUnitListEffect.js +28 -0
  70. package/es/modules/unit/data/hooks/useUnitListEffect.js.map +1 -0
  71. package/package.json +1 -1
  72. package/es/data/FileStore/FileContext.d.ts +0 -6
  73. package/es/data/FileStore/FileContext.js +0 -40
  74. package/es/data/FileStore/FileContext.js.map +0 -1
  75. package/es/modules/unit/data/FileStore/FileContext.d.ts +0 -6
  76. package/es/modules/unit/data/FileStore/FileContext.js +0 -40
  77. package/es/modules/unit/data/FileStore/FileContext.js.map +0 -1
  78. package/es/modules/unit/data/FileStore/index.d.ts +0 -1
  79. package/es/modules/unit/data/FileStore/index.js +0 -2
  80. package/es/modules/unit/data/FileStore/index.js.map +0 -1
  81. package/es/modules/unit/data/hooks.d.ts +0 -30
  82. package/es/modules/unit/data/hooks.js +0 -115
  83. package/es/modules/unit/data/hooks.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnitListEffect.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/hooks/useUnitListEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAChC,IAAwC,EACxC,MAA+B,EAC/B,OAA6B,EAC5B,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC7D,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAEhC,kFAAkF;IAClF,0GAA0G;IAC1G,OAAO,uBAAuB,CAC7B,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAC7B,QAAQ,CAAC,KAAK,EACd,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAChC,CAAC,IAAI,CAAC,EACN;QACC,OAAO,EAAE,GAAG,EAAE;YACb,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,QAAQ,EAAE,GAAG,EAAE;YACd,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAChC,CAAC;KACD,CACD,CAAC;IAEF,SAAS,WAAW,CAAC,MAAe;QACnC,IAAI,IAAI,IAAI,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAC/E,MAAM,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;AACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-document",
3
- "version": "1.0.0-dev222",
3
+ "version": "1.0.0-dev225",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
@@ -1,6 +0,0 @@
1
- export declare class FileStore {
2
- get moveIds(): any;
3
- onMove(ids: string[]): import("@voplus/antd/es/message").MessageType;
4
- onPaste(loader: () => void): void;
5
- clear(): void;
6
- }
@@ -1,40 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { action, computed } from "mobx";
3
- import { message } from "@voplus/antd";
4
- export class FileStore {
5
- get moveIds() {
6
- const moveIds = sessionStorage.getItem("moveIds");
7
- return moveIds ? JSON.parse(moveIds) : [];
8
- }
9
- onMove(ids) {
10
- const moveIds = ids;
11
- if (!moveIds.length)
12
- return message.warning("nothing to cut");
13
- window.sessionStorage.setItem("moveIds", JSON.stringify(moveIds));
14
- return message.success("Replicating Success");
15
- }
16
- onPaste(loader) {
17
- if (this.moveIds.length) {
18
- loader();
19
- this.clear();
20
- }
21
- else
22
- message.warning("nothing to cut");
23
- }
24
- clear() {
25
- window.sessionStorage.clear();
26
- }
27
- }
28
- __decorate([
29
- computed
30
- ], FileStore.prototype, "moveIds", null);
31
- __decorate([
32
- action
33
- ], FileStore.prototype, "onMove", null);
34
- __decorate([
35
- action
36
- ], FileStore.prototype, "onPaste", null);
37
- __decorate([
38
- action
39
- ], FileStore.prototype, "clear", null);
40
- //# sourceMappingURL=FileContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileContext.js","sourceRoot":"","sources":["../../../src/data/FileStore/FileContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,SAAS;IAErB,IAAI,OAAO;QACV,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,GAAa;QAC1B,MAAM,OAAO,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC9D,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QAClE,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC/C,CAAC;IAEM,OAAO,CAAC,MAAkB;QAChC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACxB,MAAM,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,EAAE,CAAC;SACb;;YAAM,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IAEM,KAAK;QACX,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;CACD;AAtBA;IADC,QAAQ;wCAIR;AAED;IADC,MAAM;uCAMN;AAED;IADC,MAAM;wCAMN;AAED;IADC,MAAM;sCAGN"}
@@ -1,6 +0,0 @@
1
- export declare class FileStore {
2
- get moveIds(): any;
3
- onMove(ids: string[]): import("@voplus/antd/es/message").MessageType;
4
- onPaste(loader: () => void): void;
5
- clear(): void;
6
- }
@@ -1,40 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { action, computed } from "mobx";
3
- import { message } from "@voplus/antd";
4
- export class FileStore {
5
- get moveIds() {
6
- const moveIds = sessionStorage.getItem("moveIds");
7
- return moveIds ? JSON.parse(moveIds) : [];
8
- }
9
- onMove(ids) {
10
- const moveIds = ids;
11
- if (!moveIds.length)
12
- return message.warning("nothing to cut");
13
- window.sessionStorage.setItem("moveIds", JSON.stringify(moveIds));
14
- return message.success("Replicating Success");
15
- }
16
- onPaste(loader) {
17
- if (this.moveIds.length) {
18
- loader();
19
- this.clear();
20
- }
21
- else
22
- message.warning("nothing to cut");
23
- }
24
- clear() {
25
- window.sessionStorage.clear();
26
- }
27
- }
28
- __decorate([
29
- computed
30
- ], FileStore.prototype, "moveIds", null);
31
- __decorate([
32
- action
33
- ], FileStore.prototype, "onMove", null);
34
- __decorate([
35
- action
36
- ], FileStore.prototype, "onPaste", null);
37
- __decorate([
38
- action
39
- ], FileStore.prototype, "clear", null);
40
- //# sourceMappingURL=FileContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileContext.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/FileStore/FileContext.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,SAAS;IAErB,IAAI,OAAO;QACV,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,GAAa;QAC1B,MAAM,OAAO,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,MAAM;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC9D,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QAClE,OAAO,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC/C,CAAC;IAEM,OAAO,CAAC,MAAkB;QAChC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACxB,MAAM,EAAE,CAAC;YACT,IAAI,CAAC,KAAK,EAAE,CAAC;SACb;;YAAM,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC1C,CAAC;IAEM,KAAK;QACX,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;CACD;AAtBA;IADC,QAAQ;wCAIR;AAED;IADC,MAAM;uCAMN;AAED;IADC,MAAM;wCAMN;AAED;IADC,MAAM;sCAGN"}
@@ -1 +0,0 @@
1
- export * from "./FileContext";
@@ -1,2 +0,0 @@
1
- export * from "./FileContext";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/data/FileStore/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,30 +0,0 @@
1
- import { IUnit, LoadUnitListOptions, LoadUnitOptions, UnitStore } from ".";
2
- import { IActivityLog } from "@voplus/morpho-collaboration/es/data/interfaces/IActivityLog";
3
- import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
- /** React hook to retrieve a contact
5
- * @param {string} id - id of the task
6
- * @param {LoadUnitOptions} options - options
7
- */
8
- export declare const useUnit: (id: string, options?: LoadUnitOptions | undefined) => IUnit;
9
- /** React hook to retrieve a list of tasks
10
- * @param effect - Effect callback to be ran after successful retrieved the list.
11
- * @param options - Optional task list loading options.
12
- */
13
- export declare const useUnitListEffect: (list: ListDataContextState<IUnit> | null, effect: (list: IUnit[]) => void, options?: LoadUnitListOptions | undefined) => void;
14
- /** React hook to retrieve a list of Team
15
- * @param effect - Effect callback to be ran after successful retrieved the list.
16
- * @param options - Optional team list loading options.
17
- */
18
- export declare const useTeamListEffect: (id: string, list: ListDataContextState<IUnit> | null, effect: (list: IUnit[]) => void, options?: LoadUnitListOptions | undefined) => void;
19
- /** React hook to retrieve a list of activities of a contact.
20
- * @param id - the id of the contact.
21
- * @param effect - Effect callback to be ran after successful retrieved the list.
22
- * @param options - Optional task list loading options.
23
- */
24
- export declare const useUnitActivityListEffect: (id: string, effect: (list: IActivityLog[]) => void, options?: LoadUnitListOptions | undefined) => void;
25
- /** React hook to call action when a new contact has been created. */
26
- export declare const useOnNewUnit: (action: (store: UnitStore, doc: IUnit) => void) => void;
27
- /** React hook to call action when a delete contact has been created. */
28
- export declare const useOnDeleteUnit: (action: (store: UnitStore, doc: IUnit) => void) => void;
29
- /** React hook to call action when a new contact has been created. */
30
- export declare const useAutoUpdateUnitListData: (list: ListDataContextState<IUnit>, shouldUpdate: (d: IUnit, event: string) => boolean) => void;
@@ -1,115 +0,0 @@
1
- import { useUnitStore } from ".";
2
- import { useCountedMapListEffect, useLoadCountedMapItem } from "@voplus/morpho-data";
3
- import { useDeepDepEffect } from "@voplus/morpho-data";
4
- import { useEffect } from "react";
5
- /** React hook to retrieve a contact
6
- * @param {string} id - id of the task
7
- * @param {LoadUnitOptions} options - options
8
- */
9
- export const useUnit = (id, options) => {
10
- options = options ? options : {};
11
- const store = useUnitStore();
12
- return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
13
- };
14
- /** React hook to retrieve a list of tasks
15
- * @param effect - Effect callback to be ran after successful retrieved the list.
16
- * @param options - Optional task list loading options.
17
- */
18
- export const useUnitListEffect = (list, effect, options) => {
19
- const deps = options ? options : {};
20
- const contacts = useUnitStore();
21
- // Call useContactListEffect and ensure won't load twice for same loading options.
22
- // return useCountedMapListEffect(list, effect, contacts.items, () => contacts.loadList(options), [deps]);
23
- return useCountedMapListEffect(effect ? innerEffect : effect, contacts.items, () => contacts.loadList(options), [deps], {
24
- preload: () => {
25
- if (list)
26
- list.loading = true;
27
- },
28
- postload: () => {
29
- if (list)
30
- list.loading = false;
31
- }
32
- });
33
- function innerEffect(result) {
34
- if (list && result.length < list.filters.paging.PageSize)
35
- list.hasMore = false;
36
- effect(result);
37
- }
38
- };
39
- /** React hook to retrieve a list of Team
40
- * @param effect - Effect callback to be ran after successful retrieved the list.
41
- * @param options - Optional team list loading options.
42
- */
43
- export const useTeamListEffect = (id, list, effect, options) => {
44
- const deps = options ? options : {};
45
- const contacts = useUnitStore();
46
- // Call useContactListEffect and ensure won't load twice for same loading options.
47
- return useCountedMapListEffect(effect ? innerEffect : effect, contacts.items, () => contacts.loadTeamList(id, options), [deps], {
48
- preload: () => {
49
- if (list)
50
- list.loading = true;
51
- },
52
- postload: () => {
53
- if (list)
54
- list.loading = false;
55
- }
56
- });
57
- function innerEffect(result) {
58
- if (list && result.length < list.filters.paging.PageSize)
59
- list.hasMore = false;
60
- effect(result);
61
- }
62
- };
63
- /** React hook to retrieve a list of activities of a contact.
64
- * @param id - the id of the contact.
65
- * @param effect - Effect callback to be ran after successful retrieved the list.
66
- * @param options - Optional task list loading options.
67
- */
68
- export const useUnitActivityListEffect = (id, effect, options) => {
69
- const deps = options ? options : {};
70
- const store = useUnitStore();
71
- // Call useDeepDepEffect directly because returned links do not need to be stored in counted map.
72
- useDeepDepEffect(() => {
73
- store.loadActivityList(id, options).then(effect);
74
- }, [deps]);
75
- };
76
- /** React hook to call action when a new contact has been created. */
77
- export const useOnNewUnit = (action) => {
78
- const store = useUnitStore();
79
- const onNewContact = (store, doc) => {
80
- console.log(`onNewContact - ${doc.id} ${doc.name}`);
81
- action(store, doc);
82
- };
83
- useEffect(() => {
84
- store.UnitCreatedEvent.subscribe(onNewContact);
85
- return () => {
86
- store.UnitCreatedEvent.unsubscribe(onNewContact);
87
- };
88
- });
89
- };
90
- /** React hook to call action when a delete contact has been created. */
91
- export const useOnDeleteUnit = (action) => {
92
- const store = useUnitStore();
93
- const onDeleteContact = (store, doc) => {
94
- console.log(`onDeleteContact - ${doc.id} ${doc.name}`);
95
- action(store, doc);
96
- };
97
- useEffect(() => {
98
- store.UnitDeletedEvent.subscribe(onDeleteContact);
99
- return () => {
100
- store.UnitDeletedEvent.unsubscribe(onDeleteContact);
101
- };
102
- });
103
- };
104
- /** React hook to call action when a new contact has been created. */
105
- export const useAutoUpdateUnitListData = (list, shouldUpdate) => {
106
- useOnNewUnit((s, d) => {
107
- if (shouldUpdate(d, "new"))
108
- list.union([d]);
109
- });
110
- useOnDeleteUnit((s, d) => {
111
- if (shouldUpdate(d, "delete"))
112
- list.remove(d.id);
113
- });
114
- };
115
- //# sourceMappingURL=hooks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":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