File manager - Edit - /home/opticamezl/www/newok/com_menus.zip
Back
PK ��\�u ! js/admin-item-edit_modules.min.jsnu �[��� /** * @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||{},(()=>{const s=Joomla.getOptions("menus-edit-modules");s&&(window.viewLevels=s.viewLevels,window.menuId=parseInt(s.itemId,10));const g="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id=",c=document.getElementById("jform_toggle_modules_assigned1"),i=document.getElementById("jform_toggle_modules_assigned0"),a=document.getElementById("jform_toggle_modules_published1"),m=document.getElementById("jform_toggle_modules_published0"),r=[].slice.call(document.getElementsByClassName("module-edit-link")),u=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));c&&c.addEventListener("click",()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach(e=>{e.classList.add("table-row"),e.classList.remove("hidden")})}),i&&i.addEventListener("click",()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach(e=>{e.classList.add("hidden"),e.classList.remove("table-row")})}),a&&a.addEventListener("click",()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach(e=>{e.classList.add("table-row"),e.classList.remove("hidden")})}),m&&m.addEventListener("click",()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach(e=>{e.classList.add("hidden"),e.classList.remove("table-row")})}),r.length&&r.forEach(t=>{t.addEventListener("click",({target:e})=>{const o=g+e.getAttribute("data-module-id"),l=document.getElementById("moduleEditModal"),d=l.querySelector(".modal-body"),n=document.createElement("iframe");n.src=o,n.setAttribute("class",'class="iframe jviewport-height70"'),d.innerHTML="",d.appendChild(n),l.open()})}),u.length&&u.forEach(t=>{t.addEventListener("click",({target:e})=>{const o=e.getAttribute("data-bs-target");if(o){const l=document.querySelector("#moduleEditModal iframe");(l.contentDocument||l.contentWindow.document).querySelector(o).click()}})})})(); PK ��\�CN� � js/admin-items-modal-es5.jsnu �[��� (function () { 'use strict'; /** * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (Joomla, document) { /** * Javascript to insert the link * View element calls jSelectContact when a contact is clicked * jSelectContact creates the link tag, sends it to the editor, * and closes the select frame. */ window.jSelectMenuItem = function (id, title, uri, object, link, lang) { var thislang = ''; if (!Joomla.getOptions('xtd-menus')) { // Something went wrong! window.parent.Joomla.Modal.getCurrent().close(); throw new Error('core.js was not properly initialised'); } // eslint-disable-next-line prefer-destructuring var editor = Joomla.getOptions('xtd-menus').editor; if (lang !== '') { thislang = '&lang='; } var tag = "<a href=\"" + (uri + thislang + lang) + "\">" + title + "</a>"; // Insert the link in the editor if (window.parent.Joomla.editors.instances[editor].getSelection()) { window.parent.Joomla.editors.instances[editor].replaceSelection("<a href=\"" + (uri + thislang + lang) + "\">" + window.parent.Joomla.editors.instances[editor].getSelection() + "</a>"); } else { window.parent.Joomla.editors.instances[editor].replaceSelection(tag); } // Close the modal if (window.parent.Joomla && window.parent.Joomla.Modal) { window.parent.Joomla.Modal.getCurrent().close(); } }; // Get the elements var elements = [].slice.call(document.querySelectorAll('.select-link')); elements.forEach(function (element) { // Listen for click event element.addEventListener('click', function (event) { event.preventDefault(); var functionName = event.target.getAttribute('data-function'); if (functionName === 'jSelectMenuItem') { // Used in xtd_contacts window[functionName](event.target.getAttribute('data-id'), event.target.getAttribute('data-title'), event.target.getAttribute('data-uri'), null, null, event.target.getAttribute('data-language')); } else { // Used in com_menus window.parent[functionName](event.target.getAttribute('data-id'), event.target.getAttribute('data-title'), null, null, event.target.getAttribute('data-uri'), event.target.getAttribute('data-language'), null); } // Close the modal if (window.parent.Joomla.Modal) { window.parent.Joomla.Modal.getCurrent().close(); } }); }); })(Joomla, document); })(); PK ��\E�F�V V js/admin-item-edit.min.jsnu �[��� /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(e=>{e.submitbutton=(t,r)=>{t==="item.setType"||t==="item.setMenuType"?(t==="item.setType"?([].slice.call(document.querySelectorAll('#item-form input[name="jform[type]"]')).forEach(n=>{n.value=r}),document.getElementById("fieldtype").value="type"):[].slice.call(document.querySelectorAll('#item-form input[name="jform[menutype]"]')).forEach(n=>{n.value=r}),e.submitform("item.setType",document.getElementById("item-form"))):t==="item.cancel"||document.formvalidator.isValid(document.getElementById("item-form"))?e.submitform(t,document.getElementById("item-form")):[].slice.call(document.querySelectorAll("#item-form .modal-value.invalid")).forEach(n=>{const o=n.getAttribute("id").split("").reverse().join(""),s=o.indexOf("_"),c=`${o.substr(s).split("").reverse().join("")}name`;document.getElementById(c).classList.add("invalid")})};const d=({target:t})=>{const r=t.value;e.request({url:`index.php?option=com_menus&task=item.getParentItem&menutype=${r}`,headers:{"Content-Type":"application/json"},onSuccess(i){const n=JSON.parse(i),o=document.getElementById("jform_parent_id").closest("joomla-field-fancy-select");o.choicesInstance.clearChoices(),o.choicesInstance.setChoices([{id:"1",text:e.Text._("JGLOBAL_ROOT_PARENT")}],"id","text",!1),n.forEach(c=>{const m={};m.innerText=c.title,m.id=c.id,o.choicesInstance.setChoices([m],"id","innerText",!1)}),o.choicesInstance.setChoiceByValue("1");const s=document.createEvent("HTMLEvents");s.initEvent("change",!0,!1),document.getElementById("jform_parent_id").dispatchEvent(s)},onError:i=>{e.renderMessages(e.ajaxErrorsMessages(i))}})};if(!e||typeof e.request!="function")throw new Error("core.js was not properly initialised");const l=document.getElementById("jform_menutype");l&&l.addEventListener("change",d),document.getElementById("item-form").addEventListener("submit",()=>{document.getElementById("jform_params_login_redirect_url")&&document.getElementById("jform_params_logout_redirect_url")&&(document.getElementById("jform_params_login_redirect_url").closest(".control-group").classList.contains("hidden")||(document.getElementById("jform_params_login_redirect_menuitem_id").value=""),document.getElementById("jform_params_login_redirect_menuitem_name").closest(".control-group").classList.contains("hidden")||(document.getElementById("jform_params_login_redirect_url").value=""),document.getElementById("jform_params_logout_redirect_url").closest(".control-group").classList.contains("hidden")||(document.getElementById("jform_params_logout_redirect_menuitem_id").value=""),document.getElementById("jform_params_logout_redirect_menuitem_id").closest(".control-group").classList.contains("hidden")||(document.getElementById("jform_params_logout_redirect_url").value=""))})})(Joomla); PK ��\3�h�� � js/admin-menus-default.min.js.gznu �[��� � }�ok1���S��;ܜ�}3�X������0cu�ĝm�l]�p仏����`荄���<�F�ǒ�}�� ��������� jb�pk�1�f�T�a�\����n�S�D�Eq]�(gK n��F��Y:[���bL�\ Ep�1^AB��l2�[L�� Fc��hQ���k���<�&��peǙ��V��'��85�F�.ڝ �?=/�a��l7������u�VT6w��.���U���נ�9�[���^L�1���t�P��A��1��ZE�����?�J��9�)�A2)_7$]��LUM�xnw�lc� �Z��H.�.ڄ��z��E_���t)G�餩��L%�!?�Ky�C|�'���c�R��W��s��>�Ikݛ���ˆÿ�L�m�L�+6��ɦ,������%�Sz PK ��\ ��� � $ js/admin-menus-default-es5.min.js.gznu �[��� � }Q�1�b�GR��;��uų��� �H��msf3k2i�,��˶�-(� 3/�'�� [�B�Y���5��G�� ��P� v�b 1�p��� <4�aN)�;͌!�p덂w+�&��6��z"��V��w��5�# ������Ǵp���]c��<\p�1�!"��v2��O?� �#qN��� �D~h�JY�>ŗ%V:9Τl�: �)�X�1���T�Չ��vc}I����~�h����Q�(ےL��s�4u�??noK�Zk��������I =����Bv��C�[U��q��a��p��T�ɤ��^�tYN��yf#�N�le��Z���,�����H��Yu��jt/R92�o���t)d�_�k���K[���k*�Em��P����˖vW�EQ��P��P�o��..N�벶��Z���>f��:�C/E� �n�� PK ��\ ��I� � * js/admin-item-edit_container-es5.min.js.gznu �[��� � uRMk�@��WLtHvͲvr*UU� 7-��B����z��Ύd��^�v���oĪ �]B�&!$&g9�'������@n]1�x�p7�� �j�� Y���))x Vç��N'��n�Ƹ�FGZ>Yyg1$ x|��������;��)��"�7��CB�����y1Ӽ��'�\<�ck\qfP �� �m�v�e����@��#�{/n\�~�C�EvR/�>{���2��!<��:�^��waݩ�Fx.U\M;��v* &�{frˆQd�Kf����N�������\v��O�H�JPQWSyL��e�Ǫ[��(;U���Ǡ5Z#+[AR��$s{}�+��ԗ7�~�بVv��_^u�F[�;i&�tb�ͤ^E�[]�XY����x��o(2��d��å(�m�{,��o�w�t& PK ��\sq� � js/admin-item-edit_modules.jsnu �[��� /** * @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 || {}; (() => { const options = Joomla.getOptions('menus-edit-modules'); if (options) { window.viewLevels = options.viewLevels; window.menuId = parseInt(options.itemId, 10); } const baseLink = 'index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id='; const assigned1 = document.getElementById('jform_toggle_modules_assigned1'); const assigned0 = document.getElementById('jform_toggle_modules_assigned0'); const published1 = document.getElementById('jform_toggle_modules_published1'); const published0 = document.getElementById('jform_toggle_modules_published0'); const linkElements = [].slice.call(document.getElementsByClassName('module-edit-link')); const elements = [].slice.call(document.querySelectorAll('#moduleEditModal .modal-footer .btn')); if (assigned1) { assigned1.addEventListener('click', () => { const list = [].slice.call(document.querySelectorAll('tr.no')); list.forEach(item => { item.classList.add('table-row'); item.classList.remove('hidden'); }); }); } if (assigned0) { assigned0.addEventListener('click', () => { const list = [].slice.call(document.querySelectorAll('tr.no')); list.forEach(item => { item.classList.add('hidden'); item.classList.remove('table-row'); }); }); } if (published1) { published1.addEventListener('click', () => { const list = [].slice.call(document.querySelectorAll('.table tr.unpublished')); list.forEach(item => { item.classList.add('table-row'); item.classList.remove('hidden'); }); }); } if (published0) { published0.addEventListener('click', () => { const list = [].slice.call(document.querySelectorAll('.table tr.unpublished')); list.forEach(item => { item.classList.add('hidden'); item.classList.remove('table-row'); }); }); } if (linkElements.length) { linkElements.forEach(linkElement => { linkElement.addEventListener('click', ({ target }) => { const link = baseLink + target.getAttribute('data-module-id'); const modal = document.getElementById('moduleEditModal'); const body = modal.querySelector('.modal-body'); const 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(element => { element.addEventListener('click', ({ target }) => { const dataTarget = target.getAttribute('data-bs-target'); if (dataTarget) { const iframe = document.querySelector('#moduleEditModal iframe'); const iframeDocument = iframe.contentDocument || iframe.contentWindow.document; iframeDocument.querySelector(dataTarget).click(); } }); }); } })(); PK ��\6��� � js/admin-item-edit_container.jsnu �[��� /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (document => { const isChecked = element => element.checked; const getTreeElements = element => element.querySelectorAll('input[type="checkbox"]'); const getTreeRoot = element => element.parentElement.nextElementSibling; const check = element => { element.checked = true; }; const uncheck = element => { element.checked = false; }; const disable = element => element.setAttribute('disabled', 'disabled'); const enable = element => element.removeAttribute('disabled'); const toggleState = (element, rootChecked) => { if (rootChecked === true) { disable(element); check(element); return; } enable(element); uncheck(element); }; const switchState = ({ target }) => { const root = getTreeRoot(target); const selfChecked = isChecked(target); if (root) { getTreeElements(root).map(element => toggleState(element, selfChecked)); } }; [].slice.call(document.querySelectorAll('.treeselect input[type="checkbox"]')).forEach(checkbox => { checkbox.addEventListener('click', switchState); }); })(document); PK ��\q�x-� � js/admin-items-modal.min.jsnu �[��� /** * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */((n,r)=>{window.jSelectMenuItem=(l,t,e,c,g,o)=>{let i="";if(!n.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");const a=n.getOptions("xtd-menus").editor;o!==""&&(i="&lang=");const d=`<a href="${e+i+o}">${t}</a>`;window.parent.Joomla.editors.instances[a].getSelection()?window.parent.Joomla.editors.instances[a].replaceSelection(`<a href="${e+i+o}">${window.parent.Joomla.editors.instances[a].getSelection()}</a>`):window.parent.Joomla.editors.instances[a].replaceSelection(d),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()},[].slice.call(r.querySelectorAll(".select-link")).forEach(l=>{l.addEventListener("click",t=>{t.preventDefault();const e=t.target.getAttribute("data-function");e==="jSelectMenuItem"?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 ��\�@�64 4 js/admin-item-edit-es5.min.js.gznu �[��� � �V]O#7}�WW����,�Te:mE[_Z� �Mb�g�;@����@��QZ�6�}�=��s�acjg��&