theme.ArticleBody=function(){function e(e){this.$container=$(e),this.namespace=".article-body",this.onLoad()}return e.prototype=$.extend({},Section.prototype,e.prototype,{slider:{init:function(e){var t=e.find(".article-slider"),i=$("#article-slider");if(i.length&&t.length){i.append(t);var o=t.find(".article-slider__slick"),n=t.find(".article-slider__dots"),r="true"===o.attr("data-autoplay"),s=+o.attr("data-speed"),l="true"===o.attr("data-infinite");t.removeClass("d-none"),o.slick({prevArrow:'
'+theme.Global.getIcon("006",!0)+"
",nextArrow:''+theme.Global.getIcon("007",!0)+"
",dots:!0,appendDots:n,dotsClass:"slick-dots d-flex flex-wrap flex-center list-unstyled m-0 my-15",adaptiveHeight:!0,autoplay:r,autoplaySpeed:s,infinite:l,rtl:theme.rtl}),t.removeClass("invisible"),this.$dom=o}},destroy:function(){this.$dom&&(this.$dom.slick("destroy"),this.$dom=null)}},onLoad:function(){theme.is_loaded&&theme.ImagesLazyLoad.update(),this.slider.init(this.$container)},onUnload:function(){this.$container.off(this.namespace),this.slider.destroy()}}),e}(),$(function(){theme.sections.register("article-body",theme.ArticleBody)});