X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/message/amd/build
home
/
cbholdings
/
pasukulu
/
message
/
amd
/
build
/
📁
..
📄
default_notification_preferences.min.js
(1.89 KB)
📄
default_notification_preferences.min.js.map
(4.55 KB)
📄
message_drawer.min.js
(7.15 KB)
📄
message_drawer.min.js.map
(18.49 KB)
📄
message_drawer_events.min.js
(1.48 KB)
📄
message_drawer_events.min.js.map
(3.24 KB)
📄
message_drawer_helper.min.js
(1.76 KB)
📄
message_drawer_helper.min.js.map
(3.44 KB)
📄
message_drawer_lazy_load_list.min.js
(3.4 KB)
📄
message_drawer_lazy_load_list.min.js.map
(12.29 KB)
📄
message_drawer_router.min.js
(3.84 KB)
📄
message_drawer_router.min.js.map
(13.77 KB)
📄
message_drawer_routes.min.js
(568 B)
📄
message_drawer_routes.min.js.map
(1.62 KB)
📄
message_drawer_view_contact.min.js
(1.02 KB)
📄
message_drawer_view_contact.min.js.map
(3.81 KB)
📄
message_drawer_view_contacts.min.js
(3.1 KB)
📄
message_drawer_view_contacts.min.js.map
(9.22 KB)
📄
message_drawer_view_contacts_section_contacts.min.js
(2.65 KB)
📄
message_drawer_view_contacts_section_contacts.min.js.map
(8.64 KB)
📄
message_drawer_view_contacts_section_requests.min.js
(1.96 KB)
📄
message_drawer_view_contacts_section_requests.min.js.map
(6.03 KB)
📄
message_drawer_view_conversation.min.js
(41.3 KB)
📄
message_drawer_view_conversation.min.js.map
(119.93 KB)
📄
message_drawer_view_conversation_constants.min.js
(5.96 KB)
📄
message_drawer_view_conversation_constants.min.js.map
(11.6 KB)
📄
message_drawer_view_conversation_patcher.min.js
(20.28 KB)
📄
message_drawer_view_conversation_patcher.min.js.map
(69.25 KB)
📄
message_drawer_view_conversation_renderer.min.js
(24.69 KB)
📄
message_drawer_view_conversation_renderer.min.js.map
(86.72 KB)
📄
message_drawer_view_conversation_state_manager.min.js
(11.14 KB)
📄
message_drawer_view_conversation_state_manager.min.js.map
(40.62 KB)
📄
message_drawer_view_group_info.min.js
(2.27 KB)
📄
message_drawer_view_group_info.min.js.map
(7.88 KB)
📄
message_drawer_view_overview.min.js
(4.33 KB)
📄
message_drawer_view_overview.min.js.map
(14.37 KB)
📄
message_drawer_view_overview_section.min.js
(14.37 KB)
📄
message_drawer_view_overview_section.min.js.map
(44.95 KB)
📄
message_drawer_view_search.min.js
(13.86 KB)
📄
message_drawer_view_search.min.js.map
(44 KB)
📄
message_drawer_view_settings.min.js
(4.44 KB)
📄
message_drawer_view_settings.min.js.map
(15.14 KB)
📄
message_notification_preference.min.js
(970 B)
📄
message_notification_preference.min.js.map
(2.75 KB)
📄
message_popover.min.js
(1.46 KB)
📄
message_popover.min.js.map
(4.67 KB)
📄
message_preferences.min.js
(2.19 KB)
📄
message_preferences.min.js.map
(6.14 KB)
📄
message_repository.min.js
(12.07 KB)
📄
message_repository.min.js.map
(44.79 KB)
📄
message_send_bulk.min.js
(2.36 KB)
📄
message_send_bulk.min.js.map
(4.83 KB)
📄
message_user_button.min.js
(1.67 KB)
📄
message_user_button.min.js.map
(5.23 KB)
📄
notification_preference.min.js
(2.09 KB)
📄
notification_preference.min.js.map
(6.31 KB)
📄
notification_processor.min.js
(761 B)
📄
notification_processor.min.js.map
(2.4 KB)
📄
notification_processor_settings.min.js
(4.57 KB)
📄
notification_processor_settings.min.js.map
(13.82 KB)
📄
preferences_notifications_list_controller.min.js
(3.55 KB)
📄
preferences_notifications_list_controller.min.js.map
(9.05 KB)
📄
preferences_processor_form.min.js
(1.35 KB)
📄
preferences_processor_form.min.js.map
(4.24 KB)
📄
toggle_contact_button.min.js
(2.42 KB)
📄
toggle_contact_button.min.js.map
(8.98 KB)
Editing: toggle_contact_button.min.js.map
{"version":3,"file":"toggle_contact_button.min.js","sources":["../src/toggle_contact_button.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 * Module to add/remove contact using ajax.\n *\n * @module core_message/toggle_contact_button\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', 'core/ajax', 'core/templates', 'core/notification', 'core/custom_interaction_events'],\n function($, Ajax, Templates, Notification, CustomEvents) {\n\n /**\n * Check the state of the element, if the current user is a contact or not.\n *\n * @method isContact\n * @param {object} element jQuery object for the button\n * @return {bool}\n */\n var isContact = function(element) {\n return element.attr('data-is-contact') == '1';\n };\n\n /**\n * Record that the user is a contact.\n *\n * @method setContact\n * @param {object} element jQuery object for the button\n */\n var setContact = function(element) {\n element.attr('data-is-contact', '1');\n };\n\n /**\n * Record that the user is not a contact.\n *\n * @method setNotContact\n * @param {object} element jQuery object for the button\n */\n var setNotContact = function(element) {\n element.attr('data-is-contact', '0');\n };\n\n /**\n * Get the id for the user being viewed.\n *\n * @method getUserId\n * @param {object} element jQuery object for the button\n * @return {int}\n */\n var getUserId = function(element) {\n return element.attr('data-userid');\n };\n\n /**\n * Get the id for the logged in user.\n *\n * @method getUserId\n * @param {object} element jQuery object for the button\n * @return {int}\n */\n var getCurrentUserId = function(element) {\n return element.attr('data-currentuserid');\n };\n\n /**\n * Check whether a text label should be displayed or not.\n *\n * @method getUserId\n * @param {object} element jQuery object for the button\n * @return {int}\n */\n var displayTextLabel = function(element) {\n return element.attr('data-display-text-label') == '1';\n };\n\n /**\n * Check if this element is currently loading.\n *\n * @method isLoading\n * @param {object} element jQuery object for the button\n * @return {bool}\n */\n var isLoading = function(element) {\n return element.hasClass('loading') || element.attr('disabled');\n };\n\n /**\n * Sends an ajax request to the server and handles the element state\n * while the request is being performed.\n *\n * @method sendRequest\n * @param {object} element jQuery object for the button\n * @param {object} request Request hash to send\n * @return {object} jQuery promise\n */\n var sendRequest = function(element, request) {\n if (isLoading(element)) {\n return $.Deferred();\n }\n\n element.addClass('loading');\n element.attr('disabled', 'disabled');\n\n return Ajax.call([request])[0]\n .fail(Notification.exception)\n .always(function() {\n element.removeClass('loading');\n element.removeAttr('disabled');\n });\n };\n\n /**\n * Send a request to the server to add the current user as\n * a contact. The contents of the button are changed to the\n * remove contact button upon success.\n *\n * @method addContact\n * @param {object} element jQuery object for the button\n */\n var addContact = function(element) {\n if (isLoading(element)) {\n return;\n }\n\n var request = {\n methodname: 'core_message_create_contact_request',\n args: {\n userid: getCurrentUserId(element),\n requesteduserid: getUserId(element),\n }\n };\n sendRequest(element, request).done(function() {\n setContact(element);\n const templateContext = {\n 'displaytextlabel': displayTextLabel(element)\n };\n Templates.render('message/remove_contact_button', templateContext).done(function(html, js) {\n Templates.replaceNodeContents(element, html, js);\n });\n });\n };\n\n /**\n * Send a request to the server to remove the current user as\n * a contact. The contents of the button are changed to the\n * add contact button upon success.\n *\n * @method removeContact\n * @param {object} element jQuery object for the button\n */\n var removeContact = function(element) {\n if (isLoading(element)) {\n return;\n }\n\n var request = {\n methodname: 'core_message_delete_contacts',\n args: {\n userids: [getUserId(element)],\n }\n };\n\n sendRequest(element, request).done(function() {\n setNotContact(element);\n const templateContext = {\n 'displaytextlabel': displayTextLabel(element)\n };\n Templates.render('message/add_contact_button', templateContext).done(function(html, js) {\n Templates.replaceNodeContents(element, html, js);\n });\n });\n };\n\n /**\n * Enhances the given element with a loading gif and event handles to make\n * ajax requests to add or remove a contact where appropriate.\n *\n * @public\n * @method enhance\n * @param {object} element jQuery object for the button\n */\n var enhance = function(element) {\n element = $(element);\n\n if (!element.children('.loading-icon').length) {\n // Add the loading gif if it isn't already there.\n Templates.render('core/loading', {}).done(function(html, js) {\n element.append(html, js);\n });\n }\n\n CustomEvents.define(element, [CustomEvents.events.activate]);\n\n element.on(CustomEvents.events.activate, function(e, data) {\n if (isContact(element)) {\n removeContact(element);\n } else {\n addContact(element);\n }\n e.preventDefault();\n data.originalEvent.preventDefault();\n });\n };\n\n return {\n enhance: enhance\n };\n});\n"],"names":["define","$","Ajax","Templates","Notification","CustomEvents","getUserId","element","attr","getCurrentUserId","displayTextLabel","isLoading","hasClass","sendRequest","request","Deferred","addClass","call","fail","exception","always","removeClass","removeAttr","enhance","children","length","render","done","html","js","append","events","activate","on","e","data","isContact","methodname","args","userid","requesteduserid","setContact","templateContext","replaceNodeContents","addContact","userids","setNotContact","removeContact","preventDefault","originalEvent"],"mappings":";;;;;;;AAsBAA,4CAAO,CAAC,SAAU,YAAa,iBAAkB,oBAAqB,mCAC9D,SAASC,EAAGC,KAAMC,UAAWC,aAAcC,kBAwC3CC,UAAY,SAASC,gBACdA,QAAQC,KAAK,gBAUpBC,iBAAmB,SAASF,gBACrBA,QAAQC,KAAK,uBAUpBE,iBAAmB,SAASH,eACsB,KAA3CA,QAAQC,KAAK,4BAUpBG,UAAY,SAASJ,gBACdA,QAAQK,SAAS,YAAcL,QAAQC,KAAK,aAYnDK,YAAc,SAASN,QAASO,gBAC5BH,UAAUJ,SACHN,EAAEc,YAGbR,QAAQS,SAAS,WACjBT,QAAQC,KAAK,WAAY,YAElBN,KAAKe,KAAK,CAACH,UAAU,GACvBI,KAAKd,aAAae,WAClBC,QAAO,WACJb,QAAQc,YAAY,WACpBd,QAAQe,WAAW,uBAiGxB,CACHC,QAxBU,SAAShB,UACnBA,QAAUN,EAAEM,UAECiB,SAAS,iBAAiBC,QAEnCtB,UAAUuB,OAAO,eAAgB,IAAIC,MAAK,SAASC,KAAMC,IACrDtB,QAAQuB,OAAOF,KAAMC,OAI7BxB,aAAaL,OAAOO,QAAS,CAACF,aAAa0B,OAAOC,WAElDzB,QAAQ0B,GAAG5B,aAAa0B,OAAOC,UAAU,SAASE,EAAGC,OA/KzC,SAAS5B,eACqB,KAAnCA,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