File manager - Edit - /home/opticamezl/www/newok/com_cpanel.zip
Back
PK [�\�i�I I js/admin-add_module.min.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(t=>{t.addEventListener("DOMContentLoaded",()=>{window.jSelectModuleType=()=>{const e=t.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn.hidden");e.length&&setTimeout(()=>{e.forEach(o=>{o.classList.remove("hidden")})},1e3)};const s=t.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn"),l=[];let n=!1;s.length&&s.forEach(e=>{e.classList.contains("hidden")&&l.push(e),e.addEventListener("click",o=>{let d=o.currentTarget;if(d||(d=o.target),d){const i=d.dataset.bsTarget;n=i==="#saveBtn",setTimeout(()=>{n=!1},1500);const r=t.querySelector("#moduleDashboardAddModal iframe"),c=(r.contentDocument||r.contentWindow.document).querySelector(i);c&&c.click()}})});const a=t.querySelector("#moduleDashboardAddModal");a&&(a.addEventListener("hide.bs.modal",()=>{l.forEach(e=>{e.classList.add("hidden")})}),a.addEventListener("hidden.bs.modal",()=>{n&&setTimeout(()=>{window.parent.location.reload()},1e3)}))})})(document); PK [�\5 5 js/admin-add_module.min.js.gznu �[��� � �S�N1���"��h����F�!$����'YS�'�g��v���BU�'K3��7�=�=6`5.�]��?��`�].��+��6UDb�μ��CI����z-o+�$�Ÿ�rV���c�_�)xʱ��Y��� B���!��"9� ��xrq5�tK{l0�T��I*c&+�tn#�x<9������ʀI2.���z�kys4M����Pt]�>�������#�x�_u�OT,g��92f�F9&��x=G$L����>9H~Ae�F�k[�ĻQ �&J���=J�T�-}�����M6�7�ɷ���KD�o�s�|�j��'������J�'e}|╦N.�Xr<�vV�H�v�v�)P�:�t��(�sn6�6���̈�[i�$g��[E�� >�O�]Q�m�l��@�b�]�����UA"2]��-�NP�x�lK_�2}G��"�i�e�?M#�6���$"Wi��3ր�ŭ�}��)c~˒�^�4�wQ����?�R�FJ�Z�E/8T�?DUt���D��/�i�I PK [�\}�p js/admin-add_module-es5.jsnu �[��� (function () { 'use strict'; /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (document) { document.addEventListener('DOMContentLoaded', function () { window.jSelectModuleType = function () { var elements = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn.hidden'); if (elements.length) { setTimeout(function () { elements.forEach(function (button) { button.classList.remove('hidden'); }); }, 1000); } }; var buttons = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn'); var hideButtons = []; var isSaving = false; if (buttons.length) { buttons.forEach(function (button) { if (button.classList.contains('hidden')) { hideButtons.push(button); } button.addEventListener('click', function (event) { var elem = event.currentTarget; // There is some bug with events in iframe where currentTarget is "null" // => prevent this here by bubble up if (!elem) { elem = event.target; } if (elem) { var clickTarget = elem.dataset.bsTarget; // We remember to be in the saving process isSaving = clickTarget === '#saveBtn'; // Reset saving process, if e.g. the validation of the form fails setTimeout(function () { isSaving = false; }, 1500); var iframe = document.querySelector('#moduleDashboardAddModal iframe'); var content = iframe.contentDocument || iframe.contentWindow.document; var targetBtn = content.querySelector(clickTarget); if (targetBtn) { targetBtn.click(); } } }); }); } var elementH = document.querySelector('#moduleDashboardAddModal'); if (elementH) { elementH.addEventListener('hide.bs.modal', function () { hideButtons.forEach(function (button) { button.classList.add('hidden'); }); }); elementH.addEventListener('hidden.bs.modal', function () { if (isSaving) { setTimeout(function () { window.parent.location.reload(); }, 1000); } }); } }); })(document); })(); PK [�\ʁ�{ { js/admin-system-loader.min.js.gznu �[��� � �TMo!��WL8X`������F�"7r��vOU�^���:��ծ�Hm�ު����7�n� ��A�j�$ ~*�h��\W�a��Ɣ���ޗDU����J~a�qqܦrV�O p6�g�1*7����{�c����N�"�/NG��H�#@��y�H�|"Po+�MXɈ���4����8sA�)��"t��L�&��s<��z�5�x�g2�ᲧC� #"�ҡ_P��h9q�t�Ӌ�P$�@:!���&��(R�::&���P�C2�}����+sx�) 6��&<k���k����:�aȖHe0Cvs=����ai[!�D�͋_1U�'��#� lNq�����z"+r/�Z�.7Tư�+�"g�uh��Lh����9���ӡ���SIj�Rj,ߗ�3����z&����'�2�3�G����m�.9��Њkl{��RGT�#�K��Y��o���������0���*��W�Eo���~��g��e��:�]��IyK�;���=K�RS�4 e��)���u�c�Ķ�ѿ��u������V�}��w�������y��wJ�fv��&����A�M�u� �����R$� PK [�\58�0� � js/admin-system-loader-es5.jsnu �[��� (function () { 'use strict'; /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (document, Joomla) { var init = function init() { // Cleanup window.removeEventListener('load', init); // Get the elements var elements = [].slice.call(document.querySelectorAll('.system-counter')); if (elements.length) { elements.forEach(function (element) { var badgeurl = element.getAttribute('data-url'); if (badgeurl && Joomla && Joomla.request && typeof Joomla.request === 'function') { Joomla.enqueueRequest({ url: badgeurl, method: 'POST', promise: true }).then(function (xhr) { var resp = xhr.responseText; var response; try { response = JSON.parse(resp); } catch (error) { throw new Error('Failed to parse JSON'); } if (response.error || !response.success) { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('text-danger'); element.classList.add('icon-remove'); } else if (response.data) { var elem = document.createElement('span'); elem.classList.add('float-end'); elem.classList.add('badge'); elem.classList.add('bg-warning', 'text-dark'); elem.innerHTML = Joomla.sanitizeHtml(response.data); element.parentNode.replaceChild(elem, element); } else { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('icon-check'); element.classList.add('text-success'); } }).catch(function () { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('text-danger'); element.classList.add('icon-remove'); }); } }); } }; // Give some times to the layout and other scripts to settle their stuff window.addEventListener('load', function () { setTimeout(init, 300); }); })(document, Joomla); })(); PK [�\�< < % js/admin-cpanel-default-es5.min.js.gznu �[��� � �UMo7��Wla�6E� r�6��Vׅ����0���P䆜��*�����X�Bqw���{3;��m��i��$�V#-�wwߐ]��,�j���>'o����<�&j � b��kI>����ߟN��s�d���K(g5��r|vM��CT�\4���d�z� 1���["q !$��Ip6H|�7dw�AE��g�I�h�<6�,��!XC�;;˷�\lz"�U�b�L�c�|�cKSr��1���>���x�����-Vٴ��B��M� WG����X�E�$��R���9_, ��ˈ$��Q6�Β��i0��u���3m(��e=��u~U�0��,����\�`;�!N��S�T�2� �1�O �F�괷:�P^��l�D׃=���)��q0=zq>��b�@L�9���s5���h.�j� �/�.D�FkH���G.*�QjR�G��4���Hyd�"x<d�Ix���:���7O!%UAb�I��w�� Q�1�??��_� �w�g�GÓ�_w�������u�?�(�]�Lqc���3�2�'����-��/�\n��*���֔-8� v4;1��VP�{Ϡ���ͭLy��V�1�_��8��s��m_YJ9/��q��x�s�ϽT����&�3ɨvV�� mfW�*V�O��լ��E���I/�?���zd�CE�"�Ba;��E;��_�h�Qx��9�� ��0M���x�Ǫ�tE�d���h� �d�)+�S�P�Q�U4���W�G�����,x����1���Uy�p,5X��>�{��d��5𦤩V�нj�X<t���d@�c��K��C����y"����fS �EK�I9���X��Aa�E��M�:��;ez)�/�VܪY���5�hk�-M��&u�`FY��+�m�M�e�b�����1�q��r 0�#;��Љa�(]����x~Җ��1L;��� [�p�Nƅy��]P�n.��D����A� ۛ�o:��w��=�~:�x����t�*�{�]�9%���aS�M� �r���,�^V�x��?��>�� PK [�\��� js/admin-system-loader.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ ((document, Joomla) => { const init = () => { // Cleanup window.removeEventListener('load', init); // Get the elements const elements = [].slice.call(document.querySelectorAll('.system-counter')); if (elements.length) { elements.forEach(element => { const badgeurl = element.getAttribute('data-url'); if (badgeurl && Joomla && Joomla.request && typeof Joomla.request === 'function') { Joomla.enqueueRequest({ url: badgeurl, method: 'POST', promise: true }).then(xhr => { const resp = xhr.responseText; let response; try { response = JSON.parse(resp); } catch (error) { throw new Error('Failed to parse JSON'); } if (response.error || !response.success) { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('text-danger'); element.classList.add('icon-remove'); } else if (response.data) { const elem = document.createElement('span'); elem.classList.add('float-end'); elem.classList.add('badge'); elem.classList.add('bg-warning', 'text-dark'); elem.innerHTML = Joomla.sanitizeHtml(response.data); element.parentNode.replaceChild(elem, element); } else { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('icon-check'); element.classList.add('text-success'); } }).catch(() => { element.classList.remove('icon-spin'); element.classList.remove('icon-spinner'); element.classList.add('text-danger'); element.classList.add('icon-remove'); }); } }); } }; // Give some times to the layout and other scripts to settle their stuff window.addEventListener('load', () => { setTimeout(init, 300); }); })(document, Joomla); PK [�\�R$� � js/admin-system-loader.min.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */((r,t)=>{const a=()=>{window.removeEventListener("load",a);const c=[].slice.call(r.querySelectorAll(".system-counter"));c.length&&c.forEach(s=>{const o=s.getAttribute("data-url");o&&t&&t.request&&typeof t.request=="function"&&t.enqueueRequest({url:o,method:"POST",promise:!0}).then(d=>{const n=d.responseText;let i;try{i=JSON.parse(n)}catch{throw new Error("Failed to parse JSON")}if(i.error||!i.success)s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("text-danger"),s.classList.add("icon-remove");else if(i.data){const e=r.createElement("span");e.classList.add("float-end"),e.classList.add("badge"),e.classList.add("bg-warning","text-dark"),e.innerHTML=t.sanitizeHtml(i.data),s.parentNode.replaceChild(e,s)}else s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("icon-check"),s.classList.add("text-success")}).catch(()=>{s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("text-danger"),s.classList.add("icon-remove")})})};window.addEventListener("load",()=>{setTimeout(a,300)})})(document,Joomla); PK [�\��+� � ! js/admin-cpanel-default.min.js.gznu �[��� � �U]S7}�WhT���,2y��u���c��/��ҍ�D+m�����Y���&o{WW�{�����!����h�$� 89��J� �dʨ�L"�$��kI~[ ��n/�K�%��)⼿�rV�O@!'�W�<D��yy�&���-�d�'�$D�B�@ƣ��t:�x�;d���OH܄�kȘ1;|�ȳ>�R���/m�D���Z�*���*h6V(K_4|�bL� ��_�k��Zo�N��P� >�!��Ĵ�*}�6�#���s�ٗ<>9<B���D`�(T����5��PF�VBBV��u�w�P�ik�����"\ӥ�g�K*��ԭ� x���h���pV��d{U��OK�!�.�6�2�څ�ԣr�cUQ@���d�"x< d�<��`a�a����7'���CbU���~Dy w(g��&�����p<�:=�:��f���W��lz5�S�?ռ�7�1�5��ذZ�I��������uo�l�o�b3���<ߏ�z-!�=���I�ưR+��o%�)8��s�>�x3?ʹ��P��Y��R3��c��q;��Y�� V��s�n�y��:�8���ɟa�?�l�=ʀ���_��Z��v�њ�p��s� �Ja���Ux�'��tD�d���h�!g ��|�:OTaTj��,=��,5J����g��hd\.��Y�x��� �`sm�x�{ �;�JCo��T(Ov+U_��ݑs�����&�аԍw#��9��lMγN�X�����Z�z�V9����I�,>W�](n�DVj�tpe��g�F�Aȋ�L ���{/�e�� F��~9�����)W�MfK�Z1,��ÿ�a�?ò5W��5��R�锄}ŭ.(CEsH�s���M7_�0���0��}������Ns�^_�S��� �]��۾�9[Zo�R�����X��"�{;� ��n PK [�\vY�� � js/admin-add_module-es5.min.jsnu �[��� (function(){"use strict";/** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(function(n){n.addEventListener("DOMContentLoaded",function(){window.jSelectModuleType=function(){var e=n.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn.hidden");e.length&&setTimeout(function(){e.forEach(function(t){t.classList.remove("hidden")})},1e3)};var i=n.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn"),r=[],d=!1;i.length&&i.forEach(function(e){e.classList.contains("hidden")&&r.push(e),e.addEventListener("click",function(t){var o=t.currentTarget;if(o||(o=t.target),o){var l=o.dataset.bsTarget;d=l==="#saveBtn",setTimeout(function(){d=!1},1500);var s=n.querySelector("#moduleDashboardAddModal iframe"),f=s.contentDocument||s.contentWindow.document,c=f.querySelector(l);c&&c.click()}})});var a=n.querySelector("#moduleDashboardAddModal");a&&(a.addEventListener("hide.bs.modal",function(){r.forEach(function(e){e.classList.add("hidden")})}),a.addEventListener("hidden.bs.modal",function(){d&&setTimeout(function(){window.parent.location.reload()},1e3)}))})})(document)})(); PK [�\�(��% % js/admin-add_module.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (document => { document.addEventListener('DOMContentLoaded', () => { window.jSelectModuleType = () => { const elements = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn.hidden'); if (elements.length) { setTimeout(() => { elements.forEach(button => { button.classList.remove('hidden'); }); }, 1000); } }; const buttons = document.querySelectorAll('#moduleDashboardAddModal .modal-footer .btn'); const hideButtons = []; let isSaving = false; if (buttons.length) { buttons.forEach(button => { if (button.classList.contains('hidden')) { hideButtons.push(button); } button.addEventListener('click', event => { let elem = event.currentTarget; // There is some bug with events in iframe where currentTarget is "null" // => prevent this here by bubble up if (!elem) { elem = event.target; } if (elem) { const clickTarget = elem.dataset.bsTarget; // We remember to be in the saving process isSaving = clickTarget === '#saveBtn'; // Reset saving process, if e.g. the validation of the form fails setTimeout(() => { isSaving = false; }, 1500); const iframe = document.querySelector('#moduleDashboardAddModal iframe'); const content = iframe.contentDocument || iframe.contentWindow.document; const targetBtn = content.querySelector(clickTarget); if (targetBtn) { targetBtn.click(); } } }); }); } const elementH = document.querySelector('#moduleDashboardAddModal'); if (elementH) { elementH.addEventListener('hide.bs.modal', () => { hideButtons.forEach(button => { button.classList.add('hidden'); }); }); elementH.addEventListener('hidden.bs.modal', () => { if (isSaving) { setTimeout(() => { window.parent.location.reload(); }, 1000); } }); } }); })(document); PK [�\��n n js/admin-cpanel-default.min.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */const debounce=(i,r=250,t)=>(...d)=>clearTimeout(t,t=setTimeout(i,r,...d));((i,r,t)=>{t.unpublishModule=e=>{const o="index.php?option=com_modules&task=modules.unpublish&format=json",n=e.getAttribute("data-module-id");t.request({url:`${o}&cid=${n}`,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:()=>{const s=e.closest(".module-wrapper");s.parentNode.removeChild(s),t.renderMessages({message:[t.Text._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:()=>{t.renderMessages({error:[t.Text._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};const d=()=>{const e=r.getElementById("content");e&&[].slice.call(e.querySelectorAll(".unpublish-module")).forEach(n=>{n.addEventListener("click",({target:s})=>t.unpublishModule(s))}),r.removeEventListener("DOMContentLoaded",d)};r.addEventListener("DOMContentLoaded",d),{$gridBox:null,gridAutoRows:0,gridRowGap:10,resizeGridItem(e,o,n){const s=e.querySelector(".card");if(s){const l=s.getBoundingClientRect().height+n,a=Math.ceil(l/(o+n));e.style.gridRowEnd=`span ${a}`}},resizeAllGridItems(){[].slice.call(this.$gridBox.children).forEach(o=>{this.resizeGridItem(o,this.gridAutoRows,this.gridRowGap)})},initialise(){this.$gridBox=r.querySelector("#cpanel-modules .card-columns");const e=i.getComputedStyle(this.$gridBox);this.gridAutoRows=parseInt(e.getPropertyValue("grid-auto-rows"),10)||this.gridAutoRows,this.gridRowGap=parseInt(e.getPropertyValue("grid-row-gap"),10)||this.gridRowGap,this.resizeAllGridItems(),i.addEventListener("load",()=>this.resizeAllGridItems()),i.addEventListener("joomla:menu-toggle",()=>{setTimeout(()=>this.resizeAllGridItems(),330)}),i.addEventListener("resize",debounce(()=>this.resizeAllGridItems(),50))}}.initialise()})(window,document,window.Joomla); PK [�\�Z�ڍ � $ js/admin-system-loader-es5.min.js.gznu �[��� � �TMo1��W>Dv�q�貈� _�"�8��$kp��x�4��w�� n�6�����rV�e��TkQ2Bf�E������ܦnE~�2�<R�h��8�0�4�'�)W�:Z O[�.��-�K�)�E0:�� �Ř ���{x��x[.��p|�^!e�"<�D#Ր���t:�|�;��'�7�W�+C��m �T륏.-5�"]�� #���R�d�����>�|��s�N[�4�� ���r����y�c�Jd$�Tmu�8�v4�z�hbl��T�Z�M�s�Cf��Q g،��8���k�˂�G#^u�f��4�VP�D���ۢr](�j��&w ޞM�E�QZ���7Js��'��T� s�b�s��k�՚�7ӳS��(��Xö]sKi �0!J$��:��&�6~&YcO����\�ŜU�6����o!��)�s�P�_����8'�5�����}�%T�!#��Pc�%4����,E�L��_�f!ctBU�����^`>^�>�Euk�>��T��O������|ŋpk��0�ir� �`,�>8IUV��<�"��-���f�Bm�n���y��Io�Uy�ܽ��_�s��TXb�x�.��߈���w�%U�|&^q{% PK [�\��%�Q Q js/admin-cpanel-default-es5.jsnu �[��� (function () { 'use strict'; /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Debounce * https://gist.github.com/nmsdvid/8807205 * * @param { function } callback The callback function to be executed * @param { int } time The time to wait before firing the callback * @param { int } interval The interval */ // eslint-disable-next-line no-param-reassign, no-return-assign, default-param-last var debounce = function debounce(callback, time, interval) { if (time === void 0) { time = 250; } return function () { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return clearTimeout(interval, interval = setTimeout.apply(void 0, [callback, time].concat(args))); }; }; (function (window, document, Joomla) { Joomla.unpublishModule = function (element) { // Get variables var baseUrl = 'index.php?option=com_modules&task=modules.unpublish&format=json'; var id = element.getAttribute('data-module-id'); Joomla.request({ url: baseUrl + "&cid=" + id, method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: function onSuccess() { var wrapper = element.closest('.module-wrapper'); wrapper.parentNode.removeChild(wrapper); Joomla.renderMessages({ message: [Joomla.Text._('COM_CPANEL_UNPUBLISH_MODULE_SUCCESS')] }); }, onError: function onError() { Joomla.renderMessages({ error: [Joomla.Text._('COM_CPANEL_UNPUBLISH_MODULE_ERROR')] }); } }); }; var onBoot = function onBoot() { var cpanelModules = document.getElementById('content'); if (cpanelModules) { var links = [].slice.call(cpanelModules.querySelectorAll('.unpublish-module')); links.forEach(function (link) { link.addEventListener('click', function (_ref) { var target = _ref.target; return Joomla.unpublishModule(target); }); }); } // Cleanup document.removeEventListener('DOMContentLoaded', onBoot); }; // Initialise document.addEventListener('DOMContentLoaded', onBoot); // Masonry layout for cpanel cards var MasonryLayout = { $gridBox: null, gridAutoRows: 0, gridRowGap: 10, // Calculate "grid-row-end" property resizeGridItem: function resizeGridItem($cell, rowHeight, rowGap) { var $content = $cell.querySelector('.card'); if ($content) { var contentHeight = $content.getBoundingClientRect().height + rowGap; var rowSpan = Math.ceil(contentHeight / (rowHeight + rowGap)); $cell.style.gridRowEnd = "span " + rowSpan; } }, // Check a size of every cell in the grid resizeAllGridItems: function resizeAllGridItems() { var _this = this; var $gridCells = [].slice.call(this.$gridBox.children); $gridCells.forEach(function ($cell) { _this.resizeGridItem($cell, _this.gridAutoRows, _this.gridRowGap); }); }, initialise: function initialise() { var _this2 = this; this.$gridBox = document.querySelector('#cpanel-modules .card-columns'); var gridStyle = window.getComputedStyle(this.$gridBox); this.gridAutoRows = parseInt(gridStyle.getPropertyValue('grid-auto-rows'), 10) || this.gridAutoRows; this.gridRowGap = parseInt(gridStyle.getPropertyValue('grid-row-gap'), 10) || this.gridRowGap; this.resizeAllGridItems(); // Recheck the layout after all content (fonts and images) is loaded. window.addEventListener('load', function () { return _this2.resizeAllGridItems(); }); // Recheck the layout when the menu is toggled window.addEventListener('joomla:menu-toggle', function () { // 300ms is animation time, need to wait for the animation to end setTimeout(function () { return _this2.resizeAllGridItems(); }, 330); }); // Watch on window resize window.addEventListener('resize', debounce(function () { return _this2.resizeAllGridItems(); }, 50)); } }; // Initialise Masonry layout at the very beginning, to avoid jumping. // We can do this because the script is deferred. MasonryLayout.initialise(); })(window, document, window.Joomla); })(); PK [�\�I js/admin-cpanel-default.jsnu �[��� /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ /** * Debounce * https://gist.github.com/nmsdvid/8807205 * * @param { function } callback The callback function to be executed * @param { int } time The time to wait before firing the callback * @param { int } interval The interval */ // eslint-disable-next-line no-param-reassign, no-return-assign, default-param-last const debounce = (callback, time = 250, interval) => (...args) => clearTimeout(interval, interval = setTimeout(callback, time, ...args)); ((window, document, Joomla) => { Joomla.unpublishModule = element => { // Get variables const baseUrl = 'index.php?option=com_modules&task=modules.unpublish&format=json'; const id = element.getAttribute('data-module-id'); Joomla.request({ url: `${baseUrl}&cid=${id}`, method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: () => { const wrapper = element.closest('.module-wrapper'); wrapper.parentNode.removeChild(wrapper); Joomla.renderMessages({ message: [Joomla.Text._('COM_CPANEL_UNPUBLISH_MODULE_SUCCESS')] }); }, onError: () => { Joomla.renderMessages({ error: [Joomla.Text._('COM_CPANEL_UNPUBLISH_MODULE_ERROR')] }); } }); }; const onBoot = () => { const cpanelModules = document.getElementById('content'); if (cpanelModules) { const links = [].slice.call(cpanelModules.querySelectorAll('.unpublish-module')); links.forEach(link => { link.addEventListener('click', ({ target }) => Joomla.unpublishModule(target)); }); } // Cleanup document.removeEventListener('DOMContentLoaded', onBoot); }; // Initialise document.addEventListener('DOMContentLoaded', onBoot); // Masonry layout for cpanel cards const MasonryLayout = { $gridBox: null, gridAutoRows: 0, gridRowGap: 10, // Calculate "grid-row-end" property resizeGridItem($cell, rowHeight, rowGap) { const $content = $cell.querySelector('.card'); if ($content) { const contentHeight = $content.getBoundingClientRect().height + rowGap; const rowSpan = Math.ceil(contentHeight / (rowHeight + rowGap)); $cell.style.gridRowEnd = `span ${rowSpan}`; } }, // Check a size of every cell in the grid resizeAllGridItems() { const $gridCells = [].slice.call(this.$gridBox.children); $gridCells.forEach($cell => { this.resizeGridItem($cell, this.gridAutoRows, this.gridRowGap); }); }, initialise() { this.$gridBox = document.querySelector('#cpanel-modules .card-columns'); const gridStyle = window.getComputedStyle(this.$gridBox); this.gridAutoRows = parseInt(gridStyle.getPropertyValue('grid-auto-rows'), 10) || this.gridAutoRows; this.gridRowGap = parseInt(gridStyle.getPropertyValue('grid-row-gap'), 10) || this.gridRowGap; this.resizeAllGridItems(); // Recheck the layout after all content (fonts and images) is loaded. window.addEventListener('load', () => this.resizeAllGridItems()); // Recheck the layout when the menu is toggled window.addEventListener('joomla:menu-toggle', () => { // 300ms is animation time, need to wait for the animation to end setTimeout(() => this.resizeAllGridItems(), 330); }); // Watch on window resize window.addEventListener('resize', debounce(() => this.resizeAllGridItems(), 50)); } }; // Initialise Masonry layout at the very beginning, to avoid jumping. // We can do this because the script is deferred. MasonryLayout.initialise(); })(window, document, window.Joomla); PK [�\&^q{% % ! js/admin-system-loader-es5.min.jsnu �[��� (function(){"use strict";/** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(function(a,i){var e=function o(){window.removeEventListener("load",o);var c=[].slice.call(a.querySelectorAll(".system-counter"));c.length&&c.forEach(function(s){var n=s.getAttribute("data-url");n&&i&&i.request&&typeof i.request=="function"&&i.enqueueRequest({url:n,method:"POST",promise:!0}).then(function(d){var u=d.responseText,t;try{t=JSON.parse(u)}catch{throw new Error("Failed to parse JSON")}if(t.error||!t.success)s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("text-danger"),s.classList.add("icon-remove");else if(t.data){var r=a.createElement("span");r.classList.add("float-end"),r.classList.add("badge"),r.classList.add("bg-warning","text-dark"),r.innerHTML=i.sanitizeHtml(t.data),s.parentNode.replaceChild(r,s)}else s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("icon-check"),s.classList.add("text-success")}).catch(function(){s.classList.remove("icon-spin"),s.classList.remove("icon-spinner"),s.classList.add("text-danger"),s.classList.add("icon-remove")})})};window.addEventListener("load",function(){setTimeout(e,300)})})(document,Joomla)})(); PK \�\�|�G G ! js/admin-add_module-es5.min.js.gznu �[��� � �S�n�@��+W�v#�i�8�1��QU)i�Z�q���-띰;N���;���iI�����7�=��,z.n�&���$�z{��>h��;��1~,��� ���g�� l�� Č�y-ٻ�h����B^#�NI��*g5��1vz��������L��l���!D��2�)����Fg���ˡ����z}~O܋[/�1�9x�H�^��\���S[Ce�$�֩� .�%8�4F�8���A�53W�A����zÑs<ٯ�NT�&��92f�F9&��D$LN���>9H~JU�F�+[6ķ�@��JWE�$�S1�g� 5'w+Wb� �X�-U��T�����/��gk�-�^=)���4 r�Ċ��`�7�Y�}�Z��I݄ ��T���\�A]Ed��uJ�HE 9��qS��(�����|�햺�p� ^�N��T�?�fˠjHDV��<��nj�\ޗ��f6�L�'r��ZvZp�Z�՚��w6��U�r�C�������Q��_ U�<J�ȞA0�wc��R���f�5Y:Ԫm� ��w�*�S�}��/vY�� PK \�\��>�� � "