"use strict";var Core;!function(t){var e=function(){function t(){this.durations={auto:5e3,slide:1400},this.dom={wrapper:null,container:null,project:null,current:null,next:null,arrow:null},this.length=0,this.current=0,this.next=0,this.isAuto=!0,this.working=!1,this.dom.wrapper=jQuery(".page-view"),this.dom.project=this.dom.wrapper.find(".project"),this.dom.arrow=this.dom.wrapper.find(".arrow"),this.length=this.dom.project.length,this.init(),this.events(),this.auto=setInterval(this.updateNext.bind(this),this.durations.auto)}return t.prototype.init=function(){this.dom.project.css("z-index",10),this.dom.current=jQuery(this.dom.project[this.current]),this.dom.next=jQuery(this.dom.project[this.current+1]),this.dom.current.css("z-index",30),this.dom.next.css("z-index",20)},t.prototype.clear=function(){this.dom.arrow.off("click"),this.isAuto&&clearInterval(this.auto)},t.prototype.events=function(){var t=this;this.dom.arrow.on("click",function(){t.working||t.processBtn(jQuery(this))})},t.prototype.processBtn=function(t){this.isAuto&&(this.isAuto=!1,clearInterval(this.auto)),t.hasClass("next")&&this.updateNext(),t.hasClass("previous")&&this.updatePrevious()},t.prototype.updateNext=function(){this.next=(this.current+1)%this.length,this.process()},t.prototype.updatePrevious=function(){this.next--,this.next<0&&(this.next=this.length-1),this.process()},t.prototype.process=function(){var t=this;this.working=!0,this.dom.next=jQuery(this.dom.project[this.next]),this.dom.current.css("z-index",30),t.dom.next.css("z-index",20),this.dom.current.addClass("hidewiev"),setTimeout(function(){t.dom.current.css("z-index",10),t.dom.next.css("z-index",30),t.dom.current.removeClass("hidewiev"),t.dom.current=t.dom.next,t.current=t.next,t.working=!1},this.durations.slide)},t}();t.Slider=e}(Core||(Core={})),document.addEventListener("DOMContentLoaded",function(){imagesLoaded(".page-view",{background:!0},function(){}).on("done",function(t){new Core.Slider})});