{"version":3,"sources":["webpack:///./src/models/alarms/alarmCategories.ts","webpack:///./src/views/settings/profile/Profile.vue?8fdd","webpack:///./src/views/settings/profile/components/ProfileForm.vue?2b20","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/views/settings/profile/components/ProfileForm.vue?7d5c","webpack:///./src/views/settings/profile/components/ProfileForm.vue","webpack:///./src/views/settings/profile/Profile.vue?5461","webpack:///./src/views/settings/profile/Profile.vue","webpack:///./src/views/settings/profile/components/ProfileForm.vue?38d6"],"names":["AlarmCategories","render","_vm","this","_h","$createElement","_c","_self","attrs","slot","staticRenderFns","staticClass","on","$event","preventDefault","updateProfile","apply","arguments","model","value","callback","$$v","validForm","expression","requiredRules","setFormModified","name","surname","email","key","languageSelectKey","language","$auth","isAuthorized","roles","SuperAdmin","_e","enableNotifications","$tenant","isEnabled","TenantFeatures","ADVANCED_ALARMS","$t","alarmCategories","FAULT","setSwitchCategoryValue","setCategorySettings","_v","_s","JAM","USABILITY","MAINTENANCE","changePassword","modifiedForm","ProfileForm","User","$msal","initValidationRules","getUser","$toaster","removeToasters","$spinner","showSpinner","payload","$store","getters","UserGetters","$data","notificationsSettings","dispatch","UserActions","UpdateUserInfo","then","showSuccess","SetLanguage","reloadLanguages","catch","_","showError","finally","removeSpinner","JSON","stringify","initialConfiguration","GetUserInfo","user","toLowerCase","category","includes","index","indexOf","splice","push","modified","Vue","__decorate","Watch","Component","components","TextInput","Button","LanguageSelect","Toggle","data","component","Profile","CardContainer","Card"],"mappings":"kHAAO,IAAKA,EAAZ,2CAAYA,GACRA,mBACAA,eACAA,2BACAA,+BAJJ,CAAYA,MAAe,M,yCCA3B,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,mBAAmB,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,KAAO,OAAO,CAACF,EAAG,MAAM,CAACE,MAAM,CAAC,KAAO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O,GAC1B,GAAI,KAAKpB,MAAMC,sBAAsBoB,SAASD,GAAW,CACvD,IAAME,EAAQ,KAAKtB,MAAMC,sBAAsBsB,QAAQH,GACvD,KAAKpB,MAAMC,sBAAsBuB,OAAOF,EAAO,QAE/C,KAAKtB,MAAMC,sBAAsBwB,KAAKL,KA9FZ,oCAkGtB,SAAuBA,GAC7B,OAAO,KAAKpB,MAAMC,sBAAsBoB,SAASD,KAnGrB,6BAsGtB,WAAwC,IAAxBM,IAAwB,yDAC9C,KAAK1B,MAAMd,aAAewC,IAvGE,6BA8GtB,WACN,KAAK1B,MAAMrC,mBAAqB,MA/GJ,GAASgE,QAgDvCC,gBADCC,eAAM,gCACP,0CAhDmB1C,EAAW,gBApB/B2C,eAAU,CACTC,WAAY,CACV,eAAgBC,OAChB,WAAYC,OACZ,oBAAqBC,OACrB,WAAYC,QAEdC,KAPS,WAQP,MAAO,CACL7E,KAAM,GACNC,QAAS,GACTC,MAAO,GACPG,SAAU,GACVsB,cAAc,EACdvB,kBAAmB,EACnBO,qBAAqB,EACrB+B,sBAAuB,QAIRd,WCnIua,I,wBCQxbkD,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,gCFIMC,EAAO,qJAASX,QAAhBW,EAAO,gBAP3BR,eAAU,CACTC,WAAY,CACV,iBAAkB5C,EAClB,mBAAoBoD,OACpB,SAAUC,WAGOF,WGvBiZ,ICOla,EAAY,eACd,EACAxG,EACAS,GACA,EACA,KACA,WACA,MAIa,e,sEClBf","file":"js/chunk-e3baf6ca.946b9eb5.js","sourcesContent":["export enum AlarmCategories {\n FAULT = 'fault',\n JAM = 'jam',\n USABILITY = 'usability',\n MAINTENANCE = 'maintenance',\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('n-card-container',[_c('n-card',{attrs:{\"type\":\"xl\"}},[_c('div',{attrs:{\"slot\":\"\"},slot:\"default\"},[_c('n-profile-form')],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"profile-form\",attrs:{\"fluid\":\"\"}},[_c('v-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.updateProfile.apply(null, arguments)}},model:{value:(_vm.validForm),callback:function ($$v) {_vm.validForm=$$v},expression:\"validForm\"}},[_c('n-text-input',{attrs:{\"label\":\"first-name\",\"rules\":_vm.requiredRules},on:{\"change\":_vm.setFormModified},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}}),_c('n-text-input',{attrs:{\"label\":\"surname\",\"rules\":_vm.requiredRules},on:{\"change\":_vm.setFormModified},model:{value:(_vm.surname),callback:function ($$v) {_vm.surname=$$v},expression:\"surname\"}}),_c('n-text-input',{attrs:{\"label\":\"email\",\"disabled\":true},model:{value:(_vm.email),callback:function ($$v) {_vm.email=$$v},expression:\"email\"}}),_c('n-language-select',{key:_vm.languageSelectKey,attrs:{\"rules\":_vm.requiredRules},on:{\"change\":_vm.setFormModified},model:{value:(_vm.language),callback:function ($$v) {_vm.language=$$v},expression:\"language\"}}),(!_vm.$auth.isAuthorized([_vm.$auth.roles.SuperAdmin]))?_c('n-toggle',{attrs:{\"label\":\"receive-notifications\"},on:{\"change\":function($event){return _vm.setFormModified(true)}},model:{value:(_vm.enableNotifications),callback:function ($$v) {_vm.enableNotifications=$$v},expression:\"enableNotifications\"}}):_vm._e(),(\n !_vm.$auth.isAuthorized([_vm.$auth.roles.SuperAdmin]) &&\n _vm.$tenant.isEnabled(_vm.$tenant.TenantFeatures.ADVANCED_ALARMS)\n )?_c('div',{staticClass:\"profile-form__alarms mb-4\"},[_c('n-toggle',{attrs:{\"label\":_vm.$t('alarm.categories.fault'),\"v-model\":_vm.alarmCategories.FAULT,\"value\":_vm.setSwitchCategoryValue(_vm.alarmCategories.FAULT),\"disabled\":!_vm.enableNotifications},on:{\"change\":function($event){return _vm.setCategorySettings(_vm.alarmCategories.FAULT)}}}),_c('span',{staticClass:\"profile-form__text\"},[_vm._v(_vm._s(_vm.$t('alarm.settings-fault-description')))]),_c('n-toggle',{attrs:{\"label\":_vm.$t('alarm.categories.jam'),\"v-model\":_vm.alarmCategories.JAM,\"value\":_vm.setSwitchCategoryValue(_vm.alarmCategories.JAM),\"disabled\":!_vm.enableNotifications},on:{\"change\":function($event){return _vm.setCategorySettings(_vm.alarmCategories.JAM)}}}),_c('span',{staticClass:\"profile-form__text\"},[_vm._v(_vm._s(_vm.$t('alarm.settings-jam-description')))]),_c('n-toggle',{attrs:{\"label\":_vm.$t('alarm.categories.usability'),\"v-model\":_vm.alarmCategories.USABILITY,\"value\":_vm.setSwitchCategoryValue(_vm.alarmCategories.USABILITY),\"disabled\":!_vm.enableNotifications},on:{\"change\":function($event){return _vm.setCategorySettings(_vm.alarmCategories.USABILITY)}}}),_c('span',{staticClass:\"profile-form__text\"},[_vm._v(_vm._s(_vm.$t('alarm.settings-usability-description')))]),_c('n-toggle',{attrs:{\"label\":_vm.$t('alarm.categories.maintenance'),\"v-model\":_vm.alarmCategories.MAINTENANCE,\"value\":_vm.setSwitchCategoryValue(_vm.alarmCategories.MAINTENANCE),\"disabled\":!_vm.enableNotifications},on:{\"change\":function($event){return _vm.setCategorySettings(_vm.alarmCategories.MAINTENANCE)}}}),_c('span',{staticClass:\"profile-form__text\"},[_vm._v(_vm._s(_vm.$t('alarm.settings-maintenance-description')))])],1):_vm._e(),_c('div',{staticClass:\"profile-form__footer\"},[_c('n-button',{staticClass:\"ml-3\",attrs:{\"label\":\"pages.settings-password\"},on:{\"click\":_vm.changePassword}}),_c('n-button',{staticClass:\"ml-3\",attrs:{\"label\":\"save\",\"disabled\":!_vm.validForm || !_vm.modifiedForm}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport ProfileForm from '@/views/settings/profile/components/ProfileForm.vue';\nimport CardContainer from '@/components/CardContainer.vue';\nimport Card from '@/components/Card.vue';\n\n@Component({\n components: {\n 'n-profile-form': ProfileForm,\n 'n-card-container': CardContainer,\n 'n-card': Card,\n },\n})\nexport default class Profile extends Vue {\n}\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProfileForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProfileForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ProfileForm.vue?vue&type=template&id=06348395&scoped=true&\"\nimport script from \"./ProfileForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProfileForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ProfileForm.vue?vue&type=style&index=0&id=06348395&lang=scss&scoped=true&\"\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 \"06348395\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Profile.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Profile.vue?vue&type=template&id=0d58bb3e&scoped=true&\"\nimport script from \"./Profile.vue?vue&type=script&lang=ts&\"\nexport * from \"./Profile.vue?vue&type=script&lang=ts&\"\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 \"0d58bb3e\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProfileForm.vue?vue&type=style&index=0&id=06348395&lang=scss&scoped=true&\""],"sourceRoot":""}