(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["mbmp_pvm_MapAddressCandidateList"],{"6f2b":function(t,e,s){},a682:function(t,e,s){"use strict";var n=s("6f2b"),a=s.n(n);a.a},baa5:function(t,e,s){var n=s("23e7"),a=s("e58c");n({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},c5fb:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.shouldShowAddressCandidateList,expression:"shouldShowAddressCandidateList"}],class:t.listGroupClass},[s("ul",t._l(t.candidates,(function(e,n){return s("li",{key:n},[s("a",{staticClass:"list-group-item",attrs:{id:"address-candidate-list-"+n,href:t.createLink(e),tabindex:"-1"},on:{click:function(s){return t.closeAddressCandidateList(e)},keydown:t.maybeUsedArrow}},[t._v(" "+t._s(e)+" ")])])})),0)])},a=[],i=(s("baa5"),s("d81d"),s("d4ec")),r=s("bee2"),d=s("262e"),o=s("2caf"),l=s("e11e"),c={name:"MapAddressCandidateList",props:["position"],computed:{map:function(){return this.$store.state.map.map},candidates:function(){return this.$store.state.candidates},shouldShowAddressCandidateList:function(){return this.$store.state.shouldShowAddressCandidateList},activeTopic:function(){return this.$store.state.activeTopic},isMobileOrTablet:function(){return this.$store.state.isMobileOrTablet},listGroupClass:function(){return this.isMobileOrTablet?this.addressAutocompleteEnabled?""===this.addressEntered||null===this.addressEntered?"list-group-mobile":"list-group-mobile-full":"list-group-mobile":this.addressAutocompleteEnabled?""===this.addressEntered||null===this.addressEntered?"list-group":"list-group-full":"list-group"},addressAutocompleteEnabled:function(){return!!this.$config.addressInput&&!0===this.$config.addressInput.autocompleteEnabled}},watch:{shouldShowAddressCandidateList:function(t){!0===t&&this.createControl()}},methods:{createLink:function(t){return this.$store.state.activeTopic?"#/"+t+"/"+this.activeTopic:"#/"+t},createLeafletElement:function(t){var e=function(e){Object(d["a"])(n,e);var s=Object(o["a"])(n);function n(t,e){var a;return Object(i["a"])(this,n),a=s.call(this,e),a.el=t,a}return Object(r["a"])(n,[{key:"onAdd",value:function(){var e=this.el;return t.DomEvent.disableClickPropagation(e),t.DomEvent.disableScrollPropagation(e),e}}]),n}(t.Control),s=this.$el;return new e(s,{position:this.position})},createControl:function(){var t=this.createLeafletElement(l);this.$leafletElement=t;var e=this.map;t.addTo(e)},parentMounted:function(t,e){},maybeUsedArrow:function(t){var e,s,n=t.target.id,a=parseInt(n.substring(n.lastIndexOf("-")+1));e=a<this.candidates.length-1?a+1:a,s=0!==a?a-1:0,"ArrowDown"===t.key&&document.getElementById("address-candidate-list-"+e).focus(),"ArrowUp"===t.key&&document.getElementById("address-candidate-list-"+s).focus()},closeAddressCandidateList:function(t){this.$store.commit("setAddressEntered",t),this.$store.commit("setShouldShowAddressCandidateList",!1)}}},u=c,f=(s("a682"),s("2877")),h=Object(f["a"])(u,n,a,!1,null,"23799a2a",null);e["default"]=h.exports},e58c:function(t,e,s){"use strict";var n=s("fc6a"),a=s("a691"),i=s("50c4"),r=s("a640"),d=s("ae40"),o=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=r("lastIndexOf"),f=d("indexOf",{ACCESSORS:!0,1:0}),h=c||!u||!f;t.exports=h?function(t){if(c)return l.apply(this,arguments)||0;var e=n(this),s=i(e.length),r=s-1;for(arguments.length>1&&(r=o(r,a(arguments[1]))),r<0&&(r=s+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:l}}]);
//# sourceMappingURL=mbmp_pvm_MapAddressCandidateList.6f637f8c.js.map