{"version":3,"sources":["webpack:///./src/utils/API/SystemConfigurationRepository.ts","webpack:///./src/assets/Admin/assets/img/dashboard/chef.jpg","webpack:///./src/views/Admin/SystemConfiguration.vue","webpack:///./src/views/Admin/SystemConfiguration.vue?11ca","webpack:///./src/views/Admin/SystemConfiguration.vue?b401","webpack:///./src/views/Admin/SystemConfiguration.vue?6d66","webpack:///./src/views/Admin/SystemConfiguration.vue?8893","webpack:///./src/components/vSelect.vue","webpack:///src/components/vSelect.vue","webpack:///./src/components/vSelect.vue?01b1","webpack:///./src/components/vSelect.vue?ce39","webpack:///./src/components/vSelect.vue?89bf","webpack:///./src/views/Admin/SystemConfiguration.vue?2b1c"],"names":["resource","fetchNutrientSourcesList","Repository","get","concat","withCredentials","updateNutrientSource","post","listNutrients","module","exports","render","_vm","this","_c","_self","_setupProxy","staticClass","staticStyle","attrs","require","_v","_s","translations","_m","accountState","userDetails","userType","UserTypes","SuperAdministrator","tableHeaders","transformNutrients","toggleableRows","systemConfigurationState","loading","on","toggleSwitch","_e","linkToLabelsManager","toggleAddNewLanguageModal","toggleAddNewTranslationKeyModal","toUpperCase","externalFiltersForGrid","categoryOptions","selectedCategory","name","filterGridByCategory","collectionOptions","selectedCollection","filterByCollection","languageOptions","selectedLanguage","filterByLanguage","ref","tableHeadersForTranslations","transformTranslations","translationsGridState","count","totalCount","pageSize","selectErase","editableTable","searchable","changePage","search","prepareEditMode","prepareDeletePrompt","order","showAddNewLanguageModal","resetState","$event","preventDefault","addNewLanguage","apply","arguments","class","errors","has","directives","rawName","value","expression","newLanguage","allLanguageOptions","selectAddNewLanguage","first","showAddNewTransKeyModal","addNewTranslationModal","category","categories","val","selectCategory","hide","hideAddCategorySection","closeAddCategorySection","newCategoryName","domProps","target","composing","addNewCategory","collection","collections","selectCollection","hideAddCollectionSection","closeAddCollectionSection","newCollectionName","addNewCollection","translationKey","$set","_l","language","key","id","translation","addNewTranslationKey","showEditTranslationValueModal","editTranslationValue","editTranslationValueProps","newTranslationValue","showRemovePrompt","removePromptTitle","confirmDelete","staticRenderFns","SystemConfiguration","_Vue","_this","_classCallCheck","removeList","filters","ordering","field","orderType","OrderType","Asc","undefined","localizationCategoryId","localizationCategory","translationId","languageId","editModalTitle","page","nutrientSources","_inherits","_createClass","sortable","searchString","map","element","e1","localizationCollection","e2","e3","localizationKey","e4","meta","args","orderings","push","_objectSpread","fetchTranslations","ListRequest","orders","index","findIndex","obj","toString","ids","_this2","localizationTranslation","filter","localizationKeyId","length","find","localizationLanguageId","listRequest","_this3","SystemConfigurationRepository","then","response","data","result","catch","error","$snotify","errorMessages","userVisibleMessage","_this4","component","props","nutrientSource","html","enabled","isEnabled","process","_ref","_this5","tmp","source","message","fetchNutrientSources","fetchAllLanguagesForAddNewLanguage","fetchCollectionsForGrid","$refs","translationsGrid","_this6","$validator","validateAll","LocalizationRepository","createLocalizationLanguage","success","fetchLanguages","_this7","fetchCollections","clear","$nextTick","reset","_this8","createLocalizationCategory","_this9","model","Name","LocalizationCategoryId","createLocalizationCollection","info","_this10","_this11","_this12","keyLanguageValues","LanguageId","Translation","KeyLanguageValues","CategoryId","CollectionId","Key","createTranslation","_this13","async","Promise","resolve","reject","KeyId","Value","updateTranslation","body","timeout","closeOnClick","_this14","deleteLocalizationKeys","resetExternalFilters","_this15","listTranslations","_this16","getCategories","_toConsumableArray","categoryId","_this17","getCollections","_this18","_this19","getLanguages","_this20","getAvailableLanguagesForAdding","x","fetchCategories","$store","dispatch","TRANSLATIONS_FETCH","document","title","localizationState","Vue","__decorate","Component","components","vTable","vSelect","vModal","computed","mapState","state","LocalizationModule","AccountModule","noLabel","label","disabled","required","multiple","filled","hasValue","clearable","filterable","placeholder","values","options","$emit","vals","searchQuery","noDrop","showError","errorMessage","Array","String","Boolean","type","default","created","isFirefox","navigator","userAgent","toLowerCase","indexOf","$","addClass"],"mappings":"2IAAA,gBAIMA,EAAW,aAEF,QACXC,yBAAwB,WACpB,OAAOC,OAAWC,IAAI,GAADC,OAAIJ,EAAQ,wB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AE,SAAA,GAEAf,UAAA,CACAc,KAAAD,QACAE,SAAA,GAEAP,OAAA,CACAM,KAAAD,QACAE,SAAA,GAEAb,YAAA,CACAY,KAAAF,OACAG,QAAA,KAGA3B,SAAA,CACAW,SAAA,WACA,YAAAF,SACA,KAAAM,QAAA,KAAAA,OAAAzH,OAAA,EAGA,WAAA3F,OAAA,SAAAA,YAAAsD,GAAA,KAAAtD,QAKAiO,QAAA,WACA,IAAAC,EAAAC,UAAAC,UAAAC,cAAAC,QAAA,cACAJ,GACAK,EAAA,uDAAAC,SACA,gBC3GgV,I,wBCQ5U7H,EAAY,eACd,EACAhL,EACA+G,GACA,EACA,KACA,KACA,MAIa,OAAAiE,E,2CCnBf,W,kCCAA","file":"js/chunk-7bba7950.428b2814.js","sourcesContent":["import Repository from './Repository';\r\nimport { UpdateNutrientSource } from '@/models/NutrientSource/UpdateNutrientSource';\r\n\r\n\r\nconst resource = '/nutrients';\r\n\r\nexport default {\r\n fetchNutrientSourcesList() {\r\n return Repository.get(`${resource}/ListNutrientSources`, {withCredentials: true});\r\n },\r\n updateNutrientSource(updateNutrientSource: UpdateNutrientSource) {\r\n return Repository.post(`${resource}/updatenutrientsource`, updateNutrientSource, {withCredentials: true});\r\n },\r\n listNutrients() {\r\n return Repository.get(`${resource}/ListNutrients`, {withCredentials: true});\r\n }\r\n};\r\n","module.exports = __webpack_public_path__ + \"img/chef.43804cf3.jpg\";","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"page-content-wrapper\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"container-fluid container-fixed-lg\"},[_c('h2',[_c('img',{staticClass:\"img-thumbnail img-circle\",staticStyle:{\"width\":\"75px\"},attrs:{\"src\":require(\"../../assets/Admin/assets/img/dashboard/chef.jpg\"),\"alt\":\"\"}}),_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_title\"))+\"\\n \")])]),_vm._m(0),_c('div',{staticClass:\"container-fluid container-fixed-lg\"},[_c('div',{staticClass:\"card card-default\"},[(\n _vm.accountState.userDetails.userType === _vm.UserTypes.SuperAdministrator\n )?_c('div',{staticClass:\"col-md-5\"},[_c('div',{staticClass:\"card-header\"},[_c('div',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_table_title\"))+\"\\n \")])]),_c('div',{staticClass:\"card-body\"},[_c('vTable',{staticClass:\"table-resp\",attrs:{\"tableHeaders\":_vm.tableHeaders,\"results\":_vm.transformNutrients,\"total\":3,\"totalCount\":3,\"pageSize\":3,\"toggle\":_vm.toggleableRows,\"loading\":_vm.systemConfigurationState.loading},on:{\"toggleSwitch\":_vm.toggleSwitch}})],1)]):_vm._e(),_c('div',{staticClass:\"col-md-7\"},[_c('div',{staticClass:\"card-header\"},[_c('div',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_labels\"))+\"\\n \")])]),_c('div',{staticClass:\"card-body\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_labels_description\"))+\"\\n \"),_c('a',{attrs:{\"href\":_vm.linkToLabelsManager,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.translations.get(\"sysconfig_labels_link\")))])])])])]),_c('div',{staticClass:\"container-fluid container-fixed-lg\",staticStyle:{\"margin-top\":\"40px\"}},[_c('div',{staticClass:\"d-flex flex-row flex-wrap justify-content-start flex-gap-16\",staticStyle:{\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"add-new-lang-btn\"},[_c('div',[_c('span',{staticClass:\"btn btn-sm btn-primary btn-fix\",on:{\"click\":_vm.toggleAddNewLanguageModal}},[_c('i',{staticClass:\"fa fa-plus\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n ADD NEW LANGUAGE\\n \")])])]),_c('div',{staticClass:\"add-translation-key-btn\"},[_c('div',[_c('span',{staticClass:\"btn btn-sm btn-primary btn-fix\",on:{\"click\":_vm.toggleAddNewTranslationKeyModal}},[_c('i',{staticClass:\"fa fa-plus\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n \"+_vm._s(_vm.translations\n .get(\"sysconfig_add_new_translation_key\")\n .toUpperCase())+\"\\n \")])])])])]),_c('div',{staticClass:\"container-fluid container-fixed-lg\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('div',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_language_editor\"))+\"\\n \")])]),(\n _vm.accountState.userDetails.userType === _vm.UserTypes.SuperAdministrator\n )?_c('div',{staticClass:\"full-width\",staticStyle:{\"padding\":\"0 60px\",\"margin-top\":\"5px\"}},[_c('div',{staticClass:\"lang-editor-filters-container container-fluid border mb-4\"},[_c('div',{staticClass:\"card-header\",staticStyle:{\"padding-left\":\"0\"}},[_c('div',{staticClass:\"card-title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_filter_by\"))+\"\\n \")])]),_c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-md-4\"},[_c('div',{staticClass:\"border\",attrs:{\"id\":\"select-container\"}},[_c('vSelect',{attrs:{\"multiple\":false,\"label\":_vm.translations.get('sysconfig_category'),\"options\":_vm.externalFiltersForGrid.categoryOptions,\"clearable\":false,\"placeholder\":_vm.translations.get('sysconfig_select_category'),\"value\":_vm.externalFiltersForGrid.selectedCategory.name},on:{\"input\":_vm.filterGridByCategory}})],1)]),_c('div',{staticClass:\"col-md-4\"},[_c('div',{staticClass:\"border\",attrs:{\"id\":\"select-container\"}},[_c('vSelect',{attrs:{\"multiple\":false,\"label\":_vm.translations.get('sysconfig_collection'),\"options\":_vm.externalFiltersForGrid.collectionOptions,\"clearable\":false,\"placeholder\":_vm.translations.get('sysconfig_select_collection'),\"value\":_vm.externalFiltersForGrid.selectedCollection.name},on:{\"input\":_vm.filterByCollection}})],1)]),_c('div',{staticClass:\"col-md-4\"},[_c('div',{staticClass:\"border\",attrs:{\"id\":\"select-container\"}},[_c('vSelect',{attrs:{\"multiple\":false,\"label\":_vm.translations.get('sysconfig_language'),\"options\":_vm.externalFiltersForGrid.languageOptions,\"clearable\":false,\"placeholder\":_vm.translations.get('sysconfig_select_language'),\"value\":_vm.externalFiltersForGrid.selectedLanguage.name},on:{\"input\":_vm.filterByLanguage}})],1)])])]),_c('div',{staticClass:\"translations-table\"},[_c('vTable',{ref:\"translationsGrid\",attrs:{\"tableHeaders\":this.tableHeadersForTranslations,\"results\":_vm.transformTranslations,\"total\":_vm.translationsGridState.count,\"totalCount\":_vm.translationsGridState.totalCount,\"pageSize\":_vm.translationsGridState.pageSize,\"selectErase\":_vm.selectErase,\"editable\":_vm.editableTable,\"searchable\":_vm.searchable,\"loading\":_vm.translationsGridState.loading},on:{\"changePage\":_vm.changePage,\"search\":_vm.search,\"edit\":_vm.prepareEditMode,\"remove\":_vm.prepareDeletePrompt,\"order\":_vm.order}})],1)]):_vm._e()])]),_c('vModal',{attrs:{\"modalTitle\":_vm.translations.get('sysconfig_add_new_language'),\"show\":_vm.showAddNewLanguageModal,\"size\":'s'},on:{\"cancelModal\":_vm.resetState}},[_c('form',{staticClass:\"form\",attrs:{\"data-vv-scope\":\"addLanguage\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.addNewLanguage.apply(null, arguments)}}},[_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"all-lang form-group-default form-group-default-select required\",class:{ 'has-error': _vm.errors.has('addLanguage.language') },attrs:{\"id\":\"select-container\"}},[_c('vSelect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"language\",\"multiple\":false,\"label\":_vm.translations.get('sysconfig_language_code'),\"value\":_vm.newLanguage.name,\"options\":_vm.allLanguageOptions,\"clearable\":false,\"placeholder\":_vm.translations.get('sysconfig_select_language')},on:{\"input\":_vm.selectAddNewLanguage}}),(_vm.errors.has('addLanguage.language'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addLanguage.language\")))]):_vm._e()],1)])]),_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('button',{staticClass:\"btn btn-primary btn-cons m-t-10\",attrs:{\"type\":\"submit\"}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add\").toUpperCase())+\"\\n \")]),_c('button',{staticClass:\"btn btn-default btn-cons m-t-10\",attrs:{\"type\":\"reset\"},on:{\"click\":_vm.resetState}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"cancel\"))+\"\\n \")])])])])]),_c('vModal',{attrs:{\"modalTitle\":_vm.translations.get('sysconfig_add_new_translation_key'),\"show\":_vm.showAddNewTransKeyModal,\"size\":'s',\"modalId\":'add-new-trans-key-modal'},on:{\"cancelModal\":_vm.resetState}},[_c('form',{staticClass:\"form px-3 add-translation-key-form\",attrs:{\"data-vv-scope\":\"addTransKey\"}},[_c('div',{staticClass:\"form-row pb-3\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"trans-key-category form-group-default form-group-default-select required\",class:{ 'has-error': _vm.errors.has('addTransKey.category') },attrs:{\"id\":\"select-container\"}},[_c('vSelect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"category\",\"multiple\":false,\"label\":_vm.translations.get('sysconfig_translation_category'),\"value\":_vm.addNewTranslationModal.category.name,\"options\":_vm.categories,\"clearable\":false,\"placeholder\":_vm.translations.get(\n 'sysconfig_translation_category_placeholder'\n )},on:{\"input\":(val) => _vm.selectCategory(val)}}),(_vm.errors.has('addTransKey.category'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addTransKey.category\")))]):_vm._e()],1)])]),_c('section',{staticClass:\"form-row transition-section\",class:{ hide: _vm.hideAddCategorySection },attrs:{\"id\":\"add-new-category\"}},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"section-title\"},[_c('p',{staticClass:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add_new_category\"))+\"\\n \")]),_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.closeAddCategorySection}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])]),_c('div',{staticClass:\"form-group form-group-default required\",class:{\n 'has-error': _vm.errors.has('addNewCategory.categoryName'),\n }},[_c('label',[_vm._v(_vm._s(_vm.translations.get(\"sysconfig_category_name\")))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newCategoryName),expression:\"newCategoryName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",attrs:{\"id\":\"new-category\",\"type\":\"text\",\"name\":\"categoryName\",\"data-vv-as\":_vm.translations.get('sysconfig_category_name'),\"data-vv-scope\":'addNewCategory',\"autocomplete\":\"off\",\"placeholder\":_vm.translations.get('sysconfig_category_name_placeholder')},domProps:{\"value\":(_vm.newCategoryName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.newCategoryName=$event.target.value}}}),(_vm.errors.has('addNewCategory.categoryName'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addNewCategory.categoryName\")))]):_vm._e()]),_c('div',{staticClass:\"add-btn\"},[_c('div',[_c('span',{staticClass:\"btn btn-sm btn-primary btn-add\",on:{\"click\":_vm.addNewCategory}},[_c('i',{staticClass:\"fa fa-plus\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add_category\").toUpperCase())+\"\\n \")])])])])]),_c('div',{staticClass:\"form-row pb-3\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"trans-key-collection form-group-default form-group-default-select required\",class:{ 'has-error': _vm.errors.has('addTransKey.collection') },attrs:{\"id\":\"select-container\"}},[_c('vSelect',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],attrs:{\"name\":\"collection\",\"multiple\":false,\"label\":_vm.translations.get('sysconfig_translation_collection'),\"value\":_vm.addNewTranslationModal.collection.name,\"options\":_vm.collections,\"clearable\":false,\"placeholder\":_vm.translations.get(\n 'sysconfig_translation_collection_placeholder'\n )},on:{\"input\":_vm.selectCollection}}),(_vm.errors.has('addTransKey.collection'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addTransKey.collection\")))]):_vm._e()],1)])]),_c('section',{staticClass:\"form-row transition-section\",class:{ hide: _vm.hideAddCollectionSection },attrs:{\"id\":\"add-new-collection\"}},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"section-title\"},[_c('p',{staticClass:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add_new_collection\"))+\"\\n \")]),_c('button',{staticClass:\"close\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.closeAddCollectionSection}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}},[_vm._v(\"×\")])])]),_c('div',{staticClass:\"form-group form-group-default required\",class:{\n 'has-error': _vm.errors.has('addNewCollection.collectionName'),\n }},[_c('label',[_vm._v(_vm._s(_vm.translations.get(\"sysconfig_collection_name\")))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newCollectionName),expression:\"newCollectionName\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",attrs:{\"id\":\"new-collection\",\"type\":\"text\",\"name\":\"collectionName\",\"data-vv-as\":_vm.translations.get('sysconfig_collection_name'),\"data-vv-scope\":'addNewCollection',\"autocomplete\":\"off\",\"placeholder\":_vm.translations.get('sysconfig_collection_name_placeholder')},domProps:{\"value\":(_vm.newCollectionName)},on:{\"input\":function($event){if($event.target.composing)return;_vm.newCollectionName=$event.target.value}}}),(_vm.errors.has('addNewCollection.collectionName'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addNewCollection.collectionName\")))]):_vm._e()]),_c('div',{staticClass:\"add-btn\"},[_c('div',[_c('span',{staticClass:\"btn btn-sm btn-primary btn-add\",on:{\"click\":_vm.addNewCollection}},[_c('i',{staticClass:\"fa fa-plus\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add_collection\").toUpperCase())+\"\\n \")])])])])]),_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"form-group form-group-default required\",class:{\n 'has-error': _vm.errors.has('addTransKey.transKey'),\n }},[_c('label',[_vm._v(_vm._s(_vm.translations.get(\"sysconfig_translation_key\")))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.addNewTranslationModal.translationKey),expression:\"addNewTranslationModal.translationKey\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":\"transKey\",\"data-vv-as\":_vm.translations.get('sysconfig_translation_key'),\"autocomplete\":\"off\",\"placeholder\":_vm.translations.get('sysconfig_translation_key_placeholder')},domProps:{\"value\":(_vm.addNewTranslationModal.translationKey)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.addNewTranslationModal, \"translationKey\", $event.target.value)}}}),(_vm.errors.has('addTransKey.transKey'))?_c('span',{staticClass:\"error col-12\"},[_vm._v(_vm._s(_vm.errors.first(\"addTransKey.transKey\")))]):_vm._e()])])]),_c('div',{staticClass:\"form-row pb-3\",attrs:{\"id\":\"translation-per-page\"}},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"section-title\"},[_c('p',{staticClass:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_translation_per_page\"))+\"\\n \")])]),_vm._l((_vm.externalFiltersForGrid.languageOptions),function(language){return _c('div',{key:language.id,staticClass:\"form-group form-group-default\"},[_c('label',[_vm._v(_vm._s(language.value))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(language.translation),expression:\"language.translation\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":\"translation\",\"data-vv-as\":_vm.translations.get('sysconfig_translation'),\"autocomplete\":\"off\",\"placeholder\":_vm.translations.get('sysconfig_translation_placeholder')},domProps:{\"value\":(language.translation)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(language, \"translation\", $event.target.value)}}})])})],2)]),_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('button',{staticClass:\"btn btn-primary btn-cons m-t-10\",on:{\"click\":function($event){$event.preventDefault();return _vm.addNewTranslationKey.apply(null, arguments)}}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_add\").toUpperCase())+\"\\n \")]),_c('button',{staticClass:\"btn btn-default btn-cons m-t-10\",attrs:{\"type\":\"reset\"},on:{\"click\":_vm.resetState}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"cancel\"))+\"\\n \")])])])])]),_c('vModal',{attrs:{\"modalTitle\":_vm.translations.get('sysconfig_edit_translation_value'),\"show\":_vm.showEditTranslationValueModal,\"size\":'s'},on:{\"cancelModal\":_vm.resetState}},[_c('form',{staticClass:\"form\",attrs:{\"data-vv-scope\":\"addLanguage\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.editTranslationValue.apply(null, arguments)}}},[_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"form-group form-group-default\"},[_c('label',[_vm._v(_vm._s(_vm.translations.get(\"sysconfig_translation_value\")))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.editTranslationValueProps.newTranslationValue),expression:\"editTranslationValueProps.newTranslationValue\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"name\":\"translationValue\",\"data-vv-as\":_vm.translations.get('sysconfig_translation_value'),\"autocomplete\":\"off\",\"placeholder\":_vm.translations.get('sysconfig_translation_value_placeholder')},domProps:{\"value\":(_vm.editTranslationValueProps.newTranslationValue)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.editTranslationValueProps, \"newTranslationValue\", $event.target.value)}}})])])]),_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-12\"},[_c('button',{staticClass:\"btn btn-primary btn-cons m-t-10\",attrs:{\"type\":\"submit\"}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"sysconfig_edit\").toUpperCase())+\"\\n \")]),_c('button',{staticClass:\"btn btn-default btn-cons m-t-10\",attrs:{\"type\":\"reset\"},on:{\"click\":_vm.resetState}},[_vm._v(\"\\n \"+_vm._s(_vm.translations.get(\"cancel\"))+\"\\n \")])])])])]),_c('vModal',{attrs:{\"show\":_vm.showRemovePrompt,\"modalTitle\":_vm.removePromptTitle},on:{\"cancelModal\":_vm.resetState}},[_c('form',{staticClass:\"p-t-15\",attrs:{\"role\":\"form\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.confirmDelete.apply(null, arguments)}}},[_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"form-group col-md-6\"},[_c('button',{staticClass:\"btn btn-primary btn-cons m-t-10\",attrs:{\"type\":\"submit\"}},[_vm._v(\"\\n \"+_vm._s(this.translations.get(\"yes\"))+\"\\n \")]),_c('button',{staticClass:\"btn btn-cons m-t-10\",attrs:{\"type\":\"reset\"},on:{\"click\":_vm.resetState}},[_vm._v(\"\\n \"+_vm._s(this.translations.get(\"cancel\"))+\"\\n \")])])])])])],1)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container-fluid container-fixed-lg\"},[_c('div',{staticClass:\"row\",staticStyle:{\"margin-bottom\":\"20px\"}},[_c('div',{staticClass:\"col-md-12\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-9\"},[_c('div')])])])])])\n}]\n\nexport { render, staticRenderFns }","\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport vTable from \"@/components/vTable.vue\";\r\nimport { mapState } from \"vuex\";\r\nimport ListRequest, { Filter, Ordering, OrderType } from \"@/models/ListRequest\";\r\nimport { TRANSLATIONS_FETCH } from \"@/store/ActionTypes\";\r\nimport vSelect from \"@/components/vSelect.vue\";\r\nimport vModal from \"@/components/vModal.vue\";\r\nimport { NutrientSource } from \"@/models/NutrientSource/NutrientSource\";\r\nimport { NutrientSourceList } from \"@/models/NutrientSource/NutrientSourceList\";\r\nimport LocalizationTranslation from \"@/models/Localization/ListTranslations\";\r\nimport { AddTranslationKey } from \"@/models/SystemConfiguration/AddTranslationKey\";\r\nimport SystemConfigurationRepository from \"@/utils/API/SystemConfigurationRepository\";\r\nimport LocalizationRepository from \"@/utils/API/LocalizationRepository\";\r\nimport { UserTypes } from \"../../models/User/UserTypes\";\r\n\r\n//Types\r\ntype SelectObj = { id: number | undefined; name: string };\r\ntype LangSelectObj = {\r\n id: number | undefined;\r\n name: string;\r\n value: string;\r\n translation: string;\r\n};\r\ntype CollectionSelectObj = {\r\n id: number | undefined;\r\n name: string;\r\n localizationCategoryId: number | undefined;\r\n localizationCategory: string | null;\r\n};\r\n\r\ninterface SystemConfigurationState {\r\n nutrientSources: NutrientSourceList[];\r\n loading: boolean;\r\n}\r\n\r\ninterface TranslationsGridState {\r\n translations: LocalizationTranslation[];\r\n loading: boolean;\r\n count: number;\r\n totalCount: number;\r\n pageSize: number;\r\n page: number;\r\n}\r\n\r\ninterface Filters {\r\n categoryOptions: SelectObj[];\r\n collectionOptions: CollectionSelectObj[];\r\n languageOptions: LangSelectObj[];\r\n selectedLanguage: LangSelectObj | null | undefined;\r\n selectedCategory: SelectObj | null;\r\n selectedCollection: CollectionSelectObj | null;\r\n}\r\n\r\n@Component({\r\n components: {\r\n vTable,\r\n vSelect,\r\n vModal,\r\n },\r\n computed: {\r\n ...mapState({\r\n localizationState: (state: any) => state.LocalizationModule,\r\n accountState: (state: any) => state.AccountModule,\r\n }),\r\n },\r\n})\r\nclass SystemConfiguration extends Vue {\r\n /**\r\n * vTable props\r\n */\r\n selectErase = true;\r\n searchable = true;\r\n loading = false;\r\n removeList: number[] = []; // List of id of partners to be removed\r\n removePromptTitle = \"\";\r\n showRemovePrompt = false;\r\n filters: Filter[] = [];\r\n ordering: Ordering = { field: \"\", orderType: OrderType.Asc };\r\n editableTable = true;\r\n\r\n /**\r\n * Filter Properties\r\n */\r\n externalFiltersForGrid: Filters = {\r\n categoryOptions: [],\r\n collectionOptions: [],\r\n languageOptions: [],\r\n selectedLanguage: { id: undefined, name: \"\", value: \"\", translation: \"\" },\r\n selectedCategory: { id: undefined, name: \"\" },\r\n selectedCollection: {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n },\r\n };\r\n /**\r\n * Modal Properties\r\n */\r\n showAddNewLanguageModal = false;\r\n showAddNewTransKeyModal = false;\r\n showEditTranslationValueModal = false;\r\n\r\n /**\r\n * Edit translation value modal props\r\n */\r\n editTranslationValueProps = {\r\n newTranslationValue: \"\",\r\n translationId: null,\r\n languageId: null,\r\n editModalTitle: \"\",\r\n };\r\n\r\n /**\r\n * Add new language modal props\r\n */\r\n newLanguage = {\r\n id: \"\",\r\n name: \"\",\r\n };\r\n allLanguageOptions = [];\r\n\r\n /**\r\n * Add new translation key modal props\r\n */\r\n categories: SelectObj[] = [];\r\n collections: SelectObj[] = [];\r\n addNewTranslationModal: AddTranslationKey = {\r\n category: { id: undefined, name: \"\" },\r\n collection: {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n },\r\n translationKey: \"\",\r\n };\r\n hideAddCategorySection: boolean = true;\r\n hideAddCollectionSection: boolean = true;\r\n newCategoryName: string = \"\";\r\n newCollectionName: string = \"\";\r\n\r\n /**\r\n * Translations grid props\r\n */\r\n translationsGridState: TranslationsGridState = {\r\n translations: [],\r\n loading: false,\r\n count: 0,\r\n totalCount: 0,\r\n pageSize: 25,\r\n page: 1,\r\n };\r\n\r\n localizationState: any;\r\n accountState: any;\r\n\r\n toggleableRows = true;\r\n\r\n systemConfigurationState: SystemConfigurationState = {\r\n nutrientSources: [],\r\n loading: false,\r\n };\r\n\r\n UserTypes = UserTypes;\r\n\r\n // START GRID PRIMARY FUNCTIONS\r\n\r\n selectAddNewLanguage(language: any) {\r\n this.newLanguage = language;\r\n }\r\n /**\r\n * Getter for grid headers. Done this way because headers are translatable and async\r\n */\r\n get tableHeadersForTranslations() {\r\n return [\r\n {\r\n name: \"Category\",\r\n key: \"CategoryId\",\r\n sortable: true,\r\n searchable: false,\r\n searchString: \"\",\r\n },\r\n {\r\n name: \"Collection\",\r\n key: \"CollectionId\",\r\n sortable: true,\r\n searchable: false,\r\n searchString: \"\",\r\n },\r\n {\r\n name: \"Key\",\r\n key: \"LocalizationKey\",\r\n searchable: true,\r\n searchString: \"\",\r\n sortable: true,\r\n },\r\n {\r\n name: this.externalFiltersForGrid.selectedLanguage!.value,\r\n key: \"LanguageTranslationValue\",\r\n searchable: true,\r\n searchString: \"\",\r\n sortable: true,\r\n },\r\n ];\r\n }\r\n\r\n get transformTranslations() {\r\n return this.translationsGridState.translations.map(\r\n (element: LocalizationTranslation) => {\r\n return {\r\n e1: element.localizationCollection.localizationCategory.name,\r\n e2: element.localizationCollection.name,\r\n e3: element.localizationKey.name,\r\n e4: element.value ? element.value : \"\",\r\n meta: {\r\n id: element.id,\r\n },\r\n };\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * Method used by the grid after catching the 'changePage'\r\n * event from vTable\r\n *\r\n * @param {any} args\r\n */\r\n changePage(args: any) {\r\n const orderings: Ordering[] = [];\r\n orderings.push({ ...args[3] });\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: args[0],\r\n pageSize: 25,\r\n filters: args[2],\r\n orders: orderings,\r\n })\r\n );\r\n }\r\n\r\n /**\r\n * Method used by the grid after catching the 'search'\r\n * event from vTable\r\n *\r\n * @param {Filter[]} filters\r\n * @param {Ordering} ordering\r\n */\r\n search(filters: Filter[], ordering: Ordering) {\r\n // Add external filters to array, check for option 'show all' (id = -1)\r\n if (\r\n this.externalFiltersForGrid.selectedCategory!.id != undefined &&\r\n this.externalFiltersForGrid.selectedCategory!.id != -1\r\n ) {\r\n // If the filter is already in the array then just change the value, otherwise push it in the filters\r\n const index = filters.findIndex((obj) => obj.name === \"CategoryId\");\r\n if (index !== -1) {\r\n filters[index].value =\r\n this.externalFiltersForGrid.selectedCategory!.id.toString();\r\n } else {\r\n filters.push({\r\n name: \"CategoryId\",\r\n value: this.externalFiltersForGrid.selectedCategory!.id.toString(),\r\n });\r\n }\r\n }\r\n if (\r\n this.externalFiltersForGrid.selectedCollection!.id != undefined &&\r\n this.externalFiltersForGrid.selectedCollection!.id != -1\r\n ) {\r\n const index = filters.findIndex((obj) => obj.name === \"CollectionId\");\r\n if (index !== -1) {\r\n filters[index].value =\r\n this.externalFiltersForGrid.selectedCollection!.id.toString();\r\n } else {\r\n filters.push({\r\n name: \"CollectionId\",\r\n value: this.externalFiltersForGrid.selectedCollection!.id.toString(),\r\n });\r\n }\r\n }\r\n if (this.externalFiltersForGrid.selectedLanguage!.id != undefined) {\r\n const index = filters.findIndex((obj) => obj.name === \"LanguageId\");\r\n if (index !== -1) {\r\n filters[index].value =\r\n this.externalFiltersForGrid.selectedLanguage!.id.toString();\r\n } else {\r\n filters.push({\r\n name: \"LanguageId\",\r\n value: this.externalFiltersForGrid.selectedLanguage!.id.toString(),\r\n });\r\n }\r\n }\r\n const orderings: Ordering[] = [];\r\n orderings.push({ ...ordering });\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: 1,\r\n pageSize: this.translationsGridState.pageSize,\r\n filters,\r\n orders: orderings,\r\n })\r\n );\r\n }\r\n\r\n /**\r\n * Method for displaying prompt message for selected translations to be deleted\r\n *\r\n * @param {number[]} ids\r\n */\r\n prepareDeletePrompt(ids: number[]) {\r\n this.removeList = ids.map((id) => {\r\n const localizationTranslation =\r\n this.translationsGridState.translations.filter(\r\n (translation) => translation.id === id\r\n );\r\n return localizationTranslation[0].localizationKeyId;\r\n });\r\n this.removePromptTitle = this.translations.get(\r\n \"sysconfig_delete_prompt_message\",\r\n ids.length\r\n );\r\n this.showRemovePrompt = true;\r\n }\r\n\r\n /**\r\n * Populating form and toggling the modal for editing partner.\r\n * Sets the edit mode to true\r\n *\r\n * @param {number} id\r\n */\r\n prepareEditMode(id: number) {\r\n this.showEditTranslationValueModal = true;\r\n const translation: any = this.translationsGridState.translations.find(\r\n (translation: LocalizationTranslation) => translation.id === id\r\n );\r\n this.editTranslationValueProps.newTranslationValue = translation.value;\r\n this.editTranslationValueProps.translationId =\r\n translation.localizationKeyId;\r\n this.editTranslationValueProps.languageId =\r\n translation.localizationLanguageId;\r\n this.editTranslationValueProps.editModalTitle = this.translations.get(\r\n \"partners_modal_title_edit\"\r\n );\r\n }\r\n\r\n /**\r\n * Method used by the grid after catching the 'order'\r\n * event from vTable\r\n *\r\n * @param {Filter[]} filters\r\n * @param {Ordering} ordering\r\n */\r\n order(filters: Filter[], ordering: Ordering) {\r\n const orderings: Ordering[] = [];\r\n orderings.push({ ...ordering });\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: 1,\r\n pageSize: this.translationsGridState.pageSize,\r\n filters,\r\n orders: orderings,\r\n })\r\n );\r\n }\r\n\r\n // END GRID PRIMARY FUNCITONS\r\n\r\n fetchNutrientSources(listRequest: ListRequest) {\r\n this.systemConfigurationState.loading = true;\r\n SystemConfigurationRepository.fetchNutrientSourcesList()\r\n .then((response) => {\r\n this.systemConfigurationState.nutrientSources = response.data.result;\r\n\r\n this.systemConfigurationState.loading = false;\r\n })\r\n .catch((error) => {\r\n if (error.response)\r\n this.$snotify.error(\r\n error.response.errorMessages[0].userVisibleMessage\r\n );\r\n else this.$snotify.error(this.translations.get(\"network-error\"));\r\n this.systemConfigurationState.loading = false;\r\n });\r\n }\r\n\r\n get transformNutrients() {\r\n return this.systemConfigurationState.nutrientSources.map(\r\n (element: NutrientSourceList, index: number) => {\r\n return {\r\n e1: {\r\n component: \"span\",\r\n props: { id: element.nutrientSource },\r\n html: this.translations.get(\r\n `nutrient_source_${element.nutrientSource}`\r\n ),\r\n },\r\n meta: {\r\n id: element.nutrientSource,\r\n enabled: element.isEnabled,\r\n },\r\n };\r\n }\r\n );\r\n }\r\n\r\n get tableHeaders() {\r\n return [\r\n {\r\n name: this.translations.get(\"sysconfig_table_header_database\"),\r\n key: \"database\",\r\n searchable: true,\r\n searchString: \"\",\r\n sortable: false,\r\n },\r\n ];\r\n }\r\n\r\n get linkToLabelsManager() {\r\n return `${process.env.VUE_APP_BASE_DOMAIN}/api/nutritionlabels/list`;\r\n }\r\n\r\n toggleSwitch({ value, id }: { value: boolean; id: number }) {\r\n let tmp = this.systemConfigurationState.nutrientSources.find(\r\n (source: NutrientSourceList) => source.nutrientSource === id\r\n );\r\n\r\n if (typeof tmp !== \"undefined\") {\r\n SystemConfigurationRepository.updateNutrientSource({\r\n nutrientSource: id,\r\n name: this.translations.get(`nutrient_source_${tmp.nutrientSource}`),\r\n isEnabled: value,\r\n }).catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n this.fetchNutrientSources(new ListRequest({ page: 1, pageSize: 5 }));\r\n });\r\n }\r\n }\r\n\r\n // Modal for adding a new language globally\r\n toggleAddNewLanguageModal() {\r\n this.showAddNewLanguageModal = true;\r\n this.fetchAllLanguagesForAddNewLanguage();\r\n }\r\n toggleAddNewTranslationKeyModal() {\r\n this.showAddNewTransKeyModal = true;\r\n }\r\n filterGridByCategory(category: SelectObj) {\r\n // Remove the filter for collection when you filter the grid by another category\r\n (this.externalFiltersForGrid.selectedCollection = {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n }),\r\n (this.externalFiltersForGrid.selectedCategory = category);\r\n\r\n // If show all is selected then don't fetch collections\r\n if (category.id !== -1) {\r\n this.fetchCollectionsForGrid(category.id);\r\n } else {\r\n this.externalFiltersForGrid.collectionOptions = [];\r\n }\r\n\r\n // Solves error 'Property does not exist on type vue'\r\n if (this.$refs.translationsGrid != undefined) {\r\n const translationsGrid = this.$refs.translationsGrid as vTable;\r\n translationsGrid.search();\r\n }\r\n }\r\n filterByCollection(collection: CollectionSelectObj) {\r\n this.externalFiltersForGrid.selectedCollection = collection;\r\n const translationsGrid = this.$refs.translationsGrid as vTable;\r\n translationsGrid.search();\r\n }\r\n filterByLanguage(language: LangSelectObj) {\r\n this.externalFiltersForGrid.selectedLanguage = language;\r\n const translationsGrid = this.$refs.translationsGrid as vTable;\r\n translationsGrid.search();\r\n }\r\n /**\r\n * Method that adds a new language globally in the whole application.\r\n */\r\n addNewLanguage() {\r\n // Validate fields before\r\n this.$validator.validateAll(\"addLanguage\").then((result) => {\r\n if (result) {\r\n LocalizationRepository.createLocalizationLanguage(this.newLanguage.id)\r\n .then((response) => {\r\n this.$snotify.success(\"New language added successfully.\");\r\n this.resetState();\r\n this.fetchLanguages();\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n return;\r\n }\r\n this.$snotify.error(this.translations.get(\"validation-error-message\"));\r\n });\r\n }\r\n /**\r\n * Method that fires when a user selects a category.\r\n */\r\n selectCategory(category: SelectObj) {\r\n this.addNewTranslationModal.category = category;\r\n this.addNewTranslationModal.collection = {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n };\r\n if (category.name === \"Add new category\") {\r\n // Show section when you choose correct option and reset collections\r\n this.hideAddCategorySection = false;\r\n this.collections = [{ id: -1, name: \"Add new collection\" }];\r\n } else if (!this.hideAddCategorySection) {\r\n // Else if the section is shown then hide it\r\n this.newCategoryName = \"\";\r\n this.hideAddCategorySection = true;\r\n this.fetchCollections(category.id);\r\n } else {\r\n // Else fetch collections for selected category\r\n this.fetchCollections(category.id);\r\n }\r\n // Clear validator because it will be triggered on collection reset\r\n this.errors.clear(\"addTransKey.collection\");\r\n this.$nextTick(() => {\r\n this.$validator.reset();\r\n });\r\n }\r\n selectCollection(collection: CollectionSelectObj) {\r\n this.addNewTranslationModal.collection = collection;\r\n if (collection.name === \"Add new collection\") {\r\n // Show section when you choose correct option\r\n this.hideAddCollectionSection = false;\r\n } else if (!this.hideAddCollectionSection) {\r\n // Else if the section is shown then hide it\r\n this.newCollectionName = \"\";\r\n this.hideAddCollectionSection = true;\r\n }\r\n }\r\n /**\r\n * Method that adds a new category.\r\n */\r\n addNewCategory() {\r\n // Validate fields before\r\n this.$validator.validateAll(\"addNewCategory\").then((result) => {\r\n if (result) {\r\n LocalizationRepository.createLocalizationCategory(this.newCategoryName)\r\n .then((response) => {\r\n if (response.data.result) {\r\n this.categories.push(response.data.result);\r\n this.closeAddCategorySection();\r\n this.$snotify.success(\"New category added successfully.\");\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n return;\r\n }\r\n this.$snotify.error(this.translations.get(\"validation-error-message\"));\r\n });\r\n }\r\n /**\r\n * Method that adds a new collection.\r\n */\r\n addNewCollection() {\r\n // User first needs to select category for the collection\r\n if (\r\n this.addNewTranslationModal.category.id === -1 ||\r\n this.addNewTranslationModal.category.id === undefined\r\n ) {\r\n this.$snotify.info(\r\n \"You need to select a category before adding the new collection.\"\r\n );\r\n return;\r\n }\r\n // Validate fields before\r\n this.$validator.validateAll(\"addNewCollection\").then((result) => {\r\n if (result) {\r\n const model = {\r\n Name: this.newCollectionName,\r\n LocalizationCategoryId: this.addNewTranslationModal.category.id,\r\n };\r\n LocalizationRepository.createLocalizationCollection(model)\r\n .then((response) => {\r\n if (response.data.result) {\r\n // Push the new collection to array\r\n this.collections.push(response.data.result);\r\n this.closeAddCollectionSection();\r\n this.$snotify.success(\"New collection added successfully.\");\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n return;\r\n }\r\n this.$snotify.error(this.translations.get(\"validation-error-message\"));\r\n });\r\n }\r\n closeAddCategorySection() {\r\n this.$set(this.addNewTranslationModal, \"category\", { id: null, name: \"\" });\r\n this.$nextTick(() => {\r\n this.errors.clear(\"addNewCategory\");\r\n this.$nextTick(() => {\r\n this.$validator.reset();\r\n });\r\n });\r\n this.selectCategory(this.addNewTranslationModal.category);\r\n }\r\n closeAddCollectionSection() {\r\n this.$set(this.addNewTranslationModal, \"collection\", {\r\n id: null,\r\n name: \"\",\r\n });\r\n this.$nextTick(() => {\r\n this.errors.clear(\"addNewCollection\");\r\n this.$nextTick(() => {\r\n this.$validator.reset();\r\n });\r\n });\r\n this.selectCollection(this.addNewTranslationModal.collection);\r\n }\r\n /**\r\n * Method that adds a new translation key and value globally in the whole application.\r\n */\r\n addNewTranslationKey() {\r\n // Validate fields before\r\n this.$validator.validateAll(\"addTransKey\").then((result) => {\r\n if (result) {\r\n var keyLanguageValues: any = [];\r\n if (this.externalFiltersForGrid.languageOptions) {\r\n keyLanguageValues = this.externalFiltersForGrid.languageOptions.map(\r\n (language) => {\r\n return {\r\n LanguageId: language.id,\r\n Translation: language.translation ? language.translation : \"\",\r\n };\r\n }\r\n );\r\n }\r\n const model = {\r\n KeyLanguageValues: keyLanguageValues,\r\n CategoryId: this.addNewTranslationModal.category.id,\r\n CollectionId: this.addNewTranslationModal.collection.id,\r\n Key: this.addNewTranslationModal.translationKey,\r\n };\r\n LocalizationRepository.createTranslation(model)\r\n .then((response) => {\r\n if (response.data.result) {\r\n this.$snotify.success(\"New translation key added successfully.\");\r\n this.resetState();\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: this.translationsGridState.page,\r\n pageSize: 25,\r\n filters: this.filters,\r\n orders: [this.ordering],\r\n })\r\n );\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n return;\r\n }\r\n this.$snotify.error(this.translations.get(\"validation-error-message\"));\r\n });\r\n }\r\n\r\n /**\r\n * Method for editing selected translation in the grid\r\n */\r\n editTranslationValue() {\r\n // @ts-ignore\r\n this.$snotify.async(\r\n this.translations.get(\"sysconfig_toastr_updating\"),\r\n () =>\r\n new Promise((resolve, reject) => {\r\n const model = {\r\n KeyId: this.editTranslationValueProps.translationId,\r\n LanguageId: this.editTranslationValueProps.languageId,\r\n Value: this.editTranslationValueProps.newTranslationValue,\r\n };\r\n LocalizationRepository.updateTranslation(model)\r\n .then((response: any) => {\r\n resolve({\r\n body: this.translations.get(\"sysconfig_toastr_updated\"),\r\n });\r\n this.showEditTranslationValueModal = false;\r\n this.editTranslationValueProps = {\r\n newTranslationValue: \"\",\r\n translationId: null,\r\n languageId: null,\r\n editModalTitle: \"\",\r\n };\r\n\r\n if (\r\n this.externalFiltersForGrid.selectedCategory != null &&\r\n this.externalFiltersForGrid.selectedCategory.id != undefined\r\n ) {\r\n this.filters.push({\r\n name: \"CategoryId\",\r\n value:\r\n this.externalFiltersForGrid.selectedCategory.id.toString(),\r\n });\r\n }\r\n\r\n if (\r\n this.externalFiltersForGrid.selectedCollection != null &&\r\n this.externalFiltersForGrid.selectedCollection.id != undefined\r\n ) {\r\n this.filters.push({\r\n name: \"CollectionId\",\r\n value:\r\n this.externalFiltersForGrid.selectedCollection.id.toString(),\r\n });\r\n }\r\n\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: this.translationsGridState.page,\r\n pageSize: 25,\r\n filters: this.filters,\r\n orders: [this.ordering],\r\n })\r\n );\r\n })\r\n .catch((error: any) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message =\r\n error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.resetState();\r\n reject({ body: message });\r\n });\r\n }),\r\n {\r\n timeout: 3000,\r\n closeOnClick: true,\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * Method for deleting selected translation in the grid\r\n */\r\n confirmDelete() {\r\n // @ts-ignore\r\n this.$snotify.async(\r\n this.translations.get(\r\n \"sysconfig_toastr_deleting\",\r\n this.removeList.length\r\n ),\r\n () =>\r\n new Promise((resolve, reject) => {\r\n LocalizationRepository.deleteLocalizationKeys(this.removeList)\r\n .then((response: any) => {\r\n resolve({\r\n body: this.translations.get(\r\n \"sysconfig_toastr_deleted\",\r\n this.removeList.length\r\n ),\r\n });\r\n this.resetState();\r\n this.resetExternalFilters();\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: this.translationsGridState.page,\r\n pageSize: 25,\r\n filters: this.filters,\r\n orders: [this.ordering],\r\n })\r\n );\r\n this.removeList = [];\r\n })\r\n .catch((error: any) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message =\r\n error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.resetState();\r\n reject({ body: message });\r\n });\r\n }),\r\n {\r\n timeout: 3000,\r\n closeOnClick: true,\r\n }\r\n );\r\n }\r\n /**\r\n * Method that resets the values of the external filters.\r\n */\r\n resetExternalFilters() {\r\n this.externalFiltersForGrid.selectedLanguage = {\r\n id: undefined,\r\n name: \"\",\r\n value: \"\",\r\n translation: \"\",\r\n };\r\n this.externalFiltersForGrid.selectedCategory = { id: undefined, name: \"\" };\r\n this.externalFiltersForGrid.selectedCollection = {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n };\r\n }\r\n\r\n /**\r\n * Method that resets most variables and closes all modals.\r\n */\r\n resetState() {\r\n // Reset add new language modal state\r\n if (this.showAddNewLanguageModal) {\r\n this.showAddNewLanguageModal = false;\r\n this.newLanguage = {\r\n id: \"\",\r\n name: \"\",\r\n };\r\n }\r\n if (this.showAddNewTransKeyModal) {\r\n this.showAddNewTransKeyModal = false;\r\n // Clear all previous modal entries\r\n this.addNewTranslationModal = {\r\n category: { id: 3, name: \"pages\" },\r\n collection: {\r\n id: undefined,\r\n name: \"\",\r\n localizationCategoryId: undefined,\r\n localizationCategory: \"\",\r\n },\r\n translationKey: \"\",\r\n };\r\n }\r\n // Reset delete translation modal\r\n if (this.showRemovePrompt) {\r\n this.showRemovePrompt = false;\r\n this.removePromptTitle = \"\";\r\n }\r\n\r\n // Reset edit translation value modal props\r\n if (this.showEditTranslationValueModal) {\r\n this.showEditTranslationValueModal = false;\r\n this.editTranslationValueProps = {\r\n newTranslationValue: \"\",\r\n translationId: null,\r\n languageId: null,\r\n editModalTitle: \"\",\r\n };\r\n }\r\n }\r\n /**\r\n * Method that populates the grid with all translations available.\r\n */\r\n fetchTranslations(listRequest: ListRequest) {\r\n this.translationsGridState.loading = true;\r\n LocalizationRepository.listTranslations(listRequest)\r\n .then((response) => {\r\n this.translationsGridState.count = response.data.count;\r\n this.translationsGridState.totalCount = response.data.totalCount;\r\n this.translationsGridState.translations = response.data.result;\r\n this.translationsGridState.loading = false;\r\n })\r\n .catch((error) => {\r\n if (error.response)\r\n this.$snotify.error(\r\n error.response.errorMessages[0].userVisibleMessage\r\n );\r\n else this.$snotify.error(this.translations.get(\"network-error\"));\r\n this.translationsGridState.loading = false;\r\n });\r\n }\r\n /**\r\n * Method that populates category filter options and modal for adding new translation key.\r\n */\r\n fetchCategories() {\r\n LocalizationRepository.getCategories()\r\n .then((response) => {\r\n // Populate collections in add new translation modal\r\n this.collections = [{ id: -1, name: \"Add new collection\" }];\r\n if (response.data.result && response.data.result.length) {\r\n this.categories = [\r\n { id: -1, name: \"Add new category\" },\r\n ...response.data.result,\r\n ];\r\n this.externalFiltersForGrid.categoryOptions = [\r\n { id: -1, name: \"Show all\" },\r\n ...response.data.result,\r\n ];\r\n } else {\r\n this.categories = [{ id: -1, name: \"Add new category\" }];\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n }\r\n /**\r\n * Method that populates collection filter options and modal for adding new translation key, after the user chooses a category.\r\n */\r\n fetchCollections(categoryId: number | undefined) {\r\n if (categoryId) {\r\n LocalizationRepository.getCollections(categoryId)\r\n .then((response) => {\r\n if (response.data.result && response.data.result.length) {\r\n this.collections = [\r\n { id: -1, name: \"Add new collection\" },\r\n ...response.data.result,\r\n ];\r\n } else {\r\n this.collections = [{ id: -1, name: \"Add new collection\" }];\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n }\r\n }\r\n fetchCollectionsForGrid(categoryId: number | undefined) {\r\n LocalizationRepository.getCollections(categoryId)\r\n .then((response) => {\r\n if (response.data.result && response.data.result.length) {\r\n this.externalFiltersForGrid.collectionOptions = [\r\n { id: -1, name: \"Show all\" },\r\n ...response.data.result,\r\n ];\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n }\r\n /**\r\n * Method that populates language filter options.\r\n */\r\n fetchLanguages() {\r\n LocalizationRepository.getLanguages()\r\n .then((response) => {\r\n if (response.data.result && response.data.result.length) {\r\n this.externalFiltersForGrid.languageOptions = response.data.result;\r\n // On initial load show english translations\r\n this.externalFiltersForGrid.selectedLanguage =\r\n this.externalFiltersForGrid.languageOptions.find(\r\n (element) => element.id === 1\r\n );\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n }\r\n\r\n /**\r\n * Method that populates language filter options.\r\n */\r\n fetchAllLanguagesForAddNewLanguage() {\r\n LocalizationRepository.getAvailableLanguagesForAdding()\r\n .then((response) => {\r\n if (response.data.result && response.data.result.length) {\r\n this.allLanguageOptions = response.data.result.map((x: any) => {\r\n return {\r\n id: x.name,\r\n name: x.value,\r\n };\r\n });\r\n }\r\n })\r\n .catch((error) => {\r\n let message = \"\";\r\n if (error.response) {\r\n message = error.response.data.errorMessages[0].userVisibleMessage;\r\n } else {\r\n message = this.translations.get(\"network_error\");\r\n }\r\n this.$snotify.error(message);\r\n });\r\n }\r\n\r\n mounted() {\r\n this.fetchCategories();\r\n this.fetchLanguages();\r\n // Filter grid by english language on first load\r\n this.filters.push({ name: \"LanguageId\", value: \"1\" });\r\n this.filters.push({ name: \"CategoryId\", value: \"3\" });\r\n this.fetchTranslations(\r\n new ListRequest({\r\n page: this.translationsGridState.page,\r\n pageSize: 25,\r\n filters: this.filters,\r\n orders: [this.ordering],\r\n })\r\n );\r\n }\r\n created() {\r\n if (this.accountState.userDetails.userType === UserTypes.SuperAdministrator)\r\n this.fetchNutrientSources(new ListRequest({ page: 1, pageSize: 5 }));\r\n\r\n this.$store.dispatch(TRANSLATIONS_FETCH, {\r\n category: \"pages\",\r\n collections: [\"sysconfig\", \"common\"],\r\n });\r\n this.filterGridByCategory({ id: 3, name: \"pages\" });\r\n document.title = \"System Configuration | MenuSano\";\r\n }\r\n\r\n get translations() {\r\n return this.localizationState.translations;\r\n }\r\n}\r\nexport default SystemConfiguration;\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SystemConfiguration.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SystemConfiguration.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SystemConfiguration.vue?vue&type=template&id=0ac40100&scoped=true\"\nimport script from \"./SystemConfiguration.vue?vue&type=script&lang=ts\"\nexport * from \"./SystemConfiguration.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SystemConfiguration.vue?vue&type=style&index=0&id=0ac40100&prod&scoped=true&lang=css\"\nimport style1 from \"./SystemConfiguration.vue?vue&type=style&index=1&id=0ac40100&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0ac40100\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SystemConfiguration.vue?vue&type=style&index=1&id=0ac40100&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"select-container\",class:{ noLabel: !_vm.label },staticStyle:{\"position\":\"relative\"}},[(_vm.label && !_vm.disabled)?_c('label',{staticClass:\"vs-label\"},[_vm._v(_vm._s(_vm.label))]):_vm._e(),(_vm.required)?_c('label',{staticClass:\"vs-required-indicator\"},[_vm._v(\"*\")]):_vm._e(),(_vm.multiple)?_c('v-select',{staticClass:\"select-multiple\",class:{ filled: _vm.hasValue, multiple: true },attrs:{\"clearable\":_vm.clearable,\"multiple\":\"\",\"reduce\":(obj) => obj.id,\"filterable\":_vm.filterable,\"label\":\"name\",\"placeholder\":_vm.placeholder,\"value\":_vm.values,\"options\":_vm.options,\"disabled\":_vm.disabled},on:{\"search:focus\":function($event){return _vm.$emit('focus')},\"input\":(vals) => _vm.$emit('input', vals),\"search\":(searchQuery) => _vm.$emit('search', searchQuery)}}):_c('v-select',{staticClass:\"select-single\",class:{ filled: _vm.hasValue, noLabel: !_vm.label },attrs:{\"clearable\":_vm.clearable,\"placeholder\":_vm.placeholder,\"reduce\":(obj) => obj.id,\"filterable\":_vm.filterable,\"label\":\"name\",\"value\":_vm.value,\"options\":_vm.options,\"searchable\":_vm.searchable,\"disabled\":_vm.disabled,\"noDrop\":_vm.noDrop},on:{\"search:focus\":[function($event){return _vm.$emit('focus')},function($event){return _vm.$emit('search:focus')}],\"input\":(val) => _vm.$emit('input', val),\"search\":(searchQuery) => _vm.$emit('search', searchQuery),\"search:blur\":function($event){return _vm.$emit('search:blur')}}}),(_vm.required && _vm.showError)?_c('label',{staticClass:\"error-text\"},[_vm._v(_vm._s(_vm.errorMessage))]):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./vSelect.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./vSelect.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./vSelect.vue?vue&type=template&id=3f664eb8\"\nimport script from \"./vSelect.vue?vue&type=script&lang=js\"\nexport * from \"./vSelect.vue?vue&type=script&lang=js\"\nimport style0 from \"./vSelect.vue?vue&type=style&index=0&id=3f664eb8&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./vSelect.vue?vue&type=style&index=0&id=3f664eb8&prod&lang=css\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SystemConfiguration.vue?vue&type=style&index=0&id=0ac40100&prod&scoped=true&lang=css\""],"sourceRoot":""}