{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/SearchInput.vue?6216","webpack:///./src/components/DealerSearch.vue?5aff","webpack:///./src/components/Map.vue?696a","webpack:///./src/components/SearchInput.vue?1877","webpack:///./src/components/DealerSearch.vue?b361","webpack:///./src/components/SearchInput.vue?9df8","webpack:///./src/components/Map.vue?83fe","webpack:///./src/components/Map.vue?4458","webpack:///./src/App.vue?bb0a","webpack:///./src/components/DealerSearch.vue?3ba7","webpack:///./src/components/DealerSearchLayout.vue?a322","webpack:///./src/components/DealerSearchLayout.vue?21ba","webpack:///./src/components/DealerSearchLayout.vue?692c","webpack:///./src/components/DealerSearchLayout.vue","webpack:///./src/components/SearchForm.vue?dd98","webpack:///./src/components/SearchFormLayout.vue?a01a","webpack:///./src/components/SearchFormLayout.vue?7c3d","webpack:///./src/components/SearchFormLayout.vue?a530","webpack:///./src/components/SearchFormLayout.vue","webpack:///./src/components/SearchInput.vue?88dc","webpack:///./src/components/SearchInputLayout.vue?b7de","webpack:///./src/components/SearchInputLayout.vue?2dbc","webpack:///./src/components/SearchInputLayout.vue?df9b","webpack:///./src/components/SearchInputLayout.vue","webpack:///./src/components/SearchInput.vue?a919","webpack:///./src/components/SearchInput.vue?7a4d","webpack:///./src/components/SearchInput.vue","webpack:///./src/components/ChooseGroup.vue?1aff","webpack:///./src/components/ChooseGroupLayout.vue?53cc","webpack:///./src/components/ChooseGroupLayout.vue?77c9","webpack:///./src/components/ChooseGroupLayout.vue?48cc","webpack:///./src/components/ChooseGroupLayout.vue","webpack:///./src/components/ChooseGroupItem.vue?fd52","webpack:///./src/components/ChooseGroupItemLayout.vue?cf65","webpack:///./src/components/ChooseGroupItemLayout.vue?8869","webpack:///./src/components/ChooseGroupItemLayout.vue?ef7b","webpack:///./src/components/ChooseGroupItemLayout.vue","webpack:///./src/components/ChooseGroupItem.vue?eca0","webpack:///./src/components/ChooseGroupItem.vue?9f98","webpack:///./src/components/ChooseGroupItem.vue","webpack:///./src/classes/filter-group-filter-combi.ts","webpack:///./src/components/ChooseGroup.vue?d22d","webpack:///./src/components/ChooseGroup.vue?b8f5","webpack:///./src/components/ChooseGroup.vue","webpack:///./src/components/Button.vue?e101","webpack:///./src/components/Button.vue?71ac","webpack:///./src/components/Button.vue?7c48","webpack:///./src/components/Button.vue","webpack:///./src/utility/geocoder.ts","webpack:///./src/utility/geolocation.ts","webpack:///./src/components/SearchForm.vue?bb74","webpack:///./src/models/marker-icon.model.ts","webpack:///./src/components/SearchForm.vue?b4da","webpack:///./src/components/SearchForm.vue","webpack:///./src/components/Map.vue?cd5b","webpack:///./src/utility/map-utils.ts","webpack:///./src/components/MapLegend.vue?1604","webpack:///./src/components/MapLegend.vue?1fa0","webpack:///./src/components/MapLegend.vue?b0c0","webpack:///./src/components/MapLegend.vue","webpack:///./src/components/DealerList.vue?33aa","webpack:///./src/components/DealerInfo.vue?79d0","webpack:///./src/components/DealerInfo.vue?e05a","webpack:///./src/components/DealerInfo.vue?9be3","webpack:///./src/components/DealerInfo.vue","webpack:///./src/components/DealerList.vue?97a1","webpack:///./src/components/DealerList.vue?cebc","webpack:///./src/components/DealerList.vue","webpack:///./src/components/Map.vue?717b","webpack:///./src/components/Map.vue?d329","webpack:///./src/components/Map.vue","webpack:///./src/components/DealerSearch.vue?6c13","webpack:///./src/components/DealerSearch.vue?508b","webpack:///./src/components/DealerSearch.vue","webpack:///./src/App.vue?9844","webpack:///./src/App.vue?6c26","webpack:///./src/App.vue","webpack:///./src/classes/state.ts","webpack:///./src/utility/dealer-search-app-data.ts","webpack:///./src/store/state.ts","webpack:///./src/store/getters.ts","webpack:///./src/classes/api-cache.ts","webpack:///./src/store/actions.ts","webpack:///./src/store/mutations.ts","webpack:///./src/store/index.ts","webpack:///./src/main.ts","webpack:///./src/components/DealerSearch.vue?d1fc"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","___CSS_LOADER_API_IMPORT___","content","default","locals","add","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","scopedSlots","_u","fn","ref","proxy","_e","staticClass","_t","component","on","handleFormSubmit","_v","_s","translations","searchFormTitle","searchFormDescription","initialSearchTerm","formValid","errorMessage","config","inputSize","geolocationIsLoading","handleInputChange","handlePlaceChange","handleLocationButtonClick","_l","filterGroup","id","searchSubmitButtonText","formIsLoading","methods","e","$emit","_obj","class","searchTerm","valid","inputSizeModifier","map","providers","google","geocode","types","autocomplete","country","searchInputPlaceholder","locationButtonLoading","locationButtonLabel","components","VueGoogleAutocomplete","SearchInputLayout","props","type","String","required","Boolean","size","state","$store","computed","watch","setSearchTerm","$refs","googleAutocomplete","update","newVal","place","lng","longitude","lat","latitude","mounted","label","filter","$event","handleFilterChange","init","Miele","ModuleLoader","createModuleInstance","$el","domProps","isChecked","handleCheckboxChange","tooltip","ChooseGroupItemLayout","getters","isSelectedFilter","FilterGroupFilterCombi","ChooseGroupLayout","ChooseGroupItem","filterGroupFilterCombi","dispatch","loading","text","geocoder","geocoderRequest","promise","Promise","resolve","reject","maps","Geocoder","results","status","getCurrentPosition","navigator","geolocation","position","coords","MarkerIconType","SearchFormLayout","SearchInput","ChooseGroup","Button","filters","formSubmitted","selectedFilters","mapInitialized","myPlace","newValue","oldValue","setTimeout","scrollMapIntoView","preventDefault","submitForm","validateSearchTerm","geocodeSearchTerm","address","componentRestrictions","geocodeResults","scrollFormIntoView","searchTermNoResults","firstResult","geometry","location","searchTermMinLength","trimmedSearchTerm","trim","searchTermTooShort","searchTermInvalid","scrollIntoView","document","querySelector","element","timeout","block","behavior","getGeolocation","geocodeGeolocation","geocoderResult","formattedAddress","formatted_address","autoSubmitForm","submit","markers","dealerListId","dealerListOpen","handleToggleButtonClick","toggleDealerListButtonLabel","handleMapWheel","zoom","minZoom","maxZoom","center","mapOptions","handleMapReady","handleMapUpdateBounds","handleMapUpdateZoom","handleMapUpdateCenter","clientId","lang","region","myPlaceMarker","latLng","createMyPlaceMarkerIcon","marker","index","createDealerMarkerIcon","handleDealerMarkerClick","handleDealerMarkerMouseEnter","handleDealerMarkerMouseLeave","scrollOverlayActive","mapScrollOverlayText","getMarkerModifier","mapIconId","markerClassName","MyPlace","MieleExperienceCenter","getMarkerMarkup","icon","items","item","modifier","markerIcons","keys","sort","keyA","keyB","markerIconA","markerIconB","order","markerIcon","detailsOpen","handleMouseEnter","handleMouseLeave","openDetails","dealerDetails","closeDetails","isDetail","handleBackButtonClick","back","dealer","properties","name1","name2","street","zipcode","town","telLink","phone","faxLink","fax","mailLink","email","website","dealerStatus","handleDetailButtonClick","showDetails","distance","markerModifier","Number","replacedPhone","replace","replacedFax","formattedDistance","parseFloat","toFixed","distanceDecimals","toLocaleString","distanceUnit","centerFilter","cat2","indexOf","DealerInfo","Array","scrollElement","detailsMarker","activeDealerDetails","scrollToTop","newActiveDealerDetails","prevActiveDealerDetails","scrollTop","highlightMarker","highlight","markerData","dealerId","LMap","LControlZoom","LMarker","Vue2LeafletGoogleMutant","MapLegend","DealerList","mapContainer","zoomControl","scrollOverlayTimeoutId","dealers","coordinates","markerCount","mapZoom","currentZoom","maxMarkerCount","mapCenter","activeMarkerId","newActiveMarkerId","prevActiveMarkerId","highlightMarkerElement","DivIcon","className","iconSize","leaflet","markerIconSize","iconAnchor","html","markerId","classnames","join","ctrlKey","metaKey","stopPropagation","clearTimeout","markerInner","parentElement","classList","toggle","updateActiveDealerDetailsMarkerIndex","prevIndex","newIndex","iLen","highlightExistingActiveMarker","updated","DealerSearchLayout","SearchForm","Map","isInitialized","showMap","all","loadGoogleMapsApi","loadDealerSearchModule","script","createElement","src","onload","head","appendChild","importModule","DealerSearch","State","stateUrl","hasValidParams","readUrlParams","urlParams","URLSearchParams","search","term","splittedPlace","split","isNaN","every","selectFilters","forEach","filterGroupName","has","paramValue","splittedParamValue","dealerSearchAppData","TypeError","some","ApiCache","maxSize","entries","entry","apiCache","actionUtils","appendFiltersToUrl","url","additionalParams","queryParams","resultUrl","filterParams","param","calculateDistancesAndSortDealers","LatLng","distanceInMeters","distanceTo","calculatedDistance","distanceMultiply","dealerA","dealerB","localeCompare","actions","selectFilter","store","commit","unselectFilter","loadMinDealersByPlace","Error","api","baseUrl","project","maxDistance","minCount","op","op1","op2","response","axios","set","console","log","bbox","fitBounds","loadDealersByMapBounds","bounds","getBounds","southWest","getSouthWest","northEast","getNorthEast","features","setMapZoom","setMapCenter","centerAndZoom","setMap","replaceState","encodeURIComponent","history","setShowMap","setMapInitialized","setMyPlace","setActiveMarkerId","setActiveDealerDetails","setDealerListOpen","mutations","SELECT_FILTER","findIndex","selectedFilter","UNSELECT_FILTER","SET_SEARCH_TERM","SET_DEALERS","SET_MAP_ZOOM","SET_MAP_CENTER","SET_MAP","SET_STATE_URL","SET_SHOW_MAP","SET_MAP_INITIALIZED","SET_MY_PLACE","SET_ACTIVE_MARKER_ID","SET_ACTIVE_DEALER_DETAILS","SET_DEALER_LIST_OPEN","Vue","use","Vuex","Store","productionTip","devtools","render","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IA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Ac+L,GACrC/L,EAAM+L,oBAAsBA,GAO/B2K,qBA1Ha,SA0HQ1W,EAAcoG,GAChCpG,EAAMoG,eAAiBA,KAIhBsP,MC5HfiB,OAAIC,IAAIC,SAEO,WAAIA,QAAKC,MAAM,CAC1B9W,SACA6B,WACAkR,WACA2C,eCVJiB,OAAIjZ,OAAOqZ,eAAgB,EAC3BJ,OAAIjZ,OAAOsZ,UAAW,EACtBL,OAAIpe,UAAU6I,MAAQ7F,OAAO6F,MAE7B,IAAIuV,OAAI,CACN1D,SACAgE,OAAQ,SAAAC,GAAC,OAAIA,EAAEC,OACdC,OAAO,uB,qBCZV,IAAI1b,EAA8B,EAAQ,QAC1C/B,EAAU+B,GAA4B,GAEtC/B,EAAQhB,KAAK,CAACiB,EAAOzB,EAAI,GAAI,KAE7ByB,EAAOD,QAAUA","file":"dealer-search.app.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"mieleDealerSearchJsonp\"] = window[\"mieleDealerSearchJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".pac-container{width:100%!important;max-width:34.6875rem;margin-top:calc(var(--frm-text-input-border-spacing) + 1px);border-top:0}.pac-item{padding:2px 5px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearch.vue?vue&type=style&index=0&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"071ce03e\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInput.vue?vue&type=style&index=0&lang=css&\"","export * from \"-!../../node_modules/vue-style-loader/index.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearch.vue?vue&type=style&index=0&lang=css&\"","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInput.vue?vue&type=style&index=0&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"0adf87ca\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=style&index=0&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"76730afe\", content, true, {\"sourceMap\":false,\"shadowMode\":false});","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".leaflet-bottom.leaflet-right,.leaflet-top.leaflet-right{z-index:400}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"dealer-search-app\"}},[_c('DealerSearch')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isInitialized)?_c('DealerSearchLayout',{scopedSlots:_vm._u([{key:\"searchForm\",fn:function(){return [_c('SearchForm',{ref:\"searchForm\"})]},proxy:true},{key:\"map\",fn:function(){return [(_vm.showMap)?_c('Map'):_vm._e()]},proxy:true}],null,false,3872476816)}):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mdl-dealer-search\"},[_c('div',{staticClass:\"mdl-dealer-search__wrapper\"},[_vm._t(\"searchForm\")],2),_vm._t(\"map\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\nexport default {\n name: 'DealerSearchLayout', \n\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearchLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearchLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DealerSearchLayout.vue?vue&type=template&id=3273009c&\"\nimport script from \"./DealerSearchLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./DealerSearchLayout.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SearchFormLayout',{on:{\"submit\":_vm.handleFormSubmit},scopedSlots:_vm._u([{key:\"fieldsetTitle\",fn:function(){return [_vm._v(_vm._s(_vm.translations.searchFormTitle))]},proxy:true},{key:\"fieldsetDescription\",fn:function(){return [(_vm.translations.searchFormDescription)?_c('div',{staticClass:\"frm-form-fieldset__description\"},[_vm._v(\" \"+_vm._s(_vm.translations.searchFormDescription)+\" \")]):_vm._e()]},proxy:true},{key:\"searchInput\",fn:function(){return [_c('SearchInput',{attrs:{\"initialSearchTerm\":_vm.initialSearchTerm,\"valid\":_vm.formValid,\"errorMessage\":_vm.errorMessage,\"size\":_vm.config.inputSize,\"locationButtonLoading\":_vm.geolocationIsLoading},on:{\"inputChange\":_vm.handleInputChange,\"placeChange\":_vm.handlePlaceChange,\"locationButtonClick\":_vm.handleLocationButtonClick}})]},proxy:true},{key:\"chooseGroup\",fn:function(){return _vm._l((_vm.filters),function(filterGroup){return _c('ChooseGroup',{key:filterGroup.id,attrs:{\"filterGroup\":filterGroup}})})},proxy:true},{key:\"submitBtn\",fn:function(){return [_c('Button',{attrs:{\"type\":\"submit\",\"text\":_vm.translations.searchSubmitButtonText,\"loading\":_vm.formIsLoading}})]},proxy:true}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{staticClass:\"mdl-dealer-search__form\",on:{\"submit\":_vm.handleFormSubmit}},[_c('div',{staticClass:\"frm-form__content\"},[_c('fieldset',{staticClass:\"frm-form-fieldset frm-form-fieldset--boxed\"},[_c('legend',{staticClass:\"frm-form-fieldset__title\"},[_vm._t(\"fieldsetTitle\")],2),_vm._t(\"fieldsetDescription\"),_c('div',{staticClass:\"mdl-dealer-search__input-container\"},[_vm._t(\"searchInput\")],2),_c('div',{staticClass:\"mdl-dealer-search__choose-group-container\"},[_vm._t(\"chooseGroup\")],2),_c('div',{staticClass:\"mdl-dealer-search__submit-container\"},[_vm._t(\"submitBtn\")],2)],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\nexport default {\n name: 'SearchFormLayout',\n methods: {\n handleFormSubmit(e) {\n this.$emit(\"submit\", e);\n },\n }\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchFormLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchFormLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchFormLayout.vue?vue&type=template&id=8ac3ed84&\"\nimport script from \"./SearchFormLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchFormLayout.vue?vue&type=script&lang=ts&\"\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","var render = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SearchInputLayout',{class:( _obj = {\n 'frm-text--filled': _vm.searchTerm,\n 'frm-text--invalid': !_vm.valid\n}, _obj[_vm.inputSizeModifier] = _vm.inputSizeModifier, _obj ),scopedSlots:_vm._u([{key:\"input\",fn:function(){return [_c('VueGoogleAutocomplete',{ref:\"googleAutocomplete\",attrs:{\"id\":\"dealer-search-input\",\"classname\":\"frm-text__input\",\"placeholder\":\"\",\"types\":_vm.config.map.providers.google.geocode.types,\"country\":_vm.config.map.providers.google.autocomplete.country},on:{\"inputChange\":_vm.handleInputChange,\"placechanged\":_vm.handlePlaceChange}})]},proxy:true},{key:\"placeholder\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.translations.searchInputPlaceholder)+\" \")]},proxy:true},{key:\"icons\",fn:function(){return [_c('button',{staticClass:\"mdl-dealer-search__location-button\",class:{ 'mdl-dealer-search__location-button--loading': _vm.locationButtonLoading },attrs:{\"aria-label\":_vm.translations.locationButtonLabel,\"type\":\"button\"},on:{\"click\":_vm.handleLocationButtonClick}},[_c('svg',{staticClass:\"frm-text__icon frm-text__icon--location\"},[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#location\"}})])])]},proxy:true},{key:\"error\",fn:function(){return [(!_vm.valid && _vm.errorMessage)?_c('p',{staticClass:\"frm-text__info frm-text__info--error\"},[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e()]},proxy:true}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"frm-text\"},[_c('div',{staticClass:\"frm-text__wrapper\"},[_vm._t(\"input\"),_c('label',{staticClass:\"frm-text__label\",attrs:{\"for\":\"dealer-search-input\"}},[_vm._t(\"placeholder\")],2),_c('svg',{staticClass:\"frm-text__status-icon frm-text__status-icon--valid\"},[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/frm-text.svg#check\"}})]),_c('svg',{staticClass:\"frm-text__status-icon frm-text__status-icon--error\"},[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/frm-text.svg#exclamation\"}})]),_vm._t(\"icons\")],2),_vm._t(\"error\")],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\nexport default {\n name: 'SearchInputLayout',\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInputLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInputLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchInputLayout.vue?vue&type=template&id=94928716&\"\nimport script from \"./SearchInputLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchInputLayout.vue?vue&type=script&lang=ts&\"\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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 VueGoogleAutocomplete from 'vue-google-autocomplete';\nimport Place from '../models/place.model';\nimport SearchTermChangeEvent from '@/models/search-term-change-event.model';\nimport SearchInputLayout from './SearchInputLayout.vue';\nimport State from '@/classes/state';\n\nexport default {\n name: 'SearchInput',\n components: {\n VueGoogleAutocomplete,\n SearchInputLayout,\n },\n props: {\n initialSearchTerm: {\n type: String,\n required: false,\n },\n valid: {\n type: Boolean,\n required: true,\n },\n errorMessage: {\n type: String,\n required: false\n },\n size: {\n type: String,\n required: false\n },\n locationButtonLoading: {\n type: Boolean,\n required: false,\n },\n },\n data() {\n const state: State = this.$store.state;\n\n return {\n config: state.config,\n translations: state.translations,\n searchTerm: this.initialSearchTerm,\n };\n },\n computed: {\n inputSizeModifier(): string | null {\n if (this.size) {\n return `frm-text--${this.size}`;\n }\n\n return null;\n },\n },\n watch: {\n initialSearchTerm() {\n this.setSearchTerm();\n },\n },\n methods: {\n /**\n * Sets the initial search term\n */\n setSearchTerm() {\n this.$refs.googleAutocomplete.update(this.initialSearchTerm);\n },\n /**\n * Executed when the input changes\n */\n handleInputChange(e: SearchTermChangeEvent): void {\n this.searchTerm = e.newVal;\n this.$emit(\"inputChange\", e);\n },\n /**\n * Executed when the user clicks\n * the location button\n */\n handleLocationButtonClick(e: Event): void {\n this.$emit(\"locationButtonClick\", e);\n },\n /**\n * Executed when user selects a place\n */\n handlePlaceChange(e: any): void {\n // normalize provider specific event to place object\n const place: Place = {\n lng: e.longitude,\n lat: e.latitude,\n };\n\n this.$emit(\"placeChange\", place);\n },\n },\n mounted() {\n this.setSearchTerm();\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInput.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchInput.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchInput.vue?vue&type=template&id=432dbff2&\"\nimport script from \"./SearchInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchInput.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SearchInput.vue?vue&type=style&index=0&lang=css&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ChooseGroupLayout',{scopedSlots:_vm._u([{key:\"legend\",fn:function(){return [_vm._v(_vm._s(_vm.filterGroup.label))]},proxy:true},{key:\"items\",fn:function(){return _vm._l((_vm.filterGroup.filters),function(filter){return _c('ChooseGroupItem',{key:filter.id,attrs:{\"filterGroup\":_vm.filterGroup,\"filter\":filter},on:{\"change\":function($event){return _vm.handleFilterChange($event, _vm.filterGroup, filter)}}})})},proxy:true}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"frm-choose-group js-module-loaded xsmall small medium large\"},[_c('fieldset',[_c('legend',{staticClass:\"frm-choose-group__group-label\"},[_vm._t(\"legend\")],2),_c('div',{staticClass:\"frm-choose-group__options-wrapper\"},[_vm._t(\"items\")],2)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nexport default {\n name: 'ChooseGroup',\n methods: {\n init() {\n Miele.ModuleLoader.createModuleInstance(\"elements/form/choose-group\", this.$el);\n },\n },\n mounted() {\n this.init();\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChooseGroupLayout.vue?vue&type=template&id=e69a8bce&\"\nimport script from \"./ChooseGroupLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChooseGroupLayout.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ChooseGroupItemLayout',{scopedSlots:_vm._u([{key:\"input\",fn:function(){return [_c('input',{staticClass:\"frm-choose-group-item__input\",attrs:{\"type\":\"checkbox\",\"name\":_vm.filterGroup.name},domProps:{\"value\":_vm.filter.value,\"checked\":_vm.isChecked},on:{\"change\":function($event){return _vm.handleCheckboxChange($event)}}})]},proxy:true},{key:\"label\",fn:function(){return [_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.filter.label)}}),(_vm.filter.tooltip)?_c('a',{staticClass:\"mouseover\",attrs:{\"aria-label\":\"tooltip\",\"aria-expanded\":\"false\",\"href\":_vm.filter.tooltip}}):_vm._e()]},proxy:true}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('label',{staticClass:\"frm-choose-group-item\"},[_vm._t(\"input\"),_c('span',{staticClass:\"frm-choose-group-item__content\"},[_c('span',{staticClass:\"frm-choose-group-item__box\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/frm-choose-group.svg#check\"}})])]),_c('span',{staticClass:\"frm-choose-group-item__label\"},[_vm._t(\"label\")],2)])],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\nexport default {\n name: 'ChooseGroupItemLayout',\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupItemLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupItemLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChooseGroupItemLayout.vue?vue&type=template&id=014be3c5&\"\nimport script from \"./ChooseGroupItemLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChooseGroupItemLayout.vue?vue&type=script&lang=ts&\"\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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport ChooseGroupItemLayout from './ChooseGroupItemLayout.vue';\n\nexport default {\n name: 'ChooseGroupItem',\n props: {\n filterGroup: {\n type: Object,\n required: true,\n },\n filter: {\n type: Object,\n required: true,\n },\n },\n components: {\n ChooseGroupItemLayout,\n },\n computed: {\n isChecked() {\n return this.$store.getters.isSelectedFilter(this.filter);\n },\n },\n methods: {\n handleCheckboxChange(e: Event) {\n this.$emit('change', e);\n },\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroupItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChooseGroupItem.vue?vue&type=template&id=023901ba&\"\nimport script from \"./ChooseGroupItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChooseGroupItem.vue?vue&type=script&lang=ts&\"\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","import Filter from '../models/filter.model';\nimport FilterGroup from '../models/filter-group.model';\n\nexport default class FilterGroupFilterCombi {\n filterGroup: FilterGroup;\n filter: Filter;\n\n constructor(\n filterGroup: FilterGroup,\n filter: Filter\n ) {\n this.filterGroup = filterGroup;\n this.filter = filter;\n }\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport ChooseGroupLayout from './ChooseGroupLayout.vue';\nimport ChooseGroupItem from './ChooseGroupItem.vue';\nimport Filter from '@/models/filter.model';\nimport FilterGroup from '@/models/filter-group.model';\nimport FilterGroupFilterCombi from '@/classes/filter-group-filter-combi';\n\nexport default {\n name: 'ChooseGroup',\n components: {\n ChooseGroupLayout,\n ChooseGroupItem,\n },\n props: {\n filterGroup: {\n type: Object,\n required: true,\n },\n },\n methods: {\n handleFilterChange(e: Event, filterGroup: FilterGroup, filter: Filter) {\n const filterGroupFilterCombi = new FilterGroupFilterCombi(filterGroup, filter)\n\n if (this.$store.getters.isSelectedFilter(filter)) {\n this.$store.dispatch('unselectFilter', filterGroupFilterCombi);\n } else {\n this.$store.dispatch('selectFilter', filterGroupFilterCombi);\n }\n },\n },\n mounted() {\n // this.initTooltips();\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroup.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ChooseGroup.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ChooseGroup.vue?vue&type=template&id=5acb7b80&\"\nimport script from \"./ChooseGroup.vue?vue&type=script&lang=ts&\"\nexport * from \"./ChooseGroup.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"obj-button obj-button--primary mdl-dealer-search__submit-btn\",class:{ 'obj-button--loading': _vm.loading },attrs:{\"type\":_vm.type}},[_vm._v(_vm._s(_vm.text))])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\nexport default {\n name: 'Button',\n props: {\n type: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: false\n },\n loading: {\n type: Boolean,\n required: false\n },\n },\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Button.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Button.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Button.vue?vue&type=template&id=7ff0daf0&\"\nimport script from \"./Button.vue?vue&type=script&lang=ts&\"\nexport * from \"./Button.vue?vue&type=script&lang=ts&\"\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","let geocoder: google.maps.Geocoder | null = null;\n\n/**\n * Geocodes the given geocoderRequest\n * @param geocoderRequest The geocoder request\n */\nexport default function geocode(\n geocoderRequest: google.maps.GeocoderRequest,\n): Promise<Array<google.maps.GeocoderResult> | null> {\n const promise = new Promise<Array<google.maps.GeocoderResult> | null>((resolve, reject) => {\n if (!geocoder) {\n geocoder = new google.maps.Geocoder();\n }\n\n geocoder.geocode(\n geocoderRequest,\n function(results: Array<google.maps.GeocoderResult> | null, status: google.maps.GeocoderStatus) {\n if (status === 'OK') {\n resolve(results);\n } else {\n reject(status);\n }\n }\n );\n });\n\n return promise;\n};\n","import Place from '@/models/place.model';\n\n/**\n * Requests the permission\n * to access the geolocation\n * API and returns a promise\n * fulfilling with the place\n * or null\n */\nexport default async function getCurrentPosition(): Promise<Place | null> {\n if (!navigator.geolocation) {\n return null;\n }\n\n return new Promise<Place | null>((resolve, reject) => {\n navigator.geolocation.getCurrentPosition(position => {\n resolve({\n lat: position.coords.latitude,\n lng: position.coords.longitude,\n });\n }, () => {\n reject();\n });\n });\n}\n","\n\n\n\n\n\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 SearchFormLayout from './SearchFormLayout.vue';\nimport SearchInput from './SearchInput.vue';\nimport ChooseGroup from './ChooseGroup.vue';\nimport Place from '@/models/place.model';\nimport SearchTermChangeEvent from '@/models/search-term-change-event.model';\nimport Config from '@/models/config.model';\nimport Translations from '@/models/translations.model';\nimport Button from './Button.vue';\nimport State from '@/classes/state';\nimport FilterGroupFilterCombi from '@/classes/filter-group-filter-combi';\nimport { Map } from 'leaflet';\nimport geocode from '@/utility/geocoder';\nimport getCurrentPosition from '@/utility/geolocation';\n\nexport default {\n name: 'SearchForm',\n components: {\n SearchFormLayout,\n SearchInput,\n ChooseGroup,\n Button,\n },\n data() {\n const state: State = this.$store.state;\n\n return {\n config: state.config,\n translations: state.translations,\n filters: state.filters,\n errorMessage: null,\n formSubmitted: false,\n formValid: true,\n formIsLoading: false,\n geolocationIsLoading: false,\n initialSearchTerm: state.searchTerm,\n };\n },\n computed: {\n selectedFilters(): Array<FilterGroupFilterCombi> {\n return (this.$store.state as State).selectedFilters;\n },\n map(): Map | null {\n return (this.$store.state as State).map;\n },\n searchTerm(): string {\n return (this.$store.state as State).searchTerm;\n },\n mapInitialized(): boolean {\n return (this.$store.state as State).mapInitialized;\n },\n place(): Place | null {\n return (this.$store.state as State).myPlace;\n },\n },\n watch: {\n // selectedFilters(): void {\n // if (!this.formValid || !this.mapInitialized) {\n // // form is invalid or map is not initialized\n // // so dont load dealers until\n // // the user submits/corrects the form\n // return;\n // }\n\n // this.$store.dispatch('loadDealersByMapBounds');\n // },\n async mapInitialized(newValue: boolean, oldValue: boolean): Promise<void> {\n const state: State = this.$store.state;\n\n if (!oldValue && newValue && state.myPlace) {\n // Check if map is initialized\n // and if there is a selected place.\n // If so, the map was lazy initialized\n // so we now scroll to the map since we know\n // that the map is available in the DOM\n await this.$store.dispatch('loadMinDealersByPlace');\n this.formIsLoading = false;\n\n setTimeout(() => {\n this.scrollMapIntoView(); \n }, 250);\n }\n },\n },\n methods: {\n /**\n * Executed when the form is submitted\n */\n handleFormSubmit(e: Event): void {\n e.preventDefault();\n this.submitForm();\n },\n async submitForm(): Promise<void> {\n this.validateSearchTerm();\n\n if (!this.formValid) {\n return;\n }\n\n this.formIsLoading = true;\n\n if (!this.formSubmitted) {\n // if form wasnt submitted with the\n // current searchterm goecode\n // the searchterm\n const place = await this.geocodeSearchTerm();\n\n if (!place) {\n this.formIsLoading = false;\n return;\n }\n\n this.$store.dispatch('setMyPlace', place);\n }\n\n this.formSubmitted = true;\n\n if (this.mapInitialized) {\n // if the map is already shown\n // scroll to it,\n // otherwise the watcher\n // function will scroll to\n // it as soon as the map loaded\n await this.$store.dispatch('loadMinDealersByPlace');\n this.formIsLoading = false;\n\n this.scrollMapIntoView(); \n } else {\n this.$store.dispatch('setShowMap', true);\n }\n\n this.$store.dispatch('replaceState');\n },\n async geocodeSearchTerm(): Promise<Place | null> {\n const config: Config = this.config;\n let geocodeResults: Array<google.maps.GeocoderResult> | null;\n\n try {\n geocodeResults = await geocode({\n address: this.searchTerm,\n componentRestrictions: {\n country: config.map.providers.google.geocode.country,\n },\n });\n } catch (error) {\n if (error === 'ZERO_RESULTS') {\n geocodeResults = [];\n } else {\n // console.log('Geocode was not successful for the following reason: ' + error);\n return null;\n }\n }\n\n if (!geocodeResults || !geocodeResults.length) {\n const translations: Translations = this.translations;\n this.formValid = false;\n this.scrollFormIntoView();\n this.errorMessage = translations.searchTermNoResults;\n return null;\n }\n\n const firstResult = geocodeResults[0];\n const place: Place = {\n lat: firstResult.geometry.location.lat(),\n lng: firstResult.geometry.location.lng()\n };\n\n return place;\n },\n validateSearchTerm(): void {\n const config: Config = this.config;\n const translations: Translations = this.translations;\n const { searchTermMinLength } = config;\n\n const trimmedSearchTerm = this.searchTerm?.trim();\n\n if (!trimmedSearchTerm) {\n this.formValid = false;\n this.scrollFormIntoView();\n this.errorMessage = translations.searchTermInvalid;\n } else if (trimmedSearchTerm.length < searchTermMinLength) {\n this.formValid = false;\n this.scrollFormIntoView();\n this.errorMessage = translations.searchTermTooShort;\n } else {\n this.formValid = true;\n }\n },\n /**\n * Executed when the input changes\n */\n handleInputChange(e: SearchTermChangeEvent): void {\n this.formSubmitted = false;\n this.formValid = true;\n\n this.$store.dispatch('setSearchTerm', e.newVal);\n },\n /**\n * Executed when user selects a place\n * using google maps autocomplete\n */ \n handlePlaceChange(place: Place): void {\n /**\n * handlePlaceChange is called before\n * handleInputChange so we use a timeout\n * to ensure that handlePlaceChange is called after\n * handleInputChange\n */\n setTimeout(async () => {\n this.formSubmitted = true;\n this.formIsLoading = true;\n\n this.$store.dispatch('setMyPlace', place);\n \n if (this.mapInitialized) {\n // if the map is already shown\n // load dealers and scroll to it,\n // otherwise the watcher\n // function will scroll to\n // it as soon as the map loaded\n await this.$store.dispatch('loadMinDealersByPlace');\n this.formIsLoading = false;\n\n this.scrollMapIntoView();\n } else {\n this.$store.dispatch('setShowMap', true);\n }\n\n this.$store.dispatch('replaceState');\n }, 0);\n },\n scrollFormIntoView() {\n this.scrollIntoView(this.$el);\n },\n scrollMapIntoView() {\n const map = document.querySelector('#dealer-search-map');\n this.scrollIntoView(map);\n },\n scrollIntoView(element: HTMLElement, timeout = 200) {\n setTimeout(() => {\n element?.scrollIntoView({\n block: 'center',\n behavior: 'smooth'\n });\n }, timeout);\n },\n /**\n * Executed when the user clicks\n * the location button\n */\n async handleLocationButtonClick(): Promise<void> {\n this.geolocationIsLoading = true;\n\n const place: Place | null = await this.getGeolocation();\n\n this.geolocationIsLoading = false;\n\n if (!place) {\n return;\n }\n\n const geocoderResult: google.maps.GeocoderResult | null = await this.geocodeGeolocation(place);\n\n if (!geocoderResult) {\n return;\n }\n\n this.initialSearchTerm = '';\n \n // the timeout is used so that vue detects\n // the changed initialSearchTerm.\n // Without the timeout there are cases\n // when the initialSearchTerm from the URL\n // is the same as the geocoded search term\n // so that the input field won't update\n setTimeout(() => {\n const formattedAddress = geocoderResult.formatted_address;\n this.initialSearchTerm = formattedAddress;\n\n this.$store.dispatch('setSearchTerm', formattedAddress);\n this.$store.dispatch('replaceState');\n\n this.handlePlaceChange(place);\n });\n },\n /**\n * Returns the place\n * for the users geolocation\n * or null if an error occures\n * or the user denied the GPS access\n */\n async getGeolocation(): Promise<Place | null> {\n let place: Place | null;\n\n try {\n place = await getCurrentPosition();\n } catch {\n place = null;\n }\n\n return place;\n },\n /**\n * Geocodes the given\n * place object\n */\n async geocodeGeolocation(geolocation: Place): Promise<google.maps.GeocoderResult | null> {\n let geocodeResults: Array<google.maps.GeocoderResult> | null;\n\n try {\n geocodeResults = await geocode({\n location: geolocation,\n });\n } catch (error) {\n if (error === 'ZERO_RESULTS') {\n geocodeResults = [];\n } else {\n // console.log('Geocode was not successful for the following reason: ' + error);\n return null;\n }\n }\n\n if (!geocodeResults || !geocodeResults.length) {\n return null;\n }\n\n return geocodeResults[0];\n },\n autoSubmitForm() {\n const state: State = this.$store.state;\n\n if (state.submit) {\n this.submitForm();\n }\n },\n },\n mounted() {\n this.autoSubmitForm();\n },\n};\n","export enum MarkerIconType {\n Default = 'default',\n MyPlace = 'myPlace',\n MieleExperienceCenter = 'center',\n}\n\nexport default interface MarkerIcon {\n name: string;\n icon: string;\n order: number;\n}","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchForm.vue?vue&type=template&id=eb13ffa6&\"\nimport script from \"./SearchForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchForm.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mdl-dealer-search__result-wrapper\"},[_c('div',{staticClass:\"mdl-dealer-search__result-container\"},[(_vm.markers.length)?_c('div',{staticClass:\"mdl-dealer-search__list\"},[_c('button',{staticClass:\"mdl-dealer-search-list__toggle-button\",attrs:{\"aria-controls\":_vm.dealerListId,\"aria-expanded\":_vm.dealerListOpen + ''},on:{\"click\":_vm.handleToggleButtonClick}},[_c('span',{staticClass:\"mdl-dealer-search-list__toggle-button-title\"},[_vm._v(_vm._s(_vm.translations.toggleDealerListButtonLabel))]),_c('svg',{staticClass:\"mdl-dealer-search-list__icon mdl-dealer-search-list__icon--closed\"},[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.15.0/svg/applications-dealer-search.svg#plus\"}})]),_c('svg',{staticClass:\"mdl-dealer-search-list__icon mdl-dealer-search-list__icon--opened\"},[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.15.0/svg/applications-dealer-search.svg#minus\"}})])]),_c('DealerList',{attrs:{\"markers\":_vm.markers,\"dealerListId\":_vm.dealerListId}})],1):_vm._e(),_c('div',{staticClass:\"mdl-dealer-search__map\",attrs:{\"id\":\"dealer-search-map\"},on:{\"!wheel\":function($event){return _vm.handleMapWheel($event)}}},[_c('LMap',{attrs:{\"zoom\":_vm.zoom,\"minZoom\":_vm.minZoom,\"maxZoom\":_vm.config.map.maxZoom,\"center\":_vm.center,\"options\":_vm.mapOptions},on:{\"ready\":_vm.handleMapReady,\"update:bounds\":_vm.handleMapUpdateBounds,\"update:zoom\":_vm.handleMapUpdateZoom,\"update:center\":_vm.handleMapUpdateCenter}},[_c('Vue2LeafletGoogleMutant',{attrs:{\"apikey\":_vm.config.map.providers.google.clientId,\"lang\":_vm.config.map.providers.google.lang,\"region\":_vm.config.map.providers.google.region}}),_c('LControlZoom',{attrs:{\"position\":\"topright\"}}),(_vm.myPlaceMarker)?_c('LMarker',{attrs:{\"lat-lng\":_vm.myPlaceMarker.latLng,\"icon\":_vm.createMyPlaceMarkerIcon()}}):_vm._e(),_vm._l((_vm.markers),function(marker,index){return _c('LMarker',{key:marker.data.id,attrs:{\"lat-lng\":marker.latLng,\"icon\":_vm.createDealerMarkerIcon(marker, index)},on:{\"click\":function($event){return _vm.handleDealerMarkerClick(marker, index)},\"mouseenter\":function($event){return _vm.handleDealerMarkerMouseEnter(marker)},\"mouseleave\":function($event){return _vm.handleDealerMarkerMouseLeave(marker)}}})})],2),_c('div',{staticClass:\"mdl-dealer-search__scroll-overlay\",class:{ 'mdl-dealer-search__scroll-overlay--active': _vm.scrollOverlayActive }},[_c('span',{staticClass:\"mdl-dealer-search__scroll-overlay-text\"},[_vm._v(_vm._s(_vm.translations.mapScrollOverlayText))])])],1)]),_c('div',{staticClass:\"mdl-dealer-search__legend\"},[_c('MapLegend')],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { MarkerIconType } from '@/models/marker-icon.model';\n\nexport function getMarkerModifier(mapIconId: string): string | null {\n const markerClassName = 'mdl-dealer-search-marker';\n \n switch (mapIconId) {\n case MarkerIconType.MyPlace:\n case MarkerIconType.MieleExperienceCenter:\n return `${markerClassName}--black`;\n default:\n return null;\n }\n}\n\nexport function getMarkerMarkup(icon: string, text?: string, id?: string) {\n return `\n <div${id ? ` id=\"${id}\"` : ''} class=\"mdl-dealer-search-marker__inner\">\n <div class=\"mdl-dealer-search-marker__icon\">\n <svg>\n <use xlink:href=\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#${icon}\"></use>\n </svg>\n </div>\n ${text ? `<div class=\"mdl-dealer-search-marker__text\">${text}</div>` : ''}\n </div>`;\n\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.items.length > 1)?_c('div',{staticClass:\"mdl-dealer-search-legend\"},_vm._l((_vm.items),function(item){\nvar _obj;\nreturn _c('div',{key:item.name,staticClass:\"mdl-dealer-search-legend__item\"},[_c('div',{staticClass:\"mdl-dealer-search-marker\",class:( _obj = {}, _obj[item.modifier] = item.modifier, _obj )},[_c('div',{staticClass:\"mdl-dealer-search-marker__inner\"},[_c('div',{staticClass:\"mdl-dealer-search-marker__icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":'/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#' + item.icon}})])])])]),_c('div',{staticClass:\"mdl-dealer-search-legend__item-text\"},[_vm._v(_vm._s(item.name))])])}),0):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport State from '@/classes/state';\nimport MapLegendItem from '@/models/map-legend-item.model';\nimport { getMarkerModifier } from '@/utility/map-utils';\nimport MarkerIcon from '@/models/marker-icon.model';\n\nexport default {\n name: 'Map',\n components: {},\n computed: {\n items(): Array<MapLegendItem> {\n const state: State = this.$store.state;\n const { markerIcons } = state;\n const keys = Object.keys(markerIcons).sort((keyA, keyB) => {\n const markerIconA: MarkerIcon = markerIcons[keyA];\n const markerIconB: MarkerIcon = markerIcons[keyB];\n return markerIconA.order - markerIconB.order;\n });\n \n return keys.map(mapIconId => {\n const markerIcon: MarkerIcon = markerIcons[mapIconId];\n\n return {\n name: markerIcon.name,\n modifier: getMarkerModifier(mapIconId),\n icon: markerIcon.icon,\n };\n });\n },\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MapLegend.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MapLegend.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MapLegend.vue?vue&type=template&id=3df93dfd&\"\nimport script from \"./MapLegend.vue?vue&type=script&lang=ts&\"\nexport * from \"./MapLegend.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mdl-dealer-search-list\",class:{ 'mdl-dealer-search-list--details': _vm.detailsOpen }},[_c('div',{staticClass:\"mdl-dealer-search-list__content\",class:{ 'mdl-dealer-search-list__content--hidden': !_vm.dealerListOpen },attrs:{\"id\":_vm.dealerListId,\"aria-hidden\":!_vm.dealerListOpen + ''}},[_c('div',{staticClass:\"mdl-dealer-search-list__list\"},_vm._l((_vm.markers),function(marker,index){return _c('div',{key:marker.data.id,staticClass:\"mdl-dealer-search-list__dealer\",on:{\"mouseenter\":function($event){return _vm.handleMouseEnter(marker)},\"mouseleave\":function($event){return _vm.handleMouseLeave(marker)}}},[_c('DealerInfo',{attrs:{\"type\":\"list\",\"marker\":marker,\"index\":index},on:{\"openDetails\":_vm.openDetails}})],1)}),0),_c('div',{staticClass:\"mdl-dealer-search-list__details\"},[(_vm.dealerDetails)?_c('div',{staticClass:\"mdl-dealer-search-list__dealer\"},[_c('DealerInfo',{attrs:{\"type\":\"detail\",\"marker\":_vm.dealerDetails.marker,\"index\":_vm.dealerDetails.index},on:{\"closeDetails\":_vm.closeDetails}})],1):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mdl-dealer-search-dealer\",class:{ 'mdl-dealer-search-dealer--detail': _vm.isDetail }},[(_vm.isDetail)?_c('div',{staticClass:\"mdl-dealer-search-dealer__back-container\"},[_c('button',{staticClass:\"mdl-dealer-search-dealer__back-button obj-link obj-link--primary obj-link--small\",on:{\"click\":_vm.handleBackButtonClick}},[_c('svg',[_c('use',{attrs:{\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\",\"xlink:href\":\"/wmedia/pwp/1.15.0/svg/applications-dealer-search.svg#angle-left\"}})]),_vm._v(\" \"+_vm._s(_vm.translations.back)+\" \")])]):_vm._e(),_c('div',{staticClass:\"mdl-dealer-search-dealer__content\"},[_c('strong',{staticClass:\"mdl-dealer-search-dealer__headline\"},[_c('span',{staticClass:\"mdl-dealer-search-dealer__headline-1\"},[_vm._v(\" \"+_vm._s(_vm.dealer.properties.name1)+\" \")]),(_vm.dealer.properties.name2)?_c('span',{staticClass:\"mdl-dealer-search-dealer__headline-2\"},[_vm._v(\" \"+_vm._s(_vm.dealer.properties.name2)+\" \")]):_vm._e()]),_c('div',{staticClass:\"mdl-dealer-search-dealer__data\"},[_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item\"},[_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item-line\"},[_vm._v(\" \"+_vm._s(_vm.dealer.properties.street)+\" \"),_c('br'),_vm._v(\" \"+_vm._s(_vm.dealer.properties.zipcode)+\" \"+_vm._s(_vm.dealer.properties.town)+\" \")])]),(_vm.isDetail)?[_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item\"},[(_vm.telLink)?_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item-line\"},[_c('span',{staticClass:\"mdl-dealer-search-dealer__data-item-icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#phone\"}})])]),_c('a',{attrs:{\"href\":_vm.telLink}},[_vm._v(_vm._s(_vm.dealer.properties.phone))])]):_vm._e(),(_vm.faxLink)?_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item-line\"},[_c('span',{staticClass:\"mdl-dealer-search-dealer__data-item-icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#print\"}})])]),_c('a',{attrs:{\"href\":_vm.faxLink}},[_vm._v(_vm._s(_vm.dealer.properties.fax))])]):_vm._e(),(_vm.mailLink)?_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item-line\"},[_c('span',{staticClass:\"mdl-dealer-search-dealer__data-item-icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#mail\"}})])]),_c('a',{attrs:{\"href\":_vm.mailLink}},[_vm._v(_vm._s(_vm.dealer.properties.email))])]):_vm._e(),(_vm.dealer.properties.website)?_c('div',{staticClass:\"mdl-dealer-search-dealer__data-item-line\"},[_c('span',{staticClass:\"mdl-dealer-search-dealer__data-item-icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#globe\"}})])]),_c('a',{attrs:{\"href\":(\"/exit/p/\" + (_vm.dealer.properties.website)),\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.dealer.properties.website))])]):_vm._e()])]:_vm._e()],2),(_vm.dealerStatus)?_c('div',{staticClass:\"mdl-dealer-search-dealer__status\"},[_vm._v(_vm._s(_vm.dealerStatus))]):_vm._e(),(!_vm.isDetail)?_c('div',{staticClass:\"mdl-dealer-search-dealer__detail-button-container\"},[_c('button',{staticClass:\"mdl-dealer-search-dealer__detail-button obj-link obj-link--primary obj-link--small\",on:{\"click\":_vm.handleDetailButtonClick}},[_vm._v(\" \"+_vm._s(_vm.translations.showDetails)+\" \")])]):_vm._e(),_c('div',{staticClass:\"mdl-dealer-search-dealer__tr-corner\"},[(_vm.distance)?_c('div',{staticClass:\"mdl-dealer-search-dealer__distance\"},[_vm._v(_vm._s(_vm.distance))]):_vm._e(),(_vm.index !== -1)?_c('div',{staticClass:\"mdl-dealer-search-dealer__marker\"},[_c('div',{staticClass:\"mdl-dealer-search-marker\",class:( _obj = {}, _obj[_vm.markerModifier] = _vm.markerModifier, _obj )},[_c('div',{staticClass:\"mdl-dealer-search-marker__inner\"},[_c('div',{staticClass:\"mdl-dealer-search-marker__icon\"},[_c('svg',[_c('use',{attrs:{\"xlink:href\":\"/wmedia/pwp/1.12.0/svg/applications-dealer-search.svg#pin-solid\"}})])]),_c('div',{staticClass:\"mdl-dealer-search-marker__text\"},[_vm._v(_vm._s(_vm.index + 1))])])])]):_vm._e()])])])}\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\nimport State from '@/classes/state';\nimport { getMarkerModifier } from '@/utility/map-utils';\nimport Dealer from '@/models/dealer.model';\nimport { DealerDetails } from '@/models/dealer-details.model';\n\nexport default {\n name: 'DealerInfo',\n props: {\n type: {\n type: String,\n required: true,\n },\n marker: {\n type: Object,\n required: true,\n },\n index: {\n type: Number,\n required: true,\n },\n },\n data() {\n const state: State = this.$store.state;\n\n return {\n translations: state.translations,\n };\n },\n computed: {\n dealer(): Dealer {\n return this.marker.data;\n },\n isDetail(): boolean {\n return this.type === 'detail';\n },\n telLink(): string | null {\n const phone = this.dealer.properties.phone;\n\n if (!phone) {\n return null;\n }\n\n const replacedPhone = phone.replace(/\\D/g, '');\n\n return `tel:${replacedPhone}`;\n },\n faxLink(): string | null {\n const fax = this.dealer.properties.fax;\n\n if (!fax) {\n return null;\n }\n\n const replacedFax = fax.replace(/\\D/g, '');\n\n return `fax:${replacedFax}`;\n },\n mailLink(): string | null {\n const email = this.dealer.properties.email;\n\n if (!email) {\n return null;\n }\n\n return `mailto:${email}`;\n },\n distance(): string | null {\n const state: State = this.$store.state;\n const myPlace = state.myPlace;\n\n if (!myPlace) {\n return null;\n }\n\n const config = state.config;\n const translations = state.translations;\n const dealer: Dealer = this.dealer;\n const formattedDistance = parseFloat(dealer.properties.distance.toFixed(config.map.distanceDecimals)).toLocaleString();\n\n return `${formattedDistance} ${translations.distanceUnit}`;\n },\n markerModifier(): string | null {\n const state: State = this.$store.state;\n const dealer: Dealer = this.dealer; \n const config = state.config; \n let centerFilter: string = \"none\"\n if (config.marker.centerFilter != '') centerFilter = config.marker.centerFilter\n\n if (dealer) {\n const cat2: string = dealer.properties.cat2\n //const { mapIconID } = dealer.properties;\n //const markerModifier = getMarkerModifier(mapIconID);\n const markerModifier = getMarkerModifier((cat2.indexOf(centerFilter) > -1) ? 'center' : '');\n \n if (markerModifier) {\n return markerModifier;\n }\n }\n\n return null;\n },\n dealerStatus(): string | null {\n const dealer: Dealer = this.dealer; \n const { markerIcons, config } = this.$store.state;\n let centerFilter: string = \"none\"\n \n if (config.marker.centerFilter != '') centerFilter = config.marker.centerFilter\n\n if (dealer) {\n const cat2: string = dealer.properties.cat2\n \n if ((cat2.indexOf(centerFilter) > -1)) {\n return markerIcons['center'].name;\n }\n }\n\n return null;\n },\n },\n methods: {\n handleBackButtonClick() {\n this.$emit('closeDetails');\n },\n handleDetailButtonClick() {\n const dealerDetails: DealerDetails = {\n dealer: this.dealer,\n marker: this.marker,\n index: this.index,\n };\n\n this.$emit('openDetails', dealerDetails);\n },\n },\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerInfo.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerInfo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DealerInfo.vue?vue&type=template&id=10ffd170&\"\nimport script from \"./DealerInfo.vue?vue&type=script&lang=ts&\"\nexport * from \"./DealerInfo.vue?vue&type=script&lang=ts&\"\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","\n\n\n\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 DealerInfo from './DealerInfo.vue';\nimport Dealer from '@/models/dealer.model';\nimport Marker from '@/models/marker.model';\nimport State from '@/classes/state';\nimport { DealerDetails } from '@/models/dealer-details.model';\n\nexport default {\n name: 'DealerList',\n components: {\n DealerInfo,\n },\n props: {\n markers: {\n type: Array,\n required: true,\n },\n dealerListId: {\n type: String,\n required: true,\n },\n },\n data() {\n const { translations } = this.$store.state;\n\n return {\n scrollElement: null,\n detailsMarker: null,\n dealerDetails: null,\n detailsOpen: false,\n translations,\n };\n },\n computed: {\n activeDealerDetails(): DealerDetails | null {\n return (this.$store.state as State).activeDealerDetails;\n },\n dealerListOpen(): boolean {\n return (this.$store.state as State).dealerListOpen;\n },\n },\n watch: {\n markers(): void {\n this.scrollToTop();\n },\n activeDealerDetails(\n newActiveDealerDetails: DealerDetails | null,\n prevActiveDealerDetails: DealerDetails | null\n ): void {\n this.dealerDetails = newActiveDealerDetails ? newActiveDealerDetails : prevActiveDealerDetails;\n this.detailsOpen = !!newActiveDealerDetails;\n },\n },\n methods: {\n scrollToTop() {\n if (!this.scrollElement) {\n return;\n }\n\n this.scrollElement.scrollTop = 0;\n },\n openDetails(dealerDetails: DealerDetails) {\n this.$store.dispatch('setActiveMarkerId', dealerDetails.dealer.id);\n this.$store.dispatch('setActiveDealerDetails', dealerDetails);\n },\n closeDetails() {\n this.$store.dispatch('setActiveMarkerId', null);\n this.$store.dispatch('setActiveDealerDetails', null);\n },\n handleMouseEnter(marker: Marker<Dealer>) {\n this.highlightMarker(marker, true);\n },\n handleMouseLeave(marker: Marker<Dealer>) {\n const activeDealerDetails: DealerDetails | null = this.activeDealerDetails;\n\n if (activeDealerDetails && marker.data && activeDealerDetails.dealer.id === marker.data.id) {\n // user clicked the marker so it should stay highlighted\n return;\n }\n\n this.highlightMarker(marker, false);\n },\n highlightMarker(marker: Marker<Dealer>, highlight: boolean) {\n const markerData = marker.data;\n\n if (!markerData) {\n return;\n }\n\n const dealerId = markerData.id;\n this.$store.dispatch('setActiveMarkerId', highlight ? dealerId : null);\n },\n },\n mounted() {\n this.scrollElement = this.$el.querySelector('.mdl-dealer-search-list__list');\n },\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DealerList.vue?vue&type=template&id=36d13d7b&\"\nimport script from \"./DealerList.vue?vue&type=script&lang=ts&\"\nexport * from \"./DealerList.vue?vue&type=script&lang=ts&\"\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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 { LMap, LControlZoom, LMarker } from 'vue2-leaflet';\nimport Config from '@/models/config.model';\nimport Vue2LeafletGoogleMutant from 'vue2-leaflet-googlemutant';\nimport Marker from '@/models/marker.model';\nimport { DivIcon, Map } from 'leaflet';\nimport State from '@/classes/state';\nimport Place from '@/models/place.model';\nimport { getMarkerModifier, getMarkerMarkup } from '@/utility/map-utils';\nimport MapLegend from './MapLegend.vue';\nimport DealerList from './DealerList.vue';\nimport Dealer from '@/models/dealer.model';\nimport { DealerDetails } from '@/models/dealer-details.model';\n\nexport default {\n name: 'Map',\n components: {\n LMap,\n LControlZoom,\n LMarker,\n Vue2LeafletGoogleMutant,\n MapLegend,\n DealerList,\n },\n data() {\n const state: State = this.$store.state;\n\n return {\n config: state.config,\n translations: state.translations,\n mapContainer: null,\n mapOptions: {\n zoomControl: false,\n },\n scrollOverlayActive: false,\n scrollOverlayTimeoutId: null,\n dealerListId: 'dealer-search',\n };\n },\n computed: {\n myPlaceMarker(): Marker<void> | null {\n const myPlace = (this.$store.state as State).myPlace;\n\n if (!myPlace) {\n return null;\n }\n\n return {\n latLng: [myPlace.lat, myPlace.lng],\n };\n },\n markers(): Array<Marker<Dealer>> {\n const dealers = (this.$store.state as State).dealers;\n\n return dealers.map(dealer => {\n return {\n latLng: [dealer.geometry.coordinates[1], dealer.geometry.coordinates[0]],\n data: dealer,\n };\n });\n },\n markerCount(): number {\n return this.markers.length;\n },\n zoom(): number {\n return (this.$store.state as State).mapZoom;\n },\n minZoom(): number {\n const config: Config = this.config;\n const markerCount: number = this.markerCount;\n const currentZoom: number = this.zoom;\n\n if (markerCount >= config.map.maxMarkerCount) {\n // if current marker count exceeds maxMarkerCount\n // disable the zoom-out button so we don't show\n // more markers\n return currentZoom;\n }\n\n return config.map.minZoom;\n },\n center(): [number, number] {\n return (this.$store.state as State).mapCenter;\n },\n activeMarkerId(): string | null {\n return (this.$store.state as State).activeMarkerId;\n },\n activeDealerDetails(): DealerDetails | null {\n return (this.$store.state as State).activeDealerDetails;\n },\n dealerListOpen(): boolean {\n return (this.$store.state as State).dealerListOpen;\n },\n },\n watch: {\n activeMarkerId(\n newActiveMarkerId: string | null,\n prevActiveMarkerId: string | null\n ) : void {\n if (prevActiveMarkerId) {\n this.highlightMarkerElement(prevActiveMarkerId, false);\n }\n\n if (newActiveMarkerId) {\n this.highlightMarkerElement(newActiveMarkerId, true);\n }\n },\n activeDealerDetails(\n newActiveDealerDetails: DealerDetails | null,\n prevActiveDealerDetails: DealerDetails | null\n ): void {\n if (prevActiveDealerDetails) {\n this.highlightMarkerElement(prevActiveDealerDetails.dealer.id, false);\n }\n\n if (newActiveDealerDetails) {\n this.highlightMarkerElement(newActiveDealerDetails.dealer.id, true);\n }\n },\n },\n methods: {\n init() {\n this.mapContainer = this.$el.querySelector('#dealer-search-map');\n // console.log('mapContainer', this.mapContainer);\n },\n handleMapReady(map: Map): void {\n // console.log('handleMapReady');\n this.$store.dispatch('setMap', map);\n this.$store.dispatch('setMapInitialized', true);\n },\n handleMapUpdateBounds(): void {\n // console.log('handleMapUpdateBounds');\n this.$store.dispatch('loadDealersByMapBounds');\n },\n handleMapUpdateZoom(zoom: number): void {\n // console.log('handleMapUpdateZoom', zoom);\n this.$store.dispatch('setMapZoom', zoom);\n },\n handleMapUpdateCenter(e: Place): void {\n // console.log('handleMapUpdateCenter', e);\n this.$store.dispatch('setMapCenter', {\n center: [e.lat, e.lng],\n });\n },\n createMyPlaceMarkerIcon(): DivIcon {\n const config: Config = this.config;\n\n return new DivIcon({\n className: 'mdl-dealer-search-marker mdl-dealer-search-marker--black',\n iconSize: config.leaflet.markerIconSize,\n iconAnchor: config.leaflet.iconAnchor,\n html: getMarkerMarkup('pin'),\n });\n },\n createDealerMarkerIcon(marker: Marker<Dealer>, index: number): DivIcon {\n const config: Config = this.config;\n const classnames = ['mdl-dealer-search-marker'];\n const markerData = marker.data;\n let markerId: string | undefined; \n let centerFilter: string = \"none\"\n if (config.marker.centerFilter != '') centerFilter = config.marker.centerFilter\n\n if (markerData) {\n const cat2: string = markerData.properties.cat2\n //const { mapIconID } = markerData.properties;\n const markerModifier = getMarkerModifier((cat2.indexOf(centerFilter) > -1) ? 'center' : '');\n markerId = `marker-${markerData.id}`;\n \n if (markerModifier) {\n classnames.push(markerModifier);\n }\n }\n\n return new DivIcon({\n className: classnames.join(' '),\n iconSize: config.leaflet.markerIconSize,\n iconAnchor: config.leaflet.iconAnchor,\n html: getMarkerMarkup('pin-solid', `${index + 1}`, markerId),\n });\n },\n handleMapWheel(e: WheelEvent): void {\n if (e.ctrlKey || e.metaKey) {\n this.scrollOverlayActive = false;\n return;\n }\n\n e.stopPropagation();\n\n this.scrollOverlayActive = true;\n\n if (this.scrollOverlayTimeoutId) {\n clearTimeout(this.scrollOverlayTimeoutId);\n this.scrollOverlayTimeoutId = null;\n }\n\n this.scrollOverlayTimeoutId = setTimeout(() => {\n this.scrollOverlayActive = false;\n }, 1000);\n },\n handleDealerMarkerMouseEnter(marker: Marker<Dealer>): void {\n this.highlightMarker(marker, true);\n },\n handleDealerMarkerMouseLeave(marker: Marker<Dealer>): void {\n const activeDealerDetails: DealerDetails | null = this.activeDealerDetails;\n\n if (activeDealerDetails) {\n if (marker.data && activeDealerDetails.dealer.id === marker.data.id) {\n // the user clicked the marker so it should stay highlighted\n return;\n } else {\n // the user left a different marker\n // so the activeDealerDetails marker should\n // be highlighted again\n this.$store.dispatch('setActiveMarkerId', activeDealerDetails.dealer.id);\n }\n\n return;\n }\n\n this.highlightMarker(marker, false);\n },\n highlightMarker(marker: Marker<Dealer>, highlight: boolean) {\n const markerData = marker.data;\n\n if (!markerData) {\n return;\n }\n\n const dealerId = markerData.id;\n this.$store.dispatch('setActiveMarkerId', highlight ? dealerId : null);\n },\n /**\n * Highlights the marker with the given ID on the map\n */\n highlightMarkerElement(markerId: string, highlight: boolean): void {\n const markerInner = this.mapContainer.querySelector(`#marker-${markerId}`);\n \n if (!markerInner) {\n return;\n }\n\n const marker = markerInner.parentElement;\n \n if (!marker) {\n return;\n }\n\n marker.classList.toggle('mdl-dealer-search-marker--highlighted', highlight);\n },\n handleDealerMarkerClick(marker: Marker<Dealer>, index: number): void {\n const dealerDetails: DealerDetails = {\n dealer: marker.data as Dealer,\n marker,\n index\n };\n this.$store.dispatch('setDealerListOpen', true);\n this.$store.dispatch('setActiveMarkerId', marker.data?.id);\n this.$store.dispatch('setActiveDealerDetails', dealerDetails);\n },\n /**\n * This method is used\n * to update the marker index\n * in the dealer details view\n * after moving/zooming the map\n */\n updateActiveDealerDetailsMarkerIndex(): void {\n const activeDealerDetails: DealerDetails = this.activeDealerDetails;\n\n if (!activeDealerDetails) {\n return;\n }\n\n // if the dealer details are open\n // try to find the marker by\n // comparing the dealer IDs\n // to update the marker index\n // in the dealer details object\n const prevIndex = activeDealerDetails.index;\n let newIndex = -1;\n\n for (let i = 0, iLen = this.markers.length; i < iLen; i++) {\n const marker: Marker<Dealer> = this.markers[i];\n\n if (marker.data && marker.data.id === activeDealerDetails.dealer.id) {\n // found the marker of the active dealer\n newIndex = i;\n break;\n }\n }\n\n if (prevIndex === newIndex) {\n return;\n }\n \n // index needs to be updated\n const dealerDetails: DealerDetails = {\n dealer: activeDealerDetails.dealer,\n marker: activeDealerDetails.marker,\n index: newIndex\n };\n\n this.$store.dispatch('setActiveDealerDetails', dealerDetails);\n },\n /**\n * Used to highlight the active marker\n * after map was moved/zoomed\n */\n highlightExistingActiveMarker(): void {\n if (this.activeMarkerId) {\n // highlight the active marker again\n // since the user probably\n // moved or zoomed the map\n this.highlightMarkerElement(this.activeMarkerId, true);\n }\n },\n handleToggleButtonClick() {\n this.$store.dispatch('setDealerListOpen', !this.dealerListOpen);\n },\n },\n mounted() {\n this.init();\n },\n updated() {\n this.highlightExistingActiveMarker();\n this.updateActiveDealerDetailsMarkerIndex();\n },\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Map.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Map.vue?vue&type=template&id=cb5727aa&\"\nimport script from \"./Map.vue?vue&type=script&lang=ts&\"\nexport * from \"./Map.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Map.vue?vue&type=style&index=0&lang=css&\"\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","\n\n\n\n\n\n\n\n\n\n\n\nimport DealerSearchLayout from './DealerSearchLayout.vue';\nimport SearchForm from './SearchForm.vue';\nimport Map from './Map.vue';\nimport State from '@/classes/state';\n\nexport default {\n name: 'DealerSearch',\n components: {\n DealerSearchLayout,\n SearchForm,\n Map,\n },\n data() {\n const state: State = this.$store.state;\n\n return {\n config: state.config,\n isInitialized: false,\n };\n },\n computed: {\n showMap(): boolean {\n return (this.$store.state as State).showMap;\n },\n },\n methods: {\n async init() {\n await Promise.all([\n this.loadGoogleMapsApi(),\n this.loadDealerSearchModule(),\n ]);\n\n this.isInitialized = true;\n },\n async loadGoogleMapsApi(): Promise<void> {\n return new Promise((resolve, reject) => {\n const { clientId } = this.config.map.providers.google;\n\n if (window.google && window.google.maps) {\n // google maps API already available\n resolve();\n return;\n }\n\n if (!clientId) {\n reject('Google Maps ClientId missing');\n return;\n }\n\n const script = document.createElement('script');\n script.src = `//maps.googleapis.com/maps/api/js?libraries=places&client=${clientId}`;\n script.onload = () => {\n resolve();\n };\n document.head.appendChild(script);\n });\n },\n loadDealerSearchModule() {\n return Miele.ModuleLoader.importModule(\"modules/applications/dealer-search\");\n },\n },\n mounted() {\n this.init();\n\n }\n};\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearch.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./DealerSearch.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DealerSearch.vue?vue&type=template&id=92a45440&\"\nimport script from \"./DealerSearch.vue?vue&type=script&lang=ts&\"\nexport * from \"./DealerSearch.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DealerSearch.vue?vue&type=style&index=0&lang=css&\"\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","\n\n\n\n\n\n\nimport DealerSearch from \"./components/DealerSearch.vue\";\n\nexport default {\n name: \"App\",\n components: {\n DealerSearch\n },\n};\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--14-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--14-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--14-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--14-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=a175f2e4&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\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","import Config from '@/models/config.model';\nimport Dealer from '@/models/dealer.model';\nimport FilterGroup from '@/models/filter-group.model';\nimport Translations from '@/models/translations.model';\nimport FilterGroupFilterCombi from './filter-group-filter-combi';\nimport { Map } from 'leaflet';\nimport MarkerIcon, { MarkerIconType } from '@/models/marker-icon.model';\nimport Place from '@/models/place.model';\nimport { DealerDetails } from '@/models/dealer-details.model';\n\nexport default class State {\n config: Config;\n translations: Translations;\n filters: Array<FilterGroup>;\n markerIcons: Record<MarkerIconType, MarkerIcon>;\n searchTerm: string;\n selectedFilters: Array<FilterGroupFilterCombi>;\n dealers: Array<Dealer>;\n mapZoom: number;\n mapCenter: [number, number];\n map: Map | null;\n stateUrl: string | null;\n hasValidParams: boolean;\n showMap: boolean;\n mapInitialized: boolean;\n myPlace: Place | null;\n activeMarkerId: string | null;\n activeDealerDetails: DealerDetails | null;\n submit: boolean;\n dealerListOpen: boolean;\n\n constructor(state: State | Record<string, any> = {}) {\n this.config = state.config;\n this.translations = state.translations;\n this.filters = state.filters;\n this.markerIcons = state.markerIcons;\n this.searchTerm = '';\n this.selectedFilters = [];\n this.dealers = [];\n this.mapZoom = this.config.map.zoom;\n this.mapCenter = this.config.map.center;\n this.map = null;\n this.stateUrl = null;\n this.hasValidParams = false;\n this.showMap = false;\n this.mapInitialized = false;\n this.myPlace = null;\n this.activeMarkerId = null;\n this.activeDealerDetails = null;\n this.submit = false;\n this.dealerListOpen = true;\n\n this.init();\n }\n\n private init(): void {\n this.readUrlParams();\n }\n\n /**\n * Reads the URL params and\n * sets the state \n */\n private readUrlParams(): void {\n const urlParams = new URLSearchParams(location.search);\n const place = urlParams.get('place');\n const term = urlParams.get('term');\n\n this.submit = !!urlParams.get('submit');\n\n let hasValidParams = {\n place: false,\n term: false,\n };\n\n if (place) {\n const splittedPlace = place.split(',');\n\n if (splittedPlace.length === 2) {\n const lat = +splittedPlace[0];\n const lng = +splittedPlace[1];\n\n if (!Number.isNaN(lat) && !Number.isNaN(lng)) {\n this.myPlace = { lat, lng };\n hasValidParams.place = true;\n }\n }\n }\n\n if (term) {\n this.searchTerm = term;\n hasValidParams.term = true;\n }\n\n if (Object.keys(hasValidParams).every(key => hasValidParams[key])) {\n // if all map relevant URL params\n // are set the map should already\n // be shown initially\n this.hasValidParams = true;\n this.showMap = true;\n }\n\n this.selectFilters(urlParams);\n }\n\n /**\n * Selects filters based on the set\n * URL params\n * @param urlParams URLSearchParams object\n */\n private selectFilters(urlParams: URLSearchParams): void {\n this.filters.forEach(filterGroup => {\n const filterGroupName = filterGroup.name;\n\n if (!urlParams.has(filterGroupName)) {\n return;\n }\n\n const paramValue = urlParams.get(filterGroupName);\n\n if (!paramValue) {\n return;\n }\n\n const splittedParamValue = paramValue.split(',');\n\n filterGroup.filters.forEach(filter => {\n if (splittedParamValue.indexOf(filter.value) === -1) {\n return;\n }\n\n // the value of the current filter\n // was found in the URL params\n // so we push it to the selected filters\n\n this.selectedFilters.push(\n new FilterGroupFilterCombi(filterGroup, filter)\n );\n });\n });\n }\n}\n","import DealerSearchAppData from '@/models/dealer-search-app-data.model';\n\nexport default window.dealerSearchAppData as DealerSearchAppData;","import State from '@/classes/state';\nimport dealerSearchAppData from '@/utility/dealer-search-app-data';\n\nif (!dealerSearchAppData) {\n throw new TypeError(\"Dealer search app variable is not available\");\n}\n\nconst { config, translations } = dealerSearchAppData;\n\nif (!config) {\n throw new TypeError(\"Dealer search config is not available\");\n}\n\nif (!translations) {\n throw new TypeError(\"Dealer search translations are not available\");\n}\n\n// Create state\nconst state = new State({\n config,\n translations,\n filters: dealerSearchAppData.filters,\n markerIcons: dealerSearchAppData.markerIcons,\n});\n\nexport default state;\n","import State from '@/classes/state';\nimport Filter from '@/models/filter.model';\n\nconst getters = {\n /**\n * Checks if the given filter\n * is currently selected\n */\n isSelectedFilter(state: State) {\n return (filter: Filter) => {\n return state.selectedFilters.some(filterGroupFilterCombi => filterGroupFilterCombi.filter.id === filter.id);\n };\n },\n};\n\nexport default getters;\n","import DealerCollection from '@/models/dealer-collection.model';\nimport { AxiosResponse } from 'axios';\n\ninterface DealerCacheEntry {\n key: string;\n value: Promise<AxiosResponse<DealerCollection>>;\n}\n\nexport default class ApiCache {\n private maxSize: number;\n private entries: Array<DealerCacheEntry>;\n\n constructor(maxSize = 10) {\n this.maxSize = maxSize;\n this.entries = [];\n }\n\n has(key: string): boolean {\n return this.entries.some(entry => entry.key === key);\n }\n\n get(key: string): Promise<AxiosResponse<DealerCollection>> | null {\n for (let i = 0, iLen = this.entries.length; i < iLen; i++) {\n const entry = this.entries[i];\n\n if (entry.key === key) {\n return entry.value;\n }\n }\n\n return null;\n }\n\n set(key: string, value: Promise<AxiosResponse<DealerCollection>>) {\n this.entries.push({\n key,\n value\n });\n\n if (this.entries.length > this.maxSize) {\n // if max cache size is reached\n // remove the first cache entry\n this.entries.shift();\n }\n }\n}","import ApiCache from '@/classes/api-cache';\nimport FilterGroupFilterCombi from '@/classes/filter-group-filter-combi';\nimport State from '@/classes/state';\nimport DealerCollection from '@/models/dealer-collection.model';\nimport { DealerDetails } from '@/models/dealer-details.model';\nimport Dealer from '@/models/dealer.model';\nimport Place from '@/models/place.model';\nimport axios, { AxiosResponse } from 'axios';\nimport { LatLng, Map as LeafletMap } from 'leaflet';\n\nconst apiCache = new ApiCache();\n\nconst actionUtils = {\n appendFiltersToUrl(\n url: string,\n filters: Array<FilterGroupFilterCombi>,\n additionalParams: Array<string>,\n ): string {\n const queryParams = [...additionalParams];\n let resultUrl = url;\n\n if (filters.length) {\n const filterParams: Record<string, Array<string>> = {};\n\n filters.forEach(filterGroupFilterCombi => {\n const name = filterGroupFilterCombi.filterGroup.name;\n\n if (!filterParams[name]) {\n filterParams[name] = [];\n }\n\n filterParams[name].push(filterGroupFilterCombi.filter.value);\n });\n\n Object.keys(filterParams).forEach(param => {\n queryParams.push(`${param}[]=${filterParams[param].join(',')}`);\n });\n }\n\n if (queryParams.length) {\n resultUrl += `${resultUrl.indexOf('?') === -1 ? '?' : '&'}${queryParams.join('&')}`;\n }\n\n return resultUrl;\n },\n calculateDistancesAndSortDealers(state: State, dealers: Array<Dealer>): Array<Dealer> {\n const place = state.myPlace;\n\n if (!place) {\n return dealers;\n }\n\n const config = state.config;\n const latLng = new LatLng(place.lat, place.lng);\n\n dealers.forEach(dealer => {\n const distanceInMeters = latLng.distanceTo([dealer.geometry.coordinates[1], dealer.geometry.coordinates[0]]);\n const calculatedDistance = distanceInMeters * config.map.distanceMultiply / 1000;\n dealer.properties.distance = calculatedDistance;\n });\n\n dealers.sort((dealerA, dealerB) => {\n // The dealers are sorted in the following order:\n // 1. Sort value DESC (configured in CMS (cat2))\n // 2. Distance ASC (if sort value is equal)\n // 3. Name ASC (if sort value and distance is equal)\n\n if (dealerA.properties.sort === dealerB.properties.sort) {\n if (dealerA.properties.distance === dealerB.properties.distance) {\n return dealerA.properties.name1.localeCompare(dealerB.properties.name1);\n }\n\n return dealerA.properties.distance - dealerB.properties.distance;\n }\n\n return dealerB.properties.sort - dealerA.properties.sort\n });\n\n return dealers;\n },\n};\n\nconst actions = {\n /**\n * Selects the given filter\n * @param store The Vuex store\n * @param filterGroupFilterCombi - The filterGroup-filter combination\n */\n selectFilter(store: any, filterGroupFilterCombi: FilterGroupFilterCombi): void {\n store.commit('SELECT_FILTER', filterGroupFilterCombi);\n store.dispatch('replaceState');\n },\n /**\n * Unselects the given filter\n * @param store The Vuex store\n * @param filterGroupFilterCombi - The filterGroup-filter combination\n */\n unselectFilter(store: any, filterGroupFilterCombi: FilterGroupFilterCombi): void {\n store.commit('UNSELECT_FILTER', filterGroupFilterCombi);\n store.dispatch('replaceState');\n },\n /**\n * Sets the given searchterm\n * @param store The Vuex store\n * @param searchTerm - The searchterm\n */\n setSearchTerm(store: any, searchTerm: string): void {\n store.commit('SET_SEARCH_TERM', searchTerm);\n },\n async loadMinDealersByPlace(store: any): Promise<void> {\n const state: State = store.state;\n const place = state.myPlace;\n const map = state.map;\n\n // console.log('loadMinDealersByPlace', place, map);\n\n if (!map) {\n throw new Error('Map not available in loadMinDealersByPlace');\n }\n\n if (!place) {\n throw new Error('Place not available in loadMinDealersByPlace');\n }\n\n const config = state.config;\n const { baseUrl, project, maxDistance, country, minCount } = config.api;\n const selectedFilters = state.selectedFilters;\n const queryParams: Array<string> = [\n `maxdistance=${maxDistance}`,\n `country=${country}`,\n ];\n\n if (selectedFilters.length) {\n const [op1, op2] = config.api.op;\n\n if (op1) {\n queryParams.push(`op1=${op1}`);\n }\n\n if (op2) {\n queryParams.push(`op2=${op2}`);\n }\n }\n\n const url = actionUtils.appendFiltersToUrl(\n `${baseUrl}${project}/bounding/${place.lat}/${place.lng}/${minCount}`,\n selectedFilters,\n queryParams\n );\n\n let response: AxiosResponse<DealerCollection>;\n\n if (apiCache.has(url)) {\n response = (await apiCache.get(url)) as AxiosResponse<DealerCollection>;\n } else {\n const promise = axios.get<DealerCollection>(url);\n apiCache.set(url, promise);\n\n try {\n response = await promise;\n } catch (error) {\n console.log('Error loading dealers', error);\n return;\n }\n }\n\n const { bbox } = response.data;\n\n // console.log('fit bounds', bbox);\n map.fitBounds([[bbox[0], bbox[1]], [bbox[2], bbox[3]]]);\n },\n /**\n * Loads dealers so that the map\n * is filled with markers\n * @param store The Vuex store\n */\n async loadDealersByMapBounds(store: any): Promise<void> {\n const state: State = store.state;\n const map = state.map;\n\n if (!map) {\n throw new Error('Map not available in loadDealersByMapBounds');\n }\n\n const config = state.config;\n const { baseUrl, project, maxDistance, country } = config.api;\n const bounds = map.getBounds();\n const southWest = bounds.getSouthWest();\n const northEast = bounds.getNorthEast();\n const selectedFilters = state.selectedFilters;\n const queryParams: Array<string> = [\n `maxdistance=${maxDistance}`,\n `country=${country}`,\n ];\n\n if (selectedFilters.length) {\n const [op1, op2] = config.api.op;\n\n if (op1) {\n queryParams.push(`op1=${op1}`);\n }\n\n if (op2) {\n queryParams.push(`op2=${op2}`);\n }\n }\n\n const url = actionUtils.appendFiltersToUrl(\n `${baseUrl}${project}/dealer/${southWest.lat}/${southWest.lng}/${northEast.lat}/${northEast.lng}`,\n selectedFilters,\n queryParams\n );\n\n let response: AxiosResponse<DealerCollection>;\n\n if (apiCache.has(url)) {\n response = (await apiCache.get(url)) as AxiosResponse<DealerCollection>;\n } else {\n const promise = axios.get<DealerCollection>(url);\n apiCache.set(url, promise);\n\n try {\n response = await promise;\n } catch (error) {\n console.log('Error loading dealers', error);\n return;\n }\n }\n\n const dealers = actionUtils.calculateDistancesAndSortDealers(state, response.data.features);\n store.commit('SET_DEALERS', dealers);\n },\n /**\n * Sets the map zoom\n * @param store The Vuex store\n * @param payload The payload\n */\n setMapZoom(store: any, zoom: number): void {\n store.commit('SET_MAP_ZOOM', zoom);\n },\n /**\n * Sets the map center\n * @param store The Vuex store\n * @param centerAndZoom The map center and optional zoom\n */\n setMapCenter(store: any, centerAndZoom: { center: [number, number], zoom?: number }): void {\n const { center, zoom } = centerAndZoom;\n\n store.commit('SET_MAP_CENTER', center);\n\n if (typeof zoom === 'number') {\n store.commit('SET_MAP_ZOOM', zoom);\n }\n },\n /**\n * Sets the map object\n * @param store The Vuex store\n * @param map The map object\n */\n setMap(store: any, map: LeafletMap): void {\n store.commit('SET_MAP', map);\n },\n /**\n * Pushes the current state\n * to the history\n */\n replaceState(store: any): void {\n const state: State = store.state;\n const urlParams: Array<[string, string]> = [];\n\n if (state.myPlace) {\n urlParams.push(['place', `${state.myPlace.lat},${state.myPlace.lng}`]);\n }\n\n // add searchterm\n if (state.searchTerm) {\n urlParams.push(['term', state.searchTerm]);\n }\n\n // add filters\n if (state.selectedFilters.length) {\n const filterParams: {\n [x: string]: Array<string>;\n } = {};\n\n state.selectedFilters.forEach(filterGroupFilterCombi => {\n const name = filterGroupFilterCombi.filterGroup.name;\n\n if (!filterParams[name]) {\n filterParams[name] = [];\n }\n\n filterParams[name].push(filterGroupFilterCombi.filter.value);\n });\n\n Object.keys(filterParams).forEach(param => {\n urlParams.push([param, filterParams[param].join(',')]);\n });\n }\n\n const url = `?${urlParams.map(param => `${param[0]}=${encodeURIComponent(param[1])}`).join('&')}`;\n\n if (url === state.stateUrl) {\n return;\n }\n\n history.replaceState({}, '', url)\n store.commit('SET_STATE_URL', url);\n },\n /**\n * Sets the showMap state\n * @param store The Vuex store\n * @param formIsLoading Boolean state\n */\n setShowMap(store: any, showMap: boolean): void {\n store.commit('SET_SHOW_MAP', showMap);\n },\n /**\n * Sets the mapInitialized state\n * @param store The Vuex store\n * @param mapInitialized Boolean state\n */\n setMapInitialized(store: any, mapInitialized: boolean): void {\n store.commit('SET_MAP_INITIALIZED', mapInitialized);\n },\n /**\n * Sets the users place\n * @param store The Vuex store\n * @param myPlace The place\n */\n setMyPlace(store: any, myPlace: Place): void {\n store.commit('SET_MY_PLACE', myPlace);\n },\n /**\n * Sets the active marker id\n * @param store The Vuex store\n * @param activeMarkerId The marker id\n */\n setActiveMarkerId(store: any, activeMarkerId: string | null): void {\n store.commit('SET_ACTIVE_MARKER_ID', activeMarkerId);\n },\n /**\n * Sets the active dealer details\n * @param store The Vuex store\n * @param activeDealerId The dealer details\n */\n setActiveDealerDetails(store: any, activeDealerDetails: DealerDetails | null): void {\n store.commit('SET_ACTIVE_DEALER_DETAILS', activeDealerDetails);\n },\n /**\n * Sets the dealerListOpen state\n * @param store The Vuex store\n * @param dealerListOpen Boolean state\n */\n setDealerListOpen(store: any, dealerListOpen: boolean): void {\n store.commit('SET_DEALER_LIST_OPEN', dealerListOpen);\n },\n};\n\nexport default actions;\n","import FilterGroupFilterCombi from '@/classes/filter-group-filter-combi';\nimport State from '@/classes/state';\nimport { DealerDetails } from '@/models/dealer-details.model';\nimport Dealer from '@/models/dealer.model';\nimport Place from '@/models/place.model';\nimport { Map } from 'leaflet';\n\nconst mutations = {\n /**\n * Selects the given filter\n * @param state The Vuex state \n * @param filterGroupFilterCombi - The filterGroup-filter combination\n */\n SELECT_FILTER(state: State, filterGroupFilterCombi: FilterGroupFilterCombi): void {\n const index = state.selectedFilters.findIndex(selectedFilter => selectedFilter.filter.id === filterGroupFilterCombi.filter.id);\n\n if (index !== -1) {\n return;\n }\n\n state.selectedFilters.push(filterGroupFilterCombi);\n },\n /**\n * Unselects the given filter\n * @param state The Vuex state \n * @param filterGroupFilterCombi - The filterGroup-filter combination\n */\n UNSELECT_FILTER(state: State, filterGroupFilterCombi: FilterGroupFilterCombi): void {\n const index = state.selectedFilters.findIndex(selectedFilter => selectedFilter.filter.id === filterGroupFilterCombi.filter.id);\n \n if (index === -1) {\n return;\n }\n\n state.selectedFilters.splice(index, 1);\n },\n /**\n * Sets the given searchterm\n * @param store The Vuex state\n * @param searchTerm - The searchterm\n */\n SET_SEARCH_TERM(state: State, searchTerm: string): void {\n state.searchTerm = searchTerm;\n },\n /**\n * Sets the given dealers\n * @param state The Vuex state\n * @param dealers Array of dealers\n */\n SET_DEALERS(state: State, dealers: Array<Dealer>): void {\n state.dealers = dealers;\n },\n /**\n * Sets the map zoom\n * @param state The Vuex state\n * @param zoom The map zoom level\n */\n SET_MAP_ZOOM(state: State, zoom: number): void {\n state.mapZoom = zoom;\n },\n /**\n * Sets the map center\n * @param state The Vuex state\n * @param centerAndZoom The map center and optional zoom\n */\n SET_MAP_CENTER(state: State, center: [number, number]): void {\n state.mapCenter = center;\n },\n /**\n * Sets the map object\n * @param state The Vuex state\n * @param map The map object\n */\n SET_MAP(state: State, map: Map): void {\n state.map = map;\n },\n /**\n * Sets the stateUrl to the given URL\n * @param state The Vuex state\n * @param stateUrl The state URL\n */\n SET_STATE_URL(state: State, stateUrl: string): void {\n state.stateUrl = stateUrl;\n },\n /**\n * Sets the showMap state\n * @param state The Vuex state\n * @param showMap Boolean state\n */\n SET_SHOW_MAP(state: State, showMap: boolean): void {\n state.showMap = showMap;\n },\n /**\n * Sets the mapInitialized state\n * @param state The Vuex state\n * @param mapInitialized Boolean state\n */\n SET_MAP_INITIALIZED(state: State, mapInitialized: boolean): void {\n state.mapInitialized = mapInitialized;\n },\n /**\n * Sets the users place\n * @param state The Vuex state\n * @param myPlace The place\n */\n SET_MY_PLACE(state: State, myPlace: Place): void {\n state.myPlace = myPlace;\n },\n /**\n * Sets the active marker id\n * @param state The Vuex state\n * @param activeMarkerId The marker id\n */\n SET_ACTIVE_MARKER_ID(state: State, activeMarkerId: string | null): void {\n state.activeMarkerId = activeMarkerId;\n },\n /**\n * Sets the active dealer details\n * @param state The Vuex state\n * @param activeDealerId The dealer details\n */\n SET_ACTIVE_DEALER_DETAILS(state: State, activeDealerDetails: DealerDetails | null): void {\n state.activeDealerDetails = activeDealerDetails;\n },\n /**\n * Sets the dealerListOpen state\n * @param state The Vuex state\n * @param dealerListOpen Boolean state\n */\n SET_DEALER_LIST_OPEN(state: State, dealerListOpen: boolean): void {\n state.dealerListOpen = dealerListOpen;\n },\n};\n\nexport default mutations;\n","// Import external dependancies\nimport Vue from \"vue\";\nimport Vuex from \"vuex\";\n\n// Import functions\nimport state from \"./state\";\nimport getters from \"./getters\";\nimport actions from \"./actions\";\nimport mutations from \"./mutations\";\n\nVue.use(Vuex);\n\nexport default new Vuex.Store({\n state,\n getters,\n actions,\n mutations,\n});\n","import 'leaflet/dist/leaflet.css';\n\nimport Vue from 'vue'\nimport App from './App.vue'\nimport store from \"./store\";\n\nVue.config.productionTip = false\nVue.config.devtools = true;\nVue.prototype.Miele = window.Miele;\n\nnew Vue({\n store,\n render: h => h(App),\n}).$mount('#dealer-search-app')\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"\", \"\"]);\n// Exports\nmodule.exports = exports;\n"],"sourceRoot":""}