Sindbad~EG File Manager

Current Path : /var/www/html/formacion.bdp.com.py-bk/message/amd/build/
Upload File :
Current File : /var/www/html/formacion.bdp.com.py-bk/message/amd/build/message_drawer_helper.min.js.map

{"version":3,"file":"message_drawer_helper.min.js","sources":["../src/message_drawer_helper.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 * Provides some helper functions to trigger actions in the message drawer.\n *\n * @module     core_message/message_drawer_helper\n * @copyright  2018 Ryan Wyllie <ryan@moodle.com>\n * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later\n */\ndefine(\n[\n    'core/pubsub',\n    'core_message/message_drawer_events'\n],\nfunction(\n    PubSub,\n    MessageDrawerEvents\n) {\n\n    /** @property {boolean} Whether the drawer is ready or not */\n    var drawerMarkedReady = false;\n\n    /**\n     * Trigger an event to create a new conversation in the message drawer.\n     *\n     * @param {object} args\n     * @param {Number} args.userId The user id to start a conversation.\n     */\n    var createConversationWithUser = function(args) {\n        waitForDrawerToLoad().then(function() {\n            PubSub.publish(MessageDrawerEvents.CREATE_CONVERSATION_WITH_USER, args);\n            return;\n        }).catch();\n    };\n\n    /**\n     * Trigger an event to hide the message drawer.\n     */\n    var hide = function() {\n        waitForDrawerToLoad().then(function() {\n            PubSub.publish(MessageDrawerEvents.HIDE);\n            return;\n        }).catch();\n    };\n\n    /**\n     * Trigger an event to show the message drawer.\n     */\n    var show = function() {\n        waitForDrawerToLoad().then(function() {\n            PubSub.publish(MessageDrawerEvents.SHOW);\n            return;\n        }).catch();\n    };\n\n    /**\n     * Trigger an event to show the given conversation.\n     *\n     * @param {object} args\n     * @param {int} args.conversationId Id for the conversation to show.\n     */\n    var showConversation = function(args) {\n        waitForDrawerToLoad().then(function() {\n            PubSub.publish(MessageDrawerEvents.SHOW_CONVERSATION, args);\n            return;\n        }).catch();\n    };\n\n    /**\n     * Trigger an event to show messaging settings.\n     */\n    var showSettings = function() {\n        waitForDrawerToLoad().then(function() {\n            PubSub.publish(MessageDrawerEvents.SHOW_SETTINGS);\n            return;\n        }).catch();\n    };\n\n    /**\n     * Helper to wait for the drawer to be ready before performing an action.\n     *\n     * @returns {Promise<void>}\n     */\n    var waitForDrawerToLoad = function() {\n        return new Promise(function(resolve) {\n            if (drawerMarkedReady) {\n                resolve();\n            } else {\n                PubSub.subscribe(MessageDrawerEvents.READY, resolve);\n            }\n        });\n    };\n\n    /**\n     * Helper to allow the drawer to mark itself as ready.\n     */\n    var markDrawerReady = function() {\n        drawerMarkedReady = true;\n        PubSub.publish(MessageDrawerEvents.READY);\n    };\n\n    return {\n        createConversationWithUser: createConversationWithUser,\n        hide: hide,\n        show: show,\n        showConversation: showConversation,\n        showSettings: showSettings,\n        markDrawerReady: markDrawerReady,\n    };\n});\n"],"names":["define","PubSub","MessageDrawerEvents","drawerMarkedReady","waitForDrawerToLoad","Promise","resolve","subscribe","READY","createConversationWithUser","args","then","publish","CREATE_CONVERSATION_WITH_USER","catch","hide","HIDE","show","SHOW","showConversation","SHOW_CONVERSATION","showSettings","SHOW_SETTINGS","markDrawerReady"],"mappings":";;;;;;;AAsBAA,4CACA,CACI,cACA,uCAEJ,SACIC,OACAC,yBAIIC,mBAAoB,EA+DpBC,oBAAsB,kBACf,IAAIC,SAAQ,SAASC,SACpBH,kBACAG,UAEAL,OAAOM,UAAUL,oBAAoBM,MAAOF,mBAajD,CACHG,2BA1E6B,SAASC,MACtCN,sBAAsBO,MAAK,WACvBV,OAAOW,QAAQV,oBAAoBW,8BAA+BH,SAEnEI,SAuEHC,KAjEO,WACPX,sBAAsBO,MAAK,WACvBV,OAAOW,QAAQV,oBAAoBc,SAEpCF,SA8DHG,KAxDO,WACPb,sBAAsBO,MAAK,WACvBV,OAAOW,QAAQV,oBAAoBgB,SAEpCJ,SAqDHK,iBA5CmB,SAAST,MAC5BN,sBAAsBO,MAAK,WACvBV,OAAOW,QAAQV,oBAAoBkB,kBAAmBV,SAEvDI,SAyCHO,aAnCe,WACfjB,sBAAsBO,MAAK,WACvBV,OAAOW,QAAQV,oBAAoBoB,kBAEpCR,SAgCHS,gBAXkB,WAClBpB,mBAAoB,EACpBF,OAAOW,QAAQV,oBAAoBM"}

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