{"version":3,"sources":["webpack:///./node_modules/eslint-loader/index.js","webpack:///./src/modules/notifications/components/NotificationPreferences.vue?4065","webpack:///./src/modules/notifications/components/NotificationPreferences.vue?f7e7","webpack:///./src/modules/notifications/components/NotificationPreferences.vue?f7cc","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/notifications/components/NotificationPreferences.vue?c127","webpack:///./src/modules/notifications/components/NotificationPreferences.vue"],"names":["notification_preferences_info_message","unread_notifications_info_message","module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","scopedSlots","_u","key","fn","_v","_s","proxy","class","$style","row","_l","item","idx","checkbox","is_allowed","name","on","$event","upd_checkbox_value","id","staticRenderFns","state","notifications_store","actions","mutations","NotificationPreferences","upd_checkbox_value_debounced","debounce","save_user_notifs","get_user_notifs","user_notifs","code","ResponseStatuses","Success","UPDATED","message","$emit","UPD_USER_SETTINGS_NOTIFICATIONS","Vue","Component","components","InfoAlert","Checkbox","injectStyles","context","locals","component","VCol","VRow"],"mappings":"qHAAA,+IAAO,IAAMA,EAAwC,+IAExCC,EAAoC,gM,qBCDjDC,EAAOC,QAAU,CAAC,gBAAgB,8CAA8C,UAAU,wCAAwC,UAAU,wCAAwC,IAAM,oCAAoC,SAAW,yCAAyC,MAAQ,wC,oCCD1R,oE,yCCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,YAAY,YAAYC,MAAM,CAAC,QAAU,IAAIC,YAAYR,EAAIS,GAAG,CAAC,CAACC,IAAI,aAAaC,GAAG,WAAW,MAAO,CAACX,EAAIY,GAAG,IAAIZ,EAAIa,GAAGb,EAAIL,uCAAuC,OAAOmB,OAAM,OAAUV,EAAG,QAAQ,CAACW,MAAMf,EAAIgB,OAAOC,KAAKjB,EAAIkB,GAAIlB,EAAe,aAAE,SAASmB,EAAKC,GAAK,OAAOhB,EAAG,QAAQ,CAACM,IAAIU,EAAIb,MAAM,CAAC,KAAO,MAAM,CAACH,EAAG,WAAW,CAACW,MAAMf,EAAIgB,OAAOK,SAASd,MAAM,CAAC,cAAcY,EAAKG,WAAW,MAAQH,EAAKG,WAAW,MAAQH,EAAKI,KAAK,eAAe,IAAIC,GAAG,CAAC,OAAS,SAASC,GAAQ,OAAOzB,EAAI0B,mBAAmBP,EAAKQ,SAAS,MAAK,IAAI,IAC/oBC,EAAkB,G,4JCqCdC,EAA8BC,OAA9BD,MAAOE,EAAuBD,OAAvBC,QAASC,EAAcF,OAAdE,UAQHC,EAAuB,wDAA5C,iD,0BAKE,EAAAtC,sCAAwCA,2CAgBxC,EAAAuC,6BAA+BC,eAAS,EAAKC,iBAAkB,KArBjE,EAA4C,uGAC1C,8GACQL,EAAQM,kBADhB,2CAD0C,gFAO1C,WACE,OAAOR,EAAMS,cAR2B,uFAW1C,sHACqBP,EAAQK,mBAD7B,OACQG,EADR,OAGMA,IAASC,QAAiBC,QAAQC,UAC9BC,EAAU,kCAEhB1C,KAAK2C,MAAM,mBAAoBD,IANnC,gDAX0C,yFAuB1C,SAAmBhB,GACjBK,EAAUa,gCAAgClB,GAC1C1B,KAAKiC,mCAzBmC,GAASY,QAAhCb,EAAuB,gBAN3Cc,eAAU,CACTC,WAAY,CACVC,iBACAC,oBAGiBjB,WC9Cia,I,qECQtb,SAASkB,EAAcC,GAErBnD,KAAK,UAAa,aAAOoD,QAAU,aAMrC,IAAIC,EAAY,eACd,EACAvD,EACA6B,GACA,EACAuB,EACA,KACA,MAIa,aAAAG,EAAiB,QAMhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,OAAA","file":"js/home776.ce111d79.js","sourcesContent":["export const notification_preferences_info_message = 'Вы можете настроить получение уведомлений по разделам ЛКП, установив чекбоксы рядом с событиями, по которым могут быть получены уведомления.';\n\nexport const unread_notifications_info_message = 'Вы можете настроить выделение строк жирным шрифтом в нужных разделах. Если отключить чекбокс с названием раздела, то при обновлении данных в этом разделе строки не будут выделяться жирным.';\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"NotificationPreferences_v-application_2Q5L1\",\"text-h1\":\"NotificationPreferences_text-h1_3HKZr\",\"text-h2\":\"NotificationPreferences_text-h2_1sUeY\",\"row\":\"NotificationPreferences_row_28xhi\",\"checkbox\":\"NotificationPreferences_checkbox_ufobA\",\"ghost\":\"NotificationPreferences_ghost_3sRC8\"};","export { default } from  \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPreferences.vue?vue&type=style&index=0&lang=scss&module=true&\"; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-0-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-0-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-0-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-0-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPreferences.vue?vue&type=style&index=0&lang=scss&module=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('InfoAlert',{staticClass:\"mb-5 mt-5\",attrs:{\"is_dark\":\"\"},scopedSlots:_vm._u([{key:\"alert_text\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.notification_preferences_info_message)+\" \")]},proxy:true}])}),_c('v-row',{class:_vm.$style.row},_vm._l((_vm.user_notifs),function(item,idx){return _c('v-col',{key:idx,attrs:{\"cols\":\"6\"}},[_c('Checkbox',{class:_vm.$style.checkbox,attrs:{\"input-value\":item.is_allowed,\"value\":item.is_allowed,\"label\":item.name,\"hide-details\":\"\"},on:{\"change\":function($event){return _vm.upd_checkbox_value(item.id)}}})],1)}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Vue, Component } from 'vue-property-decorator';\nimport { InfoAlert, Checkbox } from '@/components';\nimport { notifications_store } from '@/store';\nimport { debounce } from '@/utils';\nimport { ResponseStatuses } from '@/enums';\nimport { notification_preferences_info_message } from '../consts';\n\nconst { state, actions, mutations } = notifications_store;\n\n@Component({\n  components: {\n    InfoAlert,\n    Checkbox,\n  },\n})\nexport default class NotificationPreferences extends Vue {\n  async mounted() {\n    await actions.get_user_notifs();\n  }\n\n  notification_preferences_info_message = notification_preferences_info_message;\n\n  get user_notifs() {\n    return state.user_notifs;\n  }\n\n  async save_user_notifs() {\n    const code = await actions.save_user_notifs();\n\n    if (code === ResponseStatuses.Success.UPDATED) {\n      const message = 'Настройки уведомлений сохранены';\n\n      this.$emit('save_user_notifs', message);\n    }\n  }\n\n  upd_checkbox_value_debounced = debounce(this.save_user_notifs, 1000);\n\n  upd_checkbox_value(id: number) {\n    mutations.UPD_USER_SETTINGS_NOTIFICATIONS(id);\n    this.upd_checkbox_value_debounced();\n  }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPreferences.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationPreferences.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationPreferences.vue?vue&type=template&id=34521eea&\"\nimport script from \"./NotificationPreferences.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationPreferences.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NotificationPreferences.vue?vue&type=style&index=0&lang=scss&module=true&\"\n\n\n\n\nfunction injectStyles (context) {\n  \n  this[\"$style\"] = (style0.locals || style0)\n\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  injectStyles,\n  null,\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VRow})\n"],"sourceRoot":""}