File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/com_menus.zip
Back
PK �E.]sT� � js/admin-menus-default.jsnu &1i� /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (Joomla => { if (Joomla.getOptions('menus-default')) { // eslint-disable-next-line prefer-destructuring const items = Joomla.getOptions('menus-default').items; items.forEach(item => { window[`jSelectPosition_${item}`] = name => { document.getElementById(item).value = name; Joomla.Modal.getCurrent().close(); }; }); } Array.from(document.querySelectorAll('.modal')).forEach(modalEl => { modalEl.addEventListener('hidden.bs.modal', () => { setTimeout(() => { window.parent.location.reload(); }, 1000); }); }); })(Joomla); (originalFn => { Joomla.submitform = (task, form) => { originalFn(task, form); if (task === 'menu.exportXml') { document.adminForm.task.value = ''; } }; })(Joomla.submitform); PK �E.]�l�� � ! js/admin-item-edit_modules.min.jsnu &1i� Joomla=window.Joomla||{},(()=>{const e=Joomla.getOptions("menus-edit-modules");e&&(window.viewLevels=e.viewLevels,window.menuId=parseInt(e.itemId,10));const t=document.getElementById("jform_toggle_modules_assigned1"),l=document.getElementById("jform_toggle_modules_assigned0"),o=document.getElementById("jform_toggle_modules_published1"),d=document.getElementById("jform_toggle_modules_published0"),c=[].slice.call(document.getElementsByClassName("module-edit-link")),n=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));t&&t.addEventListener("click",(()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach((e=>{e.classList.add("table-row"),e.classList.remove("hidden")}))})),l&&l.addEventListener("click",(()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach((e=>{e.classList.add("hidden"),e.classList.remove("table-row")}))})),o&&o.addEventListener("click",(()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach((e=>{e.classList.add("table-row"),e.classList.remove("hidden")}))})),d&&d.addEventListener("click",(()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach((e=>{e.classList.add("hidden"),e.classList.remove("table-row")}))})),c.length&&c.forEach((e=>{e.addEventListener("click",(({target:e})=>{const t="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id="+e.getAttribute("data-module-id"),l=document.getElementById("moduleEditModal"),o=l.querySelector(".modal-body"),d=document.createElement("iframe");d.src=t,d.setAttribute("class",'class="iframe jviewport-height70"'),o.innerHTML="",o.appendChild(d),l.open()}))})),n.length&&n.forEach((e=>{e.addEventListener("click",(({target:e})=>{const t=e.getAttribute("data-bs-target");if(t){const e=document.querySelector("#moduleEditModal iframe");(e.contentDocument||e.contentWindow.document).querySelector(t).click()}}))}))})();PK �E.]y�O�N N js/admin-item-edit-es5.jsnu &1i� (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (Joomla) { Joomla.submitbutton = function (task, type) { if (task === 'item.setType' || task === 'item.setMenuType') { if (task === 'item.setType') { var list = [].slice.call(document.querySelectorAll('#item-form input[name="jform[type]"]')); list.forEach(function (item) { item.value = type; }); document.getElementById('fieldtype').value = 'type'; } else { var _list = [].slice.call(document.querySelectorAll('#item-form input[name="jform[menutype]"]')); _list.forEach(function (item) { item.value = type; }); } Joomla.submitform('item.setType', document.getElementById('item-form')); } else if (task === 'item.cancel' || document.formvalidator.isValid(document.getElementById('item-form'))) { Joomla.submitform(task, document.getElementById('item-form')); } else { // special case for modal popups validation response var _list2 = [].slice.call(document.querySelectorAll('#item-form .modal-value.invalid')); _list2.forEach(function (field) { var idReversed = field.getAttribute('id').split('').reverse().join(''); var separatorLocation = idReversed.indexOf('_'); var nameId = idReversed.substr(separatorLocation).split('').reverse().join('') + "name"; document.getElementById(nameId).classList.add('invalid'); }); } }; var onChange = function onChange(_ref) { var target = _ref.target; var menuType = target.value; Joomla.request({ url: "index.php?option=com_menus&task=item.getParentItem&menutype=" + menuType, headers: { 'Content-Type': 'application/json' }, onSuccess: function onSuccess(response) { var data = JSON.parse(response); var list = [].slice.call(document.querySelectorAll('#jform_parent_id option')); list.forEach(function (item) { if (item.value !== '1') { item.parentNode.removeChild(item); } }); data.forEach(function (value) { var option = document.createElement('option'); option.innerText = value.title; option.id = value.id; document.getElementById('jform_parent_id').appendChild(option); }); var newEvent = document.createEvent('HTMLEvents'); newEvent.initEvent('change', true, false); document.getElementById('jform_parent_id').dispatchEvent(newEvent); }, onError: function onError(xhr) { Joomla.renderMessages(Joomla.ajaxErrorsMessages(xhr)); } }); }; if (!Joomla || typeof Joomla.request !== 'function') { throw new Error('core.js was not properly initialised'); } var element = document.getElementById('jform_menutype'); if (element) { element.addEventListener('change', onChange); } // Menu type Login Form specific document.getElementById('item-form').addEventListener('submit', function () { if (document.getElementById('jform_params_login_redirect_url') && document.getElementById('jform_params_logout_redirect_url')) { // Login if (!document.getElementById('jform_params_login_redirect_url').closest('.control-group').classList.contains('hidden')) { document.getElementById('jform_params_login_redirect_menuitem_id').value = ''; } if (!document.getElementById('jform_params_login_redirect_menuitem_name').closest('.control-group').classList.contains('hidden')) { document.getElementById('jform_params_login_redirect_url').value = ''; } // Logout if (!document.getElementById('jform_params_logout_redirect_url').closest('.control-group').classList.contains('hidden')) { document.getElementById('jform_params_logout_redirect_menuitem_id').value = ''; } if (!document.getElementById('jform_params_logout_redirect_menuitem_id').closest('.control-group').classList.contains('hidden')) { document.getElementById('jform_params_logout_redirect_url').value = ''; } } }); })(Joomla); }()); PK �E.]-;�� � # js/admin-item-edit_container-es5.jsnu &1i� (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (document) { var isChecked = function isChecked(element) { return element.checked; }; var getTreeElements = function getTreeElements(element) { return element.querySelectorAll('input[type="checkbox"]'); }; var getTreeRoot = function getTreeRoot(element) { return element.parentElement.nextElementSibling; }; var check = function check(element) { element.checked = true; }; var uncheck = function uncheck(element) { element.checked = false; }; var disable = function disable(element) { return element.setAttribute('disabled', 'disabled'); }; var enable = function enable(element) { return element.removeAttribute('disabled'); }; var toggleState = function toggleState(element, rootChecked) { if (rootChecked === true) { disable(element); check(element); return; } enable(element); uncheck(element); }; var switchState = function switchState(_ref) { var target = _ref.target; var root = getTreeRoot(target); var selfChecked = isChecked(target); if (root) { getTreeElements(root).map(function (element) { return toggleState(element, selfChecked); }); } }; [].slice.call(document.querySelectorAll('.treeselect input[type="checkbox"]')).forEach(function (checkbox) { checkbox.addEventListener('click', switchState); }); })(document); }()); PK �E.]府� � ! js/admin-item-edit_modules-es5.jsnu &1i� (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ Joomla = window.Joomla || {}; (function () { var options = Joomla.getOptions('menus-edit-modules'); if (options) { window.viewLevels = options.viewLevels; window.menuId = parseInt(options.itemId, 10); } var baseLink = 'index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id='; var assigned1 = document.getElementById('jform_toggle_modules_assigned1'); var assigned0 = document.getElementById('jform_toggle_modules_assigned0'); var published1 = document.getElementById('jform_toggle_modules_published1'); var published0 = document.getElementById('jform_toggle_modules_published0'); var linkElements = [].slice.call(document.getElementsByClassName('module-edit-link')); var elements = [].slice.call(document.querySelectorAll('#moduleEditModal .modal-footer .btn')); if (assigned1) { assigned1.addEventListener('click', function () { var list = [].slice.call(document.querySelectorAll('tr.no')); list.forEach(function (item) { item.classList.add('table-row'); item.classList.remove('hidden'); }); }); } if (assigned0) { assigned0.addEventListener('click', function () { var list = [].slice.call(document.querySelectorAll('tr.no')); list.forEach(function (item) { item.classList.add('hidden'); item.classList.remove('table-row'); }); }); } if (published1) { published1.addEventListener('click', function () { var list = [].slice.call(document.querySelectorAll('.table tr.unpublished')); list.forEach(function (item) { item.classList.add('table-row'); item.classList.remove('hidden'); }); }); } if (published0) { published0.addEventListener('click', function () { var list = [].slice.call(document.querySelectorAll('.table tr.unpublished')); list.forEach(function (item) { item.classList.add('hidden'); item.classList.remove('table-row'); }); }); } if (linkElements.length) { linkElements.forEach(function (linkElement) { linkElement.addEventListener('click', function (_ref) { var target = _ref.target; var link = baseLink + target.getAttribute('data-module-id'); var modal = document.getElementById('moduleEditModal'); var body = modal.querySelector('.modal-body'); var iFrame = document.createElement('iframe'); iFrame.src = link; iFrame.setAttribute('class', 'class="iframe jviewport-height70"'); body.innerHTML = ''; body.appendChild(iFrame); modal.open(); }); }); } if (elements.length) { elements.forEach(function (element) { element.addEventListener('click', function (_ref2) { var target = _ref2.target; var dataTarget = target.getAttribute('data-bs-target'); if (dataTarget) { var iframe = document.querySelector('#moduleEditModal iframe'); var iframeDocument = iframe.contentDocument || iframe.contentWindow.document; iframeDocument.querySelector(dataTarget).click(); } }); }); } })(); }()); PK �E.]91�5 5 js/admin-items-modal-es5.min.jsnu &1i� !function(){"use strict";!function(t,e){window.jSelectMenuItem=function(e,a,n,o,r,i){var l="";if(!t.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");var d=t.getOptions("xtd-menus").editor;""!==i&&(l="&lang=");var u='<a href="'+(n+l+i)+'">'+a+"</a>";window.parent.Joomla.editors.instances[d].getSelection()?window.parent.Joomla.editors.instances[d].replaceSelection('<a href="'+(n+l+i)+'">'+window.parent.Joomla.editors.instances[d].getSelection()+"</a>"):window.parent.Joomla.editors.instances[d].replaceSelection(u),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()},[].slice.call(e.querySelectorAll(".select-link")).forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault();var e=t.target.getAttribute("data-function");"jSelectMenuItem"===e?window[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),t.target.getAttribute("data-uri"),null,null,t.target.getAttribute("data-language")):window.parent[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),null,null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language"),null),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}))}(Joomla,document)}();PK �E.]ΛЪ, , ! js/admin-menus-default-es5.min.jsnu &1i� !function(){"use strict";var o;!function(o){o.getOptions("menus-default")&&o.getOptions("menus-default").items.forEach((function(t){window["jSelectPosition_"+t]=function(e){document.getElementById(t).value=e,o.Modal.getCurrent().close()}}));Array.from(document.querySelectorAll(".modal")).forEach((function(o){o.addEventListener("hidden.bs.modal",(function(){setTimeout((function(){window.parent.location.reload()}),1e3)}))}))}(Joomla),o=Joomla.submitform,Joomla.submitform=function(t,e){o(t,e),"menu.exportXml"===t&&(document.adminForm.task.value="")}}();PK �E.]����G G '