!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/",e(e.s=448)}({107:function(t,n,e){"use strict";t.exports={development:{HOST:"http://localhost:5030",API_URL:"/api/v1",GA_ID:"UA-31959050-6",BOOTSTRAP_URL:"//nexus.ensighten.com/alma/menotdev/Bootstrap.js",S3_BUCKET_URL:"http://localhost:5030"},build:{HOST:"http://localhost:5030",API_URL:"/api/v1",GA_ID:"UA-31959050-6",BOOTSTRAP_URL:"//nexus.ensighten.com/alma/menotdev/Bootstrap.js",S3_BUCKET_URL:"http://localhost:5030"},qa:{HOST:"https://meno-test.almaregions.fi",API_URL:"https://meno-test.almaregions.fi/api/v1",GA_ID:"UA-31959050-6",BOOTSTRAP_URL:"//nexus.ensighten.com/alma/menotdev/Bootstrap.js",S3_BUCKET_URL:"https://s3-eu-west-1.amazonaws.com/am-meno-test"},production:{HOST:"https://menot.info",API_URL:"https://menot.info/api/v1",GA_ID:"UA-31959050-1",BOOTSTRAP_URL:"//nexus.ensighten.com/alma/menot/Bootstrap.js",S3_BUCKET_URL:"https://s3-eu-west-1.amazonaws.com/am-meno"}}},142:function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},148:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=function(t){return t.toLowerCase().replace(/ä/gi,"a").replace(/ö/gi,"o").replace(/å/gi,"a").replace(/\W+/gi,"-").replace(" ","-")}},448:function(t,n,e){t.exports=e(449)},449:function(t,n,e){"use strict";var r=i(e(450)),o=i(e(148));function i(t){return t&&t.__esModule?t:{default:t}}var a=e(107),u=a.production.S3_BUCKET_URL,c=document.querySelector("[data-type='menot-widget']:not([id])"),l=(c.getElementsByTagName("script")[0],a.production.HOST),s=new Date,f=s.toISOString().split("T")[0],p=new Date(f).setDate(s.getDate()+1),d=new Date(p).toISOString().split("T")[0];function h(t){return t.replace(/[\[\]"\s]/gi,"")}var v=[void 0!==c.dataset.region?"region="+c.dataset.region:null,void 0!==c.dataset.counties?"counties="+h(c.dataset.counties):null,void 0!==c.dataset.ignore?"ignore="+c.dataset.ignore:null,void 0!==c.dataset.categories?"categories="+h(c.dataset.categories):null].filter(function(t){return null!==t}).join("&"),y=void 0!==c.dataset.counties?c.dataset.counties.split(","):[],g=c.dataset.region,m=c.dataset.title,_="menot_widget_"+Date.now();c.setAttribute("id",_);for(var b=document.getElementsByTagName("style"),w=!1,x=!1,j=0;j\n \n \n '+t.CategoryName+"\n "+(t.Starred?' | Toimituksen valinta':"")+"\n \n "+(t.Starred?'':"")+'\n \n '+t.Name+'\n \n \n '+t.DisplayDates+'\n \n \n '+t.CountyName+" | "+t.PlaceName+"\n \n \n \n "},F=document.getElementById(_).offsetWidth>=300?"1.2em":"1em";c.innerHTML='\n\n 0?"county="+y:"";return l+"/"+t+"/0-kaikki?"+n+"&from="+f+"&to="+d}()+'"\n target="_blank"\n style="text-decoration: none;"\n >\n \n \n '+(m?"":"menot")+"\n "+(0===y.length&&!m&&g?" - "+g+" ":"")+"\n "+(1!==y.length||m?"":" - "+y[0]+"")+"\n "+(m?"":" "+C(f)+" - "+C(d)+"")+"\n "+(m?""+m+"":"")+'\n \n \n \n \n \n \n \n \n x\n \n \n\n';var U=document.createElement("script");U.text="\n function "+_+'_filter(searchString) {\n var inputField = document.querySelector("#'+_+' input");\n var button = document.querySelector("#'+_+' button");\n\n if (searchString.length > 0) {\n button.style.display = "flex"\n } else {\n button.style.display = "none"\n setTimeout( function() { inputField.value = \'\' }, 1)\n searchString = \'\'\n }\n\n var listElements = document.querySelectorAll("#'+_+' > .menot-widget-content > .list > a > *");\n // show & hide the elements according to search\n for (var i=0; i < listElements.length; i++) {\n var item = listElements[i]\n console.log(\'item: \', item)\n if (item.textContent.toLowerCase().indexOf(searchString.toLowerCase()) === -1 && searchString.length > 0) {\n item.style.display = "none"\n item.style.borderBottom = "0px"\n } else {\n item.style.display = "flex"\n item.style.borderBottom = "3px solid #E6E6E6"\n }\n }\n document.querySelector("#'+_+" .list\").style.display = 'none'\n document.querySelector(\"#"+_+" .list\").style.display = 'block'\n }\n "+_+"_filter('')\n",c.appendChild(U),function(){var t=new XMLHttpRequest;t.onreadystatechange=function(){if(4===t.readyState&&200===t.status)try{var n=JSON.parse(t.responseText);if(n.length>0)return function(t){for(var n="",e=0;e-1},Tt.prototype.set=function(t,n){var e=this.__data__,r=Lt(e,t);return r<0?e.push([t,n]):e[r][1]=n,this},At.prototype.clear=function(){this.__data__={hash:new Ot,map:new(pt||Tt),string:new Ot}},At.prototype.delete=function(t){return Ht(this,t).delete(t)},At.prototype.get=function(t){return Ht(this,t).get(t)},At.prototype.has=function(t){return Ht(this,t).has(t)},At.prototype.set=function(t,n){return Ht(this,t).set(t,n),this},Et.prototype.add=Et.prototype.push=function(t){return this.__data__.set(t,i),this},Et.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.clear=function(){this.__data__=new Tt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,n){var e=this.__data__;if(e instanceof Tt){var o=e.__data__;if(!pt||o.length=u)return c;var l=e[r];return c*("desc"==l?-1:1)}}return t.index-n.index}(t,n,e)})}function zt(t){return un(t)?t:Yt(t)}function $t(t,n){if(t!==n){var e=void 0!==t,r=null===t,o=t==t,i=dn(t),a=void 0!==n,u=null===n,c=n==n,l=dn(n);if(!u&&!l&&!i&&t>n||i&&a&&c&&!u&&!l||r&&a&&c||!e&&c||!o)return 1;if(!r&&!i&&!l&&tl))return!1;var f=i.get(t);if(f&&i.get(n))return f==n;var p=-1,d=!0,h=o&a?new Et:void 0;for(i.set(t,n),i.set(n,t);++p-1&&t%1==0&&t1&&Jt(t,n[0],n[1])?n=[]:e>2&&Jt(n[0],n[1],n[2])&&(n=[n[0]]),Nt(t,function t(n,e,r,o,i){var a=-1,u=n.length;for(r||(r=Kt),i||(i=[]);++a0&&r(c)?e>1?t(c,e-1,r,o,i):q(i,c):o||(i[i.length]=c)}return i}(n,1),[])});function rn(t,n){if("function"!=typeof t||n&&"function"!=typeof n)throw new TypeError(o);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],i=e.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return e.cache=i.set(o,a),a};return e.cache=new(rn.Cache||At),e}function on(t,n){return t===n||t!=t&&n!=n}function an(t){return function(t){return pn(t)&&cn(t)}(t)&&nt.call(t,"callee")&&(!at.call(t,"callee")||et.call(t)==s)}rn.Cache=At;var un=Array.isArray;function cn(t){return null!=t&&sn(t.length)&&!ln(t)}function ln(t){var n=fn(t)?et.call(t):"";return n==v||n==y}function sn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function fn(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function pn(t){return!!t&&"object"==typeof t}function dn(t){return"symbol"==typeof t||pn(t)&&et.call(t)==j}var hn=z?W(z):function(t){return pn(t)&&sn(t.length)&&!!U[et.call(t)]};function vn(t){return cn(t)?Ct(t):It(t)}function yn(t){return t}e.exports=en}).call(this,e(61),e(142)(t))},61:function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e}});