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/mce.js
(()=>{"use strict";const e=window.tinymce;function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var n=function(e){return Object.keys(e).map((function(t){return{text:e[Number(t)],value:t}}))},o=function(e,t){return{text:t.getLang("code_snippets.insert_source_menu"),onclick:function(){e.windowManager.open({title:t.getLang("code_snippets.insert_source_title"),body:[{type:"listbox",name:"id",label:t.getLang("code_snippets.snippet_label"),values:n(t.getLang("code_snippets.all_snippets"))},{type:"checkbox",name:"line_numbers",label:t.getLang("code_snippets.show_line_numbers_label")}],onsubmit:function(t){var n=parseInt(t.data.id,10);if(n){var o="";t.data.line_numbers&&(o+=" line_numbers=true"),e.insertContent("[code_snippet_source id=".concat(n).concat(o,"]"))}}},{})}}},r=function(e,o){return{text:o.getLang("code_snippets.insert_content_menu"),onclick:function(){e.windowManager.open({title:o.getLang("code_snippets.insert_content_title"),body:[{type:"listbox",name:"id",label:o.getLang("code_snippets.snippet_label"),values:n(o.getLang("code_snippets.content_snippets"))},{type:"checkbox",name:"php",label:o.getLang("code_snippets.php_att_label")},{type:"checkbox",name:"format",label:o.getLang("code_snippets.format_att_label")},{type:"checkbox",name:"shortcodes",label:o.getLang("code_snippets.shortcodes_att_label")}],onsubmit:function(n){var o,r=parseInt(n.data.id,10);if(r){for(var a="",i=0,c=Object.entries(n.data);i<c.length;i++){var s=(2,function(e){if(Array.isArray(e))return e}(o=c[i])||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(a.push(o.value),2!==a.length);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw r}}return a}}(o)||function(e,n){if(e){if("string"==typeof e)return t(e,2);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,2):void 0}}(o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],p=s[1];"id"!==l&&p&&(a+=" ".concat(l,"=").concat(p))}e.insertContent("[code_snippet id=".concat(r).concat(a,"]"))}}},{})}}};e.PluginManager.add("code_snippets",(function(t){var n=e.activeEditor;t.addButton("code_snippets",{icon:"code",menu:[o(t,n),r(t,n)],type:"menubutton"})}))})();