@banch0u/core-project-test-repository 2.3.20 → 2.3.22

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 (179) 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/translations/index.json +1799 -367
  179. package/package.json +1 -1
@@ -29,10 +29,15 @@ import Filter from "../../../components/Filter";
29
29
  import { addBarrel, deleteBarrel, editBarrel, barrelVisibility, getBarrel, getFieldAll } from "../../../store/slices/questionnaire";
30
30
  import Select from "../../../components/Select";
31
31
  import { typeENUM } from "../../../helpers/enums";
32
+ import text from "../../../translations/index.json";
33
+ import { useLang } from "../../../hooks/useLang";
32
34
  var Option = AntdSelect.Option;
33
35
  var Content = Layout.Content;
34
36
  var Item = Form.Item;
35
37
  var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
38
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$fields, _t$fields2, _t$options, _t$options2, _t$fields3, _t$common6, _t$common7;
39
+ var lang = useLang();
40
+ 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;
36
41
  var _useState = useState(null),
37
42
  _useState2 = _slicedToArray(_useState, 2),
38
43
  innerW = _useState2[0],
@@ -148,8 +153,8 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
148
153
  });
149
154
  }
150
155
  var columns = useMemo(function () {
151
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
152
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
156
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
157
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
153
158
  var _useState1 = useState(columns.map(function (col) {
154
159
  return col.dataIndex;
155
160
  })),
@@ -188,7 +193,7 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
188
193
  }, /*#__PURE__*/React.createElement(Button, {
189
194
  onClick: onClickModal,
190
195
  color: "green"
191
- }, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
196
+ }, " ", /*#__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, {
192
197
  columns: columns,
193
198
  selectedColumns: selectedColumns,
194
199
  setQuery: setQuery,
@@ -200,7 +205,7 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
200
205
  className: style.content
201
206
  }, /*#__PURE__*/React.createElement("div", {
202
207
  className: style.table_header
203
- }, /*#__PURE__*/React.createElement("h2", null, "Barel"), /*#__PURE__*/React.createElement("div", {
208
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.barrel), /*#__PURE__*/React.createElement("div", {
204
209
  className: style.buttons
205
210
  }, /*#__PURE__*/React.createElement(ColSort, {
206
211
  columns: columns,
@@ -225,10 +230,10 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
225
230
  })), /*#__PURE__*/React.createElement(FormModal, {
226
231
  ref: ref,
227
232
  width: 454,
228
- title: "Yeni soraqça yaratma",
229
- titleEdit: "Soraqça redaktə etmə",
230
- okText: "Yadda saxla",
231
- cancelText: "Bağla",
233
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
234
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
235
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
236
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
232
237
  onSubmit: onSubmit,
233
238
  onEdit: onEdit,
234
239
  className: "absolute",
@@ -240,7 +245,7 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
240
245
  message: ""
241
246
  }],
242
247
  name: "name",
243
- label: "Ad"
248
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
244
249
  }, /*#__PURE__*/React.createElement(Input, {
245
250
  className: style.modal_input,
246
251
  type: "text"
@@ -251,19 +256,19 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
251
256
  message: ""
252
257
  }],
253
258
  name: "type",
254
- label: "Tip"
259
+ label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.type
255
260
  }, /*#__PURE__*/React.createElement(Select, null, /*#__PURE__*/React.createElement(Option, {
256
261
  value: 1
257
- }, "M\u0259d\u0259n"), /*#__PURE__*/React.createElement(Option, {
262
+ }, t === null || t === void 0 || (_t$options = t.options) === null || _t$options === void 0 ? void 0 : _t$options.field), /*#__PURE__*/React.createElement(Option, {
258
263
  value: 3
259
- }, "Park"))), /*#__PURE__*/React.createElement(Item, {
264
+ }, t === null || t === void 0 || (_t$options2 = t.options) === null || _t$options2 === void 0 ? void 0 : _t$options2.park))), /*#__PURE__*/React.createElement(Item, {
260
265
  className: style.label,
261
266
  rules: [{
262
267
  required: true,
263
268
  message: ""
264
269
  }],
265
270
  name: "fieldId",
266
- label: "Sah\u0259"
271
+ label: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.area
267
272
  }, /*#__PURE__*/React.createElement(Select, null, fieldsAll === null || fieldsAll === void 0 ? void 0 : fieldsAll.map(function (item) {
268
273
  return /*#__PURE__*/React.createElement(Option, {
269
274
  value: item.id,
@@ -281,13 +286,13 @@ var QuestionnairesBarrelContent = function QuestionnairesBarrelContent() {
281
286
  onCancel: function onCancel() {
282
287
  return dispatch(setDeleteModalVisible(false));
283
288
  },
284
- value: "Soraqçanı"
289
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
285
290
  })), /*#__PURE__*/React.createElement(ViewModal, {
286
291
  onCancel: closeOnViewModal,
287
292
  width: 695
288
293
  }, /*#__PURE__*/React.createElement(Success, {
289
294
  onClick: closeOnViewModal,
290
- value: "Soraqça"
295
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
291
296
  }))))));
292
297
  };
293
298
  export default QuestionnairesBarrelContent;
@@ -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: "Brend",
15
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.brand,
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 { addBrand, brandVisibility, deleteBrand, editBrand, getBrands } 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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
178
183
  className: style.content
179
184
  }, /*#__PURE__*/React.createElement("div", {
180
185
  className: style.table_header
181
- }, /*#__PURE__*/React.createElement("h2", null, "Markalar"), /*#__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.brands), /*#__PURE__*/React.createElement("div", {
182
187
  className: style.buttons
183
188
  }, /*#__PURE__*/React.createElement(ColSort, {
184
189
  columns: columns,
@@ -203,10 +208,10 @@ var QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent = function QuestionnairesBrandsContent() {
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 QuestionnairesBrandsContent;
@@ -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;
7
8
  return [{
8
9
  title: "№",
9
10
  dataIndex: "num",
@@ -11,26 +12,27 @@ export var getStreetColumns = function getStreetColumns(onEditClick, onDelete, o
11
12
  ellipsis: true,
12
13
  width: 35
13
14
  }, {
14
- title: "Büdcə Komponentləri",
15
+ title: t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.budgetComponents,
15
16
  dataIndex: "name",
16
17
  width: innerW,
17
18
  disabled: true,
18
19
  ellipsis: true
19
20
  }, {
20
- title: "Qısa ad",
21
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.shortName,
21
22
  dataIndex: "shortName",
22
23
  width: innerW,
23
24
  disabled: true,
24
25
  ellipsis: true
25
26
  }, {
26
- title: "Status",
27
+ title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.status,
27
28
  key: "status",
28
29
  disabled: true,
29
30
  filter: false,
30
31
  render: function render(data) {
32
+ var _t$common;
31
33
  return /*#__PURE__*/React.createElement(Tooltip, {
32
34
  placement: "top",
33
- title: "Statusu d\u0259yi\u015F"
35
+ title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
34
36
  }, /*#__PURE__*/React.createElement(Switch, {
35
37
  size: "medium",
36
38
  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 { addBudgetComponents, deleteBudgetComponents, editBudgetComponents, getBudgetComponents, budgetComponentsVisibility } 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 QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetComponentsContent() {
32
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$messages, _t$fields, _t$messages2, _t$fields2, _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],
@@ -131,8 +136,8 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
131
136
  });
132
137
  }
133
138
  var columns = useMemo(function () {
134
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
135
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
139
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
140
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
136
141
  var _useState1 = useState(columns.map(function (col) {
137
142
  return col.dataIndex;
138
143
  })),
@@ -168,7 +173,7 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
168
173
  }, /*#__PURE__*/React.createElement(Button, {
169
174
  onClick: onClickModal,
170
175
  color: "green"
171
- }, /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
176
+ }, /*#__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, {
172
177
  columns: columns,
173
178
  selectedColumns: selectedColumns,
174
179
  setQuery: setQuery,
@@ -180,7 +185,7 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
180
185
  className: style.content
181
186
  }, /*#__PURE__*/React.createElement("div", {
182
187
  className: style.table_header
183
- }, /*#__PURE__*/React.createElement("h2", null, "B\xFCdc\u0259 Komponentl\u0259ri"), /*#__PURE__*/React.createElement("div", {
188
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.budgetComponents), /*#__PURE__*/React.createElement("div", {
184
189
  className: style.buttons
185
190
  }, /*#__PURE__*/React.createElement(ColSort, {
186
191
  columns: columns,
@@ -205,10 +210,10 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
205
210
  })), /*#__PURE__*/React.createElement(FormModal, {
206
211
  ref: ref,
207
212
  width: 454,
208
- title: "Yeni soraqça yaratma",
209
- titleEdit: "Soraqça redaktə etmə",
210
- okText: "Yadda saxla",
211
- cancelText: "Bağla",
213
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
214
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
215
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
216
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
212
217
  onSubmit: onSubmit,
213
218
  onEdit: onEdit,
214
219
  className: "absolute",
@@ -219,10 +224,10 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
219
224
  message: ""
220
225
  }, {
221
226
  min: 3,
222
- message: "Ən azından 3 simvol olmalıdır"
227
+ message: t === null || t === void 0 || (_t$messages = t.messages) === null || _t$messages === void 0 ? void 0 : _t$messages.minChars3
223
228
  }],
224
229
  name: "name",
225
- label: "Ad"
230
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
226
231
  }, /*#__PURE__*/React.createElement(Input, {
227
232
  className: style.modal_input
228
233
  })), /*#__PURE__*/React.createElement(Item, {
@@ -231,10 +236,10 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
231
236
  message: ""
232
237
  }, {
233
238
  min: 3,
234
- message: "Ən azından 3 simvol olmalıdır"
239
+ message: t === null || t === void 0 || (_t$messages2 = t.messages) === null || _t$messages2 === void 0 ? void 0 : _t$messages2.minChars3
235
240
  }],
236
241
  name: "shortName",
237
- label: "Qısa ad"
242
+ label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.shortName
238
243
  }, /*#__PURE__*/React.createElement(Input, {
239
244
  className: style.modal_input
240
245
  }))), /*#__PURE__*/React.createElement(DeleteModal, {
@@ -249,13 +254,13 @@ var QuestionnairesBudgetComponentsContent = function QuestionnairesBudgetCompone
249
254
  onCancel: function onCancel() {
250
255
  return dispatch(setDeleteModalVisible(false));
251
256
  },
252
- value: "Soraqçanı"
257
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
253
258
  })), /*#__PURE__*/React.createElement(ViewModal, {
254
259
  onCancel: closeOnViewModal,
255
260
  width: 695
256
261
  }, /*#__PURE__*/React.createElement(Success, {
257
262
  onClick: closeOnViewModal,
258
- value: "Soraqça"
263
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
259
264
  }))))));
260
265
  };
261
266
  export default QuestionnairesBudgetComponentsContent;
@@ -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, _t$fields3, _t$fields4;
7
8
  return [{
8
9
  title: "№",
9
10
  dataIndex: "num",
@@ -11,31 +12,32 @@ 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
21
  key: "parentId",
21
- title: "Üzv olduğu kateqoriya",
22
+ title: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.parentCategoryOf,
22
23
  dataIndex: "parentId",
23
24
  disabled: true,
24
25
  ellipsis: true
25
26
  }, {
26
27
  key: "group",
27
- title: "Qrup",
28
+ title: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.group,
28
29
  dataIndex: "group",
29
30
  ellipsis: true
30
31
  }, {
31
- title: "Status",
32
+ title: t === null || t === void 0 || (_t$fields4 = t.fields) === null || _t$fields4 === void 0 ? void 0 : _t$fields4.status,
32
33
  key: "status",
33
34
  disabled: true,
34
35
  filter: false,
35
36
  render: function render(data) {
37
+ var _t$common;
36
38
  return /*#__PURE__*/React.createElement(Tooltip, {
37
39
  placement: "top",
38
- title: "Statusu d\u0259yi\u015F"
40
+ title: t === null || t === void 0 || (_t$common = t.common) === null || _t$common === void 0 ? void 0 : _t$common.changeStatus
39
41
  }, /*#__PURE__*/React.createElement(Switch, {
40
42
  size: "medium",
41
43
  checked: data === null || data === void 0 ? void 0 : data.isActive,
@@ -27,9 +27,14 @@ import Loading from "../../../components/Loading";
27
27
  import Table from "../../../components/Table";
28
28
  import Filter from "../../../components/Filter";
29
29
  import { addCategories, deleteCategories, categoriesVisibility, editCategories, getCategories, getCategoriesAll } from "../../../store/slices/questionnaire";
30
+ import text from "../../../translations/index.json";
31
+ import { useLang } from "../../../hooks/useLang";
30
32
  var Content = Layout.Content;
31
33
  var Item = Form.Item;
32
34
  var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeContent() {
35
+ var _text$lang, _t$common, _t$titles, _t$common2, _t$common3, _t$common4, _t$common5, _t$fields, _t$fields2, _t$fields3, _t$common6, _t$common7;
36
+ var lang = useLang();
37
+ 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;
33
38
  var _useState = useState(null),
34
39
  _useState2 = _slicedToArray(_useState, 2),
35
40
  innerW = _useState2[0],
@@ -158,8 +163,8 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
158
163
  });
159
164
  }
160
165
  var columns = useMemo(function () {
161
- return getStreetColumns(onEditClick, onDelete, onStatusChange, dispatch);
162
- }, [onEditClick, onDelete, onStatusChange, dispatch]);
166
+ return getStreetColumns(t, onEditClick, onDelete, onStatusChange, dispatch);
167
+ }, [t, onEditClick, onDelete, onStatusChange, dispatch]);
163
168
  var _useState1 = useState(columns.map(function (col) {
164
169
  return col.dataIndex;
165
170
  })),
@@ -200,7 +205,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
200
205
  }, /*#__PURE__*/React.createElement(Button, {
201
206
  onClick: onClickModal,
202
207
  color: "green"
203
- }, " ", /*#__PURE__*/React.createElement(PlusIcon, null), " Soraq\xE7a \u0259lav\u0259 et"), /*#__PURE__*/React.createElement(Filter, {
208
+ }, " ", /*#__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, {
204
209
  columns: columns,
205
210
  selectedColumns: selectedColumns,
206
211
  setQuery: setQuery,
@@ -212,7 +217,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
212
217
  className: style.content
213
218
  }, /*#__PURE__*/React.createElement("div", {
214
219
  className: style.table_header
215
- }, /*#__PURE__*/React.createElement("h2", null, "Kateqoriyalar"), /*#__PURE__*/React.createElement("div", {
220
+ }, /*#__PURE__*/React.createElement("h2", null, t === null || t === void 0 || (_t$titles = t.titles) === null || _t$titles === void 0 ? void 0 : _t$titles.categories), /*#__PURE__*/React.createElement("div", {
216
221
  className: style.buttons
217
222
  }, /*#__PURE__*/React.createElement(ColSort, {
218
223
  columns: columns,
@@ -237,10 +242,10 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
237
242
  })), /*#__PURE__*/React.createElement(FormModal, {
238
243
  ref: ref,
239
244
  width: 454,
240
- title: "Yeni soraqça yaratma",
241
- titleEdit: "Soraqça redaktə etmə",
242
- okText: "Yadda saxla",
243
- cancelText: "Bağla",
245
+ title: t === null || t === void 0 || (_t$common2 = t.common) === null || _t$common2 === void 0 ? void 0 : _t$common2.createQuestionnaire,
246
+ titleEdit: t === null || t === void 0 || (_t$common3 = t.common) === null || _t$common3 === void 0 ? void 0 : _t$common3.editQuestionnaire,
247
+ okText: t === null || t === void 0 || (_t$common4 = t.common) === null || _t$common4 === void 0 ? void 0 : _t$common4.save,
248
+ cancelText: t === null || t === void 0 || (_t$common5 = t.common) === null || _t$common5 === void 0 ? void 0 : _t$common5.close,
244
249
  onSubmit: onSubmit,
245
250
  onEdit: onEdit,
246
251
  className: "absolute",
@@ -252,7 +257,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
252
257
  message: ""
253
258
  }],
254
259
  name: "name",
255
- label: "Ad"
260
+ label: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.name
256
261
  }, /*#__PURE__*/React.createElement(Input, {
257
262
  className: style.modal_input,
258
263
  type: "text"
@@ -263,7 +268,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
263
268
  message: ""
264
269
  }],
265
270
  name: "parentId",
266
- label: "\xDCst Kateqoriya"
271
+ label: t === null || t === void 0 || (_t$fields2 = t.fields) === null || _t$fields2 === void 0 ? void 0 : _t$fields2.parentCategory
267
272
  }, /*#__PURE__*/React.createElement(Select, {
268
273
  className: style.modal_input,
269
274
  options: categoryOption
@@ -274,7 +279,7 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
274
279
  message: ""
275
280
  }],
276
281
  name: "group",
277
- label: "Qrup"
282
+ label: t === null || t === void 0 || (_t$fields3 = t.fields) === null || _t$fields3 === void 0 ? void 0 : _t$fields3.group
278
283
  }, /*#__PURE__*/React.createElement(Input, {
279
284
  className: style.modal_input,
280
285
  type: "text"
@@ -290,13 +295,13 @@ var QuestionnairesDocumentTypeContent = function QuestionnairesDocumentTypeConte
290
295
  onCancel: function onCancel() {
291
296
  return dispatch(setDeleteModalVisible(false));
292
297
  },
293
- value: "Soraqçanı"
298
+ value: t === null || t === void 0 || (_t$common6 = t.common) === null || _t$common6 === void 0 ? void 0 : _t$common6.questionnaireAcc
294
299
  })), /*#__PURE__*/React.createElement(ViewModal, {
295
300
  onCancel: closeOnViewModal,
296
301
  width: 695
297
302
  }, /*#__PURE__*/React.createElement(Success, {
298
303
  onClick: closeOnViewModal,
299
- value: "Soraqça"
304
+ value: t === null || t === void 0 || (_t$common7 = t.common) === null || _t$common7 === void 0 ? void 0 : _t$common7.questionnaire
300
305
  }))))));
301
306
  };
302
307
  export default QuestionnairesDocumentTypeContent;
@@ -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: "Növ",
15
+ title: t === null || t === void 0 || (_t$fields = t.fields) === null || _t$fields === void 0 ? void 0 : _t$fields.kind,
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,