HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpamazingsecret/wp-content/plugins_/code-snippets/build/dist/edit.js
"use strict";(self.webpackChunkcode_snippets=self.webpackChunkcode_snippets||[]).push([[922],{8042:(t,e,n)=>{function r(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 o={css:"text/css",js:"javascript",php:"text/x-php",html:"application/x-httpd-php"};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}var a="dashicon-clipboard",c="dashicon-yes";function l(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}}}}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}var s,f,d,p,v,y=function(t){var e=-1!==document.body.className.indexOf("network-admin"),n=document.querySelector("input[name=snippet_id]"),r=n?parseInt(n.value,10):0,o="[code_snippet";r&&(o+=" id=".concat(r)),e&&(o+=" network=true");var i,a=l(t);try{for(a.s();!(i=a.n()).done;){var c=i.value;c.checked&&(o+=" ".concat(c.value,"=true"))}}catch(t){a.e(t)}finally{a.f()}o+="]";var u=document.querySelector(".html-scopes-list");if(u){var s=u.querySelector(".shortcode-tag");s&&(s.textContent=o)}},m=n(1002);function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(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 g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(3737),function(){var t,e=window.wp.codeEditor,n=document.getElementById("snippet_code");if(n){var r=e.initialize(n);window.code_snippets_editor=r;var o=r.codemirror.getOption("extraKeys"),i=window.navigator.platform.match("Mac")?"Cmd":"Ctrl",a=function(){var t;return null===(t=document.getElementById("save_snippet"))||void 0===t?void 0:t.click()};if(r.codemirror.setOption("extraKeys",g(g({},"object"===(0,m.Z)(o)?o:{}),{},(b(t={},"".concat(i,"-S"),a),b(t,"".concat(i,"-Enter"),a),t))),window.navigator.platform.match("Mac")){var c=document.querySelector(".editor-help-text");c&&(c.className+=" platform-mac")}var l=document.getElementById("snippet-code-direction");null==l||l.addEventListener("change",(function(){var t;null===(t=window.code_snippets_editor)||void 0===t||t.codemirror.setOption("direction","rtl"===l.value?"rtl":"ltr")}))}else console.error("Could not initialise CodeMirror on textarea.",n)}(),function(){var t=document.getElementById("snippet-type-tabs");if(t){var e,n=document.getElementById("snippet-form"),i=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 r(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)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);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 a,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw a}}}}(t.querySelectorAll(".nav-tab"));try{var a=function(){var r=e.value;r.addEventListener("click",(function(e){if(!r.classList.contains("nav-tab-active")&&!r.classList.contains("nav-tab-inactive")){var i=r.getAttribute("data-type");e.preventDefault(),null==n||n.setAttribute("data-snippet-type",i),function(t,e){var n=t.querySelector(".nav-tab-active");null==n||n.setAttribute("href","#"),null==n||n.classList.remove("nav-tab-active"),e.classList.add("nav-tab-active"),e.removeAttribute("href")}(t,r),function(t,e){var n,r=null===(n=window.code_snippets_editor)||void 0===n?void 0:n.codemirror,i=null==e?void 0:e.querySelector(".".concat(t,"-scopes-list input:first-child"));i&&(i.checked=!0),null==r||r.setOption("lint","php"===t||"css"===t),t in o&&(null==r||r.setOption("mode",o[t]))}(i,n)}}))};for(i.s();!(e=i.n()).done;)a()}catch(t){i.e(t)}finally{i.f()}}}(),function(){var t,e=null===(t=document.querySelector(".html-shortcode-options"))||void 0===t?void 0:t.getElementsByTagName("input");if(e){var n,r=l(e);try{for(r.s();!(n=r.n()).done;)n.value.addEventListener("change",(function(){return y(e)}))}catch(t){r.e(t)}finally{r.f()}}}(),f=document.getElementById("snippet-form"),d=null===(s=window.code_snippets_editor)||void 0===s?void 0:s.codemirror,p=window.code_snippets_edit_i18n,v=document.querySelector("input[name=snippet_name]"),f&&d&&v&&f.addEventListener("submit",(function(t){var e,n=""===v.value.trim(),r=""===d.getValue().trim(),o=n?r?p.missing_title_code:p.missing_title:r?p.missing_code:"";null!=t&&null!==(e=t.submitter)&&void 0!==e&&e.id.startsWith("save_snippet")&&o&&!confirm(o)&&t.preventDefault()})),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,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw a}}}}(document.querySelectorAll(".code-snippets-copy-text"));try{var n=function(){var e=t.value;navigator.clipboard?e.addEventListener("click",(function(t){t.preventDefault();var n=e.getAttribute("data-text");n&&navigator.clipboard.writeText(n).then((function(){e.classList.replace(a,c),setTimeout((function(){return e.classList.replace(c,a)}),3e3)})).catch((function(t){return console.error(t)}))})):e.style.display="none"};for(e.s();!(t=e.n()).done;)n()}catch(t){e.e(t)}finally{e.f()}}()},1002:(t,e,n)=>{function r(t){return r="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},r(t)}n.d(e,{Z:()=>r})}},t=>{t(t.s=8042)}]);