@voplus/morpho-csp 5.0.17 → 5.0.19
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/corporate/types.d.ts +2 -2
- package/es/data/identity/interfaces.d.ts +1 -1
- package/es/data/identity/types.d.ts +1 -1
- package/es/data/member/types.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/index.js +3 -3
- package/es/modules/corporate/background-investigation/risk-profile/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js +8 -8
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.js +3 -3
- package/es/modules/corporate/clda/components/CLDAProperties/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js +2 -2
- package/es/modules/corporate/company/components/CompanyProperties/Properties.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +14 -10
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +1 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js +2 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/Page4.js.map +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.d.ts +1 -1
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +9 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js +15 -7
- package/es/modules/corporate/company/member-register/components/DetailsObsolete/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +13 -9
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +11 -10
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/state.d.ts +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/ShareTransactionTable/ShareTransactionTable.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/ShareTransactionTable/ShareTransactionTable.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +6 -7
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.less +18 -15
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.js +1 -1
- package/es/modules/corporate/filing-record/components/NewFilingRecoreForm/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +8 -8
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js +2 -2
- package/es/modules/corporate/filing-record/filing-year/FilingYearProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/NewFilingYearDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +16 -12
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/state.d.ts +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.js +1 -3
- package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js +1 -3
- package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/Content.js.map +1 -1
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js +1 -3
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormProperties/index.js +2 -2
- package/es/modules/self-registration/clda-form/components/CLDAFormProperties/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +1 -1
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
- package/es/obsolete/controller-register/components/ControllerInformation/index.js +2 -2
- package/es/obsolete/controller-register/components/ControllerInformation/index.js.map +1 -1
- package/es/obsolete/controllerRegister/types.d.ts +2 -2
- package/es/obsolete/order/controls/OrderLabel/index.js +4 -4
- package/es/obsolete/order/controls/OrderLabel/index.js.map +1 -1
- package/package.json +1 -1
- package/es/components/VerificationInformation/VerificationStore.d.ts +0 -33
- package/es/components/VerificationInformation/VerificationStore.js +0 -50
- package/es/components/VerificationInformation/VerificationStore.js.map +0 -1
- package/es/components/VerificationInformation/index.d.ts +0 -6
- package/es/components/VerificationInformation/index.js +0 -70
- package/es/components/VerificationInformation/index.js.map +0 -1
- package/es/components/VerificationInformation/state.d.ts +0 -15
- package/es/components/VerificationInformation/state.js +0 -75
- package/es/components/VerificationInformation/state.js.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ApiEndPoint } from "@voplus/api";
|
|
2
|
-
import { Store, StoreActionOptions } from "@voplus/morpho-data";
|
|
3
|
-
export interface IVerification {
|
|
4
|
-
verifiedBy: {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
verifiedOn: Date;
|
|
9
|
-
confirmedBy: {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
};
|
|
13
|
-
confirmedOn: Date;
|
|
14
|
-
}
|
|
15
|
-
/** Quotation store supply backend functions. */
|
|
16
|
-
export declare class VerificationStore extends Store {
|
|
17
|
-
readonly endpoint: ApiEndPoint;
|
|
18
|
-
/** Name of the store */
|
|
19
|
-
readonly name: string;
|
|
20
|
-
constructor(endpoint: ApiEndPoint);
|
|
21
|
-
/** Edit verified. */
|
|
22
|
-
verify(nodeId: string, options: {
|
|
23
|
-
verified: boolean;
|
|
24
|
-
} & StoreActionOptions): Promise<any>;
|
|
25
|
-
/** Edit an confirmed. */
|
|
26
|
-
confirm(nodeId: string, options: {
|
|
27
|
-
confirmed: boolean;
|
|
28
|
-
} & StoreActionOptions): Promise<any>;
|
|
29
|
-
/** load verification */
|
|
30
|
-
load(nodeId: string): Promise<IVerification>;
|
|
31
|
-
}
|
|
32
|
-
/** 响应钩子检索 VerificationStore */
|
|
33
|
-
export declare const useVerificationStore: () => VerificationStore;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { RequestBuilder } from "@voplus/api";
|
|
2
|
-
import { Store, useApplicationContext, } from "@voplus/morpho-data";
|
|
3
|
-
const StoreName = "VerificationStore";
|
|
4
|
-
/** Quotation store supply backend functions. */
|
|
5
|
-
export class VerificationStore extends Store {
|
|
6
|
-
constructor(endpoint) {
|
|
7
|
-
super();
|
|
8
|
-
Object.defineProperty(this, "endpoint", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
configurable: true,
|
|
11
|
-
writable: true,
|
|
12
|
-
value: endpoint
|
|
13
|
-
});
|
|
14
|
-
/** Name of the store */
|
|
15
|
-
Object.defineProperty(this, "name", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true,
|
|
19
|
-
value: StoreName
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
/** Edit verified. */
|
|
23
|
-
async verify(nodeId, options) {
|
|
24
|
-
return this.action(async () => {
|
|
25
|
-
const r = await this.endpoint.post(`/api/nodes/${nodeId}/manual-verification/verify`, new RequestBuilder().json(options.verified));
|
|
26
|
-
return await r.json();
|
|
27
|
-
}, options);
|
|
28
|
-
}
|
|
29
|
-
/** Edit an confirmed. */
|
|
30
|
-
async confirm(nodeId, options) {
|
|
31
|
-
return this.action(async () => {
|
|
32
|
-
const r = await this.endpoint.post(`/api/nodes/${nodeId}/manual-verification/confirm`, new RequestBuilder().json(options.confirmed));
|
|
33
|
-
return await r.json();
|
|
34
|
-
}, options);
|
|
35
|
-
}
|
|
36
|
-
/** load verification */
|
|
37
|
-
async load(nodeId) {
|
|
38
|
-
const r = await this.endpoint.get(`/api/nodes/${nodeId}/manual-verification`);
|
|
39
|
-
return await r.json();
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
/** 响应钩子检索 VerificationStore */
|
|
43
|
-
export const useVerificationStore = () => {
|
|
44
|
-
const context = useApplicationContext();
|
|
45
|
-
if (!context.getService(StoreName)) {
|
|
46
|
-
context.registerService(new VerificationStore(context.api.currentEndPoint));
|
|
47
|
-
}
|
|
48
|
-
return context.getService(StoreName);
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=VerificationStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationStore.js","sourceRoot":"","sources":["../../../src/components/VerificationInformation/VerificationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAGN,KAAK,EAEL,qBAAqB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAStC,gDAAgD;AAChD,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAI3C,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;IAED,qBAAqB;IACd,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,OAAmD;QACtF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,cAAc,MAAM,6BAA6B,EACjD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC3C,CAAC;YAEF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IACD,yBAAyB;IAClB,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAoD;QACxF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,cAAc,MAAM,8BAA8B,EAClD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAC5C,CAAC;YAEF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IACD,wBAAwB;IACjB,KAAK,CAAC,IAAI,CAAC,MAAc;QAC/B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,MAAM,sBAAsB,CAAC,CAAC;QAC9E,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,+BAA+B;AAC/B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QACnC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KAC5E;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { Form, Skeleton, Switch, message } from "antd";
|
|
3
|
-
import { State } from "./state";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import { runInAction } from "mobx";
|
|
6
|
-
import { useVerificationStore } from "./VerificationStore";
|
|
7
|
-
import moment from "moment";
|
|
8
|
-
const VerificationInformation = (props) => {
|
|
9
|
-
const { id } = props;
|
|
10
|
-
const verifyStore = useVerificationStore();
|
|
11
|
-
const [state] = useState(new State(verifyStore));
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
runInAction(() => {
|
|
14
|
-
state.id = id;
|
|
15
|
-
state.load();
|
|
16
|
-
});
|
|
17
|
-
}, [id]);
|
|
18
|
-
return observe(() => {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
return (React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 } }, state.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
|
|
21
|
-
React.createElement(Form.Item, { label: "Verified" },
|
|
22
|
-
React.createElement(Switch, { checked: state.verified, onChange: onVerified }),
|
|
23
|
-
((_a = state.verification) === null || _a === void 0 ? void 0 : _a.verifiedBy.id) && (React.createElement("div", { className: "operate-record" },
|
|
24
|
-
state.verification.verifiedBy.name,
|
|
25
|
-
" verified on",
|
|
26
|
-
moment(moment.utc(state.verification.verifiedOn).toDate()).format("YYYY-MM-DD HH:mm:ss")))),
|
|
27
|
-
React.createElement(Form.Item, { label: "Confirmed" },
|
|
28
|
-
React.createElement(Switch, { checked: state.confirmed, onChange: onConfirmed }),
|
|
29
|
-
((_b = state.verification) === null || _b === void 0 ? void 0 : _b.confirmedBy.id) && (React.createElement("div", { className: "operate-record" },
|
|
30
|
-
state.verification.confirmedBy.name,
|
|
31
|
-
" confirmed on",
|
|
32
|
-
moment(moment.utc(state.verification.confirmedOn).toDate()).format("YYYY-MM-DD HH:mm:ss"))))))));
|
|
33
|
-
});
|
|
34
|
-
/** Edit verified */
|
|
35
|
-
async function onVerified(checked) {
|
|
36
|
-
state.verified = checked;
|
|
37
|
-
const res = await verifyStore.verify(state.id, {
|
|
38
|
-
verified: checked,
|
|
39
|
-
error: (error) => {
|
|
40
|
-
message.error(error.message);
|
|
41
|
-
state.verified = !checked;
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
if (!res)
|
|
45
|
-
return;
|
|
46
|
-
state.verification = res;
|
|
47
|
-
state.verified = !!res.verifiedBy.id;
|
|
48
|
-
if (props.onChange)
|
|
49
|
-
props.onChange();
|
|
50
|
-
}
|
|
51
|
-
/** Edit confirmed */
|
|
52
|
-
async function onConfirmed(checked) {
|
|
53
|
-
state.confirmed = checked;
|
|
54
|
-
const res = await verifyStore.confirm(state.id, {
|
|
55
|
-
confirmed: checked,
|
|
56
|
-
error: (error) => {
|
|
57
|
-
message.error(error.message);
|
|
58
|
-
state.confirmed = !checked;
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
if (!res)
|
|
62
|
-
return;
|
|
63
|
-
state.verification = res;
|
|
64
|
-
state.confirmed = !!res.confirmedBy.id;
|
|
65
|
-
if (props.onChange)
|
|
66
|
-
props.onChange();
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
export default VerificationInformation;
|
|
70
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VerificationInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,MAAM,uBAAuB,GAAG,CAAC,KAA4C,EAAE,EAAE;IAChF,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAE3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;YACd,KAAK,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,Q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from "./VerificationStore";
|
|
2
|
-
export declare class State {
|
|
3
|
-
private verifyStore;
|
|
4
|
-
id: string;
|
|
5
|
-
/** data of verification */
|
|
6
|
-
verification: IVerification;
|
|
7
|
-
/** checked of verified */
|
|
8
|
-
verified: boolean;
|
|
9
|
-
/** checked of confirmed */
|
|
10
|
-
confirmed: boolean;
|
|
11
|
-
/** loading of load manual-verification */
|
|
12
|
-
loading: boolean;
|
|
13
|
-
constructor(verifyStore: VerificationStore);
|
|
14
|
-
load(): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, makeAutoObservable, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor(verifyStore) {
|
|
5
|
-
Object.defineProperty(this, "verifyStore", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true,
|
|
9
|
-
value: verifyStore
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(this, "id", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value: ""
|
|
16
|
-
});
|
|
17
|
-
/** data of verification */
|
|
18
|
-
Object.defineProperty(this, "verification", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true,
|
|
22
|
-
value: void 0
|
|
23
|
-
});
|
|
24
|
-
/** checked of verified */
|
|
25
|
-
Object.defineProperty(this, "verified", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
configurable: true,
|
|
28
|
-
writable: true,
|
|
29
|
-
value: false
|
|
30
|
-
});
|
|
31
|
-
/** checked of confirmed */
|
|
32
|
-
Object.defineProperty(this, "confirmed", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true,
|
|
36
|
-
value: false
|
|
37
|
-
});
|
|
38
|
-
/** loading of load manual-verification */
|
|
39
|
-
Object.defineProperty(this, "loading", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
configurable: true,
|
|
42
|
-
writable: true,
|
|
43
|
-
value: false
|
|
44
|
-
});
|
|
45
|
-
makeAutoObservable(this);
|
|
46
|
-
}
|
|
47
|
-
async load() {
|
|
48
|
-
this.loading = true;
|
|
49
|
-
const res = await this.verifyStore.load(this.id);
|
|
50
|
-
this.verification = res;
|
|
51
|
-
this.verified = !!res.verifiedBy.id;
|
|
52
|
-
this.confirmed = !!res.confirmedBy.id;
|
|
53
|
-
this.loading = false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
__decorate([
|
|
57
|
-
observable
|
|
58
|
-
], State.prototype, "id", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
observable
|
|
61
|
-
], State.prototype, "verification", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
observable
|
|
64
|
-
], State.prototype, "verified", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
observable
|
|
67
|
-
], State.prototype, "confirmed", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
observable
|
|
70
|
-
], State.prototype, "loading", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
action
|
|
73
|
-
/** Load verification */
|
|
74
|
-
], State.prototype, "load", null);
|
|
75
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/VerificationInformation/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI9D,MAAM,OAAO,KAAK;IAWjB,YAA2B,WAA8B;QAAtC;;;;mBAAQ,WAAW;WAAmB;QAVtC;;;;mBAAK,EAAE;WAAC;QAC3B,2BAA2B;QACR;;;;;WAA4B;QAC/C,0BAA0B;QACP;;;;mBAAW,KAAK;WAAC;QACpC,2BAA2B;QACR;;;;mBAAY,KAAK;WAAC;QACrC,0CAA0C;QACvB;;;;mBAAU,KAAK;WAAC;QAGlC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAIY,AAAN,KAAK,CAAC,IAAI;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;CACD;AAxBmB;IAAlB,UAAU;iCAAgB;AAER;IAAlB,UAAU;2CAAoC;AAE5B;IAAlB,UAAU;uCAAyB;AAEjB;IAAlB,UAAU;wCAA0B;AAElB;IAAlB,UAAU;sCAAwB;AAQtB;IAFZ,MAAM;IACP,wBAAwB;iCAQvB"}
|