{"version":3,"sources":["webpack:///./app/javascript/components/clubs_finder.vue?beb6","webpack:///./app/javascript/components/clubs_finder.vue?ce7e","webpack:///app/javascript/components/clubs_finder.vue","webpack:///./app/javascript/components/clubs_finder.vue"],"names":["name","components","VueBootstrapTypeahead","data","query","variants","methods","hit","selected","document","location","href","slug","load","_this","$axios","get","params","then","response","error","console","watch","_","debounce","component","_vm","this","_c","_self","attrs","s","city","on","$event","scopedSlots","_u","key","fn","_v","_s","model","value","callback","$$v","expression"],"mappings":"iGAAA,I,kBCA2M,ECoB7L,CACdA,KAAA,eACAC,WAAA,CAAAC,2BACAC,KAAA,WACA,OACAC,MAAA,KACAC,SAAA,GAEA,EACAC,QAAA,CACAC,IAAA,SAAAC,GACAC,SAAAC,SAAAC,KAAA,UAAAH,EAAAI,IACA,EACAC,KAAA,SAAAT,GAAA,IAAAU,EAAA,KAEA,KAAAC,OACAC,IAAA,mBAAAC,OAAA,CAAAb,WACAc,MAAA,SAAAC,GACAL,EAAAT,SAAAc,EAAAhB,IACA,WACA,SAAAiB,GACAC,QAAAD,MAAA,wBAAAA,EACA,GACA,GAEAE,MAAA,CACAlB,MAAAmB,IAAAC,UAAA,SAAApB,GACA,KAAAS,KAAAT,EACA,U,SCzCIqB,EAAY,YACd,GHRW,WAAkB,IAAIC,EAAIC,KAAqB,OAAOC,EAApBF,EAAIG,MAAMD,IAAa,0BAA0B,CAACE,MAAM,CAAC,WAAa,GAAG,iBAAmB,EAAE,KAAOJ,EAAIrB,SAAS,WAAc0B,GAAMA,EAAE/B,KAAO,IAAM+B,EAAEC,KAAK,YAAc,qIAA4BC,GAAG,CAAC,IAAM,SAASC,GAAQ,OAAOR,EAAInB,IAAI2B,EAAO,GAAGC,YAAYT,EAAIU,GAAG,CAAC,CAACC,IAAI,aAAaC,GAAG,UAAS,KAAEnC,IAAQ,MAAO,CAACuB,EAAIa,GAAG,SAASb,EAAIc,GAAGrC,EAAKH,MAAM,MAAM0B,EAAIc,GAAGrC,EAAK6B,MAAM,QAAQ,KAAKS,MAAM,CAACC,MAAOhB,EAAS,MAAEiB,SAAS,SAAUC,GAAMlB,EAAItB,MAAMwC,CAAG,EAAEC,WAAW,UAChgB,GACsB,IGSpB,EACA,KACA,KACA,MAIa,UAAApB,E","file":"js/8-a36db2b0586182f09535.chunk.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vue-bootstrap-typeahead',{attrs:{\"maxMatches\":10,\"minMatchingChars\":3,\"data\":_vm.variants,\"serializer\":(s) => s.name + ' ' + s.city,\"placeholder\":\"название клуба или город\"},on:{\"hit\":function($event){return _vm.hit($event)}},scopedSlots:_vm._u([{key:\"suggestion\",fn:function({ data }){return [_vm._v(\"\\n \"+_vm._s(data.name)+\" / \"+_vm._s(data.city)+\"\\n \")]}}]),model:{value:(_vm.query),callback:function ($$v) {_vm.query=$$v},expression:\"query\"}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./clubs_finder.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/babel-loader/lib/index.js??ref--8-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./clubs_finder.vue?vue&type=script&lang=js\"","<template>\n <vue-bootstrap-typeahead\n v-model=\"query\"\n :maxMatches=\"10\"\n :minMatchingChars=\"3\"\n :data=\"variants\"\n :serializer=\"(s) => s.name + ' ' + s.city\"\n @hit=\"hit($event)\"\n placeholder=\"название клуба или город\"\n >\n <template #suggestion=\"{ data }\">\n {{ data.name }} / {{ data.city}}\n </template>\n </vue-bootstrap-typeahead>\n</template>\n\n<script>\nimport VueBootstrapTypeahead from \"vue-bootstrap-typeahead\";\nimport _ from 'underscore';\n\nexport default {\n name: 'clubs-finder',\n components: { VueBootstrapTypeahead },\n data: function () {\n return {\n query: null,\n variants: [],\n };\n },\n methods: {\n hit(selected) {\n document.location.href = '/clubs/' + selected.slug;\n },\n load(query) {\n // Use globally available this.$axios\n this.$axios\n .get('/api/clubs/find', { params: { query } }) // Simplified API request\n .then((response) => {\n this.variants = response.data;\n })\n .catch((error) => {\n console.error('Error fetching clubs:', error);\n });\n },\n },\n watch: {\n query: _.debounce(function (query) {\n this.load(query);\n }, 300),\n },\n};\n</script>\n","import { render, staticRenderFns } from \"./clubs_finder.vue?vue&type=template&id=0d6fd19f\"\nimport script from \"./clubs_finder.vue?vue&type=script&lang=js\"\nexport * from \"./clubs_finder.vue?vue&type=script&lang=js\"\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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}