@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/cjs/index.js CHANGED
@@ -6061,7 +6061,7 @@ var AddNewCompanyComponent = function (props) {
6061
6061
  React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
6062
6062
  React.createElement(antd.Col, { xl: 12, md: 24 },
6063
6063
  React.createElement("div", { className: "details-part-one" },
6064
- React.createElement(antd.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: [
6064
+ React.createElement(antd.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: [
6065
6065
  {
6066
6066
  required: true,
6067
6067
  message: "",
@@ -6073,7 +6073,7 @@ var AddNewCompanyComponent = function (props) {
6073
6073
  String(value).trim() === undefined ||
6074
6074
  value === null ||
6075
6075
  value === undefined) {
6076
- throw new Error("Name ".concat(t("isRequired")));
6076
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6077
6077
  }
6078
6078
  return [2 /*return*/];
6079
6079
  });
@@ -6084,7 +6084,7 @@ var AddNewCompanyComponent = function (props) {
6084
6084
  companyRole !== exports.CompanyRole.MINISTRY
6085
6085
  ? (!isUpdate ||
6086
6086
  (isUpdate &&
6087
- companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.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: [
6087
+ companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.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: [
6088
6088
  {
6089
6089
  required: true,
6090
6090
  message: "",
@@ -6096,7 +6096,7 @@ var AddNewCompanyComponent = function (props) {
6096
6096
  String(value).trim() === undefined ||
6097
6097
  value === null ||
6098
6098
  value === undefined) {
6099
- throw new Error("Tax ID ".concat(t("isRequired")));
6099
+ throw new Error("".concat(t("addCompany:taxId"), " ").concat(t("isRequired")));
6100
6100
  }
6101
6101
  return [2 /*return*/];
6102
6102
  });
@@ -6108,7 +6108,7 @@ var AddNewCompanyComponent = function (props) {
6108
6108
  companyRole !== exports.CompanyRole.MINISTRY
6109
6109
  ? (!isUpdate ||
6110
6110
  (isUpdate &&
6111
- companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.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: [
6111
+ companyRole !== exports.CompanyRole.GOVERNMENT)) && (React.createElement(antd.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: [
6112
6112
  {
6113
6113
  required: true,
6114
6114
  message: "",
@@ -6120,7 +6120,7 @@ var AddNewCompanyComponent = function (props) {
6120
6120
  String(value).trim() === undefined ||
6121
6121
  value === null ||
6122
6122
  value === undefined) {
6123
- throw new Error("Registration Payment ID ".concat(t("isRequired")));
6123
+ throw new Error("".concat(t("addCompany:paymentId"), " ").concat(t("isRequired")));
6124
6124
  }
6125
6125
  return [2 /*return*/];
6126
6126
  });
@@ -6129,7 +6129,7 @@ var AddNewCompanyComponent = function (props) {
6129
6129
  ] },
6130
6130
  React.createElement(antd.Input, { size: "large" })))
6131
6131
  : null,
6132
- React.createElement(antd.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: [
6132
+ React.createElement(antd.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: [
6133
6133
  {
6134
6134
  required: true,
6135
6135
  message: "",
@@ -6142,7 +6142,7 @@ var AddNewCompanyComponent = function (props) {
6142
6142
  String(value).trim() === undefined ||
6143
6143
  value === null ||
6144
6144
  value === undefined) {
6145
- throw new Error("Email ".concat(t("isRequired")));
6145
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6146
6146
  }
6147
6147
  else {
6148
6148
  val = value.trim();
@@ -6151,7 +6151,7 @@ var AddNewCompanyComponent = function (props) {
6151
6151
  ? val.match(reg)
6152
6152
  : [];
6153
6153
  if (matches.length === 0) {
6154
- throw new Error("Email ".concat(t("isInvalid")));
6154
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6155
6155
  }
6156
6156
  }
6157
6157
  return [2 /*return*/];
@@ -6160,7 +6160,7 @@ var AddNewCompanyComponent = function (props) {
6160
6160
  },
6161
6161
  ] },
6162
6162
  React.createElement(antd.Input, { size: "large" })),
6163
- React.createElement(antd.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: [
6163
+ React.createElement(antd.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: [
6164
6164
  {
6165
6165
  required: false,
6166
6166
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6170,7 +6170,7 @@ var AddNewCompanyComponent = function (props) {
6170
6170
  value !== null ||
6171
6171
  value !== undefined) {
6172
6172
  if (value && !validator.isURL("https://" + value))
6173
- throw new Error("Website ".concat(t("isInvalid")));
6173
+ throw new Error("".concat(t("addCompany:website"), " ").concat(t("isInvalid")));
6174
6174
  }
6175
6175
  return [2 /*return*/];
6176
6176
  });
@@ -6178,7 +6178,7 @@ var AddNewCompanyComponent = function (props) {
6178
6178
  },
6179
6179
  ], 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(); } },
6180
6180
  React.createElement(antd.Input, { addonBefore: "https://", size: "large" })),
6181
- React.createElement(antd.Form.Item, { name: "logo", label: "Organisation Logo (File Type : JPEG , PNG)", valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6181
+ React.createElement(antd.Form.Item, { name: "logo", label: t("addCompany:companyLogoWithType"), valuePropName: "fileList", getValueFromEvent: normFile, required: true, rules: [
6182
6182
  {
6183
6183
  validator: function (rule, file) { return __awaiter(void 0, void 0, void 0, function () {
6184
6184
  var isCorrectFormat;
@@ -6186,11 +6186,11 @@ var AddNewCompanyComponent = function (props) {
6186
6186
  return __generator(this, function (_f) {
6187
6187
  if (file === null || file === undefined) {
6188
6188
  if (!((_a = state === null || state === void 0 ? void 0 : state.record) === null || _a === void 0 ? void 0 : _a.logo))
6189
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6189
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6190
6190
  }
6191
6191
  else {
6192
6192
  if (file.length === 0) {
6193
- throw new Error("Organisation Logo ".concat(t("isRequired")));
6193
+ throw new Error("".concat(t("addCompany:companyLogo"), " ").concat(t("isRequired")));
6194
6194
  }
6195
6195
  else {
6196
6196
  isCorrectFormat = false;
@@ -6220,8 +6220,8 @@ var AddNewCompanyComponent = function (props) {
6220
6220
  React.createElement(antd.Upload, { beforeUpload: function (file) {
6221
6221
  return false;
6222
6222
  }, className: "logo-upload-section", name: "logo", action: "/upload.do", listType: "picture", multiple: false, defaultFileList: fileList, maxCount: 1 },
6223
- React.createElement(antd.Button, { size: "large", icon: React.createElement(icons.UploadOutlined, null) }, "Upload"))),
6224
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6223
+ React.createElement(antd.Button, { size: "large", icon: React.createElement(icons.UploadOutlined, null) }, t("addCompany:upload")))),
6224
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6225
6225
  { required: true, message: "" },
6226
6226
  {
6227
6227
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6230,7 +6230,7 @@ var AddNewCompanyComponent = function (props) {
6230
6230
  String(value).trim() === undefined ||
6231
6231
  value === null ||
6232
6232
  value === undefined) {
6233
- throw new Error("Address ".concat(t("isRequired")));
6233
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6234
6234
  }
6235
6235
  return [2 /*return*/];
6236
6236
  });
@@ -6243,7 +6243,7 @@ var AddNewCompanyComponent = function (props) {
6243
6243
  display: "flex",
6244
6244
  marginBottom: 8,
6245
6245
  }, align: "center", size: "large" },
6246
- React.createElement(antd.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: [
6246
+ React.createElement(antd.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: [
6247
6247
  { required: true, message: "" },
6248
6248
  {
6249
6249
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6252,7 +6252,7 @@ var AddNewCompanyComponent = function (props) {
6252
6252
  String(value).trim() === undefined ||
6253
6253
  value === null ||
6254
6254
  value === undefined) {
6255
- throw new Error("National Share of Proceeds ".concat(t("isRequired")));
6255
+ throw new Error("".concat(t("addCompany:nationalSopValue"), " s").concat(t("isRequired")));
6256
6256
  }
6257
6257
  return [2 /*return*/];
6258
6258
  });
@@ -6262,10 +6262,10 @@ var AddNewCompanyComponent = function (props) {
6262
6262
  React.createElement(antd.InputNumber, { style: { width: "100%" }, size: "large", min: 0, max: 99, formatter: function (value) { return "".concat(value, "%"); }, parser: function (value) { return value.replace("%", ""); }, disabled: systemType == exports.CarbonSystemType.REGISTRY }))))))),
6263
6263
  React.createElement(antd.Col, { xl: 12, md: 24 },
6264
6264
  React.createElement("div", { className: "details-part-two" },
6265
- React.createElement(antd.Form.Item, { className: "role-group", label: "Role", name: "companyRole", initialValue: companyRole, rules: [
6265
+ React.createElement(antd.Form.Item, { className: "role-group", label: t("addCompany:role"), name: "companyRole", initialValue: companyRole, rules: [
6266
6266
  {
6267
6267
  required: true,
6268
- message: "Role ".concat(t("isRequired")),
6268
+ message: "".concat(t("addCompany:role"), " ").concat(t("isRequired")),
6269
6269
  },
6270
6270
  ] },
6271
6271
  React.createElement(antd.Radio.Group, { size: "large", disabled: isUpdate, onChange: onChangeCompanyRole, style: isGuest && { justifyContent: "start" } }, isUpdate ? (React.createElement("div", { className: "".concat(companyRoleClassName, "-radio-container") },
@@ -6279,10 +6279,10 @@ var AddNewCompanyComponent = function (props) {
6279
6279
  width: "45%",
6280
6280
  }
6281
6281
  : {} },
6282
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to certify and revoke certifications of projects" },
6282
+ React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:viewerToolTip") },
6283
6283
  React.createElement(antd.Radio.Button, { className: "certifier", value: "Certifier" },
6284
6284
  React.createElement(icons.SafetyOutlined, { className: "role-icons" }),
6285
- "Certifier"))),
6285
+ t("addCompany:certifier")))),
6286
6286
  React.createElement("div", { className: "dev-radio-container", style: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) ===
6287
6287
  exports.CompanyRole.MINISTRY
6288
6288
  ? {
@@ -6290,18 +6290,18 @@ var AddNewCompanyComponent = function (props) {
6290
6290
  marginLeft: isGuest ? "30px" : 0,
6291
6291
  }
6292
6292
  : { marginLeft: isGuest ? "30px" : 0 } },
6293
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to own projects and transfer carbon credits" },
6293
+ React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:programmeDeveleperToolTip") },
6294
6294
  React.createElement(antd.Radio.Button, { className: "dev", value: "ProgrammeDeveloper" },
6295
6295
  React.createElement(icons.ExperimentOutlined, { className: "role-icons" }),
6296
- "Developer"))),
6296
+ t("addCompany:programmeDeveleper")))),
6297
6297
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) !==
6298
6298
  exports.CompanyRole.MINISTRY &&
6299
6299
  !isGuest && (React.createElement("div", { className: "minister-radio-container" },
6300
- React.createElement(antd.Tooltip, { placement: "top", title: "Permitted to perform all project-related actions within the Ministry" },
6300
+ React.createElement(antd.Tooltip, { placement: "top", title: t("addCompany:ministryToolTip") },
6301
6301
  React.createElement(antd.Radio.Button, { className: "minister", value: "Ministry" },
6302
6302
  React.createElement(icons.AuditOutlined, { className: "role-icons" }),
6303
- "Ministry")))))))),
6304
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6303
+ t("addCompany:min"))))))))),
6304
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6305
6305
  {
6306
6306
  required: true,
6307
6307
  message: "",
@@ -6313,7 +6313,7 @@ var AddNewCompanyComponent = function (props) {
6313
6313
  String(value).trim() === undefined ||
6314
6314
  value === null ||
6315
6315
  value === undefined) {
6316
- throw new Error("Name of the Minister ".concat(t("isRequired")));
6316
+ throw new Error("".concat(t("addCompany:ministerName"), " ").concat(t("isRequired")));
6317
6317
  }
6318
6318
  return [2 /*return*/];
6319
6319
  });
@@ -6321,17 +6321,17 @@ var AddNewCompanyComponent = function (props) {
6321
6321
  },
6322
6322
  ] },
6323
6323
  React.createElement(antd.Input, { size: "large" }))),
6324
- companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: "Sectoral Scope", name: "sectoralScope", rules: [
6324
+ companyRole === exports.CompanyRole.MINISTRY && (React.createElement(antd.Form.Item, { label: t("addCompany:sectoralScope"), name: "sectoralScope", rules: [
6325
6325
  {
6326
6326
  required: true,
6327
- message: "Sectoral Scope ".concat(t("isRequired")),
6327
+ message: "".concat(t("addCompany:sectoralScope"), " ").concat(t("isRequired")),
6328
6328
  },
6329
6329
  ], initialValue: (_k = state === null || state === void 0 ? void 0 : state.record) === null || _k === void 0 ? void 0 : _k.sectoralScope },
6330
6330
  React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, allowClear: true }, Object.entries(exports.SectoralScope).map(function (_a) {
6331
6331
  var key = _a[0], value = _a[1];
6332
6332
  return (React.createElement(antd.Select.Option, { key: value, value: value }, key));
6333
6333
  })))),
6334
- React.createElement(antd.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: [
6334
+ React.createElement(antd.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: [
6335
6335
  {
6336
6336
  required: true,
6337
6337
  message: "",
@@ -6344,7 +6344,7 @@ var AddNewCompanyComponent = function (props) {
6344
6344
  String(value).trim() === undefined ||
6345
6345
  value === null ||
6346
6346
  value === undefined) {
6347
- throw new Error("Phone Number ".concat(t("isRequired")));
6347
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6348
6348
  }
6349
6349
  else {
6350
6350
  phoneNo = PhoneInput.formatPhoneNumber(String(value));
@@ -6352,7 +6352,7 @@ var AddNewCompanyComponent = function (props) {
6352
6352
  if (phoneNo === null ||
6353
6353
  phoneNo === "" ||
6354
6354
  phoneNo === undefined) {
6355
- throw new Error("Phone Number ".concat(t("isRequired")));
6355
+ throw new Error("".concat(t("addCompany:phoneNo"), " ").concat(t("isRequired")));
6356
6356
  }
6357
6357
  }
6358
6358
  }
@@ -6361,7 +6361,7 @@ var AddNewCompanyComponent = function (props) {
6361
6361
  }); },
6362
6362
  },
6363
6363
  ] },
6364
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6364
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { }, countries: countries })),
6365
6365
  regionField && (React.createElement(antd.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: [
6366
6366
  {
6367
6367
  required: true,
@@ -6369,7 +6369,7 @@ var AddNewCompanyComponent = function (props) {
6369
6369
  },
6370
6370
  ] },
6371
6371
  React.createElement(antd.Select, { mode: "multiple", size: "large", maxTagCount: 2, onChange: onChangeRegion, loading: loadingList, allowClear: true }, regionsList.map(function (region) { return (React.createElement(antd.Select.Option, { value: region }, region)); })))),
6372
- companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6372
+ companyRole !== exports.CompanyRole.MINISTRY && (React.createElement(antd.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: [
6373
6373
  { required: true, message: "" },
6374
6374
  {
6375
6375
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6378,7 +6378,7 @@ var AddNewCompanyComponent = function (props) {
6378
6378
  String(value).trim() === undefined ||
6379
6379
  value === null ||
6380
6380
  value === undefined) {
6381
- throw new Error("Address ".concat(t("isRequired")));
6381
+ throw new Error("".concat(t("addCompany:addresss"), " ").concat(t("isRequired")));
6382
6382
  }
6383
6383
  return [2 /*return*/];
6384
6384
  });
@@ -6392,7 +6392,7 @@ var AddNewCompanyComponent = function (props) {
6392
6392
  display: "flex",
6393
6393
  marginBottom: 8,
6394
6394
  }, align: "center", size: "large" },
6395
- React.createElement(antd.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: [
6395
+ React.createElement(antd.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: [
6396
6396
  { required: true, message: "" },
6397
6397
  {
6398
6398
  validator: function (rule, value) { return __awaiter(void 0, void 0, void 0, function () {
@@ -6401,7 +6401,7 @@ var AddNewCompanyComponent = function (props) {
6401
6401
  String(value).trim() === undefined ||
6402
6402
  value === null ||
6403
6403
  value === undefined) {
6404
- throw new Error("Overall Mitigation in Global Emissions (OMGE) Account ".concat(t("isRequired")));
6404
+ throw new Error("".concat(t("addCompany:omgePercentage"), " ").concat(t("isRequired")));
6405
6405
  }
6406
6406
  return [2 /*return*/];
6407
6407
  });
@@ -6411,7 +6411,7 @@ var AddNewCompanyComponent = function (props) {
6411
6411
  React.createElement(antd.InputNumber, { style: { width: "100%" }, size: "large", min: 1, max: 99, formatter: function (value) { return "".concat(Math.round(value), "%"); }, parser: function (value) { return value.replace("%", ""); } })))))))),
6412
6412
  React.createElement("div", { className: "steps-actions" }, isUpdate ? (React.createElement(antd.Row, null,
6413
6413
  React.createElement(antd.Button, { loading: loading, onClick: onCancel }, t("addCompany:cancel")),
6414
- React.createElement(antd.Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(antd.Button, { type: "primary", htmlType: "submit" }, "Next"))))))));
6414
+ React.createElement(antd.Button, { loading: loading, className: "mg-left-1", type: "primary", htmlType: "submit" }, t("addCompany:submit")))) : (current === 0 && (React.createElement(antd.Button, { type: "primary", htmlType: "submit" }, t("addCompany:next")))))))));
6415
6415
  };
6416
6416
  var CompanyAdminDetailsForm = function () {
6417
6417
  return (React.createElement("div", { className: "company-details-form-container" },
@@ -6419,7 +6419,7 @@ var AddNewCompanyComponent = function (props) {
6419
6419
  React.createElement(antd.Row, { className: "row", gutter: [16, 16] },
6420
6420
  React.createElement(antd.Col, { xl: 12, md: 24 },
6421
6421
  React.createElement("div", { className: "details-part-one" },
6422
- React.createElement(antd.Form.Item, { label: "Name", name: "name", rules: [
6422
+ React.createElement(antd.Form.Item, { label: t("addCompany:name"), name: "name", rules: [
6423
6423
  {
6424
6424
  required: true,
6425
6425
  message: "",
@@ -6431,7 +6431,7 @@ var AddNewCompanyComponent = function (props) {
6431
6431
  String(value).trim() === undefined ||
6432
6432
  value === null ||
6433
6433
  value === undefined) {
6434
- throw new Error("Name ".concat(t("isRequired")));
6434
+ throw new Error("".concat(t("addCompany:name"), " ").concat(t("isRequired")));
6435
6435
  }
6436
6436
  return [2 /*return*/];
6437
6437
  });
@@ -6439,15 +6439,15 @@ var AddNewCompanyComponent = function (props) {
6439
6439
  },
6440
6440
  ] },
6441
6441
  React.createElement(antd.Input, { size: "large" })),
6442
- React.createElement(antd.Form.Item, { name: "phoneNo", label: "Phone Number", rules: [
6442
+ React.createElement(antd.Form.Item, { name: "phoneNo", label: t("addCompany:phoneNo"), rules: [
6443
6443
  {
6444
6444
  required: false,
6445
6445
  },
6446
6446
  ] },
6447
- React.createElement(PhoneInput, { placeholder: "Phone number", international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6447
+ React.createElement(PhoneInput, { placeholder: t("addCompany:phoneNo"), international: true, value: PhoneInput.formatPhoneNumberIntl(contactNoInput), defaultCountry: "LK", countryCallingCodeEditable: false, onChange: function (v) { } })))),
6448
6448
  React.createElement(antd.Col, { xl: 12, md: 24 },
6449
6449
  React.createElement("div", { className: "details-part-two" },
6450
- React.createElement(antd.Form.Item, { label: "Email", name: "email", rules: [
6450
+ React.createElement(antd.Form.Item, { label: t("addCompany:email"), name: "email", rules: [
6451
6451
  {
6452
6452
  required: true,
6453
6453
  message: "",
@@ -6460,14 +6460,14 @@ var AddNewCompanyComponent = function (props) {
6460
6460
  String(value).trim() === undefined ||
6461
6461
  value === null ||
6462
6462
  value === undefined) {
6463
- throw new Error("Email ".concat(t("isRequired")));
6463
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isRequired")));
6464
6464
  }
6465
6465
  else {
6466
6466
  val = value.trim();
6467
6467
  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,}))$/;
6468
6468
  matches = val.match(reg) ? val.match(reg) : [];
6469
6469
  if (matches.length === 0) {
6470
- throw new Error("Email ".concat(t("isInvalid")));
6470
+ throw new Error("".concat(t("addCompany:email"), " ").concat(t("isInvalid")));
6471
6471
  }
6472
6472
  }
6473
6473
  return [2 /*return*/];
@@ -6477,8 +6477,8 @@ var AddNewCompanyComponent = function (props) {
6477
6477
  ] },
6478
6478
  React.createElement(antd.Input, { size: "large" }))))),
6479
6479
  React.createElement("div", { className: "steps-actions" },
6480
- current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, "SUBMIT")),
6481
- current === 1 && (React.createElement(antd.Button, { onClick: function () { return prevOne(); }, loading: loading }, "BACK"))))));
6480
+ current === 1 && (state === null || state === void 0 ? void 0 : state.record) ? (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", onClick: onUpdateCompany, loading: loading }, "UPDATE")) : (React.createElement(antd.Button, { className: "mg-left-1", type: "primary", htmlType: "submit", loading: loading }, t("addCompany:submit"))),
6481
+ current === 1 && (React.createElement(antd.Button, { onClick: function () { return prevOne(); }, loading: loading }, t("addCompany:back")))))));
6482
6482
  };
6483
6483
  return (React.createElement("div", { className: "add-company-main-container" },
6484
6484
  React.createElement("div", { className: "title-container" },