{"version":3,"sources":["webpack:///./src/modules/repairs/components/FiltersRepairsList.vue?5079","webpack:///./src/modules/repairs/components/FiltersRepairsList.vue?106b","webpack:///../../../src/components/VSwitch/VSwitch.ts","webpack:///./src/modules/repairs/components/FiltersRepairsList.vue?d0c1","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/modules/repairs/components/FiltersRepairsList.vue?8c0c","webpack:///./src/modules/repairs/components/FiltersRepairsList.vue"],"names":["module","exports","Selectable","extend","name","directives","Touch","props","inset","Boolean","loading","type","String","default","flat","computed","classes","VInput","options","call","this","attrs","isActive","isDisabled","role","validationState","hasError","shouldValidate","hasSuccess","hasColor","computedColor","switchData","setTextColor","undefined","class","themeClasses","methods","genDefaultSlot","genSwitch","genLabel","attrs$","switchAttrs","title","$createElement","staticClass","genInput","genRipple","value","left","onSwipeLeft","right","onSwipeRight","genProgress","VFabTransition","$slots","progress","VProgressCircular","color","size","width","indeterminate","onChange","onKeydown","e","keyCode","keyCodes","render","_vm","_h","_c","_self","$style","searchForm","on","$event","filter_update","indexOf","_k","key","preventDefault","submit_search","apply","arguments","model","callback","$$v","search_text","expression","filters","select","client_id","clients","repair_type_id","repair_types","status","repair_statuses","repairsFilters","datepicker","date_created","handle_change_dates","date_ended","operation_type_id","operation_types","_t","repairsFiltersBottom","repairsFiltersBottomBottomLeft","scopedSlots","_u","fn","ref","_g","_b","buttonIsReadState","selected","length","read_entities_in_table","_v","$set","btnOuter","staticRenderFns","repairs_store","modules","repairs_info","state","mutations","FiltersComponent","UPD_FILTER_KEY","page","client_companies","date","end_date","trim","dates","dates_unformatted","dates_formatted","map","Date","date_type","dates_ordered","datepicker_change_dates","Vue","__decorate","Emit","Prop","Array","Component","components","Select","Search","DatepickerRange","injectStyles","context","locals","component","VBtn","VIcon","VSwitch","VTooltip"],"mappings":"0GACAA,EAAOC,QAAU,CAAC,gBAAgB,yCAAyC,UAAU,mCAAmC,UAAU,mCAAmC,QAAU,mCAAmC,WAAa,sCAAsC,KAAO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SAAUvD,KAAKkE,eAvDH,qCA6DnC,SAAwB8C,GACtB,IAAMC,EAAoB,eAAID,GACxBE,EAAkBD,EAAkBE,KAAI,SAACN,GAAD,OAAU,IAAIO,KAAKP,MAEjE,GAAIK,EAAgB,GAAKA,EAAgB,GAAI,OAGvC,CACFF,EAAM,GAAIA,EAAM,IAFhBC,EAAkB,GAFuB,KAEnBA,EAAkB,GAFC,KAQ7C,OAAOA,IAzE0B,iCA4EnC,SAAoBI,EAAgCL,GAClD,IAAMM,EAAgBtH,KAAKuH,wBAAwBP,GAEnDhH,KAAKuD,cAAc8D,EAAWC,OA/EG,GAASE,QAQ5CC,gBADCC,kBACD,kCAKAD,gBADCC,kBACD,2CAQAD,gBAJCE,eAAK,CACJpI,KAAMqI,MACNnI,QAAS,iBAAM,OAEjB,+BArBmBgH,EAAgB,gBAPpCoB,eAAU,CACTC,WAAY,CACVC,cACAC,cACAC,2BAGiBxB,WC1J4Z,I,6FCQjb,SAASyB,EAAcC,GAErBnI,KAAK,UAAa,aAAOoI,QAAU,aAMrC,IAAIC,EAAY,eACd,EACAvF,EACAqD,GACA,EACA+B,EACA,KACA,MAIa,aAAAG,EAAiB,QAQhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,UAAA,KAAQC,WAAA","file":"js/home1274.9249fc48.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"v-application\":\"FiltersRepairsList_v-application_3wLlx\",\"text-h1\":\"FiltersRepairsList_text-h1_3Htns\",\"text-h2\":\"FiltersRepairsList_text-h2_3e5ik\",\"filters\":\"FiltersRepairsList_filters_3w4-D\",\"searchForm\":\"FiltersRepairsList_searchForm_3x6A5\",\"city\":\"FiltersRepairsList_city_2dMgy\",\"organizations_types\":\"FiltersRepairsList_organizations_types_1Ubgd\",\"region\":\"FiltersRepairsList_region_3Pd7E\",\"organization\":\"FiltersRepairsList_organization_1sYc6\",\"select\":\"FiltersRepairsList_select_3_F7u\",\"datepicker\":\"FiltersRepairsList_datepicker_bb8iG\",\"filtersBlock\":\"FiltersRepairsList_filtersBlock_9tsum\",\"btnOuter\":\"FiltersRepairsList_btnOuter_1Pjz6\",\"repairsFiltersTop\":\"FiltersRepairsList_repairsFiltersTop_2hkUl\",\"repairsFilters\":\"FiltersRepairsList_repairsFilters_mC51H\",\"repairsFiltersBottom\":\"FiltersRepairsList_repairsFiltersBottom_2lHzX\",\"repairsFiltersBottomBottomLeft\":\"FiltersRepairsList_repairsFiltersBottomBottomLeft_3wb_P\"};","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!./FiltersRepairsList.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!./FiltersRepairsList.vue?vue&type=style&index=0&module=true&lang=scss&\"","// 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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',[_c('Search',{class:_vm.$style.searchForm,attrs:{\"label\":\"Поиск по № заказ-наряда, клиенту, номенклатуре, серийному номеру\",\"dense\":\"\"},on:{\"clear\":function($event){return _vm.filter_update('search', '')},\"submit\":function($event){return _vm.filter_update('search', $event)},\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.submit_search.apply(null, arguments)}},model:{value:(_vm.search_text),callback:function ($$v) {_vm.search_text=$$v},expression:\"search_text\"}}),_c('div',{class:[_vm.$style.filters]},[_c('Select',{class:[_vm.$style.select],attrs:{\"value\":_vm.filters.client_id,\"items\":_vm.clients,\"item_value\":\"id\",\"item-text\":\"name\",\"label\":\"Наименование клиента\",\"dense\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"blue_icon\":\"\",\"background-color\":\"#fff\"},on:{\"input\":function($event){return _vm.filter_update('client_id', $event)}}}),_c('Select',{class:[_vm.$style.select],attrs:{\"value\":_vm.filters.repair_type_id,\"items\":_vm.repair_types,\"item_value\":\"id\",\"item-text\":\"name\",\"label\":\"Тип ремонта\",\"dense\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"blue_icon\":\"\",\"background-color\":\"#fff\"},on:{\"input\":function($event){return _vm.filter_update('repair_type_id', $event)}}}),_c('Select',{class:[_vm.$style.select],attrs:{\"value\":_vm.filters.status,\"items\":_vm.repair_statuses,\"item_value\":\"slug\",\"item-text\":\"name\",\"label\":\"Этап работ\",\"dense\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"blue_icon\":\"\",\"background-color\":\"#fff\"},on:{\"input\":function($event){return _vm.filter_update('status', $event)}}})],1),_c('div',{class:_vm.$style.repairsFilters},[_c('div',{class:[_vm.$style.filters, 'mb-0']},[_c('DatepickerRange',{class:[_vm.$style.datepicker],attrs:{\"date_prop\":_vm.date_created,\"label\":\"Период создания заказа\",\"type_date\":\"period\",\"dense\":\"\",\"clearable\":\"\",\"range\":\"\",\"small_info\":\"\"},on:{\"date_changed\":function($event){return _vm.handle_change_dates('date', $event)}}}),_c('DatepickerRange',{class:[_vm.$style.datepicker],attrs:{\"date_prop\":_vm.date_ended,\"label\":\"Период завершения работ\",\"type_date\":\"period\",\"dense\":\"\",\"clearable\":\"\",\"range\":\"\",\"small_info\":\"\"},on:{\"date_changed\":function($event){return _vm.handle_change_dates('end_date', $event)}}}),_c('Select',{class:[_vm.$style.select],attrs:{\"value\":_vm.filters.operation_type_id,\"items\":_vm.operation_types,\"item_value\":\"id\",\"item-text\":\"name\",\"label\":\"Вид операции\",\"dense\":\"\",\"hide-details\":\"\",\"clearable\":\"\",\"blue_icon\":\"\",\"background-color\":\"#fff\"},on:{\"input\":function($event){return _vm.filter_update('operation_type_id', $event)}}}),_vm._t(\"additional-filters\")],2)])],1),_c('div',{class:[_vm.$style.repairsFiltersBottom]},[_c('div',{class:_vm.$style.repairsFiltersBottomBottomLeft},[_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\":\"\",\"disabled\":_vm.selected.length === 0},on:{\"click\":function($event){return _vm.read_entities_in_table('order_sides')}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\" mdi-email-open-outline \")])],1)]}}])},[_c('span',[_vm._v(\"Отметить прочитанным\")])]),_c('v-switch',{staticClass:\"ml-5\",attrs:{\"color\":\"accent darken-4\",\"label\":\"Показать только непросмотренные\"},on:{\"change\":function($event){return _vm.filter_update('only_has_unread_changes', $event)}},model:{value:(_vm.filters.only_has_unread_changes),callback:function ($$v) {_vm.$set(_vm.filters, \"only_has_unread_changes\", $$v)},expression:\"filters.only_has_unread_changes\"}})],1),_c('div',{class:_vm.$style.btnOuter},[_vm._t(\"btn-outer\")],2)])])}\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\nimport {\n Component, Emit, Vue, Prop,\n} from 'vue-property-decorator';\nimport { repairs_store } from '@/store';\nimport { Select, Search, DatepickerRange } from '@/components';\nimport { Repairs } from '../types';\n\nconst { state, mutations } = repairs_store.modules.repairs_info;\n\n@Component({\n components: {\n Select,\n Search,\n DatepickerRange,\n },\n})\nexport default class FiltersComponent extends Vue {\n search_text = '';\n\n destroyed() {\n this.filter_update('search', '');\n }\n\n @Emit()\n filter_update(key: keyof Repairs.RepairsInfoFilters, value: unknown) {\n mutations.UPD_FILTER_KEY({ key, value });\n }\n\n @Emit()\n read_entities_in_table(page: string) {\n return page;\n }\n\n @Prop({\n type: Array,\n default: () => [],\n })\n selected!: Array;\n\n get clients() {\n return state.client_companies;\n }\n\n get operation_types() {\n return state.operation_types;\n }\n\n get repair_types() {\n return state.repair_types;\n }\n\n get repair_statuses() {\n return state.repair_statuses;\n }\n\n get filters() {\n return state.filters;\n }\n\n get date_created() {\n return this.filters.date;\n }\n\n get date_ended() {\n return this.filters.end_date;\n }\n\n submit_search() {\n if (this.search_text.trim() === '') {\n this.filter_update('search', '');\n } else {\n this.filter_update('search', this.search_text);\n }\n }\n\n // general\n\n datepicker_change_dates(dates: string[]) {\n const dates_unformatted = [...dates];\n const dates_formatted = dates_unformatted.map((date) => new Date(date));\n\n if (dates_formatted[1] < dates_formatted[0]) {\n [\n dates_unformatted[0], dates_unformatted[1],\n ] = [\n dates[1], dates[0],\n ];\n }\n\n return dates_unformatted;\n }\n\n handle_change_dates(date_type: 'date' | 'end_date', dates: string[]) {\n const dates_ordered = this.datepicker_change_dates(dates);\n\n this.filter_update(date_type, dates_ordered);\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!./FiltersRepairsList.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!./FiltersRepairsList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FiltersRepairsList.vue?vue&type=template&id=5af2c3a9&\"\nimport script from \"./FiltersRepairsList.vue?vue&type=script&lang=ts&\"\nexport * from \"./FiltersRepairsList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FiltersRepairsList.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 { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VIcon,VSwitch,VTooltip})\n"],"sourceRoot":""}