HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.0.30
System: Linux multiplicar 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: root (0)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /var/www/html/erauniversity.sumar.biz/message/amd/build/notification_processor.min.js.map
{"version":3,"file":"notification_processor.min.js","sources":["../src/notification_processor.js"],"sourcesContent":["// This file is part of Moodle - http://moodle.org/\n//\n// Moodle is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as published by\n// the Free Software Foundation, either version 3 of the License, or\n// (at your option) any later version.\n//\n// Moodle is distributed in the hope that it will be useful,\n// but WITHOUT ANY WARRANTY; without even the implied warranty of\n// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n// GNU General Public License for more details.\n//\n// You should have received a copy of the GNU General Public License\n// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.\n\n/**\n * Represents the notification processor (e.g. email, popup, jabber)\n *\n * @module     core_message/notification_processor\n * @copyright  2016 Ryan Wyllie <ryan@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(['jquery'], function($) {\n    var SELECTORS = {\n        STATE_NONE: '[data-state=\"none\"]',\n        STATE_BOTH: '[data-state=\"both\"]',\n        STATE_LOGGED_IN: '[data-state=\"loggedin\"]',\n        STATE_LOGGED_OFF: '[data-state=\"loggedoff\"]',\n    };\n\n    /**\n     * Constructor for the notification processor.\n     *\n     * @class\n     * @param {object} element jQuery object root element of the processor\n     */\n    var NotificationProcessor = function(element) {\n        this.root = $(element);\n    };\n\n    /**\n     * Get the processor name.\n     *\n     * @method getName\n     * @return {string}\n     */\n    NotificationProcessor.prototype.getName = function() {\n        return this.root.attr('data-processor-name');\n    };\n\n    /**\n     * Check if the processor is enabled when the user is logged in.\n     *\n     * @method isLoggedInEnabled\n     * @return {bool}\n     */\n    NotificationProcessor.prototype.isLoggedInEnabled = function() {\n        var none = this.root.find(SELECTORS.STATE_NONE).find('input');\n\n        if (none.prop('checked')) {\n            return false;\n        }\n\n        var both = this.root.find(SELECTORS.STATE_BOTH).find('input');\n        var loggedIn = this.root.find(SELECTORS.STATE_LOGGED_IN).find('input');\n\n        return loggedIn.prop('checked') || both.prop('checked');\n    };\n\n    /**\n     * Check if the processor is enabled when the user is logged out.\n     *\n     * @method isLoggedOffEnabled\n     * @return {bool}\n     */\n    NotificationProcessor.prototype.isLoggedOffEnabled = function() {\n        var none = this.root.find(SELECTORS.STATE_NONE).find('input');\n\n        if (none.prop('checked')) {\n            return false;\n        }\n\n        var both = this.root.find(SELECTORS.STATE_BOTH).find('input');\n        var loggedOff = this.root.find(SELECTORS.STATE_LOGGED_OFF).find('input');\n\n        return loggedOff.prop('checked') || both.prop('checked');\n    };\n\n    return NotificationProcessor;\n});\n"],"names":["define","$","SELECTORS","NotificationProcessor","element","root","prototype","getName","this","attr","isLoggedInEnabled","find","prop","both","isLoggedOffEnabled"],"mappings":";;;;;;;AAsBAA,6CAAO,CAAC,WAAW,SAASC,OACpBC,qBACY,sBADZA,qBAEY,sBAFZA,0BAGiB,0BAHjBA,2BAIkB,2BASlBC,sBAAwB,SAASC,cAC5BC,KAAOJ,EAAEG,iBASlBD,sBAAsBG,UAAUC,QAAU,kBAC/BC,KAAKH,KAAKI,KAAK,wBAS1BN,sBAAsBG,UAAUI,kBAAoB,cACrCF,KAAKH,KAAKM,KAAKT,sBAAsBS,KAAK,SAE5CC,KAAK,kBACH,MAGPC,KAAOL,KAAKH,KAAKM,KAAKT,sBAAsBS,KAAK,gBACtCH,KAAKH,KAAKM,KAAKT,2BAA2BS,KAAK,SAE9CC,KAAK,YAAcC,KAAKD,KAAK,YASjDT,sBAAsBG,UAAUQ,mBAAqB,cACtCN,KAAKH,KAAKM,KAAKT,sBAAsBS,KAAK,SAE5CC,KAAK,kBACH,MAGPC,KAAOL,KAAKH,KAAKM,KAAKT,sBAAsBS,KAAK,gBACrCH,KAAKH,KAAKM,KAAKT,4BAA4BS,KAAK,SAE/CC,KAAK,YAAcC,KAAKD,KAAK,YAG3CT"}