@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.
Files changed (83) hide show
  1. package/es/data/identity/identity-events/index.d.ts +6 -3
  2. package/es/data/identity/identity-events/index.js +6 -3
  3. package/es/data/identity/identity-events/index.js.map +1 -1
  4. package/es/data/identity/index.d.ts +6 -4
  5. package/es/data/identity/index.js +6 -4
  6. package/es/data/identity/index.js.map +1 -1
  7. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +4 -1
  8. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
  9. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +7 -9
  10. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js +7 -64
  11. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.js.map +1 -1
  12. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.d.ts +7 -18
  13. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +7 -86
  14. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
  15. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +7 -15
  16. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +7 -75
  17. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
  18. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +7 -9
  19. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +7 -27
  20. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
  21. package/es/modules/corporate/company/identity/components/IdentityChange/index.d.ts +7 -8
  22. package/es/modules/corporate/company/identity/components/IdentityChange/index.js +7 -28
  23. package/es/modules/corporate/company/identity/components/IdentityChange/index.js.map +1 -1
  24. package/es/modules/corporate/company/identity/components/IdentityInformation/index.d.ts +7 -5
  25. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js +7 -62
  26. package/es/modules/corporate/company/identity/components/IdentityInformation/index.js.map +1 -1
  27. package/es/modules/corporate/company/identity/components/IdentityItem/index.d.ts +7 -8
  28. package/es/modules/corporate/company/identity/components/IdentityItem/index.js +7 -38
  29. package/es/modules/corporate/company/identity/components/IdentityItem/index.js.map +1 -1
  30. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +7 -8
  31. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js +7 -18
  32. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.js.map +1 -1
  33. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.d.ts +7 -10
  34. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js +7 -15
  35. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.js.map +1 -1
  36. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +4 -1
  37. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
  38. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +4 -1
  39. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
  40. package/package.json +2 -1
  41. package/es/data/identity/IdentityStore.d.ts +0 -35
  42. package/es/data/identity/IdentityStore.js +0 -119
  43. package/es/data/identity/IdentityStore.js.map +0 -1
  44. package/es/data/identity/hooks.d.ts +0 -6
  45. package/es/data/identity/hooks.js +0 -14
  46. package/es/data/identity/hooks.js.map +0 -1
  47. package/es/data/identity/identity-events/useAutoUpdateListData.d.ts +0 -4
  48. package/es/data/identity/identity-events/useAutoUpdateListData.js +0 -13
  49. package/es/data/identity/identity-events/useAutoUpdateListData.js.map +0 -1
  50. package/es/data/identity/identity-events/useOnDeleteIdentity.d.ts +0 -4
  51. package/es/data/identity/identity-events/useOnDeleteIdentity.js +0 -16
  52. package/es/data/identity/identity-events/useOnDeleteIdentity.js.map +0 -1
  53. package/es/data/identity/identity-events/useOnNewIdentity.d.ts +0 -4
  54. package/es/data/identity/identity-events/useOnNewIdentity.js +0 -16
  55. package/es/data/identity/identity-events/useOnNewIdentity.js.map +0 -1
  56. package/es/data/identity/interfaces.d.ts +0 -26
  57. package/es/data/identity/interfaces.js +0 -2
  58. package/es/data/identity/interfaces.js.map +0 -1
  59. package/es/data/identity/types.d.ts +0 -50
  60. package/es/data/identity/types.js +0 -2
  61. package/es/data/identity/types.js.map +0 -1
  62. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.css +0 -89
  63. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.css +0 -76
  64. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.css +0 -67
  65. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.css +0 -44
  66. package/es/modules/corporate/company/identity/components/IdentityInformation/state.d.ts +0 -14
  67. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js +0 -94
  68. package/es/modules/corporate/company/identity/components/IdentityInformation/state.js.map +0 -1
  69. package/es/modules/corporate/company/identity/components/IdentityItem/index.css +0 -45
  70. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.d.ts +0 -6
  71. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js +0 -40
  72. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step1.js.map +0 -1
  73. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.d.ts +0 -3
  74. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js +0 -52
  75. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step2.js.map +0 -1
  76. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.d.ts +0 -3
  77. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js +0 -46
  78. package/es/modules/corporate/company/identity/components/NewIdentityDialog/Step3.js.map +0 -1
  79. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.css +0 -65
  80. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -44
  81. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js +0 -188
  82. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.js.map +0 -1
  83. package/es/modules/corporate/company/identity/controls/IdentityMenu/index.css +0 -32
@@ -1,52 +0,0 @@
1
- import React from "react";
2
- import { Button, Form, Input, Select, message } from "antd";
3
- import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
4
- import { observe, UTCDatePicker as DatePicker, InputCountry } from "@voplus/morpho-ui";
5
- import { runInAction } from "mobx";
6
- import { useLegalContext } from "./state";
7
- const Step2 = () => {
8
- const legal = useLegalContext();
9
- return observe(() => (React.createElement(React.Fragment, null,
10
- React.createElement("div", { className: "select-legal-contact_title" }, "Identify Info"),
11
- React.createElement("div", { className: "select-legal-contact_content" },
12
- React.createElement(Form, { layout: "vertical" },
13
- React.createElement(Form.Item, { label: legal.unitType === "Organization" ? "Country of Registration" : "Country", name: "country", rules: [{ required: true }] },
14
- React.createElement(InputCountry, { defaultValue: legal.country, onChange: (country) => (legal.country = country) })),
15
- legal.unitType === "Person" && (React.createElement(Form.Item, { label: "Identify Type", name: "identifyType", rules: [{ required: true }] },
16
- React.createElement(Select, { defaultValue: legal.type, value: legal.type, onChange: (value) => {
17
- legal.type = value;
18
- }, 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: legal.unitType === "Organization" ? "Registration #" : "Identify #", name: "identity", rules: [{ required: true }] },
24
- React.createElement(Input, { defaultValue: legal.number, value: legal.number, onChange: (e) => {
25
- legal.number = e.target.value;
26
- } })),
27
- legal.unitType === "Person" && (React.createElement(Form.Item, { label: "Expiry Date", name: "expiryDate", rules: [{ required: legal.type === "Passport" }] },
28
- React.createElement(DatePicker, { defaultValue: legal.expiryDate ? utcdayjs(legal.expiryDate) : undefined, onChange: (date, dateString) => {
29
- legal.expiryDate = dateString;
30
- } }))))),
31
- React.createElement("div", { className: "select-legal-contact_footer" },
32
- React.createElement(Button, { size: "middle", onClick: () => {
33
- legal.step -= 1;
34
- } }, "Back"),
35
- React.createElement(Button, { size: "middle", type: "primary", onClick: next }, "Next")))));
36
- // spec:1803 — CSP: Identity type Business Registration auto-applied for Organization contacts
37
- function next() {
38
- runInAction(() => {
39
- if (legal.unitType === "Organization")
40
- legal.type = "BusinessRegistration";
41
- if (!legal.number || !legal.country) {
42
- message.warning(legal.unitType === "Organization"
43
- ? "Country && Registration are required"
44
- : "Country && Identify are required");
45
- return;
46
- }
47
- legal.step += 1;
48
- });
49
- }
50
- };
51
- export default Step2;
52
- //# sourceMappingURL=Step2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Step2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewIdentityDialog/Step2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACd,6BAAK,SAAS,EAAC,4BAA4B,oBAAoB;QAE/D,6BAAK,SAAS,EAAC,8BAA8B;YAC5C,oBAAC,IAAI,IAAC,MAAM,EAAC,UAAU;gBACtB,oBAAC,IAAI,CAAC,IAAI,I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K,cAAc;oBAChC,CAAC,CAAC,sCAAsC;oBACxC,CAAC,CAAC,kCAAkC,CACrC,CAAC;gBACF,OAAO;YACR,CAAC;YACD,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC;QACjB,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const Step3: () => React.JSX.Element;
3
- export default Step3;
@@ -1,46 +0,0 @@
1
- import React from "react";
2
- import { Button, message } from "antd";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { runInAction } from "mobx";
5
- import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
6
- import { useIdentityStore } from "../../../../../../data/identity";
7
- import { useLegalContext } from "./state";
8
- const Step3 = () => {
9
- const legal = useLegalContext();
10
- const identityStore = useIdentityStore();
11
- return observe(() => (React.createElement(React.Fragment, null,
12
- React.createElement("div", { className: "select-legal-contact_content page5" },
13
- React.createElement("div", { className: "full-name" }, legal.fullName),
14
- React.createElement("div", { className: "padding-bottom-20" },
15
- legal.country,
16
- "\uFF08",
17
- legal.number,
18
- legal.expiryDate ? (React.createElement(React.Fragment, null,
19
- "\u00A0 expiryDate: \u00A0 ",
20
- React.createElement(UTCShortDate, { value: legal.expiryDate }))) : (""),
21
- "\uFF09")),
22
- React.createElement("div", { className: "select-legal-contact_footer" },
23
- React.createElement(Button, { size: "middle", onClick: () => runInAction(() => (legal.step -= 1)) }, "Back"),
24
- React.createElement(Button, { size: "middle", type: "primary", loading: legal.saving, onClick: create }, "Create")))));
25
- /** create a new contact */
26
- async function create() {
27
- const Option = {
28
- FullName: legal.fullName,
29
- Number: legal.number,
30
- Country: legal.country,
31
- ExpiryDate: legal.expiryDate,
32
- Type: legal.type,
33
- UnitId: legal.unitId,
34
- };
35
- runInAction(() => (legal.saving = true));
36
- await identityStore
37
- .create({ data: Option, error: (error) => message.error(error.message) })
38
- .then((res) => {
39
- if (legal.props.updateVisible && res.unitId)
40
- legal.props.updateVisible(res.unitId);
41
- runInAction(() => (legal.saving = false));
42
- });
43
- }
44
- };
45
- export default Step3;
46
- //# sourceMappingURL=Step3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Step3.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewIdentityDialog/Step3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,KAAK,GAAG,GAAG,EAAE;IAClB,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QAEd,6BAAK,SAAS,EAAC,oCAAoC;YAClD,6BAAK,SAAS,EAAC,WAAW,IAAE,KAAK,CAAC,QAAQ,CAAO;YAEjD,6BAAK,SAAS,EAAC,mBAAmB;gBAChC,KAAK,CAAC,OAAO;;gBAAG,KAAK,CAAC,MAAM;gBAC5B,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CACnB;;oBAC2B,oBAAC,YAAY,IAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAI,CACjE,CACH,CAAC,CAAC,CAAC,CACH,EAAE,CACF;yBAEI,CACD;QACN,6BAAK,SAAS,EAAC,6BAA6B;YAC3C,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,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0 !important;
4
- }
5
-
6
- h3,
7
- h4 {
8
- margin-bottom: 0;
9
- }
10
-
11
- .select-legal-contact_title {
12
- padding: 0 20px 15px 20px;
13
- color: rgba(0, 0, 0, 0.85);
14
- font-weight: 500;
15
- font-size: 16px;
16
- line-height: 17px;
17
- border-bottom: 1px solid #f0f0f0;
18
- }
19
-
20
- .select-legal-contact_content {
21
- padding: 15px 20px;
22
-
23
- &.page5 {
24
- padding: 15px 30px;
25
- }
26
-
27
- .ant-radio-group,
28
- .ant-radio-wrapper {
29
- display: block;
30
- }
31
-
32
- .full-name-displayed {
33
- padding: 10px 0;
34
- border-bottom: 1px solid #f0f0f0;
35
- }
36
-
37
- .full-name {
38
- padding-bottom: 8px;
39
- color: rgba(0, 0, 0, 0.85);
40
- font-weight: 500;
41
- font-size: 16px;
42
- }
43
-
44
- .padding-top-15 {
45
- padding-top: 15px;
46
- }
47
- }
48
-
49
- .ant-tabs .ant-tabs-tabpane {
50
- padding: 0 20px;
51
- }
52
-
53
- .ant-form .ant-form-item {
54
- margin-bottom: 20px;
55
- }
56
-
57
- .select-legal-contact_footer {
58
- padding: 0 20px;
59
- text-align: right;
60
-
61
- & .ant-btn {
62
- margin-left: 10px;
63
- }
64
- }
65
- }
@@ -1,44 +0,0 @@
1
- import { IIdentity } from "../../../../../../data/identity";
2
- export type LegalProps = {
3
- visible: boolean;
4
- updateVisible?: (unitId?: string) => Promise<void>;
5
- };
6
- export declare class State {
7
- props: LegalProps;
8
- /** step of Add Legal Contact */
9
- step: number;
10
- /** type of unit of the new officer */
11
- unitType: string;
12
- /** id of identity */
13
- identityId: string;
14
- /** id of unit of the new officer */
15
- unitId: string;
16
- /** */
17
- fistName: string;
18
- /** last name */
19
- lastName: string;
20
- /** */
21
- middleName: string;
22
- /** number of identity of the new officer */
23
- number: string | number;
24
- /** country of identity of the new officer */
25
- country: string;
26
- /** type of identity of the new officer */
27
- type: string;
28
- /** expiryDate of identity(Passport required) */
29
- expiryDate: string;
30
- /** list of unit */
31
- contactList: IIdentity[];
32
- /** order name by Western or Eastern */
33
- orderName: string;
34
- /** key of tabPane of Page4 */
35
- tabKey: "Contact" | "Identify";
36
- /** loading of load identity list */
37
- loading: boolean;
38
- /** loading of save identity item */
39
- saving: boolean;
40
- constructor();
41
- get fullName(): string;
42
- }
43
- export declare const LegalContext: import("react").Context<State>;
44
- export declare const useLegalContext: () => State;
@@ -1,188 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { computed, makeAutoObservable, observable } from "mobx";
3
- import { createContext, useContext } from "react";
4
- export class State {
5
- constructor() {
6
- Object.defineProperty(this, "props", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: void 0
11
- });
12
- /** step of Add Legal Contact */
13
- Object.defineProperty(this, "step", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: 1
18
- });
19
- /** type of unit of the new officer */
20
- Object.defineProperty(this, "unitType", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: "Person"
25
- });
26
- /** id of identity */
27
- Object.defineProperty(this, "identityId", {
28
- enumerable: true,
29
- configurable: true,
30
- writable: true,
31
- value: ""
32
- });
33
- /** id of unit of the new officer */
34
- Object.defineProperty(this, "unitId", {
35
- enumerable: true,
36
- configurable: true,
37
- writable: true,
38
- value: ""
39
- });
40
- /** */
41
- Object.defineProperty(this, "fistName", {
42
- enumerable: true,
43
- configurable: true,
44
- writable: true,
45
- value: ""
46
- });
47
- /** last name */
48
- Object.defineProperty(this, "lastName", {
49
- enumerable: true,
50
- configurable: true,
51
- writable: true,
52
- value: ""
53
- });
54
- /** */
55
- Object.defineProperty(this, "middleName", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: ""
60
- });
61
- /** number of identity of the new officer */
62
- Object.defineProperty(this, "number", {
63
- enumerable: true,
64
- configurable: true,
65
- writable: true,
66
- value: ""
67
- });
68
- /** country of identity of the new officer */
69
- Object.defineProperty(this, "country", {
70
- enumerable: true,
71
- configurable: true,
72
- writable: true,
73
- value: ""
74
- });
75
- /** type of identity of the new officer */
76
- Object.defineProperty(this, "type", {
77
- enumerable: true,
78
- configurable: true,
79
- writable: true,
80
- value: "Passport"
81
- });
82
- /** expiryDate of identity(Passport required) */
83
- Object.defineProperty(this, "expiryDate", {
84
- enumerable: true,
85
- configurable: true,
86
- writable: true,
87
- value: void 0
88
- });
89
- /** list of unit */
90
- Object.defineProperty(this, "contactList", {
91
- enumerable: true,
92
- configurable: true,
93
- writable: true,
94
- value: []
95
- });
96
- /** order name by Western or Eastern */
97
- Object.defineProperty(this, "orderName", {
98
- enumerable: true,
99
- configurable: true,
100
- writable: true,
101
- value: "Western"
102
- });
103
- /** key of tabPane of Page4 */
104
- Object.defineProperty(this, "tabKey", {
105
- enumerable: true,
106
- configurable: true,
107
- writable: true,
108
- value: "Contact"
109
- });
110
- /** loading of load identity list */
111
- Object.defineProperty(this, "loading", {
112
- enumerable: true,
113
- configurable: true,
114
- writable: true,
115
- value: true
116
- });
117
- /** loading of save identity item */
118
- Object.defineProperty(this, "saving", {
119
- enumerable: true,
120
- configurable: true,
121
- writable: true,
122
- value: false
123
- });
124
- makeAutoObservable(this);
125
- }
126
- // spec:1804 — CSP: Western/Eastern name order toggle controls displayed full name
127
- get fullName() {
128
- return this.orderName === "Western"
129
- ? (this.fistName ? this.fistName + " " : "") +
130
- (this.middleName ? this.middleName + " " : "") +
131
- (this.lastName ? this.lastName + " " : "")
132
- : (this.lastName ? this.lastName + " " : "") + (this.fistName ? this.fistName + " " : "");
133
- }
134
- }
135
- __decorate([
136
- observable
137
- ], State.prototype, "step", void 0);
138
- __decorate([
139
- observable
140
- ], State.prototype, "unitType", void 0);
141
- __decorate([
142
- observable
143
- ], State.prototype, "identityId", void 0);
144
- __decorate([
145
- observable
146
- ], State.prototype, "unitId", void 0);
147
- __decorate([
148
- observable
149
- ], State.prototype, "fistName", void 0);
150
- __decorate([
151
- observable
152
- ], State.prototype, "lastName", void 0);
153
- __decorate([
154
- observable
155
- ], State.prototype, "middleName", void 0);
156
- __decorate([
157
- observable
158
- ], State.prototype, "number", void 0);
159
- __decorate([
160
- observable
161
- ], State.prototype, "country", void 0);
162
- __decorate([
163
- observable
164
- ], State.prototype, "type", void 0);
165
- __decorate([
166
- observable
167
- ], State.prototype, "expiryDate", void 0);
168
- __decorate([
169
- observable
170
- ], State.prototype, "contactList", void 0);
171
- __decorate([
172
- observable
173
- ], State.prototype, "orderName", void 0);
174
- __decorate([
175
- observable
176
- ], State.prototype, "tabKey", void 0);
177
- __decorate([
178
- observable
179
- ], State.prototype, "loading", void 0);
180
- __decorate([
181
- observable
182
- ], State.prototype, "saving", void 0);
183
- __decorate([
184
- computed
185
- ], State.prototype, "fullName", null);
186
- export const LegalContext = createContext(null);
187
- export const useLegalContext = () => useContext(LegalContext);
188
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/NewIdentityDialog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOlD,MAAM,OAAO,KAAK;IAmCjB;QAlCO;;;;;WAAmB;QAC1B,gCAAgC;QACb;;;;mBAAO,CAAC;WAAC;QAC5B,sCAAsC;QACnB;;;;mBAAW,QAAQ;WAAC;QACvC,qBAAqB;QACF;;;;mBAAa,EAAE;WAAC;QACnC,oCAAoC;QACjB;;;;mBAAS,EAAE;WAAC;QAC/B,MAAM;QACa;;;;mBAAW,EAAE;WAAC;QACjC,gBAAgB;QACG;;;;mBAAW,EAAE;WAAC;QACjC,MAAM;QACa;;;;mBAAa,EAAE;WAAC;QACnC,4CAA4C;QACzB;;;;mBAA0B,EAAE;WAAC;QAChD,6CAA6C;QAC1B;;;;mBAAU,EAAE;WAAC;QAChC,0CAA0C;QACvB;;;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;AAE7B;IAAlB,UAAU;sCAAqB;AAEb;IAAlB,UAAU;mCAA0B;AAElB;IAAlB,UAAU;yCAA4B;AAEpB;IAAlB,UAAU;0CAAsC;AAE9B;IAAlB,UAAU;wCAA8B;AAEtB;IAAlB,UAAU;qCAAmD;AAE3C;IAAlB,UAAU;sCAAuB;AAEf;IAAlB,UAAU;qCAAuB;AAOxB;IAAT,QAAQ;qCAMR;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAQ,IAAW,CAAC,CAAC;AAE9D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC"}
@@ -1,32 +0,0 @@
1
- .identity-menu {
2
- list-style-type: none;
3
- background-color: #fff;
4
- background-clip: padding-box;
5
- outline: none;
6
- border-radius: 5px !important;
7
- box-shadow: 0px 3px 6px rgba(119, 119, 119, 0.14) !important;
8
- padding: 4px 8px !important;
9
-
10
- .ant-btn {
11
- display: block;
12
- width: 100%;
13
- padding: 0 12px;
14
- height: 34px;
15
- color: #666;
16
- text-align: left;
17
-
18
- &[disabled] {
19
- color: rgba(0, 0, 0, 0.25);
20
- }
21
-
22
- &:hover {
23
- background-color: #94cdff !important;
24
- box-shadow: 0px 3px 6px rgba(99, 99, 99, 0.16) !important;
25
- border-radius: 5px !important;
26
- }
27
-
28
- > span {
29
- margin-left: 10px;
30
- }
31
- }
32
- }