!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=451)}({108:function(t,e,n){"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"}}},143:function(t,e){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}},149:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t.toLowerCase().replace(/ä/gi,"a").replace(/ö/gi,"o").replace(/å/gi,"a").replace(/\W+/gi,"-").replace(" ","-")}},451:function(t,e,n){t.exports=n(452)},452:function(t,e,n){"use strict";var r=a(n(453)),o=a(n(149));function a(t){return t&&t.__esModule?t:{default:t}}var i=n(108),u=i.production.S3_BUCKET_URL,c=document.querySelector("[data-type='menot-widget']:not([id])"),l=(c.getElementsByTagName("script")[0],i.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?"+e+"&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,B=document.createElement("script");B.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(B),(U=new XMLHttpRequest).onreadystatechange=function(){if(4===U.readyState&&200===U.status)try{var t=JSON.parse(U.responseText);if(t.length>0)return function(t){for(var e="",n=0;n-1},kt.prototype.set=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Ct.prototype.clear=function(){this.__data__={hash:new Et,map:new(vt||kt),string:new Et}},Ct.prototype.delete=function(t){return Jt(this,t).delete(t)},Ct.prototype.get=function(t){return Jt(this,t).get(t)},Ct.prototype.has=function(t){return Jt(this,t).has(t)},Ct.prototype.set=function(t,e){return Jt(this,t).set(t,e),this},Lt.prototype.add=Lt.prototype.push=function(t){return this.__data__.set(t,a),this},Lt.prototype.has=function(t){return this.__data__.has(t)},Ft.prototype.clear=function(){this.__data__=new kt},Ft.prototype.delete=function(t){return this.__data__.delete(t)},Ft.prototype.get=function(t){return this.__data__.get(t)},Ft.prototype.has=function(t){return this.__data__.has(t)},Ft.prototype.set=function(t,e){var n=this.__data__;if(n instanceof kt){var o=n.__data__;if(!vt||o.length=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)})}function Gt(t){return fe(t)?t:oe(t)}function Kt(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=ge(t),i=void 0!==e,u=null===e,c=e==e,l=ge(e);if(!u&&!l&&!a&&t>e||a&&i&&c&&!u&&!l||r&&i&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&tl))return!1;var f=a.get(t);if(f&&a.get(e))return f==e;var p=-1,d=!0,h=o&i?new Lt:void 0;for(a.set(t,e),a.set(e,t);++p-1&&t%1==0&&t1&&te(t,e[0],e[1])?e=[]:n>2&&te(e[0],e[1],e[2])&&(e=[e[0]]),Wt(t,function t(e,n,r,o,a){var i=-1,u=e.length;for(r||(r=Qt),a||(a=[]);++i0&&r(c)?n>1?t(c,n-1,r,o,a):q(a,c):o||(a[a.length]=c)}return a}(e,1),[])});function ce(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=t.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(ce.Cache||Ct),n}function le(t,e){return t===e||t!=t&&e!=e}function se(t){return function(t){return ye(t)&&pe(t)}(t)&&ot.call(t,"callee")&&(!lt.call(t,"callee")||at.call(t)==s)}ce.Cache=Ct;var fe=Array.isArray;function pe(t){return null!=t&&he(t.length)&&!de(t)}function de(t){var e=ve(t)?at.call(t):"";return e==v||e==y}function he(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function ve(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ye(t){return!!t&&"object"==typeof t}function ge(t){return"symbol"==typeof t||ye(t)&&at.call(t)==j}var me=z?W(z):function(t){return ye(t)&&he(t.length)&&!!U[at.call(t)]};function _e(t){return pe(t)?Ut(t):Ht(t)}function be(t){return t}n.exports=ue}).call(this,n(55),n(143)(t))},55:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n}});