@voplus/morpho-csp 1.2.24 → 1.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Modules.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +3 -3
- package/es/components/CurrencyView/state.js +3 -3
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/DragTableRow/FormRowContext.d.ts +4 -0
- package/es/components/DragTableRow/FormRowContext.js +5 -0
- package/es/components/DragTableRow/FormRowContext.js.map +1 -0
- package/es/components/DragTableRow/index.d.ts +3 -0
- package/es/components/DragTableRow/index.js +41 -0
- package/es/components/DragTableRow/index.js.map +1 -0
- package/es/components/LegalContactSelect/index.js +4 -2
- package/es/components/LegalContactSelect/index.js.map +1 -1
- package/es/data/account/hooks.d.ts +2 -2
- package/es/data/account/hooks.js +2 -2
- package/es/data/cart/hooks.d.ts +7 -0
- package/es/data/cart/hooks.js +14 -0
- package/es/data/cart/hooks.js.map +1 -0
- package/es/data/cart/index.d.ts +4 -0
- package/es/data/cart/index.js +5 -0
- package/es/data/cart/index.js.map +1 -0
- package/es/data/cart/interfaces.d.ts +58 -0
- package/es/data/cart/interfaces.js +2 -0
- package/es/data/cart/interfaces.js.map +1 -0
- package/es/data/cart/store.d.ts +22 -0
- package/es/data/cart/store.js +65 -0
- package/es/data/cart/store.js.map +1 -0
- package/es/data/cart/types.d.ts +29 -0
- package/es/data/cart/types.js +2 -0
- package/es/data/cart/types.js.map +1 -0
- package/es/data/corporate/hooks.d.ts +2 -2
- package/es/data/corporate/hooks.js +2 -2
- package/es/data/corporate/types.d.ts +1 -0
- package/es/data/entity/EntityStore.d.ts +17 -0
- package/es/data/entity/EntityStore.js +43 -0
- package/es/data/entity/EntityStore.js.map +1 -0
- package/es/data/entity/hooks.d.ts +7 -0
- package/es/data/entity/hooks.js +14 -0
- package/es/data/entity/hooks.js.map +1 -0
- package/es/data/entity/index.d.ts +3 -0
- package/es/data/entity/index.js +4 -0
- package/es/data/entity/index.js.map +1 -0
- package/es/data/entity/interface.d.ts +26 -0
- package/es/data/entity/interface.js +2 -0
- package/es/data/entity/interface.js.map +1 -0
- package/es/data/entity/types.d.ts +26 -0
- package/es/data/entity/types.js +2 -0
- package/es/data/entity/types.js.map +1 -0
- package/es/data/identity/types.d.ts +17 -0
- package/es/data/incorporation-clda/hooks.d.ts +9 -0
- package/es/data/incorporation-clda/hooks.js +20 -0
- package/es/data/incorporation-clda/hooks.js.map +1 -0
- package/es/data/incorporation-clda/index.d.ts +4 -0
- package/es/data/incorporation-clda/index.js +5 -0
- package/es/data/incorporation-clda/index.js.map +1 -0
- package/es/data/incorporation-clda/interfaces.d.ts +30 -0
- package/es/data/incorporation-clda/interfaces.js +2 -0
- package/es/data/incorporation-clda/interfaces.js.map +1 -0
- package/es/data/incorporation-clda/store.d.ts +13 -0
- package/es/data/incorporation-clda/store.js +28 -0
- package/es/data/incorporation-clda/store.js.map +1 -0
- package/es/data/incorporation-clda/types.d.ts +14 -0
- package/es/data/incorporation-clda/types.js +2 -0
- package/es/data/incorporation-clda/types.js.map +1 -0
- package/es/data/incorporation-form/hooks.d.ts +9 -0
- package/es/data/incorporation-form/hooks.js +20 -0
- package/es/data/incorporation-form/hooks.js.map +1 -0
- package/es/data/incorporation-form/index.d.ts +4 -0
- package/es/data/incorporation-form/index.js +5 -0
- package/es/data/incorporation-form/index.js.map +1 -0
- package/es/data/incorporation-form/interfaces.d.ts +31 -0
- package/es/data/incorporation-form/interfaces.js +2 -0
- package/es/data/incorporation-form/interfaces.js.map +1 -0
- package/es/data/incorporation-form/store.d.ts +13 -0
- package/es/data/incorporation-form/store.js +28 -0
- package/es/data/incorporation-form/store.js.map +1 -0
- package/es/data/incorporation-form/types.d.ts +32 -0
- package/es/data/incorporation-form/types.js +2 -0
- package/es/data/incorporation-form/types.js.map +1 -0
- package/es/data/member/hooks.d.ts +2 -2
- package/es/data/member/hooks.js +2 -2
- package/es/data/member/interfaces.d.ts +12 -0
- package/es/data/officer/hooks.d.ts +2 -2
- package/es/data/officer/hooks.js +2 -2
- package/es/data/order/OrderStore.d.ts +12 -0
- package/es/data/order/OrderStore.js +27 -0
- package/es/data/order/OrderStore.js.map +1 -0
- package/es/data/order/hooks.d.ts +13 -0
- package/es/data/order/hooks.js +24 -0
- package/es/data/order/hooks.js.map +1 -0
- package/es/data/order/index.d.ts +4 -0
- package/es/data/order/index.js +5 -0
- package/es/data/order/index.js.map +1 -0
- package/es/data/order/interfaces.d.ts +25 -0
- package/es/data/order/interfaces.js +2 -0
- package/es/data/order/interfaces.js.map +1 -0
- package/es/data/order/types.d.ts +17 -0
- package/es/data/order/types.js +2 -0
- package/es/data/order/types.js.map +1 -0
- package/es/data/service/hooks.d.ts +2 -2
- package/es/data/service/hooks.js +2 -2
- package/es/data/shareCertificate/hooks.d.ts +1 -1
- package/es/data/shareCertificate/hooks.js +1 -1
- package/es/data/shareOptionsRegister/hooks.d.ts +2 -2
- package/es/data/shareOptionsRegister/hooks.js +2 -2
- package/es/data/shareTransaction/hooks.d.ts +2 -2
- package/es/data/shareTransaction/hooks.js +2 -2
- package/es/data/shareTransaction/interfaces/IShareTransaction.d.ts +3 -3
- package/es/modules/account/AccountDefaultView/index.less +0 -18
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js +2 -1
- package/es/modules/corporate/CLDA/CLDAClientView/CLDAClientContext.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js +11 -8
- package/es/modules/corporate/CLDA/CLDAClientView/components/DigitalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalPreparationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/PhysicalSigningStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js +29 -23
- package/es/modules/corporate/CLDA/CLDAClientView/components/SelectStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js +13 -10
- package/es/modules/corporate/CLDA/CLDAClientView/components/StartStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/components/VerificationStep/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.d.ts +9 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.js +21 -12
- package/es/modules/corporate/CLDA/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/CLDAClientView/index.less +10 -12
- package/es/modules/corporate/CLDA/CLDADefaultView/index.js.map +1 -1
- package/es/modules/corporate/CLDA/ChangeAddress2021/index.less +13 -18
- package/es/modules/corporate/LegalGeneration/index.less +0 -6
- package/es/modules/corporate/company/CompanyDefaultView/index.js +1 -1
- package/es/modules/corporate/company/CompanyDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/CompanyDetailsView/index.js +44 -42
- package/es/modules/corporate/company/CompanyDetailsView/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js +13 -5
- package/es/modules/corporate/company/Identity/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js +4 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/Page1.js.map +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.d.ts +1 -1
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/index.less +1 -2
- package/es/modules/corporate/company/Identity/SelectLegalContactDialog/state.d.ts +1 -1
- package/es/modules/order/OrderDefaultView/index.d.ts +4 -0
- package/es/modules/order/OrderDefaultView/index.js +52 -0
- package/es/modules/order/OrderDefaultView/index.js.map +1 -0
- package/es/modules/order/OrderDefaultView/index.less +13 -0
- package/es/modules/order/OrderItem/index.d.ts +6 -0
- package/es/modules/order/OrderItem/index.js +13 -0
- package/es/modules/order/OrderItem/index.js.map +1 -0
- package/es/modules/order/OrderItem/index.less +21 -0
- package/es/modules/order/OrderItems/DragTableCell.d.ts +3 -0
- package/es/modules/order/OrderItems/DragTableCell.js +75 -0
- package/es/modules/order/OrderItems/DragTableCell.js.map +1 -0
- package/es/modules/order/OrderItems/index.d.ts +4 -0
- package/es/modules/order/OrderItems/index.js +160 -0
- package/es/modules/order/OrderItems/index.js.map +1 -0
- package/es/modules/order/OrderItems/index.less +48 -0
- package/es/modules/order/OrderItems/state.d.ts +29 -0
- package/es/modules/order/OrderItems/state.js +89 -0
- package/es/modules/order/OrderItems/state.js.map +1 -0
- package/es/modules/order/OrderLabel/index.d.ts +6 -0
- package/es/modules/order/OrderLabel/index.js +40 -0
- package/es/modules/order/OrderLabel/index.js.map +1 -0
- package/es/modules/order/OrderLabel/index.less +21 -0
- package/es/modules/order/OrderLabel/state.d.ts +10 -0
- package/es/modules/order/OrderLabel/state.js +218 -0
- package/es/modules/order/OrderLabel/state.js.map +1 -0
- package/es/modules/order/OrderListView/index.d.ts +5 -0
- package/es/modules/order/OrderListView/index.js +47 -0
- package/es/modules/order/OrderListView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.d.ts +6 -0
- package/es/modules/order/OrderPropertiesView/index.js +39 -0
- package/es/modules/order/OrderPropertiesView/index.js.map +1 -0
- package/es/modules/order/OrderPropertiesView/index.less +13 -0
- package/es/modules/order/context/OrderContext.d.ts +31 -0
- package/es/modules/order/context/OrderContext.js +92 -0
- package/es/modules/order/context/OrderContext.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.d.ts +10 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js +16 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.js.map +1 -0
- package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.d.ts +3 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js +21 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js.map +1 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.d.ts +17 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js +48 -0
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.d.ts +16 -0
- package/es/modules/self-registration/components/Card/index.js +20 -0
- package/es/modules/self-registration/components/Card/index.js.map +1 -0
- package/es/modules/self-registration/components/Card/index.less +52 -0
- package/es/modules/self-registration/components/CheckSection/index.d.ts +7 -0
- package/es/modules/self-registration/components/CheckSection/index.js +15 -0
- package/es/modules/self-registration/components/CheckSection/index.js.map +1 -0
- package/es/modules/self-registration/components/CheckSection/index.less +20 -0
- package/es/modules/self-registration/components/MemberCard/index.d.ts +11 -0
- package/es/modules/self-registration/components/MemberCard/index.js +58 -0
- package/es/modules/self-registration/components/MemberCard/index.js.map +1 -0
- package/es/modules/self-registration/components/MemberCard/index.less +53 -0
- package/es/modules/self-registration/components/StripeForm/index.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/index.js +61 -0
- package/es/modules/self-registration/components/StripeForm/index.js.map +1 -0
- package/es/modules/self-registration/components/StripeForm/index.less +36 -0
- package/es/modules/self-registration/components/StripeForm/state.d.ts +11 -0
- package/es/modules/self-registration/components/StripeForm/state.js +81 -0
- package/es/modules/self-registration/components/StripeForm/state.js.map +1 -0
- package/es/modules/self-registration/components/index.d.ts +1 -0
- package/es/modules/self-registration/components/index.js +2 -0
- package/es/modules/self-registration/components/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Blink/index.js +13 -0
- package/es/modules/self-registration/controls/Blink/index.js.map +1 -0
- package/es/modules/self-registration/controls/Blink/index.less +27 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.d.ts +9 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js +42 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.d.ts +17 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js +48 -0
- package/es/modules/self-registration/controls/BusinessActivityInput/state.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.d.ts +30 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js +115 -0
- package/es/modules/self-registration/controls/BusinessNameInput/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.d.ts +11 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js +19 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/index.js.map +1 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.d.ts +6 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js +23 -0
- package/es/modules/self-registration/controls/BusinessNameInputFormItem/state.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.d.ts +13 -0
- package/es/modules/self-registration/controls/Section/index.js +15 -0
- package/es/modules/self-registration/controls/Section/index.js.map +1 -0
- package/es/modules/self-registration/controls/Section/index.less +79 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js +30 -0
- package/es/modules/self-registration/controls/Tips/BusinessActivityTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/BusinessNameTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/CapitalTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js +25 -0
- package/es/modules/self-registration/controls/Tips/DirectorTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/FYETip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js +13 -0
- package/es/modules/self-registration/controls/Tips/FYETip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/IncorporationTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js +13 -0
- package/es/modules/self-registration/controls/Tips/RegisteredAddressTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js +15 -0
- package/es/modules/self-registration/controls/Tips/SecretaryTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js +11 -0
- package/es/modules/self-registration/controls/Tips/ShareholderTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.d.ts +3 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js +9 -0
- package/es/modules/self-registration/controls/Tips/SharesTip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/Tip.d.ts +5 -0
- package/es/modules/self-registration/controls/Tips/Tip.js +10 -0
- package/es/modules/self-registration/controls/Tips/Tip.js.map +1 -0
- package/es/modules/self-registration/controls/Tips/index.d.ts +10 -0
- package/es/modules/self-registration/controls/Tips/index.js +11 -0
- package/es/modules/self-registration/controls/Tips/index.js.map +1 -0
- package/es/modules/self-registration/controls/index.d.ts +1 -0
- package/es/modules/self-registration/controls/index.js +2 -0
- package/es/modules/self-registration/controls/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.d.ts +12 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js +42 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/IncorporationCLDAClientContext.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js +44 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationCLDAClientView/index.less +9 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js +25 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/IncorporationDefaultView/index.less +18 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js +33 -0
- package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js +30 -0
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js +16 -0
- package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js +54 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/ApplicationProcessing/index.less +37 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.d.ts +4 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js +85 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CLDAIncorporationDefaultView/index.less +26 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js +91 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/CompanyInfo/index.less +7 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js +92 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/OfficerList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js +74 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareCapital/index.less +28 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js +106 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js +45 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/ShareholderList/state.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.d.ts +12 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js +63 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.less +25 -0
- package/es/modules/self-registration/incorporation-form/Download/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js +71 -0
- package/es/modules/self-registration/incorporation-form/Download/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Download/index.less +41 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.d.ts +19 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js +33 -0
- package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js +48 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/Upload/index.less +15 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js +32 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js +55 -0
- package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.d.ts +11 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js +75 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/components/MemberInfo/index.less +74 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.d.ts +6 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js +16 -0
- package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.d.ts +3 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js +11 -0
- package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.d.ts +5 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js +23 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js.map +1 -0
- package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.less +28 -0
- package/es/modules/self-registration/shopping-cart/CartState.d.ts +55 -0
- package/es/modules/self-registration/shopping-cart/CartState.js +245 -0
- package/es/modules/self-registration/shopping-cart/CartState.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +79 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -0
- package/es/modules/self-registration/shopping-cart/Paid.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Paid.js +31 -0
- package/es/modules/self-registration/shopping-cart/Paid.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js +30 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.d.ts +5 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js +16 -0
- package/es/modules/self-registration/shopping-cart/components/Arrangement.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js +35 -0
- package/es/modules/self-registration/shopping-cart/components/Incorporation.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js +37 -0
- package/es/modules/self-registration/shopping-cart/components/NameAndActivities.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js +28 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -0
- package/es/modules/self-registration/shopping-cart/components/Register.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js +76 -0
- package/es/modules/self-registration/shopping-cart/components/Register.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js +63 -0
- package/es/modules/self-registration/shopping-cart/components/Secretary.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js +137 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.d.ts +12 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js +48 -0
- package/es/modules/self-registration/shopping-cart/components/ShareHolders/state.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.d.ts +11 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js +56 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -0
- package/es/modules/self-registration/shopping-cart/components/index.d.ts +8 -0
- package/es/modules/self-registration/shopping-cart/components/index.js +9 -0
- package/es/modules/self-registration/shopping-cart/components/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/components/styles.less +23 -0
- package/es/modules/self-registration/shopping-cart/index.d.ts +3 -0
- package/es/modules/self-registration/shopping-cart/index.js +4 -0
- package/es/modules/self-registration/shopping-cart/index.js.map +1 -0
- package/es/modules/self-registration/shopping-cart/pages.less +6 -0
- package/es/routes.d.ts +51 -1
- package/es/routes.js +81 -1
- package/es/routes.js.map +1 -1
- package/es/style/common.less +14 -1
- package/package.json +6 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
.member-info {
|
|
4
|
+
:global {
|
|
5
|
+
.action-button {
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: flex-end;
|
|
9
|
+
|
|
10
|
+
> span {
|
|
11
|
+
margin-left: 6px;
|
|
12
|
+
color: lightgray;
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
color: @primary-color;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
.member-card {
|
|
25
|
+
min-width: 200px;
|
|
26
|
+
margin-right: 20px;
|
|
27
|
+
:global {
|
|
28
|
+
.member-title {
|
|
29
|
+
font-size: 17px;
|
|
30
|
+
color: white;
|
|
31
|
+
padding: 8px 16px;
|
|
32
|
+
background: @primary-color;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
align-items: center;
|
|
36
|
+
border-radius: 8px 8px 0 0;
|
|
37
|
+
.member-name{
|
|
38
|
+
svg {
|
|
39
|
+
color: #fff;
|
|
40
|
+
margin-right: 6px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.errorIcon {
|
|
44
|
+
color: rgba(255, 200, 200, 1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
.member-content {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
font-size: 15px;
|
|
53
|
+
padding: 10px 16px;
|
|
54
|
+
border: 1px solid gainsboro;
|
|
55
|
+
border-top: none;
|
|
56
|
+
min-height: 100px;
|
|
57
|
+
border-radius: 0 0 8px 8px;
|
|
58
|
+
.actions {
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: flex-end;
|
|
62
|
+
> span {
|
|
63
|
+
margin-left: 6px;
|
|
64
|
+
color: lightgray;
|
|
65
|
+
&:hover {
|
|
66
|
+
color: @primary-color;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
color: @primary-color;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Access, Move, Paste, Print } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
|
|
4
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
const IncorpoationFormMenu = (props) => {
|
|
7
|
+
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
8
|
+
return observe(() => (React.createElement("div", { className: classnames("document-menu", props.className) },
|
|
9
|
+
React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
10
|
+
React.createElement(Move, null),
|
|
11
|
+
React.createElement(Paste, null),
|
|
12
|
+
React.createElement(Access, null),
|
|
13
|
+
React.createElement(Print, { disabled: true })))));
|
|
14
|
+
};
|
|
15
|
+
export default IncorpoationFormMenu;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/controls/IncorpoationFormMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,oBAAoB,GAAG,CAAC,KAG7B,EAAE,EAAE;IACJ,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAE3E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3D,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;YAC3C,oBAAC,IAAI,OAAG;YACR,oBAAC,KAAK,OAAG;YACT,oBAAC,MAAM,OAAG;YACV,oBAAC,KAAK,IAAC,QAAQ,SAAG,CACY,CAC1B,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRouteMatch } from "react-router";
|
|
2
|
+
import CompanyInfoForm from "../../CompanyInfoForm";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
const IncoprorationFormClientView = () => {
|
|
6
|
+
const match = useRouteMatch();
|
|
7
|
+
const id = match.params.id;
|
|
8
|
+
return observe(() => React.createElement(CompanyInfoForm, { id: id, arrangement: false }));
|
|
9
|
+
};
|
|
10
|
+
export default IncoprorationFormClientView;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,aAAa,EAAE,MAAM,cAAc,CAAC;AAExE,OAAO,eAAe,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,GAAI,CAAC,CAAC;AACvE,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
5
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
6
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
7
|
+
import IncorporationFromProperties from "../../components/IncorporationFromProperties";
|
|
8
|
+
import IncorporationFromReview from "../../components/IncorporationFromReview";
|
|
9
|
+
import styles from "./index.less";
|
|
10
|
+
const IncorporationFromDefaultView = (props) => {
|
|
11
|
+
const store = new TabItemStore({ url: "" });
|
|
12
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
13
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
14
|
+
React.createElement(MainContent, { className: styles["incorporation-from-default-view"] },
|
|
15
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
16
|
+
React.createElement(IncorporationFromProperties, { id: props.id })),
|
|
17
|
+
React.createElement("div", { className: "incorporation-from-context" },
|
|
18
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
19
|
+
React.createElement(IncorporationFromReview, { id: props.id }),
|
|
20
|
+
React.createElement(DocumentTabs, { id: props.id })))))));
|
|
21
|
+
};
|
|
22
|
+
export default IncorporationFromDefaultView;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,2BAA2B,MAAM,8CAA8C,CAAC;AACvF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,4BAA4B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9D,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,iCAAiC,CAAC;YAChE,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,2BAA2B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC5B;YAClB,6BAAK,SAAS,EAAC,4BAA4B;gBAC1C,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;oBACzC,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAChB,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.incorporation-from-default-view {
|
|
2
|
+
:global {
|
|
3
|
+
.main-content-nav {
|
|
4
|
+
width: 370px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.incorporation-from-context {
|
|
9
|
+
// background: #fff;
|
|
10
|
+
|
|
11
|
+
.incorporation-form-view {
|
|
12
|
+
padding: 0 20px 20px 0 !important;
|
|
13
|
+
margin-right: -17px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ant-tabs {
|
|
17
|
+
z-index: 1;
|
|
18
|
+
background: #fff;
|
|
19
|
+
|
|
20
|
+
&>.ant-tabs-nav {
|
|
21
|
+
background: #fff;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EditOrderOptions, IIncorporateCart, IOptions, IPackage } from "../../../data/cart";
|
|
3
|
+
import { CartStore } from "../../../data/cart";
|
|
4
|
+
import { LayoutContext } from "@voplus/morpho-data";
|
|
5
|
+
import { MemberRole } from "../../../data/member";
|
|
6
|
+
export interface ICharge {
|
|
7
|
+
charge(token: string, email: string): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare type BusinessNameValidateStatus = {
|
|
10
|
+
/** True: checking started. False: checking completed. */
|
|
11
|
+
checking: boolean;
|
|
12
|
+
/** duplicated business name or undefined if no duplicats. */
|
|
13
|
+
duplicate?: {
|
|
14
|
+
entity_name: string;
|
|
15
|
+
uen: string;
|
|
16
|
+
};
|
|
17
|
+
/** Input validate status */
|
|
18
|
+
validateStatus?: "validating" | "error";
|
|
19
|
+
hasFeedback?: boolean;
|
|
20
|
+
help?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare class CartState implements ICharge {
|
|
23
|
+
id: string;
|
|
24
|
+
private cartStore;
|
|
25
|
+
private context?;
|
|
26
|
+
/** */
|
|
27
|
+
nameValidateStatus: BusinessNameValidateStatus;
|
|
28
|
+
/** */
|
|
29
|
+
order: IIncorporateCart;
|
|
30
|
+
/** options of order */
|
|
31
|
+
options: IOptions;
|
|
32
|
+
/** */
|
|
33
|
+
packages: IPackage[];
|
|
34
|
+
/** */
|
|
35
|
+
roles: MemberRole[];
|
|
36
|
+
constructor(id: string, cartStore: CartStore, context?: LayoutContext | undefined);
|
|
37
|
+
updateCart(data?: EditOrderOptions): Promise<void> | void;
|
|
38
|
+
removeSecretary(): void;
|
|
39
|
+
update(incorporation: IIncorporateCart): void;
|
|
40
|
+
addRole(name: string, role: MemberRole, email?: string): void;
|
|
41
|
+
removeRole(name: string, role: string): void;
|
|
42
|
+
charge(token: string, email: string): Promise<void>;
|
|
43
|
+
get entityId(): string | null;
|
|
44
|
+
get secretary(): import("../../../data/member").IMember | undefined;
|
|
45
|
+
get totalPrice(): number;
|
|
46
|
+
get activityError(): string | undefined;
|
|
47
|
+
get nameActivityHasError(): boolean;
|
|
48
|
+
get names(): string[];
|
|
49
|
+
get secretaryFinished(): boolean;
|
|
50
|
+
get addressFinished(): boolean;
|
|
51
|
+
get officerFinished(): boolean;
|
|
52
|
+
get chooseServicesFinished(): boolean;
|
|
53
|
+
}
|
|
54
|
+
export declare const CartContext: import("react").Context<CartState>;
|
|
55
|
+
export declare const useCartContext: () => CartState;
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, computed, makeAutoObservable, observable } from "mobx";
|
|
3
|
+
import { createContext, useContext } from "react";
|
|
4
|
+
import Routes from "../incorporation-form/IncorporationFormRoutes";
|
|
5
|
+
import { message } from "@voplus/antd";
|
|
6
|
+
export class CartState {
|
|
7
|
+
constructor(id, cartStore, context) {
|
|
8
|
+
Object.defineProperty(this, "id", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
configurable: true,
|
|
11
|
+
writable: true,
|
|
12
|
+
value: id
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(this, "cartStore", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: cartStore
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(this, "context", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: context
|
|
25
|
+
});
|
|
26
|
+
/** */
|
|
27
|
+
Object.defineProperty(this, "nameValidateStatus", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: { checking: false }
|
|
32
|
+
});
|
|
33
|
+
/** */
|
|
34
|
+
Object.defineProperty(this, "order", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
/** options of order */
|
|
41
|
+
Object.defineProperty(this, "options", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: void 0
|
|
46
|
+
});
|
|
47
|
+
/** */
|
|
48
|
+
Object.defineProperty(this, "packages", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
value: void 0
|
|
53
|
+
});
|
|
54
|
+
/** */
|
|
55
|
+
Object.defineProperty(this, "roles", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: []
|
|
60
|
+
});
|
|
61
|
+
makeAutoObservable(this);
|
|
62
|
+
}
|
|
63
|
+
updateCart(data) {
|
|
64
|
+
this.cartStore.edit(this.id, {
|
|
65
|
+
data: data !== null && data !== void 0 ? data : this.options,
|
|
66
|
+
error: "message",
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
removeSecretary() {
|
|
70
|
+
const index = this.options.members.findIndex((x) => x.roles.some((r) => r === "Secretary"));
|
|
71
|
+
if (index !== -1) {
|
|
72
|
+
const member = this.options.members[index];
|
|
73
|
+
this.removeRole(member.name, "Secretary");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
update(incorporation) {
|
|
77
|
+
this.order = incorporation;
|
|
78
|
+
this.options = incorporation.model.options;
|
|
79
|
+
this.packages = incorporation.model.packages || [];
|
|
80
|
+
}
|
|
81
|
+
addRole(name, role, email) {
|
|
82
|
+
// convert name
|
|
83
|
+
name = name
|
|
84
|
+
.toUpperCase()
|
|
85
|
+
.split(" ")
|
|
86
|
+
.filter((x) => !!x)
|
|
87
|
+
.join(" ");
|
|
88
|
+
const memberIndex = this.options.members.findIndex((x) => x.name === name);
|
|
89
|
+
if (memberIndex !== -1) {
|
|
90
|
+
const member = this.options.members[memberIndex];
|
|
91
|
+
const roles = member.roles;
|
|
92
|
+
const index = roles.findIndex((x) => x === role);
|
|
93
|
+
if (index !== -1)
|
|
94
|
+
return;
|
|
95
|
+
roles.push(role);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
this.options.members.push({ name: name, roles: [role], email: email });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
removeRole(name, role) {
|
|
102
|
+
// convert name
|
|
103
|
+
name = name
|
|
104
|
+
.toUpperCase()
|
|
105
|
+
.split(" ")
|
|
106
|
+
.filter((x) => !!x)
|
|
107
|
+
.join(" ");
|
|
108
|
+
const memberIndex = this.options.members.findIndex((x) => x.name === name);
|
|
109
|
+
if (memberIndex !== -1) {
|
|
110
|
+
const member = this.options.members[memberIndex];
|
|
111
|
+
const roles = member.roles;
|
|
112
|
+
const index = roles.findIndex((x) => x === role);
|
|
113
|
+
if (index !== -1)
|
|
114
|
+
roles.splice(index, 1);
|
|
115
|
+
if (roles.length === 0)
|
|
116
|
+
this.options.members.splice(memberIndex, 1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async charge(token, email) {
|
|
120
|
+
var _a;
|
|
121
|
+
try {
|
|
122
|
+
await this.cartStore.charge(this.id, token);
|
|
123
|
+
}
|
|
124
|
+
catch (err) {
|
|
125
|
+
message.error(err.toString());
|
|
126
|
+
}
|
|
127
|
+
finally {
|
|
128
|
+
(_a = this.context) === null || _a === void 0 ? void 0 : _a.history.push(Routes.Incorporations.getPaidUrl(this.id));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
get entityId() {
|
|
132
|
+
if (this.order)
|
|
133
|
+
return this.options.legalEntityId;
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
get secretary() {
|
|
137
|
+
if (!this.order)
|
|
138
|
+
return undefined;
|
|
139
|
+
return this.options.members.find((x) => x.roles.some((r) => r === "Secretary"));
|
|
140
|
+
}
|
|
141
|
+
get totalPrice() {
|
|
142
|
+
if (!this.order || !this.packages)
|
|
143
|
+
return 0;
|
|
144
|
+
let t = 0;
|
|
145
|
+
for (const p of this.packages)
|
|
146
|
+
t += p.price;
|
|
147
|
+
return t;
|
|
148
|
+
}
|
|
149
|
+
get activityError() {
|
|
150
|
+
if (!this.options.businessActivities || !this.options.businessActivities.some((x) => !!x))
|
|
151
|
+
return "Must choose at least one business activity.";
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
get nameActivityHasError() {
|
|
155
|
+
return (this.nameValidateStatus.validateStatus === "error" ||
|
|
156
|
+
this.nameValidateStatus.validateStatus === "validating" ||
|
|
157
|
+
!!this.activityError);
|
|
158
|
+
}
|
|
159
|
+
get names() {
|
|
160
|
+
return this.options.members.map((x) => x.name);
|
|
161
|
+
}
|
|
162
|
+
get secretaryFinished() {
|
|
163
|
+
return this.options.useSecretary || this.secretary !== undefined;
|
|
164
|
+
}
|
|
165
|
+
get addressFinished() {
|
|
166
|
+
return this.options.useAddress || !!this.options.address;
|
|
167
|
+
}
|
|
168
|
+
get officerFinished() {
|
|
169
|
+
return (this.options.useNomineeDirector ||
|
|
170
|
+
(this.options.members &&
|
|
171
|
+
this.options.members.some((m) => m.roles.some((r) => r === "Director"))));
|
|
172
|
+
}
|
|
173
|
+
get chooseServicesFinished() {
|
|
174
|
+
return (!this.nameActivityHasError &&
|
|
175
|
+
this.addressFinished &&
|
|
176
|
+
this.secretaryFinished &&
|
|
177
|
+
this.officerFinished);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
__decorate([
|
|
181
|
+
observable
|
|
182
|
+
], CartState.prototype, "nameValidateStatus", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
observable
|
|
185
|
+
], CartState.prototype, "order", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
observable
|
|
188
|
+
], CartState.prototype, "options", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
observable
|
|
191
|
+
], CartState.prototype, "packages", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
observable
|
|
194
|
+
], CartState.prototype, "roles", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
action
|
|
197
|
+
], CartState.prototype, "updateCart", null);
|
|
198
|
+
__decorate([
|
|
199
|
+
action
|
|
200
|
+
], CartState.prototype, "removeSecretary", null);
|
|
201
|
+
__decorate([
|
|
202
|
+
action
|
|
203
|
+
], CartState.prototype, "update", null);
|
|
204
|
+
__decorate([
|
|
205
|
+
action
|
|
206
|
+
], CartState.prototype, "addRole", null);
|
|
207
|
+
__decorate([
|
|
208
|
+
action
|
|
209
|
+
], CartState.prototype, "removeRole", null);
|
|
210
|
+
__decorate([
|
|
211
|
+
action
|
|
212
|
+
], CartState.prototype, "charge", null);
|
|
213
|
+
__decorate([
|
|
214
|
+
computed
|
|
215
|
+
], CartState.prototype, "entityId", null);
|
|
216
|
+
__decorate([
|
|
217
|
+
computed
|
|
218
|
+
], CartState.prototype, "secretary", null);
|
|
219
|
+
__decorate([
|
|
220
|
+
computed
|
|
221
|
+
], CartState.prototype, "totalPrice", null);
|
|
222
|
+
__decorate([
|
|
223
|
+
computed
|
|
224
|
+
], CartState.prototype, "activityError", null);
|
|
225
|
+
__decorate([
|
|
226
|
+
computed
|
|
227
|
+
], CartState.prototype, "nameActivityHasError", null);
|
|
228
|
+
__decorate([
|
|
229
|
+
computed
|
|
230
|
+
], CartState.prototype, "names", null);
|
|
231
|
+
__decorate([
|
|
232
|
+
computed
|
|
233
|
+
], CartState.prototype, "secretaryFinished", null);
|
|
234
|
+
__decorate([
|
|
235
|
+
computed
|
|
236
|
+
], CartState.prototype, "addressFinished", null);
|
|
237
|
+
__decorate([
|
|
238
|
+
computed
|
|
239
|
+
], CartState.prototype, "officerFinished", null);
|
|
240
|
+
__decorate([
|
|
241
|
+
computed
|
|
242
|
+
], CartState.prototype, "chooseServicesFinished", null);
|
|
243
|
+
export const CartContext = createContext(null);
|
|
244
|
+
export const useCartContext = () => useContext(CartContext);
|
|
245
|
+
//# sourceMappingURL=CartState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CartState.js","sourceRoot":"","sources":["../../../../src/modules/self-registration/shopping-cart/CartState.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAKlD,OAAO,MAAM,MAAM,+CAA+C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAoBvC,MAAM,OAAO,SAAS;IAYrB,YACQ,EAAU,EACT,SAAoB,EACpB,OAAuB;;;;;mBAFxB;;;;;;mBACC;;;;;;mBACA;;QAdT,MAAM;QACM;;;;mBAAwD,EAAE,QAAQ,EAAE,KAAK,EAAE;WAAC;QACxF,MAAM;QACM;;;;;WAA+B;QAC3C,uBAAuB;QACX;;;;;WAAyB;QACrC,MAAM;QACM;;;;;WAA4B;QACxC,MAAM;QACM;;;;mBAA6B,EAAE;WAAC;QAO3C,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAIM,UAAU,CAAC,IAAuB;QACxC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YAC5B,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAC,OAAO;YAC1B,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;IAGM,eAAe;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CACjD,CAAC,CAA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AiC;AAY5C;IAFC,MAAM;2CAON;AAGD;IADC,MAAM;gDAUN;AAID;IAFC,MAAM;uCAMN;AAED;IADC,MAAM;wCAoBN;AAGD;IADC,MAAM;2CAkBN;AAGD;IADC,MAAM;uCASN;AAES;IAAT,QAAQ;yCAGR;AAGD;IADC,QAAQ;0CAIR;AAGD;IADC,QAAQ;2CAMR;AAGD;IADC,QAAQ;8CAKR;AAED;IADC,QAAQ;qDAOR;AAGD;IADC,QAAQ;sCAGR;AAGD;IADC,QAAQ;kDAGR;AAGD;IADC,QAAQ;gDAGR;AAGD;IADC,QAAQ;gDAOR;AAGD;IADC,QAAQ;uDAQR;AAGF,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAY,IAAW,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Button, Col, Modal, Row, Spin } from "@voplus/antd";
|
|
2
|
+
import { CartContext, CartState } from "../CartState";
|
|
3
|
+
import { Incorporation, NameAndActivities, Register, Secretary, ShareHolders, TotalCart, } from "../components";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { faInfo, faWarehouse } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import { useCart, useCartStore } from "../../../../data/cart";
|
|
7
|
+
import { CheckSection } from "../../components";
|
|
8
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
|
10
|
+
import NavigateButtonsBar from "@voplus/morpho-ui/es/controls/NavigateButtonsBar";
|
|
11
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
12
|
+
import { Section } from "../../controls";
|
|
13
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
import { useIncorporationCLDAStore } from "../../../../data/incorporation-clda";
|
|
16
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
17
|
+
const ChooseService = (props) => {
|
|
18
|
+
const cartStore = useCartStore();
|
|
19
|
+
const [cart] = useState(new CartState(props.id, cartStore));
|
|
20
|
+
const incorporation = useCart(props.id);
|
|
21
|
+
cart.update(incorporation);
|
|
22
|
+
const layout = useLayout();
|
|
23
|
+
const store = useIncorporationCLDAStore();
|
|
24
|
+
return observe(() => incorporation.loaded ? (React.createElement(CartContext.Provider, { value: cart },
|
|
25
|
+
React.createElement("div", { className: styles.ChooseService },
|
|
26
|
+
React.createElement(Row, { gutter: 16 },
|
|
27
|
+
React.createElement(Col, { lg: 19, sm: 18 },
|
|
28
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
29
|
+
React.createElement(Section, { title: React.createElement(React.Fragment, null,
|
|
30
|
+
React.createElement(FontAwesomeIcon, { icon: faInfo }),
|
|
31
|
+
"Choose Services") },
|
|
32
|
+
React.createElement("pre", null, `Thank you to choose VOPlus to incorporate your singapore company. Just a few more
|
|
33
|
+
steps your singapore company will be ready. Our incorporation package now comes with
|
|
34
|
+
first year corporate secretary service plus our prestigious CBD address.`)),
|
|
35
|
+
React.createElement(CheckSection, { title: React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement(FontAwesomeIcon, { icon: faWarehouse }),
|
|
37
|
+
"Company Name and Business Activities"), success: !cart.nameActivityHasError },
|
|
38
|
+
React.createElement(NameAndActivities, null)),
|
|
39
|
+
React.createElement(Incorporation, null),
|
|
40
|
+
React.createElement(Secretary, null),
|
|
41
|
+
React.createElement(Register, null),
|
|
42
|
+
React.createElement(ShareHolders, null),
|
|
43
|
+
React.createElement(NavigateButtonsBar, null,
|
|
44
|
+
React.createElement(Button, { type: "primary", onClick: next }, "Continue")))),
|
|
45
|
+
React.createElement(Col, { lg: 5, sm: 6, style: { position: "sticky", top: "0.5rem" } },
|
|
46
|
+
React.createElement(TotalCart, null)))))) : (React.createElement("div", { style: { textAlign: "center" } },
|
|
47
|
+
React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 24 }, spin: true }) }))));
|
|
48
|
+
async function next() {
|
|
49
|
+
if (!cart.options.useNomineeDirector) {
|
|
50
|
+
Modal.confirm({
|
|
51
|
+
title: "Do you have your own local resident director ?",
|
|
52
|
+
content: (React.createElement("div", null,
|
|
53
|
+
"As you have Not selected our \"Local Nominee Director\" service, please ensure that you have at least one director who is a Singapore Citizen, Singapore PR or Singapore Employment Pass Holder. ",
|
|
54
|
+
React.createElement("br", null),
|
|
55
|
+
React.createElement("br", null),
|
|
56
|
+
"Please click \"Continue\" to confirm and proceed.")),
|
|
57
|
+
okText: "Continue",
|
|
58
|
+
onOk: async () => {
|
|
59
|
+
const clda = await store.create({
|
|
60
|
+
data: { Name: "incorporations-clda", ParentId: props.id },
|
|
61
|
+
error: "message",
|
|
62
|
+
});
|
|
63
|
+
layout.history.push(`/incorporation-clda-client/${clda.id}`);
|
|
64
|
+
// layout.history.replace(Routes.Incorporations.getPaymentUrl(props.id));
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
const clda = await store.create({
|
|
70
|
+
data: { Name: "incorporations-clda", ParentId: props.id },
|
|
71
|
+
error: "message",
|
|
72
|
+
});
|
|
73
|
+
layout.history.push(`/incorporation-clda-client/${clda.id}`);
|
|
74
|
+
// layout.history.push(Routes.Incorporations.getPaymentUrl(props.id));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
export default ChooseService;
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/self-registration/shopping-cart/ChooseService/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE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,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG,GAAI,CACjE,CACN,CACD,CAAC;IAEF,KAAK,UAAU,IAAI;QAClB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE;YACrC,KAAK,CAAC,OAAO,CAAC;gBACb,KAAK,EAAE,gDAAgD;gBACvD,OAAO,EAAE,CACR;;oBAGmC,+BAAM;oBACxC,+BAAM;wEAED,CACN;gBACD,MAAM,EAAE,UAAU;gBAClB,IAAI,EAAE,KAAK,IAAI,EAAE;oBAChB,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;wBAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE;wBACzD,KAAK,EAAE,SAAS;qBAChB,CAAC,CAAC;oBACH,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;oBAC7D,yEAAyE;gBAC1E,CAAC;aACD,CAAC,CAAC;SACH;aAAM;YACN,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;gBAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE,EAAE;gBACzD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7D,sEAAsE;SACtE;IACF,CAAC;AACF,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Button, Result, message } from "@voplus/antd";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { Arrangement } from "./components";
|
|
4
|
+
import styles from "./Payment/index.less";
|
|
5
|
+
import { useCartStore } from "../../../data/cart";
|
|
6
|
+
const Paid = (props) => {
|
|
7
|
+
const [loading, setLoading] = useState(false);
|
|
8
|
+
const store = useCartStore();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
window.scrollTo(0, 0);
|
|
11
|
+
});
|
|
12
|
+
return (React.createElement("div", { className: styles.payment },
|
|
13
|
+
React.createElement(Arrangement, { step: 1 }),
|
|
14
|
+
React.createElement(Result, { status: "success", title: "Transaction Successful! Thank you for your payment.", subTitle: "Just a few more easy steps to incorporate your Singapore company.", extra: [
|
|
15
|
+
React.createElement(Button, { key: "Next", type: "primary", onClick: prepare, disabled: loading, loading: loading }, "Next"),
|
|
16
|
+
] })));
|
|
17
|
+
async function prepare() {
|
|
18
|
+
try {
|
|
19
|
+
setLoading(true);
|
|
20
|
+
await store.prepare(props.id);
|
|
21
|
+
}
|
|
22
|
+
catch (err) {
|
|
23
|
+
message.error(err.toString());
|
|
24
|
+
}
|
|
25
|
+
finally {
|
|
26
|
+
setLoading(false);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export default Paid;
|
|
31
|
+
//# sourceMappingURL=Paid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paid.js","sourceRoot":"","sources":["../../../../src/modules/self-registration/shopping-cart/Paid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,IAAI,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,KAAK,GAAG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