PageSourceSearch

https://safe-families.org/wp-content/plugins/divitorque-pro/dist/js/extensions.js?ver=1784983170

js safe-families.org collected 2026-09-24 09:33:47 UTC 7,616 bytes, 1 lines download raw bytes

1(()=>{var e={64058(){function e(e){e.addEventListener("mouseenter",function(){return n(e,!0)}),e.addEventListener("mouseleave",function(){return n(e,!1)})}function t(e){var t=e.querySelector("a");t&&t.addEventListener("click",function(t){t.preventDefault(),n(e)})}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;null===t?e.classList.toggle("open"):e.classList[t?"add":"remove"]("open")}document.body.classList.contains("dt-mega-menu-active")&&document.addEventListener("DOMContentLoaded",function(){var n=document.querySelector(".et_pb_menu")||document.querySelector(".et_menu_container");if(n){var o=n.querySelectorAll(".dt-mega-menu");!function(n){n.querySelectorAll(".menu-item-has-children").forEach(function(n){var o=n.getAttribute("data-mega-menu-toggle-on");!function(n,o){switch(o){case"hover":e(n);break;case"click":t(n);break;case"both":e(n),t(n)}}(n,o)})}(n),function(e,t){var n=document.body,o=e.getBoundingClientRect(),c=n.getBoundingClientRect();t.forEach(function(e){e.style.left="".concat(-(o.left-c.left),"px"),e.style.minWidth="".concat(c.width,"px")})}(n,o),document.querySelectorAll("#main-header .mobile_menu_bar, .et-l--header .mobile_menu_bar").forEach(function(e){e.addEventListener("click",function(){["#main-header",".et-l--header"].forEach(function(e){document.querySelectorAll("".concat(e," .et_mobile_menu")).forEach(function(e){e.querySelectorAll("li.menu-item-has-children").forEach(function(e){var t=e.querySelectorAll(".dt-mega-menu"),n=e.getBoundingClientRect();t.forEach(function(e){e.style.left="0px",e.style.minWidth="".concat(n.width,"px")}),e.classList.remove("dt-mega-menu-opened"),e.classList.add("dt-mega-menu-closed");var o=e.querySelector("a");o.classList.remove("dt-mega-menu-link"),jQuery("#main-header .et_mobile_menu li > a").off("click");var c=function(t){if(t.target.matches(".et_mobile_menu li.menu-item-has-children > a")){var n=document.querySelector("#main-header .et_mobile_menu");n&&(n.style.display="block")}!function(e,t){e.preventDefault(),t.querySelector("a").classList.toggle("dt-mega-menu-link"),t.classList.contains("dt-mega-menu-closed")?(t.classList.remove("dt-mega-menu-closed"),setTimeout(function(){t.classList.add("dt-mega-menu-opened")},0)):t.classList.contains("dt-mega-menu-opened")&&(t.classList.remove("dt-mega-menu-opened"),setTimeout(function(){t.classList.add("dt-mega-menu-closed")},1e3))}(t,e)};o.addEventListener("click",c),o.clickHandler=c})})})})})}})},94091(){var e="is-open",t=function(e){return!0===e||"1"===e||1===e};function n(){document.querySelectorAll(".divitorque-popup-modal").forEach(function(e){try{var n=e.querySelector(".divitorque-popup"),u={};try{u=JSON.parse(n&&n.dataset.popupSettings||"{}")}catch(e){return}!function(e){var t=e.querySelector(".divitorque-popup-close-button");t&&t.addEventListener("click",function(t){t.preventDefault(),c(e)}),e.addEventListener("click",function(t){t.target===e&&"0"!==e.dataset.overlay&&c(e)})}(e),function(e,n){var c=n.advanced||{},u=c.x_page_views||{},s=c.x_show_times||{},l=n.popup&&n.popup.id;if((!t(u.enabled)||function(e,t){var n="dt_page_views_".concat(t),o=parseInt(i(n),10)||0;return o<e&&a(n,o+=1,365),o>=e}(parseInt(u.page_views,10)||1,l))&&(!t(s.enabled)||function(e,t,n){var o="dt_show_times_".concat(t,"_").concat(n);return(parseInt(i(o),10)||0)<e}(parseInt(s.show_times,10)||1,s.times_period||"persisting",l))){var d=n.triggers||{},m=!1;Object.keys(d).forEach(function(c){var i=d[c];i&&t(i.enabled)&&(m=!0,function(e,t,n,c){switch(e){case"on_page_load":r(parseInt(t.time,10)||0,n,c);break;case"on_scroll":!function(e,t,n,c){var r=0,i=function(){var a,u,s=(a=document.documentElement,u=document.body,(a.scrollTop||u.scrollTop)/((a.scrollHeight||u.scrollHeight)-a.clientHeight)*100),l=window.scrollY||document.documentElement.scrollTop,d="down"===t&&l>r&&s>=e||"up"===t&&l<r&&s<=e;r=l<=0?0:l,d&&(o(n,c),window.removeEventListener("scroll",i))};window.addEventListener("scroll",i,{passive:!0})}(parseInt(t.percent,10)||50,t.direction||"down",n,c);break;case"on_scroll_to_element":!function(e,t,n){if(e){var c=null;try{c=document.querySelector(e)}catch(e){return}if(c&&"IntersectionObserver"in window){var r=new IntersectionObserver(function(e){e[0].isIntersecting&&(o(t,n),r.disconnect())});r.observe(c)}}}(t.selector||"",n,c);break;case"on_click":!function(e,t,n){e&&document.addEventListener("click",function(c){var r=null;try{r=c.target.closest(e)}catch(e){return}r&&(c.preventDefault(),o(t,n))})}(t.selector||"",n,c);break;case"on_page_exit_intent":!function(e,t){var n=function(c){c.clientY<=0&&(o(e,t),document.removeEventListener("mouseleave",n))};document.addEventListener("mouseleave",n)}(n,c);break;
1case"on_inactivity":!function(e,t,n){var c,r=["mousemove","keydown","scroll","touchstart"],i=function(){window.clearTimeout(c),c=window.setTimeout(function(){o(t,n),window.clearTimeout(c),r.forEach(function(e){return window.removeEventListener(e,i)})},1e3*e)};r.forEach(function(e){return window.addEventListener(e,i,{passive:!0})}),i()}(parseInt(t.time,10)||15,n,c)}}(c,i,e,n))}),m||r(0,e,n)}}(e,u)}catch(e){}})}function o(n,o){if(!n.classList.contains(e)){n.__closeTimer&&(window.clearTimeout(n.__closeTimer),n.__closeTimer=null),n.__lastFocus=document.activeElement,n.style.display="flex",n.setAttribute("aria-hidden","false"),requestAnimationFrame(function(){return n.classList.add(e)}),document.body.classList.add("dt-popup-open");var r=n.querySelector(".divitorque-popup-content");r&&r.focus({preventScroll:!0}),n.__onKey=function(e){"Escape"===e.key?c(n):"Tab"===e.key&&function(e,t){var n=t.querySelectorAll('a[href], button:not([disabled]), input, textarea, select, [tabindex]:not([tabindex="-1"])');if(n.length){var o=n[0],c=n[n.length-1];e.shiftKey&&document.activeElement===o?(e.preventDefault(),c.focus()):e.shiftKey||document.activeElement!==c||(e.preventDefault(),o.focus())}}(e,n)},document.addEventListener("keydown",n.__onKey),function(e){var n=(e.advanced||{}).x_show_times||{};if(t(n.enabled)){var o=e.popup&&e.popup.id,c=n.times_period||"persisting",r="dt_show_times_".concat(c,"_").concat(o);a(r,(parseInt(i(r),10)||0)+1,function(e){switch(e){case"day":return 1;case"week":return 7;case"month":return 30;default:return 365}}(c))}}(o)}}function c(t){t.classList.contains(e)&&(t.classList.remove(e),t.setAttribute("aria-hidden","true"),document.querySelector(".divitorque-popup-modal."+e)||document.body.classList.remove("dt-popup-open"),t.__onKey&&(document.removeEventListener("keydown",t.__onKey),t.__onKey=null),t.__closeTimer=window.setTimeout(function(){t.style.display="none",t.__closeTimer=null,t.__lastFocus&&"function"==typeof t.__lastFocus.focus&&t.__lastFocus.focus({preventScroll:!0})},320))}function r(e,t,n){window.setTimeout(function(){return o(t,n)},1e3*e)}function i(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}function a(e,t,n){var o="";if(n){var c=new Date;c.setTime(c.getTime()+864e5*n),o="; expires="+c.toUTCString()}document.cookie="".concat(e,"=").concat(t||"").concat(o,"; path=/; SameSite=Lax")}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()}},t={};function n(o){var c=t[o];if(void 0!==c)return c.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(64058),n(94091)})()})();

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.