HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/commandorestoration/public_html/wp-content/themes/hestia/assets/js/dashboard.min.js
!function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=28)}({28:function(t,e){new
/**
 * Sticky.js
 * Library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive.
 *
 * @version 1.3.0
 * @author Rafal Galus <[email protected]>
 * @website https://rgalus.github.io/sticky-js/
 * @repo https://github.com/rgalus/sticky-js
 * @license https://github.com/rgalus/sticky-js/blob/master/LICENSE
 */
class{constructor(t="",e={}){this.selector=t,this.elements=[],this.version="1.3.0",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:e.wrap||!1,wrapWith:e.wrapWith||"<span></span>",marginTop:e.marginTop||0,marginBottom:e.marginBottom||0,stickyFor:e.stickyFor||0,stickyClass:e.stickyClass||null,stickyContainer:e.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}run(){const t=setInterval(()=>{if("complete"===document.readyState){clearInterval(t);const e=document.querySelectorAll(this.selector);this.forEach(e,t=>this.renderElement(t))}},10)}renderElement(t){t.sticky={},t.sticky.active=!1,t.sticky.marginTop=parseInt(t.getAttribute("data-margin-top"))||this.options.marginTop,t.sticky.marginBottom=parseInt(t.getAttribute("data-margin-bottom"))||this.options.marginBottom,t.sticky.stickyFor=parseInt(t.getAttribute("data-sticky-for"))||this.options.stickyFor,t.sticky.stickyClass=t.getAttribute("data-sticky-class")||this.options.stickyClass,t.sticky.wrap=!!t.hasAttribute("data-sticky-wrap")||this.options.wrap,t.sticky.stickyContainer=this.options.stickyContainer,t.sticky.container=this.getStickyContainer(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect=this.getRectangle(t),"img"===t.tagName.toLowerCase()&&(t.onload=()=>t.sticky.rect=this.getRectangle(t)),t.sticky.wrap&&this.wrapElement(t),this.activate(t)}wrapElement(t){t.insertAdjacentHTML("beforebegin",t.getAttribute("data-sticky-wrapWith")||this.options.wrapWith),t.previousSibling.appendChild(t)}activate(t){t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active&&(t.sticky.active=!0),this.elements.indexOf(t)<0&&this.elements.push(t),t.sticky.resizeEvent||(this.initResizeEvents(t),t.sticky.resizeEvent=!0),t.sticky.scrollEvent||(this.initScrollEvents(t),t.sticky.scrollEvent=!0),this.setPosition(t)}initResizeEvents(t){t.sticky.resizeListener=()=>this.onResizeEvents(t),window.addEventListener("resize",t.sticky.resizeListener)}destroyResizeEvents(t){window.removeEventListener("resize",t.sticky.resizeListener)}onResizeEvents(t){this.vp=this.getViewportSize(),t.sticky.rect=this.getRectangle(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),t.sticky.rect.top+t.sticky.rect.height<t.sticky.container.rect.top+t.sticky.container.rect.height&&t.sticky.stickyFor<this.vp.width&&!t.sticky.active?t.sticky.active=!0:(t.sticky.rect.top+t.sticky.rect.height>=t.sticky.container.rect.top+t.sticky.container.rect.height||t.sticky.stickyFor>=this.vp.width&&t.sticky.active)&&(t.sticky.active=!1),this.setPosition(t)}initScrollEvents(t){t.sticky.scrollListener=()=>this.onScrollEvents(t),window.addEventListener("scroll",t.sticky.scrollListener)}destroyScrollEvents(t){window.removeEventListener("scroll",t.sticky.scrollListener)}onScrollEvents(t){t.sticky&&t.sticky.active&&this.setPosition(t)}setPosition(t){this.css(t,{position:"",width:"",top:"",left:""}),this.vp.height<t.sticky.rect.height||!t.sticky.active||(t.sticky.rect.width||(t.sticky.rect=this.getRectangle(t)),t.sticky.wrap&&this.css(t.parentNode,{display:"block",width:t.sticky.rect.width+"px",height:t.sticky.rect.height+"px"}),0===t.sticky.rect.top&&t.sticky.container===this.body?(this.css(t,{position:"fixed",top:t.sticky.rect.top+"px",left:t.sticky.rect.left+"px",width:t.sticky.rect.width+"px"}),t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass)):this.scrollTop>t.sticky.rect.top-t.sticky.marginTop?(this.css(t,{position:"fixed",width:t.sticky.rect.width+"px",left:t.sticky.rect.left+"px"}),this.scrollTop+t.sticky.rect.height+t.sticky.marginTop>t.sticky.container.rect.top+t.sticky.container.offsetHeight-t.sticky.marginBottom?(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{top:t.sticky.container.rect.top+t.sticky.container.offsetHeight-(this.scrollTop+t.sticky.rect.height+t.sticky.marginBottom)+"px"})):(t.sticky.stickyClass&&t.classList.add(t.sticky.stickyClass),this.css(t,{top:t.sticky.marginTop+"px"}))):(t.sticky.stickyClass&&t.classList.remove(t.sticky.stickyClass),this.css(t,{position:"",width:"",top:"",left:""}),t.sticky.wrap&&this.css(t.parentNode,{display:"",width:"",height:""})))}update(){this.forEach(this.elements,t=>{t.sticky.rect=this.getRectangle(t),t.sticky.container.rect=this.getRectangle(t.sticky.container),this.activate(t),this.setPosition(t)})}destroy(){window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,t=>{this.destroyResizeEvents(t),this.destroyScrollEvents(t),delete t.sticky})}getStickyContainer(t){let e=t.parentNode;for(;!e.hasAttribute("data-sticky-container")&&!e.parentNode.querySelector(t.sticky.stickyContainer)&&e!==this.body;)e=e.parentNode;return e}getRectangle(t){this.css(t,{position:"",width:"",top:"",left:""});const e=Math.max(t.offsetWidth,t.clientWidth,t.scrollWidth),i=Math.max(t.offsetHeight,t.clientHeight,t.scrollHeight);let s=0,n=0;do{s+=t.offsetTop||0,n+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:s,left:n,width:e,height:i}}getViewportSize(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}updateScrollTopPosition(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}forEach(t,e){for(let i=0,s=t.length;i<s;i++)e(t[i])}css(t,e){for(let i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])}}(".ti-about-tablist",{marginTop:32,stickyClass:"stickied",stickyFor:782});window.addEventListener("DOMContentLoaded",(function(){document.body.classList.add("about-loaded"),function(){let t=document.querySelectorAll(".ti-about-tablist a.tab");for(let e=0;e<t.length;e++)t[e].addEventListener("click",(function(i){i.preventDefault();let s=document.querySelector(".tab-content.active"),n=i.target.getAttribute("href");if(window.history.pushState(null,"",n),null!==s){s.classList.remove("active");for(let e=0;e<t.length;e++)t[e].classList.remove("active")}t[e].classList.add("active"),document.querySelector(n).classList.add("active")}))}(),function(){let t=window.location.hash;if(null!==t){let e=document.querySelector('a.tab[href="'+t+'"]');if(null===e)return!1;e.click()}}(),function(){if(tiAboutPageObject.nr_actions_required>0){let t=document.createElement("span"),e=document.querySelector(".tab.recommended_actions");t.classList.add("badge-action-count"),t.innerText=tiAboutPageObject.nr_actions_required,e.appendChild(t)}}(),function(){let t=document.querySelectorAll("#about-tabs > div a[href^='#']");for(let e=0;e<t.length;e++)t[e].addEventListener("click",(function(t){t.preventDefault();let e=t.target.getAttribute("href").substr(1),i=new Event("click");return document.querySelector('li[data-tab-id="'+e+'"] a.tab').dispatchEvent(i),!1}))}()})),jQuery(document).ready((function(){jQuery(".ti-about-page-required-action-button").click((function(){var t=jQuery(this).attr("data-slug"),e=jQuery("."+t);jQuery.ajax({type:"POST",data:{action:"update_recommended_plugins_visibility",slug:t,nonce:tiAboutPageObject.nonce},url:tiAboutPageObject.ajaxurl,beforeSend:function(){jQuery(e).fadeOut()},success:function(t){console.log(t.required_actions),0===t.required_actions&&(jQuery('#about-tabs #recommended_actions, [data-tab-id="recommended_actions"], #adminmenu .wp-submenu li a span.badge-action-count').fadeOut().remove(),jQuery("#about-tabs ul > li:first-child a").click()),jQuery(e).remove(),jQuery("#about-tabs ul li > .recommended_actions span, #adminmenu .wp-submenu li a span.badge-action-count").text(t.required_actions)},error:function(t,i,s){jQuery(e).fadeIn(),console.log(t+" :: "+i+" :: "+s)}})})),jQuery(document).on("DOMNodeInserted",".activate-now",(function(){var t=jQuery(this);if(t.length){var e=jQuery(t).attr("href");void 0!==e&&jQuery.ajax({beforeSend:function(){jQuery(t).replaceWith('<a class="button updating-message">'+tiAboutPageObject.activating_string+"...</a>")},async:!0,type:"GET",url:e,success:function(){location.reload()}})}}))}))}});