public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js.map
{"version":3,"file":"SendInvitationModal.min.js","sources":["SendInvitationModal.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\njQuery.Class(\n\t'Calendar_SendInvitationModal_JS',\n\t{},\n\t{\n\t\t/**\n\t\t * Modal container\n\t\t */\n\t\tcontainer: false,\n\t\t/**\n\t\t * Open mail client\n\t\t */\n\t\topenMailClient() {\n\t\t\t$('.js-modal__save', this.container).on('click', (_) => {\n\t\t\t\tlet url = 'index.php?module=OSSMail&view=Compose';\n\t\t\t\tlet formData = this.container.find('form').serializeFormData();\n\t\t\t\tfor (let i in formData) {\n\t\t\t\t\tlet value = typeof formData[i] === 'object' ? formData[i].join(',') : formData[i];\n\t\t\t\t\turl += `&${i}=` + encodeURIComponent(value);\n\t\t\t\t}\n\t\t\t\tVtiger_Index_Js.sendMailWindow(url, true);\n\t\t\t\tapp.hideModalWindow(false, this.container.closest('.js-modal-container')[0].id);\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Register modal events\n\t\t * @param {jQuery} modalContainer\n\t\t */\n\t\tregisterEvents: function (modalContainer) {\n\t\t\tthis.container = modalContainer;\n\t\t\tthis.openMailClient();\n\t\t}\n\t}\n);\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","jQuery","Class","container","openMailClient","_this","$","on","url","formData","find","serializeFormData","i","value","join","concat","encodeURIComponent","Vtiger_Index_Js","sendMailWindow","app","hideModalWindow","closest","id","registerEvents","modalContainer"],"mappings":";;AAAA,kKACA,YAAY,CAAC,SAAAA,OAAAA,CAAAC,CAAA,CAAAD,CAAAA,yBAAAA,CAAAA,OAAAA,OAAA,CAAAE,UAAAA,EAAAA,OAAAA,MAAA,EAAAA,QAAAA,EAAAA,OAAAA,MAAA,CAAAC,QAAA,CAAA,SAAAF,CAAA,CAAA,CAAA,OAAA,OAAAA,CAAA,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