Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/elementor-pro   php

Repository URL to install this package:

Version: 3.2.1 

/ js / portfolio.c54e5852cc449fe5168e.bundle.min.js

/*! elementor-pro - v3.2.1 - 21-03-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[824],{2763:(t,e,s)=>{"use strict";var n=s(7971);s(7394)(e,"__esModule",{value:!0}),e.default=void 0,s(1954);var i=n(s(2926)),o=i.default.extend({isActive:function isActive(t){return t.$element.find(".elementor-portfolio").length},getSkinPrefix:function getSkinPrefix(){return""},getDefaultSettings:function getDefaultSettings(){var t=i.default.prototype.getDefaultSettings.apply(this,arguments);return t.transitionDuration=450,jQuery.extend(t.classes,{active:"elementor-active",item:"elementor-portfolio-item",ghostItem:"elementor-portfolio-ghost-item"}),t},getDefaultElements:function getDefaultElements(){var t=i.default.prototype.getDefaultElements.apply(this,arguments);return t.$filterButtons=this.$element.find(".elementor-portfolio__filter"),t},getOffset:function getOffset(t,e,s){var n=this.getSettings(),i=this.elements.$postsContainer.width()/n.colsCount-e;return{start:(e+(i+=i/(n.colsCount-1)))*(t%n.colsCount),top:(s+i)*Math.floor(t/n.colsCount)}},getClosureMethodsNames:function getClosureMethodsNames(){var t=i.default.prototype.getClosureMethodsNames.apply(this,arguments);return t.concat(["onFilterButtonClick"])},filterItems:function filterItems(t){var e=this.elements.$posts,s=this.getSettings("classes.active"),n=".elementor-filter-"+t;"__all"!==t?(e.not(n).removeClass(s),e.filter(n).addClass(s)):e.addClass(s)},removeExtraGhostItems:function removeExtraGhostItems(){var t=this.getSettings(),e=this.elements.$posts.filter(":visible"),s=(t.colsCount-e.length%t.colsCount)%t.colsCount;this.elements.$postsContainer.find("."+t.classes.ghostItem).slice(s).remove()},handleEmptyColumns:function handleEmptyColumns(){this.removeExtraGhostItems();for(var t=this.getSettings(),e=this.elements.$posts.filter(":visible"),s=this.elements.$postsContainer.find("."+t.classes.ghostItem),n=(t.colsCount-(e.length+s.length)%t.colsCount)%t.colsCount,i=0;i<n;i++)this.elements.$postsContainer.append(jQuery("<div>",{class:t.classes.item+" "+t.classes.ghostItem}))},showItems:function showItems(t){t.show(),setTimeout((function(){t.css({opacity:1})}))},hideItems:function hideItems(t){t.hide()},arrangeGrid:function arrangeGrid(){var t=jQuery,e=this,s=e.getSettings(),n=e.elements.$posts.filter("."+s.classes.active),i=e.elements.$posts.not("."+s.classes.active),o=e.elements.$posts.filter(":visible"),r=n.add(o),a=n.filter(":visible"),l=n.filter(":hidden"),u=i.filter(":visible"),m=o.outerWidth(),f=o.outerHeight();if(e.elements.$posts.css("transition-duration",s.transitionDuration+"ms"),e.showItems(l),e.isEdit&&e.fitImages(),e.handleEmptyColumns(),e.isMasonryEnabled())return e.hideItems(u),e.showItems(l),e.handleEmptyColumns(),void e.runMasonry();u.css({opacity:0,transform:"scale3d(0.2, 0.2, 1)"}),a.each((function(){var s=t(this),n=e.getOffset(r.index(s),m,f),i=e.getOffset(o.index(s),m,f);n.start===i.start&&n.top===i.top||(i.start-=n.start,i.top-=n.top,elementorFrontend.config.is_rtl&&(i.start*=-1),s.css({transitionDuration:"",transform:"translate3d("+i.start+"px, "+i.top+"px, 0)"}))})),setTimeout((function(){n.each((function(){var i=t(this),o=e.getOffset(r.index(i),m,f),a=e.getOffset(n.index(i),m,f);i.css({transitionDuration:s.transitionDuration+"ms"}),a.start-=o.start,a.top-=o.top,elementorFrontend.config.is_rtl&&(a.start*=-1),setTimeout((function(){i.css("transform","translate3d("+a.start+"px, "+a.top+"px, 0)")}))}))})),setTimeout((function(){e.hideItems(u),n.css({transitionDuration:"",transform:"translate3d(0px, 0px, 0px)"}),e.handleEmptyColumns()}),s.transitionDuration)},activeFilterButton:function activeFilterButton(t){var e=this.getSettings("classes.active"),s=this.elements.$filterButtons,n=s.filter('[data-filter="'+t+'"]');s.removeClass(e),n.addClass(e)},setFilter:function setFilter(t){this.activeFilterButton(t),this.filterItems(t),this.arrangeGrid()},refreshGrid:function refreshGrid(){this.setColsCountSettings(),this.arrangeGrid()},bindEvents:function bindEvents(){i.default.prototype.bindEvents.apply(this,arguments),this.elements.$filterButtons.on("click",this.onFilterButtonClick)},isMasonryEnabled:function isMasonryEnabled(){return!!this.getElementSettings("masonry")},run:function run(){i.default.prototype.run.apply(this,arguments),this.setColsCountSettings(),this.setFilter("__all"),this.handleEmptyColumns()},onFilterButtonClick:function onFilterButtonClick(t){this.setFilter(jQuery(t.currentTarget).data("filter"))},onWindowResize:function onWindowResize(){i.default.prototype.onWindowResize.apply(this,arguments),this.refreshGrid()},onElementChange:function onElementChange(t){i.default.prototype.onElementChange.apply(this,arguments),"classic_item_ratio"===t&&this.refreshGrid()}});e.default=o},2926:(t,e,s)=>{"use strict";s(7394)(e,"__esModule",{value:!0}),e.default=void 0,s(4828),s(1954);var n=elementorModules.frontend.handlers.Base.extend({getSkinPrefix:function getSkinPrefix(){return"classic_"},bindEvents:function bindEvents(){var t=this.getModelCID();elementorFrontend.addListenerOnce(t,"resize",this.onWindowResize)},getClosureMethodsNames:function getClosureMethodsNames(){return elementorModules.frontend.handlers.Base.prototype.getClosureMethodsNames.apply(this,arguments).concat(["fitImages","onWindowResize","runMasonry"])},getDefaultSettings:function getDefaultSettings(){return{classes:{fitHeight:"elementor-fit-height",hasItemRatio:"elementor-has-item-ratio"},selectors:{postsContainer:".elementor-posts-container",post:".elementor-post",postThumbnail:".elementor-post__thumbnail",postThumbnailImage:".elementor-post__thumbnail img"}}},getDefaultElements:function getDefaultElements(){var t=this.getSettings("selectors");return{$postsContainer:this.$element.find(t.postsContainer),$posts:this.$element.find(t.post)}},fitImage:function fitImage(t){var e=this.getSettings(),s=t.find(e.selectors.postThumbnail),n=s.find("img")[0];if(n){var i=s.outerHeight()/s.outerWidth(),o=n.naturalHeight/n.naturalWidth;s.toggleClass(e.classes.fitHeight,o<i)}},fitImages:function fitImages(){var t=jQuery,e=this,s=getComputedStyle(this.$element[0],":after").content,n=this.getSettings();this.elements.$postsContainer.toggleClass(n.classes.hasItemRatio,!!s.match(/\d/)),e.isMasonryEnabled()||this.elements.$posts.each((function(){var s=t(this),i=s.find(n.selectors.postThumbnailImage);e.fitImage(s),i.on("load",(function(){e.fitImage(s)}))}))},setColsCountSettings:function setColsCountSettings(){var t,e=elementorFrontend.getCurrentDeviceMode(),s=this.getElementSettings(),n=this.getSkinPrefix();switch(e){case"mobile":t=s[n+"columns_mobile"];break;case"tablet":t=s[n+"columns_tablet"];break;default:t=s[n+"columns"]}this.setSettings("colsCount",t)},isMasonryEnabled:function isMasonryEnabled(){return!!this.getElementSettings(this.getSkinPrefix()+"masonry")},initMasonry:function initMasonry(){imagesLoaded(this.elements.$posts,this.runMasonry)},runMasonry:function runMasonry(){var t=this.elements;t.$posts.css({marginTop:"",transitionDuration:""}),this.setColsCountSettings();var e=this.getSettings("colsCount"),s=this.isMasonryEnabled()&&e>=2;if(t.$postsContainer.toggleClass("elementor-posts-masonry",s),s){var n=this.getElementSettings(this.getSkinPrefix()+"row_gap.size");""===this.getSkinPrefix()&&""===n&&(n=this.getElementSettings(this.getSkinPrefix()+"item_gap.size")),new elementorModules.utils.Masonry({container:t.$postsContainer,items:t.$posts.filter(":visible"),columnsCount:this.getSettings("colsCount"),verticalSpaceBetween:n}).run()}else t.$postsContainer.height("")},run:function run(){setTimeout(this.fitImages,0),this.initMasonry()},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.bindEvents(),this.run()},onWindowResize:function onWindowResize(){this.fitImages(),this.runMasonry()},onElementChange:function onElementChange(){this.fitImages(),setTimeout(this.runMasonry)}});e.default=n}}]);