{"version":3,"sources":["webpack:///./node_modules/vuetify-loader/lib/runtime/installDirectives.js","webpack:///./src/modules/notifications/views/Notifications.vue?9597","webpack:///./src/modules/notifications/views/Notifications.vue?fe28","webpack:///./src/modules/notifications/views/Notifications.vue?7211","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/notifications/views/Notifications.vue?a135","webpack:///./src/modules/notifications/views/Notifications.vue","webpack:///../../../src/components/VSwitch/VSwitch.ts"],"names":["module","exports","component","directives","options","extendOptions","i","render","_vm","this","_h","$createElement","_c","_self","attrs","scopedSlots","_u","key","fn","_v","proxy","class","$style","card","staticClass","ref","on","_g","_b","buttonIsReadState","$event","readed_all_notifs","model","value","callback","$$v","unreadFilterModel","expression","select","sections","filter_update","filters","$set","btnOuter","show_setting_notifs_modal","cols","notifs","table_options","prevent_sort","notifs_loading","item","isSelected","name","rawName","is_read","_s","section","text","class2","text_not_read","go_to_notification_detail","title","table_text","_f","date","time","pagination_props","upd_pagination","selected","setting_notifs_model","check_all_model","is_indeterminate","select_all","_l","idx","checkbox","is_allowed","upd_checkbox_value","save_settings","staticRenderFns","actions","notifications_store","state","mutations","NotificationsPage","disabledCount","cols_dialog","expanded","user_notifs_data","align","sortable","upd_pagination_debounced","debounce","get_notifs","window","onpopstate","page_for_return","UPD_PAGINATION_FIELD","to","from","next","current_page","SET_CURRENT_PAGE_FOR_RETURN","user_notifs","total_items","length","page_size","limit","get_pages_count","opts","SET_TABLE_OPTIONS","not_read_only","TOGGLE_UNREAD_FILTER","selected_count","filter","array_id_of_notifs_tobe_read","map","id","reading_notifs","get_user_notifs","index","new_value","forEach","save_user_notifs","UPD_FILTER_KEY","Mixins","GetRouteSlugMixin","Component","components","Select","PageTitle","TextField","Table","SuccessDialog","Pagination","SimpleDialog","Checkbox","injectStyles","context","locals","VBtn","VCard","VIcon","VSimpleCheckbox","VSwitch","VTooltip","Ripple","Selectable","extend","Touch","props","inset","Boolean","loading","type","String","default","flat","computed","classes","VInput","call","isActive","isDisabled","role","validationState","hasError","shouldValidate","hasSuccess","hasColor","computedColor","switchData","setTextColor","undefined","themeClasses","methods","genDefaultSlot","genSwitch","genLabel","attrs$","switchAttrs","genInput","genRipple","left","onSwipeLeft","right","onSwipeRight","genProgress","VFabTransition","$slots","progress","VProgressCircular","color","size","width","indeterminate","onChange","onKeydown","e","keyCode","keyCodes"],"mappings":"uGAIAA,EAAOC,QAAU,SAA4BC,EAAWC,GACtD,IAAIC,EAAuC,oBAAtBF,EAAUD,QAC3BC,EAAUD,QAAQI,cAClBH,EAAUE,QAQd,IAAK,IAAIE,IANwB,oBAAtBJ,EAAUD,UACnBG,EAAQD,WAAaD,EAAUD,QAAQG,QAAQD,YAGjDC,EAAQD,WAAaC,EAAQD,YAAc,GAE7BA,EACZC,EAAQD,WAAWG,GAAKF,EAAQD,WAAWG,IAAMH,EAAWG,K,uBCfhEN,EAAOC,QAAU,CAAC,gBAAgB,oCAAoC,UAAU,8BAA8B,UAAU,8BAA8B,aAAe,mCAAmC,YAAc,kCAAkC,QAAU,8BAA8B,WAAa,iCAAiC,KAAO,2BAA2B,oBAAsB,0CAA0C,OAAS,6BAA6B,aAAe,mCAAmC,OAAS,6BAA6B,WAAa,iCAAiC,aAAe,mCAAmC,SAAW,+BAA+B,MAAQ,4BAA4B,KAAO,2BAA2B,cAAgB,oCAAoC,cAAgB,oCAAoC,KAAO,2BAA2B,SAAW,+BAA+B,MAAQ,8B,kCCD17B,oE,kECAA,IAAIM,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,UAAY,IAAIC,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,WAAW,MAAO,CAACV,EAAIW,GAAG,uBAAuBC,OAAM,OAAUR,EAAG,SAAS,CAACS,MAAMb,EAAIc,OAAOC,MAAM,CAACX,EAA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B,CACrDlK,WAAY,CAAC,CACXiD,KAAM,QACNnB,MAAO,CACLsJ,KAAM9K,KAAK+K,YACXC,MAAOhL,KAAKiL,mBAIlBjL,KAAKE,eAAe,MAApB,gBACEa,YAAa,0BACVf,KAAKkK,aAEVlK,KAAKE,eAAe,MAApB,gBACEa,YAAa,0BACVf,KAAKkK,YACP,CAAClK,KAAKkL,mBAGbA,YApCO,WAqCL,OAAOlL,KAAKE,eAAeiL,OAAgB,GAAI,EAC5B,IAAjBnL,KAAKgJ,QACD,KACAhJ,KAAKoL,OAAOC,UAAYrL,KAAKE,eAAeoL,OAAmB,CAC/DzC,MAAO,CACL0C,OAAyB,IAAjBvL,KAAKgJ,SAAqC,KAAjBhJ,KAAKgJ,QACjChJ,KAAKuL,OAAS,UACfvL,KAAKgJ,QACTwC,KAAM,GACNC,MAAO,EACPC,eAAe,QAKzBX,YApDO,WAqDD/K,KAAKyJ,UAAUzJ,KAAK2L,YAE1BV,aAvDO,WAwDAjL,KAAKyJ,UAAUzJ,KAAK2L,YAE3BC,UA1DO,SA0DIC,IAENA,EAAEC,UAAYC,OAASjB,MAAQ9K,KAAKyJ,UACpCoC,EAAEC,UAAYC,OAASf,QAAUhL,KAAKyJ,WACvCzJ,KAAK2L","file":"js/home788.d5048efd.js","sourcesContent":["// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nmodule.exports = function installDirectives (component, directives) {\n var options = typeof component.exports === 'function'\n ? component.exports.extendOptions\n : component.options\n\n if (typeof component.exports === 'function') {\n options.directives = component.exports.options.directives\n }\n\n options.directives = options.directives || {}\n\n for (var i in directives) {\n options.directives[i] = options.directives[i] || directives[i]\n }\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"Notifications_v-application_voCWs\",\"text-h1\":\"Notifications_text-h1_1Iuwj\",\"text-h2\":\"Notifications_text-h2_3afqL\",\"expandedText\":\"Notifications_expandedText_1Fj5W\",\"expandedVal\":\"Notifications_expandedVal_1ODCv\",\"filters\":\"Notifications_filters_2KhRe\",\"searchForm\":\"Notifications_searchForm_FR1I5\",\"city\":\"Notifications_city_mUsFp\",\"organizations_types\":\"Notifications_organizations_types_2wlsG\",\"region\":\"Notifications_region_oft2Q\",\"organization\":\"Notifications_organization_16KCi\",\"select\":\"Notifications_select_2yaF3\",\"datepicker\":\"Notifications_datepicker_3s9qD\",\"filtersBlock\":\"Notifications_filtersBlock_3nNZy\",\"btnOuter\":\"Notifications_btnOuter_XbF_o\",\"title\":\"Notifications_title_31t2_\",\"card\":\"Notifications_card_gcrU_\",\"icon_sectrion\":\"Notifications_icon_sectrion_1jST6\",\"text_not_read\":\"Notifications_text_not_read_1Go9i\",\"text\":\"Notifications_text_1QFWN\",\"checkbox\":\"Notifications_checkbox_2lGt3\",\"ghost\":\"Notifications_ghost_1dEOO\"};","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!./Notifications.vue?vue&type=style&index=0&module=true&lang=scss&\"; 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!./Notifications.vue?vue&type=style&index=0&module=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('PageTitle',{attrs:{\"hide_btns\":\"\"},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_vm._v(\" Все уведомления \")]},proxy:true}])}),_c('v-card',{class:_vm.$style.card},[_c('div',{staticClass:\"d-flex align-center\"},[_c('v-tooltip',{attrs:{\"bottom\":\"\",\"color\":\"primary darken-3\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({staticClass:\"ml-2\",class:_vm.$style.buttonIsReadState,attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.readed_all_notifs()}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\" mdi-email-open-outline \")])],1)]}}])},[_c('span',[_vm._v(\"Отметить как прочитанное\")])]),_c('v-switch',{staticClass:\"ml-7\",attrs:{\"color\":\"accent darken-3\",\"label\":\"показать только непрочитанные\"},model:{value:(_vm.unreadFilterModel),callback:function ($$v) {_vm.unreadFilterModel=$$v},expression:\"unreadFilterModel\"}}),_c('Select',{staticClass:\"ml-5\",class:[_vm.$style.select],attrs:{\"items\":_vm.sections,\"item_value\":\"slug\",\"item-text\":\"name\",\"label\":\"Раздел\",\"multiple\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"blue_icon\":\"\",\"background-color\":\"#fff\"},on:{\"input\":function($event){return _vm.filter_update('sections', $event)}},model:{value:(_vm.filters.sections),callback:function ($$v) {_vm.$set(_vm.filters, \"sections\", $$v)},expression:\"filters.sections\"}}),_c('v-btn',{class:[_vm.$style.btnOuter , 'mb-0 ml-auto'],attrs:{\"text\":\"\"},on:{\"click\":_vm.show_setting_notifs_modal}},[_c('v-icon',{staticClass:\"mr-2\"},[_vm._v(\"mdi-tune\")]),_c('span',[_vm._v(\"Настройка получения уведомлений\")])],1)],1),_c('Table',{attrs:{\"headers\":_vm.cols,\"items\":_vm.notifs,\"options\":_vm.table_options,\"custom-sort\":_vm.prevent_sort,\"loading\":_vm.notifs_loading,\"single-select\":false,\"show-select\":\"\",\"hide-default-footer\":\"\",\"no-data-text\":\"Уведомления отсутствуют\",\"not_resizeble\":true},on:{\"update:options\":function($event){_vm.table_options=$event}},scopedSlots:_vm._u([{key:\"item.data-table-select\",fn:function(ref){\nvar item = ref.item;\nvar isSelected = ref.isSelected;\nvar select = ref.select;\nreturn [_c('v-simple-checkbox',{directives:[{name:\"ripple\",rawName:\"v-ripple\"}],attrs:{\"value\":isSelected,\"readonly\":item.is_read,\"disabled\":item.is_read},on:{\"input\":function($event){return select($event)}}})]}},{key:\"item.section\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2 headline font-weight-regular\"},[_vm._v(\" \"+_vm._s(item.section.name)+\" \")])]}},{key:\"item.title\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2 headline font-weight-regular\"},[_c('div',{class:[_vm.$style.text, _vm.$style.class2, !item.is_read ? _vm.$style.text_not_read : ''],on:{\"click\":function($event){return _vm.go_to_notification_detail(item)}}},[_vm._v(_vm._s(item.title))])])]}},{key:\"item.date\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2 headline font-weight-regular\",class:_vm.$style.table_text},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(item.date))+\" \")])]}},{key:\"item.time\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"py-2 headline font-weight-regular\"},[_vm._v(\" \"+_vm._s(item.time)+\" \")])]}},{key:\"footer\",fn:function(){return [_c('Pagination',{attrs:{\"pagination_props\":_vm.pagination_props},on:{\"change_page\":function($event){return _vm.upd_pagination('current_page', $event)},\"page_size_changed\":function($event){return _vm.upd_pagination('limit', $event)}}})]},proxy:true}],null,true),model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1),_c('SimpleDialog',{attrs:{\"center_title\":\"\",\"center_text\":\"\",\"max-width\":\"528\",\"bts_align\":\"center\"},on:{\"close\":function($event){_vm.setting_notifs_model = false}},scopedSlots:_vm._u([{key:\"title\",fn:function(){return [_c('span',{class:_vm.$style.title},[_vm._v(\"Настройка получения уведомлений по разделам ЛКП\")])]},proxy:true},{key:\"text\",fn:function(){return [_c('div',{staticClass:\"pb-4\"},[_c('Checkbox',{attrs:{\"input-value\":_vm.check_all_model,\"indeterminate\":_vm.is_indeterminate,\"label\":\"Выбрать все\",\"hide-details\":\"\"},on:{\"change\":_vm.select_all}}),_vm._l((_vm.user_notifs),function(item,idx){return _c('div',{key:idx},[_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(idx)}}})],1)})],2)]},proxy:true},{key:\"actions\",fn:function(){return [_c('v-btn',{attrs:{\"depressed\":\"\",\"color\":\"accent darken-4\"},on:{\"click\":_vm.save_settings}},[_vm._v(\" Сохранить \")]),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.setting_notifs_model = false}}},[_vm._v(\" Отменить \")])]},proxy:true}]),model:{value:(_vm.setting_notifs_model),callback:function ($$v) {_vm.setting_notifs_model=$$v},expression:\"setting_notifs_model\"}})],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\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\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\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\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\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\n\n\n\n\n\n\nimport { Component, Mixins } from 'vue-property-decorator';\nimport { notifications_store } from '@/store';\nimport { debounce, prevent_sort, get_pages_count } from '@/utils';\nimport {\n PageTitle,\n TextField,\n Table,\n SuccessDialog,\n Pagination,\n SimpleDialog,\n Checkbox, Select,\n} from '@/components';\nimport {\n PaginationProps, TableOptions, TableCol,\n} from '@/types';\nimport { Notifications, NotificationsFilters } from '@/modules/notifications/types';\nimport { Route } from 'vue-router';\nimport GetRouteSlugMixin from '../mixins/get_route_slug';\n\nconst { actions, state, mutations } = notifications_store;\n\n@Component({\n components: {\n Select,\n PageTitle,\n TextField,\n Table,\n SuccessDialog,\n Pagination,\n SimpleDialog,\n Checkbox,\n },\n})\nexport default class NotificationsPage extends Mixins(GetRouteSlugMixin) {\n async mounted() {\n window.onpopstate = () => {\n const { page_for_return } = notifications_store.state;\n\n mutations.UPD_PAGINATION_FIELD({ key: 'current_page', value: page_for_return });\n };\n await actions.get_notifs();\n }\n\n beforeRouteLeave(to: Route, from: Route, next: () => void) {\n const { current_page } = notifications_store.state.pagination_props;\n\n notifications_store.mutations.SET_CURRENT_PAGE_FOR_RETURN(current_page);\n next();\n }\n\n async destroyed() {\n mutations.UPD_PAGINATION_FIELD({ key: 'current_page', value: 1 });\n }\n\n selected: Notifications.Notification[] = [];\n\n disabledCount = 0;\n\n prevent_sort = prevent_sort;\n\n cols_dialog = false\n\n expanded: TableCol[] = [];\n\n setting_notifs_model = false;\n\n check_all_model: null | boolean = false;\n\n user_notifs_data: Notifications.UserNotifications[] = [];\n\n cols: TableCol[] = [\n {\n text: 'Раздел',\n align: 'start',\n value: 'section',\n sortable: false,\n },\n {\n text: 'Уведомление',\n align: 'start',\n value: 'title',\n sortable: false,\n },\n {\n text: 'Дата',\n align: 'start',\n value: 'date',\n sortable: false,\n },\n {\n text: 'Время',\n align: 'start',\n value: 'time',\n sortable: false,\n },\n ];\n\n get notifs() {\n return state.notifs;\n }\n\n get user_notifs() {\n return state.user_notifs;\n }\n\n get pagination_props() {\n return state.pagination_props;\n }\n\n get notifs_loading() {\n return state.notifs_loading;\n }\n\n get pages_count() {\n const total_items = notifications_store.state.notifs.length;\n const page_size = this.pagination_props.limit;\n\n return get_pages_count(total_items, page_size);\n }\n\n set table_options(opts: TableOptions) {\n mutations.SET_TABLE_OPTIONS(opts);\n }\n\n get table_options() {\n return state.table_options;\n }\n\n get unreadFilterModel() {\n return state.filters.not_read_only;\n }\n\n set unreadFilterModel(value) {\n mutations.TOGGLE_UNREAD_FILTER(value);\n actions.get_notifs();\n }\n\n get is_indeterminate() {\n const selected_count = this.user_notifs.filter((item) => item.is_allowed).length;\n\n return selected_count > 0 && selected_count < this.user_notifs.length;\n }\n\n get filters() {\n return state.filters;\n }\n\n get sections() {\n return state.sections;\n }\n\n upd_pagination_debounced = debounce(() => {\n actions.get_notifs();\n }, 1000);\n\n upd_pagination(key: keyof PaginationProps, value: number) {\n mutations.UPD_PAGINATION_FIELD({ key, value });\n\n if (key === 'limit') {\n mutations.UPD_PAGINATION_FIELD({ key: 'current_page', value: 1 });\n }\n this.upd_pagination_debounced();\n }\n\n async readed_all_notifs() {\n const array_id_of_notifs_tobe_read: Array = this.selected\n .filter((item) => item.is_read === false)\n .map((item) => item.id);\n\n if (array_id_of_notifs_tobe_read.length > 0) {\n await actions.reading_notifs(array_id_of_notifs_tobe_read);\n this.selected = [];\n }\n }\n\n async show_setting_notifs_modal() {\n await actions.get_user_notifs();\n this.setting_notifs_model = true;\n }\n\n upd_checkbox_value(index: number) {\n this.user_notifs[index].is_allowed = !this.user_notifs[index].is_allowed;\n }\n\n select_all() {\n const new_value = !this.check_all_model;\n\n this.check_all_model = new_value;\n\n this.user_notifs.forEach((item) => {\n item.is_allowed = new_value;\n });\n }\n\n async save_settings() {\n await actions.save_user_notifs();\n this.setting_notifs_model = false;\n }\n\n async filter_update(key: keyof NotificationsFilters, value: unknown) {\n mutations.UPD_FILTER_KEY({ key, value });\n await actions.get_notifs();\n }\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!./Notifications.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!./Notifications.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Notifications.vue?vue&type=template&id=35643836&\"\nimport script from \"./Notifications.vue?vue&type=script&lang=ts&\"\nexport * from \"./Notifications.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Notifications.vue?vue&type=style&index=0&module=true&lang=scss&\"\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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSimpleCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VIcon,VSimpleCheckbox,VSwitch,VTooltip})\n\n\n/* vuetify-loader */\nimport installDirectives from \"!../../../../node_modules/vuetify-loader/lib/runtime/installDirectives.js\"\nimport Ripple from 'vuetify/lib/directives/ripple'\ninstallDirectives(component, {Ripple})\n","// Styles\nimport '../../styles/components/_selection-controls.sass'\nimport './VSwitch.sass'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\nimport VInput from '../VInput'\n\n// Directives\nimport Touch from '../../directives/touch'\n\n// Components\nimport { VFabTransition } from '../transitions'\nimport VProgressCircular from '../VProgressCircular/VProgressCircular'\n\n// Helpers\nimport { keyCodes } from '../../util/helpers'\n\n// Types\nimport { VNode, VNodeData } from 'vue'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-switch',\n\n directives: { Touch },\n\n props: {\n inset: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n flat: {\n type: Boolean,\n default: false,\n },\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls v-input--switch': true,\n 'v-input--switch--flat': this.flat,\n 'v-input--switch--inset': this.inset,\n }\n },\n attrs (): object {\n return {\n 'aria-checked': String(this.isActive),\n 'aria-disabled': String(this.isDisabled),\n role: 'switch',\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n switchData (): VNodeData {\n return this.setTextColor(this.loading ? undefined : this.validationState, {\n class: this.themeClasses,\n })\n },\n },\n\n methods: {\n genDefaultSlot (): (VNode | null)[] {\n return [\n this.genSwitch(),\n this.genLabel(),\n ]\n },\n genSwitch (): VNode {\n const { title, ...switchAttrs } = this.attrs$\n\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.genInput('checkbox', {\n ...this.attrs,\n ...switchAttrs,\n }),\n this.genRipple(this.setTextColor(this.validationState, {\n directives: [{\n name: 'touch',\n value: {\n left: this.onSwipeLeft,\n right: this.onSwipeRight,\n },\n }],\n })),\n this.$createElement('div', {\n staticClass: 'v-input--switch__track',\n ...this.switchData,\n }),\n this.$createElement('div', {\n staticClass: 'v-input--switch__thumb',\n ...this.switchData,\n }, [this.genProgress()]),\n ])\n },\n genProgress (): VNode {\n return this.$createElement(VFabTransition, {}, [\n this.loading === false\n ? null\n : this.$slots.progress || this.$createElement(VProgressCircular, {\n props: {\n color: (this.loading === true || this.loading === '')\n ? (this.color || 'primary')\n : this.loading,\n size: 16,\n width: 2,\n indeterminate: true,\n },\n }),\n ])\n },\n onSwipeLeft () {\n if (this.isActive) this.onChange()\n },\n onSwipeRight () {\n if (!this.isActive) this.onChange()\n },\n onKeydown (e: KeyboardEvent) {\n if (\n (e.keyCode === keyCodes.left && this.isActive) ||\n (e.keyCode === keyCodes.right && !this.isActive)\n ) this.onChange()\n },\n },\n})\n"],"sourceRoot":""}