!function(e){"use strict";e(".close-btn").click(function(){if(e(".custom-model-main").length>0){e(".custom-model-main").removeClass("model-open");const t=e(".pop-up-content-wrap iframe");t.attr("src","");const n=t.clone();t.replaceWith(n)}}),document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("video-ss");function t(){const e=document.querySelector(".playButton");e&&e.remove()}function n(){e.paused||e.pause()}function o(){e.paused&&e.play().catch(e=>{console.error("Failed to play video:",e)})}e&&(e&&e.play().catch(n=>{e.muted=!0,e.play().catch(n=>{const o=document.createElement("button");o.className="playButton",o.textContent="Play Video",o.style.position="absolute",o.style.top="50%",o.style.left="50%",o.style.transform="translate(-50%, -50%)",o.style.zIndex="1000",o.addEventListener("click",()=>{e.play(),t()});const c=document.querySelector(".home-media-banner__content-section");c?c.appendChild(o):(console.error('Element with class "home-media-banner__content-section" not found'),document.body.appendChild(o))})}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState?n():"visible"===document.visibilityState&&o()}),window.addEventListener("blur",()=>{n()}),window.addEventListener("focus",()=>{o()}),e.addEventListener("play",t))})}(jQuery);; !function(o){"use strict";jQuery(document).on("click",".sutherland-newsroom-pagination a",function(t){let e=o(this).parents(".newsroom-main-section"),n=o(this).data("paged"),a=o(".newsroom-grid").data("postlimit"),r=o(".newsroom-grid").data("showdate"),i=o(".newsroom-grid").data("showcategory"),d=o(".newsroom-grid").data("textalignment"),s=o(".newsroom-grid").data("showtitle"),c=o(".newsroom-grid").data("showdescription"),l=o(".newsroom-grid").data("cardbgcolor"),u=o(".newsroom-grid").data("cardbodycolor");o.ajax({url:"/wp-admin/admin-ajax.php",type:"POST",dataType:"json",data:{action:"sutherland_newsroom_ajax_callback",paged:n,postLimit:a,showDate:r,showCategory:i,textAlignment:d,showTitle:s,showDescription:c,cardBgColor:l,cardBodyColor:u,ajax_nonce:siteConfig.ajax_nonce},beforeSend:function(){jQuery(".newsroom-body").addClass("loading")},success:function(t){jQuery(".newsroom-grid").html(t.content),jQuery(".sutherland-newsroom-pagination").replaceWith(t.pagination),o("html, body").animate({scrollTop:e.offset().top-o(".sutherland-header").outerHeight()},500)},complete:function(){jQuery(".newsroom-body").removeClass("loading")}})}),jQuery(document).on("click",".newsroom-item",function(){const o=jQuery(this).data("url"),t=jQuery(this).data("target");if(o)try{const e=new URL(o,window.location.origin);"_blank"===t?"http:"!==e.protocol&&"https:"!==e.protocol||window.open(e.href,"_blank","noopener,noreferrer"):"http:"!==e.protocol&&"https:"!==e.protocol||window.location.assign(e.href)}catch(t){console.warn("Invalid URL blocked:",o)}})}(jQuery),document.addEventListener("DOMContentLoaded",function(){function o(o){o.querySelectorAll(".newsroom-extrnal-logo img").forEach(function(o){o.removeAttribute("style")})}o(document),new MutationObserver(function(t){for(const e of t)e.addedNodes.forEach(function(t){1===t.nodeType&&o(t)})}).observe(document.body,{childList:!0,subtree:!0})});;