1!function(window,factory){"function"==typeof define&&define.amd?define(["../layout-mode"],factory):"object"==typeof exports?module.exports=factory(require("../layout-mode")):factory(window.Isotope.LayoutMode)}(window,function(LayoutMode){"use strict";var FitRows=LayoutMode.create("fitRows"),proto=FitRows.prototype;return proto._resetLayout=function(){if(this.x=0,this.y=0,this.maxY=0,this.row=0,this.rows=[],this._getMeasurement("gutter","outerWidth"),this.options.equalheight)for(var i=0;i<this.isotope.items.length;i++)this.isotope.items[i].css({height:"auto"});this.options.matchheight&&matchHeight.resetHeight(this.isotope.items.map(i=>i.element))},proto._getItemLayoutPosition=function(item){item.getSize();var itemWidth=item.size.outerWidth+this.gutter,containerWidth=this.isotope.size.innerWidth+this.gutter;0!==this.x&&itemWidth+this.x>containerWidth&&(this.x=0,this.y=this.maxY),0==this.x&&0!=this.y&&this.row++;var position={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+item.size.outerHeight),this.x+=itemWidth,void 0===this.rows[this.row]?(this.rows[this.row]=[],this.rows[this.row].start=this.y,this.rows[this.row].end=this.maxY):this.rows[this.row].end=Math.max(this.rows[this.row].end,this.maxY),item.row=this.row,position},proto._equalHeight=function(){for(var i=0;i<this.isotope.items.length;i++){var row=this.isotope.items[i].row,data=this.rows[row];if(data){var height=data.end-data.start;height-=this.isotope.items[i].size.borderTopWidth+this.isotope.items[i].size.borderBottomWidth,height-=this.isotope.items[i].size.marginTop+this.isotope.items[i].size.marginBottom,height-=this.gutter.height||0,0==this.isotope.items[i].size.isBorderBox&&(height-=this.isotope.items[i].size.paddingTop+this.isotope.items[i].size.paddingBottom),this.isotope.items[i].size.height=height,this.isotope.items[i].css({height:height.toString()+"px"})}}},proto._matchHeight=function(){var rowElements={};this.isotope.filteredItems.forEach(item=>rowElements[item.row]?rowElements[item.row].push(item.element):rowElements[item.row]=[item.element]),Object.values(rowElements).forEach(row=>{matchHeight.matchGroup(row,!1)})},proto._getContainerSize=function(){return this.options.matchheight&&this._matchHeight(),this.options.equalheight&&this._equalHeight(),{height:this.maxY}},FitRows}); 2//# sourceURL=https://49675030.fs1.hubspotusercontent-na1.net/hubfs/49675030/hub_generated/template_assets/1/197385954
2633/1789745510103/template_fitrows.js
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.