LittleDemon WebShell


Linux server27.hostingraja.org 2.6.32-954.3.5.lve1.4.93.el6.x86_64 #1 SMP Wed Oct 4 17:04:29 UTC 2023 x86_64
Path : /home/udaipurk/public_html/websites/rishh/XStore Theme/xstore/js/modules/
File Upload :
Command :
Current File : //home/udaipurk/public_html/websites/rishh/XStore Theme/xstore/js/modules/ethemePostProduct.min.js

!function(y){"use strict";y(window).on("elementor/frontend/init",function(){var n=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.local_params={clicked:!1},this.masonry=null,this.masonrySettings={},this.run()},getDefaultSettings:function(){return{selectors:{wrapperGrid:".etheme-product-grid",wrapperList:".etheme-product-list",gridItem:".etheme-product-grid-item",listItem:".etheme-product-list-item",image:".etheme-product-grid-image",fadeInArea:".etheme-product-grid-fadeIn-area",showMoreInfo:".etheme-product-grid-more-info-btn",sliderImages:".etheme-product-image-hover-slider",carouselImages:".etheme-product-image-hover-carousel",loadButton:".etheme-elementor-lazy-button",loadButtonProgressText:".etheme-elementor-lazy-progress-bar-title",loadButtonProgressBarInner:".etheme-elementor-lazy-progress-bar-inner",pagination:".etheme-elementor-pagination-ajax",wrapperPosts:".etheme-posts-wrapper",wrapperPostsTimeline:".etheme-timeline-items",postItem:".etheme-post",postItemTimeline:".etheme-timeline-item",tabContent:".etheme-elementor-tab-content",tabContentActive:".etheme-elementor-tab-content-active"},vars:{w_width:y(window).width(),w_height:y(window).height()}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$wrapperGrid:this.$element.find(e.wrapperGrid),$wrapperList:this.$element.find(e.wrapperList),$gridItem:this.$element.find(e.gridItem),$listItem:this.$element.find(e.listItem),$sliderImages:this.$element.find(e.sliderImages),$carouselImages:this.$element.find(e.carouselImages),$loadButton:this.$element.find(e.loadButton),$loadButtonProgressText:this.$element.find(e.loadButtonProgressText),$loadButtonProgressBarInner:this.$element.find(e.loadButtonProgressBarInner),$pagination:this.$element.find(e.pagination),$wrapperPosts:this.$element.find(e.wrapperPosts),$wrapperPostsTimeline:this.$element.find(e.wrapperPostsTimeline),$postItem:this.$element.find(e.postItem),$postItemTimeline:this.$element.find(e.postItemTimeline)}},run:function(){var o=this,n=o.getElementSettings(),i=o.getSettings("selectors"),s=o.getSettings("vars"),r=elementorFrontend.isEditMode();let a=-1<y.inArray(o.getWidgetType(),["etheme_posts_tabs","etheme_projects_tabs"]),d=!!n.masonry,t=n.animation_type;if(o.elements.$loadButton.length&&"scroll"==n.navigation){let n=o.elements.$loadButton;elementorFrontend.elements.$window.on("scroll",function(){var e=n.offset().top,t=n.outerHeight();y(this).scrollTop()<e+t-s.w_height||!n||o.local_params.clicked||o.elements.$loadButton.trigger("click")})}o.elements.$loadButton.on("click",function(){var e,t;a&&y(this).parents(i.tabContent).length&&!y(this).parents(i.tabContentActive).length||(-1<y.inArray(n.query_type,["current_query","search_query"])?(e=o.elements.$pagination.find(".next"),t=!!y(this).data("url-history"),o.loadPostProductCurrentQuery(o,i,n,r,t,y.trim(y(e).attr("href")),d)):o.loadPostProduct(o,y(this),y(this),d))}),o.elements.$pagination.on("click","a",function(e){e.preventDefault(),-1<y.inArray(n.query_type,["current_query","search_query"])?(r||(o.$element.addClass(t?"etheme-reloading":"etheme-loading"),"skeleton_animation"==t&&o.$element.addClass("etheme-skeleton-loading")),o.loadPostProductCurrentQuery(o,i,n,r,!0,y.trim(y(this).attr("href")),d,"pagination")):(o.$element.addClass(t?"etheme-reloading":"etheme-loading"),"skeleton_animation"==t&&o.$element.addClass("etheme-skeleton-loading"),o.loadPostProduct(o,y(this).parents(i.pagination),y(this),d,"pagination"))}),o.elements.$sliderImages.length&&o.elements.$sliderImages.each(function(){o.sliderImagesHoverInit(y(this),i)}),o.elements.$carouselImages.length&&void 0!==window.hoverSlider&&(window.hoverSlider.init({}),window.hoverSlider.prepareMarkup()),n.product_attributes&&(o.calculateContent(o,i),y(document).on("etProductMoreDescriptionOpen",function(e,t){o.calculateSpacer(t,i)}),y(document).on("click",i.showMoreInfo,function(e){e.preventDefault();e=y(this).parents(i.gridItem);o.fadeInContentShowMore(y(this),e)})),d&&this.initMasonry()},sliderImagesHoverInit:function(e,t){var n={slider:e,index:0,process:!1,time:300,imagesWrapper:e.find(t.image),arrowsHTML:'<span class="hover-arrow hover-arrow-left"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">\n<path d="M17.976 22.8l-10.44-10.8 10.464-10.848c0.24-0.288 0.24-0.72-0.024-0.96-0.24-0.24-0.72-0.264-0.984 0l-10.92 11.328c-0.264 0.264-0.264 0.672 0 0.984l10.92 11.28c0.144 0.144 0.312 0.216 0.504 0.216 0.168 0 0.336-0.072 0.456-0.192 0.144-0.12 0.216-0.288 0.24-0.48 0-0.216-0.072-0.384-0.216-0.528z"></path>\n</svg></span><span class="hover-arrow hover-arrow-right"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">\n<path d="M17.88 11.496l-10.728-11.304c-0.264-0.264-0.672-0.264-0.96-0.024-0.144 0.12-0.216 0.312-0.216 0.504 0 0.168 0.072 0.336 0.192 0.48l10.272 10.8-10.272 10.8c-0.12 0.12-0.192 0.312-0.192 0.504s0.072 0.36 0.192 0.504c0.12 0.144 0.312 0.216 0.48 0.216 0.144 0 0.312-0.048 0.456-0.192l0.024-0.024 10.752-11.328c0.264-0.264 0.24-0.672 0-0.936z"></path>\n</svg></span>'};function o(e){n.process=!1,n.image.attr("src",n.imagesList[e]).attr("srcset",""),n.image.removeAttr("srcset")}n.image=e.find(t.image).find("img"),n.imagesList=e.attr("data-images").split(";"),1<n.imagesList.length&&(n.imagesWrapper.hasClass("hover-arrows-added")||(n.imagesWrapper.addClass("hover-arrows-added").prepend(n.arrowsHTML),n.slider.find(".hover-arrow").mouseover(function(){n.slider.addClass("is_hover-arrows-hovered")}),n.slider.find(".hover-arrow").on("mouseleave",function(){n.slider.removeClass("is_hover-arrows-hovered")}),n.slider.find(".hover-arrow-left").on("click",function(e){n.process||(n.process=!0,0<n.index?n.index--:n.index=n.imagesList.length-1,o(n.index))}),n.slider.find(".hover-arrow-right").on("click",function(e){n.process||(n.process=!0,n.index<n.imagesList.length-1?n.index++:n.index=0,o(n.index))})))},getClosureMethodsNames:function(){return elementorModules.frontend.handlers.Base.prototype.getClosureMethodsNames.apply(this,arguments).concat(["onWindowResize","runMasonry"])},onWindowResize:function(){this.getElementSettings("masonry")&&this.runMasonry()},onElementChange:function(){this.getElementSettings("masonry")&&setTimeout(this.runMasonry)},setColsCountSettings:function(){var e,t,n=this.getElementSettings();switch(elementorFrontend.getCurrentDeviceMode()){case"mobile":e=(e=(e=n.cols_mobile)||n.cols_tablet)||n.cols,t=n.rows_gap_mobile.size;break;case"tablet":e=(e=n.cols_tablet)||n.cols,t=n.rows_gap_tablet.size;break;default:e=n.cols,t=n.rows_gap.size}t=(t=t||n.rows_gap.size)||20,this.setSettings("colsCount",e),this.setSettings("rowsGap",t||n.rows_gap.size)},calculateContent:function(e,t){e.$element.find(t.gridItem).on("mouseenter touchstart",function(){let i=y(this);i.data("content-calculated")||i.imagesLoaded(function(){var e=i.find(".etheme-product-grid-more-info"),t=e.find(".etheme-product-grid-more-info-inner"),n=e.find(".etheme-product-grid-more-info-btn"),o=e.outerHeight(),t=t.outerHeight()-o;30<t?n.removeClass("hidden"):0<t&&e.css("height",o+t),i.data("content-calculated","yes")}),i.data("fadeIn-content-calculated")||i.imagesLoaded(function(){e.calculateSpacer(i,t)})})},calculateSpacer:function(e,t){e.find(".etheme-product-grid-more-info-inner").outerHeight()<e.find(".etheme-product-grid-more-info-inner table").outerHeight()&&e.find(".etheme-product-grid-more-info-btn").removeClass("hidden");var n=e.find(".etheme-product-grid-fadeIn-area").outerHeight();n+=e.height(),e.find(".etheme-product-grid-spacer").css({height:n}),y(this).data("fadeIn-content-calculated","yes")},fadeInContentShowMore:function(e,t){t.find(".limited-height").removeClass("limited-height"),y(document).trigger("etProductMoreDescriptionOpen",[t]),e.remove()},initMasonry:function(){let e=null;var t=this.getWidgetType(),n=-1<y.inArray(t,["etheme_product_grid","etheme_product_list","woocommerce-etheme_archive_products","search-results-woocommerce-etheme_products"]);e=n?"etheme_product_list"!=t?this.elements.$gridItem:this.elements.$listItem:this.elements.$postItem,imagesLoaded(e,this.runMasonry)},runMasonry:function(){var e=this.getSettings("selectors"),t=this.getWidgetType(),n=-1<y.inArray(t,["etheme_product_grid","etheme_product_list","woocommerce-etheme_archive_products","search-results-woocommerce-etheme_products"]),o=null,i=null,o=y(n?"etheme_product_list"!=t?this.$element.find(e.wrapperGrid):this.$element.find(e.wrapperList):this.$element.find(e.wrapperPosts)),i=n?"etheme_product_list"!=t?e.gridItem:e.listItem:e.postItem,n=(this.$element.find(i).css({marginTop:"",transitionDuration:""}),this.setColsCountSettings(),this.getSettings("colsCount")),t=this.getSettings("rowsGap"),e=2<=n;o.toggleClass("etheme-masonry",e),e?(e=elementorModules.utils.Masonry,this.masonrySettings={container:o,items:this.$element.find(i),columnsCount:n,verticalSpaceBetween:t},this.masonry=new e(this.masonrySettings),this.masonry.run()):o.height("")},loadPostProduct:function(n,i,e,o,s="button"){n.local_params.clicked=!0;var r=n.getElementSettings(),a=this.getSettings("selectors"),d=parseInt(i.attr("data-paged")),l=parseInt(i.attr("data-max-paged")),m=r.posts_per_page,c=parseInt(i.attr("data-limit")),p="pagination"==s;if(p||i.addClass("loading"),!(l<=d)){d+=1;let t={"posts-per-page":m};i.attr("data-offset")&&(t.offset=i.attr("data-offset"));var h,u,g,f,_=i.attr("data-widget-type"),w=!0,v={action:"etheme_elementor_lazy_load",security:i.attr("data-nonce"),query:i.attr("data-query-settings"),widgetType:_};switch(_){case"product-list":h=n.elements.$wrapperList,g=a.listItem,u=parseInt(h.find(a.listItem).length),f=u+parseInt(m),c&&c<=f&&(t.limit=parseInt(m)-(f-c)),v.postSettings=i.attr("data-product-settings");break;case"product-grid":h=n.elements.$wrapperGrid,g=a.gridItem,u=parseInt(h.find(a.gridItem).length),f=u+parseInt(m),v.postSettings=i.attr("data-product-settings");break;case"posts-timeline":w=!1,g=a.postItemTimeline,h=n.elements.$wrapperPostsTimeline,u=parseInt(h.find(a.postItemTimeline).length),f=u+parseInt(m),v.postSettings=i.attr("data-post-settings");break;default:w=!1,h="posts-tabs"==_?(g=a.tabContentActive+" "+a.postItem,i.parents(a.tabContentActive).find(a.wrapperPosts)):(g=a.postItem,n.elements.$wrapperPosts),u=parseInt(h.find(a.postItem).length),f=u+parseInt(m),v.postSettings=i.attr("data-post-settings")}p?(e=new URL(e.attr("href")),v.widgetId=i.attr("data-widget-id"),d=e.searchParams.get("etheme-"+_+"-"+v.widgetId+"-page"),v.totalPages=parseInt(i.attr("data-total-pages")),v.permalink=i.attr("data-permalink"),t.limit=c,-1<y.inArray(r.query_type,["current_query","search_query"])&&-1<y.inArray(_,["product-list","product-grid"])&&"undefined"!=typeof etAjaxFiltersConfig&&etAjaxFiltersConfig.scroll_top_after_ajax&&(e=h.offset().top,e-=110,y("html, body").animate({scrollTop:e},1e3))):c&&c<=f&&(t.limit=parseInt(m)-(f-c)),t.paged=d,v.attr=t,v.loading_type=s,y.ajax({url:etConfig.ajaxurl,method:"POST",data:v,dataType:"json",success:function(e){var t,o=y(JSON.parse(e.content));if(r.animation_type){let n="fadeInUp_animation"==r.animation_type?100:0;o.each(function(e,t){y(t).css("transition-delay",e*n+"ms").addClass("etheme-post-product-loading")})}p?(h.html(o),i.html(JSON.parse(e.pagination))):(h.append(o),"button"==s&&"advanced"==r.navigation_button_type&&(e=i.attr("data-found-posts"),t=(o=n.$element.find(g).length)/e*100,o=n.elements.$loadButtonProgressText.attr("data-text").replace("{{current_count}}",o).replace("{{all_count}}",e),"posts-tabs"==_?(n.$element.find(a.tabContentActive).find(a.loadButtonProgressText).text(o),n.$element.find(a.tabContentActive).find(a.loadButtonProgressBarInner).css({width:t+"%"}),100==t&&n.$element.find(a.tabContentActive).find(a.loadButtonProgressBarInner).addClass("finished")):(n.elements.$loadButtonProgressText.text(o),n.elements.$loadButtonProgressBarInner.css({width:t+"%"}),100==t&&n.elements.$loadButtonProgressBarInner.addClass("finished")))),r.animation_type&&(setTimeout(function(){y(h).find(w?".type-product":".type-post").removeClass("etheme-post-product-loading")},300),setTimeout(function(){y(h).find(w?".type-product":".type-post").attr("style",null)},700)),"product-list"==_&&r.show_divider&&n.$element.find(a.listItem).addClass("has-divider").last().removeClass("has-divider")},error:function(e){etTheme.et_notice("products","error")},complete:function(){var e;-1<y.inArray(_,["product-list","product-grid"])?(y(document).trigger("etheme_product_grid_ajax_loaded"),y(document).trigger("yith_wcwl_reload_fragments"),(e=n.$element.find(a.sliderImages)).length&&e.each(function(){n.sliderImagesHoverInit(y(this),a)}),e=n.$element.find(a.carouselImages),void 0!==etTheme.reinitSwatches&&etTheme.reinitSwatches(),e.length&&void 0!==window.hoverSlider&&(window.hoverSlider.init({}),window.hoverSlider.prepareMarkup())):y(document).trigger("etheme_posts_grid_ajax_loaded"),p||(i.attr("data-paged",d),l<=d||c&&c<=f?i.remove():i.removeClass("loading").addClass("loaded"),t.offset&&f>=i.attr("data-found-posts")&&i.remove()),n.$element.removeClass("etheme-loading etheme-reloading etheme-skeleton-loading"),"skeleton_animation"==r.animation_type&&(n.$element.addClass("etheme-skeleton-loaded"),setTimeout(function(){n.$element.removeClass("etheme-skeleton-loaded")},700)),n.local_params.clicked=!1,o&&setTimeout(n.runMasonry())}})}},loadPostProductCurrentQuery:function(a,d,l,e,t,n,m,c="button"){if(""!=n&&!e){a.local_params.clicked=!0,t&&!a.msieversion()&&history.pushState(null,null,n);let s=y('[data-id="'+a.getID()+'"]'),r=a.getWidgetType();var p="pagination"==c,h=(p||s.find(d.loadButton).addClass("loading"),-1<y.inArray(r,["etheme_product_grid","etheme_product_list","woocommerce-etheme_archive_products","search-results-woocommerce-etheme_products"]));p&&h&&"undefined"!=typeof etAjaxFiltersConfig&&etAjaxFiltersConfig.scroll_top_after_ajax&&(e=s.offset().top,e-=110,y("html, body").animate({scrollTop:e},1e3)),y.get(n,function(t){etConfig.is_alt_shop_history&&(o=window.location.href.replace(/\/page\/\d+\//,"/"),history.replaceState(null,"",o));var e=null,o="",n=!1,e=h?"etheme_product_list"!=r?d.wrapperGrid:d.wrapperList:-1<y.inArray(r,["etheme_posts_timeline","archive-etheme_posts_timeline"])?d.wrapperPostsTimeline:d.wrapperPosts,t=y(t).find('[data-id="'+a.getID()+'"]'),o=t.find(e).html(),i=t.find(d.pagination).html();if(p||(n=t.find(d.pagination).find(".next").length),e){if(o=y(o),l.animation_type){let n="fadeInUp_animation"==l.animation_type?100:0;o.each(function(e,t){y(t).css("transition-delay",e*n+"ms").addClass("etheme-post-product-loading")})}if(p)s.find(e).html(o);else if(s.find(e).append(o),"button"==c&&"advanced"==l.navigation_button_type){t=parseInt(a.elements.$loadButton.attr("data-found-posts"));let e;o=(e=(h?"etheme_product_list"!=r?a.$element.find(d.gridItem):a.$element.find(d.listItem):-1<y.inArray(r,["etheme_posts_timeline","archive-etheme_posts_timeline"])?a.$element.find(d.postItemTimeline):a.$element.find(d.postItem)).length)/t*100,t=a.elements.$loadButtonProgressText.attr("data-text").replace("{{current_count}}",e).replace("{{all_count}}",t);a.elements.$loadButtonProgressText.text(t),a.elements.$loadButtonProgressBarInner.css({width:o+"%"}),100==o&&a.elements.$loadButtonProgressBarInner.addClass("finished")}l.animation_type&&(setTimeout(function(){s.find(e).find(h?".type-product":".type-post").removeClass("etheme-post-product-loading")},300),setTimeout(function(){s.find(e).find(h?".type-product":".type-post").attr("style",null)},700)),"etheme_product_list"==r&&l.show_divider&&a.$element.find(d.listItem).addClass("has-divider").last().removeClass("has-divider"),i&&(p||(s.find(d.loadButton).removeClass("loading").addClass("loaded"),n)||s.find(d.loadButton).remove(),s.find(d.pagination).html(i)),-1<y.inArray(r,["etheme_product_grid","woocommerce-etheme_archive_products","search-results-woocommerce-etheme_products","etheme_product_list"])?(y(document).trigger("etheme_product_grid_ajax_loaded"),y(document).trigger("yith_wcwl_reload_fragments"),void 0!==etTheme.global_image_lazy&&etTheme.global_image_lazy(),(t=a.$element.find(d.sliderImages)).length&&t.each(function(){a.sliderImagesHoverInit(y(this),d)}),o=a.$element.find(d.carouselImages),void 0!==etTheme.reinitSwatches&&etTheme.reinitSwatches(),o.length&&void 0!==window.hoverSlider&&(window.hoverSlider.init({}),window.hoverSlider.prepareMarkup())):y(document).trigger("etheme_posts_grid_ajax_loaded"),a.$element.removeClass("etheme-loading etheme-reloading etheme-skeleton-loading"),"skeleton_animation"==l.animation_type&&(a.$element.addClass("etheme-skeleton-loaded"),setTimeout(function(){a.$element.removeClass("etheme-skeleton-loaded")},700)),a.local_params.clicked=!1,m&&("skeleton_animation"==l.animation_type?setTimeout(function(){a.runMasonry()},750):setTimeout(a.runMasonry()))}}).fail(function(e,t,n){y(".etheme-elementor-lazy-button-wrapper").after('<p class="text-center">No more products found</p>'),y(".etheme-elementor-pagination").remove(),y(".etheme-elementor-lazy-button").removeClass("loading")})}},msieversion:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");return 0<t&&parseInt(e.substring(t+5,e.indexOf(".",t)))}});y.each(["etheme_product_grid","etheme_product_list","etheme_product_carousel","woocommerce-etheme_archive_products","search-results-woocommerce-etheme_products","etheme_posts","archive-etheme_posts","search-results-etheme_posts","post-related_etheme_posts","etheme_posts_chess","archive-etheme_posts_chess","etheme_posts_timeline","archive-etheme_posts_timeline","etheme_posts_tabs","etheme_projects","etheme_projects_chess","etheme_projects_timeline","etheme_projects_tabs"],function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+t+".default",function(e){elementorFrontend.elementsHandler.addHandler(n,{$element:e})})})})}(jQuery);

LittleDemon - FACEBOOK
[ KELUAR ]