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: message_drawer_view_contacts_section_contacts.min.js.map
{"version":3,"file":"message_drawer_view_contacts_section_contacts.min.js","sources":["../src/message_drawer_view_contacts_section_contacts.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 * Controls the contacts section of the contacts page.\n *\n * @module core_message/message_drawer_view_contacts_section_contacts\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 'jquery',\n 'core/notification',\n 'core/pubsub',\n 'core/templates',\n 'core_message/message_repository',\n 'core_message/message_drawer_events',\n 'core_message/message_drawer_lazy_load_list'\n],\nfunction(\n $,\n Notification,\n PubSub,\n Templates,\n MessageRepository,\n Events,\n LazyLoadList\n) {\n\n var limit = 100;\n var initialOffset = 0;\n\n var SELECTORS = {\n BLOCK_ICON_CONTAINER: '[data-region=\"block-icon-container\"]',\n CONTACT: '[data-region=\"contact\"]',\n CONTENT_CONTAINER: '[data-region=\"contacts-content-container\"]'\n };\n\n var TEMPLATES = {\n CONTACTS_LIST: 'core_message/message_drawer_contacts_list'\n };\n\n /**\n * Find a contact element.\n *\n * @param {Object} body Contacts body container element.\n * @param {Number} userId User id of contact.\n * @return {Object} contact element.\n */\n var findContact = function(body, userId) {\n return body.find('[data-contact-user-id=\"' + userId + '\"]');\n };\n\n /**\n * Render the contacts in the content container.\n *\n * @param {Object} contentContainer Content container element.\n * @param {Array} contacts List of contacts.\n * @return {Object} jQuery promise\n */\n var render = function(contentContainer, contacts) {\n var formattedContacts = contacts.map(function(contact) {\n return $.extend(contact, {id: contact.userid});\n });\n return Templates.render(TEMPLATES.CONTACTS_LIST, {contacts: formattedContacts})\n .then(function(html) {\n contentContainer.append(html);\n return html;\n })\n .catch(Notification.exception);\n };\n\n /**\n * Load the user contacts and call the renderer.\n *\n * @param {Number} offset The offset to use for loading contacts\n * @return {Function} the callback.\n */\n var getLoadFunction = function(offset) {\n return function(listRoot, userId) {\n return MessageRepository.getContacts(userId, (limit + 1), offset)\n .then(function(result) {\n return result;\n })\n .then(function(contacts) {\n if (contacts.length > limit) {\n contacts.pop();\n } else {\n LazyLoadList.setLoadedAll(listRoot, true);\n }\n return contacts;\n })\n .then(function(contacts) {\n offset = offset + limit;\n return contacts;\n })\n .catch(Notification.exception);\n };\n };\n\n /**\n * Remove contact from view.\n *\n * @param {Object} body Contacts body container element.\n * @param {Number} userId Contact userid.\n */\n var removeContact = function(body, userId) {\n findContact(body, userId).remove();\n };\n\n /**\n * Show the contact has been blocked.\n *\n * @param {Object} body Contacts body container element.\n * @param {Number} userId Contact userid.\n */\n var showContactBlocked = function(body, userId) {\n var contact = findContact(body, userId);\n if (contact.length) {\n contact.find(SELECTORS.BLOCK_ICON_CONTAINER).removeClass('hidden');\n }\n };\n\n /**\n * Show the contact has been unblocked.\n *\n * @param {Object} body Contacts body container element.\n * @param {Number} userId Contact userid.\n */\n var showContactUnblocked = function(body, userId) {\n var contact = findContact(body, userId);\n if (contact.length) {\n contact.find(SELECTORS.BLOCK_ICON_CONTAINER).addClass('hidden');\n }\n };\n\n /**\n * Listen to and handle events for contacts.\n *\n * @param {Object} root Contacts section container element.\n */\n var registerEventListeners = function(root) {\n PubSub.subscribe(Events.CONTACT_ADDED, function(profile) {\n var listContentContainer = LazyLoadList.getContentContainer(root);\n render(listContentContainer, [profile]);\n LazyLoadList.hideEmptyMessage(root);\n LazyLoadList.showContent(root);\n });\n\n PubSub.subscribe(Events.CONTACT_REMOVED, function(userId) {\n removeContact(root, userId);\n var contacts = root.find(SELECTORS.CONTACT);\n\n if (!contacts.length) {\n LazyLoadList.hideContent(root);\n LazyLoadList.showEmptyMessage(root);\n }\n });\n\n PubSub.subscribe(Events.CONTACT_BLOCKED, function(userId) {\n showContactBlocked(root, userId);\n });\n\n PubSub.subscribe(Events.CONTACT_UNBLOCKED, function(userId) {\n showContactUnblocked(root, userId);\n });\n };\n\n /**\n * Setup the contacts section.\n *\n * @param {Object} root Contacts section container.\n */\n var show = function(root) {\n if (!root.attr('data-contacts-init')) {\n registerEventListeners(root);\n root.attr('data-contacts-init', true);\n }\n\n // The root element is already the lazy loaded list root.\n LazyLoadList.show(root, getLoadFunction(initialOffset), render);\n };\n\n return {\n show: show,\n };\n});\n"],"names":["define","$","Notification","PubSub","Templates","MessageRepository","Events","LazyLoadList","SELECTORS","TEMPLATES","findContact","body","userId","find","render","contentContainer","contacts","formattedContacts","map","contact","extend","id","userid","then","html","append","catch","exception","registerEventListeners","root","subscribe","CONTACT_ADDED","profile","listContentContainer","getContentContainer","hideEmptyMessage","showContent","CONTACT_REMOVED","remove","removeContact","length","hideContent","showEmptyMessage","CONTACT_BLOCKED","removeClass","showContactBlocked","CONTACT_UNBLOCKED","addClass","showContactUnblocked","show","offset","attr","listRoot","getContacts","limit","result","pop","setLoadedAll"],"mappings":";;;;;;;AAsBAA,oEACA,CACI,SACA,oBACA,cACA,iBACA,kCACA,qCACA,+CAEJ,SACIC,EACAC,aACAC,OACAC,UACAC,kBACAC,OACAC,kBAMIC,+BACsB,uCADtBA,kBAES,0BAITC,wBACe,4CAUfC,YAAc,SAASC,KAAMC,eACtBD,KAAKE,KAAK,0BAA4BD,OAAS,OAUtDE,OAAS,SAASC,iBAAkBC,cAChCC,kBAAoBD,SAASE,KAAI,SAASC,gBACnClB,EAAEmB,OAAOD,QAAS,CAACE,GAAIF,QAAQG,mBAEnClB,UAAUU,OAAOL,wBAAyB,CAACO,SAAUC,oBACvDM,MAAK,SAASC,aACXT,iBAAiBU,OAAOD,MACjBA,QAEVE,MAAMxB,aAAayB,YAwExBC,uBAAyB,SAASC,MAClC1B,OAAO2B,UAAUxB,OAAOyB,eAAe,SAASC,aACxCC,qBAAuB1B,aAAa2B,oBAAoBL,MAC5Df,OAAOmB,qBAAsB,CAACD,UAC9BzB,aAAa4B,iBAAiBN,MAC9BtB,aA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