!function(){"use strict";window.jnews=window.jnews||{},window.jnews.carousel=window.jnews.carousel||{};var e=function(){var e="object"==typeof jnews&&"object"==typeof jnews.library,t="function"==typeof jnews.tns;if(t&&e)var a=jnews.library,s=function(e){var t=e.container;if(!a.hasClass(t,"jeg_tns_active")){var s=t.getElementsByClassName("jeg_carousel_post");if(s.length){e.container=s[0];var n,o=function(e){var s={textDirection:"ltr",container:e.container,controls:!1,gutter:20,controlsText:["",""],nav:!1,loop:!0,items:3,autoplay:!1,autoplayTimeout:3e3,animateOut:"tns-fadeOut",autoHeight:!0,mouseDrag:!0,responsive:!1,edgePadding:0,lazyload:!1,lazyloadSelector:"img",mode:"carousel",speed:300,onInit:!1},o=!1;return s.items=void 0===s.container.dataset.items?3:parseInt(s.container.dataset.items),s.controls=void 0===s.container.dataset.nav?s.controls:s.container.dataset.nav,s.autoplay=void 0===s.container.dataset.autoplay?s.autoplay:s.container.dataset.autoplay,s.autoplayTimeout=void 0===s.container.dataset.delay?s.autoplayTimeout:parseInt(s.container.dataset.delay),s.gutter=void 0===s.container.dataset.margin?s.gutter:parseInt(s.container.dataset.margin),s.lazyload=void 0===s.container.dataset.lazyload?s.lazyload:s.container.dataset.lazyload,s.lazyloadSelector=void 0===s.container.dataset.lazyload?s.lazyloadSelector:"imgs","undefined"!=typeof jnewsoption&&(o=1==jnewsoption.rtl),"undefined"!=typeof jnewsgutenbergoption&&(o=1==jnewsgutenbergoption.rtl),s.textDirection=o?"rtl":"ltr",a.hasClass(t,"jeg_postblock_carousel_1")?(n=1,a.hasClass(t,"jeg_col_12")&&(s.items=void 0===s.container.dataset.items?5:parseInt(s.container.dataset.items)),s.controlsPosition="bottom",s.responsive={0:{items:1},321:{items:2,gutter:s.gutter>15?15:s.gutter},568:{items:3,gutter:s.gutter>15?15:s.gutter},1024:{items:s.items}},s):a.hasClass(t,"jeg_postblock_carousel_2")?(n=2,s.items=void 0===s.container.dataset.items?3:parseInt(s.container.dataset.items),s.autoHeight=!1,s.responsive={0:{items:1},568:{items:2},768:{items:s.items>3?3:s.items},1024:{items:s.items}},s):a.hasClass(t,"jeg_postblock_carousel_3")?(n=3,a.hasClass(t,"jeg_col_12")?(s.items=void 0===s.container.dataset.items?3:parseInt(s.container.dataset.items),s.responsive={0:{items:1},568:{items:2},768:{items:s.items>3?3:s.items},1024:{items:s.items}}):a.hasClass(t,"jeg_col_6")||a.hasClass(t,"jeg_col_7")||a.hasClass(t,"jeg_col_8")?(s.items=void 0===s.container.dataset.items?2:parseInt(s.container.dataset.items),s.responsive={0:{items:1},568:{items:2},1024:{items:s.items>2?2:s.items}}):(s.items=1,s.responsive={0:{items:1},568:{items:2},1024:{items:s.items}}),s):s}(e);if(e=a.extend(o,e||{}),n&&!a.hasClass(e.container,"jeg_tns_active")){var i=jnews.tns(e);return void 0!==i&&(i.events.on("dragStart",(function(e){e.event.preventDefault(),e.event.stopPropagation()})),i.events.on("indexChanged",(function(e){e.container&&a.forEach(e.container.querySelectorAll(".tns-slide-active .lazyloading"),(function(e,t){lazySizes&&lazySizes.loader.unveil(e)}))})),a.addClass(e.container,"jeg_tns_active"),a.dataStorage.put(e.container,"tiny-slider",i)),i}}}};else t||console.warn("Tiny Slider could not be found"),e||console.warn("JNews Library could not be found");return s}();window.jnews.carousel=e}();