@voplus/morpho-csp 10.0.23 → 10.0.25
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/identity/identity-events/index.d.ts +6 -3
- package/es/data/identity/identity-events/index.js +6 -3
- package/es/data/identity/identity-events/index.js.map +1 -1
- package/es/data/identity/index.d.ts +6 -4
- package/es/data/identity/index.js +6 -4
- package/es/data/identity/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +4 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -18
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -86
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -15
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -75
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
- package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
- package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
- package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +4 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +4 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/package.json +2 -1
- package/es/data/identity/IdentityStore.d.ts +0 -35
- package/es/data/identity/IdentityStore.js +0 -119
- package/es/data/identity/IdentityStore.js.map +0 -1
- package/es/data/identity/hooks.d.ts +0 -6
- package/es/data/identity/hooks.js +0 -14
- package/es/data/identity/hooks.js.map +0 -1
- package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
- package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
- package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
- package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
- package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
- package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
- package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
- package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
- package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
- package/es/data/identity/interfaces.d.ts +0 -26
- package/es/data/identity/interfaces.js +0 -2
- package/es/data/identity/interfaces.js.map +0 -1
- package/es/data/identity/types.d.ts +0 -50
- package/es/data/identity/types.js +0 -2
- package/es/data/identity/types.js.map +0 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
- package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
- package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
- package/es/modules/corporate/company/identity/controls/IdentityMenu/index.css +0 -32
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity/identity-events";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity/identity-events";
|
|
4
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/identity/identity-events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4DAA4D,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import from "@voplus/morpho-compliance" instead. The Compliance Identity
|
|
3
|
+
* data model + UI moved to its own package; this compatibility re-export will be removed
|
|
4
|
+
* in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/data/identity";
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/identity/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/identity/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4CAA4C,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js
CHANGED
|
@@ -36,7 +36,10 @@ const ControllerProperties = ({ controllerTitle = "CONTROLLER PROPERTIES", orgCo
|
|
|
36
36
|
React.createElement(Scrollbars, { autoHide: true },
|
|
37
37
|
headerVisible && React.createElement(ControllerHead, { id: id, menu: false }),
|
|
38
38
|
React.createElement(PropertiesSection, { title: controllerTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, i.name === "Tags" ? (React.createElement(TagProp, { id: id, tags: controller.tags, items: controllerStore.items, editable: user.can("edit", controller.p, { asset: "Tags" }) })) : (React.createElement(Prop, { label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))))) }),
|
|
39
|
-
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id,
|
|
39
|
+
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, onSelect: (ids) => {
|
|
40
|
+
// spec:1798 — CSP: Selecting an identity assigns it to the originating registration role
|
|
41
|
+
controllerStore.edit(id, { data: { IdentityId: ids }, error: "message" });
|
|
42
|
+
} }),
|
|
40
43
|
React.createElement(ContactProperties, { id: (_c = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }),
|
|
41
44
|
React.createElement(FieldsProperties, { id: (_d = controller.contact) === null || _d === void 0 ? void 0 : _d.id }))));
|
|
42
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,gBAAgB,MAAM,sDAAsD,CAAC;AACpF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AA4B/C,MAAM,oBAAoB,GAAG,CAAC,EAC7B,eAAe,GAAG,uBAAuB,EACzC,eAAe,GAAG,oBAAoB,EACtC,oBAAoB,GAAG;IACtB,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC/B,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC7B,EAAE,IAAI,EAAE,kBAAkB,EAAE;IAC5B,EAAE,IAAI,EAAE,YAAY,EAAE;IACtB,EAAE,IAAI,EAAE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AAE,EAAE,EACN,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,KAAK,EAAE,eAAe,CAAC,KAAK,EAC5B,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,GAC1D,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,GAAG,OAAO,IAAI,CAAC,CAAC,IAAI,EAAE,IACpD,UAAU,CAAC,CAAC,CAAC,CACR,CACP,CACe,CACjB,CAAC,GAEF;gBACF,oBAAC,kBAAkB,IAClB,UAAU,EAAE,MAAA,UAAU,CAAC,QAAQ,0CAAE,EAAG,EACpC,QAAQ,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,EAAE,EAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,gBAAgB,MAAM,sDAAsD,CAAC;AACpF,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE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AAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default ContactIdentitySelectDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { ContactIdentitySelectDialog } from "@voplus/morpho-compliance"
|
|
3
|
+
* instead. This component moved to its own package; this compatibility re-export will be
|
|
4
|
+
* removed in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js
CHANGED
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
9
|
-
import IdentifyDetail from "../IdentifyDetail";
|
|
10
|
-
import IdentityItem from "../IdentityItem";
|
|
11
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
12
|
-
import NewIdentityDialog from "../NewIdentityDialog";
|
|
13
|
-
import classnames from "classnames";
|
|
14
|
-
import "./index.css";
|
|
15
|
-
import { useAutoUpdateListData } from "../../../../../../data/identity/identity-events";
|
|
16
|
-
const ContactIdentitySelectDialog = (props) => {
|
|
17
|
-
const { id, visible } = props;
|
|
18
|
-
const [activeId, setActiveId] = useState("");
|
|
19
|
-
const [openAside, setOpenAside] = useState(false);
|
|
20
|
-
const [addAble, setAddAble] = useState(false);
|
|
21
|
-
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
22
|
-
// spec:1797 — CSP: Identity selection dialog filters identities by selected contact unit
|
|
23
|
-
const list = useCreateListDataState({
|
|
24
|
-
filterDefaults: {
|
|
25
|
-
filters: [{ c: "UnitId", o: "=", l: "And", v1: id }],
|
|
26
|
-
},
|
|
27
|
-
}, [id]);
|
|
28
|
-
useAutoUpdateListData(list, (d) => d.unitId === id);
|
|
29
|
-
useRenderOnChange(() => list.filters.options);
|
|
30
|
-
useIdentityListEffect(list, (result) => list.union(result), list.filters.options);
|
|
31
|
-
return observe(() => (React.createElement(Modal, { title: "", width: openAside ? "66vw" : "33vw", open: visible, closable: false, footer: null, style: { height: "500px" }, className: "contact-identity-select-dialog", onCancel: props.onCancel },
|
|
32
|
-
React.createElement(ViewContext.Provider, { value: view },
|
|
33
|
-
React.createElement("div", { className: "contact-identity-list" },
|
|
34
|
-
React.createElement(Button, { type: "link", className: "ant-modal-close", onClick: props.onCancel },
|
|
35
|
-
React.createElement(FAIcon, { icon: faXmarkRegular, className: "ant-modal-close-x identity-close" })),
|
|
36
|
-
React.createElement("h3", { className: "identity-title" }, "Contact Name Identities"),
|
|
37
|
-
React.createElement("div", { className: "identity-list" },
|
|
38
|
-
React.createElement(ListDataContext.Provider, { value: list },
|
|
39
|
-
React.createElement(ListView, { headerProps: {
|
|
40
|
-
viewTitle: " ",
|
|
41
|
-
sortable: false,
|
|
42
|
-
onAdd: () => setAddAble(true),
|
|
43
|
-
}, renderItem: ({ item, index }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
44
|
-
active: activeId === item.id,
|
|
45
|
-
}, onClick: () => {
|
|
46
|
-
setActiveId(item.id);
|
|
47
|
-
setOpenAside(true);
|
|
48
|
-
} },
|
|
49
|
-
React.createElement(IdentityItem, { id: item.id, active: activeId === item.id }))) }))),
|
|
50
|
-
React.createElement("div", { className: "ant-modal-footer" },
|
|
51
|
-
React.createElement(Space, null,
|
|
52
|
-
React.createElement(Button, { onClick: props.onCancel }, "Cancel"),
|
|
53
|
-
React.createElement(Button, { type: "primary", onClick: () => { var _a; return (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, activeId); } }, "Select")))),
|
|
54
|
-
React.createElement("div", { className: classnames("contact-identity-detail", { "aside-none": !openAside }) },
|
|
55
|
-
React.createElement(Button, { type: "link", className: "ant-modal-close", onClick: () => setOpenAside(false) },
|
|
56
|
-
React.createElement(FAIcon, { icon: faXmarkRegular, className: "ant-modal-close-x identity-close" })),
|
|
57
|
-
React.createElement("h3", { className: "identity-title" }, "Identity Details"),
|
|
58
|
-
React.createElement(IdentifyDetail, { identityId: activeId, isPassport: false })),
|
|
59
|
-
addAble && React.createElement(NewIdentityDialog, { id: id, visible: addAble, updateVisible: onSave })))));
|
|
60
|
-
async function onSave(unitId) {
|
|
61
|
-
setAddAble(false);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
export default ContactIdentitySelectDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { ContactIdentitySelectDialog } from "@voplus/morpho-compliance"
|
|
3
|
+
* instead. This component moved to its own package; this compatibility re-export will be
|
|
4
|
+
* removed in a future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/ContactIdentitySelectDialog";
|
|
65
8
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,qEAAqE,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,qEAAqE,CAAC"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** officer-register id */
|
|
9
|
-
officerId?: string;
|
|
10
|
-
/** member-register id */
|
|
11
|
-
memberId?: string;
|
|
12
|
-
/** controller-register id */
|
|
13
|
-
controllerId?: string;
|
|
14
|
-
/** 是否显示 passport */
|
|
15
|
-
isPassport?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const IdentifyDetail: ({ isPassport, ...props }: IdentifyDetailProps) => React.JSX.Element;
|
|
18
|
-
export default IdentifyDetail;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyDetail } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
@@ -1,87 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
|
|
9
|
-
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
|
10
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
11
|
-
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
12
|
-
import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
|
|
13
|
-
import IdentityInformation from "../IdentityInformation";
|
|
14
|
-
import Scrollbars from "react-custom-scrollbars-2";
|
|
15
|
-
import "./index.css";
|
|
16
|
-
const IdentifyDetail = ({ isPassport = true, ...props }) => {
|
|
17
|
-
const { identityId, concatId, officerId, controllerId, memberId } = props;
|
|
18
|
-
const [number, setNumber] = useState("");
|
|
19
|
-
const [numberEdit, setNumberEdit] = useState(false);
|
|
20
|
-
const [viewIdentity, setViewIdentity] = useState(false);
|
|
21
|
-
const [activeKey, setActiveKey] = useState("ID Details");
|
|
22
|
-
const identity = useIdentity(identityId);
|
|
23
|
-
const identityStore = useIdentityStore();
|
|
24
|
-
const officerStore = useOfficerStore();
|
|
25
|
-
const memberStore = useMemberStore();
|
|
26
|
-
const controllerStore = useControllerStore();
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
setNumber("");
|
|
29
|
-
setViewIdentity(false);
|
|
30
|
-
}, [identityId]);
|
|
31
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
32
|
-
React.createElement(Scrollbars, null,
|
|
33
|
-
React.createElement("div", { className: "identity-detail" },
|
|
34
|
-
React.createElement("div", { className: "identity-info" }, isPassport ? (React.createElement("h2", { className: "identity-passport" },
|
|
35
|
-
React.createElement("span", null, identity ? `${identity === null || identity === void 0 ? void 0 : identity.country} ${identity === null || identity === void 0 ? void 0 : identity.type}` : ""),
|
|
36
|
-
React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null, (identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement("span", { className: "identity-number" },
|
|
37
|
-
!viewIdentity ? identity.number : number,
|
|
38
|
-
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionRegular : faEyeRegular, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))) : null),
|
|
39
|
-
identity && (React.createElement("div", { className: "identity-content" },
|
|
40
|
-
React.createElement("div", { className: "identity-verification" },
|
|
41
|
-
React.createElement(VerificationInformation, { id: identityId })),
|
|
42
|
-
React.createElement(Tabs, { className: "member-tabs", activeKey: activeKey, onChange: onChange, items: [
|
|
43
|
-
{
|
|
44
|
-
key: "ID Details",
|
|
45
|
-
label: "ID Details",
|
|
46
|
-
children: React.createElement(IdentityInformation, { id: identityId }),
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
key: "Activity",
|
|
50
|
-
label: "Activity",
|
|
51
|
-
children: React.createElement(ActivityLog, { id: identity.id, bar: false }),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
key: "Documents",
|
|
55
|
-
label: "Documents",
|
|
56
|
-
children: (React.createElement(DocumentList, { id: identityId, multiple: true, viewTitle: "ID Documents", menuVisible: true })),
|
|
57
|
-
},
|
|
58
|
-
] }))))),
|
|
59
|
-
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })))));
|
|
60
|
-
function onChange(activeKey) {
|
|
61
|
-
setActiveKey(activeKey);
|
|
62
|
-
}
|
|
63
|
-
// spec:1798 — CSP: Selecting an identity assigns it to the originating registration role
|
|
64
|
-
function onSelect(ids) {
|
|
65
|
-
setNumberEdit(false);
|
|
66
|
-
if (ids) {
|
|
67
|
-
if (officerId) {
|
|
68
|
-
officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
|
|
69
|
-
}
|
|
70
|
-
if (controllerId) {
|
|
71
|
-
controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
|
|
72
|
-
}
|
|
73
|
-
if (memberId) {
|
|
74
|
-
memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
async function onReveal() {
|
|
79
|
-
if (!viewIdentity) {
|
|
80
|
-
setViewIdentity(true);
|
|
81
|
-
const data = await identityStore.reveal(identityId);
|
|
82
|
-
setNumber(data.number);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
export default IdentifyDetail;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyDetail } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyDetail";
|
|
87
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** officer-register id */
|
|
9
|
-
officerId?: string;
|
|
10
|
-
/** member-register id */
|
|
11
|
-
memberId?: string;
|
|
12
|
-
/** controller-register id */
|
|
13
|
-
controllerId?: string;
|
|
14
|
-
}) => React.JSX.Element;
|
|
15
|
-
export default IdentifyProperties;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyProperties } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
@@ -1,76 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { useOfficerStore } from "../../../../../../data/officer";
|
|
9
|
-
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
10
|
-
import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
|
|
11
|
-
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
|
12
|
-
import IdentifyQuickViewDialog from "../IdentifyQuickViewDialog";
|
|
13
|
-
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
14
|
-
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
15
|
-
import "./index.css";
|
|
16
|
-
const IdentifyProperties = (props) => {
|
|
17
|
-
const { identityId, concatId, officerId, controllerId, memberId } = props;
|
|
18
|
-
const view = useViewContext();
|
|
19
|
-
const [number, setNumber] = useState("");
|
|
20
|
-
const [numberEdit, setNumberEdit] = useState(false);
|
|
21
|
-
const [viewIdentity, setViewIdentity] = useState(false);
|
|
22
|
-
const [quickView, setQuickView] = useState(false);
|
|
23
|
-
const identity = useIdentity(identityId);
|
|
24
|
-
const identityStore = useIdentityStore();
|
|
25
|
-
const officerStore = useOfficerStore();
|
|
26
|
-
const memberStore = useMemberStore();
|
|
27
|
-
const controllerStore = useControllerStore();
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
setNumber("");
|
|
30
|
-
setViewIdentity(false);
|
|
31
|
-
}, [identityId]);
|
|
32
|
-
return observe(() => (React.createElement("div", { className: "identity-properties" },
|
|
33
|
-
React.createElement(PropertiesSection, { title: "IDENTITY INFORMATION", headerIcon: { icon: faUpRightFromSquareSolid, onIconClick: () => setQuickView(true) }, properties: () => (React.createElement(React.Fragment, null,
|
|
34
|
-
React.createElement(Prop, { label: "Identity No" },
|
|
35
|
-
React.createElement("div", { className: "identity-info" },
|
|
36
|
-
React.createElement("h2", { className: "identity-passport" },
|
|
37
|
-
React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null,
|
|
38
|
-
React.createElement(FAIcon, { icon: faAddressCardRegular }),
|
|
39
|
-
(identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement(Row, { className: "identity-number" },
|
|
40
|
-
React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 20, className: "number" },
|
|
41
|
-
React.createElement(Tooltip, { title: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView"
|
|
42
|
-
? undefined
|
|
43
|
-
: !viewIdentity
|
|
44
|
-
? identity.number
|
|
45
|
-
: number }, !viewIdentity ? identity.number : number)),
|
|
46
|
-
React.createElement(Col, { span: (view === null || view === void 0 ? void 0 : view.Type) === "QuickView" ? undefined : 4 },
|
|
47
|
-
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVisionSolid : faEyeSolid, onClick: onReveal })))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }),
|
|
48
|
-
identity ? React.createElement("span", { className: "identity_country" }, identity === null || identity === void 0 ? void 0 : identity.country) : null))),
|
|
49
|
-
React.createElement("div", { className: "identity-verification" },
|
|
50
|
-
React.createElement(VerificationInformation, { id: identityId, title: "" })))) }),
|
|
51
|
-
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
|
|
52
|
-
quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, onCancel: () => setQuickView(false) })))));
|
|
53
|
-
function onSelect(ids) {
|
|
54
|
-
setNumberEdit(false);
|
|
55
|
-
if (ids) {
|
|
56
|
-
if (officerId) {
|
|
57
|
-
officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
|
|
58
|
-
}
|
|
59
|
-
if (controllerId) {
|
|
60
|
-
controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
|
|
61
|
-
}
|
|
62
|
-
if (memberId) {
|
|
63
|
-
memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
async function onReveal() {
|
|
68
|
-
if (!viewIdentity) {
|
|
69
|
-
setViewIdentity(true);
|
|
70
|
-
const data = await identityStore.reveal(identityId);
|
|
71
|
-
setNumber(data.number);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export default IdentifyProperties;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyProperties } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyProperties";
|
|
76
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,4DAA4D,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default IdentifyQuickViewDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyQuickViewDialog } from "@voplus/morpho-compliance" instead.
|
|
3
|
+
* This component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { useIdentity } from "../../../../../../data/identity";
|
|
9
|
-
import "./index.css";
|
|
10
|
-
const IdentifyQuickViewDialog = (props) => {
|
|
11
|
-
const { identityId, identityName } = props;
|
|
12
|
-
// spec:1810 — CSP: Identity quick-view dialog surfaces load errors instead of content
|
|
13
|
-
const [error, setError] = useState(null);
|
|
14
|
-
const identity = useIdentity(identityId, { onError: (e) => setError(e) });
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setError(null);
|
|
17
|
-
}, [identityId]);
|
|
18
|
-
return observe(() => (React.createElement(QuickViewDialog, { id: props.identityId, visible: props.visible, onCancel: props.onCancel, error: error, header: React.createElement("div", { className: "identify-quickView-dialog-header" },
|
|
19
|
-
React.createElement("div", { className: "identify-quickView-title" }, `${identityName} Identity`),
|
|
20
|
-
React.createElement("div", { className: "tools-bar" },
|
|
21
|
-
React.createElement(ToolBar, { id: props.identityId, showMenu: false },
|
|
22
|
-
React.createElement(Close, { action: props.onCancel }),
|
|
23
|
-
React.createElement(IdentityMenu, { id: props.identityId, size: "middle" })))), buttons: [{ name: "Document" }, { name: "Activities" }] },
|
|
24
|
-
React.createElement("div", { className: "identify-quickView-dialog-content" },
|
|
25
|
-
React.createElement(IdentityInformation, { id: identityId })))));
|
|
26
|
-
};
|
|
27
|
-
export default IdentifyQuickViewDialog;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentifyQuickViewDialog } from "@voplus/morpho-compliance" instead.
|
|
3
|
+
* This component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentifyQuickViewDialog";
|
|
28
8
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,iEAAiE,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default IdentityChange;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentityChange } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
@@ -1,29 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const v = Object.assign({}, toJS(props.value));
|
|
9
|
-
Object.assign(v, update);
|
|
10
|
-
if (props.onChange) {
|
|
11
|
-
props.onChange(v);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
return observe(() => (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
|
|
15
|
-
React.createElement(Form.Item, { label: "Country", name: "country", rules: [{ required: true }] },
|
|
16
|
-
React.createElement(InputCountry, { defaultValue: props.value.country, onChange: (e) => handleUpdate({ country: e }) })),
|
|
17
|
-
React.createElement(Form.Item, { label: "Identify Type", name: "identifyType", rules: [{ required: true }] },
|
|
18
|
-
React.createElement(Select, { defaultValue: props.value.type, value: props.value.type, onChange: (value) => handleUpdate({ type: value }), options: [
|
|
19
|
-
{ value: "Passport", label: "International Passport" },
|
|
20
|
-
{ value: "IdentityCard", label: "Identify Card" },
|
|
21
|
-
{ value: "BusinessRegistration", label: "Business Registration" },
|
|
22
|
-
] })),
|
|
23
|
-
React.createElement(Form.Item, { label: "Identify #", name: "identity", rules: [{ required: true }] },
|
|
24
|
-
React.createElement(Input, { defaultValue: props.value.number, value: props.value.number, onChange: (value) => handleUpdate({ number: value.target.value }) })),
|
|
25
|
-
React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: props.value.type === "Passport" }] },
|
|
26
|
-
React.createElement(DatePicker, { defaultValue: props.value.expiryDate ? utcdayjs(props.value.expiryDate) : undefined, onChange: (date, dateString) => handleUpdate({ expiryDate: dateString }) })))));
|
|
27
|
-
};
|
|
28
|
-
export default IdentityChange;
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Import { IdentityChange } from "@voplus/morpho-compliance" instead. This
|
|
3
|
+
* component moved to its own package; this compatibility re-export will be removed in a
|
|
4
|
+
* future release.
|
|
5
|
+
*/
|
|
6
|
+
export * from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
7
|
+
export { default } from "@voplus/morpho-compliance/es/components/IdentityChange";
|
|
29
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityChange/index.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentityChange/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,wDAAwD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC"}
|