public_html/layouts/basic/modules/Leads/resources/Detail.min.js.map
{"version":3,"file":"Detail.min.js","sources":["Detail.js"],"sourcesContent":["/*+***********************************************************************************\n * The contents of this file are subject to the vtiger CRM Public License Version 1.0\n * (\"License\"); You may not use this file except in compliance with the License\n * The Original Code is: vtiger CRM Open Source\n * The Initial Developer of the Original Code is vtiger.\n * Portions created by vtiger are Copyright (C) vtiger.\n * All Rights Reserved.\n * Contributor(s): YetiForce S.A.\n *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Leads_Detail_Js',\n\t{\n\t\t//cache will store the convert lead data(Model)\n\t\tcache: {},\n\t\t//Holds detail view instance\n\t\tdetailCurrentInstance: false,\n\t\t/*\n\t\t * function to trigger Convert Lead action\n\t\t * @param: Convert Lead url, currentElement.\n\t\t */\n\t\tconvertLead: function (convertLeadUrl, buttonElement) {\n\t\t\tvar instance = Leads_Detail_Js.detailCurrentInstance;\n\t\t\t//Initially clear the elements to overwtite earliear cache\n\t\t\tinstance.convertLeadContainer = false;\n\t\t\tinstance.convertLeadForm = false;\n\t\t\tinstance.convertLeadModules = false;\n\t\t\tif (jQuery.isEmptyObject(Leads_Detail_Js.cache)) {\n\t\t\t\tAppConnector.request(convertLeadUrl).done(\n\t\t\t\t\tfunction (data) {\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\tLeads_Detail_Js.cache = data;\n\t\t\t\t\t\t\tinstance.displayConvertLeadModel(data, buttonElement);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tfunction (error, err) {}\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tinstance.displayConvertLeadModel(Leads_Detail_Js.cache, buttonElement);\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\t//Contains the convert lead form\n\t\tconvertLeadForm: false,\n\t\t//contains the convert lead container\n\t\tconvertLeadContainer: false,\n\t\t//contains all the checkbox elements of modules\n\t\tconvertLeadModules: false,\n\t\t//constructor\n\t\tinit: function () {\n\t\t\tthis._super();\n\t\t\tLeads_Detail_Js.detailCurrentInstance = this;\n\t\t},\n\t\t/*\n\t\t * function to disable the Convert Lead button\n\t\t */\n\t\tdisableConvertLeadButton: function (button) {\n\t\t\tjQuery(button).attr('disabled', 'disabled');\n\t\t},\n\t\t/*\n\t\t * function to enable the Convert Lead button\n\t\t */\n\t\tenableConvertLeadButton: function (button) {\n\t\t\tjQuery(button).removeAttr('disabled');\n\t\t},\n\t\t/*\n\t\t * function to enable all the input and textarea elements\n\t\t */\n\t\tremoveDisableAttr: function (moduleBlock) {\n\t\t\tmoduleBlock.find('input,textarea,select').removeAttr('disabled');\n\t\t},\n\t\t/*\n\t\t * function to disable all the input and textarea elements\n\t\t */\n\t\taddDisableAttr: function (moduleBlock) {\n\t\t\tmoduleBlock.find('input,textarea,select').attr('disabled', 'disabled');\n\t\t},\n\t\t/*\n\t\t * function to display the convert lead model\n\t\t * @param: data used to show the model, currentElement.\n\t\t */\n\t\tdisplayConvertLeadModel: function (data, buttonElement) {\n\t\t\tvar instance = this;\n\t\t\tvar errorElement = jQuery(data).find('#convertLeadError');\n\t\t\tif (errorElement.length != '0') {\n\t\t\t\tvar errorMsg = errorElement.val();\n\t\t\t\tvar errorTitle = jQuery(data).find('#convertLeadErrorTitle').val();\n\t\t\t\tvar params = {\n\t\t\t\t\ttitle: errorTitle,\n\t\t\t\t\ttext: errorMsg,\n\t\t\t\t\taddclass: 'convertLeadNotify',\n\t\t\t\t\twidth: '35%',\n\t\t\t\t\ttype: 'error',\n\t\t\t\t\tpnotify_after_open: function () {\n\t\t\t\t\t\tinstance.disableConvertLeadButton(buttonElement);\n\t\t\t\t\t},\n\t\t\t\t\tpnotify_after_close: function () {\n\t\t\t\t\t\tinstance.enableConvertLeadButton(buttonElement);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tapp.showNotify(params);\n\t\t\t} else {\n\t\t\t\tvar callBackFunction = function (data) {\n\t\t\t\t\tvar editViewObj = Vtiger_Edit_Js.getInstance();\n\t\t\t\t\tjQuery(data).find('.fieldInfo').collapse({\n\t\t\t\t\t\tparent: '#leadAccordion',\n\t\t\t\t\t\ttoggle: false\n\t\t\t\t\t});\n\t\t\t\t\teditViewObj.registerBasicEvents(data);\n\t\t\t\t\tvar checkBoxElements = instance.getConvertLeadModules();\n\t\t\t\t\tjQuery.each(checkBoxElements, function (index, element) {\n\t\t\t\t\t\tinstance.checkingModuleSelection(element);\n\t\t\t\t\t});\n\t\t\t\t\tinstance.registerForReferenceField();\n\t\t\t\t\tinstance.registerConvertLeadEvents();\n\t\t\t\t\tinstance.getConvertLeadForm().validationEngine(app.validationEngineOptions);\n\t\t\t\t\tinstance.registerConvertLeadSubmit();\n\t\t\t\t};\n\t\t\t\tapp.showModalWindow(\n\t\t\t\t\tdata,\n\t\t\t\t\tfunction (data) {\n\t\t\t\t\t\tif (typeof callBackFunction == 'function') {\n\t\t\t\t\t\t\tcallBackFunction(data);\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t'text-align': 'left'\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t}\n\t\t},\n\t\t/*\n\t\t * function to check which module is selected\n\t\t * to disable or enable all the elements with in the block\n\t\t */\n\t\tcheckingModuleSelection: function (element) {\n\t\t\tvar instance = this;\n\t\t\tvar module = jQuery(element).val();\n\t\t\tvar moduleBlock = jQuery(element)\n\t\t\t\t.closest('.convertLeadModules')\n\t\t\t\t.find('#' + module + '_FieldInfo');\n\t\t\tif (jQuery(element).is(':checked')) {\n\t\t\t\tinstance.removeDisableAttr(moduleBlock);\n\t\t\t} else {\n\t\t\t\tinstance.addDisableAttr(moduleBlock);\n\t\t\t}\n\t\t},\n\t\tregisterForReferenceField: function () {\n\t\t\tvar container = this.getConvertLeadContainer();\n\t\t\tvar referenceField = jQuery('.reference', container);\n\t\t\tif (referenceField.length > 0) {\n\t\t\t\tjQuery('#AccountsModule').attr('readonly', 'readonly');\n\t\t\t}\n\t\t},\n\t\t/*\n\t\t * function to register Convert Lead Events\n\t\t */\n\t\tregisterConvertLeadEvents: function () {\n\t\t\tvar container = this.getConvertLeadContainer();\n\t\t\tvar instance = this;\n\t\t\t//Trigger Event to change the icon while shown and hidden the accordion body\n\t\t\tcontainer\n\t\t\t\t.on('hide.bs.collapse', '.js-collapse ', function (e) {\n\t\t\t\t\t$(e.currentTarget)\n\t\t\t\t\t\t.closest('.convertLeadModules')\n\t\t\t\t\t\t.find('.fas')\n\t\t\t\t\t\t.removeClass('fa-chevron-up')\n\t\t\t\t\t\t.addClass('fa-chevron-down');\n\t\t\t\t})\n\t\t\t\t.on('show.bs.collapse', '.js-collapse ', function (e) {\n\t\t\t\t\t$(e.currentTarget)\n\t\t\t\t\t\t.closest('.convertLeadModules')\n\t\t\t\t\t\t.find('.fas')\n\t\t\t\t\t\t.removeClass('fa-chevron-down')\n\t\t\t\t\t\t.addClass('fa-chevron-up');\n\t\t\t\t});\n\n\t\t\t//Trigger Event on click of Transfer related records modules\n\t\t\tcontainer.on('click', '.transferModule', function (e) {\n\t\t\t\tvar currentTarget = jQuery(e.currentTarget);\n\t\t\t\tvar module = currentTarget.val();\n\t\t\t\tvar moduleBlock = jQuery('#' + module + '_FieldInfo');\n\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\tjQuery('#' + module + 'Module').prop('checked', true);\n\t\t\t\t\tmoduleBlock.collapse('show');\n\t\t\t\t\tinstance.removeDisableAttr(moduleBlock);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t//Trigger Event on click of the Modules selection to convert the lead\n\t\t\tcontainer.on('click', '.convertLeadModuleSelection', function (e) {\n\t\t\t\tvar currentTarget = jQuery(e.currentTarget);\n\t\t\t\tvar currentModuleName = currentTarget.val();\n\t\t\t\tvar moduleBlock = currentTarget.closest('.convertLeadModules').find('#' + currentModuleName + '_FieldInfo');\n\t\t\t\tvar currentTransferModuleElement = jQuery('#transfer' + currentModuleName);\n\t\t\t\tvar otherTransferModuleElement = jQuery('input[name=\"transferModule\"]').not(currentTransferModuleElement);\n\t\t\t\tvar otherTransferModuleValue = jQuery(otherTransferModuleElement).val();\n\t\t\t\tvar otherModuleElement = jQuery('#' + otherTransferModuleValue + 'Module');\n\n\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\tmoduleBlock.collapse('show');\n\t\t\t\t\tinstance.removeDisableAttr(moduleBlock);\n\t\t\t\t\tif (!otherModuleElement.is(':checked')) {\n\t\t\t\t\t\tjQuery(currentTransferModuleElement).prop('checked', true);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmoduleBlock.collapse('hide');\n\t\t\t\t\tinstance.addDisableAttr(moduleBlock);\n\t\t\t\t\tjQuery(currentTransferModuleElement).prop('checked', false);\n\t\t\t\t\tif (otherModuleElement.is(':checked')) {\n\t\t\t\t\t\tjQuery(otherTransferModuleElement).prop('checked', true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\te.stopImmediatePropagation();\n\t\t\t});\n\t\t},\n\t\t/*\n\t\t * function to register Convert Lead Submit Event\n\t\t */\n\t\tregisterConvertLeadSubmit: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar formElement = this.getConvertLeadForm();\n\n\t\t\tformElement.on('jqv.form.validating', function (e) {\n\t\t\t\tvar jQv = jQuery(e.currentTarget).data('jqv');\n\t\t\t\t//Remove the earlier validated fields from history so that it wont count disabled fields\n\t\t\t\tjQv.InvalidFields = [];\n\t\t\t});\n\n\t\t\t//Convert Lead Form Submission\n\t\t\tformElement.on('submit', function (e) {\n\t\t\t\tvar convertLeadModuleElements = thisInstance.getConvertLeadModules();\n\t\t\t\tvar moduleArray = [];\n\t\t\t\tvar accountModel = formElement.find('#AccountsModule');\n\n\t\t\t\t//If the validation fails in the hidden Block, we should show that Block with error.\n\t\t\t\tvar invalidFields = formElement.data('jqv').InvalidFields;\n\t\t\t\tif (invalidFields.length > 0) {\n\t\t\t\t\tvar fieldElement = invalidFields[0];\n\t\t\t\t\tvar moduleBlock = jQuery(fieldElement).closest('.js-collapse');\n\t\t\t\t\tmoduleBlock.collapse('show');\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tjQuery.each(convertLeadModuleElements, function (index, element) {\n\t\t\t\t\tif (jQuery(element).is(':checked')) {\n\t\t\t\t\t\tmoduleArray.push(jQuery(element).val());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tformElement.find('input[name=\"modules\"]').val(JSON.stringify(moduleArray));\n\n\t\t\t\tvar organizationElement = accountModel.length;\n\t\t\t\tif (organizationElement != '0') {\n\t\t\t\t\tif (jQuery.inArray('Accounts', moduleArray) == -1) {\n\t\t\t\t\t\tapp.showAlert(app.vtranslate('JS_SELECT_ORGANIZATION'));\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/*\n\t\t * function to get all the checkboxes which are representing the modules selection\n\t\t */\n\t\tgetConvertLeadModules: function () {\n\t\t\tvar container = this.getConvertLeadContainer();\n\t\t\tif (this.convertLeadModules == false) {\n\t\t\t\tthis.convertLeadModules = jQuery('.convertLeadModuleSelection', container);\n\t\t\t}\n\t\t\treturn this.convertLeadModules;\n\t\t},\n\t\t/*\n\t\t * function to get Convert Lead Form\n\t\t */\n\t\tgetConvertLeadForm: function () {\n\t\t\tif (this.convertLeadForm == false) {\n\t\t\t\tthis.convertLeadForm = jQuery('#convertLeadForm');\n\t\t\t}\n\t\t\treturn this.convertLeadForm;\n\t\t},\n\t\t/*\n\t\t * function to get Convert Lead Container\n\t\t */\n\t\tgetConvertLeadContainer: function () {\n\t\t\tif (this.convertLeadContainer == false) {\n\t\t\t\tthis.convertLeadContainer = jQuery('#leadAccordion');\n\t\t\t}\n\t\t\treturn this.convertLeadContainer;\n\t\t},\n\t\tsaveFieldValues: function (fieldDetailList) {\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\tvar recordId = this.getRecordId();\n\n\t\t\tvar data = {};\n\t\t\tif (typeof fieldDetailList !== 'undefined') {\n\t\t\t\tdata = fieldDetailList;\n\t\t\t}\n\n\t\t\tdata['record'] = recordId;\n\t\t\tdata['module'] = app.getModuleName();\n\t\t\tdata['action'] = 'SaveAjax';\n\n\t\t\tAppConnector.request(data).done(function (reponseData) {\n\t\t\t\taDeferred.resolve(reponseData);\n\t\t\t});\n\t\t\tif (fieldDetailList && fieldDetailList.field == 'leadstatus') {\n\t\t\t\tlet btn = jQuery('.btn-convertLead');\n\t\t\t\tlet conversionAvailableStatus = jQuery('#conversion_available_status').val();\n\t\t\t\tif (conversionAvailableStatus) {\n\t\t\t\t\tlet status = JSON.parse(conversionAvailableStatus);\n\t\t\t\t\tif (status.length === 0 || jQuery.inArray(fieldDetailList.value, status) != -1) {\n\t\t\t\t\t\tbtn.removeClass('d-none');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbtn.addClass('d-none');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tbtn.addClass('d-none');\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\tupdateConvertLeadvalue: function () {\n\t\t\tvar thisInstance = Vtiger_Detail_Js.getInstance();\n\t\t\tvar detailContentsHolder = thisInstance.getContentHolder();\n\t\t\tdetailContentsHolder.on(thisInstance.fieldUpdatedEvent, 'input,select', function (e, params) {\n\t\t\t\tvar elem = jQuery(e.currentTarget);\n\t\t\t\tvar fieldName = elem.attr('name');\n\t\t\t\tvar ajaxnewValue = params['new'];\n\n\t\t\t\tif (!jQuery.isEmptyObject(Leads_Detail_Js.cache)) {\n\t\t\t\t\tvar sampleCache = jQuery(Leads_Detail_Js.cache);\n\t\t\t\t\tvar contextElem = sampleCache.find('[name=\"' + fieldName + '\"]');\n\n\t\t\t\t\tif (elem.is('select')) {\n\t\t\t\t\t\tvar oldvalue = contextElem.val();\n\t\t\t\t\t\tcontextElem.find('option[value=\"' + oldvalue + '\"]').removeAttr('selected');\n\t\t\t\t\t\tcontextElem.find('option[value=\"' + ajaxnewValue + '\"]').attr('selected', 'selected');\n\t\t\t\t\t\tcontextElem.trigger('change');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcontextElem.attr('value', ajaxnewValue);\n\t\t\t\t\t}\n\t\t\t\t\tLeads_Detail_Js.cache = sampleCache;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t\tthis.updateConvertLeadvalue();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","cache","detailCurrentInstance","convertLead","convertLeadUrl","buttonElement","instance","Leads_Detail_Js","convertLeadContainer","convertLeadForm","convertLeadModules","jQuery","isEmptyObject","AppConnector","request","done","data","displayConvertLeadModel","init","_super","disableConvertLeadButton","button","attr","enableConvertLeadButton","removeAttr","removeDisableAttr","moduleBlock","find","addDisableAttr","errorElement","length","errorMsg","val","errorTitle","params","title","text","addclass","width","type","pnotify_after_open","pnotify_after_close","app","showNotify","callBackFunction","editViewObj","Vtiger_Edit_Js","getInstance","collapse","parent","toggle","registerBasicEvents","checkBoxElements","getConvertLeadModules","each","index","element","checkingModuleSelection","registerForReferenceField","registerConvertLeadEvents","getConvertLeadForm","validationEngine","validationEngineOptions","registerConvertLeadSubmit","showModalWindow","\"text-align\"","module","closest","is","container","getConvertLeadContainer","referenceField","on","e","$","currentTarget","removeClass","addClass","prop","currentModuleName","currentTransferModuleElement","otherTransferModuleElement","not","otherTransferModuleValue","otherModuleElement","stopImmediatePropagation","thisInstance","formElement","jQv","InvalidFields","convertLeadModuleElements","moduleArray","accountModel","invalidFields","fieldElement","preventDefault","push","JSON","stringify","organizationElement","inArray","showAlert","vtranslate","saveFieldValues","fieldDetailList","aDeferred","Deferred","recordId","getRecordId","record","getModuleName","action","reponseData","resolve","field","btn","conversionAvailableStatus","status","parse","value","promise","updateConvertLeadvalue","detailContentsHolder","getContentHolder","fieldUpdatedEvent","elem","fieldName","ajaxnewValue","sampleCache","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