@voplus/morpho-csp 10.0.15 → 10.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/data/filing-record/interfaces.d.ts +2 -0
- package/es/data/filing-type/FilingTypeStore.d.ts +27 -2
- package/es/data/filing-type/FilingTypeStore.js +63 -5
- package/es/data/filing-type/FilingTypeStore.js.map +1 -1
- package/es/data/filing-type/interfaces.d.ts +2 -0
- package/es/data/filing-type/types.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js +91 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.d.ts +5 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js +93 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +9 -6
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.d.ts +18 -0
- package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.js +72 -0
- package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
-
import { CountedMap, Store } from "@voplus/morpho-data";
|
|
2
|
+
import { CountedMap, Store, StoreActionOptions } from "@voplus/morpho-data";
|
|
3
|
+
import { ActionPlanStore } from "@voplus/morpho-document/es/data/action-plan";
|
|
3
4
|
import { CreateFilingTypeOptions, DeleteFilingTypeOptions, EditFilingTypeOptions, LoadFilingTypeOptions } from "./types";
|
|
4
5
|
import { IFilingType } from "./interfaces";
|
|
5
6
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
6
7
|
/** Quotation store supply backend functions. */
|
|
7
8
|
export declare class FilingTypeStore extends Store {
|
|
8
9
|
readonly endpoint: ApiEndPoint;
|
|
10
|
+
private readonly actionPlanStore;
|
|
9
11
|
/** Name of the store */
|
|
10
12
|
readonly name: string;
|
|
11
13
|
private readonly _filingTypeDeleted;
|
|
12
14
|
private readonly _filingTypeCreated;
|
|
13
|
-
constructor(endpoint: ApiEndPoint);
|
|
15
|
+
constructor(endpoint: ApiEndPoint, actionPlanStore: ActionPlanStore);
|
|
16
|
+
/**
|
|
17
|
+
* Splits an inline {@link IActionPlan} out of a FilingType response (server emits it on
|
|
18
|
+
* Create-action-plan and Edit-with-ActionChanges via the IncludeOption("actionPlan") flag)
|
|
19
|
+
* and overwrites the ActionPlanStore cache so observers using `useActionPlan(planId)`
|
|
20
|
+
* re-render with the fresh data in the same round-trip.
|
|
21
|
+
*/
|
|
22
|
+
private applyResponse;
|
|
14
23
|
/** All currently used corporate. */
|
|
15
24
|
readonly items: CountedMap<string, IFilingType>;
|
|
16
25
|
/** Event fires when a delete filingType has been deleted. */
|
|
@@ -28,6 +37,22 @@ export declare class FilingTypeStore extends Store {
|
|
|
28
37
|
*/
|
|
29
38
|
loadList(options?: LoadDocumentListOptions): Promise<IFilingType[]>;
|
|
30
39
|
load(id: string, options: LoadFilingTypeOptions): Promise<IFilingType>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates the filing type's single reminder action plan. The server returns the updated
|
|
42
|
+
* filing type view (now carrying actionPlanId) plus the freshly-created action plan inline
|
|
43
|
+
* (server-side IncludeOption("actionPlan")), so we update both caches in one round-trip.
|
|
44
|
+
*/
|
|
45
|
+
createActionPlan(id: string, options?: StoreActionOptions): Promise<string | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes the filing type's reminder action plan template (spec:2405). The filing type itself
|
|
48
|
+
* stays. The server throws if any other plan still references this template (e.g., a derived
|
|
49
|
+
* plan on an existing filing of this type) — that throw surfaces here as an ApiError so the
|
|
50
|
+
* caller can show an error toast.
|
|
51
|
+
*
|
|
52
|
+
* On success the FilingType cache entry's actionPlanId is explicitly cleared to undefined,
|
|
53
|
+
* because CountedMap.overwrite merges and won't reset a field that's missing from the response.
|
|
54
|
+
*/
|
|
55
|
+
deleteActionPlan(id: string, options?: StoreActionOptions): Promise<void>;
|
|
31
56
|
}
|
|
32
57
|
/** 响应钩子检索 IdentityStore */
|
|
33
58
|
export declare const useFilingTypeStore: () => FilingTypeStore;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { RequestBuilder } from "@voplus/api";
|
|
2
2
|
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
|
3
|
-
import {
|
|
3
|
+
import { useActionPlanStore, } from "@voplus/morpho-document/es/data/action-plan";
|
|
4
|
+
import { observable, runInAction } from "mobx";
|
|
4
5
|
import { EventDispatcher } from "strongly-typed-events";
|
|
5
6
|
const StoreName = "FilingTypeStore";
|
|
6
7
|
/** Quotation store supply backend functions. */
|
|
7
8
|
export class FilingTypeStore extends Store {
|
|
8
|
-
constructor(endpoint) {
|
|
9
|
+
constructor(endpoint, actionPlanStore) {
|
|
9
10
|
super();
|
|
10
11
|
Object.defineProperty(this, "endpoint", {
|
|
11
12
|
enumerable: true,
|
|
@@ -13,6 +14,12 @@ export class FilingTypeStore extends Store {
|
|
|
13
14
|
writable: true,
|
|
14
15
|
value: endpoint
|
|
15
16
|
});
|
|
17
|
+
Object.defineProperty(this, "actionPlanStore", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: actionPlanStore
|
|
22
|
+
});
|
|
16
23
|
/** Name of the store */
|
|
17
24
|
Object.defineProperty(this, "name", {
|
|
18
25
|
enumerable: true,
|
|
@@ -40,6 +47,21 @@ export class FilingTypeStore extends Store {
|
|
|
40
47
|
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
|
41
48
|
});
|
|
42
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Splits an inline {@link IActionPlan} out of a FilingType response (server emits it on
|
|
52
|
+
* Create-action-plan and Edit-with-ActionChanges via the IncludeOption("actionPlan") flag)
|
|
53
|
+
* and overwrites the ActionPlanStore cache so observers using `useActionPlan(planId)`
|
|
54
|
+
* re-render with the fresh data in the same round-trip.
|
|
55
|
+
*/
|
|
56
|
+
applyResponse(t) {
|
|
57
|
+
const { actionPlan, ...filingType } = t;
|
|
58
|
+
runInAction(() => {
|
|
59
|
+
this.items.overwrite(filingType.id, filingType);
|
|
60
|
+
if (actionPlan && actionPlan.id) {
|
|
61
|
+
this.actionPlanStore.items.overwrite(actionPlan.id, actionPlan);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
43
65
|
/** Event fires when a delete filingType has been deleted. */
|
|
44
66
|
get FilingTypeDeletedEvent() {
|
|
45
67
|
return this._filingTypeDeleted.asEvent();
|
|
@@ -62,8 +84,8 @@ export class FilingTypeStore extends Store {
|
|
|
62
84
|
async edit(id, options) {
|
|
63
85
|
await this.action(async () => {
|
|
64
86
|
const r = await this.endpoint.post(`/api/csp/filing-types/${id}`, new RequestBuilder().json(options.data));
|
|
65
|
-
const t = await r.json();
|
|
66
|
-
this.
|
|
87
|
+
const t = (await r.json());
|
|
88
|
+
this.applyResponse(t);
|
|
67
89
|
}, options);
|
|
68
90
|
}
|
|
69
91
|
/** filingType 內有文件不能delete */
|
|
@@ -103,12 +125,48 @@ export class FilingTypeStore extends Store {
|
|
|
103
125
|
const r = await this.endpoint.get(`/api/csp/filing-types/${id}${query}`);
|
|
104
126
|
return await r.json();
|
|
105
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Creates the filing type's single reminder action plan. The server returns the updated
|
|
130
|
+
* filing type view (now carrying actionPlanId) plus the freshly-created action plan inline
|
|
131
|
+
* (server-side IncludeOption("actionPlan")), so we update both caches in one round-trip.
|
|
132
|
+
*/
|
|
133
|
+
async createActionPlan(id, options) {
|
|
134
|
+
return await this.action(async () => {
|
|
135
|
+
const r = await this.endpoint.post(`/api/csp/filing-types/${id}/action-plan`);
|
|
136
|
+
const updated = (await r.json());
|
|
137
|
+
this.applyResponse(updated);
|
|
138
|
+
return updated.actionPlanId;
|
|
139
|
+
}, options !== null && options !== void 0 ? options : {});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Deletes the filing type's reminder action plan template (spec:2405). The filing type itself
|
|
143
|
+
* stays. The server throws if any other plan still references this template (e.g., a derived
|
|
144
|
+
* plan on an existing filing of this type) — that throw surfaces here as an ApiError so the
|
|
145
|
+
* caller can show an error toast.
|
|
146
|
+
*
|
|
147
|
+
* On success the FilingType cache entry's actionPlanId is explicitly cleared to undefined,
|
|
148
|
+
* because CountedMap.overwrite merges and won't reset a field that's missing from the response.
|
|
149
|
+
*/
|
|
150
|
+
async deleteActionPlan(id, options) {
|
|
151
|
+
return await this.action(async () => {
|
|
152
|
+
await this.endpoint.delete(`/api/csp/filing-types/${id}/action-plan`);
|
|
153
|
+
runInAction(() => {
|
|
154
|
+
if (this.items.has(id)) {
|
|
155
|
+
const cached = this.items.peek(id);
|
|
156
|
+
cached.actionPlanId = undefined;
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}, options !== null && options !== void 0 ? options : {});
|
|
160
|
+
}
|
|
106
161
|
}
|
|
107
162
|
/** 响应钩子检索 IdentityStore */
|
|
108
163
|
export const useFilingTypeStore = () => {
|
|
109
164
|
const context = useApplicationContext();
|
|
165
|
+
// ActionPlanStore must be initialised first — FilingTypeStore depends on it for cross-cache
|
|
166
|
+
// updates when an edit response carries the inline action plan.
|
|
167
|
+
const actionPlanStore = useActionPlanStore();
|
|
110
168
|
if (!context.getStore(StoreName)) {
|
|
111
|
-
context.addStore(new FilingTypeStore(context.api.currentEndPoint));
|
|
169
|
+
context.addStore(new FilingTypeStore(context.api.currentEndPoint, actionPlanStore));
|
|
112
170
|
}
|
|
113
171
|
return context.getStore(StoreName);
|
|
114
172
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilingTypeStore.js","sourceRoot":"","sources":["../../../src/data/filing-type/FilingTypeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"FilingTypeStore.js","sourceRoot":"","sources":["../../../src/data/filing-type/FilingTypeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAsB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAGN,kBAAkB,GAClB,MAAM,6CAA6C,CAAC;AAUrD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAEpC,gDAAgD;AAChD,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAMzC,YACiB,QAAqB,EACpB,eAAgC;QAEjD,KAAK,EAAE,CAAC;QAHR;;;;mBAAgB,QAAQ;WAAa;QACrC;;;;mBAAiB,eAAe;WAAiB;QAPlD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QACxB;;;;mBAAqB,IAAI,eAAe,EAAgC;WAAC;QACzE;;;;mBAAqB,IAAI,eAAe,EAAgC;WAAC;QAyB1F,oCAAoC;QACpB;;;;mBAAyC,IAAI,UAAU,CACtE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAgB,EAC5D,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,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AAC;AACxD,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
|
2
2
|
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ActionEditOptions } from "@voplus/morpho-document/es/data/action-plan";
|
|
3
4
|
import { IFilingType } from "./interfaces";
|
|
4
5
|
import dayjs from "dayjs";
|
|
5
6
|
/** Custom load org contact options type */
|
|
@@ -28,6 +29,11 @@ export type FilingTypeEditOptions = {
|
|
|
28
29
|
FixedDate?: dayjs.Dayjs | string;
|
|
29
30
|
MonthOffset?: number;
|
|
30
31
|
FixedOffset?: FilingFixedOffset;
|
|
32
|
+
/**
|
|
33
|
+
* Reminder-plan action edits routed through FilingType.EditAsync. Spec:1492 auto-creates
|
|
34
|
+
* the plan if missing; spec:2353 backfills the changes onto open filing records.
|
|
35
|
+
*/
|
|
36
|
+
ActionChanges?: ActionEditOptions[];
|
|
31
37
|
};
|
|
32
38
|
export type CreateFilingTypeOptions = {
|
|
33
39
|
data: FilingTypeCreateOptions;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Modal, Skeleton, Tooltip, message } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { faPenSolid, faTrashXmarkRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference";
|
|
6
|
+
import { useActionPlan, } from "@voplus/morpho-document/es/data/action-plan";
|
|
7
|
+
import { useFilingTypeStore } from "../../../../../../data/filing-type";
|
|
8
|
+
import ReminderActionForm from "../ReminderActionForm";
|
|
9
|
+
// spec:2356 — CSP: Filing type's Reminders tab — schedule list with Option-C row layout
|
|
10
|
+
// spec:2353 — CSP: Configuring a filing type's reminders backfills reminder plans onto its open filing records
|
|
11
|
+
// (reachable via this UI because saves route through filingTypeStore.edit → FilingType.EditAsync)
|
|
12
|
+
const FilingTypeReminderScheduleList = (props) => {
|
|
13
|
+
const { filingTypeId, planId } = props;
|
|
14
|
+
const plan = useActionPlan(planId);
|
|
15
|
+
const filingTypeStore = useFilingTypeStore();
|
|
16
|
+
const [adding, setAdding] = useState(false);
|
|
17
|
+
const [editingAction, setEditingAction] = useState(null);
|
|
18
|
+
// FilingTypeStore.edit/createActionPlan also overwrite the ActionPlanStore cache
|
|
19
|
+
// from the inline `actionPlan` field on the response (spec:2348/2353 contract),
|
|
20
|
+
// so this list refreshes via useActionPlan(planId) automatically.
|
|
21
|
+
const saveChanges = async (changes) => {
|
|
22
|
+
var _a;
|
|
23
|
+
try {
|
|
24
|
+
await filingTypeStore.edit(filingTypeId, {
|
|
25
|
+
data: { ActionChanges: changes },
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
message.error((_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : "Failed to update reminder");
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const handleDelete = (action) => {
|
|
33
|
+
Modal.confirm({
|
|
34
|
+
title: "Delete reminder",
|
|
35
|
+
content: "Open filings using this filing type will stop receiving this reminder. Continue?",
|
|
36
|
+
okText: "Delete",
|
|
37
|
+
okButtonProps: { danger: true },
|
|
38
|
+
cancelText: "Cancel",
|
|
39
|
+
onOk: () => saveChanges([{ Operation: "Delete", Id: action.id }]),
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
return observe(() => {
|
|
43
|
+
var _a;
|
|
44
|
+
return (React.createElement(Skeleton, { loading: !plan.loaded, active: true },
|
|
45
|
+
React.createElement("div", { className: "flex flex-col gap-sm" },
|
|
46
|
+
((_a = plan.actions) !== null && _a !== void 0 ? _a : []).length === 0 ? (React.createElement("div", { className: "flex flex-col items-center justify-center p-lg gap-sm text-font-grey" },
|
|
47
|
+
React.createElement("span", { className: "text-sm" }, "No reminders set up yet."))) : (React.createElement("div", { className: "flex flex-col" }, plan.actions.map((action) => (React.createElement(ReminderRow, { key: action.id, action: action, onEdit: () => setEditingAction(action), onDelete: () => handleDelete(action) }))))),
|
|
48
|
+
React.createElement("button", { type: "button", onClick: () => setAdding(true), className: "flex items-center justify-center gap-sm p-md mt-sm bg-transparent border border-dashed border-border rounded text-font-secondary text-sm font-medium hover:bg-bg-blue hover:border-font-secondary cursor-pointer" }, "\uFF0B Add reminder")),
|
|
49
|
+
adding && (React.createElement(ReminderActionForm, { onCancel: () => setAdding(false), onOk: async (data) => {
|
|
50
|
+
setAdding(false);
|
|
51
|
+
await saveChanges([data]);
|
|
52
|
+
} })),
|
|
53
|
+
editingAction && (React.createElement(ReminderActionForm, { action: editingAction, onCancel: () => setEditingAction(null), onOk: async (data) => {
|
|
54
|
+
setEditingAction(null);
|
|
55
|
+
await saveChanges([data]);
|
|
56
|
+
} }))));
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
const formatOffset = (offset) => {
|
|
60
|
+
if (offset === undefined || offset === null)
|
|
61
|
+
return { num: "?", unit: "no offset set" };
|
|
62
|
+
if (offset === 0)
|
|
63
|
+
return { num: "0", unit: "on due date" };
|
|
64
|
+
const abs = Math.abs(offset);
|
|
65
|
+
const days = abs === 1 ? "day" : "days";
|
|
66
|
+
return { num: String(abs), unit: `${days} ${offset < 0 ? "before" : "after"} due date` };
|
|
67
|
+
};
|
|
68
|
+
const humanizeType = (type) => type.replace(/([A-Z])/g, " $1").trim();
|
|
69
|
+
const ReminderRow = (props) => {
|
|
70
|
+
var _a, _b;
|
|
71
|
+
const { action, onEdit, onDelete } = props;
|
|
72
|
+
const [hover, setHover] = useState(false);
|
|
73
|
+
const { num, unit } = formatOffset(action.offset);
|
|
74
|
+
return (React.createElement("div", { onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), className: "grid grid-cols-[110px_1fr_auto] items-center gap-md py-sm px-sm border-b border-border last:border-b-0 hover:bg-bg-blue rounded transition-colors" },
|
|
75
|
+
React.createElement("div", { className: "flex items-baseline gap-1" },
|
|
76
|
+
React.createElement("span", { className: "text-xl font-semibold text-font-primary leading-none" }, num),
|
|
77
|
+
React.createElement("span", { className: "text-xs text-font-grey" }, unit)),
|
|
78
|
+
React.createElement("div", { className: "flex flex-col min-w-0" },
|
|
79
|
+
React.createElement("span", { className: "text-sm text-font-primary truncate" }, humanizeType(action.type)),
|
|
80
|
+
((_b = (_a = action.data) === null || _a === void 0 ? void 0 : _a.template) === null || _b === void 0 ? void 0 : _b.key) && (React.createElement("span", { className: "text-xs text-font-grey truncate" },
|
|
81
|
+
React.createElement(DocumentReference, { id: action.data.template.key, type: "link" })))),
|
|
82
|
+
React.createElement("div", { className: `flex items-center gap-xs ${hover ? "opacity-100" : "opacity-0"} transition-opacity` },
|
|
83
|
+
React.createElement(Tooltip, { title: "Edit" },
|
|
84
|
+
React.createElement("button", { type: "button", "aria-label": "Edit reminder", onClick: onEdit, className: "w-7 h-7 inline-flex items-center justify-center border border-border bg-bg-white rounded text-font-grey hover:text-font-secondary hover:border-font-secondary cursor-pointer" },
|
|
85
|
+
React.createElement(FAIcon, { icon: faPenSolid }))),
|
|
86
|
+
React.createElement(Tooltip, { title: "Delete" },
|
|
87
|
+
React.createElement("button", { type: "button", "aria-label": "Delete reminder", onClick: onDelete, className: "w-7 h-7 inline-flex items-center justify-center border border-border bg-bg-white rounded text-font-grey hover:text-danger hover:border-danger cursor-pointer" },
|
|
88
|
+
React.createElement(FAIcon, { icon: faTrashXmarkRegular }))))));
|
|
89
|
+
};
|
|
90
|
+
export default FilingTypeReminderScheduleList;
|
|
91
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeReminderScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CA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,OAAO,IAAC,KAAK,EAAC,MAAM;gBACpB,gCACC,IAAI,EAAC,QAAQ,gBACF,eAAe,EAC1B,OAAO,EAAE,MAAM,EACf,SAAS,EAAC,8KAA8K;oBAExL,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI,CACpB,CACA;YACV,oBAAC,OAAO,IAAC,KAAK,EAAC,QAAQ;gBACtB,gCACC,IAAI,EAAC,QAAQ,gBACF,iBAAiB,EAC5B,OAAO,EAAE,QAAQ,EACjB,SAAS,EAAC,8JAA8J;oBAExK,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI,CAC7B,CACA,CACL,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button, Dropdown, Modal, message } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import { useFilingType, useFilingTypeStore } from "../../../../../../data/filing-type";
|
|
6
|
+
import { useActionPlan } from "@voplus/morpho-document/es/data/action-plan";
|
|
7
|
+
import FilingTypeReminderScheduleList from "../FilingTypeReminderScheduleList";
|
|
8
|
+
// spec:2356 — CSP: Filing type's Reminders tab offers a create button until a reminder plan exists, then the reminder editor
|
|
9
|
+
const FilingTypeReminderTab = (props) => {
|
|
10
|
+
const { id } = props;
|
|
11
|
+
const filingType = useFilingType(id);
|
|
12
|
+
const store = useFilingTypeStore();
|
|
13
|
+
const [creating, setCreating] = useState(false);
|
|
14
|
+
const onCreate = async () => {
|
|
15
|
+
setCreating(true);
|
|
16
|
+
try {
|
|
17
|
+
await store.createActionPlan(id);
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
message.error("Failed to create reminder plan");
|
|
21
|
+
}
|
|
22
|
+
finally {
|
|
23
|
+
setCreating(false);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return observe(() => filingType.actionPlanId ? (React.createElement(ReminderPlanView, { filingTypeId: id, planId: filingType.actionPlanId })) : (React.createElement("div", { className: "flex flex-col items-center justify-center p-lg gap-sm" },
|
|
27
|
+
React.createElement("span", { className: "text-font-primary text-sm" }, "No reminder plan yet."),
|
|
28
|
+
React.createElement(Button, { type: "primary", onClick: onCreate, loading: creating }, "Create reminder plan"))));
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Embedded reminder-plan surface shown inside the FilingType Reminders tab. The plan
|
|
32
|
+
* is a TEMPLATE (no instance-level Active/Paused/next-firing state), so the header
|
|
33
|
+
* stays minimal: plan name + action count + an overflow ⋯ menu with the destructive
|
|
34
|
+
* "Delete reminder plan" action (spec:2405).
|
|
35
|
+
*
|
|
36
|
+
* Deliberately NO "Open in action-plan view" affordance — that page would let users
|
|
37
|
+
* edit actions through the default ActionPlanStore, bypassing FilingType.EditAsync
|
|
38
|
+
* and therefore skipping the spec:2353 backfill onto open filings. All reminder
|
|
39
|
+
* mutations must route through filingTypeStore so backfill stays consistent.
|
|
40
|
+
*
|
|
41
|
+
* The schedule list itself is FilingTypeReminderScheduleList — a custom component
|
|
42
|
+
* (not morpho-document's ActionList) whose saves route through filingTypeStore.edit
|
|
43
|
+
* → FilingType.EditAsync → BackfillOpenFilingRemindersAsync.
|
|
44
|
+
*/
|
|
45
|
+
const ReminderPlanView = (props) => {
|
|
46
|
+
const { filingTypeId, planId } = props;
|
|
47
|
+
const plan = useActionPlan(planId);
|
|
48
|
+
const store = useFilingTypeStore();
|
|
49
|
+
const handleDeletePlan = () => {
|
|
50
|
+
Modal.confirm({
|
|
51
|
+
title: "Delete reminder plan",
|
|
52
|
+
content: "This removes the reminder plan template for this filing type. Open filings of this type may block the delete if they still hold derived plans. Continue?",
|
|
53
|
+
okText: "Delete plan",
|
|
54
|
+
okButtonProps: { danger: true },
|
|
55
|
+
cancelText: "Cancel",
|
|
56
|
+
onOk: async () => {
|
|
57
|
+
var _a;
|
|
58
|
+
try {
|
|
59
|
+
await store.deleteActionPlan(filingTypeId);
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
message.error((_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : "Failed to delete reminder plan");
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
const menuItems = [
|
|
68
|
+
{
|
|
69
|
+
key: "delete-plan",
|
|
70
|
+
danger: true,
|
|
71
|
+
label: "Delete reminder plan",
|
|
72
|
+
onClick: handleDeletePlan,
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
return observe(() => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const actionCount = (_b = (_a = plan.actions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
78
|
+
return (React.createElement("div", null,
|
|
79
|
+
React.createElement("div", { className: "flex items-center justify-between gap-md pb-md mb-md border-b border-border" },
|
|
80
|
+
React.createElement("div", { className: "flex flex-col min-w-0" },
|
|
81
|
+
React.createElement("div", { className: "text-base font-semibold text-font-primary truncate" }, plan.name || "Reminder plan"),
|
|
82
|
+
React.createElement("div", { className: "text-xs text-font-grey" },
|
|
83
|
+
actionCount,
|
|
84
|
+
" ",
|
|
85
|
+
actionCount === 1 ? "action" : "actions")),
|
|
86
|
+
React.createElement(Dropdown, { menu: { items: menuItems }, trigger: ["click"], placement: "bottomRight" },
|
|
87
|
+
React.createElement("button", { type: "button", "aria-label": "Reminder plan options", className: "w-7 h-7 inline-flex items-center justify-center border border-border bg-bg-white rounded text-font-grey hover:text-font-secondary hover:border-font-secondary cursor-pointer" },
|
|
88
|
+
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid })))),
|
|
89
|
+
React.createElement(FilingTypeReminderScheduleList, { filingTypeId: filingTypeId, planId: planId })));
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export default FilingTypeReminderTab;
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeReminderTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,uBAAuB,EACvB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,8BAA8B,MAAM,mCAAmC,CAAC;AAE/E,6HAA6H;AAC7H,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,MAAM,QAAQ,GAAG,KAAK,IAAI,EAAE;QAC3B,WAAW,CAAC,IAAI,CAAC,CAAC;QAClB,IAAI,CAAC;YACJ,MAAM,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;QAClC,CAAC;QAAC,OAAO,GAAG,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|
4
|
-
import { useFilingType } from "../../../../../../data/filing-type";
|
|
5
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
6
5
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
6
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
8
7
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
9
8
|
import Links from "@voplus/morpho-document/es/components/Links";
|
|
9
|
+
import FilingTypeReminderTab from "../FilingTypeReminderTab";
|
|
10
10
|
// spec:1539 — CSP: Filing type tabs compose Details and Document
|
|
11
11
|
const FilingTypeTabs = (props) => {
|
|
12
12
|
const { id, details } = props;
|
|
13
13
|
const [docTotals, setDocTotals] = useState(0);
|
|
14
14
|
/**Tabs 当前激活 tab 面板的 key */
|
|
15
15
|
const [activeKey, setActiveKey] = useState(details ? "Details" : "Activities");
|
|
16
|
-
const filingType = useFilingType(props.id);
|
|
17
16
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
18
17
|
Total: true,
|
|
19
18
|
List: false,
|
|
@@ -33,12 +32,16 @@ const FilingTypeTabs = (props) => {
|
|
|
33
32
|
children: (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false, exclude: ["Task", "Ticket", "Deal"] })),
|
|
34
33
|
},
|
|
35
34
|
{ key: "Links", label: "Links", children: React.createElement(Links, { id: id }) },
|
|
35
|
+
{
|
|
36
|
+
key: "Reminders",
|
|
37
|
+
label: "Reminders",
|
|
38
|
+
children: activeKey === "Reminders" ? React.createElement(FilingTypeReminderTab, { id: id }) : null,
|
|
39
|
+
},
|
|
36
40
|
];
|
|
37
41
|
details && items.unshift({ key: "Details", label: "Details", children: details });
|
|
38
|
-
return observe(() => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
42
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: activeKey,
|
|
43
|
+
// spec:1539, spec:2356 — Reminders tab replaces the generic action-plan list for filing types
|
|
44
|
+
actionPlan: false, onChange: (key) => setActiveKey(key), tabItems: items })));
|
|
42
45
|
};
|
|
43
46
|
export default FilingTypeTabs;
|
|
44
47
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAE7D,iEAAiE;AACjE,MAAM,cAAc,GAAG,CAAC,KAA0C,EAAE,EAAE;IACrE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,C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AAW,CAAC,CAAC,CAAC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI;SACrE;KACD,CAAC;IACF,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,SAAS;QACjB,8FAA8F;QAC9F,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EACpC,QAAQ,EAAE,KAAK,GACd,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActionEditOptions, IAction } from "@voplus/morpho-document/es/data/action-plan";
|
|
3
|
+
/**
|
|
4
|
+
* Add/edit modal for a reminder action on a filing type's reminder plan.
|
|
5
|
+
*
|
|
6
|
+
* Unlike morpho-document's NewActionsForm (which only creates and only sets Type +
|
|
7
|
+
* TemplateId), this form covers both Create and Update, and includes an Offset
|
|
8
|
+
* field so the user can pick when the reminder fires relative to the filing's
|
|
9
|
+
* DueDate. Emits a fully-formed ActionEditOptions via onOk; the parent is
|
|
10
|
+
* responsible for posting it through filingTypeStore.edit so spec:2353 backfill
|
|
11
|
+
* runs against existing open filings.
|
|
12
|
+
*/
|
|
13
|
+
declare const ReminderActionForm: (props: {
|
|
14
|
+
action?: IAction;
|
|
15
|
+
onCancel?: () => void;
|
|
16
|
+
onOk?: (data: ActionEditOptions) => void;
|
|
17
|
+
}) => React.JSX.Element;
|
|
18
|
+
export default ReminderActionForm;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Modal, Form, InputNumber, Radio } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import MessageTemplateSelect from "@voplus/morpho-document/es/modules/message-template/components/MessageTemplateSelect";
|
|
5
|
+
const offsetToWhen = (offset) => {
|
|
6
|
+
if (offset === undefined || offset === null)
|
|
7
|
+
return "before";
|
|
8
|
+
if (offset === 0)
|
|
9
|
+
return "on";
|
|
10
|
+
return offset < 0 ? "before" : "after";
|
|
11
|
+
};
|
|
12
|
+
const composeOffset = (when, days) => {
|
|
13
|
+
if (when === "on")
|
|
14
|
+
return 0;
|
|
15
|
+
if (when === "before")
|
|
16
|
+
return -Math.abs(days);
|
|
17
|
+
return Math.abs(days);
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Add/edit modal for a reminder action on a filing type's reminder plan.
|
|
21
|
+
*
|
|
22
|
+
* Unlike morpho-document's NewActionsForm (which only creates and only sets Type +
|
|
23
|
+
* TemplateId), this form covers both Create and Update, and includes an Offset
|
|
24
|
+
* field so the user can pick when the reminder fires relative to the filing's
|
|
25
|
+
* DueDate. Emits a fully-formed ActionEditOptions via onOk; the parent is
|
|
26
|
+
* responsible for posting it through filingTypeStore.edit so spec:2353 backfill
|
|
27
|
+
* runs against existing open filings.
|
|
28
|
+
*/
|
|
29
|
+
const ReminderActionForm = (props) => {
|
|
30
|
+
var _a, _b, _c, _d;
|
|
31
|
+
const isEdit = !!props.action;
|
|
32
|
+
const initialOffset = (_a = props.action) === null || _a === void 0 ? void 0 : _a.offset;
|
|
33
|
+
const [templateId, setTemplateId] = useState((_d = (_c = (_b = props.action) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.template) === null || _d === void 0 ? void 0 : _d.key);
|
|
34
|
+
const [when, setWhen] = useState(offsetToWhen(initialOffset));
|
|
35
|
+
const [days, setDays] = useState(initialOffset === undefined ? 7 : Math.abs(initialOffset));
|
|
36
|
+
const handleOk = () => {
|
|
37
|
+
var _a;
|
|
38
|
+
const offset = composeOffset(when, days);
|
|
39
|
+
const json = { Offset: offset };
|
|
40
|
+
if (templateId)
|
|
41
|
+
json.TemplateId = templateId;
|
|
42
|
+
const payload = isEdit
|
|
43
|
+
? {
|
|
44
|
+
Id: props.action.id,
|
|
45
|
+
Operation: "Update",
|
|
46
|
+
JSON: JSON.stringify(json),
|
|
47
|
+
}
|
|
48
|
+
: {
|
|
49
|
+
Operation: "Create",
|
|
50
|
+
Type: "MessageAction",
|
|
51
|
+
JSON: JSON.stringify(json),
|
|
52
|
+
};
|
|
53
|
+
(_a = props.onOk) === null || _a === void 0 ? void 0 : _a.call(props, payload);
|
|
54
|
+
};
|
|
55
|
+
return observe(() => (React.createElement(Modal, { open: true, title: isEdit ? "Edit reminder" : "New reminder", okText: isEdit ? "Save" : "Add", onCancel: props.onCancel, onOk: handleOk, okButtonProps: { disabled: !templateId } },
|
|
56
|
+
React.createElement(Form, { layout: "vertical" },
|
|
57
|
+
React.createElement(Form.Item, { label: "When" },
|
|
58
|
+
React.createElement("div", { className: "flex items-center gap-sm" },
|
|
59
|
+
React.createElement(Radio.Group, { value: when, onChange: (e) => setWhen(e.target.value), optionType: "button", options: [
|
|
60
|
+
{ label: "Before", value: "before" },
|
|
61
|
+
{ label: "On", value: "on" },
|
|
62
|
+
{ label: "After", value: "after" },
|
|
63
|
+
] }),
|
|
64
|
+
when !== "on" && (React.createElement(React.Fragment, null,
|
|
65
|
+
React.createElement(InputNumber, { min: 1, value: days, onChange: (v) => setDays(Number(v) || 0) }),
|
|
66
|
+
React.createElement("span", { className: "text-font-grey text-sm" }, "days"))),
|
|
67
|
+
React.createElement("span", { className: "text-font-grey text-sm" }, "due date"))),
|
|
68
|
+
React.createElement(Form.Item, { label: "Template", required: true },
|
|
69
|
+
React.createElement(MessageTemplateSelect, { isLayout: false, defaultValue: templateId, onChange: (template) => setTemplateId(template === null || template === void 0 ? void 0 : template.id) }))))));
|
|
70
|
+
};
|
|
71
|
+
export default ReminderActionForm;
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/ReminderActionForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,sFAAsF,CAAC;AAKzH,MAAM,YAAY,GAAG,CAAC,MAAe,EAAgB,EAAE;IACtD,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC;IAC7D,IAAI,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9B,OAAO,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAE,IAAY,EAAU,EAAE;IAClE,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5B,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,kBAAkB,GAAG,CAAC,KAI3B,EAAE,EAAE;;IACJ,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;IAC9B,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