@voplus/morpho-csp 1.2.128 → 1.2.130

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 (152) hide show
  1. package/es/components/Header/index.less +20 -20
  2. package/es/components/RegisteresMenuItem/index.less +10 -10
  3. package/es/modules/account/components/AccountOrganizations/index.less +26 -26
  4. package/es/modules/account/components/AccountPropertiesView/index.less +10 -10
  5. package/es/modules/account/pages/AccountDefaultView/index.less +8 -8
  6. package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -5
  7. package/es/modules/corporate/clda/components/CLDAItem/index.less +41 -41
  8. package/es/modules/corporate/clda/components/CLDAListView/index.less +30 -30
  9. package/es/modules/corporate/clda/components/CLDAProperties/index.less +15 -15
  10. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.less +10 -10
  11. package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.less +13 -13
  12. package/es/modules/corporate/clda/components/CLDASendForm/index.less +47 -47
  13. package/es/modules/corporate/clda/components/NewCLDAForm/index.less +6 -6
  14. package/es/modules/corporate/clda/controls/CLDAStatusButton/index.less +58 -58
  15. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.less +8 -8
  16. package/es/modules/corporate/clda/controls/ModeIcon/index.less +20 -20
  17. package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.less +14 -14
  18. package/es/modules/corporate/clda/pages/CLDAClientView/index.less +84 -84
  19. package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +58 -59
  20. package/es/modules/corporate/clda/pages/ChangeAddress2021/index.less +40 -40
  21. package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +91 -91
  22. package/es/modules/corporate/company/components/CompanyDetailsView/index.less +40 -40
  23. package/es/modules/corporate/company/components/InlineEditAddress/index.less +16 -16
  24. package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +41 -41
  25. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +51 -51
  26. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +24 -24
  27. package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +5 -5
  28. package/es/modules/corporate/company/controls/CorporateMenu/index.less +35 -35
  29. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.less +64 -64
  30. package/es/modules/corporate/company/identity/components/IdentifyDetail/index.less +61 -61
  31. package/es/modules/corporate/company/identity/components/IdentityItem/index.less +48 -48
  32. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +55 -55
  33. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +59 -59
  34. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +54 -54
  35. package/es/modules/corporate/company/member-register/components/CompanyMemberAvatar/index.less +7 -7
  36. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +35 -35
  37. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +12 -12
  38. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +44 -44
  39. package/es/modules/corporate/company/member-register/components/Details/index.less +14 -14
  40. package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less +12 -12
  41. package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less +8 -8
  42. package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +6 -6
  43. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +40 -40
  44. package/es/modules/corporate/company/officer-register/components/OfficerList/index.less +12 -12
  45. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +44 -44
  46. package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less +5 -5
  47. package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +6 -6
  48. package/es/modules/corporate/company/pages/CompanyDefaultView/index.less +67 -67
  49. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.less +11 -11
  50. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +72 -72
  51. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +16 -16
  52. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +89 -89
  53. package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.less +5 -5
  54. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +89 -89
  55. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +20 -20
  56. package/es/modules/corporate/components/DocumentIconList/index.less +14 -14
  57. package/es/modules/corporate/components/Statement/index.less +16 -16
  58. package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +8 -8
  59. package/es/modules/corporate/filing-record/components/FilingRecordItem/index.less +12 -12
  60. package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +56 -56
  61. package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.less +71 -71
  62. package/es/modules/corporate/legal-generation/components/SettingDialog/index.less +14 -14
  63. package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.less +72 -72
  64. package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.less +5 -5
  65. package/es/modules/corporate/service/components/NewServiceDialog/index.less +27 -27
  66. package/es/modules/corporate/service/components/ServiceItem/index.less +23 -23
  67. package/es/modules/corporate/service-type/components/ServiceTypePropertiesView/index.less +48 -48
  68. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -30
  69. package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.less +11 -11
  70. package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.less +84 -84
  71. package/es/modules/corporate/share-options-register/components/ShareOptionList/index.less +22 -22
  72. package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/index.less +89 -89
  73. package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +89 -89
  74. package/es/modules/order/components/OrderItem/index.less +21 -21
  75. package/es/modules/order/components/OrderItems/index.less +48 -48
  76. package/es/modules/order/components/OrderPropertiesView/index.less +13 -13
  77. package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -41
  78. package/es/modules/order/controls/OrderLabel/index.less +21 -21
  79. package/es/modules/order/pages/OrderDefaultView/index.less +13 -13
  80. package/es/modules/self-registration/clda-form/ApplicationProcessing/index.less +37 -37
  81. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +25 -25
  82. package/es/modules/self-registration/clda-form/Download/index.less +41 -41
  83. package/es/modules/self-registration/clda-form/IncorporaitonCart/index.less +26 -26
  84. package/es/modules/self-registration/clda-form/Upload/index.less +15 -15
  85. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js +138 -103
  86. package/es/modules/self-registration/clda-form/components/BVICompanyInfo/index.js.map +1 -1
  87. package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.less +13 -13
  88. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +95 -83
  89. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
  90. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +19 -19
  91. package/es/modules/self-registration/clda-form/components/InternalUse/index.js +2 -2
  92. package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
  93. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js +2 -2
  94. package/es/modules/self-registration/clda-form/components/ManagingDirectorList/index.js.map +1 -1
  95. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +2 -2
  96. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
  97. package/es/modules/self-registration/clda-form/components/MemberInfo/index.less +201 -201
  98. package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.less +12 -12
  99. package/es/modules/self-registration/clda-form/components/OfficerList/index.js +2 -2
  100. package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
  101. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js +2 -2
  102. package/es/modules/self-registration/clda-form/components/SecretaryList/index.js.map +1 -1
  103. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +63 -54
  104. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
  105. package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +50 -50
  106. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +2 -2
  107. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
  108. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +2 -2
  109. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
  110. package/es/modules/self-registration/clda-form/incorporation/context.d.ts +7 -0
  111. package/es/modules/self-registration/clda-form/incorporation/{sgp/state.js → context.js} +3 -3
  112. package/es/modules/self-registration/clda-form/incorporation/context.js.map +1 -0
  113. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +2 -2
  114. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
  115. package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +36 -36
  116. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +45 -45
  117. package/es/modules/self-registration/components/Card/index.less +51 -51
  118. package/es/modules/self-registration/components/CheckSection/index.less +20 -20
  119. package/es/modules/self-registration/components/MemberCard/index.less +53 -53
  120. package/es/modules/self-registration/components/StripeForm/index.less +36 -36
  121. package/es/modules/self-registration/controls/Blink/index.less +27 -27
  122. package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +2 -0
  123. package/es/modules/self-registration/controls/BusinessNameInput/index.js +14 -7
  124. package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -1
  125. package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.d.ts +1 -0
  126. package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js +1 -1
  127. package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -1
  128. package/es/modules/self-registration/controls/Section/index.less +79 -79
  129. package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +12 -12
  130. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.less +10 -10
  131. package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.less +20 -20
  132. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/index.less +5 -5
  133. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +52 -52
  134. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
  135. package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -12
  136. package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -13
  137. package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -14
  138. package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -75
  139. package/es/modules/self-registration/shopping-cart/components/styles.less +23 -23
  140. package/es/modules/self-registration/shopping-cart/pages.less +6 -6
  141. package/es/obsolete/OfficerRegisterDefaultView/index.less +23 -23
  142. package/es/obsolete/controller-register/components/ControllerInformation/ControllerPropertiesView/index.less +39 -39
  143. package/es/obsolete/controller-register/components/ControllerItem/index.less +29 -29
  144. package/es/obsolete/controller-register/components/ControllerList/index.less +12 -12
  145. package/es/obsolete/controller-register/pages/ControllerDefaultView/index.less +1 -1
  146. package/es/style/common.less +66 -66
  147. package/package.json +1 -1
  148. package/es/modules/self-registration/clda-form/incorporation/bvi/state.d.ts +0 -7
  149. package/es/modules/self-registration/clda-form/incorporation/bvi/state.js +0 -20
  150. package/es/modules/self-registration/clda-form/incorporation/bvi/state.js.map +0 -1
  151. package/es/modules/self-registration/clda-form/incorporation/sgp/state.d.ts +0 -7
  152. package/es/modules/self-registration/clda-form/incorporation/sgp/state.js.map +0 -1
@@ -11,113 +11,86 @@ import Section from "../../../controls/Section";
11
11
  import { observe } from "@voplus/morpho-ui";
12
12
  import { runInAction } from "mobx";
13
13
  import styles from "./index.less";
14
- import { useIncorporationSGPFormContext } from "../../incorporation/sgp/state";
14
+ import { useIncorporationFormContext } from "../../incorporation/context";
15
15
  import { useValidates } from "@voplus/morpho-data";
16
16
  const BVICompanyInfo = (props) => {
17
17
  const { id } = props;
18
- const content = useCLDAForm(id).content;
18
+ const incorporationForm = useCLDAForm(id);
19
19
  const store = useCLDAFormStore();
20
- const context = useIncorporationSGPFormContext();
20
+ const context = useIncorporationFormContext();
21
21
  const checks = useValidates((c) => ({
22
- name: c.validate(() => (content === null || content === void 0 ? void 0 : content.legalEntityName1) && (content === null || content === void 0 ? void 0 : content.legalEntityName2) && (content === null || content === void 0 ? void 0 : content.legalEntityName3), "Business name cannot be empty."),
23
- businessActivity: c.validate(() => content === null || content === void 0 ? void 0 : content.businessActivitiy, "Choose at least one business activity."),
24
- tradingAddress: c.validate(() => { var _a, _b; return ((_a = content.tradingAddress) === null || _a === void 0 ? void 0 : _a.line1) && ((_b = content.tradingAddress) === null || _b === void 0 ? void 0 : _b.country); }, "A valid local address is required."),
25
- recordAddress: c.validate(() => { var _a, _b; return ((_a = content.recordAddress) === null || _a === void 0 ? void 0 : _a.line1) && ((_b = content.recordAddress) === null || _b === void 0 ? void 0 : _b.country); }, "A valid local address is required."),
26
- }), [content]);
27
- return observe(() => (React.createElement("div", { className: styles.companyInfo },
28
- React.createElement(Section, { className: "business-name", title: React.createElement(React.Fragment, null,
29
- React.createElement(FontAwesomeIcon, { icon: faAddressBook }),
30
- "Business Name ",
31
- React.createElement(BusinessNameTip, null)) },
32
- React.createElement(InlineEdit, { defaultValue: content === null || content === void 0 ? void 0 : content.legalEntityName1, editTrigger: "both", editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, (content === null || content === void 0 ? void 0 : content.legalEntityName1) ? (React.createElement("span", null, content.legalEntityName1)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 1")))), editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName1: v } }) }),
33
- React.createElement(InlineEdit, { defaultValue: content === null || content === void 0 ? void 0 : content.legalEntityName2, editTrigger: "both", editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, (content === null || content === void 0 ? void 0 : content.legalEntityName2) ? (React.createElement("span", null, content.legalEntityName2)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 2")))), editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName2: v } }) }),
34
- React.createElement(InlineEdit, { defaultValue: content === null || content === void 0 ? void 0 : content.legalEntityName3, editTrigger: "both", editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, (content === null || content === void 0 ? void 0 : content.legalEntityName3) ? (React.createElement("span", null, content.legalEntityName3)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 3")))), editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName3: v } }) }),
35
- checks.name.error && React.createElement("span", { className: "warning" }, checks.name.message)),
36
- React.createElement(Section, { className: "business-activities", title: React.createElement(React.Fragment, null,
37
- React.createElement(FontAwesomeIcon, { icon: faBriefcase }),
38
- "Business Activitiy ",
39
- React.createElement(BusinessActivityTip, null)) },
40
- React.createElement("div", { className: styles.content },
41
- React.createElement(InlineEdit, { defaultValue: content === null || content === void 0 ? void 0 : content.businessActivitiy, editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, (content === null || content === void 0 ? void 0 : content.businessActivitiy) ? (React.createElement("span", null, content.businessActivitiy)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the activitiy")))), onSave: (v) => {
42
- store.edit(id, {
43
- data: {
44
- BusinessActivitiy: v,
45
- },
46
- });
47
- }, editor: (s) => {
48
- return (React.createElement(Select, { style: { width: "100%" }, defaultValue: content === null || content === void 0 ? void 0 : content.businessActivitiy, onChange: (v) => runInAction(() => (s.store.value = v.toString())), onBlur: () => s.store.cancel(), autoFocus: true, onSelect: () => s.store.save({ trigger: "select" }) },
49
- React.createElement(Select.Option, { value: "Trading (Garment)" }, "Trading (Garment)"),
50
- React.createElement(Select.Option, { value: "Trading (Sundry)" }, "Trading (Sundry)"),
51
- React.createElement(Select.Option, { value: "Service (Professional)" }, "Service (Professional)"),
52
- React.createElement(Select.Option, { value: "Service (General)" }, "Service (General)"),
53
- React.createElement(Select.Option, { value: "Investment Holding" }, "Investment Holding"),
54
- React.createElement(Select.Option, { value: "Property Investment" }, "Property Investment"),
55
- React.createElement(Select.Option, { value: "Others" }, "Others")));
56
- }, editTrigger: "both" }))),
57
- React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
58
- React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
59
- "Trading Address ",
60
- React.createElement(RegisteredAddressTip, null),
61
- React.createElement("div", { className: "sub-title" }, "If you are not using Voplus trading address, please provide your own local address")) },
62
- React.createElement("div", { className: styles.content },
63
- React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: content === null || content === void 0 ? void 0 : content.tradingAddress, onSave: (v) => store.edit(id, {
64
- data: {
65
- TradingAddress: {
66
- Line1: v === null || v === void 0 ? void 0 : v.line1,
67
- Line2: v === null || v === void 0 ? void 0 : v.line2,
68
- City: v === null || v === void 0 ? void 0 : v.city,
69
- State: v === null || v === void 0 ? void 0 : v.state,
70
- PostalCode: v === null || v === void 0 ? void 0 : v.postalCode,
71
- Country: v === null || v === void 0 ? void 0 : v.country,
72
- },
73
- },
74
- }), content: (p) => {
75
- const s = p.store.value;
76
- return (React.createElement(React.Fragment, null, (s === null || s === void 0 ? void 0 : s.city) === "" &&
77
- (s === null || s === void 0 ? void 0 : s.country) === "" &&
78
- s.line1 === "" &&
79
- s.line2 === "" &&
80
- s.postalCode === "" &&
81
- s.state === "" ? (React.createElement("span", { className: "placeholder" }, "Please click here to enter the registered address")) : (React.createElement(React.Fragment, null,
82
- React.createElement(Row, null,
83
- React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line1)),
84
- React.createElement(Row, null,
85
- React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line2)),
86
- React.createElement(Row, null,
87
- React.createElement(Col, null, `${(s === null || s === void 0 ? void 0 : s.city) ? s === null || s === void 0 ? void 0 : s.city : ""} ${s === null || s === void 0 ? void 0 : s.state} ${s === null || s === void 0 ? void 0 : s.country} ${s === null || s === void 0 ? void 0 : s.postalCode}`.trim()))))));
88
- }, editor: (p) => observe(() => (React.createElement(React.Fragment, null,
89
- React.createElement(Row, null,
90
- React.createElement(Col, { style: { width: "100%" } },
91
- React.createElement(Form, null,
92
- React.createElement(Address, { value: p.store.value, onChange: (v) => {
93
- runInAction(() => {
94
- p.store.value.city = v.city;
95
- p.store.value.country = v.country;
96
- p.store.value.line1 = v.line1;
97
- p.store.value.line2 = v.line2;
98
- p.store.value.postalCode = v.postalCode;
99
- p.store.value.state = v.state;
100
- });
101
- } })))),
102
- React.createElement(Row, null,
103
- React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
104
- React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
105
- checks.tradingAddress.error && (React.createElement("span", { className: "warning" }, checks.tradingAddress.message))),
106
- React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
107
- React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
108
- "Record Address ",
109
- React.createElement(RegisteredAddressTip, null),
110
- React.createElement("div", { className: "sub-title" }, "If you are not using Voplus trading address, please provide your own local address")) },
111
- React.createElement("div", { className: styles.content },
112
- React.createElement("div", null,
113
- React.createElement(Checkbox, { defaultChecked: content.useTradingAddressForRecord, onChange: (e) => store.edit(id, {
114
- data: { UseTradingAddressForRecord: e.target.checked },
115
- error: "message",
116
- }) }, "Use Trading Address")),
117
- !content.useTradingAddressForRecord && (React.createElement(React.Fragment, null,
118
- React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: content === null || content === void 0 ? void 0 : content.recordAddress, onSave: (v) => store.edit(id, {
22
+ name: c.validate(() => {
23
+ var _a, _b, _c;
24
+ return ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName1) &&
25
+ ((_b = incorporationForm.content) === null || _b === void 0 ? void 0 : _b.legalEntityName2) &&
26
+ ((_c = incorporationForm.content) === null || _c === void 0 ? void 0 : _c.legalEntityName3);
27
+ }, "Business name cannot be empty."),
28
+ businessActivity: c.validate(() => { var _a; return (_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.businessActivitiy; }, "Choose at least one business activity."),
29
+ tradingAddress: c.validate(() => {
30
+ var _a, _b;
31
+ return ((_a = incorporationForm.content.tradingAddress) === null || _a === void 0 ? void 0 : _a.line1) &&
32
+ ((_b = incorporationForm.content.tradingAddress) === null || _b === void 0 ? void 0 : _b.country);
33
+ }, "A valid local address is required."),
34
+ recordAddress: c.validate(() => {
35
+ var _a, _b;
36
+ return incorporationForm.content.useTradingAddressForRecord ||
37
+ (((_a = incorporationForm.content.recordAddress) === null || _a === void 0 ? void 0 : _a.line1) &&
38
+ ((_b = incorporationForm.content.recordAddress) === null || _b === void 0 ? void 0 : _b.country));
39
+ }, "A valid local address is required."),
40
+ }), [incorporationForm.content]);
41
+ return observe(() => {
42
+ var _a, _b, _c, _d, _e, _f;
43
+ return (React.createElement("div", { className: styles.companyInfo },
44
+ React.createElement(Section, { className: "business-name", title: React.createElement(React.Fragment, null,
45
+ React.createElement(FontAwesomeIcon, { icon: faAddressBook }),
46
+ "Business Name ",
47
+ React.createElement(BusinessNameTip, null)) },
48
+ React.createElement(InlineEdit, { defaultValue: (_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName1, editTrigger: "both", editable: context ? context.editable : true, content: (v) => {
49
+ var _a;
50
+ return (React.createElement("div", null, ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName1) ? (React.createElement("span", null, incorporationForm.content.legalEntityName1)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 1"))));
51
+ }, editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, type: "bvi", onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName1: v } }) }),
52
+ React.createElement(InlineEdit, { defaultValue: (_b = incorporationForm.content) === null || _b === void 0 ? void 0 : _b.legalEntityName2, editTrigger: "both", editable: context ? context.editable : true, content: (v) => {
53
+ var _a;
54
+ return (React.createElement("div", null, ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName2) ? (React.createElement("span", null, incorporationForm.content.legalEntityName2)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 2"))));
55
+ }, editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, type: "bvi", onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName2: v } }) }),
56
+ React.createElement(InlineEdit, { defaultValue: (_c = incorporationForm.content) === null || _c === void 0 ? void 0 : _c.legalEntityName3, editTrigger: "both", editable: context ? context.editable : true, content: (v) => {
57
+ var _a;
58
+ return (React.createElement("div", null, ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName3) ? (React.createElement("span", null, incorporationForm.content.legalEntityName3)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name 3"))));
59
+ }, editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, type: "bvi", onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName3: v } }) }),
60
+ checks.name.error && React.createElement("span", { className: "warning" }, checks.name.message)),
61
+ React.createElement(Section, { className: "business-activities", title: React.createElement(React.Fragment, null,
62
+ React.createElement(FontAwesomeIcon, { icon: faBriefcase }),
63
+ "Business Activitiy ",
64
+ React.createElement(BusinessActivityTip, null)) },
65
+ React.createElement("div", { className: styles.content },
66
+ React.createElement(InlineEdit, { defaultValue: (_d = incorporationForm.content) === null || _d === void 0 ? void 0 : _d.businessActivitiy, editable: context ? context.editable : true, content: (v) => {
67
+ var _a;
68
+ return (React.createElement("div", null, ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.businessActivitiy) ? (React.createElement("span", null, incorporationForm.content.businessActivitiy)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the activitiy"))));
69
+ }, onSave: (v) => {
70
+ store.edit(id, {
71
+ data: {
72
+ BusinessActivitiy: v,
73
+ },
74
+ });
75
+ }, editor: (s) => {
76
+ var _a;
77
+ return (React.createElement(Select, { style: { width: "100%" }, defaultValue: (_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.businessActivitiy, onChange: (v) => runInAction(() => (s.store.value = v.toString())), onBlur: () => s.store.cancel(), autoFocus: true, onSelect: () => s.store.save({ trigger: "select" }) },
78
+ React.createElement(Select.Option, { value: "Trading (Garment)" }, "Trading (Garment)"),
79
+ React.createElement(Select.Option, { value: "Trading (Sundry)" }, "Trading (Sundry)"),
80
+ React.createElement(Select.Option, { value: "Service (Professional)" }, "Service (Professional)"),
81
+ React.createElement(Select.Option, { value: "Service (General)" }, "Service (General)"),
82
+ React.createElement(Select.Option, { value: "Investment Holding" }, "Investment Holding"),
83
+ React.createElement(Select.Option, { value: "Property Investment" }, "Property Investment"),
84
+ React.createElement(Select.Option, { value: "Others" }, "Others")));
85
+ }, editTrigger: "both" }))),
86
+ React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
87
+ React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
88
+ "Trading Address ",
89
+ React.createElement(RegisteredAddressTip, null)) },
90
+ React.createElement("div", { className: styles.content },
91
+ React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: (_e = incorporationForm.content) === null || _e === void 0 ? void 0 : _e.tradingAddress, onSave: (v) => store.edit(id, {
119
92
  data: {
120
- RecordAddress: {
93
+ TradingAddress: {
121
94
  Line1: v === null || v === void 0 ? void 0 : v.line1,
122
95
  Line2: v === null || v === void 0 ? void 0 : v.line2,
123
96
  City: v === null || v === void 0 ? void 0 : v.city,
@@ -156,8 +129,70 @@ const BVICompanyInfo = (props) => {
156
129
  } })))),
157
130
  React.createElement(Row, null,
158
131
  React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
159
- React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) }),
160
- checks.recordAddress.error && (React.createElement("span", { className: "warning" }, checks.recordAddress.message)))))))));
132
+ React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
133
+ checks.tradingAddress.error && (React.createElement("span", { className: "warning" }, checks.tradingAddress.message))),
134
+ React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
135
+ React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
136
+ "Record Address ",
137
+ React.createElement(RegisteredAddressTip, null)) },
138
+ React.createElement("div", { className: styles.content },
139
+ React.createElement("div", null,
140
+ React.createElement(Checkbox, { defaultChecked: incorporationForm.content.useTradingAddressForRecord, onChange: (e) => store.edit(id, {
141
+ data: { UseTradingAddressForRecord: e.target.checked },
142
+ error: "message",
143
+ }) }, "Use Trading Address")),
144
+ !incorporationForm.content.useTradingAddressForRecord && (React.createElement(React.Fragment, null,
145
+ React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: ((_f = incorporationForm.content) === null || _f === void 0 ? void 0 : _f.recordAddress) || {
146
+ line1: "",
147
+ line2: "",
148
+ postalCode: "",
149
+ city: "",
150
+ state: "",
151
+ country: "",
152
+ }, onSave: (v) => store.edit(id, {
153
+ data: {
154
+ RecordAddress: {
155
+ Line1: v === null || v === void 0 ? void 0 : v.line1,
156
+ Line2: v === null || v === void 0 ? void 0 : v.line2,
157
+ City: v === null || v === void 0 ? void 0 : v.city,
158
+ State: v === null || v === void 0 ? void 0 : v.state,
159
+ PostalCode: v === null || v === void 0 ? void 0 : v.postalCode,
160
+ Country: v === null || v === void 0 ? void 0 : v.country,
161
+ },
162
+ },
163
+ }), content: (p) => {
164
+ const s = p.store.value;
165
+ return (React.createElement(React.Fragment, null, (s === null || s === void 0 ? void 0 : s.city) === "" &&
166
+ (s === null || s === void 0 ? void 0 : s.country) === "" &&
167
+ s.line1 === "" &&
168
+ s.line2 === "" &&
169
+ s.postalCode === "" &&
170
+ s.state === "" ? (React.createElement("span", { className: "placeholder" }, "Please click here to enter the registered address")) : (React.createElement(React.Fragment, null,
171
+ React.createElement(Row, null,
172
+ React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line1)),
173
+ React.createElement(Row, null,
174
+ React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line2)),
175
+ React.createElement(Row, null,
176
+ React.createElement(Col, null, `${(s === null || s === void 0 ? void 0 : s.city) ? s === null || s === void 0 ? void 0 : s.city : ""} ${s === null || s === void 0 ? void 0 : s.state} ${s === null || s === void 0 ? void 0 : s.country} ${s === null || s === void 0 ? void 0 : s.postalCode}`.trim()))))));
177
+ }, editor: (p) => observe(() => (React.createElement(React.Fragment, null,
178
+ React.createElement(Row, null,
179
+ React.createElement(Col, { style: { width: "100%" } },
180
+ React.createElement(Form, null,
181
+ React.createElement(Address, { value: p.store.value, onChange: (v) => {
182
+ runInAction(() => {
183
+ p.store.value.city = v.city;
184
+ p.store.value.country = v.country;
185
+ p.store.value.line1 = v.line1;
186
+ p.store.value.line2 = v.line2;
187
+ p.store.value.postalCode = v.postalCode;
188
+ p.store.value.state = v.state;
189
+ });
190
+ } })))),
191
+ React.createElement(Row, null,
192
+ React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
193
+ React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) }),
194
+ checks.recordAddress.error && (React.createElement("span", { className: "warning" }, checks.recordAddress.message))))))));
195
+ });
161
196
  };
162
197
  export default BVICompanyInfo;
163
198
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/BVICompanyInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAE/F,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,YAAY,EAA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MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,aAE7D,CACJ,CACU,CACjB,CAAC,GAEF;oBACD,MAAM,CAAC,aAAa,CAAC,KAAK,IAAI,CAC9B,8BAAM,SAAS,EAAC,SAAS,IAAE,MAAM,CAAC,aAAa,CAAC,OAAO,CAAQ,CAC/D,CACC,CACH,CACI,CACG,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/BVICompanyInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAE/F,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,C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CAAC,CAAC,KAAK,CAAC;wDAC9B,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;wDACxC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;oDAC/B,CAAC,CAAC,CAAC;gDACJ,CAAC,GAEA,CACI,CACF,CACD;gCACN,oBAAC,GAAG;oCACH,oBAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,WAAe;oCACzE,oBAAC,MAAM,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,aAE7D,CACJ,CACU,CACjB,CAAC,GAEF;wBACD,MAAM,CAAC,aAAa,CAAC,KAAK,IAAI,CAC9B,8BAAM,SAAS,EAAC,SAAS,IAAE,MAAM,CAAC,aAAa,CAAC,OAAO,CAAQ,CAC/D,CACC,CACH,CACI,CACG,CACL,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,13 +1,13 @@
1
- .header-bar-tool {
2
- display: flex;
3
- justify-content: space-between;
4
- padding: 0 20px 10px 20px;
5
- :global {
6
- .tools-bar {
7
- text-align: right;
8
- .tool-bar {
9
- display: block;
10
- }
11
- }
12
- }
13
- }
1
+ .header-bar-tool {
2
+ display: flex;
3
+ justify-content: space-between;
4
+ padding: 0 20px 10px 20px;
5
+ :global {
6
+ .tools-bar {
7
+ text-align: right;
8
+ .tool-bar {
9
+ display: block;
10
+ }
11
+ }
12
+ }
13
+ }
@@ -12,100 +12,112 @@ import Section from "../../../controls/Section";
12
12
  import { observe } from "@voplus/morpho-ui";
13
13
  import { runInAction } from "mobx";
14
14
  import styles from "./index.less";
15
- import { useIncorporationSGPFormContext } from "../../incorporation/sgp/state";
15
+ import { useIncorporationFormContext } from "../../incorporation/context";
16
16
  import { useValidates } from "@voplus/morpho-data";
17
17
  export const CompanyInfo = (props) => {
18
18
  const { id } = props;
19
- const content = useCLDAForm(id).content;
19
+ const incorporationForm = useCLDAForm(id);
20
20
  const store = useCLDAFormStore();
21
- const context = useIncorporationSGPFormContext();
21
+ const context = useIncorporationFormContext();
22
22
  const checks = useValidates((c) => ({
23
- name: c.validate(() => content === null || content === void 0 ? void 0 : content.legalEntityName, "Business name cannot be empty."),
24
- businessActivity: c.validate(() => content.businessActivities.some((activity) => !!activity && Number(activity.split(" ")[0]) !== NaN), "Choose at least one business activity."),
23
+ name: c.validate(() => { var _a; return (_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName; }, "Business name cannot be empty."),
24
+ businessActivity: c.validate(() => incorporationForm.content.businessActivities.some((activity) => !!activity && Number(activity.split(" ")[0]) !== NaN), "Choose at least one business activity."),
25
25
  registeredAddress: c.validate(() => {
26
26
  var _a, _b, _c;
27
- return ((_a = content.address) === null || _a === void 0 ? void 0 : _a.line1) &&
28
- ((_b = content.address) === null || _b === void 0 ? void 0 : _b.country) &&
27
+ return ((_a = incorporationForm.content.address) === null || _a === void 0 ? void 0 : _a.line1) &&
28
+ ((_b = incorporationForm.content.address) === null || _b === void 0 ? void 0 : _b.country) &&
29
29
  // corporate.jurisdiction === "SG" &&
30
- ((_c = content.address) === null || _c === void 0 ? void 0 : _c.country) === "Singapore";
30
+ ((_c = incorporationForm.content.address) === null || _c === void 0 ? void 0 : _c.country) === "Singapore";
31
31
  }, "A valid local address is required."),
32
- }), [content]);
33
- return observe(() => (React.createElement("div", { className: styles.companyInfo },
34
- React.createElement(Section, { className: "business-name", title: React.createElement(React.Fragment, null,
35
- React.createElement(FontAwesomeIcon, { icon: faAddressBook }),
36
- "Business Name ",
37
- React.createElement(BusinessNameTip, null)) },
38
- React.createElement(InlineEdit, { defaultValue: content === null || content === void 0 ? void 0 : content.legalEntityName, editTrigger: "both", editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, (content === null || content === void 0 ? void 0 : content.legalEntityName) ? (React.createElement("span", null, content.legalEntityName)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name")))), editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName: v } }) }),
39
- checks.name.error && React.createElement("span", { className: "warning" }, checks.name.message)),
40
- React.createElement(Section, { className: "business-activities", title: React.createElement(React.Fragment, null,
41
- React.createElement(FontAwesomeIcon, { icon: faBriefcase }),
42
- "Business Activities ",
43
- React.createElement(BusinessActivityTip, null)) },
44
- React.createElement("div", { className: styles.content },
45
- React.createElement(Form, null, (content === null || content === void 0 ? void 0 : content.businessActivities) &&
46
- content.businessActivities.map((activity, i) => {
47
- return (React.createElement(Form.Item, { label: `Activity ${i + 1}`, key: `activity-${i}` },
48
- React.createElement(InlineEdit, { defaultValue: activity, editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, activity ? (React.createElement("span", null, activity)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the activities")))), onSave: (v) => {
49
- store.edit(id, {
50
- data: {
51
- BusinessActivities: [
52
- i == 0 ? v : content.businessActivities[0],
53
- i == 1 ? v : content.businessActivities[1],
54
- ],
55
- },
56
- });
57
- }, editor: (s) => {
58
- return (React.createElement(BusinessActivityInput, { defaultValue: activity, onChange: (v) => runInAction(() => (s.store.value = v.toString())), onBlur: () => s.store.cancel(), autoFocus: true, onSelect: () => s.store.save({ trigger: "select" }) }));
59
- }, editTrigger: "both" })));
60
- })))),
61
- React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
62
- React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
63
- "Registered Address ",
64
- React.createElement(RegisteredAddressTip, null),
65
- React.createElement("div", { className: "sub-title" }, "If you are not using Voplus registered address, please provide your own local address")) },
66
- React.createElement("div", { className: styles.content },
67
- React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: content === null || content === void 0 ? void 0 : content.address, onSave: (v) => store.edit(id, {
68
- data: {
69
- Address: {
70
- Line1: v === null || v === void 0 ? void 0 : v.line1,
71
- Line2: v === null || v === void 0 ? void 0 : v.line2,
72
- City: v === null || v === void 0 ? void 0 : v.city,
73
- State: v === null || v === void 0 ? void 0 : v.state,
74
- PostalCode: v === null || v === void 0 ? void 0 : v.postalCode,
75
- Country: v === null || v === void 0 ? void 0 : v.country,
32
+ }), [incorporationForm.content]);
33
+ return observe(() => {
34
+ var _a, _b, _c;
35
+ return (React.createElement("div", { className: styles.companyInfo },
36
+ React.createElement(Section, { className: "business-name", title: React.createElement(React.Fragment, null,
37
+ React.createElement(FontAwesomeIcon, { icon: faAddressBook }),
38
+ "Business Name ",
39
+ React.createElement(BusinessNameTip, null)) },
40
+ React.createElement(InlineEdit, { defaultValue: (_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName, editTrigger: "both", editable: context ? context.editable : true, content: (v) => {
41
+ var _a;
42
+ return (React.createElement("div", null, ((_a = incorporationForm.content) === null || _a === void 0 ? void 0 : _a.legalEntityName) ? (React.createElement("span", null, incorporationForm.content.legalEntityName)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the business name"))));
43
+ }, editor: (v) => (React.createElement(BusinessNameInputFormItem, { value: v.store.value, onChange: (name) => runInAction(() => (v.store.value = name)), onSave: () => v.store.save({ trigger: "select" }), onCancel: () => v.store.cancel() })), onSave: (v) => store.edit(id, { data: { LegalEntityName: v } }) }),
44
+ checks.name.error && React.createElement("span", { className: "warning" }, checks.name.message)),
45
+ React.createElement(Section, { className: "business-activities", title: React.createElement(React.Fragment, null,
46
+ React.createElement(FontAwesomeIcon, { icon: faBriefcase }),
47
+ "Business Activities ",
48
+ React.createElement(BusinessActivityTip, null)) },
49
+ React.createElement("div", { className: styles.content },
50
+ React.createElement(Form, null, ((_b = incorporationForm.content) === null || _b === void 0 ? void 0 : _b.businessActivities) &&
51
+ incorporationForm.content.businessActivities.map((activity, i) => {
52
+ return (React.createElement(Form.Item, { label: `Activity ${i + 1}`, key: `activity-${i}` },
53
+ React.createElement(InlineEdit, { defaultValue: activity, editable: context ? context.editable : true, content: (v) => (React.createElement("div", null, activity ? (React.createElement("span", null, activity)) : (React.createElement("span", { className: "placeholder" }, "Please click here to enter the activities")))), onSave: (v) => {
54
+ store.edit(id, {
55
+ data: {
56
+ BusinessActivities: [
57
+ i == 0
58
+ ? v
59
+ : incorporationForm.content
60
+ .businessActivities[0],
61
+ i == 1
62
+ ? v
63
+ : incorporationForm.content
64
+ .businessActivities[1],
65
+ ],
66
+ },
67
+ });
68
+ }, editor: (s) => {
69
+ return (React.createElement(BusinessActivityInput, { defaultValue: activity, onChange: (v) => runInAction(() => (s.store.value = v.toString())), onBlur: () => s.store.cancel(), autoFocus: true, onSelect: () => s.store.save({ trigger: "select" }) }));
70
+ }, editTrigger: "both" })));
71
+ })))),
72
+ React.createElement(Section, { className: "registered-address", title: React.createElement(React.Fragment, null,
73
+ React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
74
+ "Registered Address ",
75
+ React.createElement(RegisteredAddressTip, null),
76
+ React.createElement("div", { className: "sub-title" }, "If you are not using Voplus registered address, please provide your own local address")) },
77
+ React.createElement("div", { className: styles.content },
78
+ React.createElement(InlineEdit, { editTrigger: "both", editable: context ? context.editable : true, defaultValue: (_c = incorporationForm.content) === null || _c === void 0 ? void 0 : _c.address, onSave: (v) => store.edit(id, {
79
+ data: {
80
+ Address: {
81
+ Line1: v === null || v === void 0 ? void 0 : v.line1,
82
+ Line2: v === null || v === void 0 ? void 0 : v.line2,
83
+ City: v === null || v === void 0 ? void 0 : v.city,
84
+ State: v === null || v === void 0 ? void 0 : v.state,
85
+ PostalCode: v === null || v === void 0 ? void 0 : v.postalCode,
86
+ Country: v === null || v === void 0 ? void 0 : v.country,
87
+ },
76
88
  },
77
- },
78
- }), content: (p) => {
79
- const s = p.store.value;
80
- return (React.createElement(React.Fragment, null, (s === null || s === void 0 ? void 0 : s.city) === "" &&
81
- (s === null || s === void 0 ? void 0 : s.country) === "" &&
82
- s.line1 === "" &&
83
- s.line2 === "" &&
84
- s.postalCode === "" &&
85
- s.state === "" ? (React.createElement("span", { className: "placeholder" }, "Please click here to enter the registered address")) : (React.createElement(React.Fragment, null,
89
+ }), content: (p) => {
90
+ const s = p.store.value;
91
+ return (React.createElement(React.Fragment, null, (s === null || s === void 0 ? void 0 : s.city) === "" &&
92
+ (s === null || s === void 0 ? void 0 : s.country) === "" &&
93
+ s.line1 === "" &&
94
+ s.line2 === "" &&
95
+ s.postalCode === "" &&
96
+ s.state === "" ? (React.createElement("span", { className: "placeholder" }, "Please click here to enter the registered address")) : (React.createElement(React.Fragment, null,
97
+ React.createElement(Row, null,
98
+ React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line1)),
99
+ React.createElement(Row, null,
100
+ React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line2)),
101
+ React.createElement(Row, null,
102
+ React.createElement(Col, null, `${(s === null || s === void 0 ? void 0 : s.city) ? s === null || s === void 0 ? void 0 : s.city : ""} ${s === null || s === void 0 ? void 0 : s.state} ${s === null || s === void 0 ? void 0 : s.country} ${s === null || s === void 0 ? void 0 : s.postalCode}`.trim()))))));
103
+ }, editor: (p) => observe(() => (React.createElement(React.Fragment, null,
86
104
  React.createElement(Row, null,
87
- React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line1)),
105
+ React.createElement(Col, { style: { width: "100%" } },
106
+ React.createElement(Form, null,
107
+ React.createElement(Address, { value: p.store.value, onChange: (v) => {
108
+ runInAction(() => {
109
+ p.store.value.city = v.city;
110
+ p.store.value.country = v.country;
111
+ p.store.value.line1 = v.line1;
112
+ p.store.value.line2 = v.line2;
113
+ p.store.value.postalCode = v.postalCode;
114
+ p.store.value.state = v.state;
115
+ });
116
+ } })))),
88
117
  React.createElement(Row, null,
89
- React.createElement(Col, null, s === null || s === void 0 ? void 0 : s.line2)),
90
- React.createElement(Row, null,
91
- React.createElement(Col, null, `${(s === null || s === void 0 ? void 0 : s.city) ? s === null || s === void 0 ? void 0 : s.city : ""} ${s === null || s === void 0 ? void 0 : s.state} ${s === null || s === void 0 ? void 0 : s.country} ${s === null || s === void 0 ? void 0 : s.postalCode}`.trim()))))));
92
- }, editor: (p) => observe(() => (React.createElement(React.Fragment, null,
93
- React.createElement(Row, null,
94
- React.createElement(Col, { style: { width: "100%" } },
95
- React.createElement(Form, null,
96
- React.createElement(Address, { value: p.store.value, onChange: (v) => {
97
- runInAction(() => {
98
- p.store.value.city = v.city;
99
- p.store.value.country = v.country;
100
- p.store.value.line1 = v.line1;
101
- p.store.value.line2 = v.line2;
102
- p.store.value.postalCode = v.postalCode;
103
- p.store.value.state = v.state;
104
- });
105
- } })))),
106
- React.createElement(Row, null,
107
- React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
108
- React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
109
- checks.registeredAddress.error && (React.createElement("span", { className: "warning" }, checks.registeredAddress.message))))));
118
+ React.createElement(Button, { onClick: () => p.store.save({ trigger: "select" }) }, "Save"),
119
+ React.createElement(Button, { onClick: () => p.store.cancel(), style: { marginLeft: "1rem" } }, "Cancel"))))) })),
120
+ checks.registeredAddress.error && (React.createElement("span", { className: "warning" }, checks.registeredAddress.message)))));
121
+ });
110
122
  };
111
123
  //# sourceMappingURL=index.js.map