{"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?a298","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","ref","on","_g","_b","staticClass","$event","go_to_settings","class","$style","card","buttonIsReadState","readed_all_notifs","model","value","callback","$$v","unreadFilterModel","expression","select","sections","filter_update","filters","$set","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","staticRenderFns","actions","notifications_store","state","mutations","NotificationsPage","disabledCount","cols_dialog","expanded","check_all_model","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","is_allowed","array_id_of_notifs_tobe_read","map","id","reading_notifs","new_value","forEach","UPD_FILTER_KEY","$router","push","path","Notifications","Pages","NOTIFICATIONS","SETTINGS","Mixins","GetRouteSlugMixin","Component","components","Select","PageTitle","TextField","Table","SuccessDialog","Pagination","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":"uHAIAA,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,GAAM,CAACH,IAAI,cAAcC,GAAG,WAAW,MAAO,CAACN,EAAG,YAAY,CAACE,MAAM,CAAC,OAAS,GAAG,MAAQ,mBAAmB,aAAa,KAAKC,YA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KuK,UAAUvK,KAAK6J,aAAa7J,KAAKsJ,gBAAiB,CACrD5J,WAAY,CAAC,CACXgD,KAAM,QACNjB,MAAO,CACL+I,KAAMxK,KAAKyK,YACXC,MAAO1K,KAAK2K,mBAIlB3K,KAAKE,eAAe,MAApB,gBACEc,YAAa,0BACVhB,KAAK4J,aAEV5J,KAAKE,eAAe,MAApB,gBACEc,YAAa,0BACVhB,KAAK4J,YACP,CAAC5J,KAAK4K,mBAGbA,YApCO,WAqCL,OAAO5K,KAAKE,eAAe2K,OAAgB,GAAI,EAC5B,IAAjB7K,KAAK0I,QACD,KACA1I,KAAK8K,OAAOC,UAAY/K,KAAKE,eAAe8K,OAAmB,CAC/DzC,MAAO,CACL0C,OAAyB,IAAjBjL,KAAK0I,SAAqC,KAAjB1I,KAAK0I,QACjC1I,KAAKiL,OAAS,UACfjL,KAAK0I,QACTwC,KAAM,GACNC,MAAO,EACPC,eAAe,QAKzBX,YApDO,WAqDDzK,KAAKmJ,UAAUnJ,KAAKqL,YAE1BV,aAvDO,WAwDA3K,KAAKmJ,UAAUnJ,KAAKqL,YAE3BC,UA1DO,SA0DIC,IAENA,EAAEC,UAAYC,OAASjB,MAAQxK,KAAKmJ,UACpCoC,EAAEC,UAAYC,OAASf,QAAU1K,KAAKmJ,WACvCnJ,KAAKqL","file":"js/home808.17a3232b.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},{key:\"title-outer\",fn:function(){return [_c('v-tooltip',{attrs:{\"bottom\":\"\",\"color\":\"primary darken-3\",\"open-delay\":300},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\",attrs:{\"icon\":\"\",\"color\":\"accent darken-4\"},on:{\"click\":function($event){return _vm.go_to_settings()}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\" mdi-bell-cog-outline \")])],1)]}}])},[_c('span',[_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\"}})],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)],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\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 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 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 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 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 filter_update(key: keyof NotificationsFilters, value: unknown) {\n mutations.UPD_FILTER_KEY({ key, value });\n await actions.get_notifs();\n }\n\n go_to_settings() {\n this.$router.push({ path: `/${Notifications.Pages.NOTIFICATIONS}/${Notifications.Pages.SETTINGS}` });\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=28fd70c7&\"\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":""}