PageSourceSearch

https://propeter.com/wp-content/plugins/sastra-essential-addons-fo…/assets/js/script.min.js?ver=1.0.38

js propeter.com collected 2026-09-26 08:05:16 UTC 18,124 bytes, 53 lines download raw bytes

1(function($){"use strict";window.actionTargetProductId=window.actionTargetProductId||null;if(typeof VideoLightBoxWidget!='function'){window.VideoLightBoxWidget=function(){}}
2window.hasRtl=function(){if(jQuery("body").hasClass("rtl")){return!0}else{return!1}}
3window.changeActionTargetProductId=function(productId){actionTargetProductId=productId}
4jQuery('body').on('removed_from_cart',function(ev,fragments,hash,button){setTimeout(function(){if(jQuery('.refresh-tmpcoder-cart-qty').length>0){jQuery('.tmpcoder-cart-total .tmpcoder-total-qty').text(jQuery('.refresh-tmpcoder-cart-qty').val());jQuery('.tmpcoder-cart-popup .tmpcoder-cart-popup-count').text(jQuery('.refresh-tmpcoder-cart-qty').val())}
5if(jQuery('.refresh-tmpcoder-cart-total').length>0){jQuery('.tmpcoder-cart-total .woocommerce-Price-amount').replaceWith(jQuery('.refresh-tmpcoder-cart-total .woocommerce-Price-amount').clone())}},200)});jQuery('body').on('removed_from_cart added_to_cart updated_cart_totals',function(event){if(jQuery(".mini-cart-custom-icon").val()==1){jQuery(".tmpcoder-cart-popup-body").addClass('custom-remove-icon')}
6jQuery("#tmpcoder-cart-button").load(location.href+" #tmpcoder-cart-button>*","");jQuery("#tmpcoder-cart-popup").load(location.href+" #tmpcoder-cart-popup>*","")});window.editorCheck=function(){return jQuery('body').hasClass('elementor-editor-active')?!0:!1}
7const widgetSection=function($scope,$){if($scope.attr('data-tmpcoder-particles')||$scope.find('.tmpcoder-particle-wrapper').attr('data-tmpcoder-particles-editor')){particlesEffect()}
8if($scope.hasClass('tmpcoder-jarallax')||$scope.hasClass('tmpcoder-jarallax-yes')){observeParallax($scope)}
9if($scope.hasClass('tmpcoder-parallax-yes')){parallaxMultiLayer()}
10if($scope.hasClass('tmpcoder-sticky-section-yes')){stickySection()}
11function stickySection(){var positionType=!editorCheck()?$scope.attr('data-tmpcoder-position-type'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-position-type'),positionLocation=!editorCheck()?$scope.attr('data-tmpcoder-position-location'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-position-location'),positionOffset=!editorCheck()?$scope.attr('data-tmpcoder-position-offset'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-position-offset'),viewportWidth=$('body').prop('clientWidth')+17,availableDevices=!editorCheck()?$scope.attr('data-tmpcoder-sticky-devices'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-sticky-devices'),activeDevices=!editorCheck()?$scope.attr('data-tmpcoder-active-breakpoints'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-active-breakpoints'),stickySectionExists=$scope.hasClass('tmpcoder-sticky-section-yes')||$scope.find('.tmpcoder-sticky-section-yes-editor')?!0:!1,positionStyle,adminBarHeight,stickyEffectsOffset=0,stickyHideDistance=0,$window=$(window),prevScrollPos=$window.scrollTop(),stickyHeaderFooter='',stickyAnimation='none',stickyAnimationHide='',headerFooterZIndex=!editorCheck()?$scope.attr('data-tmpcoder-z-index'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-z-index'),stickType=!editorCheck()?$scope.attr('data-tmpcoder-sticky-type'):$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-sticky-type');var distanceFromTop=$scope.offset().top;if($scope.data('settings').sticky_animation){stickyAnimation=$scope.data('settings').sticky_animation}else{stickyAnimation=$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-sticky-animation')}
12var stickyAnimDuration=$scope.attr('data-tmpcoder-animation-duration')?$scope.attr('data-tmpcoder-animation-duration')+'s':500+'s';if($scope.closest('div[data-elementor-type="wp-post"]').length>0){stickyHeaderFooter=$scope.closest('div[data-elementor-type="wp-post"]')}else if($scope.closest('div[data-elementor-type="header"]').length>0){stickyHeaderFooter=$scope.closest('div[data-elementor-type="header"]')}else if($scope.closest('div[data-elementor-type="footer"]').length>0){stickyHeaderFooter=$scope.closest('div[data-elementor-type="footer"]')}
13if(!$scope.find('.tmpcoder-sticky-section-yes-editor').length){positionType=$scope.attr('data-tmpcoder-position-type');positionLocation=$scope.attr('data-tmpcoder-position-location');positionOffset=$scope.attr('data-tmpcoder-position-offset');availableDevices=$scope.attr('data-tmpcoder-sticky-devices');activeDevices=$scope.attr('data-tmpcoder-active-breakpoints');headerFooterZIndex=$scope.attr('data-tmpcoder-z-index')}
14if('top'===positionLocation&&'auto'===$scope.css('top')){var offsetTop=0;$scope.css('top',0)}else{var offsetTop=+$scope.css('top').slice(0,-2)}
15if(0==availableDevices.length){positionType='relative'}
16if(editorCheck()&&availableDevices){var attributes=$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-sticky-devices');$scope.attr('data-tmpcoder-sticky-devices',attributes);availableDevices=$scope.attr('data-tmpcoder-sticky-devices')}
17changePositionType();changeAdminBarOffset();$(window).smartresize(function(){distanceFromTop=$scope.offset().top;viewportWidth=$('body').prop('clientWidth')+17;if($(window).scrollTop()<=stickyEffectsOffset){changePositionType()}});if(!stickySectionExists){positionStyle='fixed'}
18function changePositionType(){if(!$scope.hasClass('tmpcoder-sticky-section-yes')&&!$scope.find('.tmpcoder-sticky-section-yes-editor')){positionStyle='relative';return}
19var checkDevices=[['mobile_sticky',768],['mobile_extra_sticky',881],['tablet_sticky',1025],['tablet_extra_sticky',1201],['laptop_sticky',1216],['desktop_sticky',2400],['widescreen_sticky',4000]];var emptyVariables=[];var checkedDevices=checkDevices.filter((item,index)=>{return activeDevices.indexOf(item[0])!=-1}).reverse();checkedDevices.forEach((device,index)=>{if(device[1]>viewportWidth){var deviceName=device[0].replace("_sticky","");if('desktop'==deviceName){if($scope.data('settings')){stickyEffectsOffset=distanceFromTop+$scope.data('settings').tmpcoder_sticky_effects_offset}else{stickyEffectsOffset=distanceFromTop+$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-offset-settings')}}else{if($scope.data('settings')){stickyEffectsOffset=distanceFromTop+$scope.data('settings')['tmpcoder_sticky_effects_offset_'+deviceName]}else{stickyEffectsOffset=distanceFromTop+$scope.find('.tmpcoder-sticky-section-yes-editor').attr('data-tmpcoder-offset-settings')}}
20if(availableDevices.indexOf(device[0])===-1){positionStyle=activeDevices?.indexOf(device[0])!==-1?'relative':(emptyVariables[index-1]?emptyVariables[index-1]:positionType);emptyVariables[index]=positionStyle}else if(availableDevices.indexOf(device[0])!==-1){positionStyle=positionType}}});var handleScroll=function(){changeAdminBarOffset();let scrollPos=$window.scrollTop();if('fixed'!=positionStyle){if(scrollPos>distanceFromTop){applyPosition()}else if(scrollPos<=distanceFromTop){$scope.css({'position':'sticky'})}}
21if('relative'!==positionStyle){stickyEffectsOffset=0;if(scrollPos>stickyEffectsOffset){if('yes'==$scope.data('tmpcoder-replace-header')){if('yes'===$scope.data('tmpcoder-sticky-hide')){if(scrollPos>=distanceFromTop){$scope.addClass('tmpcoder-visibility-hidden')}
22if(scrollPos<prevScrollPos){$scope.next().addClass('tmpcoder-hidden-header').addClass('tmpcoder-'+stickyAnimation+'-in');console.log('tmpcoder-'+stickyAnimation+'-in');changeAdminBarOffset($scope.next())}}else{$scope.addClass('tmpcoder-visibility-hidden');$scope.next().addClass('tmpcoder-hidden-header').addClass('tmpcoder-'+stickyAnimation+'-in');changeAdminBarOffset($scope.next())}
23$(document).trigger('tmpcoder:grid:relayout',[$scope]);$(document).trigger('tmpcoder:grid:relayout',[$scope.next()]);setTimeout(function(){$(document).trigger('tmpcoder:grid:relayout',[$scope]);$(document).trigger('tmpcoder:grid:relayout',[$scope.next()])},180)}else{$scope.addClass('tmpcoder-sticky-header')}}else if(scrollPos<=stickyEffectsOffset){if('yes'==$scope.data('tmpcoder-replace-header')){$scope.next().removeClass('tmpcoder-hidden-header');$scope.removeClass('tmpcoder-visibility-hidden');$scope.next().removeClass('tmpcoder-'+stickyAnimation+'-in');$scope.next().removeClass('tmpcoder-adminbar-replace-header');$(document).trigger('tmpcoder:grid:relayout',[$scope]);$(document).trigger('tmpcoder:grid:relayout',[$scope.next()]);setTimeout(function(){$(document).trigger('tmpcoder:grid:relayout',[$scope]);$(document).trigger('tmpcoder:grid:relayout',[$scope.next()])},180)}else{$scope.removeClass('tmpcoder-sticky-header')}}}
24if('yes'===$scope.data('tmpcoder-sticky-hide')){distanceFromTop=0;if(scrollPos>=distanceFromTop){if(scrollPos<prevScrollPos){if('yes'===$scope.data('tmpcoder-replace-header')){$scope.next().removeClass('tmpcoder-'+stickyAnimation+'-out');$scope.next().addClass('tmpcoder-'+stickyAnimation+'-in')}else{$scope.removeClass('tmpcoder-'+stickyAnimation+'-out');$scope.addClass('tmpcoder-'+stickyAnimation+'-in')}}else{if('yes'===$scope.data('tmpcoder-replace-header')){$scope.next().removeClass('tmpcoder-'+stickyAnimation+'-in');$scope.next().addClass('tmpcoder-'+stickyAnimation+'-out')}else{$scope.removeClass('tmpcoder-'+stickyAnimation+'-in');$scope.addClass('tmpcoder-'+stickyAnimation+'-out')}}}}
25clearTimeout(scrollEndTimeout);scrollEndTimeout=setTimeout(()=>{prevScrollPos=scrollPos},10)}
26if('sticky'==positionStyle){$(window).scroll(handleScroll)}else if('fixed'==positionStyle){applyPosition();$(window).scroll(handleScroll)}
27if('yes'==$scope.data('tmpcoder-replace-header')){$scope.next().get(0).style.setProperty('--tmpcoder-animation-duration',stickyAnimDuration)}
28function debounceScroll(method,delay){clearTimeout(method._tId);method._tId=setTimeout(function(){method()},delay)}
29let scrollEndTimeout}
30function applyPosition(){var bottom=+window.innerHeight-(+$scope.css('top').slice(0,-2)+$scope.height());var top=+window.innerHeight-(+$scope.css('bottom').slice(0,-2)+$scope.height());if('yes'===$scope.data('tmpcoder-sticky-hide')&&prevScrollPos<$window.scrollTop()){return}
31if(''==stickType){stickType='fixed'}
32$scope.css({'position':stickType})}
33function changeAdminBarOffset($replace_header=''){if($('#wpadminbar').length){adminBarHeight=$('#wpadminbar').css('height').slice(0,$('#
33wpadminbar').css('height').length-2);if('top'===positionLocation&&('fixed'==$scope.css('position'))){$scope.css('top',+adminBarHeight+offsetTop+'px');$scope.css('bottom','auto')}}}}
34function particlesEffect(){var elementType=$scope.data('element_type'),sectionID=$scope.data('id'),particlesJSON=!editorCheck()?$scope.attr('data-tmpcoder-particles'):$scope.find('.tmpcoder-particle-wrapper').attr('data-tmpcoder-particles-editor');if(('section'===elementType||'container'===elementType)&&undefined!==particlesJSON){if(!editorCheck()){$scope.prepend('<div class="tmpcoder-particle-wrapper" id="tmpcoder-particle-'+sectionID+'"></div>');particlesJS('tmpcoder-particle-'+sectionID,$scope.attr('particle-source')=='tmpcoder_particle_json_custom'?JSON.parse(particlesJSON):modifyJSON(particlesJSON));setTimeout(function(){window.dispatchEvent(new Event('resize'))},500);setTimeout(function(){window.dispatchEvent(new Event('resize'))},1500)}else{if($scope.hasClass('tmpcoder-particle-yes')){particlesJS('tmpcoder-particle-'+sectionID,$scope.find('.tmpcoder-particle-wrapper').attr('particle-source')=='tmpcoder_particle_json_custom'?JSON.parse(particlesJSON):modifyJSON(particlesJSON));$scope.find('.elementor-column').css('z-index',9);setTimeout(function(){window.dispatchEvent(new Event('resize'))},500);setTimeout(function(){window.dispatchEvent(new Event('resize'))},1500)}else{$scope.find('.tmpcoder-particle-wrapper').remove()}}}}
35function modifyJSON(json){var wpJson=JSON.parse(json),particles_quantity=!editorCheck()?$scope.attr('tmpcoder-quantity'):$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-quantity'),particles_color=!editorCheck()?$scope.attr('tmpcoder-color')||'#000000':$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-color')?$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-color'):'#000000',particles_speed=!editorCheck()?$scope.attr('tmpcoder-speed'):$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-speed'),particles_shape=!editorCheck()?$scope.attr('tmpcoder-shape'):$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-shape'),particles_size=!editorCheck()?$scope.attr('tmpcoder-size'):$scope.find('.tmpcoder-particle-wrapper').attr('tmpcoder-size');wpJson.particles.size.value=particles_size;wpJson.particles.number.value=particles_quantity;wpJson.particles.color.value=particles_color;wpJson.particles.shape.type=particles_shape;wpJson.particles.line_linked.color=particles_color;wpJson.particles.move.speed=particles_speed;return wpJson}
36function throttle(fn,delay){let lastCall=0;return function(...args){const now=new Date().getTime();if(now-lastCall<delay){return}
37lastCall=now;return fn(...args)}}
38function initializeScrollZoomAnimationTrigger($newScope){if(window.matchMedia('(prefers-reduced-motion: reduce)').matches)return;const animationTriggerElements=Array.from(document.getElementsByClassName($newScope));if(animationTriggerElements.length===0)return;const scaleAmount=0.2/100;animationTriggerElements.forEach((element)=>{let elementIsVisible=!1;const observer=new IntersectionObserver((elements)=>{elements.forEach((entry)=>{elementIsVisible=entry.isIntersecting})});observer.observe(element);window.addEventListener('scroll',throttle(()=>{if(!elementIsVisible)return;element.style.setProperty('scale',1+scaleAmount*percentageSeen(element))}),{passive:!0})})}
39function percentageSeen(element){const viewportHeight=window.innerHeight;const scrollY=window.scrollY;const elementPositionY=element.getBoundingClientRect().top+scrollY;const elementHeight=element.offsetHeight;if(elementPositionY>scrollY+viewportHeight){return 0}else if(elementPositionY+elementHeight<scrollY){return 100}
40const distance=scrollY+viewportHeight-elementPositionY;let percentage=distance/((viewportHeight+elementHeight)/100);return Math.round(percentage)}
41function parallaxBackground(){if($scope.hasClass('tmpcoder-jarallax-yes')){if(!editorCheck()&&$scope.hasClass('tmpcoder-jarallax')){$scope.css('background-image','url("'+$scope.attr('bg-image')+'")');$scope.css('background-image','url("'+$scope.attr('bg-image')+'")');$scope.jarallax({type:$scope.attr('scroll-effect'),speed:$scope.attr('speed-data'),})}else if(editorCheck()){$scope.css('background-image','url("'+$scope.find('.tmpcoder-jarallax').attr('bg-image-editor')+'")');$scope.jarallax({type:$scope.find('.tmpcoder-jarallax').attr('scroll-effect-editor'),speed:$scope.find('.tmpcoder-jarallax').attr('speed-data-editor')})}}}
42function observeParallax($scope){const observer=new IntersectionObserver((entries,obs)=>
42{entries.forEach(entry=>{if(entry.isIntersecting){parallaxBackground.call(this,$scope);obs.unobserve(entry.target)}})},{rootMargin:'0px',threshold:0.1});observer.observe($scope[0])}
43function parallaxMultiLayer(){if($scope.hasClass('tmpcoder-parallax-yes')){var scene=document.getElementsByClassName('tmpcoder-parallax-multi-layer');var parallaxInstance=Array.from(scene).map(item=>{return new Parallax(item,{invertY:item.getAttribute('direction')=='yes'?!0:!1,invertX:item.getAttribute('direction')=='yes'?!0:!1,scalarX:item.getAttribute('scalar-speed'),scalarY:item.getAttribute('scalar-speed'),hoverOnly:!0,pointerEvents:!0})});parallaxInstance.forEach(parallax=>{parallax.friction(0.2,0.2)})}
44var newScene=[];document.querySelectorAll('.tmpcoder-parallax-multi-layer').forEach((element,index)=>{element.parentElement.style.position="relative";element.style.position="absolute";newScene.push(element);element.remove()});document.querySelectorAll('.tmpcoder-parallax-ml-children').forEach((element,index)=>{element.style.position="absolute";element.style.top=element.getAttribute('style-top');element.style.left=element.getAttribute('style-left')});$('.tmpcoder-parallax-yes').each(function(index){$(this).append(newScene[index])})}
45function container_spacer(){var win=jQuery(window).width();var con=0;if(jQuery('.elementor-section-boxed .elementor-container').length){con=jQuery('.elementor-section-boxed .elementor-container').width()}
46var total=(win-con)/2;jQuery('.tmpcoder-dynamic-padding-left').css('padding-left',total);jQuery('.tmpcoder-dynamic-padding-right').css('padding-right',total)}
47$(window).on('load',function(){container_spacer()});$(window).resize(function(){container_spacer()})}
48jQuery(window).on('elementor/frontend/init',function(){jQuery(document).on("click",'.tmpcoder-nav-menu .tmpcoder-menu-item',function(e){jQuery('.tmpcoder-close-offcanvas').trigger("click")});jQuery(document).on("click",'.dialog-lightbox-widget .elementor-video-container',function(e){jQuery(".dialog-close-button").trigger("click")});$(function(){$(window).resize()});elementorFrontend.hooks.addAction("frontend/element_ready/global",widgetSection)})
49jQuery('.tmpcoder-testimonial-prev-arrow').on('click',function(e){e.stopPropagation();var slide=hasRtl()?'slickNext':'slickPrev';jQuery(this).parent().parent().find('.tmpcoder-testimonial-carousel').slick(slide)});jQuery('.tmpcoder-testimonial-next-arrow').on('click',function(e){e.stopPropagation();var slide=hasRtl()?'slickPrev':'slickNext';jQuery(this).parent().parent().find('.tmpcoder-testimonial-carousel').slick(slide)});jQuery('.tmpcoder-grid-slider-prev-arrow').on('click',function(e){e.stopPropagation();var slide=hasRtl()?'slickNext':'slickPrev';jQuery(this).parent().prev().slick(slide)});jQuery('.tmpcoder-grid-slider-next-arrow').on('click',function(e){e.stopPropagation();var slide=hasRtl()?'slickPrev':'slickNext';jQuery(this).parent().prev().slick(slide)})}(jQuery));(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
50func.apply(obj,args);timeout=null};if(timeout)
51clearTimeout(timeout);else if(execAsap)
52func.apply(obj,args);timeout=setTimeout(delayed,threshold||100)}}
53jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr)}})(jQuery,'smartresize')

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.