{"version":3,"sources":["webpack:///./node_modules/vue-loader/lib/runtime/componentNormalizer.js","webpack:///./app/frontend/src/components/heat-list.vue?a13a","webpack:///./app/frontend/src/components/heat-list.vue?02b4","webpack:///./app/frontend/src/components/heat-list.vue?d326","webpack:///./app/frontend/src/components/heat-list.vue"],"names":["normalizeComponent","scriptExports","render","staticRenderFns","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","this","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","exports","name","props","model","type","String","default","href","required","races","Array","data","items","fields","sortBy","sortDesc","loading","totalRows","perPage","currentPage","filter","filterable","filterOn","computed","tableFields","field_options","sortable","unshift","key","label","title","map","field","Object","assign","selectableFields","filterMask","fmask","reduce","mask","elem","index","Math","pow","filtered","mounted","getItems","methods","filterFunction","row","filteredRow","values","res","rowValue","toString","toLowerCase","includes","_text","onFiltered","filteredItems","length","axios","get","API_ROOT","then","attributes","heats","form_fields","sort","a","b","sort_order","e","console","error","component","_vm","_c","_self","staticClass","attrs","value","callback","$$v","$set","expression","directives","rawName","modifiers","_e","_l","sel","scopedSlots","_u","fn","ariaDescribedby","tag","on","$event","_v","_s","item","_number"],"mappings":"0FAMe,SAASA,EACtBC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAGA,IAoBIC,EApBAC,EACuB,oBAAlBT,EAA+BA,EAAcS,QAAUT,EAuDhE,GApDIC,IACFQ,EAAQR,OAASA,EACjBQ,EAAQP,gBAAkBA,EAC1BO,EAAQC,WAAY,GAIlBP,IACFM,EAAQE,YAAa,GAInBN,IACFI,EAAQG,SAAW,UAAYP,GAI7BC,GAEFE,EAAO,SAAUK,IAEfA,EACEA,GACCC,KAAKC,QAAUD,KAAKC,OAAOC,YAC3BF,KAAKG,QAAUH,KAAKG,OAAOF,QAAUD,KAAKG,OAAOF,OAA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QtB,EAAI7D,SAASmF,CAAM,EAAE,mBAAmB,SAASA,GAAQtB,EAAI7D,SAASmF,CAAM,EAAE,cAAc,SAASA,GAAQtB,EAAI5D,QAAQkF,CAAM,GAAGN,YAAYhB,EAAIiB,GAAG,CAAC,CAACjE,IAAI,gBAAgBkE,GAAG,SAASnF,GAAM,MAAO,CAACkE,EAAG,QAAQ,CAACA,EAAG,UAAU,CAACG,MAAM,CAAC,QAAU,UAAU,KAAO,OAAO,CAACJ,EAAIuB,GAAGvB,EAAIwB,GAAGzF,EAAK0F,KAAKC,aAAa,GAAG,OAAQ1B,EAAI3D,UAAY2D,EAAI1D,QAAS2D,EAAG,eAAe,CAACE,YAAY,wBAAwBC,MAAM,CAAC,aAAaJ,EAAI3D,UAAU,WAAW2D,EAAI1D,QAAQ,MAAQ,QAAQ,KAAO,MAAMf,MAAM,CAAC8E,MAAOL,EAAe,YAAEM,SAAS,SAAUC,GAAMP,EAAIzD,YAAYgE,CAAG,EAAEE,WAAW,iBAAiBT,EAAIa,MAAM,IAAI,EAC93F,GACsB,IGSpB,EACA,KACA,WACA,MAIa,UAAAd,E","file":"js/49-98a88f4ebb6044a7e092.chunk.js","sourcesContent":["/* globals __VUE_SSR_CONTEXT__ */\n\n// 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\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"heat-list\"},[_c('b-overlay',{attrs:{\"show\":_vm.loading}},[_c('b-form-group',{staticClass:\"mb-3\",attrs:{\"label\":\"ПоиÑк\",\"label-for\":\"filter-input\",\"label-cols-sm\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\"}},[_c('b-input-group',{attrs:{\"size\":\"sm\"}},[_c('b-form-input',{attrs:{\"id\":\"filter-input\",\"type\":\"search\",\"placeholder\":\"найти по ФИО и вÑем другим текÑтовым полÑм\"},model:{value:(_vm.filterable._text),callback:function ($$v) {_vm.$set(_vm.filterable, \"_text\", $$v)},expression:\"filterable._text\"}}),(0 < _vm.selectableFields.length)?_c('b-input-group-append',[_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle.table-filters\",modifiers:{\"table-filters\":true}}]},[_c('i',{staticClass:\"fal fa-filter\"})])],1):_vm._e()],1)],1),(0 < _vm.selectableFields.length)?_c('b-collapse',{attrs:{\"id\":\"table-filters\"}},[_c('b-card',{staticClass:\"mb-5\"},[_vm._l((_vm.selectableFields),function(sel){return _c('b-form-group',{key:sel.key,attrs:{\"label\":sel.label,\"label-cols-sm\":\"3\",\"label-align-sm\":\"right\",\"label-size\":\"sm\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ ariaDescribedby }){return [_c(5 <= sel.options.length ? 'b-form-select' : 'b-form-radio-group',{tag:\"component\",attrs:{\"options\":sel.options,\"aria-describedby\":ariaDescribedby,\"buttons\":\"\",\"size\":\"sm\"},model:{value:(_vm.filterable[sel.key]),callback:function ($$v) {_vm.$set(_vm.filterable, sel.key, $$v)},expression:\"filterable[sel.key]\"}})]}}],null,true)})}),_c('b-button',{staticClass:\"card-link\",attrs:{\"disabled\":{} == _vm.filterable,\"variant\":\"outline-secondary\",\"size\":\"sm\"},on:{\"click\":function($event){_vm.filterable = {}}}},[_vm._v(\"ОчиÑтить фильтры\")])],2)],1):_vm._e(),_c('b-table',{staticClass:\"mt-3\",attrs:{\"small\":\"\",\"striped\":\"\",\"hover\":\"\",\"items\":_vm.items,\"fields\":_vm.tableFields,\"filter\":_vm.filtered,\"filter-function\":_vm.filterFunction,\"empty-filtered-text\":\"По данным критериÑм ничего не найдено\",\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"busy\":_vm.loading,\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"show-empty\":\"\",\"empty-text\":\"УчаÑтники не найдены\"},on:{\"filtered\":_vm.onFiltered,\"update:sortBy\":function($event){_vm.sortBy=$event},\"update:sort-by\":function($event){_vm.sortBy=$event},\"update:sortDesc\":function($event){_vm.sortDesc=$event},\"update:sort-desc\":function($event){_vm.sortDesc=$event},\"update:busy\":function($event){_vm.loading=$event}},scopedSlots:_vm._u([{key:\"cell(_number)\",fn:function(data){return [_c('small',[_c('b-badge',{attrs:{\"variant\":\"success\",\"size\":\"sm\"}},[_vm._v(_vm._s(data.item._number))])],1)]}}])}),(_vm.totalRows > _vm.perPage)?_c('b-pagination',{staticClass:\"customPagination my-0\",attrs:{\"total-rows\":_vm.totalRows,\"per-page\":_vm.perPage,\"align\":\"right\",\"size\":\"sm\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}}):_vm._e()],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/coffee-loader/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./heat-list.vue?vue&type=script&lang=coffee\"; export default mod; export * from \"-!../../../../node_modules/coffee-loader/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./heat-list.vue?vue&type=script&lang=coffee\"","\nexport default\n name: 'heat-list'\n props:\n model: {type: String, default: 'race'}\n href: {type: String, required: true}\n races: {type: Array}\n data: ->\n items: []\n fields: []\n sortBy: 'personal.name_last'\n sortDesc: false\n loading: true\n totalRows: null\n perPage: 300\n currentPage: 1\n filter: null\n filterable: {}\n filterOn: []\n computed:\n tableFields: ->\n field_options = {sortable: true}\n @fields.unshift({key: 'race_name', label: 'ДиÑциплина', type: 'select', options: @races}) if 'event' == @model\n @fields.unshift({key: '_number', label: '', title: 'Ðомер заÑвки', sortable: false})\n\n @fields.map (field) -> Object.assign({}, field, field_options)\n\n selectableFields: -> @fields.filter((field) -> 'select' == field.type)\n\n filterMask: ->\n fmask = 0b000\n fmask |= 0b001 if @filterable._text?\n @selectableFields.reduce(((mask, elem, index) =>\n mask |= Math.pow(2,index + 1) if @filterable[elem.key]?\n mask\n ), fmask)\n filtered: ->\n if 0 < @filterMask\n @filterable\n else\n null\n mounted: ->\n @getItems()\n methods:\n filterFunction: (row, filter) ->\n filteredRow = 0b000\n filteredRow |= 0b001 if filter._text? && Object.values(row).reduce(((res, rowValue) =>\n res || (rowValue? && rowValue.toString().toLowerCase().includes(filter._text.toString().toLowerCase()))\n ), false)\n filteredRow = @selectableFields.reduce(((mask, elem, index) =>\n mask |= Math.pow(2, index + 1) if @filterable[elem.key]? && row[elem.key] == @filterable[elem.key]\n mask\n ), filteredRow)\n\n (@filterMask & filteredRow) == @filterMask\n\n onFiltered: (filteredItems) ->\n @totalRows = filteredItems.length\n @currentPage = 1\n getItems: ->\n @axios.get(\"#{API_ROOT}#{@href}\")\n .then (res) =>\n @items = Object.assign([], res.data.data.attributes.heats)\n fields = Object.assign([], res.data.data.attributes.form_fields)\n # Sort the fields by sort_order\n fields.sort((a, b) -> a.sort_order - b.sort_order)\n @fields = fields\n @totalRows = @items.length\n .catch (e) => console.error(e)\n .then () => @loading = false\n\n","import { render, staticRenderFns } from \"./heat-list.vue?vue&type=template&id=39776812&scoped=true&lang=pug\"\nimport script from \"./heat-list.vue?vue&type=script&lang=coffee\"\nexport * from \"./heat-list.vue?vue&type=script&lang=coffee\"\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 \"39776812\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}