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/nationalfundingsolutionsgrp/public_html/wp-content/plugins/code-snippets/dist/manage.js
(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}const r=window.wp.i18n;var o=function(t,e,n,r){var o,i,a,c,u=document.getElementById("code_snippets_ajax_nonce"),l=e.querySelector(".column-id");u&&null!=l&&l.textContent&&parseInt(l.textContent,10)&&(n.id=parseInt(l.textContent,10),n.shared_network=Boolean(e.className.match(/\bshared-network-snippet\b/)),n.network=n.shared_network||window.pagenow.endsWith("-network"),n.scope=null!==(o=e.getAttribute("data-snippet-scope"))&&void 0!==o?o:n.scope,i="action=update_code_snippet&_ajax_nonce=".concat(u.value,"&field=").concat(t,"&snippet=").concat(JSON.stringify(n)),a=r,(c=new XMLHttpRequest).open("POST",window.ajaxurl,!0),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded charset=UTF-8"),c.onload=function(){200>c.status||400<=c.status||(console.info(c.responseText),null==a||a(JSON.parse(c.responseText)))},c.send(i))};function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(){a=function(t,e){return new i(t,void 0,e)};var r=RegExp.prototype,o=new WeakMap;function i(t,n,r){var a=new RegExp(t,n);return o.set(a,r||o.get(t)),e(a,i.prototype)}function c(t,e){var n=o.get(e);return Object.keys(n).reduce((function(e,r){var o=n[r];if("number"==typeof o)e[r]=t[o];else{for(var i=0;void 0===t[o[i]]&&i+1<o.length;)i++;e[r]=t[o[i]]}return e}),Object.create(null))}return n(i,RegExp),i.prototype.exec=function(t){var e=r.exec.call(this,t);if(e){e.groups=c(e,this);var n=e.indices;n&&(n.groups=c(n,this))}return e},i.prototype[Symbol.replace]=function(e,n){if("string"==typeof n){var i=o.get(this);return r[Symbol.replace].call(this,e,n.replace(/\$<([^>]+)>/g,(function(t,e){var n=i[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof n){var a=this;return r[Symbol.replace].call(this,e,(function(){var e=arguments;return"object"!=t(e[e.length-1])&&(e=[].slice.call(e)).push(c(e,a)),n.apply(this,e)}))}return r[Symbol.replace].call(this,e,n)},a.apply(this,arguments)}var c=function(t,e){if(null!=t&&t.textContent){var n=parseInt(t.textContent.replace(a(/\((\d+)\)/,{count:1}),"$1"),10);n+=e?1:-1,t.textContent="(".concat(n,")")}else console.error("Could not update view count.",t)};function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}!function(){var t,e=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}(document.getElementsByClassName("snippet-activation-switch"));try{var n=function(){var e=t.value;e.addEventListener("click",(function(t){return function(t,e){var n,i=null==t||null===(n=t.parentElement)||void 0===n?void 0:n.parentElement;if(i){var a=i.className.match(/\b(?:in)?active-snippet\b/);if(a){e.preventDefault();var u="inactive-snippet"===a[0];o("active",i,{active:u},(function(t){var e=i.querySelector(".snippet-activation-switch");if(t.success){i.className=u?i.className.replace(/\binactive-snippet\b/,"active-snippet"):i.className.replace(/\bactive-snippet\b/,"inactive-snippet");var n=document.querySelector(".subsubsub"),o=null==n?void 0:n.querySelector(".active .count"),a=null==n?void 0:n.querySelector(".inactive .count");o&&c(o,u),a&&c(a,u),e.title=u?(0,r.__)("Deactivate","code-snippets"):(0,r.__)("Activate","code-snippets")}else i.className+=" erroneous-snippet",e.title=(0,r.__)("An error occurred when attempting to activate","code-snippets")}))}}else console.error("Could not toggle snippet active status.",i)}(e,t)}))};for(e.s();!(t=e.n()).done;)n()}catch(t){e.e(t)}finally{e.f()}}(),function(){var t,e=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(document.getElementsByClassName("snippet-priority"));try{var n=function(){var e=t.value;e.addEventListener("input",(function(){return r=null===(n=(t=e).parentElement)||void 0===n?void 0:n.parentElement,i={priority:parseFloat(t.value)},void(r?o("priority",r,i):console.error("Could not update snippet information.",i,r));var t,n,r,i})),e.disabled=!1};for(e.s();!(t=e.n()).done;)n()}catch(t){e.e(t)}finally{e.f()}}()})();