@unimaze/billing 0.21.52 → 0.21.54
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/lib/create-invoice/index.js +13 -5
- package/package.json +2 -10
- package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/common/components/billing-lines/cwdwdw.d.ts +0 -1
- package/lib/common/components/billing-lines/cwdwdw.js +0 -14
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -109
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
- package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -110
- package/lib/unimaze-api-clients/src/mapi/api.d.ts +0 -6664
- package/lib/unimaze-api-clients/src/mapi/api.js +0 -4743
- package/lib/unimaze-api-clients/src/mapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/mapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/mapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/mapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/mapi/index.js +0 -30
- package/lib/unimaze-api-clients/src/rapi/api.d.ts +0 -5015
- package/lib/unimaze-api-clients/src/rapi/api.js +0 -5582
- package/lib/unimaze-api-clients/src/rapi/base.d.ts +0 -55
- package/lib/unimaze-api-clients/src/rapi/base.js +0 -84
- package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +0 -63
- package/lib/unimaze-api-clients/src/rapi/configuration.js +0 -28
- package/lib/unimaze-api-clients/src/rapi/index.d.ts +0 -13
- package/lib/unimaze-api-clients/src/rapi/index.js +0 -30
- package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +0 -74
- package/lib/unimaze-billing/src/common/components/CommonTranslations.js +0 -78
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +0 -164
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +0 -206
- package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +0 -27
- package/lib/unimaze-billing/src/common/components/attachments/index.js +0 -214
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +0 -61
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +0 -16
- package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +0 -58
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +0 -30
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +0 -53
- package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +0 -328
- package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +0 -77
- package/lib/unimaze-billing/src/common/components/base-information/index.js +0 -186
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +0 -151
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +0 -24
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +0 -61
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +0 -13
- package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +0 -133
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +0 -20
- package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +0 -17
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +0 -10
- package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +0 -16
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +0 -134
- package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +0 -209
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +0 -36
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +0 -19
- package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +0 -275
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +0 -15
- package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +0 -49
- package/lib/unimaze-billing/src/common/components/billing-lines/index.js +0 -104
- package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/component-container/Content.js +0 -13
- package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +0 -9
- package/lib/unimaze-billing/src/common/components/component-container/Header.js +0 -28
- package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/component-container/index.js +0 -22
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +0 -163
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +0 -17
- package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +0 -53
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +0 -41
- package/lib/unimaze-billing/src/common/components/customer/index.d.ts +0 -26
- package/lib/unimaze-billing/src/common/components/customer/index.js +0 -166
- package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +0 -21
- package/lib/unimaze-billing/src/common/components/date-picker/index.js +0 -23
- package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/delivery-location/index.js +0 -89
- package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/editable-cell/index.js +0 -295
- package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +0 -5
- package/lib/unimaze-billing/src/common/components/editable-row/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +0 -35
- package/lib/unimaze-billing/src/common/components/form-item/index.js +0 -60
- package/lib/unimaze-billing/src/common/components/index.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/index.js +0 -42
- package/lib/unimaze-billing/src/common/components/input/index.d.ts +0 -23
- package/lib/unimaze-billing/src/common/components/input/index.js +0 -37
- package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +0 -42
- package/lib/unimaze-billing/src/common/components/invoice/index.js +0 -59
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +0 -75
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +0 -73
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +0 -104
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +0 -12
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +0 -93
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +0 -77
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +0 -58
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +0 -14
- package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +0 -52
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +0 -102
- package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +0 -196
- package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
- package/lib/unimaze-billing/src/common/components/locale-intl/index.js +0 -51
- package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +0 -76
- package/lib/unimaze-billing/src/common/components/payment-method/index.js +0 -356
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +0 -37
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +0 -3
- package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +0 -17
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +0 -8
- package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +0 -34
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +0 -18
- package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +0 -159
- package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +0 -94
- package/lib/unimaze-billing/src/common/components/supplier/index.js +0 -334
- package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +0 -7
- package/lib/unimaze-billing/src/common/components/tooltip/index.js +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +0 -15
- package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +0 -26
- package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +0 -74
- package/lib/unimaze-billing/src/common/consts/formLayout.js +0 -45
- package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +0 -6
- package/lib/unimaze-billing/src/common/consts/validationRules.js +0 -69
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +0 -5
- package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +0 -8
- package/lib/unimaze-billing/src/common/enums/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/enums/index.js +0 -8
- package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +0 -26
- package/lib/unimaze-billing/src/common/types/AppConfiguration.js +0 -2
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +0 -10
- package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +0 -2
- package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +0 -33
- package/lib/unimaze-billing/src/common/types/CommonProps.js +0 -2
- package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/DiscountType.js +0 -2
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +0 -2
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +0 -27
- package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +0 -2
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +0 -83
- package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +0 -393
- package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +0 -11
- package/lib/unimaze-billing/src/common/types/SupplierInfo.js +0 -2
- package/lib/unimaze-billing/src/common/types/index.d.ts +0 -1
- package/lib/unimaze-billing/src/common/types/index.js +0 -17
- package/lib/unimaze-billing/src/create-credit-note/index.d.ts +0 -9
- package/lib/unimaze-billing/src/create-credit-note/index.js +0 -62
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +0 -11
- package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +0 -116
- package/lib/unimaze-billing/src/create-invoice/index.d.ts +0 -82
- package/lib/unimaze-billing/src/create-invoice/index.js +0 -710
- package/lib/unimaze-billing/src/enums.d.ts +0 -14
- package/lib/unimaze-billing/src/enums.js +0 -18
- package/lib/unimaze-billing/src/index.d.ts +0 -4
- package/lib/unimaze-billing/src/index.js +0 -28
- package/lib/unimaze-billing/src/translations/locales/en.json +0 -183
- package/lib/unimaze-billing/src/translations/locales/is.json +0 -183
- package/lib/unimaze-billing/src/translations/locales.d.ts +0 -369
- package/lib/unimaze-billing/src/translations/locales.js +0 -11
- package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +0 -29
- package/lib/unimaze-billing/src/utils/ApiUtility.js +0 -133
- package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +0 -25
- package/lib/unimaze-billing/src/utils/BillingLineUtility.js +0 -190
- package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/ConversionUtility.js +0 -222
- package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +0 -9
- package/lib/unimaze-billing/src/utils/FileUploadUtility.js +0 -45
- package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +0 -6
- package/lib/unimaze-billing/src/utils/IntlUtility.js +0 -78
- package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +0 -1
- package/lib/unimaze-billing/src/utils/LocationUtility.js +0 -81
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +0 -7
- package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +0 -26
- package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +0 -21
- package/lib/unimaze-billing/src/utils/RequirementsUtility.js +0 -237
- package/lib/unimaze-billing/src/utils/index.d.ts +0 -2
- package/lib/unimaze-billing/src/utils/index.js +0 -8
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.translationMessages = void 0;
|
|
27
|
-
var react_1 = __importStar(require("react"));
|
|
28
|
-
var components_1 = require("../../components");
|
|
29
|
-
var antd_1 = require("antd");
|
|
30
|
-
var react_intl_1 = require("react-intl");
|
|
31
|
-
var form_item_1 = require("../form-item");
|
|
32
|
-
var RequirementsUtility_1 = require("../../../utils/RequirementsUtility");
|
|
33
|
-
var ReceiverRequirements_1 = require("../../types/ReceiverRequirements");
|
|
34
|
-
var mapi_1 = require("@unimaze/api-clients/lib/mapi");
|
|
35
|
-
var react_use_1 = require("react-use");
|
|
36
|
-
var CommonTranslations_1 = require("../CommonTranslations");
|
|
37
|
-
var lodash_1 = require("lodash");
|
|
38
|
-
exports.translationMessages = (0, react_intl_1.defineMessages)({
|
|
39
|
-
paymentMethod_title: {
|
|
40
|
-
id: "paymentMethod_title",
|
|
41
|
-
defaultMessage: "Payment method",
|
|
42
|
-
},
|
|
43
|
-
paymentMethod_label: {
|
|
44
|
-
id: "paymentMethod_label",
|
|
45
|
-
defaultMessage: "Account number",
|
|
46
|
-
},
|
|
47
|
-
paymentMethod_labels_domesticTransfer_bankNo: {
|
|
48
|
-
id: "paymentMethod_labels_domesticTransfer_bankNo",
|
|
49
|
-
defaultMessage: "Bank no",
|
|
50
|
-
},
|
|
51
|
-
paymentMethod_labels_domesticTransfer_accountType: {
|
|
52
|
-
id: "paymentMethod_labels_domesticTransfer_accountType",
|
|
53
|
-
defaultMessage: "Account type",
|
|
54
|
-
},
|
|
55
|
-
paymentMethod_labels_domesticTransfer_accountNo: {
|
|
56
|
-
id: "paymentMethod_labels_domesticTransfer_accountNo",
|
|
57
|
-
defaultMessage: "Account no",
|
|
58
|
-
},
|
|
59
|
-
paymentMethod_labels_domesticTransfer_paymentReference: {
|
|
60
|
-
id: "paymentMethod_labels_domesticTransfer_paymentReference",
|
|
61
|
-
defaultMessage: "Payment reference",
|
|
62
|
-
},
|
|
63
|
-
paymentMethod_labels_icelandicClaim_bankNo: {
|
|
64
|
-
id: "paymentMethod_labels_icelandicClaim_bankNo",
|
|
65
|
-
defaultMessage: "Bank no",
|
|
66
|
-
},
|
|
67
|
-
paymentMethod_labels_icelandicClaim_claimNo: {
|
|
68
|
-
id: "paymentMethod_labels_icelandicClaim_claimNo",
|
|
69
|
-
defaultMessage: "Account no",
|
|
70
|
-
// defaultMessage: "Claim no", // "Kröfunúmer",
|
|
71
|
-
},
|
|
72
|
-
paymentMethod_labels_methods_undefined: {
|
|
73
|
-
id: "paymentMethod_labels_methods_undefined",
|
|
74
|
-
defaultMessage: "Undefined",
|
|
75
|
-
},
|
|
76
|
-
paymentMethod_labels_methods_mutuallyAgreed: {
|
|
77
|
-
id: "paymentMethod_labels_methods_mutuallyAgreed",
|
|
78
|
-
defaultMessage: "Mutually agreed",
|
|
79
|
-
},
|
|
80
|
-
paymentMethod_labels_methods_domesticTransfer: {
|
|
81
|
-
id: "paymentMethod_labels_methods_domesticTransfer",
|
|
82
|
-
defaultMessage: "Transfer", // Domestic transfer - "Millifærsla innanlands"
|
|
83
|
-
},
|
|
84
|
-
paymentMethod_labels_methods_domesticClaim: {
|
|
85
|
-
id: "paymentMethod_labels_methods_domesticClaim",
|
|
86
|
-
defaultMessage: "Claim",
|
|
87
|
-
},
|
|
88
|
-
paymentMethod_rules_number: {
|
|
89
|
-
id: "paymentMethod_rules_number",
|
|
90
|
-
defaultMessage: "Please use only number characters",
|
|
91
|
-
},
|
|
92
|
-
paymentMethod_rules_Length: {
|
|
93
|
-
id: "paymentMethod_rules_Length",
|
|
94
|
-
defaultMessage: "{fieldName} must be between {min} and {max}",
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
var PaymentMethod = function (props) {
|
|
98
|
-
var width = (0, react_use_1.useWindowSize)().width;
|
|
99
|
-
var _a = (0, react_1.useState)(false), isMobile = _a[0], setIsMobile = _a[1];
|
|
100
|
-
var colorInfoBg = antd_1.theme.useToken().token.colorInfoBg;
|
|
101
|
-
react_1.default.useEffect(function () {
|
|
102
|
-
if (width < 768) {
|
|
103
|
-
setIsMobile(true);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
setIsMobile(false);
|
|
107
|
-
}
|
|
108
|
-
}, [width]);
|
|
109
|
-
var paymentMeansType = props.formInstance.getFieldValue([
|
|
110
|
-
"invoice",
|
|
111
|
-
"paymentMeans",
|
|
112
|
-
"type",
|
|
113
|
-
])
|
|
114
|
-
? props.formInstance.getFieldValue(["invoice", "paymentMeans", "type"])
|
|
115
|
-
: "NotSpecified";
|
|
116
|
-
var initialPaymentMeansType = mapi_1.PaymentMeansType[paymentMeansType];
|
|
117
|
-
var _b = (0, react_1.useState)(initialPaymentMeansType), paymentMethod = _b[0], setPaymentMethod = _b[1]; // PaymentMeansType.DomesticClaim);
|
|
118
|
-
var fieldPaths = [
|
|
119
|
-
["invoice", "paymentMeans", "domesticTransfer", "bankNumber"],
|
|
120
|
-
["invoice", "paymentMeans", "domesticTransfer", "accountTypeNumber"],
|
|
121
|
-
["invoice", "paymentMeans", "domesticTransfer", "accountNumber"],
|
|
122
|
-
["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier"],
|
|
123
|
-
["invoice", "paymentMeans", "domesticClaim", "bankNumber"],
|
|
124
|
-
["invoice", "paymentMeans", "domesticClaim", "accountNumber"],
|
|
125
|
-
["invoice", "paymentMeans", "type"],
|
|
126
|
-
];
|
|
127
|
-
var debouncedValidateFields = (0, lodash_1.debounce)(props.validateFields, 500);
|
|
128
|
-
react_1.default.useEffect(function () {
|
|
129
|
-
if (!props.isActiveStep)
|
|
130
|
-
return;
|
|
131
|
-
debouncedValidateFields(fieldPaths, true);
|
|
132
|
-
}, [props.isActiveStep, JSON.stringify(props.formInstance.getFieldsValue(fieldPaths))]);
|
|
133
|
-
var domesticTransferFormFields = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
134
|
-
react_1.default.createElement(antd_1.Form.Item, null,
|
|
135
|
-
react_1.default.createElement(antd_1.Row, { gutter: [8, 0] },
|
|
136
|
-
react_1.default.createElement(antd_1.Col, { span: 6 },
|
|
137
|
-
react_1.default.createElement(antd_1.Form.Item, { noStyle: true, name: ["invoice", "paymentMeans", "domesticTransfer", "bankNumber"], rules: [
|
|
138
|
-
{
|
|
139
|
-
pattern: new RegExp("^[0-9]*$"),
|
|
140
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_number),
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
required: true,
|
|
144
|
-
message: props.intl.formatMessage(form_item_1.translationMessages.formItem_required_errorMessage),
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
min: 1,
|
|
148
|
-
max: 4,
|
|
149
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_Length, {
|
|
150
|
-
fieldName: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_bankNo),
|
|
151
|
-
min: 1,
|
|
152
|
-
max: 4,
|
|
153
|
-
}),
|
|
154
|
-
},
|
|
155
|
-
] },
|
|
156
|
-
react_1.default.createElement(components_1.UmzInput, { defaultIsRequired: true, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_bankNo) }))),
|
|
157
|
-
react_1.default.createElement(antd_1.Col, { span: 6 },
|
|
158
|
-
react_1.default.createElement(antd_1.Form.Item, { noStyle: true,
|
|
159
|
-
// label={props.intl.formatMessage(translationMessages.paymentMethod_labels_domesticTransfer_accountType)}
|
|
160
|
-
name: ["invoice", "paymentMeans", "domesticTransfer", "accountTypeNumber"], rules: [
|
|
161
|
-
{
|
|
162
|
-
required: true,
|
|
163
|
-
message: props.intl.formatMessage(form_item_1.translationMessages.formItem_required_errorMessage),
|
|
164
|
-
},
|
|
165
|
-
] },
|
|
166
|
-
react_1.default.createElement(antd_1.Select, { placeholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountType), popupMatchSelectWidth: false, defaultValue: props.formInstance.getFieldValue([
|
|
167
|
-
"invoice",
|
|
168
|
-
"paymentMeans",
|
|
169
|
-
"domesticTransfer",
|
|
170
|
-
"accountTypeNumber",
|
|
171
|
-
]) || "04" },
|
|
172
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "04" }, "04"),
|
|
173
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "05" }, "05"),
|
|
174
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "13" }, "13"),
|
|
175
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "14" }, "14"),
|
|
176
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "15" }, "15"),
|
|
177
|
-
react_1.default.createElement(antd_1.Select.Option, { value: "26" }, "26")))),
|
|
178
|
-
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
179
|
-
react_1.default.createElement(antd_1.Form.Item, { noStyle: true,
|
|
180
|
-
// label={props.intl.formatMessage(translationMessages.paymentMethod_labels_domesticTransfer_accountNo)}
|
|
181
|
-
name: ["invoice", "paymentMeans", "domesticTransfer", "accountNumber"], rules: [
|
|
182
|
-
{
|
|
183
|
-
pattern: new RegExp("^[0-9]*$"),
|
|
184
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_number),
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
required: true,
|
|
188
|
-
message: props.intl.formatMessage(form_item_1.translationMessages.formItem_required_errorMessage),
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
min: 1,
|
|
192
|
-
max: 6,
|
|
193
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_Length, {
|
|
194
|
-
fieldName: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountNo),
|
|
195
|
-
min: 1,
|
|
196
|
-
max: 6,
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
199
|
-
] },
|
|
200
|
-
react_1.default.createElement(components_1.UmzInput, { defaultIsRequired: true, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_accountNo) }))))),
|
|
201
|
-
react_1.default.createElement(antd_1.Form.Item, { name: ["invoice", "paymentMeans", "domesticTransfer", "paymentIdentifier"], rules: [
|
|
202
|
-
{
|
|
203
|
-
pattern: new RegExp("^[0-9]*$"),
|
|
204
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_number),
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
max: 18,
|
|
208
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_Length, {
|
|
209
|
-
fieldName: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_paymentReference),
|
|
210
|
-
min: 1,
|
|
211
|
-
max: 18,
|
|
212
|
-
}),
|
|
213
|
-
},
|
|
214
|
-
] },
|
|
215
|
-
react_1.default.createElement(components_1.UmzInput, { defaultIsRequired: false, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_domesticTransfer_paymentReference), defaultValue: props.formInstance.getFieldValue([
|
|
216
|
-
"invoice",
|
|
217
|
-
"paymentMeans",
|
|
218
|
-
"domesticTransfer",
|
|
219
|
-
"paymentIdentifier",
|
|
220
|
-
]) }))));
|
|
221
|
-
var icelandicClaimFormFields = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
222
|
-
react_1.default.createElement(antd_1.Form.Item, null,
|
|
223
|
-
react_1.default.createElement(antd_1.Row, { gutter: [8, 0] },
|
|
224
|
-
react_1.default.createElement(antd_1.Col, { span: 6 },
|
|
225
|
-
react_1.default.createElement(antd_1.Form.Item, { noStyle: true,
|
|
226
|
-
// label={props.intl.formatMessage(translationMessages.paymentMethod_labels_icelandicClaim_bankNo)}
|
|
227
|
-
name: ["invoice", "paymentMeans", "domesticClaim", "bankNumber"], rules: [
|
|
228
|
-
{
|
|
229
|
-
required: true,
|
|
230
|
-
message: props.intl.formatMessage(form_item_1.translationMessages.formItem_required_errorMessage),
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
pattern: new RegExp("^[0-9]*$"),
|
|
234
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_number),
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
min: 1,
|
|
238
|
-
max: 4,
|
|
239
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_Length, {
|
|
240
|
-
fieldName: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_icelandicClaim_bankNo),
|
|
241
|
-
min: 1,
|
|
242
|
-
max: 4,
|
|
243
|
-
}),
|
|
244
|
-
},
|
|
245
|
-
] },
|
|
246
|
-
react_1.default.createElement(components_1.UmzInput, { defaultIsRequired: true, defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_icelandicClaim_bankNo), defaultValue: props.formInstance.getFieldValue([
|
|
247
|
-
"invoice",
|
|
248
|
-
"paymentMeans",
|
|
249
|
-
"domesticClaim",
|
|
250
|
-
"bankNumber",
|
|
251
|
-
]) }))),
|
|
252
|
-
react_1.default.createElement(antd_1.Col, { span: 6 },
|
|
253
|
-
react_1.default.createElement(antd_1.Input, { disabled: true, value: 66 })),
|
|
254
|
-
react_1.default.createElement(antd_1.Col, { span: 12 },
|
|
255
|
-
react_1.default.createElement(antd_1.Form.Item, { noStyle: true,
|
|
256
|
-
// label={props.intl.formatMessage(translationMessages.paymentMethod_labels_icelandicClaim_claimNo)}
|
|
257
|
-
name: ["invoice", "paymentMeans", "domesticClaim", "accountNumber"], rules: [
|
|
258
|
-
{
|
|
259
|
-
required: true,
|
|
260
|
-
message: props.intl.formatMessage(form_item_1.translationMessages.formItem_required_errorMessage),
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
pattern: new RegExp("^[0-9]*$"),
|
|
264
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_number),
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
min: 1,
|
|
268
|
-
max: 6,
|
|
269
|
-
message: props.intl.formatMessage(exports.translationMessages.paymentMethod_rules_Length, {
|
|
270
|
-
fieldName: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_icelandicClaim_claimNo),
|
|
271
|
-
min: 1,
|
|
272
|
-
max: 6,
|
|
273
|
-
}),
|
|
274
|
-
},
|
|
275
|
-
] },
|
|
276
|
-
react_1.default.createElement(components_1.UmzInput, { defaultPlaceholder: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_icelandicClaim_claimNo), defaultIsRequired: true, defaultValue: props.formInstance.getFieldValue([
|
|
277
|
-
"invoice",
|
|
278
|
-
"paymentMeans",
|
|
279
|
-
"domesticClaim",
|
|
280
|
-
"accountNumber",
|
|
281
|
-
]) })))))));
|
|
282
|
-
var renderFormFields = function (payMthd) {
|
|
283
|
-
switch (payMthd) {
|
|
284
|
-
case mapi_1.PaymentMeansType.NotSpecified:
|
|
285
|
-
case mapi_1.PaymentMeansType.MutuallyAgreed:
|
|
286
|
-
return null;
|
|
287
|
-
case mapi_1.PaymentMeansType.DomesticTransfer:
|
|
288
|
-
return domesticTransferFormFields;
|
|
289
|
-
case mapi_1.PaymentMeansType.DomesticClaim:
|
|
290
|
-
return icelandicClaimFormFields;
|
|
291
|
-
default:
|
|
292
|
-
return null;
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
var defaultPaymentMethods = [
|
|
296
|
-
{
|
|
297
|
-
key: mapi_1.PaymentMeansType.NotSpecified,
|
|
298
|
-
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_undefined), // "Undefined" "Óskilgreint"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
key: mapi_1.PaymentMeansType.MutuallyAgreed,
|
|
302
|
-
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_mutuallyAgreed), // "Mutually agreed" "Skv. samkomulagi"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
key: mapi_1.PaymentMeansType.DomesticTransfer,
|
|
306
|
-
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_domesticTransfer), // "Transfer"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
key: mapi_1.PaymentMeansType.DomesticClaim,
|
|
310
|
-
name: props.intl.formatMessage(exports.translationMessages.paymentMethod_labels_methods_domesticClaim), // "Claim"
|
|
311
|
-
},
|
|
312
|
-
];
|
|
313
|
-
var onlyOnePaymentMeansTypeName = function (receiverRequirements) {
|
|
314
|
-
var _a, _b;
|
|
315
|
-
var paymentMeansTypeFieldDefinition = (0, RequirementsUtility_1.getFieldRequirements)(receiverRequirements, ReceiverRequirements_1.AvailableFields["paymentMeans.type"]);
|
|
316
|
-
if ((0, RequirementsUtility_1.paymentMeansTypeFieldHasValues)(paymentMeansTypeFieldDefinition) && ((_b = (_a = paymentMeansTypeFieldDefinition === null || paymentMeansTypeFieldDefinition === void 0 ? void 0 : paymentMeansTypeFieldDefinition.properties) === null || _a === void 0 ? void 0 : _a.values) === null || _b === void 0 ? void 0 : _b.length) === 1) {
|
|
317
|
-
var paymentFromReceiverRequirements = paymentMeansTypeFieldDefinition.properties.values[0].key;
|
|
318
|
-
if (paymentMethod !== paymentFromReceiverRequirements) {
|
|
319
|
-
setPaymentMethod(paymentFromReceiverRequirements);
|
|
320
|
-
}
|
|
321
|
-
return paymentMeansTypeFieldDefinition.properties.values[0].name;
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
return undefined;
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
var getPaymentMeansTypeOptions = function (receiverRequirements) {
|
|
328
|
-
var _a, _b, _c, _d, _e, _f;
|
|
329
|
-
var paymentMeansTypeFieldDefinition = (0, RequirementsUtility_1.getFieldRequirements)(receiverRequirements, ReceiverRequirements_1.AvailableFields["paymentMeans.type"]);
|
|
330
|
-
if ((0, RequirementsUtility_1.paymentMeansTypeFieldHasValues)(paymentMeansTypeFieldDefinition)
|
|
331
|
-
&& (((_b = (_a = paymentMeansTypeFieldDefinition === null || paymentMeansTypeFieldDefinition === void 0 ? void 0 : paymentMeansTypeFieldDefinition.properties) === null || _a === void 0 ? void 0 : _a.values) === null || _b === void 0 ? void 0 : _b.length) !== undefined && ((_d = (_c = paymentMeansTypeFieldDefinition === null || paymentMeansTypeFieldDefinition === void 0 ? void 0 : paymentMeansTypeFieldDefinition.properties) === null || _c === void 0 ? void 0 : _c.values) === null || _d === void 0 ? void 0 : _d.length) > 0)) {
|
|
332
|
-
return (_f = (_e = paymentMeansTypeFieldDefinition === null || paymentMeansTypeFieldDefinition === void 0 ? void 0 : paymentMeansTypeFieldDefinition.properties) === null || _e === void 0 ? void 0 : _e.values) === null || _f === void 0 ? void 0 : _f.map(function (op) {
|
|
333
|
-
return (react_1.default.createElement(antd_1.Select.Option, { key: op.key, value: mapi_1.PaymentMeansType[op.key], title: op.name }, op.name));
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return defaultPaymentMethods.map(function (op) {
|
|
338
|
-
return (react_1.default.createElement(antd_1.Select.Option, { key: op.key, value: mapi_1.PaymentMeansType[op.key], title: op.name }, op.name));
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
return (react_1.default.createElement(antd_1.Flex, { style: {
|
|
343
|
-
backgroundColor: isMobile ? undefined : colorInfoBg,
|
|
344
|
-
padding: isMobile ? 0 : "35px 0",
|
|
345
|
-
}, justify: "center" },
|
|
346
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, style: { width: "100%", maxWidth: "900px" }, gap: isMobile ? "small" : "middle" },
|
|
347
|
-
react_1.default.createElement(antd_1.Typography.Title, { level: 5 }, props.intl.formatMessage(exports.translationMessages.paymentMethod_title)),
|
|
348
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true },
|
|
349
|
-
onlyOnePaymentMeansTypeName(props.receiverRequirements) ?
|
|
350
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: 20 }, className: "ant-form-text", type: "secondary" }, onlyOnePaymentMeansTypeName(props.receiverRequirements))
|
|
351
|
-
: react_1.default.createElement(antd_1.Form.Item, { name: ["invoice", "paymentMeans", "type"] },
|
|
352
|
-
react_1.default.createElement(antd_1.Select, { popupMatchSelectWidth: false, value: paymentMethod, onSelect: setPaymentMethod, defaultValue: props.formInstance.getFieldValue(["invoice", "paymentMeans", "type"]) }, getPaymentMeansTypeOptions(props.receiverRequirements))),
|
|
353
|
-
renderFormFields(paymentMethod),
|
|
354
|
-
react_1.default.createElement(antd_1.Checkbox, { checked: props.isSaveFieldValuesSelected, onChange: props.onSaveFieldValuesChange }, props.intl.formatMessage(CommonTranslations_1.commonTranslationMessages.saveInformation_label))))));
|
|
355
|
-
};
|
|
356
|
-
exports.default = (0, react_intl_1.injectIntl)(PaymentMethod);
|
package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClaimMetadata, PaymentMeansType, TransferMetadata } from "@unimaze/api-clients/lib/mapi";
|
|
2
|
-
import { Store } from 'antd/es/form/interface';
|
|
3
|
-
export interface IPaymentMeans {
|
|
4
|
-
type: PaymentMeansType;
|
|
5
|
-
domesticTransfer?: TransferMetadata | undefined;
|
|
6
|
-
domesticClaim?: ClaimMetadata | undefined;
|
|
7
|
-
}
|
|
8
|
-
export declare const PaymentMethodFormData: (formData: Store) => IPaymentMeans;
|
package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMethodFormData = void 0;
|
|
4
|
-
var PaymentMethodFormData = function (formData) {
|
|
5
|
-
if (formData.invoice.paymentMeans.type === "DomesticTransfer") {
|
|
6
|
-
return {
|
|
7
|
-
type: formData.invoice.paymentMeans.type,
|
|
8
|
-
domesticTransfer: formData.invoice.paymentMeans.domesticTransfer
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
if (formData.invoice.paymentMeans.type === "DomesticClaim") {
|
|
12
|
-
return {
|
|
13
|
-
type: formData.invoice.paymentMeans.type,
|
|
14
|
-
domesticClaim: formData.invoice.paymentMeans.domesticClaim,
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
if (formData.invoice.paymentMeans.type === "NotSpecified" || formData.invoice.paymentMeans.type === "MutuallyAgreed") {
|
|
18
|
-
return {
|
|
19
|
-
type: formData.invoice.paymentMeans.type
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
var paymentMeansFull = {
|
|
23
|
-
type: formData.invoice.paymentMeans.type,
|
|
24
|
-
domesticTransfer: {
|
|
25
|
-
accountNumber: 0,
|
|
26
|
-
accountTypeNumber: 0,
|
|
27
|
-
bankNumber: 0,
|
|
28
|
-
paymentIdentifier: 0
|
|
29
|
-
},
|
|
30
|
-
domesticClaim: {
|
|
31
|
-
accountNumber: 0,
|
|
32
|
-
bankNumber: 0,
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return paymentMeansFull;
|
|
36
|
-
};
|
|
37
|
-
exports.PaymentMethodFormData = PaymentMethodFormData;
|
package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var SubmitConfirmationSVG = function () { return (react_1.default.createElement("svg", { width: "268", height: "243", viewBox: "0 0 268 243", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
-
react_1.default.createElement("path", { d: "M101.029 230.876C45.2323 223.558 6.20928 170.282 13.8687 111.882C21.5281 53.4814 72.9695 12.0707 128.766 19.3886", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "12" }),
|
|
9
|
-
react_1.default.createElement("path", { d: "M99.7757 230.399C126.084 234.471 165.902 230.399 185.602 209.222", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "12" }),
|
|
10
|
-
react_1.default.createElement("path", { d: "M252.736 85.2564L220.765 29.117C219.873 27.5518 218.406 26.4009 216.666 25.9236L129.702 2.06968C126.078 1.07577 122.348 3.20024 121.354 6.82374L74.6343 177.149C73.6404 180.772 75.7649 184.503 79.3884 185.497L210.408 221.435C214.031 222.429 217.762 220.304 218.756 216.681L253.385 90.4313C253.863 88.6912 253.627 86.8216 252.736 85.2564ZM237.452 89.2966L198.924 78.7285L209.492 40.2007L237.452 89.2966ZM206.262 204.449L91.6201 173.003L100.243 141.566L107.67 114.489L123.721 55.9749L133.847 19.0555L195.672 36.0138L183.543 80.2328C182.917 82.5131 183.223 84.9486 184.394 87.0034C185.564 89.0581 187.502 90.5639 189.783 91.1894L234.002 103.318L206.262 204.449Z", fill: "black", "fill-opacity": "0.88" }),
|
|
11
|
-
react_1.default.createElement("rect", { x: "95.5684", y: "55.9749", width: "42.1162", height: "78.7981", transform: "rotate(17.8 95.5684 55.9749)", fill: "white" }),
|
|
12
|
-
react_1.default.createElement("path", { d: "M157.071 127.946L173.398 144.283L207.339 110.318", stroke: "#00BDFF", "stroke-width": "10" }),
|
|
13
|
-
react_1.default.createElement("line", { x1: "35.5811", y1: "138.066", x2: "115.531", y2: "138.066", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "7", "stroke-linecap": "round" }),
|
|
14
|
-
react_1.default.createElement("line", { x1: "46.4492", y1: "86.4396", x2: "167.156", y2: "86.4396", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "7", "stroke-linecap": "round" }),
|
|
15
|
-
react_1.default.createElement("line", { x1: "69.5459", y1: "110.894", x2: "125.041", y2: "110.894", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "7", "stroke-linecap": "round" }),
|
|
16
|
-
react_1.default.createElement("line", { x1: "88.5654", y1: "63.3436", x2: "144.06", y2: "63.3436", stroke: "black", "stroke-opacity": "0.88", "stroke-width": "7", "stroke-linecap": "round" }))); };
|
|
17
|
-
exports.default = SubmitConfirmationSVG;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WrappedComponentProps } from "react-intl";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface Props extends WrappedComponentProps {
|
|
4
|
-
}
|
|
5
|
-
declare const _default: React.FC<import("react-intl").WithIntlProps<Props>> & {
|
|
6
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var antd_1 = require("antd");
|
|
7
|
-
var react_intl_1 = require("react-intl");
|
|
8
|
-
var react_1 = __importDefault(require("react"));
|
|
9
|
-
var SubmitConfirmationSVG_1 = __importDefault(require("./SubmitConfirmationSVG"));
|
|
10
|
-
var translationMessages = (0, react_intl_1.defineMessages)({
|
|
11
|
-
submitConfirmation_title: {
|
|
12
|
-
id: "submitConfirmation_title",
|
|
13
|
-
defaultMessage: "Invoice sent",
|
|
14
|
-
},
|
|
15
|
-
submitConfirmation_text: {
|
|
16
|
-
id: "submitConfirmation_text",
|
|
17
|
-
defaultMessage: "The invoice has been sent to the customer.",
|
|
18
|
-
},
|
|
19
|
-
submitConfirmation_footer_text: {
|
|
20
|
-
id: "submitConfirmation_footer_text",
|
|
21
|
-
defaultMessage: "If any questions arise, please contact us at",
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
var SubmitConfirmation = function (props) {
|
|
25
|
-
var token = antd_1.theme.useToken().token;
|
|
26
|
-
return (react_1.default.createElement(antd_1.Flex, { justify: "center", style: { padding: "45px" } },
|
|
27
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, justify: "center", align: "center", style: { width: "100%", maxWidth: "900px" }, gap: "small" },
|
|
28
|
-
react_1.default.createElement(SubmitConfirmationSVG_1.default, null),
|
|
29
|
-
" ",
|
|
30
|
-
react_1.default.createElement(antd_1.Flex, { vertical: true, align: "center", style: { paddingTop: "20px" } },
|
|
31
|
-
react_1.default.createElement(antd_1.Typography.Title, { level: 2 }, props.intl.formatMessage(translationMessages.submitConfirmation_title)),
|
|
32
|
-
react_1.default.createElement(antd_1.Typography.Text, { style: { fontSize: token.fontSizeHeading4, textAlign: "center" } }, props.intl.formatMessage(translationMessages.submitConfirmation_text))))));
|
|
33
|
-
};
|
|
34
|
-
exports.default = (0, react_intl_1.injectIntl)(SubmitConfirmation);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { WrappedComponentProps } from "react-intl";
|
|
3
|
-
import { FormInstance } from "antd/lib";
|
|
4
|
-
import { NewReceiverRequirements } from "../../types/NewReceiverRequirements";
|
|
5
|
-
interface Props extends WrappedComponentProps {
|
|
6
|
-
receiverRequirements: NewReceiverRequirements;
|
|
7
|
-
form: FormInstance;
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
defaultIsRequired?: boolean;
|
|
10
|
-
defaultPlaceholder?: string;
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
14
|
-
forwardedRef?: React.Ref<any>;
|
|
15
|
-
} & React.RefAttributes<any>> & {
|
|
16
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|