(function ($){
"use strict";
$(window).on('elementor/frontend/init', ()=> {
elementorFrontend.hooks.addAction('frontend/element_ready/umimo-portfolio.default', ($scope)=> {
let currentIsotope=$scope.find('.isotope-grid');
if(currentIsotope.length){
let objisotope={filter: '*'};
if($scope.hasClass('elementor-portfolio-masonry-yes')){
objisotope.masonry={
columnWidth: '.column-item:nth-child(2)'
}}
currentIsotope.isotope(objisotope);
$scope.find('.elementor-portfolio__filters li').on('click', function (){
$(this).parents('ul.elementor-portfolio__filters').find('li.elementor-portfolio__filter').removeClass('elementor-active');
$(this).addClass('elementor-active');
let selector=$(this).attr('data-filter');
currentIsotope.isotope({filter: selector});
});
currentIsotope.imagesLoaded(function (){
currentIsotope.isotope('layout');
});
}});
});
})(jQuery);