@voplus/morpho-csp 6.0.100 → 6.0.102

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 (173) hide show
  1. package/es/components/CorporateMentionList/index.d.ts +8 -8
  2. package/es/components/CorporateNavMenu/NavMenuItem.d.ts +2 -2
  3. package/es/components/CurrencyView/index.d.ts +7 -7
  4. package/es/components/DragTableRow/FormRowContext.d.ts +0 -1
  5. package/es/components/LegalContactSelect/index.d.ts +1 -1
  6. package/es/components/NewTypeDropdown/index.d.ts +2 -2
  7. package/es/components/RegisteresMenuItem/index.d.ts +3 -3
  8. package/es/data/agm-clda/metas.d.ts +0 -1
  9. package/es/data/clda-form/CLDAFormContent.d.ts +1 -1
  10. package/es/data/clda-form/metas.d.ts +0 -1
  11. package/es/data/company-general/metas.d.ts +0 -1
  12. package/es/data/incorporation-clda/metas.d.ts +0 -1
  13. package/es/data/relationship/CorporateRelationshipContext.d.ts +0 -1
  14. package/es/data/share-certificate/metas.d.ts +0 -1
  15. package/es/data/share-transaction/metas.d.ts +0 -1
  16. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.d.ts +4 -4
  17. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchSearchDialog/index.d.ts +2 -2
  18. package/es/modules/corporate/background-investigation/risk-match/controls/RiskMatchDataBar/index.d.ts +2 -2
  19. package/es/modules/corporate/background-investigation/risk-profile/components/NewRiskProfileForm/index.d.ts +4 -4
  20. package/es/modules/corporate/background-investigation/risk-profile/components/RelatedProfileList/index.d.ts +3 -3
  21. package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.d.ts +4 -4
  22. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileDataBar/index.d.ts +2 -2
  23. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.d.ts +1 -1
  24. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.d.ts +2 -2
  25. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.d.ts +2 -2
  26. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/RiskProfileContext.d.ts +0 -1
  27. package/es/modules/corporate/clda/components/AddProfileDialog/index.d.ts +2 -2
  28. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js +9 -7
  29. package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
  30. package/es/modules/corporate/clda/controls/CLDADataBar/index.d.ts +3 -3
  31. package/es/modules/corporate/clda/controls/CLDAMenu/items/DownloadLegal.d.ts +2 -2
  32. package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.d.ts +2 -2
  33. package/es/modules/corporate/clda/controls/CLDAMenu/items/LegalDocuments.d.ts +2 -2
  34. package/es/modules/corporate/clda/controls/CLDAMenu/items/SendCLDA.d.ts +2 -2
  35. package/es/modules/corporate/clda/controls/CLDAStatusButton/index.d.ts +2 -2
  36. package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.d.ts +2 -2
  37. package/es/modules/corporate/clda/controls/ModeIcon/index.d.ts +6 -6
  38. package/es/modules/corporate/clda/pages/CLDAClientView/CLDAClientContext.d.ts +0 -1
  39. package/es/modules/corporate/company/components/CompanyMemberSelect/index.d.ts +3 -3
  40. package/es/modules/corporate/company/components/CorporateList/index.d.ts +6 -6
  41. package/es/modules/corporate/company/components/CorporateOfficerSelect/index.d.ts +7 -7
  42. package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +4 -4
  43. package/es/modules/corporate/company/components/InlineEditType/index.d.ts +2 -2
  44. package/es/modules/corporate/company/controller-register/components/SelectControllerForm/index.d.ts +1 -1
  45. package/es/modules/corporate/company/controller-register/components/SelectControllerList/index.d.ts +1 -1
  46. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.d.ts +1 -1
  47. package/es/modules/corporate/company/controls/CompanyRegisterMenu/items/ChangeContact.d.ts +2 -2
  48. package/es/modules/corporate/company/controls/CorporateMenu/items/Disabled.d.ts +2 -2
  49. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.d.ts +1 -1
  50. package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.d.ts +2 -2
  51. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.d.ts +1 -1
  52. package/es/modules/corporate/company/identity/components/NewIdentityDialog/state.d.ts +0 -1
  53. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.d.ts +2 -2
  54. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/state.d.ts +0 -1
  55. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.d.ts +1 -1
  56. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/state.d.ts +0 -1
  57. package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts +5 -5
  58. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +6 -6
  59. package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/index.d.ts +1 -1
  60. package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +5 -5
  61. package/es/modules/corporate/company/officer-register/components/SelectOfficerForm/index.d.ts +1 -1
  62. package/es/modules/corporate/company/officer-register/components/SelectOfficerList/index.d.ts +1 -1
  63. package/es/modules/corporate/company/pages/CompanyPage/CompanyPageContext.d.ts +0 -1
  64. package/es/modules/corporate/company/share-transaction-convert/ShareTransactionConvertTable.d.ts +2 -2
  65. package/es/modules/corporate/company/share-transactions-register/components/ClassSelect/index.d.ts +3 -3
  66. package/es/modules/corporate/company/share-transactions-register/components/OfficialClassSelect/index.d.ts +3 -3
  67. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +8 -10
  68. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
  69. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +1 -1
  70. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
  71. package/es/modules/corporate/company/share-transactions-register/components/ShareholderSelector/index.d.ts +4 -4
  72. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/TableRefreshContext.d.ts +0 -1
  73. package/es/modules/corporate/components/CorporateSelect/index.d.ts +4 -4
  74. package/es/modules/corporate/filing-record/components/FilingList/index.d.ts +7 -7
  75. package/es/modules/corporate/filing-record/components/SendMessageDialog/index.d.ts +2 -2
  76. package/es/modules/corporate/filing-record/controls/FilingRecoreMenu/items/NotifyFiling.d.ts +2 -2
  77. package/es/modules/corporate/filing-record/filing-type/components/FilingTypeList/index.d.ts +4 -4
  78. package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.d.ts +4 -4
  79. package/es/modules/corporate/filing-record/filing-type/controls/FilingTypeDataBar/index.d.ts +2 -2
  80. package/es/modules/corporate/filing-record/filing-year/components/FilingYearItem/index.d.ts +1 -1
  81. package/es/modules/corporate/filing-record/filing-year/components/FilingYearSelect/index.d.ts +3 -3
  82. package/es/modules/corporate/filing-record/filing-year/components/NewFilingYearDialog/index.d.ts +2 -2
  83. package/es/modules/corporate/legal-generation/components/SettingDialog/index.d.ts +1 -1
  84. package/es/modules/corporate/service/components/NewServiceDialog/index.d.ts +2 -2
  85. package/es/modules/corporate/service-type/components/ServiceTypeSelect/index.d.ts +2 -2
  86. package/es/modules/corporate/share-certificate/components/DeleteSignatureDialog/index.d.ts +2 -2
  87. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +8 -10
  88. package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -1
  89. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.d.ts +2 -2
  90. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee1.d.ts +2 -2
  91. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/DeleteSignee2.d.ts +2 -2
  92. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.d.ts +2 -2
  93. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Issue.d.ts +2 -2
  94. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RefreshDetails.d.ts +2 -2
  95. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.d.ts +2 -2
  96. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.d.ts +2 -2
  97. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.d.ts +2 -2
  98. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.d.ts +2 -2
  99. package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.d.ts +1 -1
  100. package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +3 -3
  101. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/ActivityRefreshContext.d.ts +0 -1
  102. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/SigneeRefreshContext.d.ts +0 -1
  103. package/es/modules/corporate/share-class/components/ShareClassProperties/RefreshContext.d.ts +0 -1
  104. package/es/modules/corporate/share-class/components/ShareClassSelect/index.d.ts +6 -6
  105. package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/index.d.ts +7 -7
  106. package/es/modules/corporate/virtual-address-mail/components/ConfirmCollectionDialog/index.d.ts +2 -2
  107. package/es/modules/corporate/virtual-address-mail/components/ConfirmForwardDialog/index.d.ts +2 -2
  108. package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailStatusLabel/index.d.ts +2 -2
  109. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.js +9 -9
  110. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.js.map +1 -1
  111. package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +5 -1
  112. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.d.ts +18 -0
  113. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js +148 -0
  114. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.js.map +1 -0
  115. package/es/modules/self-registration/clda-form/components/CLDAContactList/index.less +86 -0
  116. package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js +9 -9
  117. package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js.map +1 -1
  118. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js +29 -25
  119. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.js.map +1 -1
  120. package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +8 -2
  121. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js +5 -5
  122. package/es/modules/self-registration/clda-form/components/DataProtectionOfficer/index.js.map +1 -1
  123. package/es/modules/self-registration/clda-form/components/InternalUse/index.js.map +1 -1
  124. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js +79 -80
  125. package/es/modules/self-registration/clda-form/components/MemberInfo/index.js.map +1 -1
  126. package/es/modules/self-registration/clda-form/components/OfficerList/index.js +18 -15
  127. package/es/modules/self-registration/clda-form/components/OfficerList/index.js.map +1 -1
  128. package/es/modules/self-registration/clda-form/components/ShareCapital/index.d.ts +1 -1
  129. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js +54 -54
  130. package/es/modules/self-registration/clda-form/components/ShareCapital/index.js.map +1 -1
  131. package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +18 -39
  132. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js +17 -15
  133. package/es/modules/self-registration/clda-form/components/ShareholderList/index.js.map +1 -1
  134. package/es/modules/self-registration/clda-form/incorporation/agm/components/AddDirectorFeeDialog/index.d.ts +3 -3
  135. package/es/modules/self-registration/clda-form/incorporation/agm/index.js +2 -2
  136. package/es/modules/self-registration/clda-form/incorporation/agm/index.js.map +1 -1
  137. package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.d.ts +4 -4
  138. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js +1 -1
  139. package/es/modules/self-registration/clda-form/incorporation/bvi/index.js.map +1 -1
  140. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralContext.d.ts +0 -1
  141. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js +2 -2
  142. package/es/modules/self-registration/clda-form/incorporation/company-general/CompanyGeneralForm.js.map +1 -1
  143. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.d.ts +1 -1
  144. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddBankOpeningDialog/index.d.ts +1 -1
  145. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.d.ts +1 -1
  146. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRedonminationDialog/index.d.ts +1 -1
  147. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.d.ts +1 -1
  148. package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +3 -3
  149. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningContactItem/index.d.ts +3 -3
  150. package/es/modules/self-registration/clda-form/incorporation/company-general/components/BankOpeningItem/index.d.ts +3 -3
  151. package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.d.ts +3 -3
  152. package/es/modules/self-registration/clda-form/incorporation/company-general/components/RedonminationItem/index.d.ts +3 -3
  153. package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +3 -3
  154. package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +4 -4
  155. package/es/modules/self-registration/clda-form/incorporation/context.d.ts +0 -1
  156. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js +10 -8
  157. package/es/modules/self-registration/clda-form/incorporation/sgp/index.js.map +1 -1
  158. package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +49 -0
  159. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +1 -1
  160. package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
  161. package/es/modules/self-registration/controls/BusinessActivityInput/index.d.ts +4 -4
  162. package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +3 -3
  163. package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.d.ts +6 -6
  164. package/es/modules/self-registration/controls/Section/index.less +16 -6
  165. package/es/modules/self-registration/controls/Tips/Tip.js +3 -3
  166. package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -1
  167. package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.d.ts +10 -10
  168. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/IncorporationCLDAClientContext.d.ts +0 -1
  169. package/es/modules/self-registration/shopping-cart/CartState.d.ts +0 -1
  170. package/es/obsolete/FilingRecordQuickView/index.d.ts +2 -2
  171. package/es/obsolete/order/context/OrderContext.d.ts +0 -1
  172. package/es/obsolete/order/controls/IncorporationStatusLabel/index.d.ts +1 -1
  173. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const RevokePhysical: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default RevokePhysical;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const SendToShareholder: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default SendToShareholder;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const SendToSignee: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default SendToSignee;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const UndoCancel: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default UndoCancel;
@@ -4,7 +4,7 @@ import { ShareCertificateStatus } from "../../../../../data/share-certificate";
4
4
  declare const ShareCertificateStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
7
+ className?: string;
8
8
  onChange: (status: ShareCertificateStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default ShareCertificateStatusLabel;
@@ -2,9 +2,9 @@ import React from "react";
2
2
  import { ShareCertificateType } from "../../../../../data/share-certificate";
3
3
  import "./index.less";
4
4
  declare const ShareCertificateTypeLabel: (props: {
5
- type?: string | undefined;
5
+ type?: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
8
- onChange?: ((type: ShareCertificateType) => void) | undefined;
7
+ className?: string;
8
+ onChange?: (type: ShareCertificateType) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default ShareCertificateTypeLabel;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class RefreshState {
3
2
  refresh: boolean;
4
3
  constructor();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class SigneeRefreshState {
3
2
  refresh: boolean;
4
3
  constructor();
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class RefreshState {
3
2
  refresh: boolean;
4
3
  constructor();
@@ -3,13 +3,13 @@ import type { SelectProps } from "antd";
3
3
  import { IShareClass } from "../../../../../data/share-class";
4
4
  import "./index.less";
5
5
  declare const ShareClassSelect: {
6
- (props: SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & {
6
+ (props: SelectProps & {
7
7
  corporateId: string;
8
- defaultValue?: string | undefined;
9
- autoFocus?: boolean | undefined;
10
- disabled?: boolean | undefined;
11
- onBlur?: (() => void) | undefined;
12
- onChange?: ((data?: IShareClass) => void) | undefined;
8
+ defaultValue?: string;
9
+ autoFocus?: boolean;
10
+ disabled?: boolean;
11
+ onBlur?: () => void;
12
+ onChange?: (data?: IShareClass) => void;
13
13
  }): React.JSX.Element;
14
14
  defaultProps: {
15
15
  autoFocus: boolean;
@@ -1,13 +1,13 @@
1
1
  import type { SelectProps } from "antd";
2
2
  import React, { CSSProperties } from "react";
3
3
  import { IReceipents } from "../../../../../../data/virtual-address";
4
- declare const ReceipentsSelect: (props: SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & {
5
- addressid?: string | undefined;
4
+ declare const ReceipentsSelect: (props: SelectProps & {
5
+ addressid?: string;
6
6
  /** 用戶在secretary cetner setting 裏選的product id */
7
- subscriptionId?: string | undefined;
8
- defaultValue?: string | undefined;
9
- disabled?: boolean | undefined;
10
- style?: React.CSSProperties | undefined;
11
- onChange?: ((receipents?: IReceipents) => void) | undefined;
7
+ subscriptionId?: string;
8
+ defaultValue?: string;
9
+ disabled?: boolean;
10
+ style?: CSSProperties;
11
+ onChange?: (receipents?: IReceipents) => void;
12
12
  }) => React.JSX.Element;
13
13
  export default ReceipentsSelect;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const ConfirmCollectionDialog: (props: {
3
3
  addressId: string;
4
- onCancel?: (() => void) | undefined;
5
- onSubmit?: (() => void) | undefined;
4
+ onCancel?: () => void;
5
+ onSubmit?: () => void;
6
6
  }) => React.JSX.Element;
7
7
  export default ConfirmCollectionDialog;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const ConfirmForwardDialog: (props: {
3
3
  addressId: string;
4
- onCancel?: (() => void) | undefined;
5
- onSubmit?: (() => void) | undefined;
4
+ onCancel?: () => void;
5
+ onSubmit?: () => void;
6
6
  }) => React.JSX.Element;
7
7
  export default ConfirmForwardDialog;
@@ -3,7 +3,7 @@ import "./index.less";
3
3
  declare const VirtualAddressMailStatusLabel: (props: {
4
4
  status: string;
5
5
  editable: boolean;
6
- className?: string | undefined;
7
- onChange?: ((status: "New" | "Notified") => void) | undefined;
6
+ className?: string;
7
+ onChange?: (status: "New" | "Notified") => void;
8
8
  }) => React.JSX.Element;
9
9
  export default VirtualAddressMailStatusLabel;
@@ -1,18 +1,18 @@
1
- import { Modal, Spin } from "antd";
2
1
  import React, { useState } from "react";
3
- import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
4
- import { useCLDAForm, useCLDAFormStore } from "../../../../data/clda-form";
5
- import Arrangement from "../../shopping-cart/components/Arrangement";
2
+ import { Modal, Spin } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
6
4
  import { CompanyInfo } from "../components/CompanyInfo";
5
+ import { Scrollbars } from "react-custom-scrollbars-2";
6
+ import { faInfo } from "@fortawesome/pro-light-svg-icons";
7
7
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
8
+ import { useCLDAForm, useCLDAFormStore } from "../../../../data/clda-form";
9
+ import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
10
+ import Arrangement from "../../shopping-cart/components/Arrangement";
11
+ import ShareholderList from "../components/ShareholderList";
12
+ import ShareCapital from "../components/ShareCapital";
8
13
  import OfficerList from "../components/OfficerList";
9
- import { Scrollbars } from "react-custom-scrollbars-2";
10
14
  import Section from "../../controls/Section";
11
- import ShareCapital from "../components/ShareCapital";
12
- import ShareholderList from "../components/ShareholderList";
13
15
  import classnames from "classnames";
14
- import { faInfo } from "@fortawesome/pro-light-svg-icons";
15
- import { observe } from "@voplus/morpho-ui";
16
16
  import styles from "./index.less";
17
17
  const CompanyInfoForm = (props) => {
18
18
  const [submitting, setSubmitting] = useState(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/clda-form/CompanyInfoForm/index.tsx"],"names":[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YACJ,aAAa,CAAC,IAAI,CAAC,CAAC;YACpB,kCAAkC;QACnC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACd,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC1D,CAAC;QACD,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,WAAW,EAAE,IAAI;CACjB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -4,16 +4,20 @@
4
4
  padding: 20px 0 !important;
5
5
  overflow: auto;
6
6
  &:extend(.incorporation-form-page);
7
+
7
8
  p {
8
9
  margin-bottom: 0;
9
10
  }
11
+
10
12
  :global {
11
13
  .incorporation-form-content {
12
14
  padding: 0 40px;
13
15
  }
16
+
14
17
  .morpho-inline-edit .fa-edit {
15
18
  color: @primary-color;
16
19
  }
20
+
17
21
  .warning {
18
22
  margin-top: 20px;
19
23
  display: block;
@@ -21,4 +25,4 @@
21
25
  color: @delete-color;
22
26
  }
23
27
  }
24
- }
28
+ }
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { IFormPeopleOptions, IShareholderOptions } from "../../../../../data/clda-form";
3
+ declare const CLDAContactList: (props: {
4
+ /** CLDAForm id */
5
+ formId: string;
6
+ memberId: string;
7
+ /** 是否显示 Representative */
8
+ isOnlyInternalUse?: boolean;
9
+ /** shareholders */
10
+ shareholders?: IShareholderOptions;
11
+ contacts: IFormPeopleOptions;
12
+ /** members or officers of index */
13
+ memberIndex?: number;
14
+ /** members or officers of length */
15
+ memberLength?: number;
16
+ onDeleteClick?: () => void;
17
+ }) => React.JSX.Element;
18
+ export default CLDAContactList;
@@ -0,0 +1,148 @@
1
+ import React, { useState } from "react";
2
+ import { Button, Col, Divider, Form, Row, Input, InputNumber, Space } from "antd";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useValidates, useLayout } from "@voplus/morpho-data";
5
+ import { faTrashAlt, faPenToSquare } from "@fortawesome/pro-light-svg-icons";
6
+ import { cloneDeep } from "lodash-es";
7
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
8
+ import { useCLDAForm, useCLDAFormStore, } from "../../../../../data/clda-form";
9
+ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
10
+ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
11
+ import IdentityChange from "../../../../corporate/company/identity/components/IdentityChange";
12
+ import { CapitalizeFirstLetter } from "../../../../../data/clda-form/conversion";
13
+ import { useIncorporationFormContext } from "../../incorporation/context";
14
+ import Address from "@voplus/morpho-org/es/components/Address";
15
+ import styles from "./index.less";
16
+ const CLDAContactList = (props) => {
17
+ var _a;
18
+ const { formId, memberId, shareholders, contacts, isOnlyInternalUse } = props;
19
+ const [editable, setEditable] = useState(false);
20
+ const [newShares, setNewShares] = useState(shareholders === null || shareholders === void 0 ? void 0 : shareholders.shares);
21
+ const [capital, setCapital] = useState(shareholders === null || shareholders === void 0 ? void 0 : shareholders.capital);
22
+ const layout = useLayout();
23
+ const store = useCLDAFormStore();
24
+ const context = useIncorporationFormContext();
25
+ const incorporation = useCLDAForm(props.formId);
26
+ const validates = useValidates((c) => checkError(c), [(_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts]);
27
+ return observe(() => {
28
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
29
+ return (React.createElement("div", { className: styles["clda-contact-list"] },
30
+ React.createElement(Row, { gutter: [16, 16] },
31
+ React.createElement(Col, { span: 22 },
32
+ React.createElement(Row, { gutter: [16, 16], className: "detail-section" },
33
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : shareholders ? 12 : 24 },
34
+ React.createElement("div", { className: "required-information" },
35
+ editable ? (React.createElement(Input, { defaultValue: contacts === null || contacts === void 0 ? void 0 : contacts.name, value: contacts === null || contacts === void 0 ? void 0 : contacts.name, onChange: (e) => (contacts.name = e.target.value) })) : (React.createElement("div", { className: "contact-value" }, contacts ? (React.createElement(UnitNameNoteAlert, { id: contacts.id, name: (_a = contacts.name) !== null && _a !== void 0 ? _a : "" })) : null)),
36
+ React.createElement("div", { className: "contact-label" }, "Shareholder Name"))),
37
+ shareholders && (React.createElement(React.Fragment, null,
38
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : 6 },
39
+ React.createElement("div", { className: "required-information" },
40
+ editable ? (React.createElement(InputNumber, { value: newShares, placeholder: "Please enter the shares", onChange: (value) => setNewShares(value) })) : (React.createElement("div", { className: "contact-value" }, newShares)),
41
+ React.createElement("div", { className: "contact-label" }, "Share(s)"))),
42
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : 6 },
43
+ React.createElement("div", { className: "required-information" },
44
+ editable ? (React.createElement(InputNumber, { value: capital, placeholder: "Please enter the capital", onChange: (value) => setCapital(value) })) : (React.createElement("div", { className: "contact-value" }, capital)),
45
+ React.createElement("div", { className: "contact-label" }, "Capital")))))),
46
+ React.createElement(Row, { gutter: [16, 16], className: "detail-section" },
47
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : 12 },
48
+ React.createElement("div", { className: "phone-email-information" },
49
+ React.createElement("div", { className: "phone-email-label" }, "Email:"),
50
+ editable ? (React.createElement(Input, { value: contacts === null || contacts === void 0 ? void 0 : contacts.email, placeholder: "Please enter the email", onChange: (e) => (contacts.email = e.target.value) })) : (React.createElement("div", { className: "phone-email-value" }, contacts === null || contacts === void 0 ? void 0 : contacts.email)))),
51
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : 12 },
52
+ React.createElement("div", { className: "phone-email-information" },
53
+ React.createElement("div", { className: "phone-email-label" }, "Phone:"),
54
+ editable ? (React.createElement(Input, { value: contacts === null || contacts === void 0 ? void 0 : contacts.phone, placeholder: "Please enter the phone", onChange: (e) => (contacts.phone = e.target.value) })) : (React.createElement("div", { className: "phone-email-value" }, contacts === null || contacts === void 0 ? void 0 : contacts.phone))))),
55
+ React.createElement(Row, { gutter: [16, 16], className: "detail-section" },
56
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : isOnlyInternalUse ? 8 : 12 },
57
+ React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
58
+ React.createElement("div", { className: "basic-label" }, "Address:"),
59
+ editable ? (React.createElement(Form, { layout: "vertical" },
60
+ React.createElement(Address, { value: contacts.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contacts.address = v) }))) : (React.createElement("div", { className: "basic-value" },
61
+ React.createElement("p", null, (_b = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _b === void 0 ? void 0 : _b.line1),
62
+ React.createElement("p", null, (_c = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _c === void 0 ? void 0 : _c.line2),
63
+ React.createElement("p", null, `${((_d = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _d === void 0 ? void 0 : _d.city) ? (_e = contacts.address) === null || _e === void 0 ? void 0 : _e.city : ""} ${(_f = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _f === void 0 ? void 0 : _f.state} ${(_g = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _g === void 0 ? void 0 : _g.country} ${(_h = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _h === void 0 ? void 0 : _h.postalCode}`.trim()))))),
64
+ React.createElement(Col, { span: layout.ui.mobile ? 24 : isOnlyInternalUse ? 8 : 12 },
65
+ React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
66
+ React.createElement("div", { className: "basic-label" }, "Identity Card:"),
67
+ editable ? (React.createElement(IdentityChange, { value: contacts === null || contacts === void 0 ? void 0 : contacts.identity, onChange: (v) => (contacts.identity = v) })) : (React.createElement("div", { className: "basic-value" },
68
+ React.createElement("p", null, (_j = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _j === void 0 ? void 0 : _j.country),
69
+ React.createElement("p", null, (_k = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _k === void 0 ? void 0 : _k.type),
70
+ React.createElement("p", null, (_l = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _l === void 0 ? void 0 : _l.number),
71
+ React.createElement("p", null,
72
+ "Expiry: ",
73
+ React.createElement(UTCShortDate, { value: (_m = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _m === void 0 ? void 0 : _m.expiryDate })))))),
74
+ isOnlyInternalUse && (React.createElement(Col, { span: layout.ui.mobile ? 24 : 8 },
75
+ React.createElement("div", { className: "basic-information", style: !editable ? { display: "flex" } : {} },
76
+ React.createElement("div", { className: "basic-label" }, "Internal Use Only:"),
77
+ editable ? (React.createElement(Form, { labelAlign: "left", layout: "horizontal" },
78
+ React.createElement(Form.Item, { label: "Representative", name: "representative" },
79
+ React.createElement(Input, { defaultValue: contacts.representative, value: contacts.representative, onChange: (e) => (contacts.representative = e.target.value) })),
80
+ React.createElement(Form.Item, { label: "Representative Passport", name: "representativePassport" },
81
+ React.createElement(Input, { defaultValue: contacts.representativePassport, value: contacts.representativePassport, onChange: (e) => (contacts.representativePassport = e.target.value) })),
82
+ React.createElement(Form.Item, { label: "Foreign Director 1", name: "foreignDirector1" },
83
+ React.createElement(Input, { defaultValue: contacts.foreignDirector1, value: contacts.foreignDirector1, onChange: (e) => (contacts.foreignDirector1 = e.target.value) })),
84
+ React.createElement(Form.Item, { label: "Foreign Director 2", name: "foreignDirector2" },
85
+ React.createElement(Input, { defaultValue: contacts.foreignDirector2, value: contacts.foreignDirector2, onChange: (e) => (contacts.foreignDirector2 = e.target.value) })))) : (React.createElement("div", { className: "basic-value" },
86
+ (contacts === null || contacts === void 0 ? void 0 : contacts.representative) && (React.createElement("p", null,
87
+ "Representative: ", contacts === null || contacts === void 0 ? void 0 :
88
+ contacts.representative)),
89
+ (contacts === null || contacts === void 0 ? void 0 : contacts.representativePassport) && (React.createElement("p", null,
90
+ "Representative Passport: ", contacts === null || contacts === void 0 ? void 0 :
91
+ contacts.representativePassport)),
92
+ (contacts === null || contacts === void 0 ? void 0 : contacts.foreignDirector1) && (React.createElement("p", null,
93
+ "Foreign Director 1: ", contacts === null || contacts === void 0 ? void 0 :
94
+ contacts.foreignDirector1)),
95
+ (contacts === null || contacts === void 0 ? void 0 : contacts.foreignDirector2) && (React.createElement("p", null,
96
+ "Foreign Director 2: ", contacts === null || contacts === void 0 ? void 0 :
97
+ contacts.foreignDirector2)))))))),
98
+ editable && (React.createElement(Space, { className: "save-cancel-btn" },
99
+ React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel"),
100
+ React.createElement(Button, { type: "primary", onClick: onSave }, "Save")))),
101
+ React.createElement(Col, { span: 2 },
102
+ React.createElement(Row, { justify: "end" }, ((_o = context.editable) !== null && _o !== void 0 ? _o : true) && (React.createElement("div", { className: "action-button" },
103
+ React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
104
+ React.createElement(FontAwesomeIcon, { icon: faPenToSquare })),
105
+ React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
106
+ React.createElement(FontAwesomeIcon, { icon: faTrashAlt }))))))),
107
+ validates.hasError && (React.createElement("div", { className: "non-empty-check-prompt" },
108
+ React.createElement("span", null, "* "),
109
+ validates.errors.map((error) => (React.createElement(React.Fragment, null,
110
+ error,
111
+ " "))))),
112
+ props.memberLength > 1 && React.createElement(Divider, { className: "halvingline" })));
113
+ });
114
+ function checkError(c) {
115
+ c.validate(() => { var _a; return ((_a = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _a === void 0 ? void 0 : _a.line1) && (contacts === null || contacts === void 0 ? void 0 : contacts.address.city) && contacts.address.country; }, "Please input address.");
116
+ c.validate(() => contacts === null || contacts === void 0 ? void 0 : contacts.email, "Please input email.");
117
+ c.validate(() => contacts === null || contacts === void 0 ? void 0 : contacts.phone, "Please input phone.");
118
+ c.validate(() => { var _a, _b, _c; return ((_a = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _a === void 0 ? void 0 : _a.number) && ((_b = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _b === void 0 ? void 0 : _b.type) && ((_c = contacts.identity) === null || _c === void 0 ? void 0 : _c.country); }, "Please input identity details.");
119
+ return c;
120
+ }
121
+ async function onSave() {
122
+ var _a, _b, _c, _d;
123
+ const officers = (_b = cloneDeep((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts)) !== null && _b !== void 0 ? _b : [];
124
+ const index = officers.findIndex((i) => i.id === memberId);
125
+ officers[index] = contacts;
126
+ if (shareholders && newShares && capital) {
127
+ const shareholder = (_d = cloneDeep((_c = incorporation.content) === null || _c === void 0 ? void 0 : _c.shareholders)) !== null && _d !== void 0 ? _d : [];
128
+ const i = shareholder === null || shareholder === void 0 ? void 0 : shareholder.findIndex((i) => i.id === memberId);
129
+ shareholder[i] = { id: memberId, shares: newShares, capital: capital };
130
+ await store.edit(formId, {
131
+ data: {
132
+ Contacts: CapitalizeFirstLetter(officers),
133
+ Shareholders: CapitalizeFirstLetter(shareholder),
134
+ },
135
+ error: "message",
136
+ });
137
+ }
138
+ else {
139
+ await store.edit(formId, {
140
+ data: { Contacts: CapitalizeFirstLetter(officers) },
141
+ error: "message",
142
+ });
143
+ }
144
+ setEditable(false);
145
+ }
146
+ };
147
+ export default CLDAContactList;
148
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAContactList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAwB,YAAY,EAAE,SA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AAW,CAAC;iBAChD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;QACJ,CAAC;aAAM,CAAC;YACP,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;gBACxB,IAAI,EAAE,EAAE,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC,EAAE;gBACnD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;QACJ,CAAC;QACD,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,86 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .clda-contact-list {
4
+ :global {
5
+ .detail-section {
6
+ margin-bottom: 15px;
7
+ }
8
+
9
+ .required-information {
10
+ .contact-value {
11
+ height: 27px;
12
+ color: #217eb2;
13
+ font: normal normal bold 20px/27px Open Sans;
14
+ }
15
+
16
+ .contact-label {
17
+ height: 19px;
18
+ margin-top: 10px;
19
+ color: #868686;
20
+ font: normal normal 600 14px/19px Open Sans;
21
+ }
22
+ }
23
+
24
+ .action-button {
25
+ min-width: 43px;
26
+ font-size: 14px;
27
+ padding-right: 4px;
28
+
29
+ > span {
30
+ margin-left: 6px;
31
+ cursor: pointer;
32
+ }
33
+
34
+ .delete-icon {
35
+ &:hover {
36
+ color: @delete-color;
37
+ }
38
+ }
39
+
40
+ .edit-icon {
41
+ &:hover {
42
+ color: @primary-color;
43
+ }
44
+ }
45
+ }
46
+
47
+ .phone-email-information {
48
+ height: 32px;
49
+ display: flex;
50
+ align-items: center;
51
+
52
+ .phone-email-label {
53
+ width: 120px;
54
+ color: #868686;
55
+ font: normal normal 600 14px/19px Open Sans;
56
+ }
57
+
58
+ .phone-email-value {
59
+ color: #5d5d5d;
60
+ font: normal normal bold 14px/19px Open Sans;
61
+ }
62
+ }
63
+
64
+ .basic-information {
65
+ .basic-label {
66
+ width: 120px;
67
+ margin-bottom: 15px;
68
+ color: #868686;
69
+ font: normal normal 600 14px/19px Open Sans;
70
+ }
71
+
72
+ .basic-value {
73
+ color: #5d5d5d;
74
+ font: normal normal bold 14px/19px Open Sans;
75
+ }
76
+ }
77
+
78
+ .save-cancel-btn {
79
+ margin-bottom: 15px;
80
+ }
81
+
82
+ .halvingline {
83
+ margin-bottom: 40px;
84
+ }
85
+ }
86
+ }
@@ -1,8 +1,5 @@
1
- import { useMetaStore } from "@voplus/morpho-document-core";
2
1
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
3
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
4
- import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
5
- import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
2
+ import DocumentPropertiesHeader from "@voplus/morpho-document/es/components/DocumentPropertiesHeader";
6
3
  import { observe } from "@voplus/morpho-ui";
7
4
  import React, { useMemo, useState } from "react";
8
5
  import { Scrollbars } from "react-custom-scrollbars-2";
@@ -11,20 +8,23 @@ import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
11
8
  import "./index.less";
12
9
  const CLDAFormPropertiesView = (props) => {
13
10
  const { id } = props;
14
- const meta = useMetaStore();
15
11
  const [loaded, setLoaded] = useState(true);
16
12
  const view = useMemo(() => new ViewContextData("PropertiesView"), []);
17
13
  const content = new CLDAFormContent();
18
14
  const form = useCLDAForm(id);
19
15
  return observe(() => (React.createElement(ViewContext.Provider, { value: view },
20
16
  React.createElement("div", { className: "clda-form-properties-view" }, loaded && (React.createElement(React.Fragment, null,
21
- React.createElement(DocumentHeader, { id: id, size: "h3", flagVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, toolBarProps: { closeAside: true }, tools: React.createElement(ToolBar, { id: id },
22
- React.createElement(Reload, { action: reload }),
23
- React.createElement(Open, { url: meta.getRoute(form) })) }),
17
+ React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
18
+ toolBarProps: {
19
+ closeAside: true,
20
+ close: true,
21
+ onReload: reload,
22
+ },
23
+ } }),
24
24
  React.createElement(DocumentTabs, { id: id, details: React.createElement("div", { className: "clda-form-details" },
25
25
  React.createElement(Scrollbars, { autoHide: true }, content.getCLDAFormContent(form.metaKey, form.country, {
26
26
  id,
27
- type: "draftView",
27
+ type: "defaultView",
28
28
  }))) })))))));
29
29
  function reload() {
30
30
  setLoaded(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAE5B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,g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ceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,wBAAwB,MAAM,gEAAgE,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE,CAAC;IAEtC,MAAM,IAAI,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,2BAA2B,IACxC,MAAM,IAAI,CACV;YACC,oBAAC,wBAAwB,IACxB,EAAE,EAAE,EAAE,EACN,oBAAoB,EAAE;oBACrB,YAAY,EAAE;wBACb,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE,IAAI;wBACX,QAAQ,EAAE,MAAM;qBAChB;iBACD,GACA;YACF,oBAAC,YAAY,IACZ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