PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/v1world.us/wp-content/themes/neve/assets/js/build/all/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/v1world.us/wp-content/themes/neve/assets/js/build/all/frontend.js |
!function(){"use strict";function r(e,n){for(var t=0;t<e.length;t++)n(e[t])}function n(e){var n=e.split("#");return 1<n.length?n[0]:e}function t(e,n,t){for(var o=e instanceof NodeList?e:[e],i=0;i<o.length;i++)o[i]&&o[i].addEventListener(n,t)}function o(e,n){l(e,n,"toggle")}function e(){var e;u=window.location.href,g(),0!==(e=document.querySelectorAll(".nv-nav-wrap a")).length&&r(e,function(e){e.addEventListener("click",function(e){e=e.target.getAttribute("href");if(null===e)return!1;n(e)===n(u)&&window.HFG.toggleMenuSidebar(!1)})}),h(),w(),S(),!0===/(Trident|MSIE|Edge)/.test(window.navigator.userAgent)&&(e=document.querySelectorAll('.header--row[data-show-on="desktop"] .sub-menu'),r(e,function(e){var n=e.parentNode;n.addEventListener("mouseenter",function(){c(e,y[0])}),n.addEventListener("mouseleave",function(){a(e,y[0])})})),window.HFG.initSearch=function(){w(),h()}}var i,u,c=function(e,n){l(e,n,"add")},a=function(e,n){l(e,n,"remove")},l=function(e,n,t){for(var o=n.split(" "),i=e instanceof NodeList?e:[e],r=0;r<i.length;r++)i[r]&&i[r].classList[t].apply(i[r].classList,o)},d=2,s=".nv-index-posts .posts-wrapper",v=function(){var e=NeveProperties,n=e.masonryStatus,t=e.masonryColumns,o=e.blogLayout;"enabled"!==n||t<2||null!==(i=document.querySelector(s))&&imagesLoaded(i,function(){window.nvMasonry=new Masonry(i,{itemSelector:"article.layout-".concat(o),columnWidth:"article.layout-".concat(o),percentPosition:!0})})},m=function(){"enabled"===NeveProperties.infScroll&&null!==document.querySelector(s)&&function(c,a){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.5;new IntersectionObserver(function(e){var u;e[0].intersectionRatio<=n||(a(),u=setInterval(function(){var e=c.getBoundingClientRect(),n=e.top,t=e.left,o=e.right,i=e.bottom,r=window,e=r.innerWidth,r=r.innerHeight;0<=n&&0<=t&&o<=e&&i<=r?a():clearInterval(u)},750))}).observe(c)}(document.querySelector(".infinite-scroll-trigger"),function(){return parent.wp.customize?(parent.wp.customize.requestChangesetUpdate().then(function(){f()}),!1):void f()})},f=function(){var e=document.querySelector(".infinite-scroll-trigger");if(null!==e){if(document.querySelector(".nv-loader").style.display="block",d>NeveProperties.maxPages)return e.parentNode.removeChild(e),void(document.querySelector(".nv-loader").style.display="none");var n,t,o=document.querySelector(s),i=NeveProperties.lang,e=NeveProperties.endpoint+d,i=p(i?e+"/"+i:e);d++,e=i,n=function(e){o.innerHTML+=JSON.parse(e),"enabled"===NeveProperties.masonryStatus&&(window.nvMasonry.reloadItems(),window.nvMasonry.layout())},i=NeveProperties.query,(t=new XMLHttpRequest).onload=function(){4===t.readyState&&200===t.status&&n(t.response)},t.onerror=function(){},t.open("POST",e,!0),t.setRequestHeader("Content-Type","application/json; charset=UTF-8"),t.send(i)}},p=function(e){return void 0===wp.customize?e:(e+="?customize_changeset_uuid="+wp.customize.settings.changeset.uuid+"&customize_autosaved=on","undefined"==typeof _wpCustomizeSettings?e:e+="&customize_preview_nonce="+_wpCustomizeSettings.nonce.preview)},y=["dropdown-open","active","nav-clickaway-overlay"],g=function(){var o,i=NeveProperties.isRTL,e=document.querySelectorAll(".sub-menu, .minimal .nv-nav-search");0!==e.length&&(o=window.innerWidth,r(e,function(e){var n=e.getBoundingClientRect(),t=n.left;t<0&&(e.style.right=i?"-100%":"auto",e.style.left=i?"auto":0),t+n.width>=o&&(e.style.right=i?0:"100%",e.style.left="auto")}),"undefined"!=typeof menuCalcEvent&&window.dispatchEvent(menuCalcEvent))};function h(){var e=document.querySelectorAll(".caret-wrap");r(e,function(n){n.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();e=n.parentNode.parentNode.querySelector(".sub-menu");o(n,y[0]),o(e,y[0]),b(document.querySelectorAll(".".concat(y[0])),y[0])})})}function w(){var e=document.querySelectorAll(".nv-nav-search"),n=document.querySelectorAll(".menu-item-nav-search"),t=document.querySelectorAll(".close-responsive-search");r(n,function(n){n.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),o(n,y[1]),setTimeout(function(){n.querySelector(".search-field").focus()},50),b(n,y[1])})}),r(e,function(e){e.addEventListener("click",function(e){e.stopPropagation()})}),r(t,function(e){e.addEventListener("click",function(e){e.preventDefault(),r(n,function(e){a(e,y[1])});e=document.querySelector(".".concat(y[2]));null!==e&&e.parentNode.removeChild(e)})})}function S(){var e,n=document.querySelector(".header--row .menu-item-nav-cart");null===n||null!==(e=n.querySelector(".nv-nav-cart"))&&(e.style.left=n.getBoundingClientRect().left<350?0:null)}function b(e,n){var t=document.querySelector(".".concat(y[2]));null!==t&&t.parentNode.removeChild(t),t=document.createElement("div"),c(t,y[2]);var o=document.querySelector("header.header");o.parentNode.insertBefore(t,o),t.addEventListener("click",function(){a(e,n),t.parentNode.removeChild(t)})}window.addEventListener("resize",S);function q(){this.options={menuToggleDuration:300},this.init()}var L;function N(){window.HFG=new q,function(){if(null===document.querySelector(".blog.nv-index-posts"))return;v(),m()}(),e()}function E(){g()}q.prototype.init=function(){var e=this;!1===(0<arguments.length&&void 0!==arguments[0]&&arguments[0])&&(n=document.querySelectorAll(".close-sidebar-panel .navbar-toggle"),t(n,"click",function(){e.toggleMenuSidebar(!1)}));var n=document.querySelectorAll(".menu-mobile-toggle");t(n,"click",function(){e.toggleMenuSidebar(!0)});n=document.querySelector(".header-menu-sidebar-overlay");t(n,"click",function(){this.toggleMenuSidebar(!1)}.bind(this))},q.prototype.toggleMenuSidebar=function(e){var n=document.querySelectorAll(".menu-mobile-toggle");a(document.body,"hiding-header-menu-sidebar"),!NeveProperties.isCustomize&&document.body.classList.contains("is-menu-sidebar")||!1===e?(null!==(e=document.querySelector(".nav-clickaway-overlay"))&&e.parentNode.removeChild(e),c(document.body,"hiding-header-menu-sidebar"),a(document.body,"is-menu-sidebar"),a(n,"is-active"),setTimeout(function(){a(document.body,"hiding-header-menu-sidebar")}.bind(this),1e3)):(c(document.body,"is-menu-sidebar"),c(n,"is-active"))},window.addEventListener("load",function(){N()}),window.addEventListener("resize",function(){clearTimeout(L),L=setTimeout(E,500)})}();