/*! * eventie v1.0.5 * event binding helper * eventie.bind( elem, 'click', myFn ) * eventie.unbind( elem, 'click', myFn ) * MIT license */ (function(e){function n(){}function r(e){function r(t){if(t.prototype.option){return}t.prototype.option=function(t){if(!e.isPlainObject(t)){return}this.options=e.extend(true,this.options,t)}}function s(n,r){e.fn[n]=function(s){if(typeof s==="string"){var o=t.call(arguments,1);for(var u=0,a=this.length;uthis.eveMB.size.innerWidth){this.x=0;this.y=this.maxY}var t={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight);this.x+=e.size.outerWidth;return t};t.prototype._getContainerSize=function(){return{height:this.maxY}};return t}if(typeof define==="function"&&define.amd){define("eveMB/js/layout-modes/fit-rows",["../layout-mode"],t)}else{t(e.EveMB.LayoutMode)}})(window);(function(e){function t(e){var t=e.create("vertical",{horizontalAlignment:0});t.prototype._resetLayout=function(){this.y=0};t.prototype._getItemLayoutPosition=function(e){e.getSize();var t=(this.eveMB.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment;var n=this.y;this.y+=e.size.outerHeight;return{x:t,y:n}};t.prototype._getContainerSize=function(){return{height:this.y}};return t}if(typeof define==="function"&&define.amd){define("eveMB/js/layout-modes/vertical",["../layout-mode"],t)}else{t(e.EveMB.LayoutMode)}})(window);(function(e){function n(e,t){for(var n in t){e[n]=t[n]}return e}function u(e){return o.call(e)==="[object Array]"}function f(e){var t=[];if(u(e)){t=e}else if(e&&typeof e.length==="number"){for(var n=0,r=e.length;nf||af?1:-1)*c}}return 0}}var c=e.create("eveMB",{layoutMode:"masonry",isJQueryFiltering:true,sortAscending:true});c.Item=u;c.LayoutMode=a;c.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();e.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var t in a.modes){this._initLayoutMode(t)}};c.prototype.reloadItems=function(){this.itemGUID=0;e.prototype.reloadItems.call(this)};c.prototype._itemize=function(){var t=e.prototype._itemize.apply(this,arguments);for(var n=0,r=t.length;n