HEX
Server: Apache
System: Linux main79 6.1.0-52-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64
User: serwer143450 (7544)
PHP: 7.4.33
Disabled: opcache_reset, opcache_invalidate, opcache_compile_file, opcache_get_configuration, opcache_get_status
Upload Files
File: /home/platne/serwer143450/public_html/energix2/wp-content/plugins/code-snippets/js/min/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})(e)}function e(){e=function(t,e){return new i(t,void 0,e)};var o=RegExp.prototype,a=new WeakMap;function i(t,e,n){var o=new RegExp(t,e);return a.set(o,n||a.get(t)),r(o,i.prototype)}function c(t,e){var n=a.get(e);return Object.keys(n).reduce((function(e,r){return e[r]=t[n[r]],e}),Object.create(null))}return n(i,RegExp),i.prototype.exec=function(t){var e=o.exec.call(this,t);return e&&(e.groups=c(e,this)),e},i.prototype[Symbol.replace]=function(e,n){if("string"==typeof n){var r=a.get(this);return o[Symbol.replace].call(this,e,n.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+r[e]})))}if("function"==typeof n){var i=this;return o[Symbol.replace].call(this,e,(function(){var e=arguments;return"object"!=t(e[e.length-1])&&(e=[].slice.call(e)).push(c(e,i)),n.apply(this,e)}))}return o[Symbol.replace].call(this,e,n)},e.apply(this,arguments)}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(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 a(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)?a(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,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,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw i}}}}function a(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}var i,c=document.getElementById("code_snippets_ajax_nonce").value,u="-network"===window.pagenow.substring(window.pagenow.length-"-network".length),p=window.code_snippets_manage_i18n,s=function(t,e,n,r){var o=e.querySelector(".column-id");o&&parseInt(o.textContent,10)&&(n.id=parseInt(o.textContent,10),n.shared_network=Boolean(e.className.match(/\bshared-network-snippet\b/)),n.network=n.shared_network||u,n.scope=e.getAttribute("data-snippet-scope"),function(t,e){var n=new XMLHttpRequest;n.open("POST",window.ajaxurl,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.onload=function(){200>n.status||400<=n.status||(console.log(n.responseText),e&&e(JSON.parse(n.responseText)))},n.send(t)}("action=update_code_snippet&_ajax_nonce=".concat(c,"&field=").concat(t,"&snippet=").concat(JSON.stringify(n)),r))},l=o(document.getElementsByClassName("snippet-priority"));try{var f=function(){var t=i.value;t.addEventListener("input",(function(){return n=(e=t).parentElement.parentElement,r={priority:parseFloat(e.value)},void s("priority",n,r);var e,n,r})),t.disabled=!1};for(l.s();!(i=l.n()).done;)f()}catch(t){l.e(t)}finally{l.f()}var y,v=function(t,n){var r=parseInt(t.textContent.replace(e(/\((\d+)\)/,{count:1}),"$1"),10);r+=n?1:-1,t.textContent="(".concat(r.toString(),")")},d=o(document.getElementsByClassName("snippet-activation-switch"));try{var m=function(){var t=y.value;t.addEventListener("click",(function(e){return function(t,e){var n=t.parentElement.parentElement,r=n.className.match(/\b(?:in)?active-snippet\b/);if(r){e.preventDefault();var o="inactive-snippet"===r[0];s("active",n,{active:o},(function(t){var e=n.querySelector(".snippet-activation-switch");if(t.success){n.className=o?n.className.replace(/\binactive-snippet\b/,"active-snippet"):n.className.replace(/\bactive-snippet\b/,"inactive-snippet");var r=document.querySelector(".subsubsub");v(r.querySelector(".active .count"),o),v(r.querySelector(".inactive .count"),o),e.title=o?p.deactivate:p.activate}else n.className+=" erroneous-snippet",e.title=p.activation_error}))}}(t,e)}))};for(d.s();!(y=d.n()).done;)m()}catch(t){d.e(t)}finally{d.f()}})();