Файловый менеджер - Редактировать - /home/opticamezl/www/newok/js.tar
Назад
theme-search.js 0000604 00000005267 15166657152 0007473 0 ustar 00 /*! YOOtheme Pro v4.5.33 | https://yootheme.com */ (function(d,n){"use strict";d.component("Search",{args:"target",props:{target:String,mode:Boolean,preventSubmit:Boolean},data:{target:null,mode:!1,preventSubmit:!1},computed:{target:({target:e})=>n.$(e),dropdown({mode:e}){const t=e?null:this.target.closest(".uk-drop");return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")}},observe:[{target:e=>e.mode?e.$el.form.parentElement:e.target,observe:n.observeIntersection,handler(e){e.some(t=>t.isIntersecting)&&(this.updateForm(!0),this.$el.value&&!this._index&&this.update())}}],events:[{name:"submit",capture:!0,filter:e=>e.preventSubmit,delegate:()=>'form[role="search"]',el:e=>e.$el.form.parentElement,handler:e=>e.preventDefault()},{name:"input",handler(){this.show()}},{name:"input",el:e=>e.target,delegate:()=>'input[type="search"]',handler(e){e.target!==this.$el&&(this.$el.value=e.target.value,this.show())}},{name:"focus",filter:e=>!e.mode,handler(){this.showDropdown()}},{name:"keydown",filter:e=>!e.mode,handler(e){var t;e.key==="ArrowDown"&&(e.preventDefault(),this.dropdown.isToggled()||this.showDropdown(),n.isVisible(this.target)&&((t=n.$(n.selFocusable,this.target))==null||t.focus()))}}],methods:{async show(){await this.update(),this.showDropdown()},async update(){var c;(c=this._index)!=null||(this._index=0);const e=++this._index,t=await this.query();if(e!==this._index)return;const{activeElement:s}=this.$el.ownerDocument,r=n.$$('input[type="search"]',this.target),o=r.findIndex(f=>f===s);l(this.target,t);const h=n.$$('input[type="search"]',this.target);h[o]&&(h[o].replaceWith(r[o]),r[o].focus()),this.updateForm()},updateForm(e){if(!this.mode)return;const t=n.$$('input[type="search"]',this.target).find(n.isVisible);this.$el.form.hidden=!!t,n.toggleClass(this.$el.form,"uk-margin-remove-adjacent",!!t),t&&(t.autofocus=!0,e&&t.setSelectionRange(t.value.length,t.value.length))},async query(){const{form:e}=this.$el,t=new FormData(e),s=Object.entries(JSON.parse(e.dataset.liveSearch||"{}"));for(const[r,o]of[...s,["live-search",!0]])t.append(r,o);try{const r=await fetch(e.action,{method:"POST",body:t});if(r.ok)return await r.text()}catch{}},showDropdown(){this.dropdown&&(a(this.target)?this.dropdown.show(this.$el.form.parentElement,!1):this.dropdown.hide(!1))}}});function a(e){return Array.from(e.children).some(t=>n.css(t,"display")!=="none"&&(a(t)||!t.children.length))}const i=new Set;function l(e,t){for(const s of n.$$("script"))i.add(s.src);e.innerHTML=t;for(const s of n.$$("script",e))i.has(s.src)||(s.remove(),e.append(p(s)))}function p(e){const t=document.createElement("script");t.text=e.innerHTML;for(const{name:s,value:r}of e.attributes)t.setAttribute(s,r);return t}})(UIkit,UIkit.util); header.js 0000604 00000004363 15166657152 0006352 0 ustar 00 import { $, before, css, hasAttr, matches, observeResize, offset, remove, toPx } from 'uikit-util'; const Section = { computed: { section: { get: () => $('.tm-header ~ [class*="uk-section"], .tm-header ~ * > [class*="uk-section"]'), observe: () => '.tm-page', }, }, watch: { section() { this.$emit(); }, }, }; export const Header = { mixins: [Section], computed: { anchor: { get() { return ( this.section && !matches(this.section, '[tm-header-transparent-noplaceholder]') && ($('.uk-grid,.uk-panel:not(.uk-container)', this.section) || $('.tm-main > *')) ); }, }, }, observe: [ { observe: observeResize, handler() { this.$emit(); }, }, ], watch: { anchor() { this.$emit(); }, section(section, prev) { prev && this.$update(); }, }, update: [ { read() { return { height: this.$el.offsetHeight }; }, write({ height }) { if (!height || !this.anchor) { remove(this.placeholder); return; } this.placeholder ||= $( '<div class="tm-header-placeholder uk-margin-remove-adjacent">' ); if (this.anchor.previousElementSibling !== this.placeholder) { before(this.anchor, this.placeholder); } css(this.placeholder, { height }); }, }, ], }; export const Sticky = { mixins: [Section], update: { read() { return ( this.section && hasAttr(this.$el, 'tm-section-start') && { start: this.section.offsetHeight <= toPx('100vh') ? offset(this.section).bottom : offset(this.section).top + 300, } ); }, events: ['resize'], }, }; theme.js 0000604 00000003066 15166657152 0006223 0 ustar 00 /*! YOOtheme Pro v4.5.33 | https://yootheme.com */ (function(o,e){"use strict";const r={computed:{section:{get:()=>e.$('.tm-header ~ [class*="uk-section"], .tm-header ~ * > [class*="uk-section"]'),observe:()=>".tm-page"}},watch:{section(){this.$emit()}}},a={mixins:[r],computed:{anchor:{get(){return this.section&&!e.matches(this.section,"[tm-header-transparent-noplaceholder]")&&(e.$(".uk-grid,.uk-panel:not(.uk-container)",this.section)||e.$(".tm-main > *"))}}},observe:[{observe:e.observeResize,handler(){this.$emit()}}],watch:{anchor(){this.$emit()},section(s,t){t&&this.$update()}},update:[{read(){return{height:this.$el.offsetHeight}},write({height:s}){if(!s||!this.anchor){e.remove(this.placeholder);return}this.placeholder||(this.placeholder=e.$('<div class="tm-header-placeholder uk-margin-remove-adjacent">')),this.anchor.previousElementSibling!==this.placeholder&&e.before(this.anchor,this.placeholder),e.css(this.placeholder,{height:s})}}]},i={mixins:[r],update:{read(){return this.section&&e.hasAttr(this.$el,"tm-section-start")&&{start:this.section.offsetHeight<=e.toPx("100vh")?e.offset(this.section).bottom:e.offset(this.section).top+300}},events:["resize"]}};if(o.component("Header",a),o.mixin(i,"sticky"),e.isRtl){const s={created(){this.$props.pos=e.swap(this.$props.pos,"left","right")}};o.mixin(s,"drop"),o.mixin(s,"tooltip")}e.once(document,"uikit:init",()=>{const{$theme:{i18n:s={}}={}}=window;for(const t in s)o.mixin({i18n:s[t]},t)}),e.ready(()=>{const{$load:s=[],$theme:t={}}=window;function c(n,h){n.length&&n.shift()(h,()=>c(n,h))}c(s,t)})})(UIkit,UIkit.util); main.js 0000604 00000001447 15166657152 0006046 0 ustar 00 import UIkit from 'uikit'; import { isRtl, once, ready, swap } from 'uikit-util'; import { Header, Sticky } from './header'; UIkit.component('Header', Header); UIkit.mixin(Sticky, 'sticky'); if (isRtl) { const mixin = { created() { this.$props.pos = swap(this.$props.pos, 'left', 'right'); }, }; UIkit.mixin(mixin, 'drop'); UIkit.mixin(mixin, 'tooltip'); } once(document, 'uikit:init', () => { const { $theme: { i18n = {} } = {} } = window; for (const component in i18n) { UIkit.mixin({ i18n: i18n[component] }, component); } }); ready(() => { const { $load = [], $theme = {} } = window; function load(stack, config) { stack.length && stack.shift()(config, () => load(stack, config)); } load($load, $theme); }); search.js 0000604 00000012733 15166657152 0006367 0 ustar 00 import UIkit from 'uikit'; import { $, $$, css, isVisible, observeIntersection, selFocusable, toggleClass } from 'uikit-util'; UIkit.component('Search', { args: 'target', props: { target: String, mode: Boolean, preventSubmit: Boolean, }, data: { target: null, mode: false, preventSubmit: false, }, computed: { target: ({ target }) => $(target), dropdown({ mode }) { const dropdown = mode ? null : this.target.closest('.uk-drop'); return this.$getComponent(dropdown, 'drop') || this.$getComponent(dropdown, 'dropdown'); }, }, observe: [ { target: (vm) => (vm.mode ? vm.$el.form.parentElement : vm.target), observe: observeIntersection, handler(records) { if (records.some((record) => record.isIntersecting)) { this.updateForm(true); if (this.$el.value && !this._index) { this.update(); } } }, }, ], events: [ { name: 'submit', capture: true, filter: (vm) => vm.preventSubmit, delegate: () => 'form[role="search"]', el: (vm) => vm.$el.form.parentElement, handler: (e) => e.preventDefault(), }, { name: 'input', handler() { this.show(); }, }, { name: 'input', el: (vm) => vm.target, delegate: () => 'input[type="search"]', handler(e) { if (e.target !== this.$el) { this.$el.value = e.target.value; this.show(); } }, }, { name: 'focus', filter: (vm) => !vm.mode, handler() { this.showDropdown(); }, }, { name: 'keydown', filter: (vm) => !vm.mode, handler(e) { if (e.key === 'ArrowDown') { e.preventDefault(); if (!this.dropdown.isToggled()) { this.showDropdown(); } if (isVisible(this.target)) { $(selFocusable, this.target)?.focus(); } } }, }, ], methods: { async show() { await this.update(); this.showDropdown(); }, async update() { this._index ??= 0; const index = ++this._index; const html = await this.query(); if (index !== this._index) { return; } const { activeElement } = this.$el.ownerDocument; const inputs = $$('input[type="search"]', this.target); const focused = inputs.findIndex((el) => el === activeElement); setInnerHtml(this.target, html); const newInputs = $$('input[type="search"]', this.target); if (newInputs[focused]) { newInputs[focused].replaceWith(inputs[focused]); inputs[focused].focus(); } this.updateForm(); }, updateForm(focus) { if (!this.mode) { return; } const input = $$('input[type="search"]', this.target).find(isVisible); this.$el.form.hidden = !!input; toggleClass(this.$el.form, 'uk-margin-remove-adjacent', !!input); if (input) { input.autofocus = true; if (focus) { input.setSelectionRange(input.value.length, input.value.length); } } }, async query() { const { form } = this.$el; const formData = new FormData(form); const data = Object.entries(JSON.parse(form.dataset.liveSearch || '{}')); for (const [key, value] of [...data, ['live-search', true]]) { formData.append(key, value); } try { const response = await fetch(form.action, { method: 'POST', body: formData }); if (response.ok) { return await response.text(); } } catch {} }, showDropdown() { if (!this.dropdown) { return; } if (hasVisibleChildren(this.target)) { this.dropdown.show(this.$el.form.parentElement, false); } else { this.dropdown.hide(false); } }, }, }); function hasVisibleChildren(el) { return Array.from(el.children).some( (child) => css(child, 'display') !== 'none' && (hasVisibleChildren(child) || !child.children.length) ); } const scripts = new Set(); function setInnerHtml(target, html) { for (const el of $$('script')) { scripts.add(el.src); } target.innerHTML = html; for (const el of $$('script', target)) { if (!scripts.has(el.src)) { el.remove(); target.append(cloneScript(el)); } } } function cloneScript(node) { const script = document.createElement('script'); script.text = node.innerHTML; for (const { name, value } of node.attributes) { script.setAttribute(name, value); } return script; } admin-compare-compare-es5.min.js 0000644 00000001640 15172543553 0012531 0 ustar 00 (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(){var i=function(n){var e=document.createElement("textarea");return e.innerHTML=Joomla.sanitizeHtml(n),e.value},c=function(n,e){var m=e.nextElementSibling,u=window.Diff.diffWords(n.innerHTML,e.innerHTML),d=document.createDocumentFragment();u.forEach(function(a){var r="";a.added&&(r="#a6f3a6"),a.removed&&(r="#f8cbcb");var t=document.createElement("span");t.style.backgroundColor=r,t.style.borderRadius=".2rem",t.appendChild(document.createTextNode(i(a.value))),d.appendChild(t)}),m.appendChild(d)},l=function o(){var n=[].slice.call(document.querySelectorAll(".original"));n.forEach(function(e){c(e,e.nextElementSibling)}),document.removeEventListener("DOMContentLoaded",o)};document.addEventListener("DOMContentLoaded",l)})()})(); admin-compare-compare-es5.js 0000644 00000003136 15172543553 0011751 0 ustar 00 (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 () { // This method is used to decode HTML entities var decodeHtml = function decodeHtml(html) { var textarea = document.createElement('textarea'); textarea.innerHTML = Joomla.sanitizeHtml(html); return textarea.value; }; var compare = function compare(original, changed) { var display = changed.nextElementSibling; var diff = window.Diff.diffWords(original.innerHTML, changed.innerHTML); var fragment = document.createDocumentFragment(); diff.forEach(function (part) { var color = ''; if (part.added) { color = '#a6f3a6'; } if (part.removed) { color = '#f8cbcb'; } // @todo use the tag MARK here not SPAN var span = document.createElement('span'); span.style.backgroundColor = color; span.style.borderRadius = '.2rem'; span.appendChild(document.createTextNode(decodeHtml(part.value))); fragment.appendChild(span); }); display.appendChild(fragment); }; var onBoot = function onBoot() { var diffs = [].slice.call(document.querySelectorAll('.original')); diffs.forEach(function (fragment) { compare(fragment, fragment.nextElementSibling); }); // Cleanup document.removeEventListener('DOMContentLoaded', onBoot); }; document.addEventListener('DOMContentLoaded', onBoot); })(); })(); admin-history-modal-es5.min.js 0000644 00000003507 15172543553 0012256 0 ustar 00 (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(e,r){if(!r||typeof r.Text._!="function")throw new Error("core.js was not properly initialised");e.addEventListener("DOMContentLoaded",function(){e.getElementById("toolbar-load").addEventListener("click",function(){var i=e.getElementById("toolbar-load");if(!i.disabled){var n=e.querySelectorAll('input[id*="cb"]:checked');if(n.length===1){var t=i.childNodes[1].getAttribute("data-url")+"&version_id="+n[0].value;window.parent&&t&&(window.parent.location=t)}else r.renderMessages({error:[r.Text._("COM_CONTENTHISTORY_BUTTON_SELECT_ONE_VERSION")]})}return!1}),e.getElementById("toolbar-preview").addEventListener("click",function(){var i=e.getElementById("toolbar-preview");if(!i.disabled){var n=["width=800, height=600, resizable=yes, scrollbars=yes"],t=e.querySelectorAll('input[id*="cb"]:checked');if(t.length===1){var a=i.childNodes[1].getAttribute("data-url")+"&version_id="+t[0].value;window.parent&&a&&window.open(a,"",n.toString())}else r.renderMessages({error:[r.Text._("COM_CONTENTHISTORY_BUTTON_SELECT_ONE_VERSION")]})}return!1}),e.getElementById("toolbar-compare").addEventListener("click",function(){var i=e.getElementById("toolbar-compare");if(!i.disabled){var n=["width=1000, height=600, resizable=yes, scrollbars=yes"],t=e.querySelectorAll('input[id*="cb"]:checked');if(t.length===0)r.renderMessages({error:[r.Text._("JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST")]});else if(t.length===2){var a=i.childNodes[1].getAttribute("data-url")+"&id1="+t[0].value+"&id2="+t[1].value;window.parent&&a&&window.open(a,"",n.toString())}else r.renderMessages({error:[r.Text._("COM_CONTENTHISTORY_BUTTON_SELECT_TWO_VERSIONS")]})}return!1})})})(document,Joomla)})(); admin-history-versions-es5.min.js 0000644 00000000505 15172543553 0013025 0 ustar 00 (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 */window.addEventListener("DOMContentLoaded",function(){var n=document.getElementById("versionsModal");n&&document.body.appendChild(n)})})(); admin-compare-compare.min.js 0000644 00000001527 15172543553 0012043 0 ustar 00 /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(()=>{const i=n=>{const e=document.createElement("textarea");return e.innerHTML=Joomla.sanitizeHtml(n),e.value},l=(n,e)=>{const r=e.nextElementSibling,s=window.Diff.diffWords(n.innerHTML,e.innerHTML),a=document.createDocumentFragment();s.forEach(o=>{let d="";o.added&&(d="#a6f3a6"),o.removed&&(d="#f8cbcb");const t=document.createElement("span");t.style.backgroundColor=d,t.style.borderRadius=".2rem",t.appendChild(document.createTextNode(i(o.value))),a.appendChild(t)}),r.appendChild(a)},c=()=>{[].slice.call(document.querySelectorAll(".original")).forEach(e=>{l(e,e.nextElementSibling)}),document.removeEventListener("DOMContentLoaded",c)};document.addEventListener("DOMContentLoaded",c)})(); admin-history-versions.min.js.gz 0000644 00000000370 15172543553 0012752 0 ustar 00 � =��j�@E��C$ �i}k�R�-���f˺v'���ߋE�v��pnY �j���=w�U9,�`ߓ���Z�B���/�H��rG��|qZq8��T�� 6�#l�S�>�����z�-{X pZ(,!A���ݡV�% �h=�4b}%/��r�e���˭c���<�W�o�> � ���$��[|�������2j��K����tߓǪ�3��e�~V�$ admin-history-versions.js 0000644 00000000545 15172543553 0011555 0 ustar 00 /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ window.addEventListener('DOMContentLoaded', () => { const versionsModal = document.getElementById('versionsModal'); if (versionsModal) { document.body.appendChild(versionsModal); } }); admin-history-modal-es5.min.js.gz 0000644 00000001327 15172543553 0012673 0 ustar 00 � ŕQo�6���+>���*v�"��9�ָ��"RW�!��͖!��+�^��^�M��]е(V�E:��.�w���� �+�x`�PK⣣~���ٯ��;�� 1LBv<>ey ��A l.� }ĦV��� Q�O��ڶ�_;wiD�p����h �c�=�^�g`�a/��ђ�n�n�v�3��1�f�I�iLo�����!��J_����jp��R\&�vi��eZ�":�t�k�Z�u�jt5��1m5ia����B�t�f�S7t���g�ӜP�x�Q���R�`�t7U'��J����I��{&[�L'_�u�ֱ�^������]$9<Ҷnh�U?�rŗ'r� �G{�k�$I2�`B���F�9~1\v���P���+A�I����y�Y�U���`o�i`�j�\��R�G�^pO�����pB�5c� ��X����u��E�I>�&yV�Yy6-�����eY�YU��tRVy�V���4�x����A{8����������B�jE���`� tX�Sw��?��d>b^�3���2���K�����+z���`q٘\A��:8`�.�Y��;�/ �_�?$�|6=����z1K�EZ����&�i�U����<K�ٴ(�!��������^����^��j����j�v�;�dӵ!z���uR8:x�p 8G admin-compare-compare-es5.min.js.gz 0000644 00000001030 15172543553 0013141 0 ustar 00 � ���nS1��} �H�Y���\JC[����@,&�����a<7I���(M�� b�gt�;:3�i�㐓ҷ�-( Sp,�n�s :��� �)�zZ=q"���(��P��q��������].��{γ6���ݨ��Bqv�Y�aB�(>�����rG"���H�(�bp��_���W| :]���H�z_H� �>�v���#�~��OI�!H]rKI� )!�_����)p���<�*i�v�ŵqH��Y�6�w�Qǐ&���!�����i�M�%�/*����6�����=��μ�Z�dꃛ�G [TKY���*��38n^±�,�,/���č�X�j#�FU搤����h��~L(��r�T��w2y�O�C[ji�gҰ����MC�� �W|�=��`����G�kmf��赉������~�esb�A����-��#:��.F%m�0 �ԺJ����)4����~�6�B��9+yz5��ěZ�^����^�W�Z��W���,� admin-history-modal.min.js.gz 0000644 00000001320 15172543553 0012172 0 ustar 00 � ͕]o�6���+N���s1�T�q�Ɲ-��a0U&Ol���GQ��}���Џ}��|yx���I�}�I�z��zC �$���1d5�m�¼"B�#���� Q��NNڶ�o����n�d/��@� �y� ��AWix٬�0;�ޠ��8�@W�nf�I�� �t�� �ȅ�[u��i[����@�<��Uc)kXHg[0�B�u�!롭<KP;[��[PF����(Y8B^I�ܠ���ԥ���|b u1[I�, �,�����h�|;�#k��r���$?�$��ۅ5�@�ߒu�U\*_�4������7�9jd�X��2uC%�1+�<�P>ܫx�Ѭi���N��7n�ej%��p�%4&rj�LVT=j�f�w U*?������T��ݛQ���-�+��z=�{!���:61�;��q�F�����}p����ЀM�y9��"I��i^d���篊"K�<�%���Ҥ|�\��,e�r�R���pF_.l��Fa�}R�"�k��M�x0�`�ݳ�����[o�G����ݘ-#���3��? L_�{�C��h1yN6'��:�s��^w�~ȟ�� y8�w)�?Q���yyQ�g��Y2Γr>�9)LJ�N��|v����")gӼؗx��w��ӿi)%����S�t��U��ݹ+����H+��ы����~'��) index.html 0000604 00000000036 15172543553 0006546 0 ustar 00 <!DOCTYPE html><title></title>