@banch0u/core-project-test-repository 2.3.19 → 2.3.21

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 (181) hide show
  1. package/dist/components/Delete/Delete.js +8 -3
  2. package/dist/components/Filter/index.js +7 -2
  3. package/dist/components/Success/Success.js +7 -2
  4. package/dist/hooks/useLang.js +31 -17
  5. package/dist/layout/QuestionnairesSidebar/index.js +94 -92
  6. package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/constant.js +6 -4
  7. package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +17 -12
  8. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/constant.js +6 -4
  9. package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +17 -12
  10. package/dist/pages/Questionnnaires/QuestionnairesAreasContent/constant.js +7 -5
  11. package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +17 -12
  12. package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/constant.js +8 -6
  13. package/dist/pages/Questionnnaires/QuestionnairesAttestationsContent/index.js +19 -14
  14. package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +8 -6
  15. package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +20 -15
  16. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +6 -4
  17. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +17 -12
  18. package/dist/pages/Questionnnaires/QuestionnairesBudgetComponentsContent/constant.js +7 -5
  19. package/dist/pages/Questionnnaires/QuestionnairesBudgetComponentsContent/index.js +19 -14
  20. package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/constant.js +8 -6
  21. package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +18 -13
  22. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +6 -4
  23. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +17 -12
  24. package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/constant.js +9 -7
  25. package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +21 -16
  26. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +6 -4
  27. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +17 -12
  28. package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/constant.js +7 -5
  29. package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +18 -13
  30. package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/constant.js +6 -4
  31. package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +17 -12
  32. package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/constant.js +6 -4
  33. package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +17 -12
  34. package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/constant.js +6 -4
  35. package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +16 -11
  36. package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/constant.js +7 -5
  37. package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +16 -11
  38. package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/constant.js +7 -5
  39. package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +17 -12
  40. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/constant.js +6 -4
  41. package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +17 -12
  42. package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/constant.js +6 -4
  43. package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +16 -11
  44. package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/constant.js +8 -6
  45. package/dist/pages/Questionnnaires/QuestionnairesCustomersContent/index.js +20 -15
  46. package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/constant.js +4 -3
  47. package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +50 -43
  48. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/constant.js +6 -4
  49. package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +17 -12
  50. package/dist/pages/Questionnnaires/QuestionnairesDepartmentsContent/constant.js +7 -5
  51. package/dist/pages/Questionnnaires/QuestionnairesDepartmentsContent/index.js +19 -14
  52. package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/constant.js +6 -4
  53. package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +17 -12
  54. package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/constant.js +6 -4
  55. package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +17 -12
  56. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/constant.js +6 -4
  57. package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +17 -12
  58. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +6 -4
  59. package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +19 -14
  60. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/constant.js +10 -8
  61. package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +26 -21
  62. package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/constant.js +6 -4
  63. package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +16 -11
  64. package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/constant.js +6 -4
  65. package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +17 -12
  66. package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/constant.js +6 -4
  67. package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +17 -12
  68. package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/constant.js +6 -4
  69. package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +17 -12
  70. package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/constant.js +10 -9
  71. package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +23 -18
  72. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +6 -4
  73. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +17 -12
  74. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/constant.js +6 -4
  75. package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +17 -12
  76. package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/constant.js +6 -4
  77. package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +16 -11
  78. package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +7 -5
  79. package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +19 -14
  80. package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/constant.js +6 -4
  81. package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +16 -11
  82. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +6 -4
  83. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +17 -12
  84. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/constant.js +6 -4
  85. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +17 -12
  86. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/constant.js +6 -4
  87. package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +17 -12
  88. package/dist/pages/Questionnnaires/QuestionnairesHallsContent/constant.js +8 -6
  89. package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +20 -15
  90. package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/constant.js +6 -4
  91. package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +17 -12
  92. package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/constant.js +6 -4
  93. package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +16 -11
  94. package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/constant.js +6 -4
  95. package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +17 -12
  96. package/dist/pages/Questionnnaires/QuestionnairesInventoryBrandsContent/constant.js +6 -4
  97. package/dist/pages/Questionnnaires/QuestionnairesInventoryBrandsContent/index.js +17 -12
  98. package/dist/pages/Questionnnaires/QuestionnairesInventoryCategoriesContent/constant.js +6 -4
  99. package/dist/pages/Questionnnaires/QuestionnairesInventoryCategoriesContent/index.js +18 -13
  100. package/dist/pages/Questionnnaires/QuestionnairesInventoryModelsContent/constant.js +6 -4
  101. package/dist/pages/Questionnnaires/QuestionnairesInventoryModelsContent/index.js +17 -12
  102. package/dist/pages/Questionnnaires/QuestionnairesInventoryTechnicalDetailsContent/constant.js +6 -5
  103. package/dist/pages/Questionnnaires/QuestionnairesInventoryTechnicalDetailsContent/index.js +17 -12
  104. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +6 -4
  105. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +17 -12
  106. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/constant.js +6 -4
  107. package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +17 -12
  108. package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/constant.js +6 -4
  109. package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +17 -12
  110. package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/constant.js +6 -4
  111. package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +17 -12
  112. package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/constant.js +6 -4
  113. package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +17 -12
  114. package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/constant.js +6 -4
  115. package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +17 -12
  116. package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/constant.js +6 -4
  117. package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +17 -12
  118. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +8 -6
  119. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +19 -14
  120. package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/constant.js +6 -4
  121. package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +16 -11
  122. package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/constant.js +6 -4
  123. package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +16 -11
  124. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/constant.js +11 -9
  125. package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +26 -21
  126. package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/constant.js +6 -4
  127. package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +17 -12
  128. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +6 -4
  129. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +17 -12
  130. package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/constant.js +6 -4
  131. package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +16 -11
  132. package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/constant.js +6 -4
  133. package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/index.js +17 -12
  134. package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/constant.js +9 -7
  135. package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +18 -13
  136. package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/constant.js +6 -4
  137. package/dist/pages/Questionnnaires/QuestionnairesProjectsContent/index.js +17 -12
  138. package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/constant.js +8 -6
  139. package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +21 -16
  140. package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/constant.js +6 -4
  141. package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +17 -12
  142. package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/constant.js +6 -4
  143. package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +17 -12
  144. package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/constant.js +6 -4
  145. package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +17 -12
  146. package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/constant.js +6 -4
  147. package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +17 -12
  148. package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/constant.js +6 -4
  149. package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +17 -12
  150. package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/constant.js +6 -4
  151. package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +17 -12
  152. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/constant.js +6 -4
  153. package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +17 -12
  154. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/constant.js +6 -4
  155. package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +19 -14
  156. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/constant.js +6 -4
  157. package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +19 -14
  158. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +6 -4
  159. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +17 -12
  160. package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/constant.js +6 -4
  161. package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +16 -11
  162. package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/constant.js +6 -4
  163. package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +17 -12
  164. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +9 -6
  165. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +17 -12
  166. package/dist/pages/Questionnnaires/QuestionnairesVendorCategoriesContent/constant.js +6 -4
  167. package/dist/pages/Questionnnaires/QuestionnairesVendorCategoriesContent/index.js +18 -13
  168. package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/constant.js +6 -4
  169. package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +17 -12
  170. package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +7 -5
  171. package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +17 -12
  172. package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/constant.js +8 -6
  173. package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +18 -13
  174. package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/constant.js +6 -4
  175. package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +17 -12
  176. package/dist/pages/Questionnnaires/QuestionnairesinventoryPackageTypesContent/constant.js +6 -4
  177. package/dist/pages/Questionnnaires/QuestionnairesinventoryPackageTypesContent/index.js +17 -12
  178. package/dist/store/slices/questionnaire/index.js +380 -372
  179. package/dist/store/slices/questionnaire/service.js +7 -7
  180. package/dist/translations/index.json +1784 -367
  181. package/package.json +1 -1
@@ -24,9 +24,14 @@ import Loading from "../../../components/Loading";
24
24
  import Table from "../../../components/Table";
25
25
  import Filter from "../../../components/Filter";
26
26
  import { addCountry, countryVisibility, deleteCountry, editCountry, getCountries } from "../../../store/slices/questionnaire";
27
+ import text from "../../../translations/index.json";
28
+ import { useLang } from "../../../hooks/useLang";
27
29
  var Content = Layout.Content;
28
30
  var Item = Form.Item;
29
31
  var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
32
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$common6, _t$common7;
33
+ var lang = useLang();
34
+ var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
30
35
  var _useState = useState(null),
31
36
  _useState2 = _slicedToArray(_useState, 2),
32
37
  innerW = _useState2[0],
@@ -129,8 +134,8 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
129
134
  });
130
135
  }
131
136
  var columns = useMemo(function () {
132
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
133
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
137
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
138
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
134
139
  var _useState1 = useState(columns.map(function (col) {
135
140
  return col.dataIndex;
136
141
  })),
@@ -166,7 +171,7 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
166
171
  }, /*#__PURE__*/React.createElement(Button, {
167
172
  onClick: onClickModal,
168
173
  color: "green"
169
- }, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
174
+ }, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
170
175
  columns: columns,
171
176
  selectedColumns: selectedColumns,
172
177
  setQuery: setQuery,
@@ -178,7 +183,7 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
178
183
  className: style.content
179
184
  }, /*#__PURE__*/React.createElement("div", {
180
185
  className: style.table_header
181
- }, /*#__PURE__*/React.createElement("h2", null, "\xD6lk\u0259l\u0259r"), /*#__PURE__*/React.createElement("div", {
186
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.countries), /*#__PURE__*/React.createElement("div", {
182
187
  className: style.buttons
183
188
  }, /*#__PURE__*/React.createElement(ColSort, {
184
189
  columns: columns,
@@ -203,10 +208,10 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
203
208
  })), /*#__PURE__*/React.createElement(FormModal, {
204
209
  ref: ref,
205
210
  width: 454,
206
- title: "Yeni soraqça yaratma",
207
- titleEdit: "Soraqça redaktə etmə",
208
- okText: "Yadda saxla",
209
- cancelText: "Bağla",
211
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
212
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
213
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
214
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
210
215
  onSubmit: onSubmit,
211
216
  onEdit: onEdit,
212
217
  className: "absolute",
@@ -217,10 +222,10 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
217
222
  message: ""
218
223
  }, {
219
224
  min: 3,
220
- message: "Ən azından 3 simvol olmalıdır"
225
+ message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
221
226
  }],
222
227
  name: "name",
223
- label: "Ad"
228
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
224
229
  }, /*#__PURE__*/React.createElement(Input, {
225
230
  className: style.modal_input
226
231
  }))), /*#__PURE__*/React.createElement(DeleteModal, {
@@ -235,13 +240,13 @@ var QuestionnairesCountriesContent = function QuestionnairesCountriesContent() {
235
240
  onCancel: function onCancel() {
236
241
  return dispatch(setDeleteModalVisible(false));
237
242
  },
238
- value: "Soraqçanı"
243
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
239
244
  })), /*#__PURE__*/React.createElement(ViewModal, {
240
245
  onCancel: closeOnViewModal,
241
246
  width: 695
242
247
  }, /*#__PURE__*/React.createElement(Success, {
243
248
  onClick: closeOnViewModal,
244
- value: "Soraqça"
249
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
245
250
  }))))));
246
251
  };
247
252
  export default QuestionnairesCountriesContent;
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
3
3
  import style from "../Questionnaires.module.scss";
4
4
  import { setDeleteModalVisible } from "../../../store/slices/global";
5
5
  import { DeleteIconQ, EditIcon } from "../../../assets/icons";
6
- export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
6
+ export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
7
+ var _t$fields, _t$fields2;
7
8
  return [{
8
9
  title: "№",
9
10
  dataIndex: "num",
@@ -11,20 +12,21 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
11
12
  ellipsis: true,
12
13
  width: 35
13
14
  }, {
14
- title: "Ad",
15
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name,
15
16
  dataIndex: "name",
16
17
  width: innerW,
17
18
  disabled: true,
18
19
  ellipsis: true
19
20
  }, {
20
- title: "Status",
21
+ title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.status,
21
22
  key: "status",
22
23
  disabled: true,
23
24
  filter: false,
24
25
  render: function render(data) {
26
+ var _t$common;
25
27
  return /*#__PURE__*/React.createElement(Tooltip, {
26
28
  placement: "top",
27
- title: "Statusu d\u0259yi\u015F"
29
+ title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
28
30
  }, /*#__PURE__*/React.createElement(Switch, {
29
31
  size: "medium",
30
32
  checked: data === null || data === void 0 ? void 0 : data.isActive,
@@ -24,9 +24,14 @@ import Loading from "../../../components/Loading";
24
24
  import Table from "../../../components/Table";
25
25
  import Filter from "../../../components/Filter";
26
26
  import { addCrushReasons, crushReasonsVisibility, deleteCrushReasons, editCrushReasons, getCrushReasons } from "../../../store/slices/questionnaire";
27
+ import text from "../../../translations/index.json";
28
+ import { useLang } from "../../../hooks/useLang";
27
29
  var Content = Layout.Content;
28
30
  var Item = Form.Item;
29
31
  var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsContent() {
32
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$fields, _t$common6, _t$common7;
33
+ var lang = useLang();
34
+ var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
30
35
  var _useState = useState(null),
31
36
  _useState2 = _slicedToArray(_useState, 2),
32
37
  innerW = _useState2[0],
@@ -129,8 +134,8 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
129
134
  });
130
135
  }
131
136
  var columns = useMemo(function () {
132
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
133
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
137
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
138
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
134
139
  var _useState1 = useState(columns.map(function (col) {
135
140
  return col.dataIndex;
136
141
  })),
@@ -166,7 +171,7 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
166
171
  }, /*#__PURE__*/React.createElement(Button, {
167
172
  onClick: onClickModal,
168
173
  color: "green"
169
- }, /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
174
+ }, /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
170
175
  columns: columns,
171
176
  selectedColumns: selectedColumns,
172
177
  setQuery: setQuery,
@@ -178,7 +183,7 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
178
183
  className: style.content
179
184
  }, /*#__PURE__*/React.createElement("div", {
180
185
  className: style.table_header
181
- }, /*#__PURE__*/React.createElement("h2", null, "Q\u0259za s\u0259b\u0259bl\u0259ri"), /*#__PURE__*/React.createElement("div", {
186
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.crashReasons), /*#__PURE__*/React.createElement("div", {
182
187
  className: style.buttons
183
188
  }, /*#__PURE__*/React.createElement(ColSort, {
184
189
  columns: columns,
@@ -203,10 +208,10 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
203
208
  })), /*#__PURE__*/React.createElement(FormModal, {
204
209
  ref: ref,
205
210
  width: 454,
206
- title: "Yeni soraqça yaratma",
207
- titleEdit: "Soraqça redaktə etmə",
208
- okText: "Yadda saxla",
209
- cancelText: "Bağla",
211
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
212
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
213
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
214
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
210
215
  onSubmit: onSubmit,
211
216
  onEdit: onEdit,
212
217
  className: "absolute",
@@ -217,7 +222,7 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
217
222
  message: ""
218
223
  }],
219
224
  name: "name",
220
- label: "Ad"
225
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
221
226
  }, /*#__PURE__*/React.createElement(Input, {
222
227
  className: style.modal_input
223
228
  }))), /*#__PURE__*/React.createElement(DeleteModal, {
@@ -232,13 +237,13 @@ var QuestionnairesCrushReasonsContent = function QuestionnairesCrushReasonsConte
232
237
  onCancel: function onCancel() {
233
238
  return dispatch(setDeleteModalVisible(false));
234
239
  },
235
- value: "Soraqçanı"
240
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
236
241
  })), /*#__PURE__*/React.createElement(ViewModal, {
237
242
  onCancel: closeOnViewModal,
238
243
  width: 695
239
244
  }, /*#__PURE__*/React.createElement(Success, {
240
245
  onClick: closeOnViewModal,
241
- value: "Soraqça"
246
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
242
247
  }))))));
243
248
  };
244
249
  export default QuestionnairesCrushReasonsContent;
@@ -3,7 +3,8 @@ import { Switch, Tooltip } from "antd";
3
3
  import style from "../Questionnaires.module.scss";
4
4
  import { setDeleteModalVisible } from "../../../store/slices/global";
5
5
  import { DeleteIconQ, EditIcon } from "../../../assets/icons";
6
- export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch, innerW) {
6
+ export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch, innerW) {
7
+ var _t$titles, _t$fields, _t$fields2, _t$fields3;
7
8
  return [{
8
9
  title: "№",
9
10
  dataIndex: "num",
@@ -11,32 +12,33 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
11
12
  ellipsis: true,
12
13
  width: 35
13
14
  }, {
14
- title: "Müştərilər",
15
+ title: t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.customers,
15
16
  dataIndex: "name",
16
17
  width: innerW,
17
18
  disabled: true,
18
19
  ellipsis: true
19
20
  }, {
20
- title: "VÖEN",
21
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.voen,
21
22
  dataIndex: "tin",
22
23
  width: innerW,
23
24
  disabled: false,
24
25
  ellipsis: true
25
26
  }, {
26
- title: "Müştəri nömrəsi",
27
+ title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.customerNumber,
27
28
  dataIndex: "customerNumber",
28
29
  width: innerW,
29
30
  disabled: false,
30
31
  ellipsis: true
31
32
  }, {
32
- title: "Status",
33
+ title: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.status,
33
34
  key: "status",
34
35
  disabled: true,
35
36
  filter: false,
36
37
  render: function render(data) {
38
+ var _t$common;
37
39
  return /*#__PURE__*/React.createElement(Tooltip, {
38
40
  placement: "top",
39
- title: "Statusu d\u0259yi\u015F"
41
+ title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
40
42
  }, /*#__PURE__*/React.createElement(Switch, {
41
43
  size: "medium",
42
44
  checked: data === null || data === void 0 ? void 0 : data.isActive,
@@ -24,9 +24,14 @@ import Loading from "../../../components/Loading";
24
24
  import Table from "../../../components/Table";
25
25
  import Filter from "../../../components/Filter";
26
26
  import { addCustomers, deleteCustomers, editCustomers, getCustomers, customersVisibility } from "../../../store/slices/questionnaire";
27
+ import text from "../../../translations/index.json";
28
+ import { useLang } from "../../../hooks/useLang";
27
29
  var Content = Layout.Content;
28
30
  var Item = Form.Item;
29
31
  var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
32
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$fields2, _t$messages2, _t$messages3, _t$common6, _t$common7;
33
+ var lang = useLang();
34
+ var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
30
35
  var _useState = useState(null),
31
36
  _useState2 = _slicedToArray(_useState, 2),
32
37
  innerW = _useState2[0],
@@ -132,8 +137,8 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
132
137
  });
133
138
  }
134
139
  var columns = useMemo(function () {
135
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
136
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
140
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
141
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
137
142
  var _useState1 = useState(columns.map(function (col) {
138
143
  return col.dataIndex;
139
144
  })),
@@ -169,7 +174,7 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
169
174
  }, /*#__PURE__*/React.createElement(Button, {
170
175
  onClick: onClickModal,
171
176
  color: "green"
172
- }, /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
177
+ }, /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
173
178
  columns: columns,
174
179
  selectedColumns: selectedColumns,
175
180
  setQuery: setQuery,
@@ -181,7 +186,7 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
181
186
  className: style.content
182
187
  }, /*#__PURE__*/React.createElement("div", {
183
188
  className: style.table_header
184
- }, /*#__PURE__*/React.createElement("h2", null, "M\xFC\u015Ft\u0259ril\u0259r"), /*#__PURE__*/React.createElement("div", {
189
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.customers), /*#__PURE__*/React.createElement("div", {
185
190
  className: style.buttons
186
191
  }, /*#__PURE__*/React.createElement(ColSort, {
187
192
  columns: columns,
@@ -206,10 +211,10 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
206
211
  })), /*#__PURE__*/React.createElement(FormModal, {
207
212
  ref: ref,
208
213
  width: 454,
209
- title: "Yeni soraqça yaratma",
210
- titleEdit: "Soraqça redaktə etmə",
211
- okText: "Yadda saxla",
212
- cancelText: "Bağla",
214
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
215
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
216
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
217
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
213
218
  onSubmit: onSubmit,
214
219
  onEdit: onEdit,
215
220
  className: "absolute",
@@ -220,21 +225,21 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
220
225
  message: ""
221
226
  }, {
222
227
  min: 3,
223
- message: "Ən azından 3 simvol olmalıdır"
228
+ message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
224
229
  }],
225
230
  name: "name",
226
- label: "Ad"
231
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
227
232
  }, /*#__PURE__*/React.createElement(Input, {
228
233
  className: style.modal_input
229
234
  })), /*#__PURE__*/React.createElement(Item, {
230
235
  name: "tin",
231
- label: "VÖEN",
236
+ label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.voen,
232
237
  rules: [{
233
238
  required: true,
234
- message: "VÖEN tələb olunur"
239
+ message: t === null || t === void 0 || (_t$messages2 = t.messages) === null || _t$messages2 === void 0 ? void 0 : _t$messages2.voenRequired
235
240
  }, {
236
241
  pattern: /^\d{10}$/,
237
- message: "VÖEN yalnız 10 rəqəmdən ibarət olmalıdır"
242
+ message: t === null || t === void 0 || (_t$messages3 = t.messages) === null || _t$messages3 === void 0 ? void 0 : _t$messages3.voenDigits
238
243
  }]
239
244
  }, /*#__PURE__*/React.createElement(Input, {
240
245
  className: style.modal_input,
@@ -257,13 +262,13 @@ var QuestionnairesCustomersContent = function QuestionnairesCustomersContent() {
257
262
  onCancel: function onCancel() {
258
263
  return dispatch(setDeleteModalVisible(false));
259
264
  },
260
- value: "Soraqçanı"
265
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
261
266
  })), /*#__PURE__*/React.createElement(ViewModal, {
262
267
  onCancel: closeOnViewModal,
263
268
  width: 695
264
269
  }, /*#__PURE__*/React.createElement(Success, {
265
270
  onClick: closeOnViewModal,
266
- value: "Soraqça"
271
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
267
272
  }))))));
268
273
  };
269
274
  export default QuestionnairesCustomersContent;
@@ -2,7 +2,8 @@ import * as React from "react";
2
2
  import style from "../Questionnaires.module.scss";
3
3
  import { setDeleteModalVisible } from "../../../store/slices/global";
4
4
  import { DeleteIconQ, EditIcon } from "../../../assets/icons";
5
- export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, dispatch, innerW) {
5
+ export var getStreetColumns = function getStreetColumns(t, onEditClick, onDelete, dispatch, innerW) {
6
+ var _t$fields, _t$fields2;
6
7
  return [{
7
8
  title: "№",
8
9
  dataIndex: "num",
@@ -10,13 +11,13 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, d
10
11
  ellipsis: true,
11
12
  width: 35
12
13
  }, {
13
- title: "Məsul şəxs",
14
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.responsiblePerson,
14
15
  dataIndex: "responsiblePerson",
15
16
  width: innerW,
16
17
  disabled: true,
17
18
  ellipsis: true
18
19
  }, {
19
- title: "Qrup №",
20
+ title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.groupNo,
20
21
  dataIndex: "rank",
21
22
  width: innerW,
22
23
  disabled: false,
@@ -30,12 +30,14 @@ import { addDefaultAgreementPlans, deleteDefaultAgreementPlans, editDefaultAgree
30
30
  import { getContractUsersAll } from "../../../store/slices/employees";
31
31
  import Select from "../../../components/Select";
32
32
  import Input from "../../../components/Input";
33
+ import text from "../../../translations/index.json";
34
+ import { useLang } from "../../../hooks/useLang";
33
35
  var Content = Layout.Content;
34
36
  var Item = Form.Item;
35
37
  var Option = AntdSelect.Option;
36
38
 
37
- /**
38
- * Helpers
39
+ /**
40
+ * Helpers
39
41
  */
40
42
  var toNumSafe = function toNumSafe(v) {
41
43
  return v === null || v === undefined || v === "" ? NaN : Number(v);
@@ -48,8 +50,8 @@ var deriveFlowPriorityFromRank = function deriveFlowPriorityFromRank(rank) {
48
50
  return undefined;
49
51
  };
50
52
 
51
- /**
52
- * ✅ EDIT NORMALIZATION (flowPriority-first)
53
+ /**
54
+ * ✅ EDIT NORMALIZATION (flowPriority-first)
53
55
  */
54
56
  var normalizeForEdit = function normalizeForEdit(row) {
55
57
  var fpNum = toNumSafe(row === null || row === void 0 ? void 0 : row.flowPriority);
@@ -88,8 +90,8 @@ var normalizeForEdit = function normalizeForEdit(row) {
88
90
  });
89
91
  };
90
92
 
91
- /**
92
- * ✅ PAYLOAD BUILD (SEND BOTH rank + flowPriority)
93
+ /**
94
+ * ✅ PAYLOAD BUILD (SEND BOTH rank + flowPriority)
93
95
  */
94
96
  var buildPayloadFromForm = function buildPayloadFromForm(id, values) {
95
97
  var flowPriority = Number(values === null || values === void 0 ? void 0 : values.flowPriority);
@@ -119,12 +121,14 @@ var resolveRankFromValues = function resolveRankFromValues(values) {
119
121
  };
120
122
 
121
123
  // ✅ for priority labels (only 0/1 unique now; 2 can be multiple)
122
- var PRIORITY_LABEL = {
123
- 0: "Sənəd yaradan",
124
- 1: "Birinci baxan"
124
+ var PRIORITY_LABEL_KEY = {
125
+ 0: "documentCreator",
126
+ 1: "firstReviewer"
125
127
  };
126
128
  var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultAgreementPlansContent() {
127
- var _query$internalStruct;
129
+ var _text$lang, _t$common, _t$titles, _query$internalStruct, _t$common2, _t$common3, _t$common4, _t$common5, _t$fields, _t$fields2, _t$options2, _t$options3, _t$options4, _t$options5, _t$common6, _t$common7;
130
+ var lang = useLang();
131
+ var t = text === null || text === void 0 || (_text$lang = text[lang]) === null || _text$lang === void 0 || (_text$lang = _text$lang.pages) === null || _text$lang === void 0 ? void 0 : _text$lang.questionnaires;
128
132
  var _useState = useState(null),
129
133
  _useState2 = _slicedToArray(_useState, 2),
130
134
  innerW = _useState2[0],
@@ -201,10 +205,10 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
201
205
  });
202
206
  }, [DefaultAgreementPlans]);
203
207
 
204
- /**
205
- * ✅ rows used for validation:
206
- * - prefer DefaultAgreementPlansAll if exists (covers all pages)
207
- * - fallback to current page `data`
208
+ /**
209
+ * ✅ rows used for validation:
210
+ * - prefer DefaultAgreementPlansAll if exists (covers all pages)
211
+ * - fallback to current page `data`
208
212
  */
209
213
  var rowsForValidation = useMemo(function () {
210
214
  var list = Array.isArray(DefaultAgreementPlansAll) && DefaultAgreementPlansAll.length ? DefaultAgreementPlansAll : data;
@@ -287,7 +291,8 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
287
291
 
288
292
  // ✅ throw helper: duplicate same person in same structure
289
293
  var throwDuplicateError = useCallback(function () {
290
- var errMsg = "Bu məsul şəxs bu struktur üçün artıq təyin olunub!";
294
+ var _t$messages;
295
+ var errMsg = t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.responsibleAssigned;
291
296
  if (modalFormRef.current) {
292
297
  modalFormRef.current.setFields([{
293
298
  name: "responsiblePersonId",
@@ -295,12 +300,13 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
295
300
  }]);
296
301
  }
297
302
  throw new Error(errMsg);
298
- }, []);
303
+ }, [t]);
299
304
 
300
305
  // ✅ throw helper: priority already taken in this internalStructure (ONLY for 0/1 now)
301
306
  var throwPriorityTakenError = useCallback(function (priority01) {
302
- var label = (PRIORITY_LABEL === null || PRIORITY_LABEL === void 0 ? void 0 : PRIORITY_LABEL[priority01]) || "Prioritet ".concat(priority01);
303
- var errMsg = "Bu strukturda art\u0131q \"".concat(label, "\" prioriteti t\u0259yin olunub!");
307
+ var _t$options, _t$messages2, _t$messages3;
308
+ var label = (t === null || t === void 0 || (_t$options = t.options) === null || _t$options === void 0 ? void 0 : _t$options[PRIORITY_LABEL_KEY === null || PRIORITY_LABEL_KEY === void 0 ? void 0 : PRIORITY_LABEL_KEY[priority01]]) || "".concat(t === null || t === void 0 || (_t$messages2 = t.messages) === null || _t$messages2 === void 0 ? void 0 : _t$messages2.priority, " ").concat(priority01);
309
+ var errMsg = t === null || t === void 0 || (_t$messages3 = t.messages) === null || _t$messages3 === void 0 || (_t$messages3 = _t$messages3.priorityAssigned) === null || _t$messages3 === void 0 ? void 0 : _t$messages3.replace("{label}", label);
304
310
  if (modalFormRef.current) {
305
311
  modalFormRef.current.setFields([{
306
312
  name: "flowPriority",
@@ -308,7 +314,7 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
308
314
  }]);
309
315
  }
310
316
  throw new Error(errMsg);
311
- }, []);
317
+ }, [t]);
312
318
 
313
319
  // ✅ validation 1: same person cannot be in same structure twice
314
320
  var hasDuplicatePersonInStructure = useCallback(function (personId, structureId, ignoreId) {
@@ -321,11 +327,11 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
321
327
  });
322
328
  }, [rowsForValidation]);
323
329
 
324
- /**
325
- * ✅ validation 2 (UPDATED):
326
- * each internalStructure can have ONLY ONE flowPriority 0/1
327
- * ✅ flowPriority (or rank) = 2 can be MULTIPLE
328
- * flowPriority 3 can be multiple
330
+ /**
331
+ * ✅ validation 2 (UPDATED):
332
+ * each internalStructure can have ONLY ONE flowPriority 0/1
333
+ * ✅ flowPriority (or rank) = 2 can be MULTIPLE
334
+ * flowPriority 3 can be multiple
329
335
  */
330
336
  var hasPriority01TakenInStructure = useCallback(function (structureId, priority01, ignoreId) {
331
337
  if (!structureId && structureId !== 0) return false;
@@ -440,8 +446,8 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
440
446
  setId(deleteId);
441
447
  }, []);
442
448
  var columns = useMemo(function () {
443
- return getStreetColumns(onEditClick, onDelete, dispatch);
444
- }, [onEditClick, onDelete, dispatch]);
449
+ return getStreetColumns(t, onEditClick, onDelete, dispatch);
450
+ }, [t, onEditClick, onDelete, dispatch]);
445
451
  var _useState11 = useState(columns.map(function (col) {
446
452
  return col.dataIndex;
447
453
  })),
@@ -471,7 +477,7 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
471
477
  }, /*#__PURE__*/React.createElement(Button, {
472
478
  onClick: onClickModal,
473
479
  color: "green"
474
- }, /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
480
+ }, /*#__PURE__*/React.createElement(PlusIcon, null), " ", t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.addQuestionnaire), /*#__PURE__*/React.createElement(Filter, {
475
481
  columns: columns,
476
482
  selectedColumns: selectedColumns,
477
483
  setQuery: setQueryMerge // ✅ merge (doesn't remove internalStructureId)
@@ -484,7 +490,7 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
484
490
  className: style.content
485
491
  }, /*#__PURE__*/React.createElement("div", {
486
492
  className: style.table_header
487
- }, /*#__PURE__*/React.createElement("h2", null, "\u015Eablon raz\u0131la\u015Fma sxemi"), /*#__PURE__*/React.createElement("div", {
493
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.defaultAgreementPlans), /*#__PURE__*/React.createElement("div", {
488
494
  className: style.buttons
489
495
  }, /*#__PURE__*/React.createElement(Select, {
490
496
  width: 250,
@@ -522,17 +528,17 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
522
528
  modalFormRef.current = f;
523
529
  },
524
530
  width: 454,
525
- title: "Yeni soraqça yaratma",
526
- titleEdit: "Soraqça redaktə etmə",
527
- okText: "Yadda saxla",
528
- cancelText: "Bağla",
531
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
532
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
533
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
534
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
529
535
  onSubmit: onSubmit,
530
536
  onEdit: onEdit,
531
537
  className: "absolute",
532
538
  centered: false
533
539
  }, /*#__PURE__*/React.createElement(Item, {
534
540
  name: "responsiblePersonId",
535
- label: "Məsul şəxs",
541
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.responsiblePerson,
536
542
  rules: [{
537
543
  required: true,
538
544
  message: ""
@@ -546,7 +552,7 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
546
552
  }, "".concat(item.firstName, " ").concat(item.lastName, " ").concat(item.patronymic));
547
553
  }))), /*#__PURE__*/React.createElement(Item, {
548
554
  name: "flowPriority",
549
- label: "D\xF6vriyy\u0259 prioriteti",
555
+ label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.flowPriority,
550
556
  rules: [{
551
557
  required: true,
552
558
  message: ""
@@ -555,32 +561,33 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
555
561
  size: "md"
556
562
  }, /*#__PURE__*/React.createElement(Option, {
557
563
  value: 0
558
- }, "S\u0259n\u0259d yaradan"), /*#__PURE__*/React.createElement(Option, {
564
+ }, t === null || t === void 0 || (_t$options2 = t.options) === null || _t$options2 === void 0 ? void 0 : _t$options2.documentCreator), /*#__PURE__*/React.createElement(Option, {
559
565
  value: 1
560
- }, "Birinci baxan"), /*#__PURE__*/React.createElement(Option, {
566
+ }, t === null || t === void 0 || (_t$options3 = t.options) === null || _t$options3 === void 0 ? void 0 : _t$options3.firstReviewer), /*#__PURE__*/React.createElement(Option, {
561
567
  value: 2
562
- }, "\u0130kinci baxan"), /*#__PURE__*/React.createElement(Option, {
568
+ }, t === null || t === void 0 || (_t$options4 = t.options) === null || _t$options4 === void 0 ? void 0 : _t$options4.secondReviewer), /*#__PURE__*/React.createElement(Option, {
563
569
  value: 3
564
- }, "Dig\u0259r baxanlar"))), /*#__PURE__*/React.createElement(Item, {
570
+ }, t === null || t === void 0 || (_t$options5 = t.options) === null || _t$options5 === void 0 ? void 0 : _t$options5.otherReviewers))), /*#__PURE__*/React.createElement(Item, {
565
571
  noStyle: true,
566
572
  shouldUpdate: function shouldUpdate(prev, cur) {
567
573
  return prev.flowPriority !== cur.flowPriority;
568
574
  }
569
575
  }, function (_ref4) {
576
+ var _t$fields3;
570
577
  var getFieldValue = _ref4.getFieldValue;
571
578
  var flowPriority = getFieldValue("flowPriority");
572
579
  if (flowPriority !== 3) return null;
573
580
  return /*#__PURE__*/React.createElement(Item, {
574
581
  preserve: false,
575
582
  name: "rank",
576
- label: "Qrup \u2116",
583
+ label: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.groupNo,
577
584
  rules: [{
578
585
  required: true,
579
586
  message: ""
580
587
  }, {
581
588
  validator: function () {
582
589
  var _validator = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_, value) {
583
- var numericValue;
590
+ var numericValue, _t$messages4;
584
591
  return _regeneratorRuntime.wrap(function (_context3) {
585
592
  while (1) switch (_context3.prev = _context3.next) {
586
593
  case 0:
@@ -601,7 +608,7 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
601
608
  _context3.next = 3;
602
609
  break;
603
610
  }
604
- throw new Error("Qrup № 3-dən kiçik ola bilməz!");
611
+ throw new Error(t === null || t === void 0 || (_t$messages4 = t.messages) === null || _t$messages4 === void 0 ? void 0 : _t$messages4.groupNoMin);
605
612
  case 3:
606
613
  return _context3.abrupt("return", true);
607
614
  case 4:
@@ -632,13 +639,13 @@ var QuestionnairesDefaultAgreementPlansContent = function QuestionnairesDefaultA
632
639
  onCancel: function onCancel() {
633
640
  return dispatch(setDeleteModalVisible(false));
634
641
  },
635
- value: "Soraqçanı"
642
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
636
643
  })), /*#__PURE__*/React.createElement(ViewModal, {
637
644
  onCancel: closeOnViewModal,
638
645
  width: 695
639
646
  }, /*#__PURE__*/React.createElement(Success, {
640
647
  onClick: closeOnViewModal,
641
- value: "Soraqça"
648
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
642
649
  }))))));
643
650
  };
644
651
  export default QuestionnairesDefaultAgreementPlansContent;