1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/wp-content/themes/laukaa/dist/scripts/",n(n.s=344)}({1:function(e,t){window.jQuery.default=window.jQuery,e.exports=window.jQuery},144:function(e,t,n){var o,r;function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a,i){"object"===s(t)&&void 0!==e?e.exports=i():void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)}(0,(function(){"use strict";var e="undefined"!=typeof window,t=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=e&&"IntersectionObserver"in window,o=e&&"classList"in document.createElement("p"),r={elements_selector:"img",container:t||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_poster:"poster",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},s=function(e,t){var n,o=new e(t);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:o}})}catch(e){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:o})}window.dispatchEvent(n)},c=function(e,t){return e.getAttribute("data-"+t)},l=function(e,t,n){var o="data-"+t;null!==n?e.setAttribute(o,n):e.removeAttribute(o)},u=function(e){return"true"===c(e,"was-processed")},d=function(e,t){return l(e,"ll-timeout",t)},f=function(e){return c(e,"ll-timeout")},p=function(e,t,n,o){e&&(void 0===o?void 0===n?e(t):e(t,n):e(t,n,o))},m=function(e,t){e._loadingCount+=t,0===e._elements.length&&0===e._loadingCount&&p(e._settings.callback_finish,e)},v=function(e){for(var t,n=[],o=0;t=e.children[o];o+=1)"SOURCE"===t.tagName&&n.push(t);return n},h=function(e,t,n){n&&e.setAttribute(t,n)},g=function(e,t){h(e,"sizes",c(e,t.data_sizes)),h(e,"srcset",c(e,t.data_srcset)),h(e,"src",c(e,t.data_src))},w={IMG:function(e,t){var n=e.parentNode;n&&"PICTURE"===n.tagName&&v(n).forEach((function(e){g(e,t)})),g(e,t)},IFRAME:function(e,t){h(e,"src",c(e,t.data_src))},VIDEO:function(e,t){v(e).forEach((function(e){h(e,"src",c(e,t.data_src))})),h(e,"poster",c(e,t.data_poster)),h(e,"src",c(e,t.data_src)),e.load()}},b=function(e,t){o?e.classList.add(t):e.className+=(e.className?" ":"")+t},y=function(e,t){o?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\s+)"+t+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},_=function(e,t,n){e.addEventListener(t,n)},k=function(e,t,n){e.removeEventListener(t,n)},E=function(e,t,n){k(e,"load",t),k(e,"loadeddata",t),k(e,"error",n)},x=function(e,t,n){var o=n._settings,r=t?o.class_loaded:o.class_error,a=t?o.callback_loaded:o.callback_error,i=e.target;y(i,o.class_loading),b(i,r),p(a,i,n),m(n,-1)},C=["IMG","IFRAME","VIDEO"],T=function(e,t){var n=t._observer;O(e,t),n&&t._settings.auto_unobserve&&n.unobserve(e)},L=function(e){var t=f(e);t&&(clearTimeout(t),d(e,null))},O=function(e,t,n){var o=t._settings;!n&&u(e)||(C.indexOf(e.tagName)>-1&&(function(e,t){var n=function n(r){x(r,!0,t),E(e,n,o)},o=function o(r){x(r,!1,t),E(e,n,o)};!function(e,t,n){_(e,"load",t),_(e,"loadeddata",t),_(e,"error",n)}(e,n,o)}(e,t),b(e,o.class_loading)),function(e,t){var n,o,r=t._settings,a=e.tagName,i=w[a];if(i)return i(e,r),m(t,1),void(t._elements=(n=t._elements,o=e,n.filter((function(e){return e!==o}))));!function(e,t){var n=c(e,t.data_src),o=c(e,t.data_bg);n&&(e.style.backgroundImage='url("'.concat(n,'")')),o&&(e.style.backgroundImage=o)}(e,r)}(e,t),function(e){l(e,"was-processed","true")}(e),p(o.callback_reveal,e,t),p(o.callback_set,e,t))},S=function(e){return!!n&&(e._observer=new IntersectionObserver((function(t){t.forEach((function(t){return function(e){return e.isIntersecting||e.intersectionRatio>0}(t)?function(e,t,n){var o=n._settings;p(o.callback_enter,e,t,n),o.load_delay?function(e,t){var n=t._settings.load_delay,o=f(e);o||(o=setTimeout((function(){T(e,t),L(e)}),n),d(e,o))}
1(e,n):T(e,n)}(t.target,t,e):function(e,t,n){var o=n._settings;p(o.callback_exit,e,t,n),o.load_delay&&L(e)}(t.target,t,e)}))}),{root:(t=e._settings).container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}),!0);var t},A=["IMG","IFRAME"],M=function(e,t){return function(e){return e.filter((function(e){return!u(e)}))}((n=e||function(e){return e.container.querySelectorAll(e.elements_selector)}(t),Array.prototype.slice.call(n)));var n},I=function(t,n){var o;this._settings=function(e){return i({},r,e)}(t),this._loadingCount=0,S(this),this.update(n),o=this,e&&window.addEventListener("online",(function(e){!function(e){var t=e._settings;a(t.container.querySelectorAll("."+t.class_error)).forEach((function(e){y(e,t.class_error),function(e){l(e,"was-processed",null)}(e)})),e.update()}(o)}))};return I.prototype={update:function(e){var n,o=this,r=this._settings;this._elements=M(e,r),!t&&this._observer?(function(e){return e.use_native&&"loading"in HTMLImageElement.prototype}(r)&&((n=this)._elements.forEach((function(e){-1!==A.indexOf(e.tagName)&&(e.setAttribute("loading","lazy"),O(e,n))})),this._elements=M(e,r)),this._elements.forEach((function(e){o._observer.observe(e)}))):this.loadAll()},destroy:function(){var e=this;this._observer&&(this._elements.forEach((function(t){e._observer.unobserve(t)})),this._observer=null),this._elements=null,this._settings=null},load:function(e,t){O(e,this,t)},loadAll:function(){var e=this;this._elements.forEach((function(t){T(t,e)}))}},e&&function(e,t){if(t)if(t.length)for(var n,o=0;n=t[o];o+=1)s(e,n);else s(e,t)}(I,window.lazyLoadOptions),I}))},146:function(e,t,n){!function(t){var n,o,r=!1;function a(e){if("undefined"!=typeof document&&!r){var t=document.documentElement;o=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?t.style.width="calc(100% - "+function(){if(void 0!==n)return n;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),n=t.offsetWidth-t.clientWidth,e.removeChild(t),n}()+"px)":t.style.width="100%",t.style.position="fixed",t.style.top=-o+"px",t.style.overflow="hidden",r=!0}}function i(){if("undefined"!=typeof document&&r){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,o),r=!1}}var s={on:a,off:i,toggle:function(){r?i():a()}};void 0!==e.exports?e.exports=s:t.noScroll=s}(this)},147:function(e,t,n){ 2/** 3 * what-input - A global utility for tracking the current input method (mouse, keyboard or touch). 4 * @version v5.2.6 5 * @link https://github.com/ten1seven/what-input 6 * @license MIT 7 */ 8var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",o=n,r=Date.now(),a="false",i=["button","input","select","textarea"],s=[],c=[16,17,18,91,93],l=[],u={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,f={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},m=!1;try{var v=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,v)}catch(e){}var h=function(){var e=!!m&&{passive:!0};document.addEventListener("DOMContentLoaded",g),window.PointerEvent?(window.addEventListener("pointerdown",w),window.addEventListener("pointermove",y)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",w),window.addEventListener("MSPointerMove",y)):(window.addEventListener("mousedown",w),window.addEventListener("mousemove",y),"ontouchstart"in window&&(window.addEventListener("touchstart",w,e),window.addEventListener("touchend",w))),window.addEventListener(T(),y,e),window.addEventListener("keydown",w),window.addEventListener("keyup",w),window.addEventListener("focusin",_),window.addEventListener("focusout",k)},g=function(){if(a=!(e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(o=window.sessionStorage.getItem("what-intent"))}catch(e){}b("input"),b("intent")},w=function(e){var t=e.which,r=u[e.type];"pointer"===r&&(r=x(e));var a=!l.length&&-1===c.indexOf(t),s=l.length&&-1!==l.indexOf(t),d="keyboard"===r&&t&&(a||s)||"mouse"===r||"touch"===r;if(C(r)&&(d=!1),d&&n!==r&&(E("input",n=r),b("input")),d&&o!==r){var f=document.activeElement;f&&f.nodeName&&(-1===i.indexOf(f.nodeName.toLowerCase())||"button"===f.nodeName.toLowerCase()&&!S(f,"form"))&&(E("intent",o=r),b("intent"))}}
8,b=function(t){e.setAttribute("data-what"+t,"input"===t?n:o),L(t)},y=function(e){var t=u[e.type];"pointer"===t&&(t=x(e)),O(e),(!d&&!C(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&o!==t&&(E("intent",o=t),b("intent"))},_=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):k()},k=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},E=function(e,t){if(a)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},x=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},C=function(e){var t=Date.now(),o="mouse"===e&&"touch"===n&&t-r<200;return r=t,o},T=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},L=function(e){for(var t=0,r=s.length;t<r;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:o)},O=function(e){f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0},S=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(u[T()]="mouse",h()),{ask:function(e){return"intent"===e?o:n},element:function(){return t},ignoreKeys:function(e){c=e},specificKeys:function(e){l=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=o()},344:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n.n(o),a=(n(146),n(147),function(e){if(e){var t=r()(".header-primary-nav-wrapper"),n=r()('[data-header-toggle="desktop-primary-nav"]'),o=r()(".header-primary-nav-lvl-1__item");n.on("click",(function(){n.toggleClass("is-active"),t.toggleClass("open"),r()("body").toggleClass("primary-nav-open")})),o.on("mouseover",(function(e){r()(e.currentTarget).addClass("menu-delay")})),o.on("mouseout",(function(e){r()(e.currentTarget).removeClass("menu-delay")}))}}),i=function(e){e&&r()('[data-header-toggle="sub-menu"]').on("click",(function(e){var t=r()(e.currentTarget);t.parent().toggleClass("toggle-open"),t.parent().children(".header-primary-nav-lvl").toggleClass("toggle-open"),t.parent().siblings().removeClass("toggle-open");var n=t.attr("data-aria-label-close"),o=t.attr("aria-label");t.attr("data-aria-label-close",o),t.attr("aria-label",n),t.attr("aria-expanded",(function(e,t){return"true"===t?"false":"true"}))}))},s=r()("#header > .container-fluid"),c=function(e){var t=function(){var e=0;return s.length>0&&(e=s.outerHeight(!1)),e}();e.size()>0&&r()("html, body").animate({scrollTop:e.offset().top-t-50},500)},l=function(){var e=r()("body");if(e.hasClass("has-fixed-header")){var t=r()("#header"),n=t.outerHeight();e.css("margin-top",n),window.onscroll=function(){window.pageYOffset>n?t.addClass("sticky"):t.removeClass("sticky")}}},u=n(144),d=n.n(u),f=function(e){e.preventDefault();var t=r()(e.currentTarget).closest("li.sidemenu-page-item");t.hasClass("sidemenu-current-page-ancestor")||t.hasClass("sidemenu-current-page-parent")||t.hasClass("sidemenu-current-page")?t.removeClass("sidemenu-current-page-ancestor sidemenu-current-page-parent sidemenu-current-page"):t.toggleClass("sidemenu-page-item--opened")};r()(document).ready((function(){var e,t,n,o,s,u,p;new d.a({elements_selector:"[data-lazy]",use_native:!0}),window.onresize=function(){r()(window).trigger("window:resize")},r()(window).on("window:resize",(function(){l()})),l(),function(){var e=r()(".header");function t(){if(window.innerWidth<1200){var t=r()(".header-mob .header-mob__wrapper"),n=r()(".center-header__language-links .b-language-nav"),o=r()(".header-bottom").find(".header-primary-nav"),a=r()(".center-header__language-links .header-secondary-nav"),i=r()(".up-header__row .sub-site-links");n.detach().clone().appendTo(t),n.remove(),e.hasClass("header-laukaa")||(o.detach().clone().appendTo(t),o.remove()),a.clone().appendTo(t),a.remove(),i.clone().appendTo(t),i.remove()}else{var s=r()(".header-mob__wrapper .b-language-nav"),c=r()(".header-mob__wrapper .header-primary-nav"),l=r()(".header-mob__wrapper .header-secondary-nav"),u=r()(".header-mob__wrapper .sub-site-links");u.clone().appendTo(".up-header__row"),u.remove(),l.clone().appendTo(".center-header__language-links"),l.remove(),e.hasClass("header-laukaa")||(c.detach().clone().appendTo(".header-primary-nav-container"),c.remove()),s.clone().appendTo(".center-header__language-links"),s.remove()}}function n(){var t=window.innerWidth,n=r()(".header-laukaa-bottom-mobile-anchor");if(e.hasClass("header-laukaa")&&t<1024&&n.length>0){var o=r()(".header-laukaa-bottom");o.detach().clone().insertAfter(n),o.remove()}else{var a=r()(".header-laukaa-bottom");a.detach().clone().insertAfter(".header .header-bottom"),a.remove()}}window.onresize=function(){r()(window).trigger("window:resize")},r()(window).on("window:resize",(function(){t(),n()})),t(),n()}(),r()(window).width()<768&&r()(".b-blog-lift__content .b-blog-lift__title").each((function(e){console.log(e+": "+r()(this).parent().next());var t=r()(this),n=r()(this).parent().parent().parent();t.detach().clone().appendTo(n),t.remove()})),e="",t=!1,(n=window.innerWidth)>=1200!==e&&(t=!0),e=n>=1200,a(t),i(t),window.onresize=function(){r()(window).trigger("window:resize")},r()(window).on("window:resize",(function(){var n=window.innerWidth;n>=1200!==e&&(t=!0),e=n>=1200,setTimeout((function(){a(t),i(t),t=!1}),500)})),o=r()(".center-header__mob-buttons--hamburger-self"),s=r()('[data-header-toggle="mob-primary-nav"]'),o.on("click",(function(){r()("body").toggleClass("mob-primary-nav-open"),o.parent().find("div.nav-icon").toggleClass("open"),s.toggleClass("open-mob-menu"),s.slideToggle("fast");var e=o.attr("data-aria-label-close"),t=o.attr("aria-label");o.attr("data-aria-label-close",t),o.attr("aria-label",e),s.attr("aria-expanded",(function(e,t){return"true"===t?"false":"true"}))}
8)),function(){if(r()("button.top-page").on("click",(function(){var e=r()("body").offset().top;r()("body, html").animate({scrollTop:e},500),r()("a").first().focus()})),r()("button.top-after-page").on("click",(function(){var e=r()("#header-laukaa-bottom").offset().top;r()("body, html").animate({scrollTop:e},500),r()("#header-laukaa-bottom a").first().focus()})),r()('a[href^="#"]').on("click",(function(e){e.preventDefault();var t=e.currentTarget.hash;if(console.log(t),t){var n=r()(t);n&&c(n)}})),window.location.hash){var e=location.hash.substr(1),t=r()("#"+e);c(t)}}(),r()(document).on("click keyup",(function(e){if(27===(e.keyCode||e.which)){var t=r()(".header-primary-nav-lvl-2");t.hide("fast"),t.removeClass("open")}})),r()(".b-lift-contact-card__button").on("click",(function(e){var t=r()(e.currentTarget),n=t.attr("id").substr(5);console.log(n),r()(".b-lift-contact-card__content").hasClass("card-open")?(t.parent().find(".b-lift-contact-card__content").slideUp(300),t.removeClass("plus-icon-open")):(t.parent().find(".b-lift-contact-card__content").slideToggle(300),t.toggleClass("plus-icon-open"),r()("#card-"+n).toggleClass("card-open"))})),u=r()(".sub-sidemenu-toggle"),p=r()(".sidemenu-nav-lvl-0__link"),u.on("click",(function(e){f(e)})),p.on("click",(function(e){f(e)})),r()(".b-social-share__item--copy-to-clipboard").on("click",(function(e){e.preventDefault();var t=r()(e.currentTarget).attr("data-url-to-copy"),n=r()("<input>");r()("body").append(n),n.val(t).select(),document.execCommand("copy"),n.remove(),r()(".b-social-share__item--copied-to-clipboard").show().fadeOut(2e3)})),r()(".b-single-accordion-box__toggle-btn").on("click",(function(e){e.preventDefault();var t=r()(e.currentTarget),n=t.closest(".b-single-accordion-box");t.closest(".b-single-accordion-box").find(".b-single-accordion-box__content").slideToggle(),n.toggleClass("b-single-accordion-box--opened"),t.attr("aria-expanded",(function(e,t){return"true"===t?"false":"true"}))})),"fi"===r()("html").attr("lang")&&r()(document).ajaxComplete((function(){r()(".acf-notice p").each((function(e,t){var n=r()(t),o=n.text();n.text(o.replace("Please fill in this field.","Tämä kenttä on pakollinen.").replace("Title arvo on pakollinen","Tapahtuman otsikko on pakollinen."))}))}))}))}}); 9//# sourceMappingURL=main-92cdb3b5c40f57a61d9d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.