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/edit.js
(self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[922],{5800:(t,e,n)=>{"use strict";var r,o,i,c,a;function u(t){return u="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},u(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(808),window.code_snippets_editor=(i=(o=window.wp.codeEditor.initialize(document.getElementById("snippet_code"))).codemirror.getOption("extraKeys"),c=window.navigator.platform.match("Mac")?"Cmd":"Ctrl",a=function(){return document.getElementById("save_snippet").click()},o.codemirror.setOption("extraKeys",l(l({},"object"===u(i)?i:{}),{},(p(r={},"".concat(c,"-S"),a),p(r,"".concat(c,"-Enter"),a),r))),o),window.navigator.platform.match("Mac")&&(document.querySelector(".editor-help-text").className+=" platform-mac");var d=document.getElementById("snippet-code-direction");function f(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}d&&d.addEventListener("change",(function(){window.code_snippets_editor.codemirror.setOption("direction","rtl"===d.value?"rtl":"ltr")})),function(t){var e=document.getElementById("snippet-type-tabs");if(e){var n,r=document.getElementById("snippet-form"),o=e.querySelectorAll(".nav-tab"),i={css:"text/css",js:"javascript",php:"text/x-php",html:"application/x-httpd-php"},c=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 f(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)?f(t,e):void 0}}(t))){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,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}(o);try{var a=function(){var o=n.value;o.addEventListener("click",(function(n){if(!o.classList.contains("nav-tab-active")){var c=o.getAttribute("data-type");n.preventDefault(),r.setAttribute("data-snippet-type",c),function(t){var n=e.querySelector(".nav-tab-active");n.setAttribute("href","#"),n.classList.remove("nav-tab-active"),t.classList.add("nav-tab-active"),t.removeAttribute("href")}(o),function(e){var n=r.querySelector(".".concat(e,"-scopes-list input:first-child"));n&&(n.checked=!0),t.setOption("lint","php"===e||"css"===e),e in i&&t.setOption("mode",i[e])}(c)}}))};for(c.s();!(n=c.n()).done;)a()}catch(t){c.e(t)}finally{c.f()}}}(window.code_snippets_editor.codemirror),n(6873),document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("snippet-form"),e=window.code_snippets_editor.codemirror,n=window.code_snippets_edit_i18n,r=document.querySelector("input[name=snippet_name]");t&&e&&r&&t.addEventListener("submit",(function(t){var o=""===r.value.trim(),i=""===e.getValue().trim(),c=o?i?n.missing_title_code:n.missing_title:i?n.missing_code:"";t.submitter.id.startsWith("save_snippet")&&c&&!confirm(c)&&t.preventDefault()}))}))},6873:()=>{function t(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}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 c,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,c=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw c}}}}function e(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 e=document.querySelector(".html-shortcode-options");if(e){var n,r=e.getElementsByTagName("input"),o=-1!==document.body.className.indexOf("network-admin"),i=document.querySelector("input[name=snippet_id]"),c=i?parseInt(i.value,10):0,a=function(){var e="[code_snippet";c&&(e+=" id=".concat(c)),o&&(e+=" network=true");var n,i=t(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.checked&&(e+=" ".concat(a.value,"=true"))}}catch(t){i.e(t)}finally{i.f()}e+="]",document.querySelector(".html-scopes-list").querySelector(".shortcode-tag").textContent=e},u=t(r);try{for(u.s();!(n=u.n()).done;)n.value.addEventListener("change",a)}catch(t){u.e(t)}finally{u.f()}}}()}},t=>{t(t.s=5800)}]);