!function o(n,r,l){function u(t,e){if(!r[t]){if(!n[t]){var a="function"==typeof require&&require;if(!e&&a)return a(t,!0);if(c)return c(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var s=r[t]={exports:{}};n[t][0].call(s.exports,function(e){return u(n[t][1][e]||e)},s,s.exports,o,n,r,l)}return r[t].exports}for(var c="function"==typeof require&&require,e=0;et.length?t.length:e.data("items"),slidesPerGroup:e.data("scroll"),calculateHeight:e.hasClass("su-carousel-responsive-yes"),loop:!0});e.find(".su-carousel-prev").click(function(e){a.swipeNext()}),e.find(".su-carousel-next").click(function(e){a.swipePrev()})}),i(".su-lightbox-gallery").on("click",".su-slider-slide, .su-carousel-slide, .su-custom-gallery-slide",function(e){e.preventDefault();var t=i(this).parents(".su-lightbox-gallery").data("slides");i.magnificPopup.open({items:t,type:"image",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tPrev:SUShortcodesL10n.magnificPopup.prev,tNext:SUShortcodesL10n.magnificPopup.next,tCounter:SUShortcodesL10n.magnificPopup.counter},tClose:SUShortcodesL10n.magnificPopup.close,tLoading:SUShortcodesL10n.magnificPopup.loading},i(this).data("index"))})})}},{}],3:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){window.SUImageCarousel=function(){var o={MFPItems:{},MFPL10n:SUShortcodesL10n.magnificPopup,initGalleries:function(){var e=document.querySelectorAll(".su-image-carousel");Array.prototype.forEach.call(e,o.initGallery)},initGallery:function(e){if(!e.classList.contains("su-image-carousel-ready")){var t=JSON.parse(e.getAttribute("data-flickity-options")),a=new Flickity(e,t);if(e.removeAttribute("tabindex"),a.on("settle",o.onGallerySettle),e.classList.contains("su-image-carousel-has-lightbox")){a.on("staticClick",o.onFlickityStaticClick),e.addEventListener("click",o.preventGalleryLinkClick),e.addEventListener("keyup",o.onGalleryKeyUp);var i=e.getAttribute("id"),s=e.querySelectorAll(".su-image-carousel-item-content > a");o.MFPItems[i]=[],Array.prototype.forEach.call(s,function(e,t){e.setAttribute("data-gallery",i),e.setAttribute("data-index",t),o.MFPItems[i].push({src:e.getAttribute("href"),title:e.getAttribute("data-caption")})})}e.classList.add("su-image-carousel-ready")}},onFlickityStaticClick:function(e,t,a,i){if(a){var s=a.querySelector("a");s&&o.openMagnificPopupFromLink(s)}},onGallerySettle:function(e){var t=this.element.querySelectorAll(".su-image-carousel-item");Array.prototype.forEach.call(t,function(e,t){var a=e.querySelectorAll("a")[0];a&&(a.setAttribute("tabindex",-1),e.classList.contains("is-selected")&&a.setAttribute("tabindex",0))})},preventGalleryLinkClick:function(e){o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()})&&e.preventDefault()},onGalleryKeyUp:function(e){if(e.keyCode&&13===e.keyCode){var t=o.closest(e.target,function(e){return e.tagName&&"A"===e.tagName.toUpperCase()});t&&o.openMagnificPopupFromLink(t)}},openMagnificPopup:function(e,t){jQuery.magnificPopup.open({items:o.MFPItems[e],type:"image",mainClass:"mfp-img-mobile su-image-carousel-mfp",gallery:{enabled:!0,navigateByImgClick:!0,preload:[1,1],tPrev:o.MFPL10n.prev,tNext:o.MFPL10n.next,tCounter:o.MFPL10n.counter},tClose:o.MFPL10n.close,tLoading:o.MFPL10n.loading},t)},openMagnificPopupFromLink:function(e){var t=e.getAttribute("data-gallery"),a=parseInt(e.getAttribute("data-index"),10);o.openMagnificPopup(t,a)},closest:function(e,t){return e&&(t(e)?e:o.closest(e.parentNode,t))},ready:function(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}};return{ready:o.ready,initGalleries:o.initGalleries,initGallery:o.initGallery}}(),jQuery(document).ready(function(){window.SUImageCarousel.initGalleries()})}},{}],4:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(s){function a(e){(s(window).scrollTop()+s("body").offset().top>e.offset().top||s(window).scrollTop()+s(window).height()
'}}).magnificPopup("open")}else s(this).html(SUShortcodesL10n.noPreview)}),s(".su-frame-align-center, .su-frame-align-none").each(function(){var e=s(this).find("img").width();s(this).css("width",e+12)}),s("body:not(.su-other-shortcodes-loaded)").on("click",".su-expand-link",function(){var e=s(this).parents(".su-expand"),t=e.children(".su-expand-content");e.hasClass("su-expand-collapsed")?t.css("max-height","none"):t.css("max-height",e.data("height")+"px"),e.toggleClass("su-expand-collapsed")}),void 0!==(e=(document.body||document.documentElement).style).transition||void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.MsTransition||void 0!==e.OTransition?s(".su-animate").each(function(){s(this).one("inview",function(e){var t=s(this),a=t.data();window.setTimeout(function(){t.addClass(a.animation),t.addClass("animated"),t.css("visibility","visible")},1e3*a.delay)})}):s(".su-animate").css("visibility","visible"),"onhashchange"in window&&s(window).on("hashchange",t),s("body").addClass("su-other-shortcodes-loaded")})}},{}],5:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){jQuery(document).ready(function(r){r(".su-audio").each(function(){var e=r(this),t="#"+e.data("id"),a=r(t),i=e.data("audio"),s=e.data("swf");a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp3:i}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelectorAncestor:t+"_container",volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp3"})}),r(".su-video").each(function(){var e=r(this),t=e.attr("id"),a=r("#"+t+"_player"),i=e.data("video"),s=e.data("swf"),o=e.data("poster"),n={width:a.width(),height:a.height()};a.jPlayer({ready:function(){a.jPlayer("setMedia",{mp4:i,flv:i,poster:o}),"yes"===e.data("autoplay")&&a.jPlayer("play"),"yes"===e.data("loop")&&a.bind(r.jPlayer.event.ended+".repeat",function(){a.jPlayer("play")})},cssSelector:{gui:".jp-gui, .jp-title"},size:n,cssSelectorAncestor:"#"+t,volume:1,keyEnabled:!0,smoothPlayBar:!0,swfPath:s,supplied:"mp4, flv"})})})}},{}],6:[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){var o=[{name:"offset",options:{offset:[0,8]}}];function e(e){var t=e.getAttribute("id"),a=document.getElementById(t+"_button"),i=JSON.parse(a.getAttribute("data-settings"));document.body.appendChild(e);var s=Popper.createPopper(a,e,{placement:i.position,modifiers:[].concat(o)});"always"===i.behavior&&window.setTimeout(function(){n(e,s)},0),"click"!==i.behavior&&"hover"!==i.behavior||(a.addEventListener("focus",function(){return n(e,s)}),a.addEventListener("blur",function(){return r(e,s,i.hideDelay)})),"hover"===i.behavior&&(a.addEventListener("mouseenter",function(){return n(e,s)}),a.addEventListener("mouseleave",function(){return r(e,s,i.hideDelay)})),e.removeAttribute("style")}function n(e,t){e.classList.add("su-tooltip-visible"),t.setOptions({modifiers:[{name:"eventListeners",enabled:!0}].concat(o)}),t.update()}function r(e,t,a){window.setTimeout(function(){e.classList.remove("su-tooltip-visible"),t.setOptions({modifiers:[{name:"eventListeners",enabled:!1}].concat(o)})},a)}document.addEventListener("DOMContentLoaded",function(){Array.prototype.forEach.call(document.querySelectorAll(".su-tooltip"),e)})}},{}]},{},[1]); //# sourceMappingURL=index.js.map