@undp/carbon-library 1.0.278 → 1.0.279

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/dist/esm/index.js CHANGED
@@ -6041,7 +6041,7 @@ var AddNewCompanyComponent = function (props) {
6041
6041
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6042
6042
  React.createElement(Col, { xl: 12, md: 24 },
6043
6043
  React.createElement("div", { className: "details-part-one" },
6044
- React.createElement(Form.Item, { label: "Name", name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
6044
+ React.createElement(Form.Item, { label: t("addCompany:name"), name: "name", initialValue: (_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.name, rules: [
6045
6045
  {
6046
6046
  required: true,
6047
6047
  message: "",
@@ -6053,7 +6053,7 @@ var AddNewCompanyComponent = function (props) {
6053
6053
  String(value).trim() === undefined ||
6054
6054
  value === null ||
6055
6055
  value === undefined) {
6056
- throw new Error("Name ".concat(t("isRequired")));
6056
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6057
6057
  }
6058
6058
  return [2 /*return*/];
6059
6059
  });
@@ -6064,7 +6064,7 @@ var AddNewCompanyComponent = function (props) {
6064
6064
  companyRole !== CompanyRole.MINISTRY
6065
6065
  ? (!isUpdate ||
6066
6066
  (isUpdate &&
6067
- companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(Form.Item, { label: "Tax ID", initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.taxId, name: "taxId", rules: [
6067
+ companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(Form.Item, { label: t("addCompany:taxId"), initialValue: (_b = state === null || state === void 0 ? void 0 : state.record) === null || _b === void 0 ? void 0 : _b.taxId, name: "taxId", rules: [
6068
6068
  {
6069
6069
  required: true,
6070
6070
  message: "",
@@ -6076,7 +6076,7 @@ var AddNewCompanyComponent = function (props) {
6076
6076
  String(value).trim() === undefined ||
6077
6077
  value === null ||
6078
6078
  value === undefined) {
6079
- throw new Error("Tax ID ".concat(t("isRequired")));
6079
+ throw new Error("".concat(t("addCompany:taxId"), " ").concat(t("isRequired")));
6080
6080
  }
6081
6081
  return [2 /*return*/];
6082
6082
  });
@@ -6088,7 +6088,7 @@ var AddNewCompanyComponent = function (props) {
6088
6088
  companyRole !== CompanyRole.MINISTRY
6089
6089
  ? (!isUpdate ||
6090
6090
  (isUpdate &&
6091
- companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(Form.Item, { label: "Registration Payment ID", initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.paymentId, name: "paymentId", rules: [
6091
+ companyRole !== CompanyRole.GOVERNMENT)) && (React.createElement(Form.Item, { label: t("addCompany:paymentId"), initialValue: (_c = state === null || state === void 0 ? void 0 : state.record) === null || _c === void 0 ? void 0 : _c.paymentId, name: "paymentId", rules: [
6092
6092
  {
6093
6093
  required: true,
6094
6094
  message: "",
@@ -6100,7 +6100,7 @@ var AddNewCompanyComponent = function (props) {
6100
6100
  String(value).trim() === undefined ||
6101
6101
  value === null ||
6102
6102
  value === undefined) {
6103
- throw new Error("Registration Payment ID ".concat(t("isRequired")));
6103
+ throw new Error("".concat(t("addCompany:paymentId"), " ").concat(t("isRequired")));
6104
6104
  }
6105
6105
  return [2 /*return*/];
6106
6106
  });
@@ -6109,7 +6109,7 @@ var AddNewCompanyComponent = function (props) {
6109
6109
  ] },
6110
6110
  React.createElement(Input, { size: "large" })))
6111
6111
  : null,
6112
- React.createElement(Form.Item, { label: "Email", name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6112
+ React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", initialValue: (_d = state === null || state === void 0 ? void 0 : state.record) === null || _d === void 0 ? void 0 : _d.email, rules: [
6113
6113
  {
6114
6114
  required: true,
6115
6115
  message: "",
@@ -6122,7 +6122,7 @@ var AddNewCompanyComponent = function (props) {
6122
6122
  String(value).trim() === undefined ||
6123
6123
  value === null ||
6124
6124
  value === undefined) {
6125
- throw new Error("Email ".concat(t("isRequired")));
6125
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6126
6126
  }
6127
6127
  else {
6128
6128
  val = value.trim();
@@ -6131,7 +6131,7 @@ var AddNewCompanyComponent = function (props) {
6131
6131
  ? val.match(reg)
6132
6132
  : [];
6133
6133
  if (matches.length === 0) {
6134
- throw new Error("Email ".concat(t("isInvalid")));
6134
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6135
6135
  }
6136
6136
  }
6137
6137
  return [2 /*return*/];
@@ -6140,7 +6140,7 @@ var AddNewCompanyComponent = function (props) {
6140
6140
  },
6141
6141
  ] },
6142
6142
  React.createElement(Input, { size: "large" })),
6143
- React.createElement(Form.Item, { className: "website", label: "Website", initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
6143
+ React.createElement(Form.Item, { className: "website", label: t("addCompany:website"), initialValue: (_f = (_e = state === null || state === void 0 ? void 0 : state.record) === null || _e === void 0 ? void 0 : _e.website) === null || _f === void 0 ? void 0 : _f.split("://")[1], name: "website", rules: [
6144
6144
  {
6145
6145
  required: false,
6146
6146
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6150,7 +6150,7 @@ var AddNewCompanyComponent = function (props) {
6150
6150
  value !== null ||
6151
6151
  value !== undefined) {
6152
6152
  if (value && !validator.isURL("https://" + value))
6153
- throw new Error("Website ".concat(t("isInvalid")));
6153
+ throw new Error("".concat(t("addCompany:website"), " ").concat(t("isInvalid")));
6154
6154
  }
6155
6155
  return [2 /*return*/];
6156
6156
  });
@@ -6158,7 +6158,7 @@ var AddNewCompanyComponent = function (props) {
6158
6158
  },
6159
6159
  ], getValueFromEvent: function (event) { var _a; return (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value.trim(); } },
6160
6160
  React.createElement(Input, { addonBefore: "https://", size: "large" })),
6161
- React.createElement(Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6161
+ React.createElement(Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6162
6162
  {
6163
6163
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
6164
6164
  var isCorrectFormat;
@@ -6166,11 +6166,11 @@ var AddNewCompanyComponent = function (props) {
6166
6166
  return __generator(this, function (_f) {
6167
6167
  if (file === null || file === undefined) {
6168
6168
  if (!((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo))
6169
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6169
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6170
6170
  }
6171
6171
  else {
6172
6172
  if (file.length === 0) {
6173
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6173
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6174
6174
  }
6175
6175
  else {
6176
6176
  isCorrectFormat = false;
@@ -6200,8 +6200,8 @@ var AddNewCompanyComponent = function (props) {
6200
6200
  React.createElement(Upload, { beforeUpload: function (file) {
6201
6201
  return false;
6202
6202
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6203
- React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, "Upload"))),
6204
- companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: "Address", initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
6203
+ React.createElement(Button, { size: "large", icon: React.createElement(UploadOutlined, null) }, t("addCompany:upload")))),
6204
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_g = state === null || state === void 0 ? void 0 : state.record) === null || _g === void 0 ? void 0 : _g.address, rules: [
6205
6205
  { required: true, message: "" },
6206
6206
  {
6207
6207
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6210,7 +6210,7 @@ var AddNewCompanyComponent = function (props) {
6210
6210
  String(value).trim() === undefined ||
6211
6211
  value === null ||
6212
6212
  value === undefined) {
6213
- throw new Error("Address ".concat(t("isRequired")));
6213
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6214
6214
  }
6215
6215
  return [2 /*return*/];
6216
6216
  });
@@ -6223,7 +6223,7 @@ var AddNewCompanyComponent = function (props) {
6223
6223
  display: "flex",
6224
6224
  marginBottom: 8,
6225
6225
  }, align: "center", size: "large" },
6226
- React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: "National Share of Proceeds", initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
6226
+ React.createElement(Form.Item, { style: { width: "100%" }, name: "nationalSopValue", label: t("addCompany:nationalSopValue"), initialValue: (_h = state === null || state === void 0 ? void 0 : state.record) === null || _h === void 0 ? void 0 : _h.nationalSopValue, rules: [
6227
6227
  { required: true, message: "" },
6228
6228
  {
6229
6229
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6232,7 +6232,7 @@ var AddNewCompanyComponent = function (props) {
6232
6232
  String(value).trim() === undefined ||
6233
6233
  value === null ||
6234
6234
  value === undefined) {
6235
- throw new Error("National Share of Proceeds ".concat(t("isRequired")));
6235
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6236
6236
  }
6237
6237
  return [2 /*return*/];
6238
6238
  });
@@ -6242,10 +6242,10 @@ var AddNewCompanyComponent = function (props) {
6242
6242
  React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 0, max: 99, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) { return value.replace("%", ""); }, disabled: systemType == CarbonSystemType.REGISTRY }))))))),
6243
6243
  React.createElement(Col, { xl: 12, md: 24 },
6244
6244
  React.createElement("div", { className: "details-part-two" },
6245
- React.createElement(Form.Item, { className: "role-group", label: "Role", name: "companyRole", initialValue: companyRole, rules: [
6245
+ React.createElement(Form.Item, { className: "role-group", label: t("addCompany:role"), name: "companyRole", initialValue: companyRole, rules: [
6246
6246
  {
6247
6247
  required: true,
6248
- message: "Role ".concat(t("isRequired")),
6248
+ message: "".concat(t("addCompany:role"), " ").concat(t("isRequired")),
6249
6249
  },
6250
6250
  ] },
6251
6251
  React.createElement(Radio.Group, { size: "large", disabled: isUpdate, onChange: onChangeCompanyRole, style: isGuest && { justifyContent: "start" } }, isUpdate ? (React.createElement("div", { className: "".concat(companyRoleClassName, "-radio-container") },
@@ -6259,10 +6259,10 @@ var AddNewCompanyComponent = function (props) {
6259
6259
  width: "45%",
6260
6260
  }
6261
6261
  : {} },
6262
- React.createElement(Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6262
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:viewerToolTip") },
6263
6263
  React.createElement(Radio.Button, { className: "certifier", value: "Certifier" },
6264
6264
  React.createElement(SafetyOutlined, { className: "role-icons" }),
6265
- "Certifier"))),
6265
+ t("addCompany:certifier")))),
6266
6266
  React.createElement("div", { className: "dev-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
6267
6267
  CompanyRole.MINISTRY
6268
6268
  ? {
@@ -6270,18 +6270,18 @@ var AddNewCompanyComponent = function (props) {
6270
6270
  marginLeft: isGuest ? "30px" : 0,
6271
6271
  }
6272
6272
  : { marginLeft: isGuest ? "30px" : 0 } },
6273
- React.createElement(Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6273
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:programmeDeveleperToolTip") },
6274
6274
  React.createElement(Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6275
6275
  React.createElement(ExperimentOutlined, { className: "role-icons" }),
6276
- "Developer"))),
6276
+ t("addCompany:programmeDeveleper")))),
6277
6277
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6278
6278
  CompanyRole.MINISTRY &&
6279
6279
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6280
- React.createElement(Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6280
+ React.createElement(Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
6281
6281
  React.createElement(Radio.Button, { className: "minister", value: "Ministry" },
6282
6282
  React.createElement(AuditOutlined, { className: "role-icons" }),
6283
- "Ministry")))))))),
6284
- companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Name of the Minister", name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
6283
+ t("addCompany:min"))))))))),
6284
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:ministerName"), name: "nameOfMinister", initialValue: (_j = state === null || state === void 0 ? void 0 : state.record) === null || _j === void 0 ? void 0 : _j.nameOfMinister, rules: [
6285
6285
  {
6286
6286
  required: true,
6287
6287
  message: "",
@@ -6293,7 +6293,7 @@ var AddNewCompanyComponent = function (props) {
6293
6293
  String(value).trim() === undefined ||
6294
6294
  value === null ||
6295
6295
  value === undefined) {
6296
- throw new Error("Name of the Minister ".concat(t("isRequired")));
6296
+ throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
6297
6297
  }
6298
6298
  return [2 /*return*/];
6299
6299
  });
@@ -6301,17 +6301,17 @@ var AddNewCompanyComponent = function (props) {
6301
6301
  },
6302
6302
  ] },
6303
6303
  React.createElement(Input, { size: "large" }))),
6304
- companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6304
+ companyRole === CompanyRole.MINISTRY && (React.createElement(Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
6305
6305
  {
6306
6306
  required: true,
6307
- message: "Sectoral Scope ".concat(t("isRequired")),
6307
+ message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
6308
6308
  },
6309
6309
  ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6310
6310
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(SectoralScope).map(function (_a) {
6311
6311
  var key = _a[0], value = _a[1];
6312
6312
  return (React.createElement(Select.Option, { key: value, value: value }, key));
6313
6313
  })))),
6314
- React.createElement(Form.Item, { name: "phoneNo", label: "Phone Number", initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
6314
+ React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), initialValue: (_l = state === null || state === void 0 ? void 0 : state.record) === null || _l === void 0 ? void 0 : _l.phoneNo, rules: [
6315
6315
  {
6316
6316
  required: true,
6317
6317
  message: "",
@@ -6324,7 +6324,7 @@ var AddNewCompanyComponent = function (props) {
6324
6324
  String(value).trim() === undefined ||
6325
6325
  value === null ||
6326
6326
  value === undefined) {
6327
- throw new Error("Phone Number ".concat(t("isRequired")));
6327
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6328
6328
  }
6329
6329
  else {
6330
6330
  phoneNo = formatPhoneNumber(String(value));
@@ -6332,7 +6332,7 @@ var AddNewCompanyComponent = function (props) {
6332
6332
  if (phoneNo === null ||
6333
6333
  phoneNo === "" ||
6334
6334
  phoneNo === undefined) {
6335
- throw new Error("Phone Number ".concat(t("isRequired")));
6335
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6336
6336
  }
6337
6337
  }
6338
6338
  }
@@ -6341,7 +6341,7 @@ var AddNewCompanyComponent = function (props) {
6341
6341
  }); },
6342
6342
  },
6343
6343
  ] },
6344
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6344
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6345
6345
  regionField && (React.createElement(Form.Item, { label: t("region"), name: "regions", initialValue: (_m = state === null || state === void 0 ? void 0 : state.record) === null || _m === void 0 ? void 0 : _m.regions, rules: [
6346
6346
  {
6347
6347
  required: true,
@@ -6349,7 +6349,7 @@ var AddNewCompanyComponent = function (props) {
6349
6349
  },
6350
6350
  ] },
6351
6351
  React.createElement(Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(Select.Option, { value: region }, region)); })))),
6352
- companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: "Address", initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
6352
+ companyRole !== CompanyRole.MINISTRY && (React.createElement(Form.Item, { name: "address", label: t("addCompany:addresss"), initialValue: (_o = state === null || state === void 0 ? void 0 : state.record) === null || _o === void 0 ? void 0 : _o.address, rules: [
6353
6353
  { required: true, message: "" },
6354
6354
  {
6355
6355
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6358,7 +6358,7 @@ var AddNewCompanyComponent = function (props) {
6358
6358
  String(value).trim() === undefined ||
6359
6359
  value === null ||
6360
6360
  value === undefined) {
6361
- throw new Error("Address ".concat(t("isRequired")));
6361
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6362
6362
  }
6363
6363
  return [2 /*return*/];
6364
6364
  });
@@ -6372,7 +6372,7 @@ var AddNewCompanyComponent = function (props) {
6372
6372
  display: "flex",
6373
6373
  marginBottom: 8,
6374
6374
  }, align: "center", size: "large" },
6375
- React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: "Overall Mitigation in Global Emissions (OMGE) Account", initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
6375
+ React.createElement(Form.Item, { style: { width: "100%" }, name: "omgePercentage", label: t("addCompany:omgePercentage"), initialValue: (_p = state === null || state === void 0 ? void 0 : state.record) === null || _p === void 0 ? void 0 : _p.omgePercentage, rules: [
6376
6376
  { required: true, message: "" },
6377
6377
  {
6378
6378
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6381,7 +6381,7 @@ var AddNewCompanyComponent = function (props) {
6381
6381
  String(value).trim() === undefined ||
6382
6382
  value === null ||
6383
6383
  value === undefined) {
6384
- throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
6384
+ throw new Error("".concat(t("addCompany:omgePercentage"), " ").concat(t("isRequired")));
6385
6385
  }
6386
6386
  return [2 /*return*/];
6387
6387
  });
@@ -6391,7 +6391,7 @@ var AddNewCompanyComponent = function (props) {
6391
6391
  React.createElement(InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
6392
6392
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(Row, null,
6393
6393
  React.createElement(Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6394
- React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
6394
+ React.createElement(Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(Button, { type: "primary", htmlType: "submit" }, t("addCompany:next")))))))));
6395
6395
  };
6396
6396
  var CompanyAdminDetailsForm = function () {
6397
6397
  return (React.createElement("div", { className: "company-details-form-container" },
@@ -6399,7 +6399,7 @@ var AddNewCompanyComponent = function (props) {
6399
6399
  React.createElement(Row, { className: "row", gutter: [16, 16] },
6400
6400
  React.createElement(Col, { xl: 12, md: 24 },
6401
6401
  React.createElement("div", { className: "details-part-one" },
6402
- React.createElement(Form.Item, { label: "Name", name: "name", rules: [
6402
+ React.createElement(Form.Item, { label: t("addCompany:name"), name: "name", rules: [
6403
6403
  {
6404
6404
  required: true,
6405
6405
  message: "",
@@ -6411,7 +6411,7 @@ var AddNewCompanyComponent = function (props) {
6411
6411
  String(value).trim() === undefined ||
6412
6412
  value === null ||
6413
6413
  value === undefined) {
6414
- throw new Error("Name ".concat(t("isRequired")));
6414
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6415
6415
  }
6416
6416
  return [2 /*return*/];
6417
6417
  });
@@ -6419,15 +6419,15 @@ var AddNewCompanyComponent = function (props) {
6419
6419
  },
6420
6420
  ] },
6421
6421
  React.createElement(Input, { size: "large" })),
6422
- React.createElement(Form.Item, { name: "phoneNo", label: "Phone Number", rules: [
6422
+ React.createElement(Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), rules: [
6423
6423
  {
6424
6424
  required: false,
6425
6425
  },
6426
6426
  ] },
6427
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6427
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6428
6428
  React.createElement(Col, { xl: 12, md: 24 },
6429
6429
  React.createElement("div", { className: "details-part-two" },
6430
- React.createElement(Form.Item, { label: "Email", name: "email", rules: [
6430
+ React.createElement(Form.Item, { label: t("addCompany:email"), name: "email", rules: [
6431
6431
  {
6432
6432
  required: true,
6433
6433
  message: "",
@@ -6440,14 +6440,14 @@ var AddNewCompanyComponent = function (props) {
6440
6440
  String(value).trim() === undefined ||
6441
6441
  value === null ||
6442
6442
  value === undefined) {
6443
- throw new Error("Email ".concat(t("isRequired")));
6443
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6444
6444
  }
6445
6445
  else {
6446
6446
  val = value.trim();
6447
6447
  reg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
6448
6448
  matches = val.match(reg) ? val.match(reg) : [];
6449
6449
  if (matches.length === 0) {
6450
- throw new Error("Email ".concat(t("isInvalid")));
6450
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6451
6451
  }
6452
6452
  }
6453
6453
  return [2 /*return*/];
@@ -6457,8 +6457,8 @@ var AddNewCompanyComponent = function (props) {
6457
6457
  ] },
6458
6458
  React.createElement(Input, { size: "large" }))))),
6459
6459
  React.createElement("div", { className: "steps-actions" },
6460
- current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, "SUBMIT")),
6461
- current === 1 && (React.createElement(Button, { onClick: function () { return prevOne(); }, loading: loading }, "BACK"))))));
6460
+ current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, t("addCompany:submit"))),
6461
+ current === 1 && (React.createElement(Button, { onClick: function () { return prevOne(); }, loading: loading }, t("addCompany:back")))))));
6462
6462
  };
6463
6463
  return (React.createElement("div", { className: "add-company-main-container" },
6464
6464
  React.createElement("div", { className: "title-container" },