!function(){"use strict";window.jnews=window.jnews||{},window.jnews.carousel=window.jnews.carousel||{};var t=function(){var t="object"==typeof jnews&&"object"==typeof jnews.library,e="function"==typeof jnews.tns;if(e&&t)var s=jnews.library,a=function(t){var e=t.container;if(!s.hasClass(e,"jeg_tns_active")){var a=e.getElementsByClassName("jeg_carousel_post");if(a.length){t.container=a[0];var n,o=function(t){var a={textDirection:"ltr",container:t.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 a.items=void 0===a.container.dataset.items?3:parseInt(a.container.dataset.items),a.controls=void 0===a.container.dataset.nav?a.controls:a.container.dataset.nav,a.autoplay=void 0===a.container.dataset.autoplay?a.autoplay:a.container.dataset.autoplay,a.autoplayTimeout=void 0===a.container.dataset.delay?a.autoplayTimeout:parseInt(a.container.dataset.delay),a.gutter=void 0===a.container.dataset.margin?a.gutter:parseInt(a.container.dataset.margin),"undefined"!=typeof jnewsoption&&(o=1==jnewsoption.rtl),"undefined"!=typeof jnewsgutenbergoption&&(o=1==jnewsgutenbergoption.rtl),a.textDirection=o?"rtl":"ltr",s.hasClass(e,"jeg_postblock_carousel_1")?(n=1,s.hasClass(e,"jeg_col_12")&&(a.items=void 0===a.container.dataset.items?5:parseInt(a.container.dataset.items)),a.controlsPosition="bottom",a.responsive={0:{items:1},321:{items:2,gutter:a.gutter>15?15:a.gutter},568:{items:3,gutter:a.gutter>15?15:a.gutter},1024:{items:a.items}},a):s.hasClass(e,"jeg_postblock_carousel_2")?(n=2,a.items=void 0===a.container.dataset.items?3:parseInt(a.container.dataset.items),a.autoHeight=!1,a.responsive={0:{items:1},568:{items:2},768:{items:a.items>3?3:a.items},1024:{items:a.items}},a):s.hasClass(e,"jeg_postblock_carousel_3")?(n=3,s.hasClass(e,"jeg_col_12")?(a.items=void 0===a.container.dataset.items?3:parseInt(a.container.dataset.items),a.responsive={0:{items:1},568:{items:2},768:{items:a.items>3?3:a.items},1024:{items:a.items}}):s.hasClass(e,"jeg_col_6")||s.hasClass(e,"jeg_col_7")||s.hasClass(e,"jeg_col_8")?(a.items=void 0===a.container.dataset.items?2:parseInt(a.container.dataset.items),a.responsive={0:{items:1},568:{items:2},1024:{items:a.items>2?2:a.items}}):(a.items=1,a.responsive={0:{items:1},568:{items:2},1024:{items:a.items}}),a):a}(t);if(t=s.extend(o,t||{}),n&&!s.hasClass(t.container,"jeg_tns_active")){var i=jnews.tns(t);return void 0!==i&&(i.events.on("dragStart",(function(t){t.event.preventDefault(),t.event.stopPropagation()})),s.addClass(t.container,"jeg_tns_active"),s.dataStorage.put(t.container,"tiny-slider",i)),i}}}};else e||console.warn("Tiny Slider could not be found"),t||console.warn("JNews Library could not be found");return a}();window.jnews.carousel=t}();