(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tcg_pvc_CheckboxSet"],{"100b":function(t,e,i){},8704:function(t,e,i){"use strict";var s=i("100b"),a=i.n(s);a.a},a15b:function(t,e,i){"use strict";var s=i("23e7"),a=i("44ad"),r=i("fc6a"),n=i("a640"),o=[].join,c=a!=Object,l=n("join",",");s({target:"Array",proto:!0,forced:c||!l},{join:function(t){return o.call(r(this),void 0===t?",":t)}})},ae0c:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("form",{attrs:{action:"#/"}},[i("fieldset",{staticClass:"options"},t._l(t.currentWmLayers,(function(e){return i("checkbox",{key:e.id,attrs:{layer:e.layer,"layer-name":e.title,"layer-id":e.id,"layer-definition":e.rest.layerDefinition,opacity:e.opacity,legend:e.legend,"should-show-data-links":t.computedShouldShowDataLinks,options:e.options}})})),1)])])},a=[],r=(i("4de4"),i("caad"),i("a15b"),i("d81d"),i("b64b"),i("2532"),i("b85c")),n=i("f076"),o=i("c045"),c={components:{Checkbox:o["default"]},mixins:[n["a"]],computed:{categories:function(){return this.$store.state.map.categories},selectedCategory:function(){return this.$store.state.map.selectedCategory},scale:function(){return this.$store.state.map.scale},computedShouldShowDataLinks:function(){var t;return t=!Object.keys(this.$props.options).includes("shouldShowDataLinks")||this.$props.options.shouldShowDataLinks,t},topicLayers:function(){if(this.$props.options.topicLayers)return this.$props.options.topicLayers;var t,e=[],i=Object(r["a"])(this.$store.state.map.webMapLayersAndRest);try{for(i.s();!(t=i.n()).done;){var s=t.value;e.push({title:s.title})}}catch(a){i.e(a)}finally{i.f()}return e},activeLayers:function(){return this.$store.state.map.webMapActiveLayers},currentWmLayers:function(){var t,e=this.$store.state.map.webMapLayersAndRest,i=this.topicLayers,s=[],a=Object(r["a"])(i);try{for(a.s();!(t=a.n()).done;){var n=t.value;s.push(n.title)}}catch(S){a.e(S)}finally{a.f()}var o,c=[],l=[],u=Object(r["a"])(e);try{for(u.s();!(o=u.n()).done;){var d=o.value,p=this.inputLayerFilter.toLowerCase(),h=this.inputTagsFilter.toLowerCase(),f=d.title.toLowerCase();if(d.tags){var y=d.tags.join().toLowerCase();if(s.includes(d.title)&&f.includes(p)&&d.category.includes(this.selectedCategory)&&y.includes(h)||s.includes(d.title)&&f.includes(h)&&d.category.includes(this.selectedCategory)||s.includes(d.title)&&this.activeLayers.includes(d.title)){var v,g=Object(r["a"])(i);try{for(g.s();!(v=g.n()).done;){var m=v.value;m.title===d.title&&(d.options=m.options)}}catch(S){g.e(S)}finally{g.f()}c.push(d)}}else if(""!==this.inputTagsFilter){if(s.includes(d.title)&&f.includes(h)&&d.category.includes(this.selectedCategory)||s.includes(d.title)&&this.activeLayers.includes(d.title)){var L,b=Object(r["a"])(i);try{for(b.s();!(L=b.n()).done;){var F=L.value;F.title===d.title&&(d.options=F.options)}}catch(S){b.e(S)}finally{b.f()}c.push(d)}}else if(s.includes(d.title)&&f.includes(p)&&d.category.includes(this.selectedCategory)||s.includes(d.title)&&this.activeLayers.includes(d.title)){var w,$=Object(r["a"])(i);try{for($.s();!(w=$.n()).done;){var C=w.value;C.title===d.title&&(d.options=C.options)}}catch(S){$.e(S)}finally{$.f()}c.push(d)}}}catch(S){u.e(S)}finally{u.f()}for(var j=function(){var t=O[k],e=c.filter((function(e){return e.title===t}));e&&e[0]&&l.push(e[0])},k=0,O=s;k<O.length;k++)j();return l},inputLayerFilter:function(){return this.$store.state.layers.inputLayerFilter},inputTagsFilter:function(){return this.$store.state.layers.inputTagsFilter}},methods:{handleLayerFilterFormKeyup:function(t){var e=t.target.value;this.$store.commit("setInputLayerFilter",e)},handleLayerFilterFormX:function(t){t.target[0].value="",this.$store.commit("setInputLayerFilter","")},handleTagsFilterFormKeyup:function(t){var e=t.target.value;this.$store.commit("setInputTagsFilter",e)},handleTagsFilterFormX:function(t){t.target[0].value="",this.$store.commit("setInputTagsFilter","")},didSelectCategory:function(t){var e=t.target.selectedIndex;this.$store.commit("setSelectedCategory",this.categories[e])},preventEnter:function(t){13===t.keyCode&&t.preventDefault()}}},l=c,u=(i("8704"),i("2877")),d=Object(u["a"])(l,s,a,!1,null,"d415bbc4",null);e["default"]=d.exports}}]);
//# sourceMappingURL=tcg_pvc_CheckboxSet.b7290c0f.js.map