@unimaze/billing 0.21.43 → 0.21.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/lib/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  2. package/lib/common/components/billing-lines/NewNewBillingLines.js +36 -0
  3. package/lib/common/components/billing-lines/cwdwdw.d.ts +1 -0
  4. package/lib/common/components/billing-lines/cwdwdw.js +14 -0
  5. package/lib/common/components/customer/index.js +5 -1
  6. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +0 -0
  7. package/lib/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +109 -0
  8. package/lib/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +3 -1
  9. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +0 -0
  10. package/lib/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +110 -0
  11. package/lib/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +2 -1
  12. package/lib/common/components/invoice-preview/index.d.ts +8 -0
  13. package/lib/common/components/invoice-preview/index.js +8 -0
  14. package/lib/common/components/supplier/CityAutofill.js +5 -1
  15. package/lib/common/components/supplier/index.d.ts +4 -0
  16. package/lib/common/components/supplier/index.js +5 -1
  17. package/lib/create-invoice/index.d.ts +4 -0
  18. package/lib/create-invoice/index.js +5 -1
  19. package/lib/translations/locales/en.json +6 -0
  20. package/lib/translations/locales/is.json +27 -21
  21. package/lib/translations/locales.d.ts +12 -0
  22. package/lib/unimaze-api-clients/src/mapi/api.d.ts +6664 -0
  23. package/lib/unimaze-api-clients/src/mapi/api.js +4743 -0
  24. package/lib/unimaze-api-clients/src/mapi/base.d.ts +55 -0
  25. package/lib/unimaze-api-clients/src/mapi/base.js +84 -0
  26. package/lib/unimaze-api-clients/src/mapi/configuration.d.ts +63 -0
  27. package/lib/unimaze-api-clients/src/mapi/configuration.js +28 -0
  28. package/lib/unimaze-api-clients/src/mapi/index.d.ts +13 -0
  29. package/lib/unimaze-api-clients/src/mapi/index.js +30 -0
  30. package/lib/unimaze-api-clients/src/rapi/api.d.ts +5015 -0
  31. package/lib/unimaze-api-clients/src/rapi/api.js +5582 -0
  32. package/lib/unimaze-api-clients/src/rapi/base.d.ts +55 -0
  33. package/lib/unimaze-api-clients/src/rapi/base.js +84 -0
  34. package/lib/unimaze-api-clients/src/rapi/configuration.d.ts +63 -0
  35. package/lib/unimaze-api-clients/src/rapi/configuration.js +28 -0
  36. package/lib/unimaze-api-clients/src/rapi/index.d.ts +13 -0
  37. package/lib/unimaze-api-clients/src/rapi/index.js +30 -0
  38. package/lib/unimaze-billing/src/common/components/CommonTranslations.d.ts +74 -0
  39. package/lib/unimaze-billing/src/common/components/CommonTranslations.js +78 -0
  40. package/lib/unimaze-billing/src/common/components/attachments/Attachment.d.ts +20 -0
  41. package/lib/unimaze-billing/src/common/components/attachments/Attachment.js +164 -0
  42. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.d.ts +21 -0
  43. package/lib/unimaze-billing/src/common/components/attachments/AttachmentModal.js +206 -0
  44. package/lib/unimaze-billing/src/common/components/attachments/index.d.ts +27 -0
  45. package/lib/unimaze-billing/src/common/components/attachments/index.js +214 -0
  46. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.d.ts +17 -0
  47. package/lib/unimaze-billing/src/common/components/base-information/AccountingCost.js +61 -0
  48. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.d.ts +16 -0
  49. package/lib/unimaze-billing/src/common/components/base-information/OrderReference.js +58 -0
  50. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.d.ts +14 -0
  51. package/lib/unimaze-billing/src/common/components/base-information/ProjectReference.js +30 -0
  52. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.d.ts +53 -0
  53. package/lib/unimaze-billing/src/common/components/base-information/ReferenceIdentifiers.js +328 -0
  54. package/lib/unimaze-billing/src/common/components/base-information/index.d.ts +77 -0
  55. package/lib/unimaze-billing/src/common/components/base-information/index.js +186 -0
  56. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.d.ts +14 -0
  57. package/lib/unimaze-billing/src/common/components/billing-lines/BillingCalculations.js +151 -0
  58. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.d.ts +24 -0
  59. package/lib/unimaze-billing/src/common/components/billing-lines/BillingLinePreview.js +61 -0
  60. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.d.ts +13 -0
  61. package/lib/unimaze-billing/src/common/components/billing-lines/BillingTaxSummary.js +133 -0
  62. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.d.ts +20 -0
  63. package/lib/unimaze-billing/src/common/components/billing-lines/CurrencySelector.js +17 -0
  64. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.d.ts +10 -0
  65. package/lib/unimaze-billing/src/common/components/billing-lines/DiscountTypeSelector.js +16 -0
  66. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.d.ts +134 -0
  67. package/lib/unimaze-billing/src/common/components/billing-lines/NewBillingLines.js +209 -0
  68. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.d.ts +15 -0
  69. package/lib/unimaze-billing/src/common/components/billing-lines/NewNewBillingLines.js +36 -0
  70. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.d.ts +19 -0
  71. package/lib/unimaze-billing/src/common/components/billing-lines/SingleBillingLine.js +275 -0
  72. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.d.ts +14 -0
  73. package/lib/unimaze-billing/src/common/components/billing-lines/UnitOfMeasureSelector.js +15 -0
  74. package/lib/unimaze-billing/src/common/components/billing-lines/index.d.ts +49 -0
  75. package/lib/unimaze-billing/src/common/components/billing-lines/index.js +104 -0
  76. package/lib/unimaze-billing/src/common/components/component-container/Content.d.ts +7 -0
  77. package/lib/unimaze-billing/src/common/components/component-container/Content.js +13 -0
  78. package/lib/unimaze-billing/src/common/components/component-container/Header.d.ts +9 -0
  79. package/lib/unimaze-billing/src/common/components/component-container/Header.js +28 -0
  80. package/lib/unimaze-billing/src/common/components/component-container/index.d.ts +12 -0
  81. package/lib/unimaze-billing/src/common/components/component-container/index.js +22 -0
  82. package/lib/unimaze-billing/src/common/components/customer/CostCenter.d.ts +17 -0
  83. package/lib/unimaze-billing/src/common/components/customer/CostCenter.js +163 -0
  84. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.d.ts +17 -0
  85. package/lib/unimaze-billing/src/common/components/customer/CustomerContactName.js +53 -0
  86. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.d.ts +7 -0
  87. package/lib/unimaze-billing/src/common/components/customer/hardCoddedCustomer.js +41 -0
  88. package/lib/unimaze-billing/src/common/components/customer/index.d.ts +26 -0
  89. package/lib/unimaze-billing/src/common/components/customer/index.js +166 -0
  90. package/lib/unimaze-billing/src/common/components/date-picker/index.d.ts +21 -0
  91. package/lib/unimaze-billing/src/common/components/date-picker/index.js +23 -0
  92. package/lib/unimaze-billing/src/common/components/delivery-location/index.d.ts +12 -0
  93. package/lib/unimaze-billing/src/common/components/delivery-location/index.js +89 -0
  94. package/lib/unimaze-billing/src/common/components/editable-cell/index.d.ts +0 -0
  95. package/lib/unimaze-billing/src/common/components/editable-cell/index.js +295 -0
  96. package/lib/unimaze-billing/src/common/components/editable-row/index.d.ts +5 -0
  97. package/lib/unimaze-billing/src/common/components/editable-row/index.js +59 -0
  98. package/lib/unimaze-billing/src/common/components/form-item/index.d.ts +35 -0
  99. package/lib/unimaze-billing/src/common/components/form-item/index.js +60 -0
  100. package/lib/unimaze-billing/src/common/components/index.d.ts +18 -0
  101. package/lib/unimaze-billing/src/common/components/index.js +42 -0
  102. package/lib/unimaze-billing/src/common/components/input/index.d.ts +23 -0
  103. package/lib/unimaze-billing/src/common/components/input/index.js +37 -0
  104. package/lib/unimaze-billing/src/common/components/invoice/index.d.ts +42 -0
  105. package/lib/unimaze-billing/src/common/components/invoice/index.js +59 -0
  106. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.d.ts +14 -0
  107. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfo.js +75 -0
  108. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.d.ts +14 -0
  109. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewCustomerSupplierInfoBox.js +73 -0
  110. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.d.ts +12 -0
  111. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewHeader.js +104 -0
  112. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.d.ts +12 -0
  113. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewInvoiceLines.js +93 -0
  114. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.d.ts +14 -0
  115. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfo.js +77 -0
  116. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.d.ts +14 -0
  117. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewPaymentInfoBox.js +58 -0
  118. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.d.ts +14 -0
  119. package/lib/unimaze-billing/src/common/components/invoice-preview/InvoicePreviewTotalAmountPreview.js +52 -0
  120. package/lib/unimaze-billing/src/common/components/invoice-preview/index.d.ts +102 -0
  121. package/lib/unimaze-billing/src/common/components/invoice-preview/index.js +196 -0
  122. package/lib/unimaze-billing/src/common/components/locale-intl/index.d.ts +0 -0
  123. package/lib/unimaze-billing/src/common/components/locale-intl/index.js +51 -0
  124. package/lib/unimaze-billing/src/common/components/payment-method/index.d.ts +76 -0
  125. package/lib/unimaze-billing/src/common/components/payment-method/index.js +356 -0
  126. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.d.ts +8 -0
  127. package/lib/unimaze-billing/src/common/components/payment-method/paymentMethodForConversion.js +37 -0
  128. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.d.ts +3 -0
  129. package/lib/unimaze-billing/src/common/components/submit-confirmation/SubmitConfirmationSVG.js +17 -0
  130. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.d.ts +8 -0
  131. package/lib/unimaze-billing/src/common/components/submit-confirmation/index.js +34 -0
  132. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.d.ts +18 -0
  133. package/lib/unimaze-billing/src/common/components/supplier/CityAutofill.js +159 -0
  134. package/lib/unimaze-billing/src/common/components/supplier/index.d.ts +94 -0
  135. package/lib/unimaze-billing/src/common/components/supplier/index.js +334 -0
  136. package/lib/unimaze-billing/src/common/components/tooltip/index.d.ts +7 -0
  137. package/lib/unimaze-billing/src/common/components/tooltip/index.js +15 -0
  138. package/lib/unimaze-billing/src/common/components/welcome-modal/index.d.ts +15 -0
  139. package/lib/unimaze-billing/src/common/components/welcome-modal/index.js +26 -0
  140. package/lib/unimaze-billing/src/common/consts/formLayout.d.ts +74 -0
  141. package/lib/unimaze-billing/src/common/consts/formLayout.js +45 -0
  142. package/lib/unimaze-billing/src/common/consts/validationRules.d.ts +6 -0
  143. package/lib/unimaze-billing/src/common/consts/validationRules.js +69 -0
  144. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.d.ts +5 -0
  145. package/lib/unimaze-billing/src/common/enums/DocumentTypeEnum.js +8 -0
  146. package/lib/unimaze-billing/src/common/enums/index.d.ts +1 -0
  147. package/lib/unimaze-billing/src/common/enums/index.js +8 -0
  148. package/lib/unimaze-billing/src/common/types/AppConfiguration.d.ts +26 -0
  149. package/lib/unimaze-billing/src/common/types/AppConfiguration.js +2 -0
  150. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.d.ts +10 -0
  151. package/lib/unimaze-billing/src/common/types/BillingLineMetadataOverride.js +2 -0
  152. package/lib/unimaze-billing/src/common/types/CommonProps.d.ts +33 -0
  153. package/lib/unimaze-billing/src/common/types/CommonProps.js +2 -0
  154. package/lib/unimaze-billing/src/common/types/DiscountType.d.ts +1 -0
  155. package/lib/unimaze-billing/src/common/types/DiscountType.js +2 -0
  156. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.d.ts +1 -0
  157. package/lib/unimaze-billing/src/common/types/InvoiceFormFields.js +2 -0
  158. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.d.ts +27 -0
  159. package/lib/unimaze-billing/src/common/types/NewReceiverRequirements.js +2 -0
  160. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.d.ts +83 -0
  161. package/lib/unimaze-billing/src/common/types/ReceiverRequirements.js +393 -0
  162. package/lib/unimaze-billing/src/common/types/SupplierInfo.d.ts +11 -0
  163. package/lib/unimaze-billing/src/common/types/SupplierInfo.js +2 -0
  164. package/lib/unimaze-billing/src/common/types/index.d.ts +1 -0
  165. package/lib/unimaze-billing/src/common/types/index.js +17 -0
  166. package/lib/unimaze-billing/src/create-credit-note/index.d.ts +9 -0
  167. package/lib/unimaze-billing/src/create-credit-note/index.js +62 -0
  168. package/lib/unimaze-billing/src/create-invoice/IntlLoader.d.ts +11 -0
  169. package/lib/unimaze-billing/src/create-invoice/IntlLoader.js +116 -0
  170. package/lib/unimaze-billing/src/create-invoice/index.d.ts +82 -0
  171. package/lib/unimaze-billing/src/create-invoice/index.js +710 -0
  172. package/lib/unimaze-billing/src/enums.d.ts +14 -0
  173. package/lib/unimaze-billing/src/enums.js +18 -0
  174. package/lib/unimaze-billing/src/index.d.ts +4 -0
  175. package/lib/unimaze-billing/src/index.js +28 -0
  176. package/lib/unimaze-billing/src/translations/locales/en.json +183 -0
  177. package/lib/unimaze-billing/src/translations/locales/is.json +183 -0
  178. package/lib/unimaze-billing/src/translations/locales.d.ts +369 -0
  179. package/lib/unimaze-billing/src/translations/locales.js +11 -0
  180. package/lib/unimaze-billing/src/utils/ApiUtility.d.ts +29 -0
  181. package/lib/unimaze-billing/src/utils/ApiUtility.js +133 -0
  182. package/lib/unimaze-billing/src/utils/BillingLineUtility.d.ts +25 -0
  183. package/lib/unimaze-billing/src/utils/BillingLineUtility.js +190 -0
  184. package/lib/unimaze-billing/src/utils/ConversionUtility.d.ts +9 -0
  185. package/lib/unimaze-billing/src/utils/ConversionUtility.js +222 -0
  186. package/lib/unimaze-billing/src/utils/FileUploadUtility.d.ts +9 -0
  187. package/lib/unimaze-billing/src/utils/FileUploadUtility.js +45 -0
  188. package/lib/unimaze-billing/src/utils/IntlUtility.d.ts +6 -0
  189. package/lib/unimaze-billing/src/utils/IntlUtility.js +78 -0
  190. package/lib/unimaze-billing/src/utils/LocationUtility.d.ts +1 -0
  191. package/lib/unimaze-billing/src/utils/LocationUtility.js +81 -0
  192. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.d.ts +7 -0
  193. package/lib/unimaze-billing/src/utils/ReferenceIdentifierUtility.js +26 -0
  194. package/lib/unimaze-billing/src/utils/RequirementsUtility.d.ts +21 -0
  195. package/lib/unimaze-billing/src/utils/RequirementsUtility.js +237 -0
  196. package/lib/unimaze-billing/src/utils/index.d.ts +2 -0
  197. package/lib/unimaze-billing/src/utils/index.js +8 -0
  198. package/lib/utils/LocationUtility.d.ts +1 -1
  199. package/lib/utils/LocationUtility.js +2 -2
  200. package/package.json +1 -1
  201. package/lib/style/index.css +0 -51
@@ -0,0 +1,356 @@
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);
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,37 @@
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;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const SubmitConfirmationSVG: React.FC;
3
+ export default SubmitConfirmationSVG;
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,34 @@
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);
@@ -0,0 +1,18 @@
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;