PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
global
!function(e){woodmartThemeModule.floatingBlocks=function(){if(woodmartThemeModule.$body.hasClass("page-template-maintenance"))return;let o=[],t={};const n={get(e){let o=Cookies.get(e);if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(t){o=[]}return o||[]},set(e,o){Cookies.set(e,JSON.stringify(o),{expires:parseInt(woodmart_settings.cookie_expires),path:"/",secure:woodmart_settings.cookie_secure_param})}},s={after_page_views:"onPageViews",after_sessions:"onSessions",time_to_show:"onTime",scroll_value:"onScroll",scroll_to_selector:"onScrollToSelector",inactivity_time:"onInactivity",click_times:"onClicks",selector:"onSelectorClick",parameters:"onUrlParam",hashtags:"onUrlHashtag",exit_intent:"onExitIntent"},i={onTime:function(e,o,t){setTimeout(()=>{c(e,"time_to_show")||t(e)},parseInt(o,10))},onScrollToSelector:function(e,o,t){let n=!1;woodmartThemeModule.$window.on("scroll",function(){if(n)return;const s=woodmartThemeModule.$window.scrollTop(),i=woodmartThemeModule.$window.height();if(o){const a=woodmartThemeModule.$document.find(o);if(!a.length)return;const r=a.offset().top,d=r+a.outerHeight();if(s+i>=r&&s<=d){if(n=!0,c(e,"scroll_to_selector"))return;t(e)}}})},onScroll:function(e,o,t){let n=!1;woodmartThemeModule.$window.on("scroll",function(){if(n)return;const s=woodmartThemeModule.$window.scrollTop(),i=s/(woodmartThemeModule.$document.height()-woodmartThemeModule.$window.height())*100;if(o){let a=!1;if(a="string"==typeof o&&o.endsWith("%")?i>=parseFloat(o):s>=parseInt(o),a){if(n=!0,c(e,"scroll_value"))return;t(e)}}})},onClicks:function(e,o,t){let n=0;woodmartThemeModule.$document.on("mousedown",function(){if(n++,n>=parseInt(o,10)){n=0;const o=e.find(".wd-fb-wrap");if(o.length&&!o.hasClass("wd-hide"))return;if(c(e,"click_times"))return;t(e)}})},onSelectorClick:function(e,o,t){e.hasClass("wd-hide")||woodmartThemeModule.$document.on("click",o,function(o){o.preventDefault(),c(e,"selector")||t(e)})},onUrlParam:function(e,o,t){const n=new URLSearchParams(window.location.search);if(o.split(",").filter(Boolean).some(e=>{const[o,t]=e.trim().split("=");return o&&t?n.get(o)===t:n.has(e.trim())})){if(c(e,"parameters"))return;t(e)}},onUrlHashtag:function(e,o,t){if(!o)return;const n=o.split(",").map(e=>e.trim()).filter(Boolean);function s(){const o=window.location.hash.trim();if(n.some(e=>e===o)){if(c(e,"hashtags"))return;t(e)}}s(),window.addEventListener("hashchange",s)},onPageViews:function(e,o,t){const n="woodmart_page_views_"+e.attr("id");let s=parseInt(localStorage.getItem(n),10)||0;if(s++,localStorage.setItem(n,s),s>=parseInt(o,10)){if(localStorage.removeItem(n),c(e,"after_page_views"))return;t(e)}},onSessions:function(e,o,t){const n=e.attr("id"),s="woodmart_session_"+n,i="woodmart_sessions_"+n;let a=parseInt(localStorage.getItem(i),10)||0;if(sessionStorage.getItem(s)||(sessionStorage.setItem(s,"1"),a++,localStorage.setItem(i,a)),a>=parseInt(o,10)){if(localStorage.removeItem(i),c(e,"after_sessions"))return;t(e)}},onInactivity:function(e,o,t){let n;const s=parseInt(o,10);function i(){clearTimeout(n),n=setTimeout(()=>{c(e,"inactivity_time")||t(e)},s)}woodmartThemeModule.$document.on("mousemove keydown scroll",i),i()},onExitIntent:function(e,o){let t=!1;woodmartThemeModule.$document.on("mouseleave",function(n){t||c(e,"exit_intent")||n.clientY<=0&&(t=!0,o(e))})}};function a(e){const n=e.attr("id");t[n]||(t[n]=!0,o.push(e),1===o.length&&r(e))}function r(s){if(e.magnificPopup?.instance?.isOpen||"yes"===woodmart_settings.age_verify&&"confirmed"!==Cookies.get("woodmart_age_verify")){const o=e.magnificPopup.instance;if(!o.isOpen||!o.wrap?.find(".wd-popup-builder, .wd-promo-popup").length)return void e(document).one("mfpClose",()=>setTimeout(()=>r(s),600))}const i=s.data("options")||{},a=s.attr("id"),d="1"===i?.close_btn,l=s.data("options")?.version||1,c="woodmart_"+a+"_"+l;if("1"===i?.persistent_close){if(n.get(c).includes("persistent_closed"))return void o.shift();woodmartThemeModule.$document.on("mfpClose",function(){const e=n.get(c);e.includes("persistent_closed")||(e.push("persistent_closed"),n.set(c,e))})}const p="1"===i?.enable_page_scrolling,u="1"===i?.close_by_overlay,m="1"===i?.close_by_esc;let w=" wd-mfp-popup-wrap-"+a.replace("popup-",""),f=" wd-mfp-popup-bg-"+a.replace("popup-",""),h="wd-popup-close wd-action-btn wd-cross-icon";i?.close_btn_display&&(h+=" wd-style-"+i.close_btn_display);let _="";i?.animation&&(_="wd-animation-"+i.animation),e.magnificPopup.open({items:{src:s},type:"inline",removalDelay:600,fixedContentPos:!p,tClose:woodmart_settings.close,closeMarkup:d?'<div class="'+h+'"><a title="'+woodmart_settings.close+'" href="#" rel="nofollow"><span class="wd-action-icon"></span><span class="wd-action-text">'+woodmart_settings.close+"</span></a></div>":"",enableEscapeKey:m,closeOnBgClick:u,callbacks:{beforeOpen:function(){s.find("link").appendTo("head")},open:function(){this.wrap.find(".wd-popup-wrap").addClass(_),this.wrap.find(".wd-promo-popup").length?this.wrap.addClass(w+" wd-promo-popup-wrap"):this.wrap.addClass(w+" wd-popup-builder-wrap"),e(".mfp-bg").addClass(f),i?.close_by_selector&&s.find(i.close_by_selector).on("click",function(o){o.preventDefault(),e.magnificPopup.close()}),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wdOpenPopup"),woodmartThemeModule.$document.trigger("wdPopupOpened."+a)},close:function(){t[a]=!1,function(){if(o.shift(),o.length>0){const e=o[0];setTimeout(()=>r(e),0)}}()}}})}function d(e){const o=e.find(".wd-fb-wrap");o.hasClass("wd-out")||(o.removeClass("wd-hide"),o.hasClass("wd-animation")&&(o.removeClass("wd-out"),setTimeout(()=>{o.addClass("wd-in")},100)))}function l(e){const o=e.closest(".wd-fb-wrap");o.length&&(o.trigger("fbClose"),o.hasClass("wd-animation")?(o.removeClass("wd-in"),o.addClass("wd-out"),setTimeout(()=>{o.addClass("wd-hide"),o.removeClass("wd-out")},600)):setTimeout(()=>{o.addClass("wd-hide")}))}function c(e,o){const t=e.attr("id"),s=e.data("options")||{},i=s?.version||1,a=e.data("triggers")||{};if("0"===a[o]?.show_once)return!1;const r="woodmart_"+t+"_"+i,d=n.get(r);return!!d.includes(o)||(e.hasClass("wd-popup")?(woodmartThemeModule.$document.one("wdPopupOpened."+t,function(){const e=n.get(r);e.includes(o)||(e.push(o),n.set(r,e))}),!1):(d.push(o),n.set(r,d),!1))}function p(e,o,t){for(const[n,a]of Object.entries(s))if(o[n]?.value){if("selector"===n&&e.hasClass("wd-popup"))continue;"exit_intent"===n?i[a](e,t):i[a](e,o[n].value,t)}}woodmartThemeModule.$document.on("click",".wd-fb-close",function(o){o.preventDefault(),l(e(this))}),e(".wd-fb-holder").each(function(){const o=e(this),t=o.data("triggers"),s=o.data("options")||{},i=o.find(".wd-fb-wrap"),a="woodmart_"+o.attr("id")+"_"+(o.data("options")?.version||1);if("1"===s?.persistent_close){if(n.get(a).includes("persistent_closed"))return void i.addClass("wd-hide");woodmartThemeModule.$document.on("fbClose",function(){const e=n.get(a);e.includes("persistent_closed")||(e.push("persistent_closed"),n.set(a,e))})}if(s?.close_by_selector&&woodmartThemeModule.$document.on("click",s.close_by_selector,function(e){i.hasClass("wd-hide")||(e.preventDefault(),l(i))}),!t||"object"!=typeof t)return"1"===s?.persistent_close&&i.removeClass("wd-hide"),void(i.hasClass("wd-animation")&&("1"===s?.persistent_close?setTimeout(()=>{i.addClass("wd-in")},16):i.addClass("wd-in")));p(o,t,d)}),e(".wd-popup-builder, .wd-promo-popup").each(function(){const o=e(this),t=o.data("triggers")||{};if(!function(e){const o=e.data("options")||{},t=woodmartThemeModule.$window.width();return t<=768?"1"===o.hide_popup_mobile:t>768&&t<=1024?"1"===o.hide_popup_tablet:"1"===o.hide_popup}(o)&&(o.find(".mc4wp-form .mc4wp-response").length&&o.find(".mc4wp-form .mc4wp-response").children().length&&a(o),t&&"object"==typeof t)){if(t.selector?.value&&i.onSelectorClick(o,t.selector.value,a),o.hasClass("wd-promo-popup")){let e=Cookies.get("woodmart_shown_pages");if(e||(e=0),e<t.popup_pages)return e++,void Cookies.set("woodmart_shown_pages",e,{expires:parseInt(woodmart_settings.cookie_expires),path:"/",secure:woodmart_settings.cookie_secure_param})}p(o,t,a)}})},woodmartThemeModule.$document.ready(function(){woodmartThemeModule.floatingBlocks()})}(jQuery);
[-] beforeSearchContent.js
[edit]
[-] parallax.js
[edit]
[-] scrollTop.min.js
[edit]
[-] floatingBlocks.min.js
[edit]
[-] searchHistory.min.js
[edit]
[-] hiddenSidebar.min.js
[edit]
[-] masonryLayout.js
[edit]
[-] stickyColumn.js
[edit]
[-] stickyColumn.min.js
[edit]
[-] helpers.min.js
[edit]
[-] stickySocialButtons.min.js
[edit]
[-] parallax.min.js
[edit]
[-] swiperInit.js
[edit]
[-] clearSearch.js
[edit]
[-] scrollTop.js
[edit]
[-] clearSearch.min.js
[edit]
[-] ageVerify.min.js
[edit]
[-] beforeSearchContent.min.js
[edit]
[-] stickySocialButtons.js
[edit]
[-] ajaxSearch.js
[edit]
[-] mfpPopup.js
[edit]
[-] lcpTracker.js
[edit]
[-] photoswipeImages.js
[edit]
[-] clickOnScrollButton.min.js
[edit]
[-] masonryLayout.min.js
[edit]
[-] css-animations.js
[edit]
[-] cookiesPopup.min.js
[edit]
[-] hiddenSidebar.js
[edit]
[-] widgetCollapse.min.js
[edit]
[-] cookiesPopup.js
[edit]
[-] animations.min.js
[edit]
[-] scrollBar.min.js
[edit]
[-] photoswipeImages.min.js
[edit]
[-] floatingBlocks.js
[edit]
[-] ajaxSearch.min.js
[edit]
[-] callPhotoSwipe.min.js
[edit]
[-] lazyLoading.js
[edit]
[-] elementor-integration.js
[edit]
[-] preloader.js
[edit]
[-] backHistory.js
[edit]
[-] searchHistory.js
[edit]
[-] stickyContainer.js
[edit]
[+]
..
[-] css-animations.min.js
[edit]
[-] swiperInit.min.js
[edit]
[-] mfpPopup.min.js
[edit]
[-] lazyLoading.min.js
[edit]
[-] clickOnScrollButton.js
[edit]
[-] helpers.js
[edit]
[-] searchFullScreen.min.js
[edit]
[-] scrollBar.js
[edit]
[-] backHistory.min.js
[edit]
[-] animations.js
[edit]
[-] lcpTracker.min.js
[edit]
[-] btnsToolTips.min.js
[edit]
[-] searchFullScreen.js
[edit]
[-] widgetCollapse.js
[edit]
[-] stickyContainer.min.js
[edit]
[-] widgetsHidable.js
[edit]
[-] elementor-integration.min.js
[edit]
[-] preloader.min.js
[edit]
[-] callPhotoSwipe.js
[edit]
[-] ageVerify.js
[edit]
[-] animationsOffset.js
[edit]
[-] widgetsHidable.min.js
[edit]
[-] animationsOffset.min.js
[edit]
[-] btnsToolTips.js
[edit]