window.wp=window.wp||{},window.wp["./assets/js/frontend.blocks"]=function(e){function o(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,o),s.l=!0,s.exports}var t={};return o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},o.p="",o(o.s=453)}({21:function(e,o,t){"use strict";function a(e,o,t){var a=function(e){var o={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(var t in o)if(void 0!==e.style[t])return o[t]}(document.createElement("div")),s=void 0!==o.animation?o.animation:"",n=void 0!==o.duration?o.duration:"1s",c=void 0!==o.delay?o.delay:"0s";return e.css({"animation-duration":n,"animation-delay":c,"-webkit-animation-delay":c}),e.addClass("animated "+s).one(a,function(){jQuery(this).removeClass("animated "+s),"function"==typeof t&&t()}),this}o.a=a},24:function(e,o,t){function a(e,o){if(e){if("string"==typeof e)return s(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,o):void 0}}var s=t(29);e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},26:function(e,o,t){function a(e){return s(e)||n(e)||c(e)||i()}var s=t(31),n=t(30),c=t(24),i=t(32);e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},29:function(e,o){function t(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,a=new Array(o);t'):"false"==a&&c.html(''),"true"==n?l.html(''):"false"==n&&l.html(''),e(c).on("click",function(e){"true"==a?(t.pauseVideo(),c.html(''),a="false"):"false"==a&&(t.playVideo(),c.html(''),a="true")}),e(l).on("click",function(e){"true"==n?(t.unMute(),l.html(''),n="false"):"false"==n&&(t.mute(),l.html(''),n="true")}),"true"==a&&t.playVideo()},onStateChange:function(e){-1==e.data&&(c.html(''),a="false"),1==e.data&&(c.html(''),a="true"),2==e.data&&(c.html(''),a="false"),3==e.data&&(c.html(''),a="true"),0==e.data&&"false"==s&&(e.target.stopVideo(),c.html(''),a="false")}}})})})}},e(document.body).on("post-load",function(e){l(),d(),p(),r()});var l=function(){n=e(".wp-block-spaceblocks-section__background-video.source-youtube .wp-block-spaceblocks-section__background-video-youtube:not(.spaceblocks-init)"),n.each(function(o){e(this).addClass("spaceblocks-init");var t=a(e(this).parent().attr("youtube-video-url"));e(this).attr("id",t)}),n.length&&(e("#youtube_video_api_js").length||(t(),s()))},d=function(){var o,t,a,s,n,c,i=e(".wp-block-spaceblocks-section__background-slider:not(.spaceblocks-init)");i.length&&"undefined"!=typeof imagesLoaded&&i.each(function(i){c=e(this),o=1==c.data("autoplay"),t=parseInt(c.data("autoplay-speed")),a="fade"==c.data("slide-effect"),s=parseInt(c.data("slide-speed")),n=1==c.data("infinite"),e(this).addClass("spaceblocks-init"),c.imagesLoaded().done(function(c){e(c.elements[0]).slick({arrows:!1,dots:!1,rows:0,slidesToShow:1,slidesToScroll:1,autoplay:o,autoplaySpeed:t,fade:a,speed:s,infinite:n})})})},p=function(){if("undefined"!=typeof WOW){new WOW({boxClass:"spaceblocks-anim",mobile:!1}).init()}},r=function(){e(".wp-block-spaceblocks-section:not(.spaceblocks-init)").each(function(o){e(this).addClass("spaceblocks-init");var t=e(this),a=t.find(".wp-block-spaceblocks-section__background-video.source-media-library").get(0),s=t.find(".spaceblocks-background-video-play"),n=t.find(".spaceblocks-background-video-mute");t.find(".wp-block-spaceblocks-section__background-video.source-media-library").on("play",function(e){s.html('')}).on("pause",function(e){s.html('')}),t.on("click",".spaceblocks-background-video-play",function(e){e.preventDefault(),a&&(a.paused?a.play():a.pause())}),t.ready(function(){a&&(a.paused?s.html(''):s.html(''),a.muted?n.html(''):n.html(''))}),t.on("click",".spaceblocks-background-video-mute",function(e){e.preventDefault(),a&&(a.muted=!a.muted,a.muted?n.html(''):n.html(''))})})};l(),d(),p(),r()})}(jQuery)},458:function(e,o){/*! * spaceblocks-tabs */ !function(e){e(document).ready(function(o){function t(e){for(var o="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=t.length,s=0;s .wp-block-spaceblocks-tabs__tab-content").each(function(o,t){e(t).attr("id","tab-".concat(s,"-").concat(o))}),e(this).find(".wp-block-spaceblocks-tabs__nav-link").each(function(o,t){var a=e(t).closest(".wp-block-spaceblocks-tabs").find(">.wp-block-spaceblocks-tabs__nav-links");e(t).detach(),a.append(t);var s={};e.each(e(t)[0].attributes,function(e,o){s[o.nodeName]=o.nodeValue}),e(t).replaceWith(function(){return e("
  • ",s).append(e(t).contents())})}),e(this).find(".wp-block-spaceblocks-tabs__tab-content-wrapper").eq(a).addClass("is-active-tab"),e(this).tabs({active:a,activate:function(o,t){t.newPanel.closest(".wp-block-spaceblocks-tabs").find(".wp-block-spaceblocks-tabs__tab-content-wrapper").removeClass("is-active-tab"),t.newPanel.addClass("is-active-tab"),e("html, body").add(window,document).stop()}})})};a()})}(jQuery)},459:function(e,o){/*! * spaceblocks-accordion */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){var o=e(".wp-block-spaceblocks-accordion:not(.spaceblocks-init)"),t=0;o.each(function(o,a){e(this).addClass("spaceblocks-init"),t="none"!=e(this).data("active-element")&&parseInt(e(this).data("active-element"),10),e(a).accordion({icons:!1,animate:!1,collapsible:!0,active:t,heightStyle:"content",create:function(e,o){},activate:function(o,t){if(t.newPanel.length){var a=t.newPanel.find(".wp-block-spaceblocks-accordion__content").outerHeight(!0);a&&e(t.newPanel).animate({height:a},{queue:!1,duration:500,complete:function(){e(this).css("height","")}})}if(t.oldPanel.length){var s=t.oldPanel.find(".wp-block-spaceblocks-accordion__content").outerHeight(!0);s&&(e(t.oldPanel).css("height",s),e(t.oldPanel).animate({height:0},{queue:!1,duration:500,complete:function(){e(this).css("height","")}}))}}})})};t()})}(jQuery)},460:function(e,o){/*! * spaceblocks-toggle */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-toggle:not(.spaceblocks-init)").each(function(o,t){e(this).addClass("spaceblocks-init"),e(t).find(".wp-block-spaceblocks-toggle__row").on("click",".wp-block-spaceblocks-toggle__header-wrapper",function(o){var t=e(this).parent(),a=t.find(".wp-block-spaceblocks-toggle__content-wrapper"),s=t.find(".wp-block-spaceblocks-toggle__content").outerHeight(!0);o.preventDefault(),t.hasClass("is-active")?(t.removeClass("is-active"),a.css("height",s),e(a).animate({height:0},{queue:!1,duration:500,complete:function(){e(this).css("height","")}})):(e(a).animate({height:s},{queue:!1,duration:500,complete:function(){e(this).css("height","")}}),t.addClass("is-active"))})})};t()})}(jQuery)},461:function(e,o,t){"use strict";var a=t(21);/*! * spaceblocks-icon-box */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-icon-box:not(.spaceblocks-init)").each(function(o,t){e(t).addClass("spaceblocks-init"),e(".spaceblocks-animation.wp-block-spaceblocks-icon-box").on("mouseenter",function(){Object(a.a)(e(this).find(".wp-block-spaceblocks-icon-box__icon-wrapper"),{animation:e(this).attr("data-animation")})})})};t()})}(jQuery)},462:function(e,o,t){"use strict";var a=t(21);/*! * spaceblocks-media-text-slider */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){var o,t,s,n,c,i,l,d,p=e(".wp-block-spaceblocks-media-text-slider:not(.spaceblocks-init) .wp-block-spaceblocks-media-text-slider__content");p.each(function(p){l=e(this),l.closest(".wp-block-spaceblocks-media-text-slider").addClass("spaceblocks-init"),d=void 0!==e(this).closest(".wp-block-spaceblocks-media-text-slider").data("animation"),o=1==l.data("slide-autoplay"),t=1==l.data("slide-pause-on-hover"),s=parseInt(l.data("slide-autoplay-speed")),n="fade"==l.data("slide-effect"),c=parseInt(l.data("slide-speed")),i=1==l.data("infinite"),d&&e(this).find(".wp-block-spaceblocks-media-text-slider-slide .wp-block-spaceblocks-media-text-slider-slide-content__content").css("opacity","0"),l.on("init",function(){d&&e(this).find(".wp-block-spaceblocks-media-text-slider-slide.slick-active .wp-block-spaceblocks-media-text-slider-slide-content__content").css("opacity","1")});var r=!1;l.on("beforeChange",function(e,o,t,a){r=t==a}),l.on("afterChange",function(o,t,s){if(!r){d&&e(this).find(".wp-block-spaceblocks-media-text-slider-slide .wp-block-spaceblocks-media-text-slider-slide-content__content").css("opacity","0");var n=e(this).find('.wp-block-spaceblocks-media-text-slider-slide[data-slick-index="'+s+'"]').find(".wp-block-spaceblocks-media-text-slider-slide-content__content");d&&n.length&&Object(a.a)(n,{animation:e(this).closest(".wp-block-spaceblocks-media-text-slider").data("animation"),duration:e(this).closest(".wp-block-spaceblocks-media-text-slider").data("duration"),delay:e(this).closest(".wp-block-spaceblocks-media-text-slider").data("delay")},n.css("opacity","1"))}});var u=e(this).closest(".".concat("wp-block-spaceblocks-media-text-slider")),b=!u.hasClass("has-arrows-none"),f=!u.hasClass("has-dots-none");l.slick({rows:0,slidesToShow:1,slidesToScroll:1,autoplay:o,pauseOnHover:t,autoplaySpeed:s,fade:n,speed:c,infinite:i,arrows:b,dots:f})})};t()})}(jQuery)},463:function(e,o){/*! * spaceblocks-images-slider */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){var o,t,a,s,n,c,i,l,d,p,r,u,b,f,k,h,m,v,w,_=e(".wp-block-spaceblocks-images-slider:not(.spaceblocks-init) .wp-block-spaceblocks-images-slider__wrapper");_.length&&"undefined"!=typeof imagesLoaded&&_.each(function(_){o=e(this),o.closest(".wp-block-spaceblocks-images-slider").addClass("spaceblocks-init"),o.imagesLoaded().done(function(o){var _=e(o.elements[0]);t="fade"==_.data("effect"),a=_.data("slides-show")&&"slide"==_.data("effect")?parseInt(_.data("slides-show")):1,s=_.data("slides-show-laptop")?parseInt(_.data("slides-show-laptop")):1,n=_.data("slides-show-tablet")?parseInt(_.data("slides-show-tablet")):1,c=_.data("slides-show-mobile")?parseInt(_.data("slides-show-mobile")):1,i=_.data("slides-scroll")?parseInt(_.data("slides-scroll")):1,l=1==_.data("autoplay"),d=parseInt(_.data("autoplay-speed"))?parseInt(_.data("autoplay-speed")):2e3,p=1==_.data("infinite"),r=parseInt(_.data("animation-speed")),u=1==_.data("center-mode"),b=1==_.data("variable-width"),f=1==_.data("pause-hover"),k="none"!=_.data("arrows"),h="none"!=_.data("dots"),m=_.data("height")?_.data("height"):void 0,v=!!_.data("reset-on-tablet"),w=!!_.data("reset-on-mobile"),e(o.elements[0]).slick({arrows:k,dots:h,rows:0,slidesToShow:a,slidesToScroll:i,autoplay:l,autoplaySpeed:d,fade:t,speed:r,infinite:p,centerMode:u,variableWidth:b,pauseOnHover:f,adaptiveHeight:!0,responsive:[{breakpoint:991,settings:{slidesToShow:s,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:n,slidesToScroll:1}},{breakpoint:468,settings:{slidesToShow:c,slidesToScroll:1}}]})})})};t()})}(jQuery)},464:function(e,o,t){"use strict";var a=t(21);/*! * spaceblocks-image-box */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-image-box:not(.spaceblocks-init)").each(function(o,t){e(t).addClass("spaceblocks-init"),e(".spaceblocks-animation.wp-block-spaceblocks-image-box").on("mouseenter",function(){Object(a.a)(e(this).find(".wp-block-spaceblocks-image-box__image-wrapper"),{animation:e(this).attr("data-animation")})})})};t()})}(jQuery)},465:function(e,o){/*! * spaceblocks-contact-form */ !function(e){var o=this;e(document).ready(function(t){e(document.body).on("post-load",function(e){a()});var a=function(){e(".wp-block-spaceblocks-contact-form__form:not(.spaceblocks-init)").each(function(t,a){e(o).addClass("spaceblocks-init");var s,n=e(a).find("p[class$=__result]"),c=e(a).find("button[type='submit']"),i=e(a).find(".wp-block-spaceblocks-captcha");i.length&&function(){if(i.length){var e=i.data("sitekey"),o=i.data("theme");grecaptcha.ready(function(){s=grecaptcha.render(i[0],{sitekey:e,theme:o})})}}(),n.hide(),e(a).submit(function(o){o.preventDefault(),c.prop("disabled",!0);var t={};e(a).serializeArray().forEach(function(e,o){t[e.name]=e.value});var l={action:"spaceblocks_send_mail",security:SPACEBLOCKS.nonces.recaptcha_v2_contact_form,data:t};""!=n.text()&&n.hide(300),e.post(SPACEBLOCKS.ajax_url,l,function(o){n.hasClass("success")?n.removeClass("success"):n.hasClass("fail")&&n.removeClass("fail"),c.prop("disabled",!1),i.length&&o.success&&grecaptcha.reset(s),o.success?(e(a)[0].reset(),n.addClass("success")):n.addClass("fail"),n.html(o.data),n.show(300)})})})};a()})}(jQuery)},466:function(e,o){/*! * spaceblocks-post-carousel */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){var o=e(".wp-block-spaceblocks-post-carousel:not(.spaceblocks-init) .wp-block-spaceblocks-post-carousel__wrapper");o.length&&"undefined"!=typeof imagesLoaded&&o.each(function(o){spaceblocks_post_carousel=e(this);var t=spaceblocks_post_carousel.data("slider-option"),a=t.sliderSlidesToShowDesktop,s=t.spaceblocks_slidesToShowLaptop,n=t.spaceblocks_slidesToShowTablet,c=t.spaceblocks_slidesToShowMobile,i=t.spaceblocks_slidesToScroll,l=t.spaceblocks_autoplay,d=t.spaceblocks_autoplay_speed,p=t.spaceblocks_infinite,r=t.spaceblocks_animation_speed,u=t.spaceblocks_center_mode,b=t.spaceblocks_pause_on_hover,f=t.spaceblocks_arrows,k=t.spaceblocks_dots;b=!1,i=parseInt(i),a=parseInt(a),s=parseInt(s),c=parseInt(c),n=parseInt(n),f="none"!=f,k="none"!=k,spaceblocks_post_carousel.closest(".wp-block-spaceblocks-post-carousel").addClass("spaceblocks-init"),spaceblocks_post_carousel.imagesLoaded().done(function(o){e(o.elements[0]).slick({arrows:f,dots:k,rows:0,slidesToShow:a,slidesToScroll:i,autoplay:l,autoplaySpeed:d,fade:!1,speed:r,infinite:p,centerMode:u,variableWidth:!1,pauseOnHover:b,adaptiveHeight:!0,responsive:[{breakpoint:991,settings:{slidesToShow:s,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:n,slidesToScroll:1}},{breakpoint:468,settings:{slidesToShow:c,slidesToScroll:1}}]})})})};t()})}(jQuery)},467:function(e,o){/*! * spaceblocks-post-slider */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){var o=e(".wp-block-spaceblocks-post-slider:not(.spaceblocks-init) .wp-block-spaceblocks-post-slider__content");o.length&&"undefined"!=typeof imagesLoaded&&o.each(function(o){spaceblocks_post_slider=e(this);var t=spaceblocks_post_slider.data("slider-option"),a=t.spaceblocks_fade_effect,s=t.spaceblocks_autoplay,n=t.spaceblocks_autoplay_speed,c=t.spaceblocks_infinite,i=t.spaceblocks_animation_speed,l=t.spaceblocks_arrows,d=t.spaceblocks_dots;a="fade"==a,spaceblocks_pause_on_hover=!1,l="none"!=l,d="none"!=d,spaceblocks_post_slider.closest(".wp-block-spaceblocks-post-slider").addClass("spaceblocks-init"),spaceblocks_post_slider.imagesLoaded().done(function(o){e(o.elements[0]).slick({arrows:l,dots:d,rows:0,slidesToShow:1,slidesToScroll:1,autoplay:s,autoplaySpeed:n,fade:a,speed:i,infinite:c,centerMode:!1,variableWidth:!1,pauseOnHover:!1,adaptiveHeight:!0})})})};t()})}(jQuery)},468:function(e,o){/*! * spaceblocks-video-popup */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-video-popup:not(.spaceblocks-init)").each(function(o){e(this).addClass("spaceblocks-init"),e(this).find(".wp-block-spaceblocks-video-popup__link").fancybox({baseClass:"spaceblocks-video-popup"})})};t()})}(jQuery)},469:function(e,o){/*! * spaceblocks-mailchimp */ !function(e){var o=this;e(document).ready(function(t){e(document.body).on("post-load",function(e){a()});var a=function(){e(".wp-block-spaceblocks-mailchimp__form:not(.spaceblocks-init)").each(function(t,a){e(o).addClass("spaceblocks-init");var s=e(a).find("p[class$=__result]"),n=e(a).find("button[type='submit']");s.hide(),e(a).submit(function(o){o.preventDefault(),n.prop("disabled",!0);var t={};e(a).serializeArray().forEach(function(e,o){t[e.name]=e.value});var c={action:"spaceblocks_subscribe",data:t};""!=s.text()&&s.hide(300),e.post(SPACEBLOCKS.ajax_url,c,function(o){s.hasClass("success")?s.removeClass("success"):s.hasClass("fail")&&s.removeClass("fail"),n.prop("disabled",!1),o.success?(e(a)[0].reset(),s.addClass("success")):s.addClass("fail"),s.html(o.data),s.show(300)})})})};a()})}(jQuery)},470:function(e,o,t){"use strict";var a=t(21);/*! * spaceblocks-image-hotspot */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-image-hotspot:not(.spaceblocks-init)").each(function(o,t){e(this).addClass("spaceblocks-init");var s=e(t).data("trigger"),n=e(t).data("theme"),c=e(t).data("tooltip-animation"),i=e(t).data("arrow"),l=e(t).data("image-points");e(".spaceblocks-animation .wp-block-spaceblocks-image-hotspot__dot").on("mouseenter",function(){Object(a.a)(e(this),{animation:e(this).closest(".spaceblocks-animation").attr("data-animation")})}),e(t).find(".wp-block-spaceblocks-image-hotspot__dot").each(function(o,t){var a=e(t),d=a.data("point-id"),p=_unescape(a.find(".wp-block-spaceblocks-image-hotspot__dot-title").html()),r=_unescape(l[d].content),u=l[d].popUpOpen,b=l[d].placement,f=l[d].popUpWidth,k=tippy(t,{maxWidth:parseInt(f,10),hideOnClick:"multiple"!=s||"toggle",theme:n,animation:c,animateFill:!1,interactive:!0,trigger:"hover"==s?"mouseenter":"click",arrow:i,placement:b,allowHTML:!0,content:'
    '.concat(p,'
    ').concat(r,"
    ")});u&&setTimeout(function(){k.show()},1e3),a.find(".wp-block-spaceblocks-image-hotspot__dot-description").remove(),new Waypoint({element:t,handler:function(o){e(this.element).addClass("is-visible")},offset:"100%"})})})};t()})}(jQuery)},471:function(e,o,t){"use strict";var a=t(26),s=t.n(a);/*! * spaceblocks-content-timeline */ !function(e){var o=this;e(document).ready(function(t){e(document.body).on("post-load",function(e){a()});var a=function(){e(".wp-block-spaceblocks-content-timeline:not(.spaceblocks-init)").each(function(t,a){e(o).addClass("spaceblocks-init");var n=!1,c="wp-block-spaceblocks-content-timeline-item",i=e(a).find(".".concat(c)),l="none"!=e(a).data("animation")?e(a).data("animation"):null,d=e(a).find("div[class$=__point]").data("point-color"),p=e(a).data("filling");e.each(i,function(o,t){l&&(t.getBoundingClientRect().top>.8*window.innerHeight?e(t).addClass("is-hidden"):e(t).addClass(l));var a=e(t).find(".".concat(c,"__content-wrapper"));(0==a.children().length||a.find(".".concat(c,"__mobile-meta")).is(":only-child"))&&a.addClass("has-no-content")});var r=function(o){e.each(i,function(t,a){e(a).hasClass("is-hidden")&&a.getBoundingClientRect().top<=.8*window.innerHeight&&(e(a).removeClass("is-hidden"),e(a).addClass(o))}),n=!1};l&&e(document).scroll(function(){n||(n=!0,window.requestAnimationFrame?window.requestAnimationFrame(function(){return r(l)}):setTimeout(function(){return r(l)},250))});var u=e(window).height()/2,b=function(){var o=e(a).find(".".concat(c,"__point")),t=0;e.each(o,function(e,a){o[e+1]&&(t+=o[e+1].getBoundingClientRect().top-a.getBoundingClientRect().top)});var n=e(a).find("div[class$=__line]"),i=o.get(),l=s()(i),d=l[0],p=(l.slice(1),e(d).position().top+e(d).height()/2);n.css({height:t,top:p})},f=function(){var o=e(a).find(".".concat(c,"__point")),t=o.get(),n=s()(t);n[0],n.slice(1).length&&e.each(o,function(o,t){var a=t.getBoundingClientRect().top,s=e(t).parents(".".concat(c))[0];a<=u?(e(s).hasClass("is-active")||e(s).addClass("is-active"),e(t).find(":first-child").css({borderColor:d||""})):(e(s).hasClass("is-active")&&e(s).removeClass("is-active"),e(t).find(":first-child").css({borderColor:""}))})},k=function(){var o=e(a).find(".".concat(c,"__point")),t=e(a).find("div[class*=__bar]")[0],n=t.getBoundingClientRect().top,i=o.toArray(),l=s()(i),d=l[0],p=l.slice(1),r=u-d.getBoundingClientRect().top;if(p.length){var b=p.slice(-1).pop(),f=b.getBoundingClientRect().top;n<=u&&f>=u&&e(t).css({height:r}),n>=u&&e(t).css({height:0}),f<=u&&e(t).css({height:"100%"})}};e(document).ready(function(){var o=setInterval(function(){"complete"==document.readyState&&(b(),p&&(f(),k()),p&&e(document).scroll(function(){f(),k()}),clearInterval(o))},1e3)}),e(window).resize(function(){b(),p&&(f(),k())})})};a()})}(jQuery)},472:function(e,o){/*! * spaceblocks-countdown */ !function(e){e(document).ready(function(o){e(document.body).on("post-load",function(e){t()});var t=function(){e(".wp-block-spaceblocks-countdown:not(.spaceblocks-init)").each(function(o,t){e(this).addClass("spaceblocks-init");var a=jQuery(t).find(".wp-block-spaceblocks-countdown__content"),s=a.data("datetime"),n=a.data("years"),c=a.data("months"),i=a.data("weeks"),l=a.data("days"),d=a.data("hours"),p=a.data("minutes"),r=a.data("seconds"),u=a.data("bg-color"),b="negative"==s?"":s,f="";n&&(f+="Y"),c&&(f+="O"),i&&(f+="W"),l&&(f+="D"),d&&(f+="H"),p&&(f+="M"),r&&(f+="S"),a.countdown({until:b,format:f,onTick:function(e){var o=jQuery(".countdown-section",a);u&&o.css("background-color",u)}})})};t()})}(jQuery)}});; "use strict"; [].forEach.call(document.querySelectorAll('a'), function(el) { el.addEventListener('click', artisan_ilseo_link_clicked); el.addEventListener('auxclick', artisan_ilseo_link_clicked); }); function artisan_ilseo_link_clicked(e){ // e.preventDefault(); // todo remember to remove this var link = this; var linkAnchor = ''; var hasImage = false; var imageTitle = ''; var imageTags = ['img', 'svg']; // if the click wasn't a primary or middle click, or there's no link, exit if(!(e.which == 1 || e.button == 0 ) && !(e.which == 2 || e.button == 4 ) || link.length < 1){ return; } if('1' === artisanInternalSeoFrontend.disableClicks){ return; } if(this.href === undefined || link.href === '#'){ return; } function findLinkText(link){ if(link.children.length > 0){ for(var i in link.children){ var childThis = link.children[i]; if(childThis.children !== undefined && childThis.children.length > 0 && linkAnchor === ''){ findLinkText(childThis); } if(childThis.nodeType === 1 && -1 !== imageTags.indexOf(childThis.nodeName.toLowerCase()) && imageTitle === ''){ hasImage = true; var title = (undefined !== childThis.title) ? childThis.title : ''; if(undefined !== title){ imageTitle = title.trim(); } } linkAnchor = linkAnchor.trim(); imageTitle = (imageTitle !== undefined) ? imageTitle.trim(): ''; }; } if(undefined !== link.outerText){ linkAnchor = link.outerText; } } findLinkText(link); if(linkAnchor === '' && hasImage){ if(imageTitle !== ''){ linkAnchor = artisanInternalSeoFrontend.clicksI18n.imageText + imageTitle; }else{ linkAnchor = artisanInternalSeoFrontend.clicksI18n.imageNoText; } }else if(linkAnchor === '' && !hasImage){ linkAnchor = artisanInternalSeoFrontend.clicksI18n.noText; } // ignore non-content links if(artisanInternalSeoFrontend.trackAllElementClicks === '0' && hasParentElements(link, 'header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar')){ return; } var location = getLinkLocation(link); makeAjaxCall({ action: 'artisan_ilseo_link_clicked', post_id: artisanInternalSeoFrontend.postId, post_type: artisanInternalSeoFrontend.postType, link_url: link.href, link_anchor: linkAnchor, link_location: location }); } window.addEventListener("load", openLinksInNewTab); /** * Sets non nav links on a page to open in a new tab based on the settings. **/ function openLinksInNewTab(){ // exit if non of the links are supposed to open in a new tab via JS if(artisanInternalSeoFrontend.openLinksWithJS == 0 || (artisanInternalSeoFrontend.openExternalInNewTab == 0 && artisanInternalSeoFrontend.openInternalInNewTab == 0) ){ return; } [].forEach.call(document.querySelectorAll('a'), function(element) { // if the link is not a nav link if(!hasParentElements(element, 'header, footer, nav, [id~=header], [id~=menu], [id~=footer], [id~=widget], [id~=comment], [class~=header], [class~=menu], [class~=footer], [class~=widget], [class~=comment], #wpadminbar')){ // if there is a url in the link, there isn't a target and the link isn't a jump link if(element.href && !element.target && element.href.indexOf(window.location.href) === -1){ var url = new URL(element.href); var internal = (window.location.hostname === url.hostname) ? true: false; // if the settings allow it if( (internal && parseInt(artisanInternalSeoFrontend.openInternalInNewTab)) || (!internal && parseInt(artisanInternalSeoFrontend.openExternalInNewTab)) ){ // set the link to open in a new page element.setAttribute('target', '_blank'); } } } }); } // replacement for "$(element).parents('x,y,z')" in if checks function hasParentElements(element, parentList = ''){ var tag = (!element) ? false: element.tagName.toLowerCase(); if(!element || tag === 'body' || tag === 'main' || tag === 'article'){ return false; } if(typeof parentList === 'string'){ parentList = parentList.split(','); } var found = false; for(var i in parentList){ var j = parentList[i]; if(-1 !== j.indexOf('id~=')){ var id = j.replace(/\[id~=|\]/g, '').trim(); if(undefined !== element.id && '' !== element.id && -1 !== element.id.indexOf(id)){ // if the id is set and has a match found = true; break; } }else if(-1 !== j.indexOf('class~=')){ var id = j.replace(/\[class~=|\]/g, '').trim(); if(undefined !== element.classList && '' !== element.className && -1 !== element.className.indexOf(id)){ found = true; break; } }else if(-1 !== j.indexOf('#')){ var id = j.replace(/#/g, '').trim(); if(undefined !== element.id && '' !== element.id && id === element.id){ found = true; break; } }else if(!j.match(/[^a-zA-Z]/)){ // tag match var id = j.trim(); if(element.tagName.toLowerCase() === id){ found = true; break; } } } if(found){ return true; }else if(element.parentNode !== ''){ return hasParentElements(element.parentNode, parentList); } return false; }; function makeAjaxCall(callData = {}){ if(window.jQuery){ callWithJquery(callData); }else{ callWithVanilla(callData); } } function callWithJquery(callData = {}){ jQuery.ajax({ type: 'POST', url: artisanInternalSeoFrontend.ajaxUrl, data: callData, success: function(response){ } }); } function callWithVanilla(callData = {}){ function respond(dat){ if(dat.currentTarget !== undefined){ console.log(dat.currentTarget.response); } } async function ajaxPost (data, callback) { var url = artisanInternalSeoFrontend.ajaxUrl, xhr = new XMLHttpRequest(); var params = []; for(var i in data){ params.push(encodeURIComponent(i) + '=' + encodeURIComponent(data[i])); } params = params.join('&'); xhr.open("POST", url); xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); // xhr.onload = callback.bind(xhr); xhr.send(params); } ajaxPost(callData, respond); } function getLinkLocation(element){ var location = 'Body Content'; var sections = {'Search': ['search', '[id~=search]', '[class~=search]'], 'Header': ['header', '[id~=header]', '[class~=header]'], 'Comment Section': ['[id~=comment]', '[class~=comment]'], 'Footer': ['footer', '[id~=footer]', '[class~=footer]'], 'Menu': ['[id~=menu]', '[class~=menu]'], 'Navigation': ['nav'], 'Sidebar': ['sidebar', '[id~=sidebar]', '[class~=sidebar]', '[id~=widget]', '[class~=widget]'], 'Body Content': ['main', 'article', '[class~=main]'], }; if(!element || element.tagName.toLowerCase() === 'body'){ return location; } var found = false; elementLoop: for(var section in sections){ var sectionData = sections[section]; for(var i in sectionData){ var j = sectionData[i]; if(-1 !== j.indexOf('id~=')){ var id = j.replace(/\[id~=|\]/g, '').trim(); if(undefined !== element.id && '' !== element.id && -1 !== element.id.indexOf(id)){ // if the id is set and has a match found = true; location = section; break elementLoop; } }else if(-1 !== j.indexOf('class~=')){ var id = j.replace(/\[class~=|\]/g, '').trim(); if(undefined !== element.classList && '' !== element.className && -1 !== element.className.indexOf(id)){ found = true; location = section; break elementLoop; } }else if(-1 !== j.indexOf('#')){ var id = j.replace(/#/g, '').trim(); if(undefined !== element.id && '' !== element.id && id === element.id){ found = true; location = section; break elementLoop; } }else if(!j.match(/[^a-zA-Z]/)){ // tag match var id = j.trim(); if(element.tagName.toLowerCase() === id){ found = true; location = section; break elementLoop; } } } } if(found){ return location; }else if(element.parentNode !== ''){ return getLinkLocation(element.parentNode); } return false; } ; ! function (t) { t(".wp-block-spaceblocks-sticky-block").each(function (e) { var i = t(this).attr("data-topspace"), s = t(this).attr("data-cfa"), a = t(this).attr("data-minwidth"), l = t(this).attr("data-maxwidth"), c = t(this).attr("data-pushup"), n = t(this).attr("data-zindex"); t(this).addClass("spaceblocks-sticky-block-" + e).addClass("sticky-block-original-" + e).addClass("block-is-not-sticky"), c && t(c).length < 1 ? (console.warn('STICKY BLOCK DEBUGGER: you selected a Push-up element "' + c + '" but there is no element on the page with that class/ID.'), c = "") : c && t(c).length > 1 && (console.warn("STICKY BLOCK DEBUGGER: there are " + t(c).length + ' elements on the page with the selector/class/ID you selected for the push-up element ("' + c + '"). You can select only ONE element to push the sticky element up.'), c = ""); var r, d = (r = t(this), o = {}, o.display = r.css("display"), o.float = r.css("float"), o.flex = r.css("flex"), o["box-sizing"] = r.css("box-sizing"), o.clear = r.css("clear"), o.overflow = r.css("overflow"), o.transform = r.css("transform"), o), h = t(".sticky-block-original-" + e).attr("style"); null == h && (h = ""), function (e) { t(".sticky-block-original-" + e).wrap('
    ').addClass("sticky-block-active-" + e).before('') }(e), checkElement = setInterval(function () { ! function (e, i, s, a, l, c, o, n, r) { var d = t(".sticky-block-active-" + e), h = t(".sticky-block-original-" + e), g = d.offset(); if (orgElementTop = g.top, c) { var p = t(c).offset(); pushElementTop = p.top } var k = window, m = "inner"; "innerWidth" in window || (m = "client", k = document.documentElement || document.body); viewport = k[m + "Width"], "true" == s && t("body").hasClass("admin-bar") && viewport > 600 ? adminBarHeight = t("#wpadminbar").height() : adminBarHeight = 0; if (t(window).scrollTop() >= orgElementTop - i - adminBarHeight && viewport >= a && viewport <= l) { coordsOrgElement = d.offset(), leftOrgElement = coordsOrgElement.left, widthPlaceholder = d[0].getBoundingClientRect().width, widthPlaceholder || (widthPlaceholder = d.css("width")), heightPlaceholder = d[0].getBoundingClientRect().height, heightPlaceholder || (heightPlaceholder = d.css("height")), widthSticky = d.css("width"), "0px" == widthSticky && (widthSticky = h[0].getBoundingClientRect().width), heightSticky = h.height(), paddingOrgElement = [h.css("padding-top"), h.css("padding-right"), h.css("padding-bottom"), h.css("padding-left")], paddingSticky = paddingOrgElement[0] + " " + paddingOrgElement[1] + " " + paddingOrgElement[2] + " " + paddingOrgElement[3], marginOrgElement = [d.css("margin-top"), d.css("margin-right"), d.css("margin-bottom"), d.css("margin-left")], marginPlaceholder = marginOrgElement[0] + " " + marginOrgElement[1] + " " + marginOrgElement[2] + " " + marginOrgElement[3]; var y = ""; for (var w in n) "inline" == n[w] ? y += w + ":inline-block; " : y += w + ":" + n[w] + "; "; var b = h.outerHeight(); c && t(window).scrollTop() > pushElementTop - i - b - adminBarHeight ? stickyTopMargin = pushElementTop - i - b - t(window).scrollTop() : stickyTopMargin = adminBarHeight, stickyTopMargin -= 1, y += "width:100%; height:" + heightPlaceholder + "px; margin:" + marginPlaceholder + ";", h.removeClass("sticky-block-active-" + e).removeClass("block-is-not-sticky").addClass("element-is-sticky").css("position", "fixed").css("left", leftOrgElement + "px").css("top", i + "px").css("width", widthSticky).css("margin-left", 0).css("padding", paddingSticky).css("margin-top", stickyTopMargin).css("z-index", o), t(".sticky-block-placeholder-" + e).hasClass("sticky-block-active-" + e) || t(".sticky-block-placeholder-" + e).addClass("sticky-block-active-" + e).attr("style", y) } else h.addClass("sticky-block-active-" + e).removeClass("element-is-sticky").addClass("block-is-not-sticky").attr("style", r), t(".sticky-block-placeholder-" + e).hasClass("sticky-block-active-" + e) && t(".sticky-block-placeholder-" + e).removeClass("sticky-block-active-" + e).removeAttr("style").css("width", "0").css("height", "0").css("margin", "0").css("padding", "0") }(e, i, s, a, l, c, n, d, h) }, 10) }) }(jQuery);; const childToggle = document.getElementsByClassName( 'child-toggle-button' ); function toggleSubNav( _e ) { const sub = this.parentNode.querySelector( 'ul.sub-menu' ); const classes = sub.className; if ( classes.indexOf( 'active' ) === -1 ) { sub.className = 'sub-menu active'; } else { sub.className = 'sub-menu'; } } for ( let i = 0; i < childToggle.length; i++ ) { childToggle[ i ].addEventListener( 'click', toggleSubNav, false ); } function scrollTop( e ) { e.preventDefault(); window.scrollTo( { top: 0, behavior: 'smooth' } ); } const backToTop = document.getElementsByClassName("backToTop"); if( backToTop && backToTop.length > 0){ backToTop[0].addEventListener('click', scrollTop, false); } function isIE() { const ua = window.navigator.userAgent; //Check the userAgent property of the window.navigator object const msie = ua.indexOf( 'MSIE ' ); // IE 10 or older const trident = ua.indexOf( 'Trident/' ); //IE 11 return msie > 0 || trident > 0; } //function to show alert if it's IE function ShowIEAlert() { if ( isIE() ) { const ieAlert = document.getElementsByClassName( 'ie_alert' ); ieAlert[ 0 ].className = 'ie_alert'; } } ShowIEAlert(); // eslint-disable-next-line no-undef jQuery( function ( $ ) { if ( $( '.gray_area__small' ) ) { $( window ).on( 'load scroll resize', pxpCheckStickyNav ); function pxpCheckStickyNav() { const wH = $( window ).scrollTop(); const wW = $( window ).width(); const sH = $( '.gray_area__small' ).outerHeight(); if ( wH >= sH ) { $( '#wrapper-navbar' ).attr( 'style', '' ).removeClass( 'sticky' ); if ( wW <= 1080 ) { $( '.navbar-collapse' ).attr( 'style', '' ); } } else { const grayAreaSmall = $( '.gray_area__small' ); if ( grayAreaSmall.length ) { $( '#wrapper-navbar' ) .css( 'top', sH + $( '.gray_area__small' ).position().top ) .addClass( 'sticky' ); } if ( wW <= 1080 ) { $( '.navbar-collapse' ).css( 'top', $( '.navbar-toggler' ).offset().top + $( '.navbar-toggler' ).outerHeight() ); } } } pxpCheckStickyNav(); } } ); // add sticky class to header after scroll jQuery(document).ready(function() { const stickyElm = document.getElementById('wrapper-navbar'); if ( stickyElm ) { const observer = new IntersectionObserver( ([e]) => e.target.classList.toggle("is-sticky", e.intersectionRatio < 1), { threshold: [1] } ); observer.observe(stickyElm); } jQuery('.sticky-nav-toggle').click(function(e) { e.preventDefault(); jQuery(this).parent().toggleClass('toggled'); }); });;