diff --git a/public_html/install/tpl/resources/Index.min.js b/public_html/install/tpl/resources/Index.min.js
index b5769d2c039c..a7273e01c0b9 100644
--- a/public_html/install/tpl/resources/Index.min.js
+++ b/public_html/install/tpl/resources/Index.min.js
@@ -8,5 +8,5 @@
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce S.A.
- ************************************************************************************/jQuery.Class("Install_Index_Js",{fieldsCached:["db_server","db_username","db_name","currency_name","firstname","lastname","admin_email","dateformat","default_timezone"],checkUsername:function checkUsername(field){var fieldValue=field.val(),result=/^[a-zA-Z0-9_.@-]{3,64}$/.test(fieldValue);if(!result)return app.vtranslate("JS_CONTAINS_ILLEGAL_CHARACTERS");var logins=JSON.parse($("#not_allowed_logins").val());if(-1!==$.inArray(fieldValue,logins))return app.vtranslate("LBL_INVALID_USERNAME_ERROR")},checkDbUsername:function checkDbUsername(field){var fieldValue=field.val(),result=/^[_a-zA-Z0-9.,:-]+$/.test(fieldValue);if(!result)return app.vtranslate("JS_CONTAINS_ILLEGAL_CHARACTERS")},checkDbName:function checkDbName(field){var fieldValue=field.val(),result=/^[^\\/?%*:|\\\"<>.\s]{1,64}$/.test(fieldValue);if(!result)return app.vtranslate("JS_CONTAINS_ILLEGAL_CHARACTERS")}},{registerEventForStep1:function registerEventForStep1(){jQuery(".bt_install").on("click",function(){jQuery("input[name=\"mode\"]").val("step2"),jQuery("form[name=\"step1\"]").submit();}),jQuery(".bt_migrate").on("click",function(){jQuery("input[name=\"mode\"]").val("mStep0"),jQuery("form[name=\"step1\"]").submit();});},registerEventForStep2:function registerEventForStep2(){var modalContainer=$(".js-license-modal");modalContainer.on("shown.bs.modal",function(){app.registerDataTables(modalContainer.find(".js-data-table"),{lengthMenu:[[10,25,50,-1],[10,25,50,app.vtranslate("JS_ALL")]],retrieve:!0});});},showBuyModal:function showBuyModal(event){$.get("Install.php?mode=showBuyModal&product=".concat($(event.currentTarget).data("product"))).done(function(data){app.showModalWindow(data,"",function(modalContainer){new window.Settings_YetiForce_Shop_Js().registerBuyModalEvents(modalContainer);});});},registerEventForStepChooseHost:function registerEventForStepChooseHost(){var _this=this;$(".js-buy-modal").on("click",this.showBuyModal),$(".js-product-modal").on("click",function(e){$.get("Install.php?mode=showProductModal&product=".concat($(e.currentTarget).data("product"))).done(function(data){app.showModalWindow(data,"",function(modalContainer){modalContainer.find(".js-modal__save").on("click",function(){app.hideModalWindow(),_this.showBuyModal(e);});});});});},registerEventForStep3:function registerEventForStep3(){$("#recheck").on("click",function(){window.location.reload();});var elements=jQuery(".js-wrong-status");$(".js-confirm").on("submit",function(e){0pass.length?(jQuery("#passwordError").html(app.vtranslate("LBL_PASS_TO_SHORT")),error=!0):32.\s]{1,64}$/.test(fieldValue);if(!result)return app.vtranslate("JS_CONTAINS_ILLEGAL_CHARACTERS")}},{registerEventForStep1:function registerEventForStep1(){jQuery(".bt_install").on("click",function(){jQuery("input[name=\"mode\"]").val("step2"),jQuery("form[name=\"step1\"]").submit();}),jQuery(".bt_migrate").on("click",function(){jQuery("input[name=\"mode\"]").val("mStep0"),jQuery("form[name=\"step1\"]").submit();});},registerEventForStep2:function registerEventForStep2(){var modalContainer=$(".js-license-modal");modalContainer.on("shown.bs.modal",function(){app.registerDataTables(modalContainer.find(".js-data-table"),{lengthMenu:[[10,25,50,-1],[10,25,50,app.vtranslate("JS_ALL")]],retrieve:!0});});},registerEventForStep3:function registerEventForStep3(){$("#recheck").on("click",function(){window.location.reload();});var elements=jQuery(".js-wrong-status");$(".js-confirm").on("submit",function(e){0pass.length?(jQuery("#passwordError").html(app.vtranslate("LBL_PASS_TO_SHORT")),error=!0):32.\\s]{1,64}$/,\n\t\t\t\tresult = negativeRegex.test(fieldValue);\n\t\t\tif (!result) {\n\t\t\t\treturn app.vtranslate('JS_CONTAINS_ILLEGAL_CHARACTERS');\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tregisterEventForStep1: function () {\n\t\t\tjQuery('.bt_install').on('click', function (e) {\n\t\t\t\tjQuery('input[name=\"mode\"]').val('step2');\n\t\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t\t});\n\t\t\tjQuery('.bt_migrate').on('click', function (e) {\n\t\t\t\tjQuery('input[name=\"mode\"]').val('mStep0');\n\t\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep2: function () {\n\t\t\tlet modalContainer = $('.js-license-modal');\n\t\t\tmodalContainer.on('shown.bs.modal', function (e) {\n\t\t\t\tapp.registerDataTables(modalContainer.find('.js-data-table'), {\n\t\t\t\t\tlengthMenu: [\n\t\t\t\t\t\t[10, 25, 50, -1],\n\t\t\t\t\t\t[10, 25, 50, app.vtranslate('JS_ALL')]\n\t\t\t\t\t],\n\t\t\t\t\tretrieve: true\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tshowBuyModal(event) {\n\t\t\t$.get(`Install.php?mode=showBuyModal&product=${$(event.currentTarget).data('product')}`).done((data) => {\n\t\t\t\tapp.showModalWindow(data, '', (modalContainer) => {\n\t\t\t\t\tnew window.Settings_YetiForce_Shop_Js().registerBuyModalEvents(modalContainer);\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tregisterEventForStepChooseHost() {\n\t\t\t$('.js-buy-modal').on('click', this.showBuyModal);\n\t\t\t$('.js-product-modal').on('click', (e) => {\n\t\t\t\t$.get(`Install.php?mode=showProductModal&product=${$(e.currentTarget).data('product')}`).done((data) => {\n\t\t\t\t\tapp.showModalWindow(data, '', (modalContainer) => {\n\t\t\t\t\t\tmodalContainer.find('.js-modal__save').on('click', (_) => {\n\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\tthis.showBuyModal(e);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep3: function () {\n\t\t\t$('#recheck').on('click', function () {\n\t\t\t\twindow.location.reload();\n\t\t\t});\n\t\t\tlet elements = jQuery('.js-wrong-status');\n\t\t\t$('.js-confirm').on('submit', function (e) {\n\t\t\t\tif (elements.length > 0) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\ticon: 'fas fa-exclamation-triangle',\n\t\t\t\t\t\ttext: app.vtranslate('LBL_SETTINGS_WARNING'),\n\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\telements = false;\n\t\t\t\t\t\t\t$('form[name=\"step3\"]').trigger('submit');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tcheckPwdEvent: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tjQuery('input[name=\"password\"]').on('blur', function () {\n\t\t\t\tthisInstance.checkPwd(jQuery(this).val());\n\t\t\t});\n\t\t},\n\t\tcheckPwd: function (pass) {\n\t\t\tlet error = false;\n\n\t\t\tif (pass.length < 8) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_TO_SHORT'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.length > 32) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_TO_LONG'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/\\d/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_NO_NUM'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/[A-Z]/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_LACK_OF_CAPITAL_LETTERS'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/[a-z]/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_LACK_OF_LOWERCASE_LETTERS'));\n\t\t\t\terror = true;\n\t\t\t}\n\n\t\t\treturn error;\n\t\t},\n\t\tregisterEventForStep4: function () {\n\t\t\tvar config = JSON.parse(localStorage.getItem('yetiforce_install'));\n\t\t\tInstall_Index_Js.fieldsCached.forEach(function (field) {\n\t\t\t\tif (config && typeof config[field] !== 'undefined') {\n\t\t\t\t\tvar formField = jQuery('[name=\"' + field + '\"]');\n\t\t\t\t\tif ('SELECT' == jQuery(formField).prop('tagName')) {\n\t\t\t\t\t\tjQuery(formField).val(config[field]);\n\t\t\t\t\t\tjQuery(formField).select2('destroy');\n\t\t\t\t\t\tApp.Fields.Picklist.showSelect2ElementView(jQuery(formField));\n\t\t\t\t\t} else if ('INPUT' == jQuery(formField).prop('tagName') && 'checkbox' == jQuery(formField).attr('type')) {\n\t\t\t\t\t\tif (true == config[field]) {\n\t\t\t\t\t\t\tjQuery(formField).prop('checked', true);\n\t\t\t\t\t\t\tjQuery('.config-table tr.d-none').removeClass('d-none');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery(formField).val(config[field]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfunction clearPasswordError() {\n\t\t\t\tjQuery('#passwordError').html('');\n\t\t\t}\n\n\t\t\tfunction setPasswordError() {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_REENTER_ERROR'));\n\t\t\t}\n\n\t\t\tjQuery('input[name=\"retype_password\"]').on('blur', function (e) {\n\t\t\t\tvar element = jQuery(e.currentTarget);\n\t\t\t\tvar password = jQuery('input[name=\"password\"]').val();\n\t\t\t\tif (password !== element.val()) {\n\t\t\t\t\tsetPasswordError();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tjQuery('input[name=\"password\"]').on('blur', function (e) {\n\t\t\t\tvar retypePassword = jQuery('input[name=\"retype_password\"]');\n\t\t\t\tif (retypePassword.val() != '' && retypePassword.val() !== jQuery(e.currentTarget).val()) {\n\t\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_REENTER_ERROR'));\n\t\t\t\t} else {\n\t\t\t\t\tclearPasswordError();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tjQuery('input[name=\"retype_password\"]').on('keypress', function (e) {\n\t\t\t\tclearPasswordError();\n\t\t\t});\n\t\t\t$('form[name=\"step4\"]').on('submit', (e) => {\n\t\t\t\tif (this.checkForm()) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t} else {\n\t\t\t\t\t$('form[name=\"step4\"]').off('submit');\n\t\t\t\t\tthis.submitForm();\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.checkPwdEvent();\n\t\t},\n\t\tregisterEventForStep5: function () {\n\t\t\tjQuery('input[name=\"step6\"]').on('click', function () {\n\t\t\t\tvar error = jQuery('#errorMessage');\n\t\t\t\tif (error.length) {\n\t\t\t\t\tapp.showAlert(app.vtranslate('LBL_RESOLVE_ERROR'));\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tjQuery('#progressIndicator').removeClass('d-none');\n\t\t\t\t\tjQuery('form[name=\"step5\"]').submit().hide();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep6: function () {\n\t\t\tvar form = $('form[name=\"step6\"]');\n\t\t\tform.on('submit', function () {\n\t\t\t\tif (form.validationEngine('validate')) {\n\t\t\t\t\tform.submit();\n\t\t\t\t\t$('.js-submit').attr('disabled', true);\n\t\t\t\t} else {\n\t\t\t\t\tapp.formAlignmentAfterValidation(form);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEventForMigration: function () {\n\t\t\tvar step = jQuery('input[name=\"mode\"]').val();\n\t\t\tif (step == 'mStep3') {\n\t\t\t\tjQuery('form').on('submit', function () {\n\t\t\t\t\tjQuery('#progressIndicator').show();\n\t\t\t\t\tjQuery('#mainContainer').hide();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tcheckForm() {\n\t\t\tlet error = false;\n\t\t\tif (jQuery('#passwordError').html().trim()) {\n\t\t\t\terror = true;\n\t\t\t}\n\t\t\tif (this.checkPwd(jQuery('input[name=\"password\"]').val())) {\n\t\t\t\terror = true;\n\t\t\t}\n\t\t\treturn error;\n\t\t},\n\t\tsubmitForm() {\n\t\t\twindow.localStorage.setItem(\n\t\t\t\t'yetiforce_install',\n\t\t\t\tJSON.stringify({\n\t\t\t\t\tdb_server: document.step4.db_server.value,\n\t\t\t\t\tdb_username: document.step4.db_username.value,\n\t\t\t\t\tdb_name: document.step4.db_name.value,\n\t\t\t\t\tcurrency_name: document.step4.currency_name.value,\n\t\t\t\t\tfirstname: document.step4.firstname.value,\n\t\t\t\t\tlastname: document.step4.lastname.value,\n\t\t\t\t\tadmin_email: document.step4.admin_email.value,\n\t\t\t\t\tdateformat: document.step4.dateformat.value,\n\t\t\t\t\tdefault_timezone: document.step4.default_timezone.value\n\t\t\t\t})\n\t\t\t);\n\t\t},\n\t\tchangeLanguage: function (e) {\n\t\t\tjQuery('input[name=\"mode\"]').val('step1');\n\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tconst form = $('form');\n\t\t\tjQuery('input[name=\"back\"]').on('click', function () {\n\t\t\t\twindow.history.back();\n\t\t\t});\n\t\t\tform.validationEngine(app.validationEngineOptions);\n\t\t\tthis.registerEventForStep1();\n\t\t\tthis.registerEventForStep2();\n\t\t\tthis.registerEventForStep3();\n\t\t\tthis.registerEventForStep4();\n\t\t\tthis.registerEventForStep5();\n\t\t\tthis.registerEventForStep6();\n\t\t\tthis.registerEventForMigration();\n\t\t\tif (form.attr('name') === 'step-stepChooseHost') {\n\t\t\t\tthis.registerEventForStepChooseHost();\n\t\t\t}\n\t\t\t$('select[name=\"lang\"]').on('change', this.changeLanguage);\n\t\t}\n\t}\n);\njQuery(document).ready(function () {\n\tvar install = new Install_Index_Js();\n\tinstall.registerEvents();\n});\n"],"names":["jQuery","Class","fieldsCached","checkUsername","field","fieldValue","val","result","test","app","vtranslate","JSON","parse","$","inArray","logins","checkDbUsername","checkDbName","registerEventForStep1","on","submit","registerEventForStep2","modalContainer","registerDataTables","find","lengthMenu","retrieve","showBuyModal","event","get","currentTarget","data","done","showModalWindow","Settings_YetiForce_Shop_Js","registerBuyModalEvents","registerEventForStepChooseHost","e","hideModalWindow","registerEventForStep3","window","location","reload","elements","length","preventDefault","showConfirmModal","icon","text","confirmedCallback","trigger","checkPwdEvent","thisInstance","checkPwd","pass","error","html","search","registerEventForStep4","clearPasswordError","config","localStorage","getItem","Install_Index_Js","forEach","formField","prop","select2","App","Fields","Picklist","showSelect2ElementView","attr","removeClass","element","password","setPasswordError","retypePassword","checkForm","off","submitForm","registerEventForStep5","showAlert","hide","registerEventForStep6","form","validationEngine","formAlignmentAfterValidation","registerEventForMigration","step","show","trim","setItem","stringify","db_server","document","step4","value","db_username","db_name","currency_name","firstname","lastname","admin_email","dateformat","default_timezone","changeLanguage","registerEvents","history","back","validationEngineOptions","ready","install"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAEAA,MAAM,CAACC,KAAP,CACC,kBADD,CAEC,CACCC,YAAY,CAAE,CACb,WADa,CAEb,aAFa,CAGb,SAHa,CAIb,eAJa,CAKb,WALa,CAMb,UANa,CAOb,aAPa,CAQb,YARa,CASb,kBATa,CADf,CAYCC,aAAa,CAAE,uBAAUC,KAAV,CAAoC,CAClD,IAAIC,UAAU,CAAGD,KAAK,CAACE,GAAN,EAAjB,CAECC,MAAM,CADU,yBACP,CAAcC,IAAd,CAAmBH,UAAnB,CAFV,CAGA,GAAI,CAACE,MAAL,CACC,OAAOE,GAAG,CAACC,UAAJ,CAAe,gCAAf,CAAP,CAED,IAAU,MAAA,CAAGC,IAAI,CAACC,KAAL,CAAWC,CAAC,CAAC,qBAAD,CAAD,CAAyBP,GAAzB,EAAX,CAAb,CACA,GAAsC,CAAC,CAAnC,GAAAO,CAAC,CAACC,OAAF,CAAUT,UAAV,CAAsBU,MAAtB,CAAJ,CACC,OAAON,GAAG,CAACC,UAAJ,CAAe,4BAAf,CAER,CAvBF,CAwBCM,eAAe,CAAE,yBAAUZ,KAAV,CAAoC,CACpD,IA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AACqG,uBAA1B,CAL2B,CAM3B,IAAK5F,CAAAA,qBAAL,EAN2B,CAO3B,IAAA,CAAKG,qBAAL,EAP2B,CAQ3B,KAAKkB,qBAAL,EAR2B,CAS3B,IAAKmB,CAAAA,qBAAL,EAT2B,CAU3B,IAAA,CAAKuB,qBAAL,EAV2B,CAW3B,KAAKG,qBAAL,EAX2B,CAY3B,IAAKI,CAAAA,yBAAL,EAZ2B,CAaD,qBAAtB,GAAAH,IAAI,CAACb,IAAL,CAAU,MAAV,CAbuB,EAc1B,IAAKpC,CAAAA,8BAAL,EAd0B,CAgB3BvB,CAAC,CAAC,uBAAD,CAAD,CAAyBM,EAAzB,CAA4B,QAA5B,CAAsC,IAAA,CAAKuF,cAA3C,EACA,CApOF,CA3CD,EAkRA1G,MAAM,CAAC+F,QAAD,CAAN,CAAiBgB,KAAjB,CAAuB,UAAY,CAClC,IAAW,OAAA,CAAG,IAAd,gBAAA,CACAC,OAAO,CAACL,cAAR,GACA,CAHD;;"}
\ No newline at end of file
+{"version":3,"file":"Index.min.js","sources":["Index.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\njQuery.Class(\n\t'Install_Index_Js',\n\t{\n\t\tfieldsCached: [\n\t\t\t'db_server',\n\t\t\t'db_username',\n\t\t\t'db_name',\n\t\t\t'currency_name',\n\t\t\t'firstname',\n\t\t\t'lastname',\n\t\t\t'admin_email',\n\t\t\t'dateformat',\n\t\t\t'default_timezone'\n\t\t],\n\t\tcheckUsername: function (field, rules, i, options) {\n\t\t\tlet fieldValue = field.val(),\n\t\t\t\tnegativeRegex = /^[a-zA-Z0-9_.@-]{3,64}$/,\n\t\t\t\tresult = negativeRegex.test(fieldValue);\n\t\t\tif (!result) {\n\t\t\t\treturn app.vtranslate('JS_CONTAINS_ILLEGAL_CHARACTERS');\n\t\t\t}\n\t\t\tlet logins = JSON.parse($('#not_allowed_logins').val());\n\t\t\tif ($.inArray(fieldValue, logins) !== -1) {\n\t\t\t\treturn app.vtranslate('LBL_INVALID_USERNAME_ERROR');\n\t\t\t}\n\t\t},\n\t\tcheckDbUsername: function (field, rules, i, options) {\n\t\t\tlet fieldValue = field.val(),\n\t\t\t\tnegativeRegex = /^[_a-zA-Z0-9.,:-]+$/,\n\t\t\t\tresult = negativeRegex.test(fieldValue);\n\t\t\tif (!result) {\n\t\t\t\treturn app.vtranslate('JS_CONTAINS_ILLEGAL_CHARACTERS');\n\t\t\t}\n\t\t},\n\t\tcheckDbName: function (field, rules, i, options) {\n\t\t\tlet fieldValue = field.val(),\n\t\t\t\tnegativeRegex = /^[^\\\\/?%*:|\\\\\\\"<>.\\s]{1,64}$/,\n\t\t\t\tresult = negativeRegex.test(fieldValue);\n\t\t\tif (!result) {\n\t\t\t\treturn app.vtranslate('JS_CONTAINS_ILLEGAL_CHARACTERS');\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tregisterEventForStep1: function () {\n\t\t\tjQuery('.bt_install').on('click', function (e) {\n\t\t\t\tjQuery('input[name=\"mode\"]').val('step2');\n\t\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t\t});\n\t\t\tjQuery('.bt_migrate').on('click', function (e) {\n\t\t\t\tjQuery('input[name=\"mode\"]').val('mStep0');\n\t\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep2: function () {\n\t\t\tlet modalContainer = $('.js-license-modal');\n\t\t\tmodalContainer.on('shown.bs.modal', function (e) {\n\t\t\t\tapp.registerDataTables(modalContainer.find('.js-data-table'), {\n\t\t\t\t\tlengthMenu: [\n\t\t\t\t\t\t[10, 25, 50, -1],\n\t\t\t\t\t\t[10, 25, 50, app.vtranslate('JS_ALL')]\n\t\t\t\t\t],\n\t\t\t\t\tretrieve: true\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep3: function () {\n\t\t\t$('#recheck').on('click', function () {\n\t\t\t\twindow.location.reload();\n\t\t\t});\n\t\t\tlet elements = jQuery('.js-wrong-status');\n\t\t\t$('.js-confirm').on('submit', function (e) {\n\t\t\t\tif (elements.length > 0) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\ticon: 'fas fa-exclamation-triangle',\n\t\t\t\t\t\ttext: app.vtranslate('LBL_SETTINGS_WARNING'),\n\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\telements = false;\n\t\t\t\t\t\t\t$('form[name=\"step3\"]').trigger('submit');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tcheckPwdEvent: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tjQuery('input[name=\"password\"]').on('blur', function () {\n\t\t\t\tthisInstance.checkPwd(jQuery(this).val());\n\t\t\t});\n\t\t},\n\t\tcheckPwd: function (pass) {\n\t\t\tlet error = false;\n\n\t\t\tif (pass.length < 8) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_TO_SHORT'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.length > 32) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_TO_LONG'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/\\d/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_NO_NUM'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/[A-Z]/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_LACK_OF_CAPITAL_LETTERS'));\n\t\t\t\terror = true;\n\t\t\t} else if (pass.search(/[a-z]/) == -1) {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_LACK_OF_LOWERCASE_LETTERS'));\n\t\t\t\terror = true;\n\t\t\t}\n\n\t\t\treturn error;\n\t\t},\n\t\tregisterEventForStep4: function () {\n\t\t\tvar config = JSON.parse(localStorage.getItem('yetiforce_install'));\n\t\t\tInstall_Index_Js.fieldsCached.forEach(function (field) {\n\t\t\t\tif (config && typeof config[field] !== 'undefined') {\n\t\t\t\t\tvar formField = jQuery('[name=\"' + field + '\"]');\n\t\t\t\t\tif ('SELECT' == jQuery(formField).prop('tagName')) {\n\t\t\t\t\t\tjQuery(formField).val(config[field]);\n\t\t\t\t\t\tjQuery(formField).select2('destroy');\n\t\t\t\t\t\tApp.Fields.Picklist.showSelect2ElementView(jQuery(formField));\n\t\t\t\t\t} else if ('INPUT' == jQuery(formField).prop('tagName') && 'checkbox' == jQuery(formField).attr('type')) {\n\t\t\t\t\t\tif (true == config[field]) {\n\t\t\t\t\t\t\tjQuery(formField).prop('checked', true);\n\t\t\t\t\t\t\tjQuery('.config-table tr.d-none').removeClass('d-none');\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery(formField).val(config[field]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfunction clearPasswordError() {\n\t\t\t\tjQuery('#passwordError').html('');\n\t\t\t}\n\n\t\t\tfunction setPasswordError() {\n\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_REENTER_ERROR'));\n\t\t\t}\n\n\t\t\tjQuery('input[name=\"retype_password\"]').on('blur', function (e) {\n\t\t\t\tvar element = jQuery(e.currentTarget);\n\t\t\t\tvar password = jQuery('input[name=\"password\"]').val();\n\t\t\t\tif (password !== element.val()) {\n\t\t\t\t\tsetPasswordError();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tjQuery('input[name=\"password\"]').on('blur', function (e) {\n\t\t\t\tvar retypePassword = jQuery('input[name=\"retype_password\"]');\n\t\t\t\tif (retypePassword.val() != '' && retypePassword.val() !== jQuery(e.currentTarget).val()) {\n\t\t\t\t\tjQuery('#passwordError').html(app.vtranslate('LBL_PASS_REENTER_ERROR'));\n\t\t\t\t} else {\n\t\t\t\t\tclearPasswordError();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tjQuery('input[name=\"retype_password\"]').on('keypress', function (e) {\n\t\t\t\tclearPasswordError();\n\t\t\t});\n\t\t\t$('form[name=\"step4\"]').on('submit', (e) => {\n\t\t\t\tif (this.checkForm()) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t} else {\n\t\t\t\t\t$('form[name=\"step4\"]').off('submit');\n\t\t\t\t\tthis.submitForm();\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.checkPwdEvent();\n\t\t},\n\t\tregisterEventForStep5: function () {\n\t\t\tjQuery('input[name=\"step6\"]').on('click', function () {\n\t\t\t\tvar error = jQuery('#errorMessage');\n\t\t\t\tif (error.length) {\n\t\t\t\t\tapp.showAlert(app.vtranslate('LBL_RESOLVE_ERROR'));\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tjQuery('#progressIndicator').removeClass('d-none');\n\t\t\t\t\tjQuery('form[name=\"step5\"]').submit().hide();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEventForStep6: function () {\n\t\t\tvar form = $('form[name=\"step6\"]');\n\t\t\tform.on('submit', function () {\n\t\t\t\tif (form.validationEngine('validate')) {\n\t\t\t\t\tform.submit();\n\t\t\t\t\t$('.js-submit').attr('disabled', true);\n\t\t\t\t} else {\n\t\t\t\t\tapp.formAlignmentAfterValidation(form);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEventForMigration: function () {\n\t\t\tvar step = jQuery('input[name=\"mode\"]').val();\n\t\t\tif (step == 'mStep3') {\n\t\t\t\tjQuery('form').on('submit', function () {\n\t\t\t\t\tjQuery('#progressIndicator').show();\n\t\t\t\t\tjQuery('#mainContainer').hide();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tcheckForm() {\n\t\t\tlet error = false;\n\t\t\tif (jQuery('#passwordError').html().trim()) {\n\t\t\t\terror = true;\n\t\t\t}\n\t\t\tif (this.checkPwd(jQuery('input[name=\"password\"]').val())) {\n\t\t\t\terror = true;\n\t\t\t}\n\t\t\treturn error;\n\t\t},\n\t\tsubmitForm() {\n\t\t\twindow.localStorage.setItem(\n\t\t\t\t'yetiforce_install',\n\t\t\t\tJSON.stringify({\n\t\t\t\t\tdb_server: document.step4.db_server.value,\n\t\t\t\t\tdb_username: document.step4.db_username.value,\n\t\t\t\t\tdb_name: document.step4.db_name.value,\n\t\t\t\t\tcurrency_name: document.step4.currency_name.value,\n\t\t\t\t\tfirstname: document.step4.firstname.value,\n\t\t\t\t\tlastname: document.step4.lastname.value,\n\t\t\t\t\tadmin_email: document.step4.admin_email.value,\n\t\t\t\t\tdateformat: document.step4.dateformat.value,\n\t\t\t\t\tdefault_timezone: document.step4.default_timezone.value\n\t\t\t\t})\n\t\t\t);\n\t\t},\n\t\tchangeLanguage: function (e) {\n\t\t\tjQuery('input[name=\"mode\"]').val('step1');\n\t\t\tjQuery('form[name=\"step1\"]').submit();\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tconst form = $('form');\n\t\t\tjQuery('input[name=\"back\"]').on('click', function () {\n\t\t\t\twindow.history.back();\n\t\t\t});\n\t\t\tform.validationEngine(app.validationEngineOptions);\n\t\t\tthis.registerEventForStep1();\n\t\t\tthis.registerEventForStep2();\n\t\t\tthis.registerEventForStep3();\n\t\t\tthis.registerEventForStep4();\n\t\t\tthis.registerEventForStep5();\n\t\t\tthis.registerEventForStep6();\n\t\t\tthis.registerEventForMigration();\n\t\t\t$('select[name=\"lang\"]').on('change', this.changeLanguage);\n\t\t}\n\t}\n);\njQuery(document).ready(function () {\n\tvar install = new Install_Index_Js();\n\tinstall.registerEvents();\n});\n"],"names":["jQuery","Class","fieldsCached","checkUsername","field","fieldValue","val","result","test","app","vtranslate","logins","JSON","parse","$","inArray","checkDbUsername","checkDbName","registerEventForStep1","on","submit","registerEventForStep2","modalContainer","registerDataTables","find","lengthMenu","retrieve","registerEventForStep3","window","location","reload","elements","e","length","preventDefault","showConfirmModal","icon","text","confirmedCallback","trigger","checkPwdEvent","thisInstance","checkPwd","pass","error","html","search","registerEventForStep4","clearPasswordError","setPasswordError","_this","config","localStorage","getItem","Install_Index_Js","forEach","formField","prop","select2","App","Fields","Picklist","showSelect2ElementView","attr","removeClass","element","currentTarget","password","retypePassword","checkForm","off","submitForm","registerEventForStep5","showAlert","hide","registerEventForStep6","form","validationEngine","formAlignmentAfterValidation","registerEventForMigration","step","show","trim","setItem","stringify","db_server","document","step4","value","db_username","db_name","currency_name","firstname","lastname","admin_email","dateformat","default_timezone","changeLanguage","registerEvents","history","back","validationEngineOptions","ready","install"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sFAEAA,MAAM,CAACC,KAAK,CACX,kBAAkB,CAClB,CACCC,YAAY,CAAE,CACb,WAAW,CACX,aAAa,CACb,SAAS,CACT,eAAe,CACf,WAAW,CACX,UAAU,CACV,aAAa,CACb,YAAY,CACZ,kBAAkB,CAClB,CACDC,aAAa,CAAE,SAAAA,aAAAA,CAAUC,KAAK,CAAqB,CAClD,IAAIC,UAAU,CAAGD,KAAK,CAACE,GAAG,EAAE,CAE3BC,MAAM,CADU,yBAAyB,CAClBC,IAAI,CAACH,UAAU,CAAC,CACxC,GAAI,CAACE,MAAM,CACV,OAAOE,GAAG,CAACC,UAAU,CAAC,gCAAgC,CAAC,CAExD,IAAIC,MAAM,CAAGC,IAAI,CAACC,KAAK,CAACC,CAAC,CAAC,qBAAqB,CAAC,CAACR,GAAG,EAAE,CAAC,CACvD,GAAsC,CAAC,CAAC,GAApCQ,CAAC,CAACC,OAAO,CAACV,UAAU,CAAEM,MAAM,CAAQ,CACvC,OAAOF,GAAG,CAACC,UAAU,CAAC,4BAA4B,CAEpD,CAAC,CACDM,eAAe,CA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,IAAI,CAACM,qBAAqB,EAAE,CAC5B,IAAI,CAACoB,qBAAqB,EAAE,CAC5B,IAAI,CAACyB,qBAAqB,EAAE,CAC5B,IAAI,CAACG,qBAAqB,EAAE,CAC5B,IAAI,CAACI,yBAAyB,EAAE,CAChCjE,CAAC,CAAC,uBAAqB,CAAC,CAACK,EAAE,CAAC,QAAQ,CAAE,IAAI,CAAC8E,cAAc,EAC1D,CACD,CACD,CAAC,CACDjG,MAAM,CAACsF,QAAQ,CAAC,CAACgB,KAAK,CAAC,UAAY,CAClC,IAAIC,OAAO,CAAG,IAAIjD,gBAAkB,CACpCiD,OAAO,CAACL,cAAc,GACvB,CAAC,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/components/InterestsConflict.min.js b/public_html/layouts/basic/components/InterestsConflict.min.js
index 57e5c9a8d5db..43c6b3f03a01 100644
--- a/public_html/layouts/basic/components/InterestsConflict.min.js
+++ b/public_html/layouts/basic/components/InterestsConflict.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";$.Class("AppComponents_InterestsConflict_Js",{/**
+/* {[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]} */"use strict";$.Class("AppComponents_InterestsConflict_Js",{/**
* Register unlock tab events
* @param {jQuery} container
*/registerUnlock:function registerUnlock(container){var form=container.find(".js-filter-form");App.Fields.Date.registerRange(form);var table=$("#js-unlock-table");table.hasClass("dataTable")&&table.DataTable().clear().destroy();var dt=app.registerDataTables(table,{processing:!0,serverSide:!0,paging:!0,searching:!1,lengthChange:!1,pageLength:15,ajax:{url:"index.php?module=AppComponents&action=InterestsConflict&mode=getUnlock",type:"POST",data:function data(_data){_data=$.extend(_data,form.serializeFormData());}},order:[[0,"desc"]],columns:[{data:"date_time"},{data:"user_id"},{data:"status",render:function render(data){return 1===data?""):2===data?""):3===data?""):"")}},{data:"related"},{orderable:!1,data:"comment"},{orderable:!1,data:function data(row){var action=row.info?""):"";return 0===row.status&&(action+="")),action},defaultContent:""}]});container.find("input,select").on("change",function(){dt.ajax.reload();}),table.off("click",".js-update").on("click",".js-update",function(){AppConnector.request({module:"AppComponents",action:"InterestsConflict",mode:"updateUnlockStatus",id:this.dataset.id,status:this.dataset.status}).done(function(){app.showNotify({text:app.vtranslate("JS_SAVE_NOTIFY_OK"),type:"success"}),dt.ajax.reload(null,!1);}).fail(function(){app.showNotify({text:app.vtranslate("JS_ERROR"),type:"error"});});});},/**
diff --git a/public_html/layouts/basic/components/InterestsConflict.min.js.map b/public_html/layouts/basic/components/InterestsConflict.min.js.map
index 3e931df6cfc6..e6dcd1e7ae84 100644
--- a/public_html/layouts/basic/components/InterestsConflict.min.js.map
+++ b/public_html/layouts/basic/components/InterestsConflict.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"InterestsConflict.min.js","sources":["InterestsConflict.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\n$.Class(\n\t'AppComponents_InterestsConflict_Js',\n\n\t{\n\t\t/**\n\t\t * Register unlock tab events\n\t\t * @param {jQuery} container\n\t\t */\n\t\tregisterUnlock: function (container) {\n\t\t\tlet form = container.find('.js-filter-form');\n\t\t\tApp.Fields.Date.registerRange(form);\n\t\t\tlet table = $('#js-unlock-table');\n\t\t\tif (table.hasClass('dataTable')) {\n\t\t\t\ttable.DataTable().clear().destroy();\n\t\t\t}\n\t\t\tlet dt = app.registerDataTables(table, {\n\t\t\t\tprocessing: true,\n\t\t\t\tserverSide: true,\n\t\t\t\tpaging: true,\n\t\t\t\tsearching: false,\n\t\t\t\tlengthChange: false,\n\t\t\t\tpageLength: 15,\n\t\t\t\tajax: {\n\t\t\t\t\turl: 'index.php?module=AppComponents&action=InterestsConflict&mode=getUnlock',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: function (data) {\n\t\t\t\t\t\tdata = $.extend(data, form.serializeFormData());\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\torder: [[0, 'desc']],\n\t\t\t\tcolumns: [\n\t\t\t\t\t{ data: 'date_time' },\n\t\t\t\t\t{ data: 'user_id' },\n\t\t\t\t\t{\n\t\t\t\t\t\tdata: 'status',\n\t\t\t\t\t\trender: function (data, type, row, meta) {\n\t\t\t\t\t\t\tswitch (data) {\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t}\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\tdata: 'related'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: 'comment'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: function (row) {\n\t\t\t\t\t\t\tlet action = row['info']\n\t\t\t\t\t\t\t\t? ``\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t\tif (row['status'] === 0) {\n\t\t\t\t\t\t\t\taction += ``;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefaultContent: ''\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t});\n\t\t\tcontainer.find('input,select').on('change', function () {\n\t\t\t\tdt.ajax.reload();\n\t\t\t});\n\t\t\ttable.off('click', '.js-update').on('click', '.js-update', function () {\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: 'AppComponents',\n\t\t\t\t\taction: 'InterestsConflict',\n\t\t\t\t\tmode: 'updateUnlockStatus',\n\t\t\t\t\tid: this.dataset.id,\n\t\t\t\t\tstatus: this.dataset.status\n\t\t\t\t})\n\t\t\t\t\t.done(function () {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_SAVE_NOTIFY_OK'),\n\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdt.ajax.reload(null, false);\n\t\t\t\t\t})\n\t\t\t\t\t.fail(function () {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Register confirmations tab events\n\t\t * @param {jQuery} container\n\t\t */\n\t\tregisterConfirmations: function (container) {\n\t\t\tlet form = container.find('.js-filter-form');\n\t\t\tApp.Fields.Date.registerRange(form);\n\t\t\tlet table = $('#js-confirm-table');\n\t\t\tif (table.hasClass('dataTable')) {\n\t\t\t\ttable.DataTable().clear().destroy();\n\t\t\t}\n\t\t\tlet dt = app.registerDataTables(table, {\n\t\t\t\tprocessing: true,\n\t\t\t\tserverSide: true,\n\t\t\t\tpaging: true,\n\t\t\t\tsearching: false,\n\t\t\t\tlengthChange: false,\n\t\t\t\tpageLength: 15,\n\t\t\t\tajax: {\n\t\t\t\t\turl: 'index.php?module=AppComponents&action=InterestsConflict&mode=getConfirm',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: function (data) {\n\t\t\t\t\t\tdata = $.extend(data, form.serializeFormData());\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\torder: [[0, 'desc']],\n\t\t\t\tcolumns: [\n\t\t\t\t\t{ data: 'date_time' },\n\t\t\t\t\t{ data: 'user' },\n\t\t\t\t\t{\n\t\t\t\t\t\tdata: 'status',\n\t\t\t\t\t\trender: function (data, type, row, meta) {\n\t\t\t\t\t\t\tswitch (data) {\n\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t}\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\tdata: 'related'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tclass: 'details-control',\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: function (row) {\n\t\t\t\t\t\t\tlet action = row['info']\n\t\t\t\t\t\t\t\t? ``\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t\tif (row['db'] !== 'base') {\n\t\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taction += ``;\n\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefaultContent: ''\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t});\n\t\t\tcontainer.find('input,select').on('change', function () {\n\t\t\t\tdt.ajax.reload();\n\t\t\t});\n\t\t\ttable.off('click', '.js-update').on('click', '.js-update', function () {\n\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\ttitle: app.vtranslate('JS_ENTER_A_REASON'),\n\t\t\t\t\tshowDialog: true,\n\t\t\t\t\tmultiLineDialog: true,\n\t\t\t\t\tconfirmedCallback: (notice, value) => {\n\t\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\t\tmodule: 'AppComponents',\n\t\t\t\t\t\t\taction: 'InterestsConflict',\n\t\t\t\t\t\t\tmode: 'updateConfirmStatus',\n\t\t\t\t\t\t\tid: this.dataset.user,\n\t\t\t\t\t\t\tbaseRecord: this.dataset.related,\n\t\t\t\t\t\t\tcomment: value\n\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.done(function () {\n\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_SAVE_NOTIFY_OK'),\n\t\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tdt.ajax.reload(null, false);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.fail(function () {\n\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t},\n\t{\n\t\t/**\n\t\t * Register events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tlet container = $('.contentsDiv');\n\t\t\tswitch (CONFIG['mode']) {\n\t\t\t\tcase 'unlock':\n\t\t\t\t\tAppComponents_InterestsConflict_Js.registerUnlock(container);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'confirm':\n\t\t\t\t\tAppComponents_InterestsConflict_Js.registerConfirmations(container);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n);\n"],"names":["$","Class","registerUnlock","container","find","App","Fields","Date","registerRange","form","table","hasClass","DataTable","clear","destroy","app","registerDataTables","processing","serverSide","paging","searching","lengthChange","pageLength","ajax","url","type","data","extend","serializeFormData","order","columns","render","vtranslate","orderable","row","action","defaultContent","on","dt","reload","off","AppConnector","request","module","mode","id","dataset","status","done","showNotify","text","fail","registerConfirmations","class","showConfirmModal","title","showDialog","multiLineDialog","confirmedCallback","notice","value","user","baseRecord","related","comment","registerEvents","CONFIG","AppComponents_InterestsConflict_Js"],"mappings":";;AAAA,kKACA,aAEAA,CAAC,CAACC,KAAF,CACC,oCADD,CAGC;AAED;AACA;AACA,KACEC,cAAc,CAAE,SAA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cAAc,CAAE,SAAA,cAAA,EAAY,CAC3B,IAAI9D,SAAS,CAAGH,CAAC,CAAC,cAAD,CAAjB,CACA,OAAQkE,MAAM,KAAd,EACC,IAAK,QAAL,CACCC,kCAAkC,CAACjE,cAAnC,CAAkDC,SAAlD,CADD,CAEC,MACD,IAAK,SAAL,CACCgE,kCAAkC,CAACf,qBAAnC,CAAyDjD,SAAzD,CADD,CAJD,CAQA,CAdF,CAvND;;"}
\ No newline at end of file
+{"version":3,"file":"InterestsConflict.min.js","sources":["InterestsConflict.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\n$.Class(\n\t'AppComponents_InterestsConflict_Js',\n\n\t{\n\t\t/**\n\t\t * Register unlock tab events\n\t\t * @param {jQuery} container\n\t\t */\n\t\tregisterUnlock: function (container) {\n\t\t\tlet form = container.find('.js-filter-form');\n\t\t\tApp.Fields.Date.registerRange(form);\n\t\t\tlet table = $('#js-unlock-table');\n\t\t\tif (table.hasClass('dataTable')) {\n\t\t\t\ttable.DataTable().clear().destroy();\n\t\t\t}\n\t\t\tlet dt = app.registerDataTables(table, {\n\t\t\t\tprocessing: true,\n\t\t\t\tserverSide: true,\n\t\t\t\tpaging: true,\n\t\t\t\tsearching: false,\n\t\t\t\tlengthChange: false,\n\t\t\t\tpageLength: 15,\n\t\t\t\tajax: {\n\t\t\t\t\turl: 'index.php?module=AppComponents&action=InterestsConflict&mode=getUnlock',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: function (data) {\n\t\t\t\t\t\tdata = $.extend(data, form.serializeFormData());\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\torder: [[0, 'desc']],\n\t\t\t\tcolumns: [\n\t\t\t\t\t{ data: 'date_time' },\n\t\t\t\t\t{ data: 'user_id' },\n\t\t\t\t\t{\n\t\t\t\t\t\tdata: 'status',\n\t\t\t\t\t\trender: function (data, type, row, meta) {\n\t\t\t\t\t\t\tswitch (data) {\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn ``;\n\t\t\t\t\t\t\t}\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\tdata: 'related'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: 'comment'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: function (row) {\n\t\t\t\t\t\t\tlet action = row['info']\n\t\t\t\t\t\t\t\t? ``\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t\tif (row['status'] === 0) {\n\t\t\t\t\t\t\t\taction += ``;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefaultContent: ''\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t});\n\t\t\tcontainer.find('input,select').on('change', function () {\n\t\t\t\tdt.ajax.reload();\n\t\t\t});\n\t\t\ttable.off('click', '.js-update').on('click', '.js-update', function () {\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: 'AppComponents',\n\t\t\t\t\taction: 'InterestsConflict',\n\t\t\t\t\tmode: 'updateUnlockStatus',\n\t\t\t\t\tid: this.dataset.id,\n\t\t\t\t\tstatus: this.dataset.status\n\t\t\t\t})\n\t\t\t\t\t.done(function () {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_SAVE_NOTIFY_OK'),\n\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tdt.ajax.reload(null, false);\n\t\t\t\t\t})\n\t\t\t\t\t.fail(function () {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Register confirmations tab events\n\t\t * @param {jQuery} container\n\t\t */\n\t\tregisterConfirmations: function (container) {\n\t\t\tlet form = container.find('.js-filter-form');\n\t\t\tApp.Fields.Date.registerRange(form);\n\t\t\tlet table = $('#js-confirm-table');\n\t\t\tif (table.hasClass('dataTable')) {\n\t\t\t\ttable.DataTable().clear().destroy();\n\t\t\t}\n\t\t\tlet dt = app.registerDataTables(table, {\n\t\t\t\tprocessing: true,\n\t\t\t\tserverSide: true,\n\t\t\t\tpaging: true,\n\t\t\t\tsearching: false,\n\t\t\t\tlengthChange: false,\n\t\t\t\tpageLength: 15,\n\t\t\t\tajax: {\n\t\t\t\t\turl: 'index.php?module=AppComponents&action=InterestsConflict&mode=getConfirm',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: function (data) {\n\t\t\t\t\t\tdata = $.extend(data, form.serializeFormData());\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\torder: [[0, 'desc']],\n\t\t\t\tcolumns: [\n\t\t\t\t\t{ data: 'date_time' },\n\t\t\t\t\t{ data: 'user' },\n\t\t\t\t\t{\n\t\t\t\t\t\tdata: 'status',\n\t\t\t\t\t\trender: function (data, type, row, meta) {\n\t\t\t\t\t\t\tswitch (data) {\n\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn '';\n\t\t\t\t\t\t\t}\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\tdata: 'related'\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tclass: 'details-control',\n\t\t\t\t\t\torderable: false,\n\t\t\t\t\t\tdata: function (row) {\n\t\t\t\t\t\t\tlet action = row['info']\n\t\t\t\t\t\t\t\t? ``\n\t\t\t\t\t\t\t\t: '';\n\t\t\t\t\t\t\tif (row['db'] !== 'base') {\n\t\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taction += ``;\n\t\t\t\t\t\t\treturn action;\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefaultContent: ''\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t});\n\t\t\tcontainer.find('input,select').on('change', function () {\n\t\t\t\tdt.ajax.reload();\n\t\t\t});\n\t\t\ttable.off('click', '.js-update').on('click', '.js-update', function () {\n\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\ttitle: app.vtranslate('JS_ENTER_A_REASON'),\n\t\t\t\t\tshowDialog: true,\n\t\t\t\t\tmultiLineDialog: true,\n\t\t\t\t\tconfirmedCallback: (notice, value) => {\n\t\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\t\tmodule: 'AppComponents',\n\t\t\t\t\t\t\taction: 'InterestsConflict',\n\t\t\t\t\t\t\tmode: 'updateConfirmStatus',\n\t\t\t\t\t\t\tid: this.dataset.user,\n\t\t\t\t\t\t\tbaseRecord: this.dataset.related,\n\t\t\t\t\t\t\tcomment: value\n\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.done(function () {\n\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_SAVE_NOTIFY_OK'),\n\t\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tdt.ajax.reload(null, false);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.fail(function () {\n\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t},\n\t{\n\t\t/**\n\t\t * Register events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tlet container = $('.contentsDiv');\n\t\t\tswitch (CONFIG['mode']) {\n\t\t\t\tcase 'unlock':\n\t\t\t\t\tAppComponents_InterestsConflict_Js.registerUnlock(container);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'confirm':\n\t\t\t\t\tAppComponents_InterestsConflict_Js.registerConfirmations(container);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n);\n"],"names":["$","Class","registerUnlock","container","form","find","App","Fields","Date","registerRange","table","hasClass","DataTable","clear","destroy","dt","app","registerDataTables","processing","serverSide","paging","searching","lengthChange","pageLength","ajax","url","type","data","extend","serializeFormData","order","columns","render","concat","vtranslate","orderable","row","action","info","status","id","defaultContent","on","reload","off","AppConnector","request","module","mode","dataset","done","showNotify","text","fail","registerConfirmations","class","db","user_id","related_id","_this","showConfirmModal","title","showDialog","multiLineDialog","confirmedCallback","notice","value","user","baseRecord","related","comment","registerEvents","CONFIG","AppComponents_InterestsConflict_Js"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,CAAC,CAACC,KAAK,CACN,oCAAoC,CAEpC;AAED;AACA;AACA,KACEC,cAAc,CAAE,SAAAA,cAAUC,CAAAA,SAAS,CAAE,CACpC,IAAIC,IAAI,CAAGD,SAAS,CAACE,IAAI,CAAC,iBAAiB,CAAC,CAC5CC,GAAG,CAACC,MAAM,CAACC,IAAI,CAACC,aAAa,CAACL,IAAI,CAAC,CACnC,IAAIM,KAAK,CAAGV,CAAC,CAAC,kBAAkB,CAAC,CAC7BU,KAAK,CAACC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D,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/components/MediaModal.min.js b/public_html/layouts/basic/components/MediaModal.min.js
index 450e70d597ef..237ea05f6d6c 100644
--- a/public_html/layouts/basic/components/MediaModal.min.js
+++ b/public_html/layouts/basic/components/MediaModal.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tthis.setPage(parseInt(currentPage) + 1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--previous:not(.disabled)', () => {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tif (currentPage !== 1) {\n\t\t\t\tthis.setPage(currentPage - 1);\n\t\t\t}\n\t\t});\n\t\tthis.container.on('click', '.js-page--first:not(.disabled)', () => {\n\t\t\tthis.setPage(1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--last:not(.disabled)', () => {\n\t\t\tlet elements = this.container.find('.js-icon-item:not(.not-match)');\n\t\t\tlet totalPages = Math.ceil(elements.length / this.pageLimit);\n\t\t\tthis.setPage(totalPages);\n\t\t});\n\t}\n\t/**\n\t * Register Icon Search\n\t */\n\tregisterSearchIcon() {\n\t\tthis.searchField.on('keyup', (e) => {\n\t\t\tlet tab = this.getActiveTab();\n\t\t\ttab.find('.js-icon-item.not-match').removeClass('not-match');\n\t\t\tlet value = e.currentTarget.value.toString().replace('\"', '').toLowerCase();\n\t\t\tif (value.length) {\n\t\t\t\ttab.find(`.js-icon-item:not([data-icon-search*=\"${value}\"])`).addClass('not-match');\n\t\t\t}\n\t\t\tthis.setPage(1);\n\t\t});\n\t}\n\t/**\n\t * Remove image item\n\t * @param {Event} e\n\t */\n\tremoveItem(e) {\n\t\tlet url = e.currentTarget.dataset.url;\n\t\tlet progressIndicatorElement = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });\n\t\tAppConnector.request({\n\t\t\tasync: false,\n\t\t\turl: url,\n\t\t\ttype: 'POST',\n\t\t\tdata: {}\n\t\t})\n\t\t\t.done((data) => {\n\t\t\t\tif (data.result) {\n\t\t\t\t\te.currentTarget.closest('.js-icon-item').remove();\n\t\t\t\t}\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t})\n\t\t\t.fail(function (error, err) {\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\tapp.errorLog(error, err);\n\t\t\t});\n\t}\n\tregisterImageEvents() {\n\t\tlet fileInput = this.container.find('.js-icon-file');\n\t\tif (fileInput.length) {\n\t\t\tlet fieldInfo = fileInput.data('fieldinfo') || {};\n\t\t\tthis.container.find('.js-image-add').on('click', () => {\n\t\t\t\tfileInput.trigger('click');\n\t\t\t});\n\t\t\tlet file = App.File.register(fileInput, {\n\t\t\t\tfileupload: {\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\treplaceFileInput: false,\n\t\t\t\t\tautoUpload: false,\n\t\t\t\t\tdone: (e, data) => {\n\t\t\t\t\t\tconst attach = data.result.result.attach;\n\t\t\t\t\t\tattach.forEach((fileAttach) => {\n\t\t\t\t\t\t\tif (typeof fileAttach.key === 'undefined') {\n\t\t\t\t\t\t\t\treturn file.uploadError(e, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfile.filesActive--;\n\t\t\t\t\t\t\tthis.addImage(fileAttach);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfile.fileInput.val('');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tformats: fieldInfo.formats,\n\t\t\t\tlimit: fieldInfo.limit,\n\t\t\t\tmaxFileSize: fieldInfo.maxFileSize,\n\t\t\t\tmaxFileSizeDisplay: fieldInfo.maxFileSizeDisplay || ''\n\t\t\t});\n\t\t}\n\n\t\tthis.container.find('.js-image-remove').on('click', (e) => {\n\t\t\te.stopPropagation();\n\t\t\tapp.showConfirmModal({\n\t\t\t\ttext: app.vtranslate('JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE'),\n\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\tthis.removeItem(e);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Add image to container\n\t * @param {Object} data\n\t */\n\taddImage(data) {\n\t\tconst item = document.createElement('article');\n\t\titem.setAttribute('class', 'w-100 position-relative js-icon-item');\n\t\titem.setAttribute('data-icon-search', data.name.toLowerCase());\n\t\titem.setAttribute('data-name', data.name);\n\t\titem.setAttribute('data-type', 'image');\n\t\titem.setAttribute('data-src', data.src);\n\t\titem.setAttribute('data-key', data.key);\n\n\t\tconst button = document.createElement('button');\n\t\tbutton.setAttribute('class', 'btn btn-light w-100 h-100');\n\n\t\tconst image = document.createElement('img');\n\t\timage.setAttribute('class', 'icon-img--list');\n\t\timage.setAttribute('src', data.src);\n\n\t\tconst span = document.createElement('span');\n\t\tspan.setAttribute('class', 'c-grid-item--signature u-fs-xs');\n\t\tspan.appendChild(document.createTextNode(data.name));\n\n\t\tbutton.appendChild(image);\n\t\tbutton.appendChild(span);\n\t\titem.appendChild(button);\n\n\t\tthis.getActiveTab().find('#icons-results').append(item);\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents(container) {\n\t\tthis.container = container;\n\t\tthis.pageLimit = parseInt(this.container.find('.js-page-size').val());\n\t\tthis.searchField = this.container.find('.js-icon-search');\n\t\tthis.setPage();\n\t\tthis.registerPaginationEvents();\n\t\tthis.registerSearchIcon();\n\t\tthis.container.on('shown.bs.tab', 'a[data-toggle=\"tab\"]', () => {\n\t\t\tthis.searchField.trigger('keyup');\n\t\t});\n\t\tthis.registerImageEvents();\n\t}\n};\n"],"names":["window","AppComponents_MediaModal_Js","min","page","pageLimit","max","tab","getActiveTab","elements","find","addClass","slice","removeClass","container","data","text","eq","length","on","setPage","parseInt","currentPage","totalPages","Math","ceil","searchField","e","value","currentTarget","toString","replace","toLowerCase","dataset","url","progressIndicatorElement","$","progressIndicator","position","blockInfo","enabled","AppConnector","request","async","type","done","result","closest","remove","mode","fail","error","err","app","errorLog","fileInput","trigger","App","File","register","fileupload","dataType","replaceFileInput","autoUpload","attach","forEach","fileAttach","key","file","uploadError","filesActive","addImage","val","formats","fieldInfo","limit","maxFileSize","maxFileSizeDisplay","stopPropagation","showConfirmModal","vtranslate","confirmedCallback","removeItem","item","document","createElement","setAttribute","name","src","button","image","span","appendChild","createTextNode","append","registerPaginationEvents","registerSearchIcon","registerImageEvents"],"mappings":";;AAAA,kKACA,urBAEAA,MAAM,CAACC,2BAAP,cACC,UAAA,CAAA,SAAA,MAAA,EAAA,CAAA,eAAA,CAAA,IAAA,CAAA,MAAA,EAAA,CAAA,OAAA,YAAA,CAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,SAAA,CAAA,KAAA;AACD;AACA;AACA,IACC,SAAkB,OAAA,EAAA,CAAA,IAAA,IAAA,CAAA,CAAA,CAAA,SAAA,CAAA,MAAA,EAAA,KAAA,CAAA,GAAA,SAAA,CAAA,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,CAAH,CAAG,CACbC,GAAG,CAAG,CAACC,IAAI,CAAG,CAAR,EAAa,IAAA,CAAKC,SADX,CAEbC,GAAG,CAAGF,IAAI,CAAG,IAAKC,CAAAA,SAFL,CAGbE,GAAG,CAAG,IAAKC,CAAAA,YAAL,EAHO,CAIbC,QAAQ,CAAGF,GAAG,CAACG,IAAJ,CAAS,+BAAT,CAJE,CAKjBH,GAAG,CAACG,IAAJ,CAAS,eAAT,CAAA,CAA0BC,QAA1B,CAAmC,QAAnC,CALiB,CAMjBF,QAAQ,CAACG,KAAT,CAAeT,GAAf,CAAoBG,GAApB,CAAA,CAAyBO,WAAzB,CAAqC,QAArC,CANiB,CAOjB,IAAKC,CA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b,CACAM,IAAI,CAACL,YAAL,CAAkB,OAAlB,CAA2B,gCAA3B,CAjBc,CAkBdK,IAAI,CAACC,WAAL,CAAiBR,QAAQ,CAACS,cAAT,CAAwB9E,IAAI,CAACwE,IAA7B,CAAjB,CAlBc,CAoBdE,MAAM,CAACG,WAAP,CAAmBF,KAAnB,CApBc,CAqBdD,MAAM,CAACG,WAAP,CAAmBD,IAAnB,CArBc,CAsBdR,IAAI,CAACS,WAAL,CAAiBH,MAAjB,CAtBc,CAwBd,KAAKjF,YAAL,EAAA,CAAoBE,IAApB,CAAyB,gBAAzB,EAA2CoF,MAA3C,CAAkDX,IAAlD,EACA,CACD;AACD;AACA,KACC,CAAA,CAAA,GAAA,CAAA,gBAAA,CAAA,KAAA,CAAA,SAAA,cAAA,CAAerE,SAAf,CAA0B,iBACzB,IAAKA,CAAAA,SAAL,CAAiBA,SADQ,CAEzB,IAAKT,CAAAA,SAAL,CAAiBgB,QAAQ,CAAC,IAAKP,CAAAA,SAAL,CAAeJ,IAAf,CAAoB,eAApB,CAAA,CAAqC8D,GAArC,EAAD,CAFA,CAGzB,IAAA,CAAK9C,WAAL,CAAmB,KAAKZ,SAAL,CAAeJ,IAAf,CAAoB,iBAApB,CAHM,CAIzB,IAAKU,CAAAA,OAAL,EAJyB,CAKzB,IAAA,CAAK2E,wBAAL,EALyB,CAMzB,IAAKC,CAAAA,kBAAL,EANyB,CAOzB,KAAKlF,SAAL,CAAeK,EAAf,CAAkB,cAAlB,CAAkC,wBAAlC,CAA0D,UAAM,CAC/D,MAAI,CAACO,WAAL,CAAiB8B,OAAjB,CAAyB,OAAzB,EACA,CAFD,CAPyB,CAUzB,IAAA,CAAKyC,mBAAL,GACA,CAjLF;;"}
\ No newline at end of file
+{"version":3,"file":"MediaModal.min.js","sources":["MediaModal.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\nwindow.AppComponents_MediaModal_Js = class {\n\t/**\n\t * Set page\n\t * @param {int} page\n\t */\n\tsetPage(page = 1) {\n\t\tlet min = (page - 1) * this.pageLimit;\n\t\tlet max = page * this.pageLimit;\n\t\tlet tab = this.getActiveTab();\n\t\tlet elements = tab.find('.js-icon-item:not(.not-match)');\n\t\ttab.find('.js-icon-item').addClass('d-none');\n\t\telements.slice(min, max).removeClass('d-none');\n\t\tthis.container.find('.js-page--set').data('id', page).find('.page-link').text(page);\n\t\tif (elements.eq(max + 1).length) {\n\t\t\tthis.container.find('.js-page--next,.js-page--last').removeClass('disabled');\n\t\t} else {\n\t\t\tthis.container.find('.js-page--next,.js-page--last').addClass('disabled');\n\t\t}\n\t\tif (min !== 0 && elements.eq(min - 1).length) {\n\t\t\tthis.container.find('.js-page--previous,.js-page--first').removeClass('disabled');\n\t\t} else {\n\t\t\tthis.container.find('.js-page--previous,.js-page--first').addClass('disabled');\n\t\t}\n\t}\n\t/**\n\t * Get active tab\n\t * @returns\n\t */\n\tgetActiveTab() {\n\t\treturn this.container.find('.js-tab.active');\n\t}\n\t/**\n\t * Register pagination events\n\t */\n\tregisterPaginationEvents() {\n\t\tthis.container.on('click', '.js-page--next:not(.disabled)', () => {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tthis.setPage(parseInt(currentPage) + 1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--previous:not(.disabled)', () => {\n\t\t\tlet currentPage = this.container.find('.js-page--set.active').data('id');\n\t\t\tif (currentPage !== 1) {\n\t\t\t\tthis.setPage(currentPage - 1);\n\t\t\t}\n\t\t});\n\t\tthis.container.on('click', '.js-page--first:not(.disabled)', () => {\n\t\t\tthis.setPage(1);\n\t\t});\n\t\tthis.container.on('click', '.js-page--last:not(.disabled)', () => {\n\t\t\tlet elements = this.container.find('.js-icon-item:not(.not-match)');\n\t\t\tlet totalPages = Math.ceil(elements.length / this.pageLimit);\n\t\t\tthis.setPage(totalPages);\n\t\t});\n\t}\n\t/**\n\t * Register Icon Search\n\t */\n\tregisterSearchIcon() {\n\t\tthis.searchField.on('keyup', (e) => {\n\t\t\tlet tab = this.getActiveTab();\n\t\t\ttab.find('.js-icon-item.not-match').removeClass('not-match');\n\t\t\tlet value = e.currentTarget.value.toString().replace('\"', '').toLowerCase();\n\t\t\tif (value.length) {\n\t\t\t\ttab.find(`.js-icon-item:not([data-icon-search*=\"${value}\"])`).addClass('not-match');\n\t\t\t}\n\t\t\tthis.setPage(1);\n\t\t});\n\t}\n\t/**\n\t * Remove image item\n\t * @param {Event} e\n\t */\n\tremoveItem(e) {\n\t\tlet url = e.currentTarget.dataset.url;\n\t\tlet progressIndicatorElement = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });\n\t\tAppConnector.request({\n\t\t\tasync: false,\n\t\t\turl: url,\n\t\t\ttype: 'POST',\n\t\t\tdata: {}\n\t\t})\n\t\t\t.done((data) => {\n\t\t\t\tif (data.result) {\n\t\t\t\t\te.currentTarget.closest('.js-icon-item').remove();\n\t\t\t\t}\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t})\n\t\t\t.fail(function (error, err) {\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\tapp.errorLog(error, err);\n\t\t\t});\n\t}\n\tregisterImageEvents() {\n\t\tlet fileInput = this.container.find('.js-icon-file');\n\t\tif (fileInput.length) {\n\t\t\tlet fieldInfo = fileInput.data('fieldinfo') || {};\n\t\t\tthis.container.find('.js-image-add').on('click', () => {\n\t\t\t\tfileInput.trigger('click');\n\t\t\t});\n\t\t\tlet file = App.File.register(fileInput, {\n\t\t\t\tfileupload: {\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\treplaceFileInput: false,\n\t\t\t\t\tautoUpload: false,\n\t\t\t\t\tdone: (e, data) => {\n\t\t\t\t\t\tconst attach = data.result.result.attach;\n\t\t\t\t\t\tattach.forEach((fileAttach) => {\n\t\t\t\t\t\t\tif (typeof fileAttach.key === 'undefined') {\n\t\t\t\t\t\t\t\treturn file.uploadError(e, data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfile.filesActive--;\n\t\t\t\t\t\t\tthis.addImage(fileAttach);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfile.fileInput.val('');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tformats: fieldInfo.formats,\n\t\t\t\tlimit: fieldInfo.limit,\n\t\t\t\tmaxFileSize: fieldInfo.maxFileSize,\n\t\t\t\tmaxFileSizeDisplay: fieldInfo.maxFileSizeDisplay || ''\n\t\t\t});\n\t\t}\n\n\t\tthis.container.find('.js-image-remove').on('click', (e) => {\n\t\t\te.stopPropagation();\n\t\t\tapp.showConfirmModal({\n\t\t\t\ttext: app.vtranslate('JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE'),\n\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\tthis.removeItem(e);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Add image to container\n\t * @param {Object} data\n\t */\n\taddImage(data) {\n\t\tconst item = document.createElement('article');\n\t\titem.setAttribute('class', 'w-100 position-relative js-icon-item');\n\t\titem.setAttribute('data-icon-search', data.name.toLowerCase());\n\t\titem.setAttribute('data-name', data.name);\n\t\titem.setAttribute('data-type', 'image');\n\t\titem.setAttribute('data-src', data.src);\n\t\titem.setAttribute('data-key', data.key);\n\n\t\tconst button = document.createElement('button');\n\t\tbutton.setAttribute('class', 'btn btn-light w-100 h-100');\n\n\t\tconst image = document.createElement('img');\n\t\timage.setAttribute('class', 'icon-img--list');\n\t\timage.setAttribute('src', data.src);\n\n\t\tconst span = document.createElement('span');\n\t\tspan.setAttribute('class', 'c-grid-item--signature u-fs-xs');\n\t\tspan.appendChild(document.createTextNode(data.name));\n\n\t\tbutton.appendChild(image);\n\t\tbutton.appendChild(span);\n\t\titem.appendChild(button);\n\n\t\tthis.getActiveTab().find('#icons-results').append(item);\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents(container) {\n\t\tthis.container = container;\n\t\tthis.pageLimit = parseInt(this.container.find('.js-page-size').val());\n\t\tthis.searchField = this.container.find('.js-icon-search');\n\t\tthis.setPage();\n\t\tthis.registerPaginationEvents();\n\t\tthis.registerSearchIcon();\n\t\tthis.container.on('shown.bs.tab', 'a[data-toggle=\"tab\"]', () => {\n\t\t\tthis.searchField.trigger('keyup');\n\t\t});\n\t\tthis.registerImageEvents();\n\t}\n};\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","i","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","call","Number","window","AppComponents_MediaModal_Js","_class","value","setPage","page","arguments","min","pageLimit","max","tab","getActiveTab","elements","find","addClass","slice","removeClass","container","data","text","eq","registerPaginationEvents","_this","on","currentPage","parseInt","totalPages","Math","ceil","registerSearchIcon","_this2","searchField","e","currentTarget","toString","replace","toLowerCase","concat","removeItem","url","dataset","progressIndicatorElement","$","progressIndicator","position","blockInfo","enabled","AppConnector","request","async","type","done","result","closest","remove","mode","fail","error","err","app","errorLog","registerImageEvents","_this3","fileInput","fieldInfo","trigger","file","App","File","register","fileupload","dataType","replaceFileInput","autoUpload","attach","forEach","fileAttach","uploadError","filesActive","addImage","val","formats","limit","maxFileSize","maxFileSizeDisplay","stopPropagation","showConfirmModal","vtranslate","confirmedCallback","item","document","createElement","setAttribute","name","src","button","image","span","appendChild","createTextNode","append","registerEvents","_this4"],"mappings":";;AAAA,kKACA,YAAY,CAAC,SAAAA,OAAAC,CAAAA,CAAA,mCAAAD,OAAA,CAAA,UAAA,EAAA,OAAAE,MAAA,EAAA,QAAA,EAAA,OAAAA,MAAA,CAAAC,QAAA,CAAAF,SAAAA,CAAA,CAAAA,CAAAA,OAAAA,OAAAA,CAAA,CAAAA,CAAAA,SAAAA,CAAA,CAAAA,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A3D,CAAAA,CAAAA,CAAAA,MAAA,CACD,EAAA;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js b/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js
index 73a95e3512f7..46a502421ce7 100644
--- a/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js
+++ b/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js
@@ -11,7 +11,8 @@
accountHierarchyResponseCache:{},/**
* function to get the AccountHierarchy response data
* @returns {Promise}
- */getAccountHierarchyResponseData:function getAccountHierarchyResponseData(params){var thisInstance=this,aDeferred=jQuery.Deferred();return jQuery.isEmptyObject(thisInstance.accountHierarchyResponseCache)?AppConnector.request(params).done(function(data){thisInstance.accountHierarchyResponseCache=data,aDeferred.resolve(thisInstance.accountHierarchyResponseCache);}):aDeferred.resolve(thisInstance.accountHierarchyResponseCache),aDeferred.promise()},/*
+ */getAccountHierarchyResponseData:function getAccountHierarchyResponseData(params){var thisInstance=this,aDeferred=jQuery.Deferred();//Check in the cache
+return jQuery.isEmptyObject(thisInstance.accountHierarchyResponseCache)?AppConnector.request(params).done(function(data){thisInstance.accountHierarchyResponseCache=data,aDeferred.resolve(thisInstance.accountHierarchyResponseCache);}):aDeferred.resolve(thisInstance.accountHierarchyResponseCache),aDeferred.promise()},/*
* function to display the AccountHierarchy response data
*/displayAccountHierarchyResponseData:function displayAccountHierarchyResponseData(data){var callbackFunction=function(){app.showScrollBar($("#hierarchyScroll"),{height:"300px",railVisible:!0,size:"6px"});};app.showModalWindow(data,function(modalContainer){App.Components.Scrollbar.xy($("#hierarchyScroll",modalContainer)),"function"==typeof callbackFunction&&300<$("#hierarchyScroll",modalContainer).height()&&callbackFunction();});},registerHierarchyRecordCount:function registerHierarchyRecordCount(){var hierarchyButton=$(".detailViewTitle .hierarchy");if(hierarchyButton.length){var params={module:app.getModuleName(),action:"RelationAjax",record:app.getRecordId(),mode:"getHierarchyCount"};AppConnector.request(params).done(function(response){response.success&&$(".detailViewTitle .hierarchy .badge").html(response.result);});}},registerShowHierarchy:function registerShowHierarchy(){var thisInstance=this,hierarchyButton=$(".detailViewTitle"),url="index.php?module=Accounts&view=AccountHierarchy&record="+app.getRecordId();hierarchyButton.on("click",".js-detail__icon, .recordLabelValue",function(){thisInstance.getAccountHierarchyResponseData(url).done(function(data){thisInstance.displayAccountHierarchyResponseData(data);});});},registerEvents:function registerEvents(){this._super(),this.registerHierarchyRecordCount(),this.registerShowHierarchy();}});
//# sourceMappingURL=Detail.min.js.map
diff --git a/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js.map
index e7df5c7f0347..833958816881 100644
--- a/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Accounts/resources/Detail.min.js.map
@@ -1 +1 @@
-{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Accounts_Detail_Js',\n\t{},\n\t{\n\t\t//It stores the Account Hierarchy response data\n\t\taccountHierarchyResponseCache: {},\n\t\t/**\n\t\t * function to get the AccountHierarchy response data\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetAccountHierarchyResponseData: function (params) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar aDeferred = jQuery.Deferred();\n\n\t\t\t//Check in the cache\n\t\t\tif (!jQuery.isEmptyObject(thisInstance.accountHierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.accountHierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\t//store it in the cache, so that we dont do multiple request\n\t\t\t\t\tthisInstance.accountHierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.accountHierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/*\n\t\t * function to display the AccountHierarchy response data\n\t\t */\n\t\tdisplayAccountHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tvar hierarchyButton = $('.detailViewTitle .hierarchy');\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tvar params = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\t\tAppConnector.request(params).done(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.detailViewTitle .hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tregisterShowHierarchy: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar hierarchyButton = $('.detailViewTitle');\n\t\t\tvar url = 'index.php?module=Accounts&view=AccountHierarchy&record=' + app.getRecordId();\n\t\t\thierarchyButton.on('click', '.js-detail__icon, .recordLabelValue', function (e) {\n\t\t\t\tthisInstance.getAccountHierarchyResponseData(url).done(function (data) {\n\t\t\t\t\tthisInstance.displayAccountHierarchyResponseData(data);\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.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","accountHierarchyResponseCache","getAccountHierarchyResponseData","params","thisInstance","aDeferred","jQuery","Deferred","isEmptyObject","AppConnector","request","done","data","resolve","promise","displayAccountHierarchyResponseData","callbackFunction","app","showScrollBar","$","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","hierarchyButton","length","module","getModuleName","action","record","getRecordId","mode","response","success","html","result","registerShowHierarchy","url","on","registerEvents","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,aAEAA,gBAAgB,CACf,oBADe,CAEf,EAFe,CAGf;AAECC,6BAA6B,CAAE,EAFhC;AAID;AACA;AACA,KACEC,+BAA+B,CAAE,SAAUC,+BAAAA,CAAAA,MAAV,CAAkB,CAC9CC,IAAAA,YAAY,CAAG,IAD+B,CAE9CC,SAAS,CAAGC,MAAM,CAACC,QAAP,EAFkC,CAclD,OATW,MAAA,CAACC,aAAP,CAAqBJ,YAAY,CAACH,6BAAlC,CASL,CANCQ,YAAY,CAACC,OAAb,CAAqBP,MAArB,EAA6BQ,IAA7B,CAAkC,SAAUC,IAAV,CAAgB,CAEjDR,YAAY,CAACH,6BAAb,CAA6CW,IAFI,CAGjDP,SAAS,CAACQ,OAAV,CAAkBT,YAAY,CAACH,6BAA/B,EACA,CAJD,CAMD,CARCI,SAAS,CAACQ,OAAV,CAAkBT,YAAY,CAACH,6BAA/B,CAQD,CAAOI,SAAS,CAACS,OAAV,EACP,CAtBF;AAyBD;AACA,KACEC,mCAAmC,CAAE,SAAA,mCAAA,CAAUH,IAAV,CAAgB,CACpD,IAAII,gBAAgB,CAAG,UAAY,CAClCC,GAAG,CAACC,aAAJ,CA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AmB,OAAnB,CAA4B,qCAA5B,CAAmE,UAAa,CAC/ExC,YAAY,CAACF,+BAAb,CAA6CyC,GAA7C,CAAkDhC,CAAAA,IAAlD,CAAuD,SAAUC,IAAV,CAAgB,CACtER,YAAY,CAACW,mCAAb,CAAiDH,IAAjD,EACA,CAFD,EAGA,CAJD,EAKA,CApEF,CAqECiC,cAAc,CAAE,SAAY,cAAA,EAAA,CAC3B,KAAKC,MAAL,EAD2B,CAE3B,IAAA,CAAKjB,4BAAL,EAF2B,CAG3B,IAAA,CAAKa,qBAAL,GACA,CAzEF,CAHe;;"}
\ No newline at end of file
+{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Accounts_Detail_Js',\n\t{},\n\t{\n\t\t//It stores the Account Hierarchy response data\n\t\taccountHierarchyResponseCache: {},\n\t\t/**\n\t\t * function to get the AccountHierarchy response data\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetAccountHierarchyResponseData: function (params) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar aDeferred = jQuery.Deferred();\n\n\t\t\t//Check in the cache\n\t\t\tif (!jQuery.isEmptyObject(thisInstance.accountHierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.accountHierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\t//store it in the cache, so that we dont do multiple request\n\t\t\t\t\tthisInstance.accountHierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.accountHierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/*\n\t\t * function to display the AccountHierarchy response data\n\t\t */\n\t\tdisplayAccountHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tvar hierarchyButton = $('.detailViewTitle .hierarchy');\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tvar params = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\t\tAppConnector.request(params).done(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.detailViewTitle .hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tregisterShowHierarchy: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar hierarchyButton = $('.detailViewTitle');\n\t\t\tvar url = 'index.php?module=Accounts&view=AccountHierarchy&record=' + app.getRecordId();\n\t\t\thierarchyButton.on('click', '.js-detail__icon, .recordLabelValue', function (e) {\n\t\t\t\tthisInstance.getAccountHierarchyResponseData(url).done(function (data) {\n\t\t\t\t\tthisInstance.displayAccountHierarchyResponseData(data);\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.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","accountHierarchyResponseCache","getAccountHierarchyResponseData","params","thisInstance","aDeferred","jQuery","Deferred","isEmptyObject","AppConnector","request","done","data","resolve","promise","displayAccountHierarchyResponseData","callbackFunction","app","showScrollBar","$","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","hierarchyButton","length","module","getModuleName","action","record","getRecordId","mode","response","success","html","result","registerShowHierarchy","url","on","registerEvents","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,gBAAgB,CACf,oBAAoB,CACpB,EAAE,CACF;AAECC,6BAA6B,CAAE,EAAE;AAEnC;AACA;AACA,KACEC,+BAA+B,CAAE,SAAAA,gCAAUC,MAAM,CAAE,KAC9CC,YAAY,CAAG,IAAI,CACnBC,SAAS,CAAGC,MAAM,CAACC,QAAQ,EAAE,CAEjC;AAUA,OATKD,MAAM,CAACE,aAAa,CAACJ,YAAY,CAACH,6BAA6B,CAAC,CAGpEQ,YAAY,CAACC,OAAO,CAACP,MAAM,CAAC,CAACQ,IAAI,CAAC,SAAUC,IAAI,CAAE,CAEjDR,YAAY,CAACH,6BAA6B,CAAGW,IAAI,CACjDP,SAAS,CAACQ,OAAO,CAACT,YAAY,CAACH,6BAA6B,EAC7D,CAAC,CAAC,CANFI,SAAS,CAACQ,OAAO,CAACT,YAAY,CAACH,6BAA6B,CAAC,CAQvDI,SAAS,CAACS,OAAO,EACzB,CAAC;AAGH;AACA,KACEC,mCAAmC,CAAE,SAAAA,mCAAAA,CAAUH,IAAI,CAAE,CACpD,IAAII,gBAAgB,CAAG,UAAY,CAClCC,GAAG,CAACC,aAAa,CAACC,CAAC,CAAC,kBAAkB,CAAC,CAAE,CACxCC,MAAM,CAAE,OAAO,CACfC,WAAW,CAAA,CAAA,CAAM,CACjBC,IAAI,CAAE,KACP,CAAC,EACF,CAAC,CACDL,GAAG,CAACM,eAAe,CAACX,IAA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AA,EAAY,CAC3B,IAAI,CAACC,MAAM,EAAE,CACb,IAAI,CAACjB,4BAA4B,EAAE,CACnC,IAAI,CAACa,qBAAqB,GAC3B,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js b/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js
index c3aace9f9c68..5be94696a95a 100644
--- a/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js
+++ b/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";Vtiger_ListPreview_Js("Accounts_ListPreview_Js",{},{/**
+/* {[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]} */"use strict";Vtiger_ListPreview_Js("Accounts_ListPreview_Js",{},{/**
* Sets account hierarchy
*/registerHierarchyRecordCount:function registerHierarchyRecordCount(){var iframe=$(".listPreviewframe");iframe.on("load",function(){var contents=iframe.contents(),hierarchyButton=contents.find(".detailViewTitle .hierarchy");hierarchyButton&&AppConnector.request({module:app.getModuleName(),action:"RelationAjax",record:contents.find("#recordId").val(),mode:"getHierarchyCount"}).done(function(response){response.success&&contents.find(".detailViewTitle .hierarchy .badge").html(response.result);});});},/**
* Executes event listener.
diff --git a/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js.map b/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js.map
index e96e97c71742..6141a6a544e3 100644
--- a/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js.map
+++ b/public_html/layouts/basic/modules/Accounts/resources/ListPreview.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"ListPreview.min.js","sources":["ListPreview.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\nVtiger_ListPreview_Js(\n\t'Accounts_ListPreview_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Sets account hierarchy\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tconst iframe = $('.listPreviewframe');\n\t\t\tiframe.on('load', function () {\n\t\t\t\tvar contents = iframe.contents();\n\t\t\t\tvar hierarchyButton = contents.find('.detailViewTitle .hierarchy');\n\t\t\t\tif (hierarchyButton) {\n\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\t\trecord: contents.find('#recordId').val(),\n\t\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t\t}).done(function (response) {\n\t\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t\tcontents.find('.detailViewTitle .hierarchy .badge').html(response.result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Executes event listener.\n\t\t * @param {jQuery} container - current container for reference.\n\t\t */\n\t\tpostLoadListViewRecordsEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t},\n\t\t/**\n\t\t * Registers ListPreview's events.\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_ListPreview_Js","registerHierarchyRecordCount","$","iframe","on","contents","hierarchyButton","find","AppConnector","request","module","app","getModuleName","action","record","val","mode","done","response","success","html","result","postLoadListViewRecordsEvents","container","_super","registerEvents"],"mappings":";;AAAA,kKACA,aAEAA,qBAAqB,CACpB,yBADoB,CAEpB,EAFoB,CAGpB;AAED;AACA,KACEC,4BAA4B,CAAE,SAAY,4BAAA,EAAA,CACzC,IAAY,MAAA,CAAGC,CAAC,CAAC,mBAAD,CAAhB,CACAC,MAAM,CAACC,EAAP,CAAU,MAAV,CAAkB,UAAY,CACzBC,IAAAA,QAAQ,CAAGF,MAAM,CAACE,QAAP,EADc,CAEzBC,eAAe,CAAGD,QAAQ,CAACE,IAAT,CAAc,6BAAd,CAFO,CAGzBD,eAHyB,EAI5BE,YAAY,CAACC,OAAb,CAAqB,CACpBC,MAAM,CAAEC,GAAG,CAACC,aAAJ,EADY,CAEpBC,MAAM,CAAE,cAFY,CAGpBC,MAAM,CAAET,QAAQ,CAACE,IAAT,CAAc,WAAd,CAA2BQ,CAAAA,GAA3B,EAHY,CAIpBC,IAAI,CAAE,mBAJc,CAArB,CAKGC,CAAAA,IALH,CAKQ,SAAUC,QAAV,CAAoB,CACvBA,QAAQ,CAACC,OADc,EAE1Bd,QAAQ,CAACE,IAAT,CAAc,oCAAd,CAAA,CAAoDa,IAApD,CAAyDF,QAAQ,CAACG,MAAlE,EAED,CATD,EAWD,CAfD,EAgBA,CAtBF;AAwBD;AACA;AACA,KACEC,6BAA6B,CAAE,SAAA,6BAAA,CAAUC,SAAV,CAAqB,CACnD,IAAKC,CAAAA,MAAL,CAAYD,SAAZ,CADmD,CAEnD,IAAA,CAAKtB,4BAAL,GACA,CA9BF;AAgCD;AACA,KACEwB,cAAc,CAAE,SAAY,cAAA,EAAA,CAC3B,IAAKD,CAAAA,MAAL,EAD2B,CAE3B,IAAKvB,CAAAA,4BAAL,GACA,CArCF,CAHoB;;"}
\ No newline at end of file
+{"version":3,"file":"ListPreview.min.js","sources":["ListPreview.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\nVtiger_ListPreview_Js(\n\t'Accounts_ListPreview_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Sets account hierarchy\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tconst iframe = $('.listPreviewframe');\n\t\t\tiframe.on('load', function () {\n\t\t\t\tvar contents = iframe.contents();\n\t\t\t\tvar hierarchyButton = contents.find('.detailViewTitle .hierarchy');\n\t\t\t\tif (hierarchyButton) {\n\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\t\trecord: contents.find('#recordId').val(),\n\t\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t\t}).done(function (response) {\n\t\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t\tcontents.find('.detailViewTitle .hierarchy .badge').html(response.result);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Executes event listener.\n\t\t * @param {jQuery} container - current container for reference.\n\t\t */\n\t\tpostLoadListViewRecordsEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t},\n\t\t/**\n\t\t * Registers ListPreview's events.\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_ListPreview_Js","registerHierarchyRecordCount","iframe","$","on","contents","hierarchyButton","find","AppConnector","request","module","app","getModuleName","action","record","val","mode","done","response","success","html","result","postLoadListViewRecordsEvents","container","_super","registerEvents"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,qBAAqB,CACpB,yBAAyB,CACzB,EAAE,CACF;AAED;AACA,KACEC,4BAA4B,CAAE,SAAAA,4BAAAA,EAAY,CACzC,IAAMC,MAAM,CAAGC,CAAC,CAAC,mBAAmB,CAAC,CACrCD,MAAM,CAACE,EAAE,CAAC,MAAM,CAAE,UAAY,CAAA,IACzBC,QAAQ,CAAGH,MAAM,CAACG,QAAQ,EAAE,CAC5BC,eAAe,CAAGD,QAAQ,CAACE,IAAI,CAAC,6BAA6B,CAAC,CAC9DD,eAAe,EAClBE,YAAY,CAACC,OAAO,CAAC,CACpBC,MAAM,CAAEC,GAAG,CAACC,aAAa,EAAE,CAC3BC,MAAM,CAAE,cAAc,CACtBC,MAAM,CAAET,QAAQ,CAACE,IAAI,CAAC,WAAW,CAAC,CAACQ,GAAG,EAAE,CACxCC,IAAI,CAAE,mBACP,CAAC,CAAC,CAACC,IAAI,CAAC,SAAUC,QAAQ,CAAE,CACvBA,QAAQ,CAACC,OAAO,EACnBd,QAAQ,CAACE,IAAI,CAAC,oCAAoC,CAAC,CAACa,IAAI,CAACF,QAAQ,CAACG,MAAM,EAE1E,CAAC,EAEH,CAAC,EACF,CAAC;AAEH;AACA;AACA,KACEC,6BAA6B,CAAE,SAAAA,6BAAAA,CAAUC,SAAS,CAAE,CACnD,IAAI,CAACC,MAAM,CAACD,SAAS,CAAC,CACtB,IAAI,CAACtB,4BAA4B,GAClC,CAAC;AAEH;AACA,KACEwB,cAAc,CAAE,SAAAA,gBAAY,CAC3B,IAAI,CAACD,MAAM,EAAE,CACb,IAAI,CAACvB,4BAA4B,GAClC,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js b/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js
index ef23a216f3e3..f356cfda8eb1 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js
+++ b/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js
@@ -1,5 +1,5 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";jQuery.Class("Calendar_ActivityStateModal_Js",{},{registerActivityState:function registerActivityState(){var self=this;$(".js-activity-buttons button:not(.close)").on("click",function(e){var currentTarget=$(e.currentTarget),viewName=app.getViewName();if(app.hideModalWindow(),1===currentTarget.data("type"))self.updateActivityState(currentTarget);else {var isReminder=currentTarget.closest("#calendar-reminder-modal").length;if("Calendar"===app.getModuleName()&&"CalendarExtended"===viewName&&!isReminder){var calendarInstance=new Calendar_Calendar_Js;calendarInstance.getCalendarSidebarData({module:"Calendar",view:"EventForm",record:currentTarget.data("id"),isDuplicate:!0,addRelation:!0,sourceModule:"Calendar",sourceRecord:currentTarget.data("id")});}else if(currentTarget.hasClass("showQuickCreate")||isReminder){var progressIndicatorElement=$.progressIndicator({position:"html",blockInfo:{enabled:!0}}),url="index.php?module=Calendar&view=QuickCreateAjax&addRelation=true&sourceModule=Calendar&sourceRecord="+currentTarget.data("id")+"&fillFields=all",params={};params.noCache=!0,App.Components.QuickCreate.getForm(url,"Calendar",params).done(function(data){progressIndicatorElement.progressIndicator({mode:"hide"}),App.Components.QuickCreate.showModal(data,{callbackFunction:function callbackFunction(data){data&&data.success&&data.result.followup.value==currentTarget.data("id")&&self.updateActivityState(currentTarget);}});});}}});},updateActivityState:function updateActivityState(currentTarget){var params={module:"Calendar",action:"ActivityStateAjax",record:currentTarget.data("id"),state:currentTarget.data("state")};app.hideModalWindow();var progressIndicatorElement=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}});AppConnector.request(params).done(function(data){if(data.success){var viewName=app.getViewName();if("Detail"===viewName){var thisInstance=Vtiger_Detail_Js.getInstance(),widget=$(".activityWidgetContainer .widgetContentBlock");if(widget.length)thisInstance.loadWidget(widget);else {var recentActivitiesTab=thisInstance.getTabByLabel(thisInstance.detailViewRecentActivitiesTabLabel);recentActivitiesTab&&recentActivitiesTab.trigger("click"),"Calendar"===app.getModuleName()&&(recentActivitiesTab=thisInstance.getSelectedTab().length&&thisInstance.getSelectedTab().data("linkKey")!=thisInstance.detailViewDetailsTabLabel?$(""):thisInstance.getTabContainer().find("[data-link-key=\""+thisInstance.detailViewDetailsTabLabel+"\"]:not(.d-none)"),$(".showModal.closeCalendarRekord").addClass("d-none"),recentActivitiesTab.trigger("click"));}}if("List"===viewName){var listinstance=new Vtiger_List_Js;listinstance.getListViewRecords();}if("DashBoard"===viewName&&new Vtiger_DashBoard_Js().getContainer().find(".js-widget-refresh").trigger("click"),"Calendar"===app.getModuleName()&&("Calendar"===viewName||"CalendarExtended"===viewName)){var calendarInstance=new window["Calendar_".concat(viewName,"_Js")];calendarInstance.loadCalendarData(),calendarInstance.getCalendarCreateView();}//updates the Calendar Reminder popup's status
-Vtiger_Index_Js.requestReminder(),progressIndicatorElement.progressIndicator({mode:"hide"});}else return !1});},registerEvents:function registerEvents(){this.registerActivityState();}}),jQuery(document).ready(function(){var instance=new Calendar_ActivityStateModal_Js;instance.registerEvents();});
+/* {[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]} */"use strict";jQuery.Class("Calendar_ActivityStateModal_Js",{},{registerActivityState:function registerActivityState(){var self=this;$(".js-activity-buttons button:not(.close)").on("click",function(e){var currentTarget=$(e.currentTarget),viewName=app.getViewName();if(app.hideModalWindow(),1===currentTarget.data("type"))self.updateActivityState(currentTarget);else {var isReminder=currentTarget.closest("#calendar-reminder-modal").length;if(currentTarget.hasClass("showQuickCreate")||isReminder){var progressIndicatorElement=$.progressIndicator({position:"html",blockInfo:{enabled:!0}}),url="index.php?module=Calendar&view=QuickCreateAjax&addRelation=true&sourceModule=Calendar&sourceRecord="+currentTarget.data("id")+"&fillFields=all",params={};params.noCache=!0,App.Components.QuickCreate.getForm(url,"Calendar",params).done(function(data){progressIndicatorElement.progressIndicator({mode:"hide"}),App.Components.QuickCreate.showModal(data,{callbackFunction:function callbackFunction(data){data&&data.success&&data.result.followup.value==currentTarget.data("id")&&self.updateActivityState(currentTarget);}});});}}});},updateActivityState:function updateActivityState(currentTarget){var params={module:"Calendar",action:"ActivityStateAjax",record:currentTarget.data("id"),state:currentTarget.data("state")};app.hideModalWindow();var progressIndicatorElement=jQuery.progressIndicator({position:"html",blockInfo:{enabled:!0}});AppConnector.request(params).done(function(data){if(data.success){var viewName=app.getViewName();if("Detail"===viewName){var thisInstance=Vtiger_Detail_Js.getInstance(),widget=$(".activityWidgetContainer .widgetContentBlock");if(widget.length)thisInstance.loadWidget(widget);else {var recentActivitiesTab=thisInstance.getTabByLabel(thisInstance.detailViewRecentActivitiesTabLabel);recentActivitiesTab&&recentActivitiesTab.trigger("click"),"Calendar"===app.getModuleName()&&(recentActivitiesTab=thisInstance.getSelectedTab().length&&thisInstance.getSelectedTab().data("linkKey")!=thisInstance.detailViewDetailsTabLabel?$(""):thisInstance.getTabContainer().find("[data-link-key=\""+thisInstance.detailViewDetailsTabLabel+"\"]:not(.d-none)"),$(".showModal.closeCalendarRekord").addClass("d-none"),recentActivitiesTab.trigger("click"));}}if("List"===viewName){var listinstance=new Vtiger_List_Js;listinstance.getListViewRecords();}//updates the Calendar Reminder popup's status
+"DashBoard"===viewName&&new Vtiger_DashBoard_Js().getContainer().find(".js-widget-refresh").trigger("click"),"Calendar"===app.getModuleName()&&"Calendar"===viewName&&(app.pageController.loadCalendarData(),app.pageController.getCalendarCreateView()),Vtiger_Index_Js.requestReminder(),progressIndicatorElement.progressIndicator({mode:"hide"});}else return !1});},registerEvents:function registerEvents(){this.registerActivityState();}}),jQuery(document).ready(function(){var instance=new Calendar_ActivityStateModal_Js;instance.registerEvents();});
//# sourceMappingURL=ActivityStateModal.min.js.map
diff --git a/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js.map
index 7df86bbcf974..ee5df8a85aaf 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/ActivityStateModal.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"ActivityStateModal.min.js","sources":["ActivityStateModal.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\njQuery.Class(\n\t'Calendar_ActivityStateModal_Js',\n\t{},\n\t{\n\t\tregisterActivityState() {\n\t\t\tconst self = this;\n\t\t\t$('.js-activity-buttons button:not(.close)').on('click', function (e) {\n\t\t\t\tlet currentTarget = $(e.currentTarget),\n\t\t\t\t\tviewName = app.getViewName();\n\t\t\t\tapp.hideModalWindow();\n\t\t\t\tif (1 === currentTarget.data('type')) {\n\t\t\t\t\tself.updateActivityState(currentTarget);\n\t\t\t\t} else {\n\t\t\t\t\tlet isReminder = currentTarget.closest('#calendar-reminder-modal').length;\n\t\t\t\t\tif (app.getModuleName() === 'Calendar' && viewName === 'CalendarExtended' && !isReminder) {\n\t\t\t\t\t\tlet calendarInstance = new Calendar_Calendar_Js();\n\t\t\t\t\t\tcalendarInstance.getCalendarSidebarData({\n\t\t\t\t\t\t\tmodule: 'Calendar',\n\t\t\t\t\t\t\tview: 'EventForm',\n\t\t\t\t\t\t\trecord: currentTarget.data('id'),\n\t\t\t\t\t\t\tisDuplicate: true,\n\t\t\t\t\t\t\taddRelation: true,\n\t\t\t\t\t\t\tsourceModule: 'Calendar',\n\t\t\t\t\t\t\tsourceRecord: currentTarget.data('id')\n\t\t\t\t\t\t});\n\t\t\t\t\t} else if (currentTarget.hasClass('showQuickCreate') || isReminder) {\n\t\t\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\t\t\t\tposition: 'html',\n\t\t\t\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\t\t\t\tenabled: true\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\turl =\n\t\t\t\t\t\t\t\t'index.php?module=Calendar&view=QuickCreateAjax&addRelation=true&sourceModule=Calendar&sourceRecord=' +\n\t\t\t\t\t\t\t\tcurrentTarget.data('id') +\n\t\t\t\t\t\t\t\t'&fillFields=all',\n\t\t\t\t\t\t\tparams = {};\n\t\t\t\t\t\tparams.noCache = true;\n\t\t\t\t\t\tApp.Components.QuickCreate.getForm(url, 'Calendar', params).done(function (data) {\n\t\t\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t\tApp.Components.QuickCreate.showModal(data, {\n\t\t\t\t\t\t\t\tcallbackFunction: function (data) {\n\t\t\t\t\t\t\t\t\tif (data && data.success && data.result.followup.value == currentTarget.data('id')) {\n\t\t\t\t\t\t\t\t\t\tself.updateActivityState(currentTarget);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tupdateActivityState: function (currentTarget) {\n\t\t\tlet params = {\n\t\t\t\tmodule: 'Calendar',\n\t\t\t\taction: 'ActivityStateAjax',\n\t\t\t\trecord: currentTarget.data('id'),\n\t\t\t\tstate: currentTarget.data('state')\n\t\t\t};\n\t\t\tapp.hideModalWindow();\n\t\t\tlet progressIndicatorElement = jQuery.progressIndicator({\n\t\t\t\tposition: 'html',\n\t\t\t\tblockInfo: {\n\t\t\t\t\tenabled: true\n\t\t\t\t}\n\t\t\t});\n\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\tif (data.success) {\n\t\t\t\t\tlet viewName = app.getViewName();\n\t\t\t\t\tif (viewName === 'Detail') {\n\t\t\t\t\t\tconst thisInstance = Vtiger_Detail_Js.getInstance();\n\t\t\t\t\t\tlet widget = $('.activityWidgetContainer .widgetContentBlock');\n\t\t\t\t\t\tif (widget.length) {\n\t\t\t\t\t\t\tthisInstance.loadWidget(widget);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlet recentActivitiesTab = thisInstance.getTabByLabel(thisInstance.detailViewRecentActivitiesTabLabel);\n\t\t\t\t\t\t\tif (recentActivitiesTab) {\n\t\t\t\t\t\t\t\trecentActivitiesTab.trigger('click');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (app.getModuleName() === 'Calendar') {\n\t\t\t\t\t\t\t\trecentActivitiesTab =\n\t\t\t\t\t\t\t\t\t!thisInstance.getSelectedTab().length ||\n\t\t\t\t\t\t\t\t\tthisInstance.getSelectedTab().data('linkKey') == thisInstance.detailViewDetailsTabLabel\n\t\t\t\t\t\t\t\t\t\t? thisInstance\n\t\t\t\t\t\t\t\t\t\t\t\t.getTabContainer()\n\t\t\t\t\t\t\t\t\t\t\t\t.find('[data-link-key=\"' + thisInstance.detailViewDetailsTabLabel + '\"]:not(.d-none)')\n\t\t\t\t\t\t\t\t\t\t: $('');\n\t\t\t\t\t\t\t\t$('.showModal.closeCalendarRekord').addClass('d-none');\n\t\t\t\t\t\t\t\trecentActivitiesTab.trigger('click');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (viewName === 'List') {\n\t\t\t\t\t\tlet listinstance = new Vtiger_List_Js();\n\t\t\t\t\t\tlistinstance.getListViewRecords();\n\t\t\t\t\t}\n\t\t\t\t\tif (viewName === 'DashBoard') {\n\t\t\t\t\t\tnew Vtiger_DashBoard_Js().getContainer().find('.js-widget-refresh').trigger('click');\n\t\t\t\t\t}\n\t\t\t\t\tif (app.getModuleName() === 'Calendar' && (viewName === 'Calendar' || viewName === 'CalendarExtended')) {\n\t\t\t\t\t\tconst calendarInstance = new window[`Calendar_${viewName}_Js`]();\n\t\t\t\t\t\tcalendarInstance.loadCalendarData();\n\t\t\t\t\t\tcalendarInstance.getCalendarCreateView();\n\t\t\t\t\t}\n\t\t\t\t\t//updates the Calendar Reminder popup's status\n\t\t\t\t\tVtiger_Index_Js.requestReminder();\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tthis.registerActivityState();\n\t\t}\n\t}\n);\n\njQuery(document).ready(function (e) {\n\tvar instance = new Calendar_ActivityStateModal_Js();\n\tinstance.registerEvents();\n});\n"],"names":["jQuery","Class","registerActivityState","self","$","on","e","currentTarget","viewName","app","getViewName","hideModalWindow","data","updateActivityState","isReminder","closest","length","getModuleName","calendarInstance","getCalendarSidebarData","module","view","record","isDuplicate","addRelation","sourceModule","sourceRecord","hasClass","progressIndicatorElement","progressIndicator","position","blockInfo","enabled","url","params","noCache","App","Components","QuickCreate","getForm","done","mode","showModal","callbackFunction","success","result","followup","value","action","state","AppConnector","request","Vtiger_Detail_Js","getInstance","widget","thisInstance","loadWidget","recentActivitiesTab","getTabByLabel","detailViewRecentActivitiesTabLabel","trigger","getSelectedTab","detailViewDetailsTabLabel","getTabContainer","find","addClass","Vtiger_List_Js","listinstance","getListViewRecords","Vtiger_DashBoard_Js","getContainer","loadCalendarData","getCalendarCreateView","Vtiger_Index_Js","requestReminder","registerEvents","document","ready","instance"],"mappings":";;AAAA,kKACA,YAEAA,CAAAA,MAAM,CAACC,KAAP,CACC,gCADD,CAEC,EAFD,CAGC,CACCC,qBADD,CAAA,SAAA,qBAAA,EACyB,CACvB,IAAMC,IAAI,CAAG,IAAb,CACAC,CAAC,CAAC,yCAAD,CAAD,CAA6CC,EAA7C,CAAgD,OAAhD,CAAyD,SAAUC,CAAV,CAAa,CACrE,IAAIC,aAAa,CAAGH,CAAC,CAACE,CAAC,CAACC,aAAH,CAArB,CACCC,QAAQ,CAAGC,GAAG,CAACC,WAAJ,EADZ,CAGA,GADAD,GAAG,CAACE,eAAJ,EACA,CAAI,CAAMJ,GAAAA,aAAa,CAACK,IAAd,CAAmB,MAAnB,CAAV,CACCT,IAAI,CAACU,mBAAL,CAAyBN,aAAzB,CADD,CAEO,KAAA,CACN,IAAIO,UAAU,CAAGP,aAAa,CAACQ,OAAd,CAAsB,0BAAtB,CAAkDC,CAAAA,MAAnE,CACA,GAA4B,UAAxB,GAAAP,GAAG,CAACQ,aAAJ,EAAmD,EAAA,kBAAb,GAAAT,QAAtC,EAAyE,CAACM,UAA9E,CAA0F,CACzF,IAAII,gBAAgB,CAAG,wBAAvB,CACAA,gBAAgB,CAACC,sBAAjB,CAAwC,CACvCC,MAAM,CAAE,UAD+B,CAEvCC,IAAI,CAAE,WAFiC,CAGvCC,MAAM,CAAEf,aAAa,CAACK,IAAd,CAAm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.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_ActivityStateModal_Js',\n\t{},\n\t{\n\t\tregisterActivityState() {\n\t\t\tconst self = this;\n\t\t\t$('.js-activity-buttons button:not(.close)').on('click', function (e) {\n\t\t\t\tlet currentTarget = $(e.currentTarget),\n\t\t\t\t\tviewName = app.getViewName();\n\t\t\t\tapp.hideModalWindow();\n\t\t\t\tif (1 === currentTarget.data('type')) {\n\t\t\t\t\tself.updateActivityState(currentTarget);\n\t\t\t\t} else {\n\t\t\t\t\tlet isReminder = currentTarget.closest('#calendar-reminder-modal').length;\n\t\t\t\t\tif (currentTarget.hasClass('showQuickCreate') || isReminder) {\n\t\t\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\t\t\t\tposition: 'html',\n\t\t\t\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\t\t\t\tenabled: true\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\turl =\n\t\t\t\t\t\t\t\t'index.php?module=Calendar&view=QuickCreateAjax&addRelation=true&sourceModule=Calendar&sourceRecord=' +\n\t\t\t\t\t\t\t\tcurrentTarget.data('id') +\n\t\t\t\t\t\t\t\t'&fillFields=all',\n\t\t\t\t\t\t\tparams = {};\n\t\t\t\t\t\tparams.noCache = true;\n\t\t\t\t\t\tApp.Components.QuickCreate.getForm(url, 'Calendar', params).done(function (data) {\n\t\t\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t\tApp.Components.QuickCreate.showModal(data, {\n\t\t\t\t\t\t\t\tcallbackFunction: function (data) {\n\t\t\t\t\t\t\t\t\tif (data && data.success && data.result.followup.value == currentTarget.data('id')) {\n\t\t\t\t\t\t\t\t\t\tself.updateActivityState(currentTarget);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tupdateActivityState: function (currentTarget) {\n\t\t\tlet params = {\n\t\t\t\tmodule: 'Calendar',\n\t\t\t\taction: 'ActivityStateAjax',\n\t\t\t\trecord: currentTarget.data('id'),\n\t\t\t\tstate: currentTarget.data('state')\n\t\t\t};\n\t\t\tapp.hideModalWindow();\n\t\t\tlet progressIndicatorElement = jQuery.progressIndicator({\n\t\t\t\tposition: 'html',\n\t\t\t\tblockInfo: {\n\t\t\t\t\tenabled: true\n\t\t\t\t}\n\t\t\t});\n\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\tif (data.success) {\n\t\t\t\t\tlet viewName = app.getViewName();\n\t\t\t\t\tif (viewName === 'Detail') {\n\t\t\t\t\t\tconst thisInstance = Vtiger_Detail_Js.getInstance();\n\t\t\t\t\t\tlet widget = $('.activityWidgetContainer .widgetContentBlock');\n\t\t\t\t\t\tif (widget.length) {\n\t\t\t\t\t\t\tthisInstance.loadWidget(widget);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlet recentActivitiesTab = thisInstance.getTabByLabel(thisInstance.detailViewRecentActivitiesTabLabel);\n\t\t\t\t\t\t\tif (recentActivitiesTab) {\n\t\t\t\t\t\t\t\trecentActivitiesTab.trigger('click');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (app.getModuleName() === 'Calendar') {\n\t\t\t\t\t\t\t\trecentActivitiesTab =\n\t\t\t\t\t\t\t\t\t!thisInstance.getSelectedTab().length ||\n\t\t\t\t\t\t\t\t\tthisInstance.getSelectedTab().data('linkKey') == thisInstance.detailViewDetailsTabLabel\n\t\t\t\t\t\t\t\t\t\t? thisInstance\n\t\t\t\t\t\t\t\t\t\t\t\t.getTabContainer()\n\t\t\t\t\t\t\t\t\t\t\t\t.find('[data-link-key=\"' + thisInstance.detailViewDetailsTabLabel + '\"]:not(.d-none)')\n\t\t\t\t\t\t\t\t\t\t: $('');\n\t\t\t\t\t\t\t\t$('.showModal.closeCalendarRekord').addClass('d-none');\n\t\t\t\t\t\t\t\trecentActivitiesTab.trigger('click');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (viewName === 'List') {\n\t\t\t\t\t\tlet listinstance = new Vtiger_List_Js();\n\t\t\t\t\t\tlistinstance.getListViewRecords();\n\t\t\t\t\t}\n\t\t\t\t\tif (viewName === 'DashBoard') {\n\t\t\t\t\t\tnew Vtiger_DashBoard_Js().getContainer().find('.js-widget-refresh').trigger('click');\n\t\t\t\t\t}\n\t\t\t\t\tif (app.getModuleName() === 'Calendar' && viewName === 'Calendar') {\n\t\t\t\t\t\tapp.pageController.loadCalendarData();\n\t\t\t\t\t\tapp.pageController.getCalendarCreateView();\n\t\t\t\t\t}\n\t\t\t\t\t//updates the Calendar Reminder popup's status\n\t\t\t\t\tVtiger_Index_Js.requestReminder();\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tthis.registerActivityState();\n\t\t}\n\t}\n);\n\njQuery(document).ready(function (e) {\n\tvar instance = new Calendar_ActivityStateModal_Js();\n\tinstance.registerEvents();\n});\n"],"names":["jQuery","Class","registerActivityState","self","$","on","e","currentTarget","viewName","app","getViewName","hideModalWindow","data","updateActivityState","isReminder","closest","length","hasClass","progressIndicatorElement","progressIndicator","position","blockInfo","enabled","url","params","noCache","App","Components","QuickCreate","getForm","done","mode","showModal","callbackFunction","success","result","followup","value","module","action","record","state","AppConnector","request","thisInstance","Vtiger_Detail_Js","getInstance","widget","loadWidget","recentActivitiesTab","getTabByLabel","detailViewRecentActivitiesTabLabel","trigger","getModuleName","getSelectedTab","detailViewDetailsTabLabel","getTabContainer","find","addClass","listinstance","Vtiger_List_Js","getListViewRecords","Vtiger_DashBoard_Js","getContainer","pageController","loadCalendarData","getCalendarCreateView","Vtiger_Index_Js","requestReminder","registerEvents","document","ready","instance","Calendar_ActivityStateModal_Js"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,MAAM,CAACC,KAAK,CACX,gCAAgC,CAChC,EAAE,CACF,CACCC,qBAAqB,UAAAA,qBAAA,EAAG,CACvB,IAAMC,IAAI,CAAG,IAAI,CACjBC,CAAC,CAAC,yCAAyC,CAAC,CAACC,EAAE,CAAC,OAAO,CAAE,SAAUC,CAAC,CAAE,CACrE,IAAIC,aAAa,CAAGH,CAAC,CAACE,CAAC,CAACC,aAAa,CAAC,CACrCC,QAAQ,CAAGC,GAAG,CAACC,WAAW,EAAE,CAE7B,GADAD,GAAG,CAACE,eAAe,EAAE,CACjB,CAAC,GAAKJ,aAAa,CAACK,IAAI,CAAC,MAAM,CAAC,CACnCT,IAAI,CAACU,mBAAmB,CAACN,aAAa,CAAC,CAAA,KACjC,CACN,IAAIO,UAAU,CAAGP,aAAa,CAACQ,OAAO,CAAC,0BAA0B,CAAC,CAACC,MAAM,CACzE,GAAIT,aAAa,CAACU,QAAQ,CAAC,iBAAiB,CAAC,EAAIH,UAAU,CAAE,CAC5D,IAAII,wBAAwB,CAAGd,CAAC,CAACe,iBAAiB,CAAC,CACjDC,QAAQ,CAAE,MAAM,CAChBC,SAAS,CAAE,CACVC,OAAO,CACR,CAAA,CAAA,CACD,CAAC,CAAC,CACFC,GAAG,CACF,qGAAqG,CACrGhB,aAAa,CAACK,IAAI,CAAC,IAAI,CAAC,CACxB,iBAAiB,CAClBY,MAAM,CAAG,EAAE,CACZA,MAAM,CAACC,OAAO,CAAA,CAAA,CAAO,CACrBC,GAAG,CAACC,UAAU,CAACC,WAAW,CAACC,OAAO,CAACN,GAAG,CAAE,UAAU,CAAEC,MAAM,CAAC,CAACM,IAAI,CAAC,SAAUlB,IAAI,CAAE,CAChFM,wBAAwB,CAACC,iBAAiB,CAAC,CAAEY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Ac,CAAE,SAAAA,cAAA,EAAY,CAC3B,IAAI,CAACnE,qBAAqB,GAC3B,CACD,CACD,CAAC,CAEDF,MAAM,CAACsE,QAAQ,CAAC,CAACC,KAAK,CAAC,UAAa,CACnC,IAAIC,QAAQ,CAAG,IAAIC,8BAAgC,CACnDD,QAAQ,CAACH,cAAc,GACxB,CAAC,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js b/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js
index 7e4cf0317d1c..fcefe63e516f 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js
+++ b/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js
@@ -1,9 +1,9 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";/**
+/* {[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]} */"use strict";/**
* Class representing a modal calendar.
* @extends Calendar_Calendar_Js
- */function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;iarguments.length?target:receiver):desc.value}},_get.apply(this,arguments)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}window.Calendar_CalendarQuickCreate_Js=/*#__PURE__*/function(_Calendar_Calendar_Js){function Calendar_CalendarQuickCreate_Js(container,readonly){var _this;return _classCallCheck(this,Calendar_CalendarQuickCreate_Js),_this=_super.call(this,container,readonly),_this.isSwitchAllDays=!1,_this.sidebarName="add",_this.eventCreate=!1,_this.module="Calendar",_this.renderCalendar(),_this.registerEvents(),_this}/**
+ */function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;iarguments.length?target:receiver):desc.value}},_get.apply(this,arguments)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}window.Calendar_CalendarQuickCreate_Js=/*#__PURE__*/function(_Calendar_Calendar_Js){function Calendar_CalendarQuickCreate_Js(container,readonly){var _this;return _classCallCheck(this,Calendar_CalendarQuickCreate_Js),_this=_super.call(this,container,readonly),_this.isSwitchAllDays=!1,_this.sidebarName="add",_this.eventCreate=!1,_this.module="Calendar",_this.renderCalendar(),_this.registerEvents(),_this}/**
* Function sets calendar module's options
* @returns {{eventClick: function, headerToolbar: object, selectable: boolean}}
*/_inherits(Calendar_CalendarQuickCreate_Js,_Calendar_Calendar_Js);var _super=_createSuper(Calendar_CalendarQuickCreate_Js);return _createClass(Calendar_CalendarQuickCreate_Js,[{key:"setCalendarModuleOptions",value:function setCalendarModuleOptions(){var options=_get(_getPrototypeOf(Calendar_CalendarQuickCreate_Js.prototype),"setCalendarModuleOptions",this).call(this);return options.selectable=!0,options.headerToolbar={left:"dayGridMonth,".concat(app.getMainParams("weekView"),",").concat(app.getMainParams("dayView"),",today"),center:"prevYear,prev,title,next,nextYear",right:""},options.eventClick=function(info){info.jsEvent.preventDefault();},options}/**
diff --git a/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js.map
index 775a182b8485..1eeac7b61edc 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/CalendarQuickCreate.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"CalendarQuickCreate.min.js","sources":["CalendarQuickCreate.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\n/**\n * Class representing a modal calendar.\n * @extends Calendar_Calendar_Js\n */\nwindow.Calendar_CalendarQuickCreate_Js = class Calendar_CalendarQuickCreate_Js extends Calendar_Calendar_Js {\n\tconstructor(container, readonly) {\n\t\tsuper(container, readonly);\n\t\tthis.isSwitchAllDays = false;\n\t\tthis.sidebarName = 'add'; //available: add, status, edit\n\t\tthis.eventCreate = false;\n\t\tthis.module = 'Calendar';\n\t\tthis.renderCalendar();\n\t\tthis.registerEvents();\n\t}\n\t/**\n\t * Function sets calendar module's options\n\t * @returns {{eventClick: function, headerToolbar: object, selectable: boolean}}\n\t */\n\tsetCalendarModuleOptions() {\n\t\tlet options = super.setCalendarModuleOptions();\n\t\toptions.selectable = true;\n\t\toptions.headerToolbar = {\n\t\t\tleft: `dayGridMonth,${app.getMainParams('weekView')},${app.getMainParams('dayView')},today`,\n\t\t\tcenter: 'prevYear,prev,title,next,nextYear',\n\t\t\tright: ''\n\t\t};\n\t\toptions.eventClick = function (info) {\n\t\t\tinfo.jsEvent.preventDefault();\n\t\t};\n\t\treturn options;\n\t}\n\t/**\n\t * Get selected users\n\t * @returns {{ selectedIds: array, excludedIds: array }}\n\t */\n\tgetSelectedUsersCalendar() {\n\t\treturn { selectedIds: [this.container.find('.assigned_user_id').val()], excludedIds: [] };\n\t}\n\t/**\n\t * Function registers calendar events\n\t */\n\tregisterEvents() {\n\t\tconst calendarView = this.getCalendarView();\n\t\tthis.switchContainer = $(``).insertAfter(\n\t\t\tcalendarView.find('.fc-center')\n\t\t);\n\t\tthis.registerSwitchEvents();\n\t\tthis.registerUsersChange();\n\t\tthis.registerAutofillTime();\n\t\tthis.registerPopoverButtonsClickEvent();\n\t}\n\t/**\n\t * Function registers calendar switch event\n\t */\n\tregisterSwitchEvents() {\n\t\tif (app.getMainParams('hiddenDays', true) !== false) {\n\t\t\tthis.switchContainer.html(this.createSwitch());\n\t\t\tthis.switchContainer.find('input').on('change', (e) => {\n\t\t\t\tconst currentTarget = $(e.currentTarget);\n\t\t\t\tlet hiddenDays = [];\n\t\t\t\tif (typeof currentTarget.data('on-text') !== 'undefined') {\n\t\t\t\t\thiddenDays = app.getMainParams('hiddenDays', true);\n\t\t\t\t\tthis.isSwitchAllDays = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isSwitchAllDays = true;\n\t\t\t\t}\n\t\t\t\tthis.fullCalendar.setOption('hiddenDays', hiddenDays);\n\t\t\t\tthis.registerSwitchEvents();\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t * Generate filter buttons\n\t * @returns {string}\n\t */\n\tcreateSwitch() {\n\t\tlet on = app.vtranslate('JS_WORK_DAYS'),\n\t\t\toff = app.vtranslate('JS_ALL'),\n\t\t\tstate = this.isSwitchAllDays;\n\t\treturn `
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
`;\n\t}\n\t/**\n\t * Function registers select's user change event\n\t */\n\tregisterUsersChange() {\n\t\tthis.container.find('.assigned_user_id').on('change', () => {\n\t\t\tthis.reloadCalendarData();\n\t\t});\n\t}\n\t/**\n\t * Function invokes by FullCalendar, sets selected days in form\n\t * @param {Object} info\n\t * @returns\n\t */\n\tselectDays(info) {\n\t\tif (this.sidebarName === 'status') {\n\t\t\tthis.sidebarName = 'add';\n\t\t\tthis.getCalendarCreateView().done(() => {\n\t\t\t\tthis.selectDays(info);\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tthis.selectCallbackCreateModal(this.container, info);\n\t}\n\n\t/** @inheritdoc */\n\tregisterEditForm(sideBar) {\n\t\tlet editViewInstance = Vtiger_Edit_Js.getInstanceByModuleName(sideBar.find('[name=\"module\"]').val()),\n\t\t\tparams = [];\n\t\tlet rightFormCreate = sideBar.find('form.js-form');\n\t\teditViewInstance.registerBasicEvents(rightFormCreate);\n\t\trightFormCreate.validationEngine(app.validationEngineOptions);\n\t\tApp.Fields.Picklist.showSelect2ElementView(sideBar.find('select'));\n\t\tsideBar.find('.js-summary-close-edit').on('click', () => {\n\t\t\tthis.getCalendarCreateView();\n\t\t});\n\t\tApp.Components.QuickCreate.registerPostLoadEvents(rightFormCreate, params);\n\t\tApp.Fields.Text.Editor.register(sideBar.find('.js-editor'), { height: '5em', toolbar: 'Min' });\n\t}\n\n\t/** @inheritdoc */\n\tupdateSidebar(sidebar, data) {\n\t\tconst modalTitleContainer = $('.js-modal-title__container'),\n\t\t\tmodalTitles = modalTitleContainer.find('[class*=\"js-modal-title\"]');\n\t\tdata = $(data);\n\n\t\tmodalTitles.addClass('d-none');\n\t\tif (data.hasClass('js-edit-form')) {\n\t\t\tlet title = data.find('.js-sidebar-title ').data('title');\n\t\t\tmodalTitles.filter(`.js-modal-title--${title}`).removeClass('d-none');\n\t\t\tthis.sidebarName = title;\n\t\t} else if (data.hasClass('js-activity-state')) {\n\t\t\tmodalTitles.filter('.js-modal-title--status').removeClass('d-none');\n\t\t\tthis.sidebarName = 'status';\n\t\t}\n\t\tsidebar.find('.js-qc-form').html(data);\n\t}\n};\n\njQuery.Class(\n\t'Calendar_QuickCreate_Js',\n\t{},\n\t{\n\t\tregisterEvents: function (container) {\n\t\t\tnew Calendar_CalendarQuickCreate_Js(container.closest('.js-modal-container'), true);\n\t\t\tcontainer.find('.js-activity-buttons button').on('click', function (e) {\n\t\t\t\tlet form = container.find('form');\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tif (1 === currentTarget.data('type')) {\n\t\t\t\t\tform.append('');\n\t\t\t\t\tform.submit();\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('.js-activity-buttons').remove();\n\t\t\t\t\tform.find('[name=\"record\"]').val('');\n\t\t\t\t\tform.append('');\n\t\t\t\t\tform.append('');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n);\n"],"names":["window","Calendar_CalendarQuickCreate_Js","container","readonly","isSwitchAllDays","sidebarName","eventCreate","module","renderCalendar","registerEvents","selectable","options","headerToolbar","left","app","getMainParams","center","right","eventClick","info","jsEvent","preventDefault","selectedIds","find","val","excludedIds","getCalendarView","switchContainer","$","insertAfter","calendarView","registerSwitchEvents","registerUsersChange","registerAutofillTime","registerPopoverButtonsClickEvent","html","createSwitch","on","e","currentTarget","hiddenDays","data","fullCalendar","setOption","vtranslate","off","state","reloadCalendarData","getCalendarCreateView","done","selectDays","selectCallbackCreateModal","sideBar","editViewInstance","Vtiger_Edit_Js","getInstanceByModuleName","rightFormCreate","registerBasicEvents","validationEngine","validationEngineOptions","App","Fields","Picklist","showSelect2ElementView","Components","QuickCreate","registerPostLoadEvents","Text","Editor","register","height","toolbar","sidebar","modalTitleContainer","modalTitles","addClass","hasClass","filter","title","removeClass","Calendar_Calendar_Js","jQuery","Class","closest","form","append","submit","remove"],"mappings":";;AAAA,kKACA,YAEA,CAAA;AACA;AACA;AACA,0sGACAA,MAAM,CAACC,+BAAP,cACC,SAAA,qBAAA,CAAA,CAAA,SAAA,+BAAA,CAAYC,SAAZ,CAAuBC,QAAvB,CAAiC,CAAA,IAAA,KAAA,CAAA,OAAA,eAAA,CAAA,IAAA,CAAA,+BAAA,CAAA,CAAA,KAAA,CAAA,MAAA,CAAA,IAAA,CAAA,IAAA,CAC1BD,SAD0B,CACfC,QADe,EAEhC,KAAKC,CAAAA,eAAL,GAFgC,CAGhC,KAAA,CAAKC,WAAL,CAAmB,KAHa,CAIhC,KAAA,CAAKC,WAAL,CAJgC,CAAA,CAAA,CAKhC,MAAKC,MAAL,CAAc,UALkB,CAMhC,KAAA,CAAKC,cAAL,EANgC,CAOhC,MAAKC,cAAL,EAPgC,MAQhC,CACD;AACD;AACA;AACA,IAbA,SAcC,CAAA,+BAAA,CAAA,qBAAA,CAAA,CAAA,IAAA,MAAA,CAAA,YAAA,CAAA,+BAAA,CAAA,CAAA,OAAA,YAAA,CAAA,+BAAA,CAAA,CAAA,CAAA,GAAA,CAAA,0BAAA,CAAA,KAAA,CAAA,SAAA,wBAAA,EAA2B,CAC1B,IAAW,OAAA,CAAA,IAAA,CAAA,eAAA,CAAA,+BAAA,CAAA,SAAA,CAAA,CAAA,0BAAA,CAAA,IAAA,CAAA,CAAA,IAAA,CAAA,IAAA,CAAX,CAUA,OATO,OAAA,CAACC,UAAR,CAAA,CAAA,CASA,CARAC,OAAO,CAACC,aAAR,CAAwB,CACvBC,IAAI,CAAA,eAAA,CAAA,MAAA,CAAkBC,GAAG,CAACC,aAAJ,CAAkB,UAAlB,CAAlB,CAAmDD,GAAAA,CAAAA,CAAAA,MAAAA,CAAAA,GAAG,CAACC,aAAJ,CAAkB,SAAlB,CAAnD,CAAA,QAAA,CADmB,CAEvBC,MAA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,cAAc,CAAE,SAAUP,cAAAA,CAAAA,SAAV,CAAqB,CACpC,IAAID,+BAAJ,CAAoCC,SAAS,CAACiF,OAAV,CAAkB,qBAAlB,CAApC,CADoC,CAAA,CAAA,CAAA,CAEpCjF,SAAS,CAACqB,IAAV,CAAe,6BAAf,CAA8Cc,CAAAA,EAA9C,CAAiD,OAAjD,CAA0D,SAAUC,CAAV,CAAa,CAClE8C,IAAAA,IAAI,CAAGlF,SAAS,CAACqB,IAAV,CAAe,MAAf,CAD2D,CAElEgB,aAAa,CAAGX,CAAC,CAACU,CAAC,CAACC,aAAH,CAFiD,CAGlE,CAAA,GAAMA,aAAa,CAACE,IAAd,CAAmB,MAAnB,CAH4D,EAIrE2C,IAAI,CAACC,MAAL,CAAY,qDAAqD9C,CAAAA,aAAa,CAACE,IAAd,CAAmB,OAAnB,CAArD,CAAmF,KAA/F,CAJqE,CAKrE2C,IAAI,CAACE,MAAL,EALqE,GAOrEpF,SAAS,CAACqB,IAAV,CAAe,sBAAf,CAAuCgE,CAAAA,MAAvC,EAPqE,CAQrEH,IAAI,CAAC7D,IAAL,CAAU,mBAAV,CAAA,CAA6BC,GAA7B,CAAiC,EAAjC,CARqE,CASrE4D,IAAI,CAACC,MAAL,CAAY,uDAAZ,CATqE,CAUrED,IAAI,CAACC,MAAL,CAAY,+CAA+C9C,CAAAA,aAAa,CAACE,IAAd,CAAmB,IAAnB,CAA/C,CAA0E,KAAtF,CAVqE,EAYtE,CAZD,EAaA,CAhBF,CAHD;;"}
\ No newline at end of file
+{"version":3,"file":"CalendarQuickCreate.min.js","sources":["CalendarQuickCreate.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\n/**\n * Class representing a modal calendar.\n * @extends Calendar_Calendar_Js\n */\nwindow.Calendar_CalendarQuickCreate_Js = class Calendar_CalendarQuickCreate_Js extends Calendar_Calendar_Js {\n\tconstructor(container, readonly) {\n\t\tsuper(container, readonly);\n\t\tthis.isSwitchAllDays = false;\n\t\tthis.sidebarName = 'add'; //available: add, status, edit\n\t\tthis.eventCreate = false;\n\t\tthis.module = 'Calendar';\n\t\tthis.renderCalendar();\n\t\tthis.registerEvents();\n\t}\n\t/**\n\t * Function sets calendar module's options\n\t * @returns {{eventClick: function, headerToolbar: object, selectable: boolean}}\n\t */\n\tsetCalendarModuleOptions() {\n\t\tlet options = super.setCalendarModuleOptions();\n\t\toptions.selectable = true;\n\t\toptions.headerToolbar = {\n\t\t\tleft: `dayGridMonth,${app.getMainParams('weekView')},${app.getMainParams('dayView')},today`,\n\t\t\tcenter: 'prevYear,prev,title,next,nextYear',\n\t\t\tright: ''\n\t\t};\n\t\toptions.eventClick = function (info) {\n\t\t\tinfo.jsEvent.preventDefault();\n\t\t};\n\t\treturn options;\n\t}\n\t/**\n\t * Get selected users\n\t * @returns {{ selectedIds: array, excludedIds: array }}\n\t */\n\tgetSelectedUsersCalendar() {\n\t\treturn { selectedIds: [this.container.find('.assigned_user_id').val()], excludedIds: [] };\n\t}\n\t/**\n\t * Function registers calendar events\n\t */\n\tregisterEvents() {\n\t\tconst calendarView = this.getCalendarView();\n\t\tthis.switchContainer = $(``).insertAfter(\n\t\t\tcalendarView.find('.fc-center')\n\t\t);\n\t\tthis.registerSwitchEvents();\n\t\tthis.registerUsersChange();\n\t\tthis.registerAutofillTime();\n\t\tthis.registerPopoverButtonsClickEvent();\n\t}\n\t/**\n\t * Function registers calendar switch event\n\t */\n\tregisterSwitchEvents() {\n\t\tif (app.getMainParams('hiddenDays', true) !== false) {\n\t\t\tthis.switchContainer.html(this.createSwitch());\n\t\t\tthis.switchContainer.find('input').on('change', (e) => {\n\t\t\t\tconst currentTarget = $(e.currentTarget);\n\t\t\t\tlet hiddenDays = [];\n\t\t\t\tif (typeof currentTarget.data('on-text') !== 'undefined') {\n\t\t\t\t\thiddenDays = app.getMainParams('hiddenDays', true);\n\t\t\t\t\tthis.isSwitchAllDays = false;\n\t\t\t\t} else {\n\t\t\t\t\tthis.isSwitchAllDays = true;\n\t\t\t\t}\n\t\t\t\tthis.fullCalendar.setOption('hiddenDays', hiddenDays);\n\t\t\t\tthis.registerSwitchEvents();\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t * Generate filter buttons\n\t * @returns {string}\n\t */\n\tcreateSwitch() {\n\t\tlet on = app.vtranslate('JS_WORK_DAYS'),\n\t\t\toff = app.vtranslate('JS_ALL'),\n\t\t\tstate = this.isSwitchAllDays;\n\t\treturn `
\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
`;\n\t}\n\t/**\n\t * Function registers select's user change event\n\t */\n\tregisterUsersChange() {\n\t\tthis.container.find('.assigned_user_id').on('change', () => {\n\t\t\tthis.reloadCalendarData();\n\t\t});\n\t}\n\t/**\n\t * Function invokes by FullCalendar, sets selected days in form\n\t * @param {Object} info\n\t * @returns\n\t */\n\tselectDays(info) {\n\t\tif (this.sidebarName === 'status') {\n\t\t\tthis.sidebarName = 'add';\n\t\t\tthis.getCalendarCreateView().done(() => {\n\t\t\t\tthis.selectDays(info);\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tthis.selectCallbackCreateModal(this.container, info);\n\t}\n\n\t/** @inheritdoc */\n\tregisterEditForm(sideBar) {\n\t\tlet editViewInstance = Vtiger_Edit_Js.getInstanceByModuleName(sideBar.find('[name=\"module\"]').val()),\n\t\t\tparams = [];\n\t\tlet rightFormCreate = sideBar.find('form.js-form');\n\t\teditViewInstance.registerBasicEvents(rightFormCreate);\n\t\trightFormCreate.validationEngine(app.validationEngineOptions);\n\t\tApp.Fields.Picklist.showSelect2ElementView(sideBar.find('select'));\n\t\tsideBar.find('.js-summary-close-edit').on('click', () => {\n\t\t\tthis.getCalendarCreateView();\n\t\t});\n\t\tApp.Components.QuickCreate.registerPostLoadEvents(rightFormCreate, params);\n\t\tApp.Fields.Text.Editor.register(sideBar.find('.js-editor'), { height: '5em', toolbar: 'Min' });\n\t}\n\n\t/** @inheritdoc */\n\tupdateSidebar(sidebar, data) {\n\t\tconst modalTitleContainer = $('.js-modal-title__container'),\n\t\t\tmodalTitles = modalTitleContainer.find('[class*=\"js-modal-title\"]');\n\t\tdata = $(data);\n\n\t\tmodalTitles.addClass('d-none');\n\t\tif (data.hasClass('js-edit-form')) {\n\t\t\tlet title = data.find('.js-sidebar-title ').data('title');\n\t\t\tmodalTitles.filter(`.js-modal-title--${title}`).removeClass('d-none');\n\t\t\tthis.sidebarName = title;\n\t\t} else if (data.hasClass('js-activity-state')) {\n\t\t\tmodalTitles.filter('.js-modal-title--status').removeClass('d-none');\n\t\t\tthis.sidebarName = 'status';\n\t\t}\n\t\tsidebar.find('.js-qc-form').html(data);\n\t}\n};\n\njQuery.Class(\n\t'Calendar_QuickCreate_Js',\n\t{},\n\t{\n\t\tregisterEvents: function (container) {\n\t\t\tnew Calendar_CalendarQuickCreate_Js(container.closest('.js-modal-container'), true);\n\t\t\tcontainer.find('.js-activity-buttons button').on('click', function (e) {\n\t\t\t\tlet form = container.find('form');\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tif (1 === currentTarget.data('type')) {\n\t\t\t\t\tform.append('');\n\t\t\t\t\tform.submit();\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('.js-activity-buttons').remove();\n\t\t\t\t\tform.find('[name=\"record\"]').val('');\n\t\t\t\t\tform.append('');\n\t\t\t\t\tform.append('');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n);\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","i","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","call","Number","_get","Reflect","get","bind","property","receiver","base","_superPropBase","desc","getOwnPropertyDescriptor","arguments","value","apply","object","hasOwnProperty","_getPrototypeOf","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","result","Super","NewTarget","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","window","Calendar_CalendarQuickCreate_Js","_Calendar_Calendar_Js","container","readonly","_this","_super","isSwitchAllDays","sidebarName","eventCreate","module","renderCalendar","registerEvents","setCalendarModuleOptions","options","selectable","headerToolbar","left","concat","app","getMainParams","center","right","eventClick","info","jsEvent","preventDefault","getSelectedUsersCalendar","selectedIds","find","val","excludedIds","calendarView","getCalendarView","switchContainer","$","insertAfter","registerSwitchEvents","registerUsersChange","registerAutofillTime","registerPopoverButtonsClickEvent","_this2","html","createSwitch","on","currentTarget","hiddenDays","data","fullCalendar","setOption","vtranslate","off","state","_this3","reloadCalendarData","selectDays","_this4","getCalendarCreateView","done","selectCallbackCreateModal","registerEditForm","sideBar","_this5","editViewInstance","Vtiger_Edit_Js","getInstanceByModuleName","rightFormCreate","registerBasicEvents","validationEngine","validationEngineOptions","App","Fields","Picklist","showSelect2ElementView","Components","QuickCreate","registerPostLoadEvents","Text","Editor","register","height","toolbar","updateSidebar","sidebar","modalTitleContainer","modalTitles","addClass","hasClass","title","filter","removeClass","Calendar_Calendar_Js","jQuery","Class","closest","form","append","submit","remove"],"mappings":";;AAAA,kKACA,YAAY,CAEZ;AACA;AACA;AACA,GAHA,SAAAA,OAAAA,CAAAC,CAAA,CAAA,CAAA,yBAAA,CAAA,OAAAD,OAAA,CAAAE,UAAAA,EAAAA,OAAAA,MAAA,EAAAA,QAAAA,EAAAA,OAAAA,MAAA,CAAAC,QAAA,CAAAF,SAAAA,CAAA,gBAAAA,CAAA,CAAA,CAAA,SAAAA,CAAA,CAAA,CAAA,OAAAA,CAAA,EAAA,UAAA,EAAA,OAAAC,MAAA,EAAAD,CAAA,CAAAG,WAAA,GAAAF,MAAA,EAAAD,CAAA,GAAAC,MAAA,CAAAG,SAAA,CAAAJ,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AQ,CAAC,CACnE,IAAI,CAAClF,WAAW,CAAG,QAAQ,CAAA,CAE5B2E,OAAO,CAACtD,IAAI,CAAC,aAAa,CAAC,CAACa,IAAI,CAACK,IAAI,EACtC,CAAC,CAAA,CAAA,CAAA,CAAA9C,+BAAA,CAAA,CA3IqF0F,oBAAoB,CA4I1G,CAEDC,MAAM,CAACC,KAAK,CACX,yBAAyB,CACzB,EAAE,CACF,CACCjF,cAAc,CAAE,SAAAA,cAAAA,CAAUT,SAAS,CAAE,CACpC,IAAIF,+BAA+B,CAACE,SAAS,CAAC2F,OAAO,CAAC,qBAAqB,CAAC,CAAM,CAAA,CAAA,CAAC,CACnF3F,SAAS,CAAC0B,IAAI,CAAC,6BAA6B,CAAC,CAACe,EAAE,CAAC,OAAO,CAAE,SAAU9C,CAAC,CAAE,CAClE,IAAAiG,IAAI,CAAG5F,SAAS,CAAC0B,IAAI,CAAC,MAAM,CAAC,CAC7BgB,aAAa,CAAGV,CAAC,CAACrC,CAAC,CAAC+C,aAAa,CAAC,CAClC,CAAC,GAAKA,aAAa,CAACE,IAAI,CAAC,MAAM,CAAC,EACnCgD,IAAI,CAACC,MAAM,CAAC,qDAAkD,CAAGnD,aAAa,CAACE,IAAI,CAAC,OAAO,CAAC,CAAG,KAAI,CAAC,CACpGgD,IAAI,CAACE,MAAM,EAAE,GAEb9F,SAAS,CAAC0B,IAAI,CAAC,sBAAsB,CAAC,CAACqE,MAAM,EAAE,CAC/CH,IAAI,CAAClE,IAAI,CAAC,mBAAiB,CAAC,CAACC,GAAG,CAAC,EAAE,CAAC,CACpCiE,IAAI,CAACC,MAAM,CAAC,uDAAmD,CAAC,CAChED,IAAI,CAACC,MAAM,CAAC,+CAA4C,CAAGnD,aAAa,CAACE,IAAI,CAAC,IAAI,CAAC,CAAG,KAAI,CAAC,EAE7F,CAAC,EACF,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/CalendarView.min.js b/public_html/layouts/basic/modules/Calendar/resources/CalendarView.min.js
index 1bdd06f903c2..2451c59dd91d 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/CalendarView.min.js
+++ b/public_html/layouts/basic/modules/Calendar/resources/CalendarView.min.js
@@ -1,9 +1,9 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";/**
+/* {[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]} */"use strict";/**
* Class representing an extended calendar.
* @extends Calendar_Calendar_Js
- */function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;iarguments.length?target:receiver):desc.value}},_get.apply(this,arguments)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}//Global calendar flag needed for correct loading data from history browser in year view
+ */function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;iarguments.length?target:receiver):desc.value}},_get.apply(this,arguments)}function _superPropBase(object,property){for(;!Object.prototype.hasOwnProperty.call(object,property)&&(object=_getPrototypeOf(object),null!==object););return object}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}}),Object.defineProperty(subClass,"prototype",{writable:!1}),superClass&&_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,p){return o.__proto__=p,o},_setPrototypeOf(o,p)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var result,Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else result=Super.apply(this,arguments);return _possibleConstructorReturn(this,result)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"==typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(self)}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return !1}}function _getPrototypeOf(o){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}//Global calendar flag needed for correct loading data from history browser in year view
window.calendarLoaded=!1,window.Calendar_Calendar_Js=/*#__PURE__*/function(_Vtiger_Calendar_Js){/**
* Create calendar's options.
* @param {jQuery} container
@@ -12,7 +12,7 @@ window.calendarLoaded=!1,window.Calendar_Calendar_Js=/*#__PURE__*/function(_Vtig
*/function Calendar_Calendar_Js(container,readonly){var browserHistory=!(2 {\n\t\t\t\tif (this.eventCreate == 1) {\n\t\t\t\t\tthis.showCalendarCreateView().done((form) => {\n\t\t\t\t\t\tif (this.getSidebarView().find('.tab-pane.active').hasClass('js-right-panel-event') === false) {\n\t\t\t\t\t\t\tthis.getSidebarView().find('.js-right-panel-event-link').trigger('click');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dayCallbackCreateModal(form, args);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\tselectable: false,\n\t\t\teventClick: function (info) {\n\t\t\t\tinfo.jsEvent.preventDefault();\n\t\t\t\tconst element = $(info.el);\n\t\t\t\tlet link = element.attr('href');\n\t\t\t\tif (!link) {\n\t\t\t\t\tlink = element.find('a').attr('href');\n\t\t\t\t}\n\t\t\t\tif (!self.readonly && self.eventEdit) {\n\t\t\t\t\tself.showSidebarEvent(link);\n\t\t\t\t} else {\n\t\t\t\t\twindow.location.assign(link.replace('view=', 'xview=') + '&view=Detail');\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t * Show sidebar event\n\t * @param {*} params\n\t * @returns {Promise}\n\t */\n\tshowSidebarEvent(params) {\n\t\tconst self = this,\n\t\t\taDeferred = $.Deferred();\n\t\tconst progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\tif (typeof params == 'number') {\n\t\t\tparams = {\n\t\t\t\tmodule: this.module,\n\t\t\t\tview: 'EventForm',\n\t\t\t\trecord: params\n\t\t\t};\n\t\t}\n\t\tAppConnector.request(params)\n\t\t\t.done((data) => {\n\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\tself.openRightPanel();\n\t\t\t\tthis.updateSidebar(data);\n\t\t\t\tlet sidebar = self.getSidebarView();\n\t\t\t\tif (sidebar.find('form').length) {\n\t\t\t\t\tself.registerEditForm(sidebar);\n\t\t\t\t} else {\n\t\t\t\t\tapp.showNewScrollbar(sidebar.find('.js-calendar__form__wrapper'), {\n\t\t\t\t\t\tsuppressScrollX: true\n\t\t\t\t\t});\n\t\t\t\t\tsidebar.find('.js-activity-state .js-summary-close-edit').on('click', function () {\n\t\t\t\t\t\tself.showCalendarCreateView();\n\t\t\t\t\t});\n\t\t\t\t\tsidebar.find('.js-activity-state .editRecord').on('click', function () {\n\t\t\t\t\t\tself.showSidebarEvent($(this).data('id'));\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\taDeferred.resolve(sidebar.find('.js-qc-form'));\n\t\t\t})\n\t\t\t.fail((error) => {\n\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\tapp.errorLog(error);\n\t\t\t});\n\t\treturn aDeferred.promise();\n\t}\n\t/**\n\t * Open sidebar right panel\n\t */\n\topenRightPanel() {\n\t\tif (this.getSidebarView().hasClass('hideSiteBar')) {\n\t\t\tthis.getSidebarView().find('.js-toggle-site-bar-right-button').trigger('click');\n\t\t}\n\t}\n\t/**\n\t * Update sidebar\n\t * @param {html} data\n\t */\n\tupdateSidebar(data) {\n\t\tthis.getSidebarView().find('.js-qc-form').html(data);\n\t\tthis.showRightPanelForm();\n\t}\n\t/**\n\t * Show sidebar right panel form\n\t */\n\tshowRightPanelForm() {\n\t\tconst calendarRightPanel = this.getSidebarView();\n\t\tif (!calendarRightPanel.find('.js-right-panel-event').hasClass('active')) {\n\t\t\tcalendarRightPanel.find('.js-right-panel-event-link').trigger('click');\n\t\t}\n\t\tapp.showNewScrollbar(calendarRightPanel.find('.js-calendar__form__wrapper'), {\n\t\t\tsuppressScrollX: true\n\t\t});\n\t}\n\t/**\n\t * Register events to EditView\n\t * @param {jQuery} sideBar\n\t */\n\tregisterEditForm(sideBar) {\n\t\tconst editViewInstance = Vtiger_Edit_Js.getInstanceByModuleName(sideBar.find('[name=\"module\"]').val());\n\t\tlet rightFormCreate = sideBar.find('form.js-form');\n\t\teditViewInstance.registerBasicEvents(rightFormCreate);\n\t\trightFormCreate.validationEngine(app.validationEngineOptions);\n\t\tApp.Fields.Picklist.showSelect2ElementView(sideBar.find('select'));\n\t\tsideBar.find('.js-summary-close-edit').on('click', () => {\n\t\t\tthis.showCalendarCreateView();\n\t\t});\n\t\tApp.Components.QuickCreate.registerPostLoadEvents(rightFormCreate, {\n\t\t\tcallbackFunction: this.registerAfterSubmitForm(this)\n\t\t});\n\t\tnew App.Fields.Text.Editor(sideBar.find('.js-editor'), { height: '5em', toolbar: 'Min' });\n\t}\n\t/**\n\t * Register actions to do after save record\n\t * @param {object} self\n\t * @param {object} data\n\t * @returns {function}\n\t */\n\tregisterAfterSubmitForm(self) {\n\t\tlet returnFunction = function (data) {\n\t\t\tif (data.success) {\n\t\t\t\tself.reloadCalendarData();\n\t\t\t\tself.refreshDatesRowView();\n\t\t\t\tself.getSidebarView().find('.js-qc-form').html('');\n\t\t\t\tself.showCalendarCreateView();\n\t\t\t\twindow.popoverCache = {};\n\t\t\t}\n\t\t};\n\t\treturn returnFunction;\n\t}\n\t/**\n\t * Load calendar data\n\t */\n\tloadCalendarData() {\n\t\tconst self = this,\n\t\t\tprogressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\tlet options = this.getDefaultParams();\n\t\tself.fullCalendar.removeAllEvents();\n\t\tself.clearFilterButton(options['user']);\n\t\toptions.historyUrl = `index.php?module=${options['module']}&view=Calendar&history=true&viewType=${\n\t\t\tthis.fullCalendar.view.type\n\t\t}&start=${options['start']}&end=${options['end']}&user=${JSON.stringify(options['user'])}&time=${\n\t\t\toptions['time']\n\t\t}&cvid=${options['cvid']}&hiddenDays=${this.fullCalendar.getOption('hiddenDays')}`;\n\t\tlet connectorMethod = window['AppConnector']['request'];\n\t\tif (this.browserHistory && window.calendarLoaded) {\n\t\t\tconnectorMethod = window['AppConnector']['requestPjax'];\n\t\t}\n\t\tif (this.browserHistoryConfig && Object.keys(this.browserHistoryConfig).length && !window.calendarLoaded) {\n\t\t\toptions = Object.assign(options, {\n\t\t\t\tstart: this.browserHistoryConfig.start,\n\t\t\t\tend: this.browserHistoryConfig.end,\n\t\t\t\tuser: this.browserHistoryConfig.user,\n\t\t\t\ttime: this.browserHistoryConfig.time,\n\t\t\t\tcvid: this.browserHistoryConfig.cvid\n\t\t\t});\n\t\t\tconnectorMethod = window['AppConnector']['request'];\n\t\t\tapp.setMainParams('showType', this.browserHistoryConfig.time);\n\t\t\tapp.setMainParams('usersId', this.browserHistoryConfig.user);\n\t\t}\n\t\tconnectorMethod(options).done((events) => {\n\t\t\tself.fullCalendar.removeAllEvents();\n\t\t\tself.fullCalendar.addEventSource(events.result);\n\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t});\n\t\twindow.calendarLoaded = true;\n\t}\n\t/**\n\t * Show create view\n\t * @returns {Promise}\n\t */\n\tshowCalendarCreateView() {\n\t\tconst aDeferred = $.Deferred();\n\t\tif (this.eventCreate == 1) {\n\t\t\tconst sideBar = this.getSidebarView(),\n\t\t\t\tqcForm = sideBar.find('.js-qc-form');\n\t\t\tif (qcForm.find('form').length > 0 && qcForm.find('input[name=record]').length === 0) {\n\t\t\t\taDeferred.resolve(qcForm);\n\t\t\t} else {\n\t\t\t\tlet progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\t\t\tthis.showSidebarEvent({ module: this.module, view: 'EventForm' })\n\t\t\t\t\t.done(() => {\n\t\t\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\tthis.registerAutofillTime();\n\t\t\t\t\t\taDeferred.resolve(qcForm);\n\t\t\t\t\t})\n\t\t\t\t\t.fail((error) => {\n\t\t\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\tapp.errorLog(error);\n\t\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\taDeferred.reject();\n\t\t}\n\t\treturn aDeferred.promise();\n\t}\n\t/**\n\t * Auto select date in create view in extended calendar\n\t */\n\tregisterAutofillTime() {\n\t\tif (app.getMainParams('autofillTime')) {\n\t\t\tthis.container.find('.js-autofill').prop('checked', 'checked').trigger('change');\n\t\t}\n\t}\n\t/**\n\t * Register cache settings\n\t */\n\tregisterCacheSettings() {\n\t\tconst self = this;\n\t\t$('.siteBarRight .filterField').each(function (index) {\n\t\t\tlet name = $(this).attr('id');\n\t\t\tlet value = app.moduleCacheGet(name);\n\t\t\tlet element = $('#' + name);\n\t\t\tif (element.length > 0 && value != null) {\n\t\t\t\tif (element.attr('type') == 'checkbox') {\n\t\t\t\t\telement.prop('checked', value);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.getCalendarView()\n\t\t\t.find('.fc-toolbar .fc-button')\n\t\t\t.on('click', function (e) {\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\tif (element.hasClass('fc-' + self.fullCalendar.view.type + '-button')) {\n\t\t\t\t\tapp.moduleCacheSet('defaultView', self.fullCalendar.view.type);\n\t\t\t\t} else if (\n\t\t\t\t\telement.hasClass('fc-prev-button') ||\n\t\t\t\t\telement.hasClass('fc-next-button') ||\n\t\t\t\t\telement.hasClass('fc-today-button')\n\t\t\t\t) {\n\t\t\t\t\tapp.moduleCacheSet('start', App.Fields.Date.dateToUserFormat(self.fullCalendar.view.activeStart));\n\t\t\t\t\tapp.moduleCacheSet('end', App.Fields.Date.dateToUserFormat(self.fullCalendar.view.activeEnd));\n\t\t\t\t}\n\t\t\t});\n\t\tconst keys = app.moduleCacheKeys();\n\t\tif (keys.length > 0) {\n\t\t\tlet alert = $('#moduleCacheAlert');\n\t\t\talert.find('.cacheClear').on('click', function (e) {\n\t\t\t\tapp.moduleCacheClear();\n\t\t\t\talert.addClass('d-none');\n\t\t\t\tlocation.reload();\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t * Register site bar events\n\t */\n\tregisterSiteBarEvents() {\n\t\tlet calendarRightPanel = $('.js-calendar-right-panel');\n\t\tcalendarRightPanel.find('.js-show-sitebar').on('click', () => {\n\t\t\tif (calendarRightPanel.hasClass('hideSiteBar')) {\n\t\t\t\tcalendarRightPanel.find('.js-toggle-site-bar-right-button').trigger('click');\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Register popover buttons' click\n\t */\n\tregisterPopoverButtonsClickEvent() {\n\t\t$(document).on('click', '.js-calendar-popover__button', this.showCalendarPopoverLinkInSidebar.bind(this));\n\t}\n\t/**\n\t * Show popover link in sidebar\n\t * @param {jQuery.Event} e click event\n\t * @returns {boolean}\n\t */\n\tshowCalendarPopoverLinkInSidebar(e) {\n\t\tlet href = e.currentTarget.href;\n\t\tconst hrefObject = app.convertUrlToObject(href);\n\t\tif (hrefObject.module !== 'Calendar' || (hrefObject.view !== 'Edit' && hrefObject.view !== 'Detail')) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\te.preventDefault();\n\t\t\tconst sidebarView = hrefObject.view === 'Edit' ? 'EventForm' : 'ActivityState';\n\t\t\thref = href.replace(hrefObject.view, sidebarView);\n\t\t\tthis.showSidebarEvent(href);\n\t\t}\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents() {\n\t\tsuper.registerEvents();\n\t\tthis.registerSiteBarEvents();\n\t\tthis.registerPopoverButtonsClickEvent();\n\t\tElementQueries.listen();\n\t\tthis.showCalendarCreateView();\n\t}\n};\n"],"names":["window","calendarLoaded","Calendar_Calendar_Js","container","readonly","browserHistory","self","allDaySlot","dateClick","args","eventCreate","showCalendarCreateView","done","form","getSidebarView","find","hasClass","trigger","dayCallbackCreateModal","selectable","eventClick","info","jsEvent","preventDefault","element","$","el","link","attr","eventEdit","showSidebarEvent","location","assign","replace","params","aDeferred","Deferred","progressInstance","progressIndicator","blockInfo","enabled","module","view","record","AppConnector","request","data","mode","openRightPanel","updateSidebar","sidebar","length","registerEditForm","app","showNewScrollbar","suppressScrollX","on","resolve","fail","error","errorLog","promise","html","showRightPanelForm","calendarRightPanel","sideBar","editViewInstance","Vtiger_Edit_Js","getInstanceByModuleName","val","rightFormCreate","registerBasicEvents","validationEngine","validationEngineOptions","App","Fields","Picklist","showSelect2ElementView","Components","QuickCreate","registerPostLoadEvents","callbackFunction","registerAfterSubmitForm","Text","Editor","height","toolbar","success","reloadCalendarData","refreshDatesRowView","popoverCache","options","getDefaultParams","fullCalendar","removeAllEvents","clearFilterButton","historyUrl","type","JSON","stringify","getOption","connectorMethod","browserHistoryConfig","Object","keys","start","end","user","time","cvid","setMainParams","events","addEventSource","result","qcForm","registerAutofillTime","reject","getMainParams","prop","each","name","value","moduleCacheGet","getCalendarView","e","currentTarget","moduleCacheSet","Date","dateToUserFormat","activeStart","activeEnd","moduleCacheKeys","alert","moduleCacheClear","addClass","reload","document","showCalendarPopoverLinkInSidebar","bind","href","hrefObject","convertUrlToObject","sidebarView","registerSiteBarEvents","registerPopoverButtonsClickEvent","ElementQueries","listen","pageController","status","join","searchParams","encodeURIComponent","Vtiger_Calendar_Js"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6H,CAAAA,CAAAA,CAAAA,oBAAAA,CAAAA,CAAAA,kBAAjE;;"}
\ No newline at end of file
+{"version":3,"file":"CalendarView.min.js","sources":["CalendarView.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/**\n * Class representing an extended calendar.\n * @extends Calendar_Calendar_Js\n */\nwindow.calendarLoaded = false; //Global calendar flag needed for correct loading data from history browser in year view\nwindow.Calendar_Calendar_Js = class Calendar_Calendar_Js extends Vtiger_Calendar_Js {\n\t/**\n\t * Go to records list\n\t * @param {string} link\n\t */\n\tstatic goToRecordsList(link) {\n\t\tconst self = app.pageController,\n\t\t\tstatus = app.getMainParams('activityStateLabels', true),\n\t\t\toptions = self.getDefaultParams();\n\t\tif (options['cvid']) {\n\t\t\tlink += '&viewname=' + options['cvid'];\n\t\t} else {\n\t\t\tlink += '&viewname=All';\n\t\t}\n\t\tlet searchParams = '[\"activitystatus\",\"e\",\"' + status[app.getMainParams('showType')].join() + '\"]';\n\t\tsearchParams += ',[\"date_start\",\"bw\",\"' + options['start'] + ' 00:00:00,' + options['end'] + ' 23:59:59\"]';\n\t\tif (options['user']) {\n\t\t\tsearchParams += ',[\"assigned_user_id\",\"e\",\"' + options['user']['selectedIds'].join('##') + '\"]';\n\t\t}\n\t\tlink += '&search_params=[[' + encodeURIComponent(searchParams) + ']]';\n\t\twindow.location.href = link;\n\t}\n\t/**\n\t * Create calendar's options.\n\t * @param {jQuery} container\n\t * @param {bool} readonly\n\t * @param {boolean} browserHistory\n\t */\n\tconstructor(container, readonly, browserHistory = true) {\n\t\tsuper(container, readonly, browserHistory);\n\t}\n\t/**\n\t * Set calendar module options.\n\t * @returns {{allDaySlot: boolean, dayClick: object, selectable: boolean}}\n\t */\n\tsetCalendarModuleOptions() {\n\t\tconst self = this;\n\t\treturn {\n\t\t\tallDaySlot: app.getMainParams('allDaySlot'),\n\t\t\tdateClick: (args) => {\n\t\t\t\tif (this.eventCreate == 1) {\n\t\t\t\t\tthis.showCalendarCreateView().done((form) => {\n\t\t\t\t\t\tif (this.getSidebarView().find('.tab-pane.active').hasClass('js-right-panel-event') === false) {\n\t\t\t\t\t\t\tthis.getSidebarView().find('.js-right-panel-event-link').trigger('click');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dayCallbackCreateModal(form, args);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t},\n\t\t\tselectable: false,\n\t\t\teventClick: function (info) {\n\t\t\t\tinfo.jsEvent.preventDefault();\n\t\t\t\tconst element = $(info.el);\n\t\t\t\tlet link = element.attr('href');\n\t\t\t\tif (!link) {\n\t\t\t\t\tlink = element.find('a').attr('href');\n\t\t\t\t}\n\t\t\t\tif (!self.readonly && self.eventEdit) {\n\t\t\t\t\tself.showSidebarEvent(link);\n\t\t\t\t} else {\n\t\t\t\t\twindow.location.assign(link.replace('view=', 'xview=') + '&view=Detail');\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\t/**\n\t * Show sidebar event\n\t * @param {*} params\n\t * @returns {Promise}\n\t */\n\tshowSidebarEvent(params) {\n\t\tconst self = this,\n\t\t\taDeferred = $.Deferred();\n\t\tconst progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\tif (typeof params == 'number') {\n\t\t\tparams = {\n\t\t\t\tmodule: this.module,\n\t\t\t\tview: 'EventForm',\n\t\t\t\trecord: params\n\t\t\t};\n\t\t}\n\t\tAppConnector.request(params)\n\t\t\t.done((data) => {\n\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\tself.openRightPanel();\n\t\t\t\tthis.updateSidebar(data);\n\t\t\t\tlet sidebar = self.getSidebarView();\n\t\t\t\tif (sidebar.find('form').length) {\n\t\t\t\t\tself.registerEditForm(sidebar);\n\t\t\t\t} else {\n\t\t\t\t\tapp.showNewScrollbar(sidebar.find('.js-calendar__form__wrapper'), {\n\t\t\t\t\t\tsuppressScrollX: true\n\t\t\t\t\t});\n\t\t\t\t\tsidebar.find('.js-activity-state .js-summary-close-edit').on('click', function () {\n\t\t\t\t\t\tself.showCalendarCreateView();\n\t\t\t\t\t});\n\t\t\t\t\tsidebar.find('.js-activity-state .editRecord').on('click', function () {\n\t\t\t\t\t\tself.showSidebarEvent($(this).data('id'));\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\taDeferred.resolve(sidebar.find('.js-qc-form'));\n\t\t\t})\n\t\t\t.fail((error) => {\n\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\tapp.errorLog(error);\n\t\t\t});\n\t\treturn aDeferred.promise();\n\t}\n\t/**\n\t * Open sidebar right panel\n\t */\n\topenRightPanel() {\n\t\tif (this.getSidebarView().hasClass('hideSiteBar')) {\n\t\t\tthis.getSidebarView().find('.js-toggle-site-bar-right-button').trigger('click');\n\t\t}\n\t}\n\t/**\n\t * Update sidebar\n\t * @param {html} data\n\t */\n\tupdateSidebar(data) {\n\t\tthis.getSidebarView().find('.js-qc-form').html(data);\n\t\tthis.showRightPanelForm();\n\t}\n\t/**\n\t * Show sidebar right panel form\n\t */\n\tshowRightPanelForm() {\n\t\tconst calendarRightPanel = this.getSidebarView();\n\t\tif (!calendarRightPanel.find('.js-right-panel-event').hasClass('active')) {\n\t\t\tcalendarRightPanel.find('.js-right-panel-event-link').trigger('click');\n\t\t}\n\t\tapp.showNewScrollbar(calendarRightPanel.find('.js-calendar__form__wrapper'), {\n\t\t\tsuppressScrollX: true\n\t\t});\n\t}\n\t/**\n\t * Register events to EditView\n\t * @param {jQuery} sideBar\n\t */\n\tregisterEditForm(sideBar) {\n\t\tconst editViewInstance = Vtiger_Edit_Js.getInstanceByModuleName(sideBar.find('[name=\"module\"]').val());\n\t\tlet rightFormCreate = sideBar.find('form.js-form');\n\t\teditViewInstance.registerBasicEvents(rightFormCreate);\n\t\trightFormCreate.validationEngine(app.validationEngineOptions);\n\t\tApp.Fields.Picklist.showSelect2ElementView(sideBar.find('select'));\n\t\tsideBar.find('.js-summary-close-edit').on('click', () => {\n\t\t\tthis.showCalendarCreateView();\n\t\t});\n\t\tApp.Components.QuickCreate.registerPostLoadEvents(rightFormCreate, {\n\t\t\tcallbackFunction: this.registerAfterSubmitForm(this)\n\t\t});\n\t\tnew App.Fields.Text.Editor(sideBar.find('.js-editor'), { height: '5em', toolbar: 'Min' });\n\t}\n\t/**\n\t * Register actions to do after save record\n\t * @param {object} self\n\t * @param {object} data\n\t * @returns {function}\n\t */\n\tregisterAfterSubmitForm(self) {\n\t\tlet returnFunction = function (data) {\n\t\t\tif (data.success) {\n\t\t\t\tself.reloadCalendarData();\n\t\t\t\tself.refreshDatesRowView();\n\t\t\t\tself.getSidebarView().find('.js-qc-form').html('');\n\t\t\t\tself.showCalendarCreateView();\n\t\t\t\twindow.popoverCache = {};\n\t\t\t}\n\t\t};\n\t\treturn returnFunction;\n\t}\n\t/**\n\t * Load calendar data\n\t */\n\tloadCalendarData() {\n\t\tconst self = this,\n\t\t\tprogressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\tlet options = this.getDefaultParams();\n\t\tself.fullCalendar.removeAllEvents();\n\t\tself.clearFilterButton(options['user']);\n\t\toptions.historyUrl = `index.php?module=${options['module']}&view=Calendar&history=true&viewType=${\n\t\t\tthis.fullCalendar.view.type\n\t\t}&start=${options['start']}&end=${options['end']}&user=${JSON.stringify(options['user'])}&time=${\n\t\t\toptions['time']\n\t\t}&cvid=${options['cvid']}&hiddenDays=${this.fullCalendar.getOption('hiddenDays')}`;\n\t\tlet connectorMethod = window['AppConnector']['request'];\n\t\tif (this.browserHistory && window.calendarLoaded) {\n\t\t\tconnectorMethod = window['AppConnector']['requestPjax'];\n\t\t}\n\t\tif (this.browserHistoryConfig && Object.keys(this.browserHistoryConfig).length && !window.calendarLoaded) {\n\t\t\toptions = Object.assign(options, {\n\t\t\t\tstart: this.browserHistoryConfig.start,\n\t\t\t\tend: this.browserHistoryConfig.end,\n\t\t\t\tuser: this.browserHistoryConfig.user,\n\t\t\t\ttime: this.browserHistoryConfig.time,\n\t\t\t\tcvid: this.browserHistoryConfig.cvid\n\t\t\t});\n\t\t\tconnectorMethod = window['AppConnector']['request'];\n\t\t\tapp.setMainParams('showType', this.browserHistoryConfig.time);\n\t\t\tapp.setMainParams('usersId', this.browserHistoryConfig.user);\n\t\t}\n\t\tconnectorMethod(options).done((events) => {\n\t\t\tself.fullCalendar.removeAllEvents();\n\t\t\tself.fullCalendar.addEventSource(events.result);\n\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t});\n\t\twindow.calendarLoaded = true;\n\t}\n\t/**\n\t * Show create view\n\t * @returns {Promise}\n\t */\n\tshowCalendarCreateView() {\n\t\tconst aDeferred = $.Deferred();\n\t\tif (this.eventCreate == 1) {\n\t\t\tconst sideBar = this.getSidebarView(),\n\t\t\t\tqcForm = sideBar.find('.js-qc-form');\n\t\t\tif (qcForm.find('form').length > 0 && qcForm.find('input[name=record]').length === 0) {\n\t\t\t\taDeferred.resolve(qcForm);\n\t\t\t} else {\n\t\t\t\tlet progressInstance = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\t\t\tthis.showSidebarEvent({ module: this.module, view: 'EventForm' })\n\t\t\t\t\t.done(() => {\n\t\t\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\tthis.registerAutofillTime();\n\t\t\t\t\t\taDeferred.resolve(qcForm);\n\t\t\t\t\t})\n\t\t\t\t\t.fail((error) => {\n\t\t\t\t\t\tprogressInstance.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\tapp.errorLog(error);\n\t\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\taDeferred.reject();\n\t\t}\n\t\treturn aDeferred.promise();\n\t}\n\t/**\n\t * Auto select date in create view in extended calendar\n\t */\n\tregisterAutofillTime() {\n\t\tif (app.getMainParams('autofillTime')) {\n\t\t\tthis.container.find('.js-autofill').prop('checked', 'checked').trigger('change');\n\t\t}\n\t}\n\t/**\n\t * Register cache settings\n\t */\n\tregisterCacheSettings() {\n\t\tconst self = this;\n\t\t$('.siteBarRight .filterField').each(function (index) {\n\t\t\tlet name = $(this).attr('id');\n\t\t\tlet value = app.moduleCacheGet(name);\n\t\t\tlet element = $('#' + name);\n\t\t\tif (element.length > 0 && value != null) {\n\t\t\t\tif (element.attr('type') == 'checkbox') {\n\t\t\t\t\telement.prop('checked', value);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.getCalendarView()\n\t\t\t.find('.fc-toolbar .fc-button')\n\t\t\t.on('click', function (e) {\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\tif (element.hasClass('fc-' + self.fullCalendar.view.type + '-button')) {\n\t\t\t\t\tapp.moduleCacheSet('defaultView', self.fullCalendar.view.type);\n\t\t\t\t} else if (\n\t\t\t\t\telement.hasClass('fc-prev-button') ||\n\t\t\t\t\telement.hasClass('fc-next-button') ||\n\t\t\t\t\telement.hasClass('fc-today-button')\n\t\t\t\t) {\n\t\t\t\t\tapp.moduleCacheSet('start', App.Fields.Date.dateToUserFormat(self.fullCalendar.view.activeStart));\n\t\t\t\t\tapp.moduleCacheSet('end', App.Fields.Date.dateToUserFormat(self.fullCalendar.view.activeEnd));\n\t\t\t\t}\n\t\t\t});\n\t\tconst keys = app.moduleCacheKeys();\n\t\tif (keys.length > 0) {\n\t\t\tlet alert = $('#moduleCacheAlert');\n\t\t\talert.find('.cacheClear').on('click', function (e) {\n\t\t\t\tapp.moduleCacheClear();\n\t\t\t\talert.addClass('d-none');\n\t\t\t\tlocation.reload();\n\t\t\t});\n\t\t}\n\t}\n\t/**\n\t * Register site bar events\n\t */\n\tregisterSiteBarEvents() {\n\t\tlet calendarRightPanel = $('.js-calendar-right-panel');\n\t\tcalendarRightPanel.find('.js-show-sitebar').on('click', () => {\n\t\t\tif (calendarRightPanel.hasClass('hideSiteBar')) {\n\t\t\t\tcalendarRightPanel.find('.js-toggle-site-bar-right-button').trigger('click');\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Register popover buttons' click\n\t */\n\tregisterPopoverButtonsClickEvent() {\n\t\t$(document).on('click', '.js-calendar-popover__button', this.showCalendarPopoverLinkInSidebar.bind(this));\n\t}\n\t/**\n\t * Show popover link in sidebar\n\t * @param {jQuery.Event} e click event\n\t * @returns {boolean}\n\t */\n\tshowCalendarPopoverLinkInSidebar(e) {\n\t\tlet href = e.currentTarget.href;\n\t\tconst hrefObject = app.convertUrlToObject(href);\n\t\tif (hrefObject.module !== 'Calendar' || (hrefObject.view !== 'Edit' && hrefObject.view !== 'Detail')) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\te.preventDefault();\n\t\t\tconst sidebarView = hrefObject.view === 'Edit' ? 'EventForm' : 'ActivityState';\n\t\t\thref = href.replace(hrefObject.view, sidebarView);\n\t\t\tthis.showSidebarEvent(href);\n\t\t}\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents() {\n\t\tsuper.registerEvents();\n\t\tthis.registerSiteBarEvents();\n\t\tthis.registerPopoverButtonsClickEvent();\n\t\tElementQueries.listen();\n\t\tthis.showCalendarCreateView();\n\t}\n};\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","i","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","call","Number","_get","Reflect","get","bind","property","receiver","base","_superPropBase","desc","getOwnPropertyDescriptor","arguments","value","apply","object","hasOwnProperty","_getPrototypeOf","_inherits","subClass","superClass","create","_setPrototypeOf","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","result","Super","NewTarget","construct","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","sham","Proxy","Boolean","valueOf","e","getPrototypeOf","window","calendarLoaded","Calendar_Calendar_Js","_Vtiger_Calendar_Js","container","readonly","browserHistory","_super","setCalendarModuleOptions","_this","allDaySlot","app","getMainParams","dateClick","args","eventCreate","showCalendarCreateView","done","form","getSidebarView","find","hasClass","trigger","dayCallbackCreateModal","selectable","eventClick","info","jsEvent","preventDefault","element","$","el","link","attr","eventEdit","showSidebarEvent","location","assign","replace","params","_this2","aDeferred","Deferred","progressInstance","progressIndicator","blockInfo","enabled","module","view","record","AppConnector","request","data","mode","openRightPanel","updateSidebar","sidebar","registerEditForm","showNewScrollbar","suppressScrollX","on","resolve","fail","error","errorLog","promise","html","showRightPanelForm","calendarRightPanel","sideBar","_this3","editViewInstance","Vtiger_Edit_Js","getInstanceByModuleName","val","rightFormCreate","registerBasicEvents","validationEngine","validationEngineOptions","App","Fields","Picklist","showSelect2ElementView","Components","QuickCreate","registerPostLoadEvents","callbackFunction","registerAfterSubmitForm","Text","Editor","height","toolbar","returnFunction","success","reloadCalendarData","refreshDatesRowView","popoverCache","loadCalendarData","options","getDefaultParams","fullCalendar","removeAllEvents","clearFilterButton","user","historyUrl","concat","type","start","end","JSON","stringify","time","cvid","getOption","connectorMethod","requestPjax","browserHistoryConfig","keys","setMainParams","events","addEventSource","_this4","qcForm","registerAutofillTime","reject","prop","registerCacheSettings","each","name","moduleCacheGet","getCalendarView","currentTarget","moduleCacheSet","Date","dateToUserFormat","activeStart","activeEnd","moduleCacheKeys","alert","moduleCacheClear","addClass","reload","registerSiteBarEvents","registerPopoverButtonsClickEvent","document","showCalendarPopoverLinkInSidebar","href","hrefObject","convertUrlToObject","sidebarView","registerEvents","ElementQueries","listen","goToRecordsList","pageController","status","searchParams","join","selectedIds","encodeURIComponent","Vtiger_Calendar_Js"],"mappings":";;AAAA,kKACA,YAAY,CACZ;AACA;AACA;AACA,GAHA,SAAAA,OAAAA,CAAAC,CAAA,CAAA,CAAA,yBAAA,CAAA,OAAAD,OAAA,CAAA,UAAA,EAAA,OAAAE,MAAA,EAAA,QAAA,EAAA,OAAAA,MAAA,CAAAC,QAAA,CAAA,SAAAF,CAAA,CAAA,CA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,EAAE,CAC5B,IAAI,CAACC,gCAAgC,EAAE,CACvCQ,cAAc,CAACC,MAAM,EAAE,CACvB,IAAI,CAACxI,sBAAsB,GAC5B,CAAC,CAAAxE,CAAAA,CAAAA,CAAAA,CAAAA,GAAA,CAAAyB,iBAAAA,CAAAA,KAAA;AAvUF;AACA;AACA,IACC,SAAAwL,eAAAA,CAAuBzH,IAAI,CAAE,CAC5B,IAAMzC,IAAI,CAAGoB,GAAG,CAAC+I,cAAc,CAC9BC,MAAM,CAAGhJ,GAAG,CAACC,aAAa,CAAC,qBAAqB,CAAM,CAAA,CAAA,CAAC,CACvDsF,OAAO,CAAG3G,IAAI,CAAC4G,gBAAgB,EAAE,CAEjCnE,IAAI,EADDkE,OAAO,CAAAc,IAAQ,CACV,YAAY,CAAGd,OAAO,CAAAc,IAAQ,CAE9B,eAAe,CAExB,IAAI4C,YAAY,CAAG,8BAAyB,CAAGD,MAAM,CAAChJ,GAAG,CAACC,aAAa,CAAC,UAAU,CAAC,CAAC,CAACiJ,IAAI,EAAE,CAAG,KAAI,CAClGD,YAAY,EAAI,4BAAuB,CAAG1D,OAAO,CAAAS,KAAS,CAAG,YAAY,CAAGT,OAAO,CAAAU,GAAO,CAAG,cAAa,CACtGV,OAAO,CAAAK,IAAQ,GAClBqD,YAAY,EAAI,iCAA4B,CAAG1D,OAAO,CAAAK,IAAQ,CAAAuD,WAAe,CAACD,IAAI,CAAC,IAAI,CAAC,CAAG,KAAI,CAAA,CAEhG7H,IAAI,EAAI,mBAAmB,CAAG+H,kBAAkB,CAACH,YAAY,CAAC,CAAG,IAAI,CACrE5J,MAAM,CAACoC,QAAQ,CAAC8G,IAAI,CAAGlH,KACxB,CAAC,CAAA,CAAA,CAAA,CAAA9B,oBAAA,CAAA,CArB+D8J,kBAAkB,CA0UlF;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js b/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js
index 1c4b3a37ed64..5b93492e9449 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js
+++ b/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js
@@ -1,4 +1,4 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";Vtiger_Detail_Js("Calendar_Detail_Js",{deleteRecord:function deleteRecord(deleteRecordActionUrl){app.showConfirmModal({text:app.vtranslate("LBL_DELETE_CONFIRMATION"),confirmedCallback:function confirmedCallback(){app.showModalWindow($(".typeRemoveModal").clone(),function(container){container.find(".typeSavingBtn").on("click",function(e){var currentTarget=$(e.currentTarget);app.hideModalWindow(),AppConnector.request(deleteRecordActionUrl+"&typeRemove="+currentTarget.data("value")).done(function(data){!0==data.success?window.location.href=data.result:app.showNotify({text:data.error.message,type:"error"});});});});}});}},{});
+/* {[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]} */"use strict";Vtiger_Detail_Js("Calendar_Detail_Js",{deleteRecord:function deleteRecord(deleteRecordActionUrl){app.showConfirmModal({text:app.vtranslate("LBL_DELETE_CONFIRMATION"),confirmedCallback:function confirmedCallback(){app.showModalWindow($(".typeRemoveModal").clone(),function(container){container.find(".typeSavingBtn").on("click",function(e){var currentTarget=$(e.currentTarget);app.hideModalWindow(),AppConnector.request(deleteRecordActionUrl+"&typeRemove="+currentTarget.data("value")).done(function(data){!0==data.success?window.location.href=data.result:app.showNotify({text:data.error.message,type:"error"});});});});}});}},{});
//# sourceMappingURL=Detail.min.js.map
diff --git a/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js.map
index c65bb987e055..033b15562b35 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/Detail.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Detail.min.js","sources":["Detail.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\nVtiger_Detail_Js(\n\t'Calendar_Detail_Js',\n\t{\n\t\tdeleteRecord: function (deleteRecordActionUrl) {\n\t\t\tapp.showConfirmModal({\n\t\t\t\ttext: app.vtranslate('LBL_DELETE_CONFIRMATION'),\n\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\tapp.showModalWindow($('.typeRemoveModal').clone(), function (container) {\n\t\t\t\t\t\tcontainer.find('.typeSavingBtn').on('click', function (e) {\n\t\t\t\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\tAppConnector.request(deleteRecordActionUrl + '&typeRemove=' + currentTarget.data('value')).done(function (\n\t\t\t\t\t\t\t\tdata\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tif (data.success == true) {\n\t\t\t\t\t\t\t\t\twindow.location.href = data.result;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttext: data.error.message,\n\t\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_Detail_Js","deleteRecord","deleteRecordActionUrl","app","showConfirmModal","text","vtranslate","confirmedCallback","showModalWindow","$","clone","container","find","on","e","currentTarget","hideModalWindow","AppConnector","request","data","done","success","window","location","href","result","showNotify","error","message","type"],"mappings":";;AAAA,kKACA,YAEAA,CAAAA,gBAAgB,CACf,oBADe,CAEf,CACCC,YAAY,CAAE,SAAA,YAAA,CAAUC,qBAAV,CAAiC,CAC9CC,GAAG,CAACC,gBAAJ,CAAqB,CACpBC,IAAI,CAAEF,GAAG,CAACG,UAAJ,CAAe,yBAAf,CADc,CAEpBC,iBAAiB,CAAE,SAAA,iBAAA,EAAM,CACxBJ,GAAG,CAACK,eAAJ,CAAoBC,CAAC,CAAC,kBAAD,CAAD,CAAsBC,KAAtB,EAApB,CAAmD,SAAUC,SAAV,CAAqB,CACvEA,SAAS,CAACC,IAAV,CAAe,gBAAf,CAAA,CAAiCC,EAAjC,CAAoC,OAApC,CAA6C,SAAUC,CAAV,CAAa,CACzD,IAAiB,aAAA,CAAGL,CAAC,CAACK,CAAC,CAACC,aAAH,CAArB,CACAZ,GAAG,CAACa,eAAJ,EAFyD,CAGzDC,YAAY,CAACC,OAAb,CAAqBhB,qBAAqB,CAAG,cAAxB,CAAyCa,aAAa,CAACI,IAAd,CAAmB,OAAnB,CAA9D,CAA2FC,CAAAA,IAA3F,CAAgG,SAC/FD,IAD+F,CAE9F,CACG,CAAAA,CAAAA,EAAAA,IAAI,CAACE,OADR,CAEAC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAuBL,IAAI,CAACM,MAF5B,CAIAtB,GAAG,CAACuB,UAAJ,CAAe,CACdrB,IAAI,CAAEc,IAAI,CAACQ,KAAL,CAAWC,OADH,CAEdC,IAAI,CAAE,OAFQ,CAAf,EAKD,CAXD,EAYA,CAfD,EAgBA,CAjBD,EAkBA,CArBmB,CAArB,EAuBA,CAzBF,CAFe,CA6Bf,EA7Be;;"}
\ No newline at end of file
+{"version":3,"file":"Detail.min.js","sources":["Detail.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\nVtiger_Detail_Js(\n\t'Calendar_Detail_Js',\n\t{\n\t\tdeleteRecord: function (deleteRecordActionUrl) {\n\t\t\tapp.showConfirmModal({\n\t\t\t\ttext: app.vtranslate('LBL_DELETE_CONFIRMATION'),\n\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\tapp.showModalWindow($('.typeRemoveModal').clone(), function (container) {\n\t\t\t\t\t\tcontainer.find('.typeSavingBtn').on('click', function (e) {\n\t\t\t\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\tAppConnector.request(deleteRecordActionUrl + '&typeRemove=' + currentTarget.data('value')).done(function (\n\t\t\t\t\t\t\t\tdata\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tif (data.success == true) {\n\t\t\t\t\t\t\t\t\twindow.location.href = data.result;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttext: data.error.message,\n\t\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_Detail_Js","deleteRecord","deleteRecordActionUrl","app","showConfirmModal","text","vtranslate","confirmedCallback","showModalWindow","$","clone","container","find","on","e","currentTarget","hideModalWindow","AppConnector","request","data","done","success","window","location","href","result","showNotify","error","message","type"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,gBAAgB,CACf,oBAAoB,CACpB,CACCC,YAAY,CAAE,SAAAA,YAAUC,CAAAA,qBAAqB,CAAE,CAC9CC,GAAG,CAACC,gBAAgB,CAAC,CACpBC,IAAI,CAAEF,GAAG,CAACG,UAAU,CAAC,yBAAyB,CAAC,CAC/CC,iBAAiB,CAAE,SAAAA,iBAAAA,EAAM,CACxBJ,GAAG,CAACK,eAAe,CAACC,CAAC,CAAC,kBAAkB,CAAC,CAACC,KAAK,EAAE,CAAE,SAAUC,SAAS,CAAE,CACvEA,SAAS,CAACC,IAAI,CAAC,gBAAgB,CAAC,CAACC,EAAE,CAAC,OAAO,CAAE,SAAUC,CAAC,CAAE,CACzD,IAAIC,aAAa,CAAGN,CAAC,CAACK,CAAC,CAACC,aAAa,CAAC,CACtCZ,GAAG,CAACa,eAAe,EAAE,CACrBC,YAAY,CAACC,OAAO,CAAChB,qBAAqB,CAAG,cAAc,CAAGa,aAAa,CAACI,IAAI,CAAC,OAAO,CAAC,CAAC,CAACC,IAAI,CAAC,SAC/FD,IAAI,CACH,CACG,CAAAA,CAAAA,EAAAA,IAAI,CAACE,OAAe,CACvBC,MAAM,CAACC,QAAQ,CAACC,IAAI,CAAGL,IAAI,CAACM,MAAM,CAElCtB,GAAG,CAACuB,UAAU,CAAC,CACdrB,IAAI,CAAEc,IAAI,CAACQ,KAAK,CAACC,OAAO,CACxBC,IAAI,CAAE,OACP,CAAC,EAEH,CAAC,EACF,CAAC,EACF,CAAC,EACF,CACD,CAAC,EACF,CACD,CAAC,CACD,EACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/Edit.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/Edit.min.js.map
index a0840b4e2d53..c58700f8e58f 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/Edit.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/Edit.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Edit.min.js","sources":["Edit.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_Edit_Js(\n\t'Calendar_Edit_Js',\n\t{\n\t\tcurrencyInstance: false,\n\t\tcheckEmail(field, rules, i, options) {\n\t\t\tif (Calendar_Edit_Js.currencyInstance.emailExists(field.val())) {\n\t\t\t\treturn app.vtranslate('JS_DUPLICATE_RECORD') + ': ' + field.val();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t},\n\t{\n\t\tinit() {\n\t\t\tCalendar_Edit_Js.currencyInstance = this;\n\t\t},\n\t\tregisterReminderFieldCheckBox: function () {\n\t\t\tlet element = this.getForm().find('.js-reminder-field-checkbox');\n\t\t\telement.on('change', function (e) {\n\t\t\t\tlet rowElement = element.closest('.js-reminder-field-element').find('.js-reminder-field-row');\n\t\t\t\tif (element.is(':checked')) {\n\t\t\t\t\trowElement.removeClass('d-none');\n\t\t\t\t} else {\n\t\t\t\t\trowElement.addClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t\telement.change();\n\t\t},\n\t\t/**\n\t\t * Function which will register change event on recurrence field checkbox\n\t\t */\n\t\tregisterRecurrenceFieldCheckBox: function () {\n\t\t\tconst form = this.getForm(),\n\t\t\t\telement = form.find('input[name=\"reapeat\"]');\n\t\t\telement.on('change', function (e) {\n\t\t\t\tlet repeatUI = form.find('.js-repeat-ui'),\n\t\t\t\t\tcontainer = form.find('[name=\"followup\"]').closest('.fieldValue');\n\t\t\t\tif ($(e.currentTarget).is(':checked')) {\n\t\t\t\t\trepeatUI.closest('.fieldRow').removeClass('d-none');\n\t\t\t\t\tcontainer.find('[name=\"followup_display\"]').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('button').attr('disabled', 'disabled');\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('[name=\"followup_display\"]').removeAttr('disabled');\n\t\t\t\t\tcontainer.find('button').removeAttr('disabled');\n\t\t\t\t\trepeatUI.closest('.fieldRow').addClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t\telement.change();\n\t\t},\n\t\t/**\n\t\t * Function which will register the change event for recurring type\n\t\t */\n\t\tregisterRecurringTypeChangeEvent: function () {\n\t\t\tvar container = this.getForm();\n\t\t\tvar thisInstance = this;\n\t\t\tcontainer.find('.recurringType').on('change', function (e) {\n\t\t\t\tthisInstance.changeRecurringTypesUIStyles(jQuery(e.currentTarget).val());\n\t\t\t});\n\t\t\tcontainer.find('.js-repeat-ui [name=\"calendarEndType\"]').on('change', function (e) {\n\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\tvar value = currentTarget.val();\n\t\t\t\tif (value === 'never') {\n\t\t\t\t\tcontainer.find('.countEvents').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').attr('disabled', 'disabled');\n\t\t\t\t} else if (value === 'count') {\n\t\t\t\t\tcontainer.find('.countEvents').removeAttr('disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').attr('disabled', 'disabled');\n\t\t\t\t} else if (value === 'until') {\n\t\t\t\t\tcontainer.find('.countEvents').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').removeAttr('disabled');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function which will change the UI styles based on recurring type\n\t\t * @params - recurringType - which recurringtype is selected\n\t\t */\n\t\tchangeRecurringTypesUIStyles: function (recurringType) {\n\t\t\tvar container = this.getForm();\n\t\t\tif (recurringType == 'DAILY' || recurringType == 'YEARLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('show').addClass('d-none');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('show').addClass('d-none');\n\t\t\t} else if (recurringType == 'WEEKLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('d-none').addClass('show');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('show').addClass('d-none');\n\t\t\t} else if (recurringType == 'MONTHLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('show').addClass('d-none');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('d-none').addClass('show');\n\t\t\t}\n\t\t},\n\t\tsetDefaultEndTime: function (container) {\n\t\t\tconst self = this;\n\t\t\tif (container.find('.js-autofill').is(':checked')) {\n\t\t\t\tself.getFreeTime(container);\n\t\t\t} else {\n\t\t\t\tif ('1' === $('[name=\"userChangedEndDateTime\"]').val()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet dateStartElement = container.find('[name=\"date_start\"]'),\n\t\t\t\t\tstartTimeElement = container.find('[name=\"time_start\"]'),\n\t\t\t\t\tendTimeElement = container.find('[name=\"time_end\"]'),\n\t\t\t\t\tendDateElement = container.find('[name=\"due_date\"]'),\n\t\t\t\t\tstartDate = dateStartElement.val(),\n\t\t\t\t\tstartTime = startTimeElement.val(),\n\t\t\t\t\tresult = Vtiger_Time_Validator_Js.invokeValidation(startTimeElement);\n\t\t\t\tif (true !== result) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet activityType = container.find('[name=\"activitytype\"]');\n\t\t\t\tlet activityTypeValue = activityType.val();\n\t\t\t\tif (activityType.is('[type=\"radio\"]')) {\n\t\t\t\t\tactivityTypeValue = activityType.filter(':checked').val();\n\t\t\t\t}\n\t\t\t\tlet startDateTime = startDate + ' ' + startTime,\n\t\t\t\t\tdateFormat = container.find('[name=\"due_date\"]').data('dateFormat').toUpperCase(),\n\t\t\t\t\ttimeFormat = endTimeElement.data('format'),\n\t\t\t\t\tactivityDurations = JSON.parse(container.find('[name=\"defaultOtherEventDuration\"]').val()),\n\t\t\t\t\tminutes = 0;\n\t\t\t\tfor (let i in activityDurations) {\n\t\t\t\t\tif (activityDurations[i].activitytype === activityTypeValue) {\n\t\t\t\t\t\tminutes = parseInt(activityDurations[i].duration);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlet defaultTimeFormat = 'HH:mm';\n\t\t\t\tif (12 === timeFormat) {\n\t\t\t\t\tdefaultTimeFormat = 'hh:mm A';\n\t\t\t\t}\n\t\t\t\tlet endDate = moment(startDateTime, dateFormat + ' ' + defaultTimeFormat).add(minutes, 'minutes');\n\t\t\t\tendDateElement.val(endDate.format(dateFormat));\n\t\t\t\tendTimeElement.val(endDate.format(defaultTimeFormat));\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Function to change the end time based on default call duration\n\t\t */\n\t\tregisterActivityTypeChangeEvent: function (container) {\n\t\t\tconst thisInstance = this;\n\t\t\tcontainer.on('change', '[name=\"activitytype\"]', function (e) {\n\t\t\t\tthisInstance.setDefaultEndTime(container);\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function to change the end time based on default call duration\n\t\t */\n\t\tregisterTimeStartChangeEvent(container) {\n\t\t\tconst thisInstance = this;\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('change', function (e) {\n\t\t\t\tthisInstance.setDefaultEndTime(container);\n\t\t\t});\n\t\t\tcontainer.find('[name=\"date_start\"]').on('change', function (e) {\n\t\t\t\tlet endDateElement = container.find('[name=\"due_date\"]'),\n\t\t\t\t\tstart = thisInstance.getDateInstance(container, 'start'),\n\t\t\t\t\tend = thisInstance.getDateInstance(container, 'end'),\n\t\t\t\t\tdateFormat = CONFIG.dateFormat.toUpperCase();\n\t\t\t\tcontainer.find('.js-autofill').trigger('change');\n\t\t\t\tif (start > end) {\n\t\t\t\t\tend = start;\n\t\t\t\t\tendDateElement.val(moment(end).format(dateFormat));\n\t\t\t\t\tApp.Fields.Date.register(container);\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('focus', function (e) {\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\telement.data('prevValue', element.val());\n\t\t\t});\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('blur', function (e, data) {\n\t\t\t\tif (typeof data === 'undefined') {\n\t\t\t\t\tdata = {};\n\t\t\t\t}\n\t\t\t\tif (typeof data.forceChange === 'undefined') {\n\t\t\t\t\tdata.forceChange = false;\n\t\t\t\t}\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\tif (element.val() !== element.data('prevValue') || data.forceChange) {\n\t\t\t\t\te = $.Event('keydown');\n\t\t\t\t\te.which = 13;\n\t\t\t\t\te.keyCode = 13;\n\t\t\t\t\telement.trigger(e);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEndDateTimeChangeLogger: function (container) {\n\t\t\tcontainer.find('[name=\"time_end\"]').on('change', function (e) {\n\t\t\t\tlet timeElement = jQuery(e.currentTarget);\n\t\t\t\tlet result = Vtiger_Time_Validator_Js.invokeValidation(timeElement);\n\t\t\t\tif (result != true) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet timeDateElement = timeElement.closest('.fieldValue').find('[name=\"due_date\"]');\n\t\t\t\tjQuery('[name=\"userChangedEndDateTime\"]').val('1');\n\t\t\t\ttimeDateElement.data('userChangedTime', true);\n\t\t\t});\n\n\t\t\tcontainer.find('[name=\"due_date\"]').on('change', function (e) {\n\t\t\t\tlet dueDateElement = jQuery(e.currentTarget);\n\t\t\t\tlet result = Vtiger_Date_Validator_Js.invokeValidation(dueDateElement);\n\t\t\t\tif (result != true) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tjQuery('[name=\"userChangedEndDateTime\"]').val('1');\n\t\t\t\tdueDateElement.data('userChangedTime', true);\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t *\n\t\t * @returns {String}\n\t\t */\n\t\tgetRule: function () {\n\t\t\tvar form = this.getForm();\n\t\t\tvar freq = form.find('.recurringType').val();\n\t\t\tvar rule = 'FREQ=' + freq;\n\t\t\trule += ';INTERVAL=' + form.find('.repeatFrequency').val();\n\t\t\tvar endValue = form.find('.js-repeat-ui [name=\"calendarEndType\"]:checked').val();\n\t\t\tif (endValue === 'count') {\n\t\t\t\trule += ';COUNT=' + form.find('.countEvents').val();\n\t\t\t} else if (endValue === 'until') {\n\t\t\t\tlet date = App.Fields.Date.dateToDbFormat(App.Fields.Date.getDateInstance(form.find('.calendarUntil').val()));\n\t\t\t\trule += ';UNTIL=' + date.replace(/-/gi, '') + 'T235959';\n\t\t\t}\n\t\t\tif (freq === 'WEEKLY') {\n\t\t\t\tvar checkedElements = [];\n\t\t\t\tform.find('.repeatWeekUI [type=\"checkbox\"]').each(function () {\n\t\t\t\t\tvar currentTarget = $(this);\n\t\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\t\tcheckedElements.push(currentTarget.val());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif (checkedElements.length > 0) {\n\t\t\t\t\trule += ';BYDAY=' + checkedElements.join(',');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (freq === 'MONTHLY') {\n\t\t\t\tconst dateInstance = App.Fields.Date.getDateInstance(form.find('[name=\"date_start\"]').val());\n\t\t\t\tlet dayOfMonth = dateInstance.getDate();\n\t\t\t\tif (form.find('.calendarMontlyType:checked').val() == 'DAY') {\n\t\t\t\t\tlet dayOfWeekLabel = '';\n\t\t\t\t\tswitch (dateInstance.getDay()) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'SU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'MO';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'TU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'WE';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'TU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'FR';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'SA';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\trule += ';BYDAY=' + (parseInt((dayOfMonth - 1) / 7) + 1) + dayOfWeekLabel;\n\t\t\t\t} else {\n\t\t\t\t\trule += ';BYMONTHDAY=' + dayOfMonth;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rule;\n\t\t},\n\t\t/**\n\t\t * This function will register the submit event on form\n\t\t * @param {jQuery} form\n\t\t */\n\t\tregisterFormSubmitEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar lockSave = true;\n\t\t\tif (app.getRecordId()) {\n\t\t\t\tform.on(Vtiger_Edit_Js.recordPreSave, function (e) {\n\t\t\t\t\tif (lockSave && form.find('input[name=\"reapeat\"]').is(':checked')) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tapp.showModalWindow(form.find('.typeSavingModal').clone(), function (container) {\n\t\t\t\t\t\t\tcontainer.find('.typeSavingBtn').on('click', function (e) {\n\t\t\t\t\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\t\t\t\t\tform.find('[name=\"typeSaving\"]').val(currentTarget.data('value'));\n\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\tlockSave = false;\n\t\t\t\t\t\t\t\tform.submit();\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tform.on('submit', function (e) {\n\t\t\t\tconst recurringCheck = form.find('input[name=\"reapeat\"]').is(':checked');\n\t\t\t\tif (recurringCheck) {\n\t\t\t\t\tif (app.getRecordId() && lockSave) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tform.find('[name=\"recurrence\"]').val(thisInstance.getRule());\n\t\t\t\t}\n\t\t\t\tlet rows = form.find('.js-participants-content .js-participant-row');\n\t\t\t\tlet invitees = [];\n\t\t\t\trows.each(function (index, domElement) {\n\t\t\t\t\tlet row = $(domElement);\n\t\t\t\t\tif (row.data('email')) {\n\t\t\t\t\t\tinvitees.push([row.data('email'), row.data('crmid'), row.data('ivid'), row.data('name')]);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('').appendTo(form).val(JSON.stringify(invitees));\n\t\t\t});\n\t\t},\n\t\tgetFreeTime: function (container) {\n\t\t\tlet ownerId = container.find('[name=\"assigned_user_id\"], [data-element-name=\"assigned_user_id\"]');\n\t\t\tif (ownerId.length === 0 || !ownerId.val()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet timeStart = container.find('[name=\"time_start\"], [data-element-name=\"time_start\"]');\n\t\t\tlet timeEnd = container.find('[name=\"time_end\"], [data-element-name=\"time_end\"]');\n\t\t\tlet dateStart = container.find('[name=\"date_start\"], [data-element-name=\"date_start\"]');\n\t\t\tlet params = {\n\t\t\t\tmodule: 'Calendar',\n\t\t\t\taction: 'GetFreeTime',\n\t\t\t\tdateStart: dateStart.val(),\n\t\t\t\townerId: ownerId.val(),\n\t\t\t\tactivitytype: container.find('[name=\"activitytype\"]').val()\n\t\t\t};\n\t\t\tlet progress = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });\n\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\tprogress.progressIndicator({ mode: 'hide' });\n\t\t\t\tif (data.result.date_start !== null) {\n\t\t\t\t\ttimeStart.val(data.result.time_start);\n\t\t\t\t\ttimeEnd.val(data.result.time_end);\n\t\t\t\t\tdateStart.val(data.result.date_start);\n\t\t\t\t\tcontainer.find('[name=\"due_date\"]').val(data.result.date_start);\n\t\t\t\t} else {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR_MAX_VALUE'),\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', false).trigger('change');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterAutoFillHours: function (container) {\n\t\t\tconst thisInstance = this;\n\t\t\tlet allDay = container.find('[name=\"allday\"]'),\n\t\t\t\ttimeStart = container.find('[name=\"time_start\"]'),\n\t\t\t\ttimeEnd = container.find('[name=\"time_end\"]'),\n\t\t\t\tdateEnd = container.find('[name=\"due_date\"]'),\n\t\t\t\tautoFill = container.find('.js-autofill');\n\t\t\tcontainer.find('.js-autofill__icon').on('click', function (e) {\n\t\t\t\tif (autoFill.is(':checked')) {\n\t\t\t\t\t$(e.currentTarget).closest('.input-group-text').removeClass('bg-color-blue-700').removeClass('text-white');\n\t\t\t\t\tautoFill.prop('checked', false).trigger('change');\n\t\t\t\t} else {\n\t\t\t\t\t$(e.currentTarget).closest('.input-group-text').addClass('bg-color-blue-700').addClass('text-white');\n\t\t\t\t\tautoFill.prop('checked', true).trigger('change');\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontainer.find('.js-autofill').on('change', function (e) {\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', true);\n\t\t\t\t\tthisInstance.getFreeTime(container);\n\t\t\t\t\ttimeStart.attr('readonly', 'readonly');\n\t\t\t\t\ttimeEnd.attr('readonly', 'readonly');\n\t\t\t\t\ttimeStart.clockpicker('remove');\n\t\t\t\t\ttimeEnd.clockpicker('remove');\n\t\t\t\t\tallDay.attr('disabled', 'disabled');\n\t\t\t\t\tallDay.prop('checked', false);\n\t\t\t\t\tallDay.trigger('change');\n\t\t\t\t\tdateEnd.attr('readonly', 'readonly');\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', false);\n\t\t\t\t\tallDay.removeAttr('disabled');\n\t\t\t\t\ttimeStart.removeAttr('readonly');\n\t\t\t\t\ttimeEnd.removeAttr('readonly');\n\t\t\t\t\tdateEnd.removeAttr('readonly');\n\t\t\t\t\tapp.registerEventForClockPicker(timeStart);\n\t\t\t\t\tapp.registerEventForClockPicker(timeEnd);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterMarkAsCompletedBtn: function (container) {\n\t\t\tcontainer.find('.js-btn--mark-as-completed').on('click', function () {\n\t\t\t\tconst self = $(this);\n\t\t\t\tif (self.hasClass('active')) {\n\t\t\t\t\tcontainer.find('.js-completed').remove();\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.append(\n\t\t\t\t\t\t''\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.toggleTimesInputs(container);\n\t\t\tthis.registerTimesInputs(container);\n\t\t\tthis.registerTimeStartChangeEvent(container);\n\t\t\tthis.registerActivityTypeChangeEvent(container);\n\t\t\tthis.registerEndDateTimeChangeLogger(container);\n\t\t\tthis.registerAutoFillHours(container);\n\t\t\tthis.registerMarkAsCompletedBtn(container);\n\t\t\tthis.registerInviteEvent(container);\n\t\t\tthis.registerAddInvitation(container);\n\t\t\tthis.registerFormSubmitEvent(container);\n\t\t},\n\t\ttoggleTimesInputs: function (container) {\n\t\t\tcontainer.find(':checkbox').on('change', function () {\n\t\t\t\tvar checkboxName = $(this).attr('name');\n\t\t\t\tif ('allday' == checkboxName) {\n\t\t\t\t\tvar checkboxIsChecked = $(this).is(':checked');\n\t\t\t\t\tif (!container.find('#quickCreate').length) {\n\t\t\t\t\t\tif (checkboxIsChecked) {\n\t\t\t\t\t\t\tcontainer.find('.time').hide();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontainer.find('.time').show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterTimesInputs: function (container) {\n\t\t\tvar allday = container.find('[name=\"allday\"]:checkbox');\n\t\t\tif (allday.prop('checked')) {\n\t\t\t\tcontainer.find('.time').hide();\n\t\t\t}\n\t\t},\n\t\tgetDateInstance: function (container, type) {\n\t\t\tvar startDateElement = container.find('[name=\"date_start\"]');\n\t\t\tvar endDateElement = container.find('[name=\"due_date\"]');\n\t\t\tvar endTimeElement = container.find('[name=\"time_end\"]');\n\t\t\tvar startTimeElement = container.find('[name=\"time_start\"]');\n\t\t\tvar startDate = startDateElement.val();\n\t\t\tvar startTime = startTimeElement.val();\n\t\t\tvar endTime = endTimeElement.val();\n\t\t\tvar endDate = endDateElement.val();\n\t\t\tvar dateFormat = CONFIG.dateFormat;\n\t\t\tif (type == 'start') {\n\t\t\t\treturn App.Fields.Date.getDateInstance(startDate + ' ' + startTime, dateFormat);\n\t\t\t}\n\t\t\tif (type == 'end') {\n\t\t\t\treturn App.Fields.Date.getDateInstance(endDate + ' ' + endTime, dateFormat);\n\t\t\t}\n\t\t},\n\t\temailExists(email) {\n\t\t\temail = email.toLowerCase();\n\t\t\tlet recordExist = false;\n\t\t\tthis.getForm()\n\t\t\t\t.find('.js-participants-content')\n\t\t\t\t.find('.js-participant-row')\n\t\t\t\t.each((index, element) => {\n\t\t\t\t\tif ($(element).data('email').toLowerCase() === email) {\n\t\t\t\t\t\trecordExist = true;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\treturn recordExist;\n\t\t},\n\t\tregisterAddInvitation(container) {\n\t\t\tcontainer.find('.js-btn-add-invitation').on('click', (e) => {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator();\n\t\t\t\tapp.showModalWindow(null, 'index.php?module=Calendar&view=InviteEmail', (data) => {\n\t\t\t\t\tdata.find('.js-modal__save').on('click', (e) => {\n\t\t\t\t\t\tlet email = data.find('.js-invite-email-input').val();\n\t\t\t\t\t\tlet nameAttendee = data.find('.js-invite-name-input').val();\n\t\t\t\t\t\tlet participantsContent = container.find('.js-participants-content');\n\t\t\t\t\t\tlet formEmail = data.find('.js-form');\n\t\t\t\t\t\tformEmail.validationEngine(app.validationEngineOptions);\n\t\t\t\t\t\tif (formEmail.validationEngine('validate')) {\n\t\t\t\t\t\t\tlet participantRow = participantsContent.find('.d-none .js-participant-row').clone(true, true);\n\t\t\t\t\t\t\tparticipantRow.data('crmid', 0);\n\t\t\t\t\t\t\tparticipantRow.data('email', email);\n\t\t\t\t\t\t\tif (nameAttendee) {\n\t\t\t\t\t\t\t\tparticipantRow.find('.js-participant-name').data('content', nameAttendee).text(nameAttendee);\n\t\t\t\t\t\t\t\tparticipantRow.data('name', nameAttendee);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tparticipantRow.find('.js-participant-name').data('content', email).text(email);\n\t\t\t\t\t\t\t\tparticipantRow.data('name', '');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tparticipantsContent.append(participantRow);\n\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tregisterInviteEvent: function (editViewForm) {\n\t\t\tthis.registerRow(editViewForm);\n\t\t\tlet participantsContent = editViewForm.find('.js-participants-content');\n\t\t\tlet participantsSearch = editViewForm.find('.js-participants-search');\n\t\t\t$.widget('custom.ivAutocomplete', $.ui.autocomplete, {\n\t\t\t\t_create: function () {\n\t\t\t\t\tthis._super();\n\t\t\t\t\tthis.widget().menu('option', 'items', '> :not(.ui-autocomplete-category)');\n\t\t\t\t},\n\t\t\t\t_renderMenu: function (ul, items) {\n\t\t\t\t\tlet that = this,\n\t\t\t\t\t\tcurrentCategory = '';\n\t\t\t\t\t$.each(items, function (_index, item) {\n\t\t\t\t\t\tif (item.category != currentCategory) {\n\t\t\t\t\t\t\tul.append(\"
\" + item.category + '
');\n\t\t\t\t\t\t\tcurrentCategory = item.category;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthat._renderItemData(ul, item);\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\t_renderItemData: function (ul, item) {\n\t\t\t\t\treturn this._renderItem(ul, item).data('ui-autocomplete-item', item);\n\t\t\t\t},\n\t\t\t\t_renderItem: function (ul, item) {\n\t\t\t\t\treturn $('
').data('item.autocomplete', item).append($('').html(item.label)).appendTo(ul);\n\t\t\t\t}\n\t\t\t});\n\t\t\tparticipantsSearch.ivAutocomplete({\n\t\t\t\tdelay: '600',\n\t\t\t\tminLength: '3',\n\t\t\t\tsource: (request, response) => {\n\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\tmodule: 'Calendar',\n\t\t\t\t\t\taction: 'Invitees',\n\t\t\t\t\t\tmode: 'find',\n\t\t\t\t\t\tvalue: request.term\n\t\t\t\t\t}).done((result) => {\n\t\t\t\t\t\tlet reponseDataList = result.result;\n\t\t\t\t\t\tif (reponseDataList.length <= 0) {\n\t\t\t\t\t\t\treponseDataList.push({\n\t\t\t\t\t\t\t\tlabel: app.vtranslate('JS_NO_RESULTS_FOUND'),\n\t\t\t\t\t\t\t\ttype: 'no results',\n\t\t\t\t\t\t\t\tcategory: ''\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresponse(reponseDataList);\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tselect: (event, ui) => {\n\t\t\t\t\tlet selected = ui.item;\n\t\t\t\t\t//To stop selection if no results is selected\n\t\t\t\t\tif (typeof selected.type !== 'undefined' && selected.type == 'no results') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tlet recordExist = true;\n\t\t\t\t\tparticipantsContent.find('.js-participant-row').each(function (index) {\n\t\t\t\t\t\tif ($(this).data('crmid') == selected.id) {\n\t\t\t\t\t\t\trecordExist = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif (recordExist) {\n\t\t\t\t\t\tlet participantRow = participantsContent.find('.d-none .js-participant-row').clone(true, true);\n\t\t\t\t\t\tVtiger_Index_Js.getEmailFromRecord(selected.id, selected.module).done((email) => {\n\t\t\t\t\t\t\tparticipantRow.data('crmid', selected.id);\n\t\t\t\t\t\t\tparticipantRow.data('email', email);\n\t\t\t\t\t\t\tparticipantRow\n\t\t\t\t\t\t\t\t.find('.js-participant-name')\n\t\t\t\t\t\t\t\t.data('content', selected.fullLabel + email)\n\t\t\t\t\t\t\t\t.text(selected.label);\n\t\t\t\t\t\t\tparticipantRow\n\t\t\t\t\t\t\t\t.find('.js-participant-icon .c-badge__icon')\n\t\t\t\t\t\t\t\t.removeClass('fas fa-envelope')\n\t\t\t\t\t\t\t\t.addClass('yfm-' + selected.module);\n\t\t\t\t\t\t\tparticipantsContent.append(participantRow);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_DUPLICATE_RECORD') + ': ' + selected.fullLabel,\n\t\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tclose: (event, ui) => {\n\t\t\t\t\tparticipantsSearch.val('');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterRow(row) {\n\t\t\trow.on('click', '.js-participant-remove', (e) => {\n\t\t\t\t$(e.target).closest('.js-participant-row').remove();\n\t\t\t});\n\t\t},\n\t\tregisterEvents() {\n\t\t\tif (!this.proceedRegisterEvents()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.registerReminderFieldCheckBox();\n\t\t\tthis.registerRecurrenceFieldCheckBox();\n\t\t\tthis.registerRecurringTypeChangeEvent();\n\t\t\tthis._super();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","currencyInstance","checkEmail","field","Calendar_Edit_Js","emailExists","val","app","vtranslate","init","registerReminderFieldCheckBox","element","getForm","find","on","closest","is","rowElement","removeClass","addClass","change","registerRecurrenceFieldCheckBox","form","e","container","$","currentTarget","repeatUI","attr","removeAttr","registerRecurringTypeChangeEvent","thisInstance","changeRecurringTypesUIStyles","jQuery","value","recurringType","setDefaultEndTime","self","getFreeTime","startTimeElement","endTimeElement","endDateElement","startDate","dateStartElement","startTime","result","Vtiger_Time_Validator_Js","invokeValidation","activityTypeValue","activityType","filter","dateFormat","data","toUpperCase","timeFormat","activityDurations","JSON","parse","minutes","i","activitytype","parseInt","duration","defaultTimeFormat","moment","add","endDate","format","registerActivityTypeChangeEvent","registerTimeStartChangeEvent","start","getDateInstance","end","CONFIG","trigger","App","Fields","Date","register","forceChange","Event","which","keyCode","registerEndDateTimeChangeLogger","timeElement","timeDateElement","Vtiger_Date_Validator_Js","dueDateElement","getRule","freq","rule","endValue","dateToDbFormat","date","replace","each","checkedElements","push","length","join","dayOfMonth","dateInstance","getDate","dayOfWeekLabel","getDay","registerFormSubmitEvent","lockSave","getRecordId","recordPreSave","preventDefault","showModalWindow","clone","hideModalWindow","submit","recurringCheck","rows","invitees","index","domElement","row","appendTo","stringify","ownerId","timeEnd","dateStart","params","module","action","progress","progressIndicator","position","blockInfo","enabled","AppConnector","request","done","mode","date_start","showNotify","text","type","prop","timeStart","time_start","time_end","registerAutoFillHours","allDay","dateEnd","autoFill","clockpicker","registerEventForClockPicker","registerMarkAsCompletedBtn","hasClass","remove","append","registerBasicEvents","_super","toggleTimesInputs","registerTimesInputs","registerInviteEvent","registerAddInvitation","checkboxName","checkboxIsChecked","hide","show","allday","startDateElement","endTime","email","toLowerCase","recordExist","nameAttendee","participantsContent","formEmail","validationEngine","validationEngineOptions","participantRow","progressIndicatorElement","editViewForm","registerRow","participantsSearch","widget","ui","autocomplete","_create","menu","_renderMenu","ul","items","currentCategory","_index","item","category","that","_renderItemData","_renderItem","html","label","ivAutocomplete","delay","minLength","source","response","term","reponseDataList","select","event","selected","id","Vtiger_Index_Js","getEmailFromRecord","fullLabel","close","target","registerEvents","proceedRegisterEvents"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAA,CAEAA,cAAc,CACb,kBADa,CAEb,CACCC,gBAAgB,CADjB,CAAA,CAAA,CAECC,UAFD,CAAA,SAAA,UAAA,CAEYC,KAFZ,CAEsC,SAChCC,gBAAgB,CAACH,gBAAjB,CAAkCI,WAAlC,CAA8CF,KAAK,CAACG,GAAN,EAA9C,CADgC,EAE5BC,GAAG,CAACC,UAAJ,CAAe,qBAAf,CAAwC,CAAA,IAAxC,CAA+CL,KAAK,CAACG,GAAN,EAGvD,CAPF,CAFa,CAWb,CACCG,IADD,gBACQ,CACNL,gBAA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AgB,wBAAhB,CAA0C,SAACS,CAAD,CAAO,CAChDE,CAAC,CAACF,CAAC,CAAC8L,MAAH,CAAD,CAAYtM,OAAZ,CAAoB,qBAApB,CAA2C0I,CAAAA,MAA3C,GACA,CAFD,EAGA,CAtjBF,CAujBC6D,cAvjBD,CAujBkB,SAAA,cAAA,EAAA,CACX,IAAKC,CAAAA,qBAAL,EADW,GAIhB,IAAK7M,CAAAA,6BAAL,EAJgB,CAKhB,IAAKW,CAAAA,+BAAL,EALgB,CAMhB,IAAKS,CAAAA,gCAAL,EANgB,CAOhB,IAAK8H,CAAAA,MAAL,EAPgB,EAQhB,CA/jBF,CAXa;;"}
\ No newline at end of file
+{"version":3,"file":"Edit.min.js","sources":["Edit.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_Edit_Js(\n\t'Calendar_Edit_Js',\n\t{\n\t\tcurrencyInstance: false,\n\t\tcheckEmail(field, rules, i, options) {\n\t\t\tif (Calendar_Edit_Js.currencyInstance.emailExists(field.val())) {\n\t\t\t\treturn app.vtranslate('JS_DUPLICATE_RECORD') + ': ' + field.val();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t},\n\t{\n\t\tinit() {\n\t\t\tCalendar_Edit_Js.currencyInstance = this;\n\t\t},\n\t\tregisterReminderFieldCheckBox: function () {\n\t\t\tlet element = this.getForm().find('.js-reminder-field-checkbox');\n\t\t\telement.on('change', function (e) {\n\t\t\t\tlet rowElement = element.closest('.js-reminder-field-element').find('.js-reminder-field-row');\n\t\t\t\tif (element.is(':checked')) {\n\t\t\t\t\trowElement.removeClass('d-none');\n\t\t\t\t} else {\n\t\t\t\t\trowElement.addClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t\telement.change();\n\t\t},\n\t\t/**\n\t\t * Function which will register change event on recurrence field checkbox\n\t\t */\n\t\tregisterRecurrenceFieldCheckBox: function () {\n\t\t\tconst form = this.getForm(),\n\t\t\t\telement = form.find('input[name=\"reapeat\"]');\n\t\t\telement.on('change', function (e) {\n\t\t\t\tlet repeatUI = form.find('.js-repeat-ui'),\n\t\t\t\t\tcontainer = form.find('[name=\"followup\"]').closest('.fieldValue');\n\t\t\t\tif ($(e.currentTarget).is(':checked')) {\n\t\t\t\t\trepeatUI.closest('.fieldRow').removeClass('d-none');\n\t\t\t\t\tcontainer.find('[name=\"followup_display\"]').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('button').attr('disabled', 'disabled');\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('[name=\"followup_display\"]').removeAttr('disabled');\n\t\t\t\t\tcontainer.find('button').removeAttr('disabled');\n\t\t\t\t\trepeatUI.closest('.fieldRow').addClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t\telement.change();\n\t\t},\n\t\t/**\n\t\t * Function which will register the change event for recurring type\n\t\t */\n\t\tregisterRecurringTypeChangeEvent: function () {\n\t\t\tvar container = this.getForm();\n\t\t\tvar thisInstance = this;\n\t\t\tcontainer.find('.recurringType').on('change', function (e) {\n\t\t\t\tthisInstance.changeRecurringTypesUIStyles(jQuery(e.currentTarget).val());\n\t\t\t});\n\t\t\tcontainer.find('.js-repeat-ui [name=\"calendarEndType\"]').on('change', function (e) {\n\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\tvar value = currentTarget.val();\n\t\t\t\tif (value === 'never') {\n\t\t\t\t\tcontainer.find('.countEvents').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').attr('disabled', 'disabled');\n\t\t\t\t} else if (value === 'count') {\n\t\t\t\t\tcontainer.find('.countEvents').removeAttr('disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').attr('disabled', 'disabled');\n\t\t\t\t} else if (value === 'until') {\n\t\t\t\t\tcontainer.find('.countEvents').attr('disabled', 'disabled');\n\t\t\t\t\tcontainer.find('.calendarUntil').removeAttr('disabled');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function which will change the UI styles based on recurring type\n\t\t * @params - recurringType - which recurringtype is selected\n\t\t */\n\t\tchangeRecurringTypesUIStyles: function (recurringType) {\n\t\t\tvar container = this.getForm();\n\t\t\tif (recurringType == 'DAILY' || recurringType == 'YEARLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('show').addClass('d-none');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('show').addClass('d-none');\n\t\t\t} else if (recurringType == 'WEEKLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('d-none').addClass('show');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('show').addClass('d-none');\n\t\t\t} else if (recurringType == 'MONTHLY') {\n\t\t\t\tcontainer.find('.repeatWeekUI').removeClass('show').addClass('d-none');\n\t\t\t\tcontainer.find('.repeatMonthUI').removeClass('d-none').addClass('show');\n\t\t\t}\n\t\t},\n\t\tsetDefaultEndTime: function (container) {\n\t\t\tconst self = this;\n\t\t\tif (container.find('.js-autofill').is(':checked')) {\n\t\t\t\tself.getFreeTime(container);\n\t\t\t} else {\n\t\t\t\tif ('1' === $('[name=\"userChangedEndDateTime\"]').val()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet dateStartElement = container.find('[name=\"date_start\"]'),\n\t\t\t\t\tstartTimeElement = container.find('[name=\"time_start\"]'),\n\t\t\t\t\tendTimeElement = container.find('[name=\"time_end\"]'),\n\t\t\t\t\tendDateElement = container.find('[name=\"due_date\"]'),\n\t\t\t\t\tstartDate = dateStartElement.val(),\n\t\t\t\t\tstartTime = startTimeElement.val(),\n\t\t\t\t\tresult = Vtiger_Time_Validator_Js.invokeValidation(startTimeElement);\n\t\t\t\tif (true !== result) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet activityType = container.find('[name=\"activitytype\"]');\n\t\t\t\tlet activityTypeValue = activityType.val();\n\t\t\t\tif (activityType.is('[type=\"radio\"]')) {\n\t\t\t\t\tactivityTypeValue = activityType.filter(':checked').val();\n\t\t\t\t}\n\t\t\t\tlet startDateTime = startDate + ' ' + startTime,\n\t\t\t\t\tdateFormat = container.find('[name=\"due_date\"]').data('dateFormat').toUpperCase(),\n\t\t\t\t\ttimeFormat = endTimeElement.data('format'),\n\t\t\t\t\tactivityDurations = JSON.parse(container.find('[name=\"defaultOtherEventDuration\"]').val()),\n\t\t\t\t\tminutes = 0;\n\t\t\t\tfor (let i in activityDurations) {\n\t\t\t\t\tif (activityDurations[i].activitytype === activityTypeValue) {\n\t\t\t\t\t\tminutes = parseInt(activityDurations[i].duration);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlet defaultTimeFormat = 'HH:mm';\n\t\t\t\tif (12 === timeFormat) {\n\t\t\t\t\tdefaultTimeFormat = 'hh:mm A';\n\t\t\t\t}\n\t\t\t\tlet endDate = moment(startDateTime, dateFormat + ' ' + defaultTimeFormat).add(minutes, 'minutes');\n\t\t\t\tendDateElement.val(endDate.format(dateFormat));\n\t\t\t\tendTimeElement.val(endDate.format(defaultTimeFormat));\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Function to change the end time based on default call duration\n\t\t */\n\t\tregisterActivityTypeChangeEvent: function (container) {\n\t\t\tconst thisInstance = this;\n\t\t\tcontainer.on('change', '[name=\"activitytype\"]', function (e) {\n\t\t\t\tthisInstance.setDefaultEndTime(container);\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function to change the end time based on default call duration\n\t\t */\n\t\tregisterTimeStartChangeEvent(container) {\n\t\t\tconst thisInstance = this;\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('change', function (e) {\n\t\t\t\tthisInstance.setDefaultEndTime(container);\n\t\t\t});\n\t\t\tcontainer.find('[name=\"date_start\"]').on('change', function (e) {\n\t\t\t\tlet endDateElement = container.find('[name=\"due_date\"]'),\n\t\t\t\t\tstart = thisInstance.getDateInstance(container, 'start'),\n\t\t\t\t\tend = thisInstance.getDateInstance(container, 'end'),\n\t\t\t\t\tdateFormat = CONFIG.dateFormat.toUpperCase();\n\t\t\t\tcontainer.find('.js-autofill').trigger('change');\n\t\t\t\tif (start > end) {\n\t\t\t\t\tend = start;\n\t\t\t\t\tendDateElement.val(moment(end).format(dateFormat));\n\t\t\t\t\tApp.Fields.Date.register(container);\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('focus', function (e) {\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\telement.data('prevValue', element.val());\n\t\t\t});\n\t\t\tcontainer.find('input[name=\"time_start\"]').on('blur', function (e, data) {\n\t\t\t\tif (typeof data === 'undefined') {\n\t\t\t\t\tdata = {};\n\t\t\t\t}\n\t\t\t\tif (typeof data.forceChange === 'undefined') {\n\t\t\t\t\tdata.forceChange = false;\n\t\t\t\t}\n\t\t\t\tlet element = $(e.currentTarget);\n\t\t\t\tif (element.val() !== element.data('prevValue') || data.forceChange) {\n\t\t\t\t\te = $.Event('keydown');\n\t\t\t\t\te.which = 13;\n\t\t\t\t\te.keyCode = 13;\n\t\t\t\t\telement.trigger(e);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEndDateTimeChangeLogger: function (container) {\n\t\t\tcontainer.find('[name=\"time_end\"]').on('change', function (e) {\n\t\t\t\tlet timeElement = jQuery(e.currentTarget);\n\t\t\t\tlet result = Vtiger_Time_Validator_Js.invokeValidation(timeElement);\n\t\t\t\tif (result != true) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet timeDateElement = timeElement.closest('.fieldValue').find('[name=\"due_date\"]');\n\t\t\t\tjQuery('[name=\"userChangedEndDateTime\"]').val('1');\n\t\t\t\ttimeDateElement.data('userChangedTime', true);\n\t\t\t});\n\n\t\t\tcontainer.find('[name=\"due_date\"]').on('change', function (e) {\n\t\t\t\tlet dueDateElement = jQuery(e.currentTarget);\n\t\t\t\tlet result = Vtiger_Date_Validator_Js.invokeValidation(dueDateElement);\n\t\t\t\tif (result != true) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tjQuery('[name=\"userChangedEndDateTime\"]').val('1');\n\t\t\t\tdueDateElement.data('userChangedTime', true);\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t *\n\t\t * @returns {String}\n\t\t */\n\t\tgetRule: function () {\n\t\t\tvar form = this.getForm();\n\t\t\tvar freq = form.find('.recurringType').val();\n\t\t\tvar rule = 'FREQ=' + freq;\n\t\t\trule += ';INTERVAL=' + form.find('.repeatFrequency').val();\n\t\t\tvar endValue = form.find('.js-repeat-ui [name=\"calendarEndType\"]:checked').val();\n\t\t\tif (endValue === 'count') {\n\t\t\t\trule += ';COUNT=' + form.find('.countEvents').val();\n\t\t\t} else if (endValue === 'until') {\n\t\t\t\tlet date = App.Fields.Date.dateToDbFormat(App.Fields.Date.getDateInstance(form.find('.calendarUntil').val()));\n\t\t\t\trule += ';UNTIL=' + date.replace(/-/gi, '') + 'T235959';\n\t\t\t}\n\t\t\tif (freq === 'WEEKLY') {\n\t\t\t\tvar checkedElements = [];\n\t\t\t\tform.find('.repeatWeekUI [type=\"checkbox\"]').each(function () {\n\t\t\t\t\tvar currentTarget = $(this);\n\t\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\t\tcheckedElements.push(currentTarget.val());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tif (checkedElements.length > 0) {\n\t\t\t\t\trule += ';BYDAY=' + checkedElements.join(',');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (freq === 'MONTHLY') {\n\t\t\t\tconst dateInstance = App.Fields.Date.getDateInstance(form.find('[name=\"date_start\"]').val());\n\t\t\t\tlet dayOfMonth = dateInstance.getDate();\n\t\t\t\tif (form.find('.calendarMontlyType:checked').val() == 'DAY') {\n\t\t\t\t\tlet dayOfWeekLabel = '';\n\t\t\t\t\tswitch (dateInstance.getDay()) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'SU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'MO';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'TU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'WE';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'TU';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'FR';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tdayOfWeekLabel = 'SA';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\trule += ';BYDAY=' + (parseInt((dayOfMonth - 1) / 7) + 1) + dayOfWeekLabel;\n\t\t\t\t} else {\n\t\t\t\t\trule += ';BYMONTHDAY=' + dayOfMonth;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn rule;\n\t\t},\n\t\t/**\n\t\t * This function will register the submit event on form\n\t\t * @param {jQuery} form\n\t\t */\n\t\tregisterFormSubmitEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar lockSave = true;\n\t\t\tif (app.getRecordId()) {\n\t\t\t\tform.on(Vtiger_Edit_Js.recordPreSave, function (e) {\n\t\t\t\t\tif (lockSave && form.find('input[name=\"reapeat\"]').is(':checked')) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tapp.showModalWindow(form.find('.typeSavingModal').clone(), function (container) {\n\t\t\t\t\t\t\tcontainer.find('.typeSavingBtn').on('click', function (e) {\n\t\t\t\t\t\t\t\tvar currentTarget = $(e.currentTarget);\n\t\t\t\t\t\t\t\tform.find('[name=\"typeSaving\"]').val(currentTarget.data('value'));\n\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\tlockSave = false;\n\t\t\t\t\t\t\t\tform.submit();\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tform.on('submit', function (e) {\n\t\t\t\tconst recurringCheck = form.find('input[name=\"reapeat\"]').is(':checked');\n\t\t\t\tif (recurringCheck) {\n\t\t\t\t\tif (app.getRecordId() && lockSave) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tform.find('[name=\"recurrence\"]').val(thisInstance.getRule());\n\t\t\t\t}\n\t\t\t\tlet rows = form.find('.js-participants-content .js-participant-row');\n\t\t\t\tlet invitees = [];\n\t\t\t\trows.each(function (index, domElement) {\n\t\t\t\t\tlet row = $(domElement);\n\t\t\t\t\tif (row.data('email')) {\n\t\t\t\t\t\tinvitees.push([row.data('email'), row.data('crmid'), row.data('ivid'), row.data('name')]);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t$('').appendTo(form).val(JSON.stringify(invitees));\n\t\t\t});\n\t\t},\n\t\tgetFreeTime: function (container) {\n\t\t\tlet ownerId = container.find('[name=\"assigned_user_id\"], [data-element-name=\"assigned_user_id\"]');\n\t\t\tif (ownerId.length === 0 || !ownerId.val()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet timeStart = container.find('[name=\"time_start\"], [data-element-name=\"time_start\"]');\n\t\t\tlet timeEnd = container.find('[name=\"time_end\"], [data-element-name=\"time_end\"]');\n\t\t\tlet dateStart = container.find('[name=\"date_start\"], [data-element-name=\"date_start\"]');\n\t\t\tlet params = {\n\t\t\t\tmodule: 'Calendar',\n\t\t\t\taction: 'GetFreeTime',\n\t\t\t\tdateStart: dateStart.val(),\n\t\t\t\townerId: ownerId.val(),\n\t\t\t\tactivitytype: container.find('[name=\"activitytype\"]').val()\n\t\t\t};\n\t\t\tlet progress = $.progressIndicator({ position: 'html', blockInfo: { enabled: true } });\n\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\tprogress.progressIndicator({ mode: 'hide' });\n\t\t\t\tif (data.result.date_start !== null) {\n\t\t\t\t\ttimeStart.val(data.result.time_start);\n\t\t\t\t\ttimeEnd.val(data.result.time_end);\n\t\t\t\t\tdateStart.val(data.result.date_start);\n\t\t\t\t\tcontainer.find('[name=\"due_date\"]').val(data.result.date_start);\n\t\t\t\t} else {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_ERROR_MAX_VALUE'),\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', false).trigger('change');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterAutoFillHours: function (container) {\n\t\t\tconst thisInstance = this;\n\t\t\tlet allDay = container.find('[name=\"allday\"]'),\n\t\t\t\ttimeStart = container.find('[name=\"time_start\"]'),\n\t\t\t\ttimeEnd = container.find('[name=\"time_end\"]'),\n\t\t\t\tdateEnd = container.find('[name=\"due_date\"]'),\n\t\t\t\tautoFill = container.find('.js-autofill');\n\t\t\tcontainer.find('.js-autofill__icon').on('click', function (e) {\n\t\t\t\tif (autoFill.is(':checked')) {\n\t\t\t\t\t$(e.currentTarget).closest('.input-group-text').removeClass('bg-color-blue-700').removeClass('text-white');\n\t\t\t\t\tautoFill.prop('checked', false).trigger('change');\n\t\t\t\t} else {\n\t\t\t\t\t$(e.currentTarget).closest('.input-group-text').addClass('bg-color-blue-700').addClass('text-white');\n\t\t\t\t\tautoFill.prop('checked', true).trigger('change');\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontainer.find('.js-autofill').on('change', function (e) {\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tif (currentTarget.is(':checked')) {\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', true);\n\t\t\t\t\tthisInstance.getFreeTime(container);\n\t\t\t\t\ttimeStart.attr('readonly', 'readonly');\n\t\t\t\t\ttimeEnd.attr('readonly', 'readonly');\n\t\t\t\t\ttimeStart.clockpicker('remove');\n\t\t\t\t\ttimeEnd.clockpicker('remove');\n\t\t\t\t\tallDay.attr('disabled', 'disabled');\n\t\t\t\t\tallDay.prop('checked', false);\n\t\t\t\t\tallDay.trigger('change');\n\t\t\t\t\tdateEnd.attr('readonly', 'readonly');\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.find('.js-autofill').prop('checked', false);\n\t\t\t\t\tallDay.removeAttr('disabled');\n\t\t\t\t\ttimeStart.removeAttr('readonly');\n\t\t\t\t\ttimeEnd.removeAttr('readonly');\n\t\t\t\t\tdateEnd.removeAttr('readonly');\n\t\t\t\t\tapp.registerEventForClockPicker(timeStart);\n\t\t\t\t\tapp.registerEventForClockPicker(timeEnd);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterMarkAsCompletedBtn: function (container) {\n\t\t\tcontainer.find('.js-btn--mark-as-completed').on('click', function () {\n\t\t\t\tconst self = $(this);\n\t\t\t\tif (self.hasClass('active')) {\n\t\t\t\t\tcontainer.find('.js-completed').remove();\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.append(\n\t\t\t\t\t\t''\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.toggleTimesInputs(container);\n\t\t\tthis.registerTimesInputs(container);\n\t\t\tthis.registerTimeStartChangeEvent(container);\n\t\t\tthis.registerActivityTypeChangeEvent(container);\n\t\t\tthis.registerEndDateTimeChangeLogger(container);\n\t\t\tthis.registerAutoFillHours(container);\n\t\t\tthis.registerMarkAsCompletedBtn(container);\n\t\t\tthis.registerInviteEvent(container);\n\t\t\tthis.registerAddInvitation(container);\n\t\t\tthis.registerFormSubmitEvent(container);\n\t\t},\n\t\ttoggleTimesInputs: function (container) {\n\t\t\tcontainer.find(':checkbox').on('change', function () {\n\t\t\t\tvar checkboxName = $(this).attr('name');\n\t\t\t\tif ('allday' == checkboxName) {\n\t\t\t\t\tvar checkboxIsChecked = $(this).is(':checked');\n\t\t\t\t\tif (!container.find('#quickCreate').length) {\n\t\t\t\t\t\tif (checkboxIsChecked) {\n\t\t\t\t\t\t\tcontainer.find('.time').hide();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontainer.find('.time').show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterTimesInputs: function (container) {\n\t\t\tvar allday = container.find('[name=\"allday\"]:checkbox');\n\t\t\tif (allday.prop('checked')) {\n\t\t\t\tcontainer.find('.time').hide();\n\t\t\t}\n\t\t},\n\t\tgetDateInstance: function (container, type) {\n\t\t\tvar startDateElement = container.find('[name=\"date_start\"]');\n\t\t\tvar endDateElement = container.find('[name=\"due_date\"]');\n\t\t\tvar endTimeElement = container.find('[name=\"time_end\"]');\n\t\t\tvar startTimeElement = container.find('[name=\"time_start\"]');\n\t\t\tvar startDate = startDateElement.val();\n\t\t\tvar startTime = startTimeElement.val();\n\t\t\tvar endTime = endTimeElement.val();\n\t\t\tvar endDate = endDateElement.val();\n\t\t\tvar dateFormat = CONFIG.dateFormat;\n\t\t\tif (type == 'start') {\n\t\t\t\treturn App.Fields.Date.getDateInstance(startDate + ' ' + startTime, dateFormat);\n\t\t\t}\n\t\t\tif (type == 'end') {\n\t\t\t\treturn App.Fields.Date.getDateInstance(endDate + ' ' + endTime, dateFormat);\n\t\t\t}\n\t\t},\n\t\temailExists(email) {\n\t\t\temail = email.toLowerCase();\n\t\t\tlet recordExist = false;\n\t\t\tthis.getForm()\n\t\t\t\t.find('.js-participants-content')\n\t\t\t\t.find('.js-participant-row')\n\t\t\t\t.each((index, element) => {\n\t\t\t\t\tif ($(element).data('email').toLowerCase() === email) {\n\t\t\t\t\t\trecordExist = true;\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\treturn recordExist;\n\t\t},\n\t\tregisterAddInvitation(container) {\n\t\t\tcontainer.find('.js-btn-add-invitation').on('click', (e) => {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator();\n\t\t\t\tapp.showModalWindow(null, 'index.php?module=Calendar&view=InviteEmail', (data) => {\n\t\t\t\t\tdata.find('.js-modal__save').on('click', (e) => {\n\t\t\t\t\t\tlet email = data.find('.js-invite-email-input').val();\n\t\t\t\t\t\tlet nameAttendee = data.find('.js-invite-name-input').val();\n\t\t\t\t\t\tlet participantsContent = container.find('.js-participants-content');\n\t\t\t\t\t\tlet formEmail = data.find('.js-form');\n\t\t\t\t\t\tformEmail.validationEngine(app.validationEngineOptions);\n\t\t\t\t\t\tif (formEmail.validationEngine('validate')) {\n\t\t\t\t\t\t\tlet participantRow = participantsContent.find('.d-none .js-participant-row').clone(true, true);\n\t\t\t\t\t\t\tparticipantRow.data('crmid', 0);\n\t\t\t\t\t\t\tparticipantRow.data('email', email);\n\t\t\t\t\t\t\tif (nameAttendee) {\n\t\t\t\t\t\t\t\tparticipantRow.find('.js-participant-name').data('content', nameAttendee).text(nameAttendee);\n\t\t\t\t\t\t\t\tparticipantRow.data('name', nameAttendee);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tparticipantRow.find('.js-participant-name').data('content', email).text(email);\n\t\t\t\t\t\t\t\tparticipantRow.data('name', '');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tparticipantsContent.append(participantRow);\n\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tregisterInviteEvent: function (editViewForm) {\n\t\t\tthis.registerRow(editViewForm);\n\t\t\tlet participantsContent = editViewForm.find('.js-participants-content');\n\t\t\tlet participantsSearch = editViewForm.find('.js-participants-search');\n\t\t\t$.widget('custom.ivAutocomplete', $.ui.autocomplete, {\n\t\t\t\t_create: function () {\n\t\t\t\t\tthis._super();\n\t\t\t\t\tthis.widget().menu('option', 'items', '> :not(.ui-autocomplete-category)');\n\t\t\t\t},\n\t\t\t\t_renderMenu: function (ul, items) {\n\t\t\t\t\tlet that = this,\n\t\t\t\t\t\tcurrentCategory = '';\n\t\t\t\t\t$.each(items, function (_index, item) {\n\t\t\t\t\t\tif (item.category != currentCategory) {\n\t\t\t\t\t\t\tul.append(\"
\" + item.category + '
');\n\t\t\t\t\t\t\tcurrentCategory = item.category;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthat._renderItemData(ul, item);\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\t_renderItemData: function (ul, item) {\n\t\t\t\t\treturn this._renderItem(ul, item).data('ui-autocomplete-item', item);\n\t\t\t\t},\n\t\t\t\t_renderItem: function (ul, item) {\n\t\t\t\t\treturn $('
').data('item.autocomplete', item).append($('').html(item.label)).appendTo(ul);\n\t\t\t\t}\n\t\t\t});\n\t\t\tparticipantsSearch.ivAutocomplete({\n\t\t\t\tdelay: '600',\n\t\t\t\tminLength: '3',\n\t\t\t\tsource: (request, response) => {\n\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\tmodule: 'Calendar',\n\t\t\t\t\t\taction: 'Invitees',\n\t\t\t\t\t\tmode: 'find',\n\t\t\t\t\t\tvalue: request.term\n\t\t\t\t\t}).done((result) => {\n\t\t\t\t\t\tlet reponseDataList = result.result;\n\t\t\t\t\t\tif (reponseDataList.length <= 0) {\n\t\t\t\t\t\t\treponseDataList.push({\n\t\t\t\t\t\t\t\tlabel: app.vtranslate('JS_NO_RESULTS_FOUND'),\n\t\t\t\t\t\t\t\ttype: 'no results',\n\t\t\t\t\t\t\t\tcategory: ''\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\tresponse(reponseDataList);\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tselect: (event, ui) => {\n\t\t\t\t\tlet selected = ui.item;\n\t\t\t\t\t//To stop selection if no results is selected\n\t\t\t\t\tif (typeof selected.type !== 'undefined' && selected.type == 'no results') {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tlet recordExist = true;\n\t\t\t\t\tparticipantsContent.find('.js-participant-row').each(function (index) {\n\t\t\t\t\t\tif ($(this).data('crmid') == selected.id) {\n\t\t\t\t\t\t\trecordExist = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tif (recordExist) {\n\t\t\t\t\t\tlet participantRow = participantsContent.find('.d-none .js-participant-row').clone(true, true);\n\t\t\t\t\t\tVtiger_Index_Js.getEmailFromRecord(selected.id, selected.module).done((email) => {\n\t\t\t\t\t\t\tparticipantRow.data('crmid', selected.id);\n\t\t\t\t\t\t\tparticipantRow.data('email', email);\n\t\t\t\t\t\t\tparticipantRow\n\t\t\t\t\t\t\t\t.find('.js-participant-name')\n\t\t\t\t\t\t\t\t.data('content', selected.fullLabel + email)\n\t\t\t\t\t\t\t\t.text(selected.label);\n\t\t\t\t\t\t\tparticipantRow\n\t\t\t\t\t\t\t\t.find('.js-participant-icon .c-badge__icon')\n\t\t\t\t\t\t\t\t.removeClass('fas fa-envelope')\n\t\t\t\t\t\t\t\t.addClass('yfm-' + selected.module);\n\t\t\t\t\t\t\tparticipantsContent.append(participantRow);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_DUPLICATE_RECORD') + ': ' + selected.fullLabel,\n\t\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tclose: (event, ui) => {\n\t\t\t\t\tparticipantsSearch.val('');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterRow(row) {\n\t\t\trow.on('click', '.js-participant-remove', (e) => {\n\t\t\t\t$(e.target).closest('.js-participant-row').remove();\n\t\t\t});\n\t\t},\n\t\tregisterEvents() {\n\t\t\tif (!this.proceedRegisterEvents()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.registerReminderFieldCheckBox();\n\t\t\tthis.registerRecurrenceFieldCheckBox();\n\t\t\tthis.registerRecurringTypeChangeEvent();\n\t\t\tthis._super();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","currencyInstance","checkEmail","field","Calendar_Edit_Js","emailExists","val","app","vtranslate","init","registerReminderFieldCheckBox","element","getForm","find","on","rowElement","closest","is","removeClass","addClass","change","registerRecurrenceFieldCheckBox","form","e","repeatUI","container","$","currentTarget","attr","removeAttr","registerRecurringTypeChangeEvent","thisInstance","changeRecurringTypesUIStyles","jQuery","value","recurringType","setDefaultEndTime","self","getFreeTime","dateStartElement","startTimeElement","endTimeElement","endDateElement","startDate","startTime","result","Vtiger_Time_Validator_Js","invokeValidation","activityType","activityTypeValue","filter","dateFormat","data","toUpperCase","timeFormat","activityDurations","JSON","parse","minutes","i","activitytype","parseInt","duration","defaultTimeFormat","endDate","moment","add","format","registerActivityTypeChangeEvent","registerTimeStartChangeEvent","start","getDateInstance","end","CONFIG","trigger","App","Fields","Date","register","forceChange","Event","which","keyCode","registerEndDateTimeChangeLogger","timeElement","timeDateElement","dueDateElement","Vtiger_Date_Validator_Js","getRule","freq","rule","endValue","date","dateToDbFormat","replace","checkedElements","each","push","length","join","dateInstance","dayOfMonth","getDate","dayOfWeekLabel","getDay","registerFormSubmitEvent","lockSave","getRecordId","recordPreSave","preventDefault","showModalWindow","clone","hideModalWindow","submit","recurringCheck","rows","invitees","index","domElement","row","appendTo","stringify","ownerId","timeStart","timeEnd","dateStart","params","module","action","progress","progressIndicator","position","blockInfo","enabled","AppConnector","request","done","mode","date_start","showNotify","text","type","prop","time_start","time_end","registerAutoFillHours","allDay","dateEnd","autoFill","clockpicker","registerEventForClockPicker","registerMarkAsCompletedBtn","hasClass","remove","append","registerBasicEvents","_super","toggleTimesInputs","registerTimesInputs","registerInviteEvent","registerAddInvitation","checkboxName","checkboxIsChecked","hide","show","allday","startDateElement","endTime","email","toLowerCase","recordExist","progressIndicatorElement","nameAttendee","participantsContent","formEmail","validationEngine","validationEngineOptions","participantRow","editViewForm","registerRow","participantsSearch","widget","ui","autocomplete","_create","menu","_renderMenu","ul","items","that","currentCategory","_index","item","category","_renderItemData","_renderItem","html","label","ivAutocomplete","delay","minLength","source","response","term","reponseDataList","select","event","selected","id","Vtiger_Index_Js","getEmailFromRecord","fullLabel","close","target","registerEvents","proceedRegisterEvents"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,kBAAkB,CAClB,CACCC,gBAAgB,CAAO,CAAA,CAAA,CACvBC,UAAU,CAAA,SAAAA,WAACC,KAAK,CAAqB,CAChCC,OAAAA,CAAAA,gBAAgB,CAACH,gBAAgB,CAACI,WAAW,CAACF,KAAK,CAACG,GAAG,EAAE,CAAC,EACtDC,GAAG,CAACC,UAAU,CAAC,qBAAqB,CAAC,CAAG,IAAI,CAAGL,KAAK,CAACG,GAAG,EAGjE,CACD,CAAC,CACD,CACCG,IAAI,CAAA,SAAAA,IAAA,EAAG,CACNL,gBAAgB,CAACH,gBAAgB,CAAG,KACrC,CAAC,CACDS,6BAA6B,CAAE,SAAAA,6BAAAA,EAAY,CAC1C,IAAIC,OAAO,CAAG,IAAI,CAACC,OAAO,EAAE,CAACC,IAAI,CAAC,6BAA6B,CAAC,CAChEF,OAAO,CAACG,EAAE,CAAC,QAAQ,CAAE,UAAa,CACjC,IAAIC,UAAU,CAAGJ,OAAO,CAACK,OAAO,CAAC,4BAA4B,CAAC,CAACH,IAAI,CAAC,wBAAwB,CAAC,CACzFF,OAAO,CAACM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G,CAACzG,EAAE,CAAC,OAAO,CAAE,wBAAwB,CAAE,SAACS,CAAC,CAAK,CAChDG,CAAC,CAACH,CAAC,CAAC8L,MAAM,CAAC,CAACrM,OAAO,CAAC,qBAAqB,CAAC,CAACyI,MAAM,GAClD,CAAC,EACF,CAAC,CACD6D,cAAc,CAAAA,SAAAA,cAAAA,EAAG,CACX,IAAI,CAACC,qBAAqB,EAAE,GAGjC,IAAI,CAAC7M,6BAA6B,EAAE,CACpC,IAAI,CAACW,+BAA+B,EAAE,CACtC,IAAI,CAACS,gCAAgC,EAAE,CACvC,IAAI,CAAC8H,MAAM,EAAE,EACd,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/List.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/List.min.js.map
index 14cf644f089f..5ca60f624aec 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/List.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/List.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"List.min.js","sources":["List.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_List_Js(\n\t'Calendar_List_Js',\n\t{\n\t\ttriggerImportAction: function (importUrl) {\n\t\t\tvar progressIndicatorElement = jQuery.progressIndicator();\n\t\t\tAppConnector.request(importUrl).done(function (data) {\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\tif (data) {\n\t\t\t\t\tapp.showModalWindow(data, function (data) {\n\t\t\t\t\t\tjQuery('#ical_import').validationEngine(app.validationEngineOptions);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_List_Js","triggerImportAction","importUrl","progressIndicatorElement","jQuery","progressIndicator","AppConnector","request","done","data","mode","app","showModalWindow","validationEngine","validationEngineOptions"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAEAA,CAAAA,cAAc,CACb,kBADa,CAEb,CACCC,mBAAmB,CAAE,SAAA,mBAAA,CAAUC,SAAV,CAAqB,CACzC,IAAIC,wBAAwB,CAAGC,MAAM,CAACC,iBAAP,EAA/B,CACAC,YAAY,CAACC,OAAb,CAAqBL,SAArB,CAAA,CAAgCM,IAAhC,CAAqC,SAAUC,IAAV,CAAgB,CACpDN,wBAAwB,CAACE,iBAAzB,CAA2C,CAAEK,IAAI,CAAE,MAAR,CAA3C,CADoD,CAEhDD,IAFgD,EAGnDE,GAAG,CAACC,eAAJ,CAAoBH,IAApB,CAA0B,UAAgB,CACzCL,MAAM,CAAC,cAAD,CAAN,CAAuBS,gBAAvB,CAAwCF,GAAG,CAACG,uBAA5C,EACA,CAFD,EAID,CAPD,EAQA,CAXF,CAFa,CAeb,EAfa;;"}
\ No newline at end of file
+{"version":3,"file":"List.min.js","sources":["List.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_List_Js(\n\t'Calendar_List_Js',\n\t{\n\t\ttriggerImportAction: function (importUrl) {\n\t\t\tvar progressIndicatorElement = jQuery.progressIndicator();\n\t\t\tAppConnector.request(importUrl).done(function (data) {\n\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\tif (data) {\n\t\t\t\t\tapp.showModalWindow(data, function (data) {\n\t\t\t\t\t\tjQuery('#ical_import').validationEngine(app.validationEngineOptions);\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_List_Js","triggerImportAction","importUrl","progressIndicatorElement","jQuery","progressIndicator","AppConnector","request","done","data","mode","app","showModalWindow","validationEngine","validationEngineOptions"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,kBAAkB,CAClB,CACCC,mBAAmB,CAAE,SAAAA,oBAAUC,SAAS,CAAE,CACzC,IAAIC,wBAAwB,CAAGC,MAAM,CAACC,iBAAiB,EAAE,CACzDC,YAAY,CAACC,OAAO,CAACL,SAAS,CAAC,CAACM,IAAI,CAAC,SAAUC,IAAI,CAAE,CACpDN,wBAAwB,CAACE,iBAAiB,CAAC,CAAEK,IAAI,CAAE,MAAO,CAAC,CAAC,CACxDD,IAAI,EACPE,GAAG,CAACC,eAAe,CAACH,IAAI,CAAE,UAAgB,CACzCL,MAAM,CAAC,cAAc,CAAC,CAACS,gBAAgB,CAACF,GAAG,CAACG,uBAAuB,EACpE,CAAC,EAEH,CAAC,EACF,CACD,CAAC,CACD,EACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js b/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js
index 79b95f03ea27..43e39053b1b7 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js
+++ b/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}jQuery.Class("Calendar_SendInvitationModal_JS",{},{/**
+/* {[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]} */"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}jQuery.Class("Calendar_SendInvitationModal_JS",{},{/**
* Modal container
*/container:!1,/**
* Open mail client
diff --git a/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js.map b/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js.map
index c5829687dba5..38f56362d361 100644
--- a/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js.map
+++ b/public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"SendInvitationModal.min.js","sources":["SendInvitationModal.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 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":["jQuery","Class","container","openMailClient","$","on","formData","find","serializeFormData","i","join","url","encodeURIComponent","value","Vtiger_Index_Js","sendMailWindow","app","hideModalWindow","closest","id","registerEvents","modalContainer"],"mappings":";;AAAA,kKACA,YAAA,UAEAA,OAAAA,CAAAA,GAAAA,CAAAA,CAAAA,yBAAAA,CAAAA,OAAAA,OAAAA,CAAAA,UAAAA,EAAAA,OAAAA,MAAAA,EAAAA,QAAAA,EAAAA,OAAAA,MAAAA,CAAAA,QAAAA,CAAAA,SAAAA,GAAAA,CAAAA,CAAAA,OAAAA,OAAAA,GAAAA,CAAAA,CAAAA,SAAAA,GAAAA,CAAAA,CAAAA,OAAAA,GAAAA,EAAAA,UAAAA,EAAAA,OAAAA,MAAAA,EAAAA,GAAAA,CAAAA,WAAAA,GAAAA,MAAAA,EAAAA,GAAAA,GAAAA,MAAAA,CAAAA,SAAAA,CAAAA,QAAAA,CAAAA,OAAAA,GAAAA,CAAAA,CAAAA,OAAAA,CAAAA,GAAAA,CAAAA,CAAAA,MAAM,CAACC,KAAP,CACC,iCADD,CAEC,EAFD,CAGC;AAED;AACA,KACEC,SAAS,GAJV;AAMD;AACA,KACEC,cARD,0BAQkB,CAChBC,IAAAA,KAAAA,CAAAA,IAAAA,CAAAA,CAAC,CAAC,iBAAD,CAAoB,IAAKF,CAAAA,SAAzB,CAAD,CAAqCG,EAArC,CAAwC,OAAxC,CAAiD,UAAO,CAAA,OAChD,CAAG,uCAD6C,CAEnDC,QAAQ,CAAG,KAAI,CAACJ,SAAL,CAAeK,IAAf,CAAoB,MAApB,EAA4BC,iBAA5B,EAFwC,CAGvD,IAAK,IAAIC,CAAT,IAAA,QAAA,CAAwB,CACvB,IAAS,KAAA,CAA0B,QAAvB,GAAOH,OAAAA,CAAAA,QAAQ,CAACG,CAAD,CAAf,CAAA,CAAkCH,QAAQ,CAACG,CAAD,CAAR,CAAYC,IAAZ,CAAiB,GAAjB,CAAlC,CAA0DJ,QAAQ,CAACG,CAAD,CAA9E,CACAE,GAAG,EAAI,GAAIF,CAAAA,MAAAA,CAAAA,CAAJ,MAAWG,kBAAkB,CAACC,KAAD,EACpC,CACDC,eAAe,CAACC,cAAhB,CAA+BJ,GAA/B,CAPuD,CAAA,CAAA,CAAA,CAQvDK,GAAG,CAACC,eAAJ,CAA2B,CAAA,CAAA,CAAA,KAAI,CAACf,SAAL,CAAegB,OAAf,CAAuB,qBAAvB,CAAA,CAA8C,CAA9C,CAAA,CAAiDC,EAA5E,EACA,CATD,EAUA,CAnBF;AAqBD;AACA;AACA,KACEC,cAAc,CAAE,SAAA,cAAA,CAAUC,cAAV,CAA0B,CACzC,IAAKnB,CAAAA,SAAL,CAAiBmB,cADwB,CAEzC,IAAKlB,CAAAA,cAAL,GACA,CA3BF,CAHD;;"}
\ No newline at end of file
+{"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,CAAA,CAAA,SAAAA,CAAA,CAAAA,CAAAA,OAAAA,CAAA,EAAAC,UAAAA,EAAAA,OAAAA,MAAA,EAAAD,CAAA,CAAAG,WAAA,GAAAF,MAAA,EAAAD,CAAA,GAAAC,MAAA,CAAAG,SAAA,CAAAJ,QAAAA,CAAAA,OAAAA,CAAA,CAAAD,CAAAA,OAAA,CAAAC,CAAA,CAAA,CAEbK,MAAM,CAACC,KAAK,CACX,iCAAiC,CACjC,EAAE,CACF;AAED;AACA,KACEC,SAAS,GAAO;AAElB;AACA,KACEC,cAAc,CAAAA,SAAAA,cAAAA,EAAG,CAAA,IAAAC,KAAA,CAAA,IAAA,CAChBC,CAAC,CAAC,iBAAiB,CAAE,IAAI,CAACH,SAAS,CAAC,CAACI,EAAE,CAAC,OAAO,CAAE,UAAO,CACnD,IAAAC,GAAG,CAAG,uCAAuC,CAC7CC,QAAQ,CAAGJ,KAAI,CAACF,SAAS,CAACO,IAAI,CAAC,MAAM,CAAC,CAACC,iBAAiB,EAAE,CAC9D,IAAK,IAAIC,CAAC,IAAIH,QAAQ,CAAE,CACvB,IAAII,KAAK,CAA0B,QAAQ,GAAAlB,OAAA,CAAxBc,QAAQ,CAACG,CAAC,CAAC,CAAa,CAAGH,QAAQ,CAACG,CAAC,CAAC,CAACE,IAAI,CAAC,GAAG,CAAC,CAAGL,QAAQ,CAACG,CAAC,CAAC,CACjFJ,GAAG,EAAI,GAAA,CAAAO,MAAA,CAAIH,CAAC,CAAA,GAAA,CAAA,CAAMI,kBAAkB,CAACH,KAAK,EAC3C,CACAI,eAAe,CAACC,cAAc,CAACV,GAAG,CAAM,CAAA,CAAA,CAAC,CACzCW,GAAG,CAACC,eAAe,CAAQf,CAAAA,CAAAA,CAAAA,KAAI,CAACF,SAAS,CAACkB,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAACC,EAAE,EAC/E,CAAC,EACF,CAAC;AAEH;AACA;AACA,KACEC,cAAc,CAAE,SAAAA,cAAAA,CAAUC,cAAc,CAAE,CACzC,IAAI,CAACrB,SAAS,CAAGqB,cAAc,CAC/B,IAAI,CAACpB,cAAc,GACpB,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Campaigns/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Campaigns/resources/Detail.min.js.map
index cd915b6d9810..6c5e2f5ea945 100644
--- a/public_html/layouts/basic/modules/Campaigns/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Campaigns/resources/Detail.min.js.map
@@ -1 +1 @@
-{"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'Campaigns_Detail_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to register email enabled actions\n\t\t */\n\t\tregisterEmailEnabledActions: function () {\n\t\t\tvar moduleName = app.getModuleName();\n\t\t\tvar className = moduleName + '_List_Js';\n\t\t\tvar listInstance = new window[className]();\n\t\t\tlistInstance.registerEvents();\n\t\t\tlistInstance.markSelectedRecords();\n\t\t},\n\t\tregisterEventForRelatedTabClick: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar detailContentsHolder = thisInstance.getContentHolder();\n\t\t\tvar detailContainer = detailContentsHolder.closest('div.detailViewInfo');\n\t\t\tjQuery('.related', detailContainer).on('click', 'li:not(.spaceRelatedList)', function (e, urlAttributes) {\n\t\t\t\tvar tabElement = jQuery(e.currentTarget);\n\t\t\t\tif (!tabElement.hasClass('dropdown')) {\n\t\t\t\t\tvar element = jQuery('');\n\t\t\t\t\telement.progressIndicator({\n\t\t\t\t\t\tposition: 'html',\n\t\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\telementToBlock: detailContainer\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tvar url = tabElement.data('url');\n\t\t\t\t\tif (typeof urlAttributes !== 'undefined') {\n\t\t\t\t\t\tvar callBack = urlAttributes.callback;\n\t\t\t\t\t\tdelete urlAttributes.callback;\n\t\t\t\t\t}\n\t\t\t\t\tthisInstance\n\t\t\t\t\t\t.loadContents(url, urlAttributes)\n\t\t\t\t\t\t.done(function (data) {\n\t\t\t\t\t\t\tthisInstance.deSelectAllrelatedTabs();\n\t\t\t\t\t\t\tthisInstance.markTabAsSelected(tabElement);\n\t\t\t\t\t\t\tVtiger_Helper_Js.showHorizontalTopScrollBar();\n\t\t\t\t\t\t\tapp.registerModal(detailContentsHolder);\n\t\t\t\t\t\t\telement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t\tvar emailEnabledModule = jQuery(data).find('[name=\"emailEnabledModules\"]').val();\n\t\t\t\t\t\t\tif (emailEnabledModule) {\n\t\t\t\t\t\t\t\tvar listInstance = new Campaigns_List_Js();\n\t\t\t\t\t\t\t\tlistInstance.registerEvents();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (typeof callBack == 'function') {\n\t\t\t\t\t\t\t\tcallBack(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Summary tab is clicked\n\t\t\t\t\t\t\tif (tabElement.data('linkKey') == thisInstance.detailViewSummaryTabLabel) {\n\t\t\t\t\t\t\t\tthisInstance.loadWidgets();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthisInstance.registerBasicEvents();\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.fail(function (error) {\n\t\t\t\t\t\t\telement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t\t//Calling registerevents of campaigns list to handle checkboxs click of related records\n\t\t\tvar listInstance = Vtiger_List_Js.getInstance();\n\t\t\tlistInstance.registerEvents();\n\t\t\tvar thisInstance = this;\n\t\t\tapp.event.on('RelatedList.AfterLoad', function (event, instance) {\n\t\t\t\tvar response = instance.content;\n\t\t\t\tresponse.find('[name=\"selectedIds\"]').data('selectedIds', '');\n\t\t\t\tresponse.find('[name=\"excludedIds\"]').data('excludedIds', '');\n\t\t\t\tvar emailEnabledModule = response.find('[name=\"emailEnabledModules\"]').val();\n\t\t\t\tif (emailEnabledModule) {\n\t\t\t\t\tthisInstance.registerEmailEnabledActions();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","registerEmailEnabledActions","app","getModuleName","listInstance","moduleName","registerEvents","markSelectedRecords","registerEventForRelatedTabClick","detailContentsHolder","thisInstance","getContentHolder","detailContainer","closest","jQuery","on","e","urlAttributes","tabElement","currentTarget","hasClass","element","progressIndicator","position","blockInfo","enabled","elementToBlock","data","callback","loadContents","url","done","deSelectAllrelatedTabs","markTabAsSelected","Vtiger_Helper_Js","showHorizontalTopScrollBar","registerModal","mode","find","val","emailEnabledModule","callBack","detailViewSummaryTabLabel","loadWidgets","registerBasicEvents","fail","_super","Vtiger_List_Js","getInstance","event","instance","content","response"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,aAEAA,gBAAgB,CACf,qBADe,CAEf,EAFe,CAGf;AAED;AACA,KACEC,2BAA2B,CAAE,SAAY,2BAAA,EAAA,CAAA,cAC1B,CAAGC,GAAG,CAACC,aAAJ,EADuB,CAGpCC,YAAY,CAAG,IAAU,MAAA,CADbC,UAAU,CAAG,UACA,CAHW,CAIxCD,YAAY,CAACE,cAAb,EAJwC,CAKxCF,YAAY,CAACG,mBAAb,GACA,CAVF,CAWCC,+BAA+B,CAAE,SAAY,+BAAA,EAAA,CAAA,IAC5B,YAAA,CAAG,IADyB,CAExCC,oBAAoB,CAAGC,YAAY,CAACC,gBAAb,EAFiB,CAGxCC,eAAe,CAAGH,oBAAoB,CAACI,OAArB,CAA6B,oBAA7B,CAHsB,CAI5CC,MAAM,CAAC,UAAD,CAAaF,eAAb,CAAN,CAAoCG,EAApC,CAAuC,OAAvC,CAAgD,2BAAhD,CAA6E,SAAUC,CAAV,CAAaC,aAAb,CAA4B,CACxG,IAAIC,UAAU,CAAGJ,MAAM,CAACE,CAAC,CAACG,aAAH,CAAvB,CACA,GAAI,CAACD,UAAU,CAACE,QAAX,CAAoB,UAApB,CAAL,CAAsC,CACrC,IAAW,OAAA,CAAGN,MAAM,CAAC,aAAD,CAApB,CACAO,OAAO,CAACC,iBAAR,CAA0B,CACzBC,QAAQ,CAAE,MADe,CAEzBC,SAAS,CAAE,CACVC,OAAO,CAAA,CAAA,CADG,CAEVC,cAAc,CAAEd,eAFN,CAFc,CAA1B,CAFqC,CASrC,IAAO,GAAA,CAAGM,UAAU,CAACS,IAAX,CAAgB,KAAhB,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,GAAG,CAAC+C,KAAJ,CAAUlC,EAAV,CAAa,uBAAb,CAAsC,SAAUkC,KAAV,CAAiBC,QAAjB,CAA2B,CAChE,IAAY,QAAA,CAAGA,QAAQ,CAACC,OAAxB,CACAC,QAAQ,CAACd,IAAT,CAAc,wBAAd,CAAsCX,CAAAA,IAAtC,CAA2C,aAA3C,CAA0D,EAA1D,CAFgE,CAGhEyB,QAAQ,CAACd,IAAT,CAAc,wBAAd,EAAsCX,IAAtC,CAA2C,aAA3C,CAA0D,EAA1D,CAHgE,CAIhE,IAAsB,kBAAA,CAAGyB,QAAQ,CAACd,IAAT,CAAc,gCAAd,CAAA,CAA8CC,GAA9C,EAAzB,CACIC,kBAL4D,EAM/D9B,YAAY,CAACT,2BAAb,GAED,CARD,EASA,CA1EF,CAHe;;"}
\ No newline at end of file
+{"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'Campaigns_Detail_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to register email enabled actions\n\t\t */\n\t\tregisterEmailEnabledActions: function () {\n\t\t\tvar moduleName = app.getModuleName();\n\t\t\tvar className = moduleName + '_List_Js';\n\t\t\tvar listInstance = new window[className]();\n\t\t\tlistInstance.registerEvents();\n\t\t\tlistInstance.markSelectedRecords();\n\t\t},\n\t\tregisterEventForRelatedTabClick: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar detailContentsHolder = thisInstance.getContentHolder();\n\t\t\tvar detailContainer = detailContentsHolder.closest('div.detailViewInfo');\n\t\t\tjQuery('.related', detailContainer).on('click', 'li:not(.spaceRelatedList)', function (e, urlAttributes) {\n\t\t\t\tvar tabElement = jQuery(e.currentTarget);\n\t\t\t\tif (!tabElement.hasClass('dropdown')) {\n\t\t\t\t\tvar element = jQuery('');\n\t\t\t\t\telement.progressIndicator({\n\t\t\t\t\t\tposition: 'html',\n\t\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\telementToBlock: detailContainer\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tvar url = tabElement.data('url');\n\t\t\t\t\tif (typeof urlAttributes !== 'undefined') {\n\t\t\t\t\t\tvar callBack = urlAttributes.callback;\n\t\t\t\t\t\tdelete urlAttributes.callback;\n\t\t\t\t\t}\n\t\t\t\t\tthisInstance\n\t\t\t\t\t\t.loadContents(url, urlAttributes)\n\t\t\t\t\t\t.done(function (data) {\n\t\t\t\t\t\t\tthisInstance.deSelectAllrelatedTabs();\n\t\t\t\t\t\t\tthisInstance.markTabAsSelected(tabElement);\n\t\t\t\t\t\t\tVtiger_Helper_Js.showHorizontalTopScrollBar();\n\t\t\t\t\t\t\tapp.registerModal(detailContentsHolder);\n\t\t\t\t\t\t\telement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t\tvar emailEnabledModule = jQuery(data).find('[name=\"emailEnabledModules\"]').val();\n\t\t\t\t\t\t\tif (emailEnabledModule) {\n\t\t\t\t\t\t\t\tvar listInstance = new Campaigns_List_Js();\n\t\t\t\t\t\t\t\tlistInstance.registerEvents();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (typeof callBack == 'function') {\n\t\t\t\t\t\t\t\tcallBack(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Summary tab is clicked\n\t\t\t\t\t\t\tif (tabElement.data('linkKey') == thisInstance.detailViewSummaryTabLabel) {\n\t\t\t\t\t\t\t\tthisInstance.loadWidgets();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthisInstance.registerBasicEvents();\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.fail(function (error) {\n\t\t\t\t\t\t\telement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t\t//Calling registerevents of campaigns list to handle checkboxs click of related records\n\t\t\tvar listInstance = Vtiger_List_Js.getInstance();\n\t\t\tlistInstance.registerEvents();\n\t\t\tvar thisInstance = this;\n\t\t\tapp.event.on('RelatedList.AfterLoad', function (event, instance) {\n\t\t\t\tvar response = instance.content;\n\t\t\t\tresponse.find('[name=\"selectedIds\"]').data('selectedIds', '');\n\t\t\t\tresponse.find('[name=\"excludedIds\"]').data('excludedIds', '');\n\t\t\t\tvar emailEnabledModule = response.find('[name=\"emailEnabledModules\"]').val();\n\t\t\t\tif (emailEnabledModule) {\n\t\t\t\t\tthisInstance.registerEmailEnabledActions();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","registerEmailEnabledActions","moduleName","app","getModuleName","listInstance","window","registerEvents","markSelectedRecords","registerEventForRelatedTabClick","thisInstance","detailContentsHolder","getContentHolder","detailContainer","closest","jQuery","on","e","urlAttributes","tabElement","currentTarget","hasClass","element","progressIndicator","position","blockInfo","enabled","elementToBlock","url","data","callBack","callback","loadContents","done","deSelectAllrelatedTabs","markTabAsSelected","Vtiger_Helper_Js","showHorizontalTopScrollBar","registerModal","mode","emailEnabledModule","find","val","Campaigns_List_Js","detailViewSummaryTabLabel","loadWidgets","registerBasicEvents","fail","_super","Vtiger_List_Js","getInstance","event","instance","response","content"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,gBAAgB,CACf,qBAAqB,CACrB,EAAE,CACF;AAED;AACA,KACEC,2BAA2B,CAAE,SAAAA,2BAAA,EAAY,KACpCC,UAAU,CAAGC,GAAG,CAACC,aAAa,EAAE,CAEhCC,YAAY,CAAG,IAAIC,MAAM,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9B,YAAY,CAACT,2BAA2B,GAE1C,CAAC,EACF,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Campaigns/resources/List.min.js.map b/public_html/layouts/basic/modules/Campaigns/resources/List.min.js.map
index 5cb695fccc24..1ae89de52231 100644
--- a/public_html/layouts/basic/modules/Campaigns/resources/List.min.js.map
+++ b/public_html/layouts/basic/modules/Campaigns/resources/List.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"List.min.js","sources":["List.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 *************************************************************************************/\n'use strict';\n\nVtiger_List_Js(\n\t'Campaigns_List_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to mark selected records\n\t\t */\n\t\tmarkSelectedRecords: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar selectedIds = this.readSelectedIds();\n\t\t\tif (selectedIds != '') {\n\t\t\t\tif (selectedIds == 'all') {\n\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\tjQuery(this).prop('checked', true).closest('tr').addClass('highlightBackgroundColor');\n\t\t\t\t\t});\n\t\t\t\t\tjQuery('#deSelectAllMsgDiv').show();\n\t\t\t\t\tvar excludedIds = jQuery('[name=\"excludedIds\"]').data('excludedIds');\n\t\t\t\t\tif (excludedIds != '') {\n\t\t\t\t\t\tjQuery('#listViewEntriesMainCheckBox').prop('checked', false);\n\t\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\t\tif (jQuery.inArray(jQuery(element).val(), excludedIds) != -1) {\n\t\t\t\t\t\t\t\tjQuery(element).prop('checked', false).closest('tr').removeClass('highlightBackgroundColor');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\tif (jQuery.inArray(jQuery(element).val(), selectedIds) != -1) {\n\t\t\t\t\t\t\tjQuery(this).prop('checked', true).closest('tr').addClass('highlightBackgroundColor');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthisInstance.checkSelectAll();\n\t\t\t}\n\t\t},\n\n\t\tgetRecordsCount: function () {\n\t\t\tif (app.getViewName() != 'Detail') {\n\t\t\t\treturn this._super();\n\t\t\t}\n\t\t\tvar detailInstance = Vtiger_Detail_Js.getInstance();\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\tvar recordCountVal = jQuery('#recordsCount').val();\n\t\t\tif (recordCountVal != '') {\n\t\t\t\taDeferred.resolve(recordCountVal);\n\t\t\t} else {\n\t\t\t\tvar count = '';\n\t\t\t\tvar cvId = jQuery('#customFilter').val();\n\t\t\t\tvar module = app.getModuleName();\n\t\t\t\tvar parent = app.getParentModuleName();\n\t\t\t\tvar relatedModuleName = jQuery('[name=\"relatedModuleName\"]').val();\n\t\t\t\tvar recordId = app.getRecordId();\n\t\t\t\tlet selectedTab = detailInstance.getSelectedTab();\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: module,\n\t\t\t\t\tparent: parent,\n\t\t\t\t\taction: 'DetailAjax',\n\t\t\t\t\tviewname: cvId,\n\t\t\t\t\tmode: 'getRecordsCount',\n\t\t\t\t\trelatedModule: relatedModuleName,\n\t\t\t\t\trecord: recordId,\n\t\t\t\t\ttab_label: selectedTab.data('labelKey'),\n\t\t\t\t\trelationId: selectedTab.data('relationId')\n\t\t\t\t}).done(function (data) {\n\t\t\t\t\tjQuery('#recordsCount').val(data['result']['count']);\n\t\t\t\t\tcount = data['result']['count'];\n\t\t\t\t\taDeferred.resolve(count);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/**\n\t\t * Function to register events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tif (app.getViewName() != 'Detail') {\n\t\t\t\tthis._super();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.registerMainCheckBoxClickEvent();\n\t\t\tthis.registerCheckBoxClickEvent();\n\t\t\tthis.registerSelectAllClickEvent();\n\t\t\tthis.registerDeselectAllClickEvent();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_List_Js","markSelectedRecords","selectedIds","readSelectedIds","jQuery","each","prop","closest","addClass","show","data","excludedIds","index","element","inArray","val","removeClass","thisInstance","checkSelectAll","getRecordsCount","app","getViewName","_super","detailInstance","Vtiger_Detail_Js","getInstance","aDeferred","Deferred","recordCountVal","resolve","cvId","module","getModuleName","parent","getParentModuleName","relatedModuleName","recordId","getRecordId","selectedTab","getSelectedTab","AppConnector","request","action","viewname","mode","relatedModule","record","tab_label","relationId","done","count","promise","registerEvents","registerMainCheckBoxClickEvent","registerCheckBoxClickEvent","registerSelectAllClickEvent","registerDeselectAllClickEvent"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,aAEAA,cAAc,CACb,mBADa,CAEb,EAFa,CAGb;AAED;AACA,KACEC,mBAAmB,CAAE,SAAY,mBAAA,EAAA,CAAA,gBAChB,CAAG,IADa,CAE5BC,WAAW,CAAG,KAAKC,eAAL,EAFc,CAGhC,GAAmB,EAAf,EAAAD,WAAJ,CAAuB,CACtB,GAAmB,KAAf,EAAAA,WAAJ,CAA0B,CACzBE,MAAM,CAAC,0BAAD,CAAN,CAAmCC,IAAnC,CAAwC,UAA0B,CACjED,MAAM,CAAC,IAAD,CAAN,CAAaE,IAAb,CAAkB,SAAlB,CAAA,CAAA,CAAA,CAAA,CAAmCC,OAAnC,CAA2C,IAA3C,CAAA,CAAiDC,QAAjD,CAA0D,0BAA1D,EACA,CAFD,CADyB,CAIzBJ,MAAM,CAAC,oBAAD,CAAN,CAA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3B,IAAKgC,CAAAA,8BAAL,EAL2B,CAM3B,IAAA,CAAKC,0BAAL,EAN2B,CAO3B,IAAA,CAAKC,2BAAL,EAP2B,CAQ3B,IAAKC,CAAAA,6BAAL,EAR2B,CAAA,CAAA,KAErBlC,IAAAA,CAAAA,MAAL,EAOD,CAlFF,CAHa;;"}
\ No newline at end of file
+{"version":3,"file":"List.min.js","sources":["List.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 *************************************************************************************/\n'use strict';\n\nVtiger_List_Js(\n\t'Campaigns_List_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to mark selected records\n\t\t */\n\t\tmarkSelectedRecords: function () {\n\t\t\tvar thisInstance = this;\n\t\t\tvar selectedIds = this.readSelectedIds();\n\t\t\tif (selectedIds != '') {\n\t\t\t\tif (selectedIds == 'all') {\n\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\tjQuery(this).prop('checked', true).closest('tr').addClass('highlightBackgroundColor');\n\t\t\t\t\t});\n\t\t\t\t\tjQuery('#deSelectAllMsgDiv').show();\n\t\t\t\t\tvar excludedIds = jQuery('[name=\"excludedIds\"]').data('excludedIds');\n\t\t\t\t\tif (excludedIds != '') {\n\t\t\t\t\t\tjQuery('#listViewEntriesMainCheckBox').prop('checked', false);\n\t\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\t\tif (jQuery.inArray(jQuery(element).val(), excludedIds) != -1) {\n\t\t\t\t\t\t\t\tjQuery(element).prop('checked', false).closest('tr').removeClass('highlightBackgroundColor');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tjQuery('.listViewEntriesCheckBox').each(function (index, element) {\n\t\t\t\t\t\tif (jQuery.inArray(jQuery(element).val(), selectedIds) != -1) {\n\t\t\t\t\t\t\tjQuery(this).prop('checked', true).closest('tr').addClass('highlightBackgroundColor');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthisInstance.checkSelectAll();\n\t\t\t}\n\t\t},\n\n\t\tgetRecordsCount: function () {\n\t\t\tif (app.getViewName() != 'Detail') {\n\t\t\t\treturn this._super();\n\t\t\t}\n\t\t\tvar detailInstance = Vtiger_Detail_Js.getInstance();\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\tvar recordCountVal = jQuery('#recordsCount').val();\n\t\t\tif (recordCountVal != '') {\n\t\t\t\taDeferred.resolve(recordCountVal);\n\t\t\t} else {\n\t\t\t\tvar count = '';\n\t\t\t\tvar cvId = jQuery('#customFilter').val();\n\t\t\t\tvar module = app.getModuleName();\n\t\t\t\tvar parent = app.getParentModuleName();\n\t\t\t\tvar relatedModuleName = jQuery('[name=\"relatedModuleName\"]').val();\n\t\t\t\tvar recordId = app.getRecordId();\n\t\t\t\tlet selectedTab = detailInstance.getSelectedTab();\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: module,\n\t\t\t\t\tparent: parent,\n\t\t\t\t\taction: 'DetailAjax',\n\t\t\t\t\tviewname: cvId,\n\t\t\t\t\tmode: 'getRecordsCount',\n\t\t\t\t\trelatedModule: relatedModuleName,\n\t\t\t\t\trecord: recordId,\n\t\t\t\t\ttab_label: selectedTab.data('labelKey'),\n\t\t\t\t\trelationId: selectedTab.data('relationId')\n\t\t\t\t}).done(function (data) {\n\t\t\t\t\tjQuery('#recordsCount').val(data['result']['count']);\n\t\t\t\t\tcount = data['result']['count'];\n\t\t\t\t\taDeferred.resolve(count);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/**\n\t\t * Function to register events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tif (app.getViewName() != 'Detail') {\n\t\t\t\tthis._super();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.registerMainCheckBoxClickEvent();\n\t\t\tthis.registerCheckBoxClickEvent();\n\t\t\tthis.registerSelectAllClickEvent();\n\t\t\tthis.registerDeselectAllClickEvent();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_List_Js","markSelectedRecords","thisInstance","selectedIds","readSelectedIds","jQuery","each","prop","closest","addClass","show","excludedIds","data","index","element","inArray","val","removeClass","checkSelectAll","getRecordsCount","app","getViewName","_super","detailInstance","Vtiger_Detail_Js","getInstance","aDeferred","Deferred","recordCountVal","resolve","count","cvId","module","getModuleName","parent","getParentModuleName","relatedModuleName","recordId","getRecordId","selectedTab","getSelectedTab","AppConnector","request","action","viewname","mode","relatedModule","record","tab_label","relationId","done","result","promise","registerEvents","registerMainCheckBoxClickEvent","registerCheckBoxClickEvent","registerSelectAllClickEvent","registerDeselectAllClickEvent"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,mBAAmB,CACnB,EAAE,CACF;AAED;AACA,KACEC,mBAAmB,CAAE,SAAAA,mBAAAA,EAAY,CAC5B,IAAAC,YAAY,CAAG,IAAI,CACnBC,WAAW,CAAG,IAAI,CAACC,eAAe,EAAE,CACxC,GAAmB,EAAE,EAAjBD,WAAiB,CAAE,CACtB,GAAmB,KAAK,EAApBA,WAAoB,CAAE,CACzBE,MAAM,CAAC,0BAA0B,CAAC,CAACC,IAAI,CAAC,UAA0B,CACjED,MAAM,CAAC,IAAI,CAAC,CAACE,IAAI,CAAC,SAAS,CAAA,CAAA,CAAM,CAAC,CAACC,OAAO,CAAC,IAAI,CAAC,CAACC,QAAQ,CAAC,0BAA0B,EACrF,CAAC,CAAC,CACFJ,MAAM,CAAC,oBAAoB,CAAC,CAACK,IAAI,EAAE,CACnC,IAAIC,WAAW,CAAGN,MAAM,CAAC,wBAAsB,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ACC,2BAA2B,EAAE,CAClC,IAAI,CAACC,6BAA6B,EAAE,OAN/B,IAAA,CAACnC,MAAM,EAOb,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Campaigns/resources/RelatedList.min.js.map b/public_html/layouts/basic/modules/Campaigns/resources/RelatedList.min.js.map
index 8f3701bf6b52..10f93f9ed091 100644
--- a/public_html/layouts/basic/modules/Campaigns/resources/RelatedList.min.js.map
+++ b/public_html/layouts/basic/modules/Campaigns/resources/RelatedList.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"RelatedList.min.js","sources":["RelatedList.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 *************************************************************************************/\n'use strict';\n\nVtiger_RelatedList_Js(\n\t'Campaigns_RelatedList_Js',\n\t{},\n\t{\n\t\tgetCompleteParams: function () {\n\t\t\tvar params = this._super();\n\t\t\tvar container = this.getRelatedContainer();\n\t\t\tparams['selectedIds'] = container.find('#selectedIds').data('selectedIds');\n\t\t\tparams['excludedIds'] = container.find('#excludedIds').data('excludedIds');\n\t\t\treturn params;\n\t\t}\n\t}\n);\n"],"names":["Vtiger_RelatedList_Js","getCompleteParams","params","_super","container","getRelatedContainer","find","data"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAA,CAEAA,qBAAqB,CACpB,0BADoB,CAEpB,EAFoB,CAGpB,CACCC,iBAAiB,CAAE,SAAA,iBAAA,EAAY,CAC1BC,IAAAA,MAAM,CAAG,IAAKC,CAAAA,MAAL,EADiB,CAE1BC,SAAS,CAAG,IAAKC,CAAAA,mBAAL,EAFc,CAK9B,OAFAH,MAAM,CAAN,WAAA,CAAwBE,SAAS,CAACE,IAAV,CAAe,cAAf,CAA+BC,CAAAA,IAA/B,CAAoC,aAApC,CAExB,CADAL,MAAM,CAAA,WAAN,CAAwBE,SAAS,CAACE,IAAV,CAAe,cAAf,CAAA,CAA+BC,IAA/B,CAAoC,aAApC,CACxB,CAAOL,MACP,CAPF,CAHoB;;"}
\ No newline at end of file
+{"version":3,"file":"RelatedList.min.js","sources":["RelatedList.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 *************************************************************************************/\n'use strict';\n\nVtiger_RelatedList_Js(\n\t'Campaigns_RelatedList_Js',\n\t{},\n\t{\n\t\tgetCompleteParams: function () {\n\t\t\tvar params = this._super();\n\t\t\tvar container = this.getRelatedContainer();\n\t\t\tparams['selectedIds'] = container.find('#selectedIds').data('selectedIds');\n\t\t\tparams['excludedIds'] = container.find('#excludedIds').data('excludedIds');\n\t\t\treturn params;\n\t\t}\n\t}\n);\n"],"names":["Vtiger_RelatedList_Js","getCompleteParams","params","_super","container","getRelatedContainer","selectedIds","find","data","excludedIds"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,qBAAqB,CACpB,0BAA0B,CAC1B,EAAE,CACF,CACCC,iBAAiB,CAAE,SAAAA,mBAAY,CAAA,IAC1BC,MAAM,CAAG,IAAI,CAACC,MAAM,EAAE,CACtBC,SAAS,CAAG,IAAI,CAACC,mBAAmB,EAAE,CAG1C,OAFAH,MAAM,CAAAI,WAAe,CAAGF,SAAS,CAACG,IAAI,CAAC,cAAc,CAAC,CAACC,IAAI,CAAC,aAAa,CAAC,CAC1EN,MAAM,CAAAO,WAAe,CAAGL,SAAS,CAACG,IAAI,CAAC,cAAc,CAAC,CAACC,IAAI,CAAC,aAAa,CAAC,CACnEN,MACR,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Competition/resources/Detail.min.js b/public_html/layouts/basic/modules/Competition/resources/Detail.min.js
index 5d9b00e48131..91516836e533 100644
--- a/public_html/layouts/basic/modules/Competition/resources/Detail.min.js
+++ b/public_html/layouts/basic/modules/Competition/resources/Detail.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */Vtiger_Detail_Js("Competition_Detail_Js",{},{hierarchyResponseCache:{},getHierarchyResponseData:function getHierarchyResponseData(params){var thisInstance=this,aDeferred=jQuery.Deferred();return $.isEmptyObject(thisInstance.hierarchyResponseCache)?AppConnector.request(params).then(function(data){thisInstance.hierarchyResponseCache=data,aDeferred.resolve(thisInstance.hierarchyResponseCache);}):aDeferred.resolve(thisInstance.hierarchyResponseCache),aDeferred.promise()},/*
+/* {[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]} */Vtiger_Detail_Js("Competition_Detail_Js",{},{hierarchyResponseCache:{},getHierarchyResponseData:function getHierarchyResponseData(params){var thisInstance=this,aDeferred=jQuery.Deferred();return $.isEmptyObject(thisInstance.hierarchyResponseCache)?AppConnector.request(params).then(function(data){thisInstance.hierarchyResponseCache=data,aDeferred.resolve(thisInstance.hierarchyResponseCache);}):aDeferred.resolve(thisInstance.hierarchyResponseCache),aDeferred.promise()},/*
* function to display the hierarchy response data
*/displayHierarchyResponseData:function displayHierarchyResponseData(data){var callbackFunction=function(){app.showScrollBar($("#hierarchyScroll"),{height:"300px",railVisible:!0,size:"6px"});};app.showModalWindow(data,function(modalContainer){App.Components.Scrollbar.xy($("#hierarchyScroll",modalContainer)),"function"==typeof callbackFunction&&300<$("#hierarchyScroll",modalContainer).height()&&callbackFunction();});},/**
* Registers read count of hierarchy if it is possoble
diff --git a/public_html/layouts/basic/modules/Competition/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Competition/resources/Detail.min.js.map
index 82a3e8d8bc2e..6c0229cb69dc 100644
--- a/public_html/layouts/basic/modules/Competition/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Competition/resources/Detail.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Detail.min.js","sources":["Detail.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nVtiger_Detail_Js(\n\t'Competition_Detail_Js',\n\t{},\n\t{\n\t\thierarchyResponseCache: {},\n\t\tgetHierarchyResponseData: function (params) {\n\t\t\tlet thisInstance = this,\n\t\t\t\taDeferred = jQuery.Deferred();\n\n\t\t\tif (!$.isEmptyObject(thisInstance.hierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).then(function (data) {\n\t\t\t\t\tthisInstance.hierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\t/*\n\t\t * function to display the hierarchy response data\n\t\t */\n\t\tdisplayHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Registers read count of hierarchy if it is possoble\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tlet hierarchyButton = $('.js-detail-hierarchy'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tAppConnector.request(params).then(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tregisterShowHierarchy: function () {\n\t\t\tlet thisInstance = this,\n\t\t\t\thierarchyButton = $('.detailViewTitle'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tview: 'Hierarchy',\n\t\t\t\t\trecord: app.getRecordId()\n\t\t\t\t};\n\t\t\thierarchyButton.on('click', '.js-detail-hierarchy', function () {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\tposition: 'html',\n\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\tenabled: true\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthisInstance.getHierarchyResponseData(params).then(function (data) {\n\t\t\t\t\tthisInstance.displayHierarchyResponseData(data);\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\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.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","hierarchyResponseCache","getHierarchyResponseData","params","thisInstance","aDeferred","jQuery","Deferred","isEmptyObject","AppConnector","request","then","data","resolve","promise","displayHierarchyResponseData","callbackFunction","app","showScrollBar","$","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","module","getModuleName","action","record","getRecordId","mode","hierarchyButton","length","response","success","html","result","registerShowHierarchy","view","on","progressIndicator","position","blockInfo","enabled","progressIndicatorElement","registerEvents","_super"],"mappings":";;AAAA,kKACAA,gBAAgB,CACf,uBADe,CAEf,EAFe,CAGf,CACCC,sBAAsB,CAAE,EADzB,CAECC,wBAAwB,CAAE,kCAAUC,MAAV,CAAkB,CAC3C,IAAIC,YAAY,CAAG,IAAnB,CACCC,SAAS,CAAGC,MAAM,CAACC,QAAP,EADb,CAWA,OARM,CAAA,CAACC,aAAF,CAAgBJ,YAAY,CAACH,sBAA7B,CAQL,CALCQ,YAAY,CAACC,OAAb,CAAqBP,MAArB,CAA6BQ,CAAAA,IAA7B,CAAkC,SAAUC,IAAV,CAAgB,CACjDR,YAAY,CAACH,sBAAb,CAAsCW,IADW,CAEjDP,SAAS,CAACQ,OAAV,CAAkBT,YAAY,CAACH,sBAA/B,EACA,CAHD,CAKD,CAPCI,SAAS,CAACQ,OAAV,CAAkBT,YAAY,CAACH,sBAA/B,CAOD,CAAOI,SAAS,CAACS,OAAV,EACP,CAfF;AAiBD;AACA,KACEC,4BAA4B,CAAE,SAAA,4BAAA,CAAUH,IAAV,CAAgB,CAC7C,IAAII,gBAAgB,CAAG,UAAY,CAClCC,GAAG,CAACC,aAAJ,CAAkBC,CAAC,CAAC,kBAAD,CAAnB,CAAyC,CACxCC,MAAM,CAAE,OADgC,CAExCC,WAAW,CAAA,CAAA,CAF6B,CAGxCC,IAAI,CAAE,KAHkC,CAAzC,EAKA,CAND,CAOAL,GAAG,CAACM,eAAJ,CAAoBX,IAApB,CAA0B,SAAUY,cAAV,CAA0B,CACnDC,GAAG,CAACC,UAAJ,CAAeC,SAAf,CAAyBC,EAAzB,CAA4BT,CAAC,CAAC,kBAAD,CAAqBK,cAArB,CAA7B,CADmD,CAEpB,UAA3B,EAAOR,OAAAA,gBAAP,EAA0F,GAAjD,CAAAG,CAAC,CAAC,kBAAD,CAAqBK,cAArB,CAAD,CAAsCJ,MAAtC,EAFM,EAGlDJ,gBAAgB,GA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IA,CAXD,EAYA,CAzEF,CA0ECe,cAAc,CAAE,SAAA,cAAA,EAAY,CAC3B,IAAKC,CAAAA,MAAL,EAD2B,CAE3B,IAAA,CAAKtB,4BAAL,EAF2B,CAG3B,KAAKa,qBAAL,GACA,CA9EF,CAHe;;"}
\ No newline at end of file
+{"version":3,"file":"Detail.min.js","sources":["Detail.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]} */\nVtiger_Detail_Js(\n\t'Competition_Detail_Js',\n\t{},\n\t{\n\t\thierarchyResponseCache: {},\n\t\tgetHierarchyResponseData: function (params) {\n\t\t\tlet thisInstance = this,\n\t\t\t\taDeferred = jQuery.Deferred();\n\n\t\t\tif (!$.isEmptyObject(thisInstance.hierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).then(function (data) {\n\t\t\t\t\tthisInstance.hierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\t/*\n\t\t * function to display the hierarchy response data\n\t\t */\n\t\tdisplayHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Registers read count of hierarchy if it is possoble\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tlet hierarchyButton = $('.js-detail-hierarchy'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tAppConnector.request(params).then(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tregisterShowHierarchy: function () {\n\t\t\tlet thisInstance = this,\n\t\t\t\thierarchyButton = $('.detailViewTitle'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tview: 'Hierarchy',\n\t\t\t\t\trecord: app.getRecordId()\n\t\t\t\t};\n\t\t\thierarchyButton.on('click', '.js-detail-hierarchy', function () {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\tposition: 'html',\n\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\tenabled: true\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthisInstance.getHierarchyResponseData(params).then(function (data) {\n\t\t\t\t\tthisInstance.displayHierarchyResponseData(data);\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\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.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","hierarchyResponseCache","getHierarchyResponseData","params","thisInstance","aDeferred","jQuery","Deferred","$","isEmptyObject","AppConnector","request","then","data","resolve","promise","displayHierarchyResponseData","callbackFunction","app","showScrollBar","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","hierarchyButton","module","getModuleName","action","record","getRecordId","mode","length","response","success","html","result","registerShowHierarchy","view","on","progressIndicatorElement","progressIndicator","position","blockInfo","enabled","registerEvents","_super"],"mappings":";;AAAA,kKACAA,gBAAgB,CACf,uBAAuB,CACvB,EAAE,CACF,CACCC,sBAAsB,CAAE,EAAE,CAC1BC,wBAAwB,CAAE,SAAAA,wBAAUC,CAAAA,MAAM,CAAE,CAC3C,IAAIC,YAAY,CAAG,IAAI,CACtBC,SAAS,CAAGC,MAAM,CAACC,QAAQ,EAAE,CAU9B,OARKC,CAAC,CAACC,aAAa,CAACL,YAAY,CAACH,sBAAsB,CAAC,CAGxDS,YAAY,CAACC,OAAO,CAACR,MAAM,CAAC,CAACS,IAAI,CAAC,SAAUC,IAAI,CAAE,CACjDT,YAAY,CAACH,sBAAsB,CAAGY,IAAI,CAC1CR,SAAS,CAACS,OAAO,CAACV,YAAY,CAACH,sBAAsB,EACtD,CAAC,CAAC,CALFI,SAAS,CAACS,OAAO,CAACV,YAAY,CAACH,sBAAsB,CAAC,CAOhDI,SAAS,CAACU,OAAO,EACzB,CAAC;AAEH;AACA,KACEC,4BAA4B,CAAE,SAAAA,6BAAUH,IAAI,CAAE,CAC7C,IAAII,gBAAgB,CAAG,UAAY,CAClCC,GAAG,CAACC,aAAa,CAACX,CAAC,CAAC,kBAAkB,CAAC,CAAE,CACxCY,MAAM,CAAE,OAAO,CACfC,WAAW,GAAM,CACjBC,IAAI,CAAE,KACP,CAAC,EACF,CAAC,CACDJ,GAAG,CAACK,eAAe,CAACV,IAAI,CAAE,SAAUW,cAAc,CAAE,CACnDC,GAAG,CAACC,UAAU,CAACC,SAAS,CAACC,EAAE,CAACpB,CAAC,CAAC,kBAAkB,CAAEgB,cAAc,CAAC,CAAC,CACnC,UAAU,EAArC,OAAOP,gBAA8B,EAAqD,GAAG,CAApDT,CAAC,CAAC,kBAAkB,CAAEgB,cAAc,CAAC,CAACJ,MAAM,EAAQ,EAChGH,gBAAgB,GAElB,CAAC,EACF,CAAC;A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AAE,SAAAA,cAAAA,EAAY,CAC3B,IAAI,CAACC,MAAM,EAAE,CACb,IAAI,CAACtB,4BAA4B,EAAE,CACnC,IAAI,CAACa,qBAAqB,GAC3B,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Contacts/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Contacts/resources/Detail.min.js.map
index 6e51ebf9a5f9..b4a1f9f12657 100644
--- a/public_html/layouts/basic/modules/Contacts/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Contacts/resources/Detail.min.js.map
@@ -1 +1 @@
-{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Contacts_Detail_Js',\n\t{},\n\t{\n\t\thierarchyResponseCache: {},\n\t\t/**\n\t\t * Function to register recordpresave event\n\t\t */\n\t\tregisterRecordPreSaveEvent: function (form) {\n\t\t\tvar primaryEmailField = jQuery('[name=\"email\"]');\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\n\t\t\tform.on(this.fieldPreSave, '[name=\"portal\"]', function (e, data) {\n\t\t\t\tvar portalField = jQuery(e.currentTarget);\n\n\t\t\t\tvar primaryEmailValue = primaryEmailField.val();\n\t\t\t\tvar isAlertAlreadyShown = jQuery('.ui-pnotify').length;\n\n\t\t\t\tif (portalField.is(':checked')) {\n\t\t\t\t\tif (primaryEmailField.length == 0) {\n\t\t\t\t\t\tif (isAlertAlreadyShown <= 0) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_PRIMARY_EMAIL_FIELD_DOES_NOT_EXISTS'),\n\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tif (primaryEmailValue == '') {\n\t\t\t\t\t\tif (isAlertAlreadyShown <= 0) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_PLEASE_ENTER_PRIMARY_EMAIL_VALUE_TO_ENABLE_PORTAL_USER'),\n\t\t\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\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\n\t\t/**\n\t\t * Function to get response from hierarchy\n\t\t * @param {array} params\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetHierarchyResponseData: function (params) {\n\t\t\tlet thisInstance = this,\n\t\t\t\taDeferred = jQuery.Deferred();\n\n\t\t\tif (!$.isEmptyObject(thisInstance.hierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).then(function (data) {\n\t\t\t\t\tthisInstance.hierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\t/**\n\t\t * function to display the hierarchy response data\n\t\t * @param {array} data\n\t\t */\n\t\tdisplayHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Registers read count of hierarchy if it is possoble\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tlet hierarchyButton = $('.js-detail-hierarchy'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tAppConnector.request(params).then(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Shows hierarchy\n\t\t */\n\t\tregisterShowHierarchy: function () {\n\t\t\tlet thisInstance = this,\n\t\t\t\thierarchyButton = $('.detailViewTitle'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tview: 'Hierarchy',\n\t\t\t\t\trecord: app.getRecordId()\n\t\t\t\t};\n\t\t\thierarchyButton.on('click', '.js-detail-hierarchy', function () {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\tposition: 'html',\n\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\tenabled: true\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthisInstance.getHierarchyResponseData(params).then(function (data) {\n\t\t\t\t\tthisInstance.displayHierarchyResponseData(data);\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function which will register all the events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tvar form = this.getForm();\n\t\t\tthis._super();\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t\tthis.registerRecordPreSaveEvent(form);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","hierarchyResponseCache","registerRecordPreSaveEvent","form","jQuery","getForm","on","fieldPreSave","e","portalField","currentTarget","primaryEmailValue","primaryEmailField","val","isAlertAlreadyShown","length","is","app","showNotify","text","vtranslate","type","preventDefault","getHierarchyResponseData","params","aDeferred","Deferred","$","isEmptyObject","thisInstance","AppConnector","request","then","data","resolve","promise","displayHierarchyResponseData","callbackFunction","showScrollBar","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","module","getModuleName","action","record","getRecordId","mode","hierarchyButton","response","success","html","result","registerShowHierarchy","view","progressIndicator","position","blockInfo","enabled","progressIndicatorElement","registerEvents","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAA,CAEAA,gBAAgB,CACf,oBADe,CAEf,EAFe,CAGf,CACCC,sBAAsB,CAAE,EADzB;AAGD;AACA,KACEC,0BAA0B,CAAE,SAAUC,0BAAAA,CAAAA,IAAV,CAAgB,CAC3C,IAAqB,iBAAA,CAAGC,MAAM,CAAC,kBAAD,CAA9B,CACoB,WAAhB,EAAA,OAFuC,IAAA,GAG1CD,IAAI,CAAG,IAAKE,CAAAA,OAAL,EAHmC,CAM3CF,CAAAA,IAAI,CAACG,EAAL,CAAQ,IAAA,CAAKC,YAAb,CAA2B,mBAA3B,CAA8C,SAAUC,CAAV,CAAmB,CAC5DC,IAAAA,WAAW,CAAGL,MAAM,CAACI,CAAC,CAACE,aAAH,CADwC,CAG5DC,iBAAiB,CAAGC,iBAAiB,CAACC,GAAlB,EAHwC,CAI5DC,mBAAmB,CAAGV,MAAM,CAAC,aAAD,CAAN,CAAsBW,MAJgB,CAM5DN,WAAW,CAACO,EAAZ,CAAe,UAAf,CAN4D,GAO/B,CAA5B,EAAAJ,iBAAiB,CAACG,MAPyC,GAQnC,CAA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AAoD,UAAY,CAC/D,IAA4B,wBAAA,CAAGqB,CAAC,CAACmC,iBAAF,CAAoB,CAClDC,QAAQ,CAAE,MADwC,CAElDC,SAAS,CAAE,CACVC,OAAO,GADG,CAFuC,CAApB,CAA/B,CAMApC,YAAY,CAACN,wBAAb,CAAsCC,MAAtC,CAA8CQ,CAAAA,IAA9C,CAAmD,SAAUC,IAAV,CAAgB,CAClEJ,YAAY,CAACO,4BAAb,CAA0CH,IAA1C,CADkE,CAElEiC,wBAAwB,CAACJ,iBAAzB,CAA2C,CAAER,IAAI,CAAE,MAAR,CAA3C,EACA,CAHD,EAIA,CAXD,EAYA,CAxHF;AA0HD;AACA,KACEa,cAAc,CAAE,SAAY,cAAA,EAAA,CAC3B,IAAIhE,IAAI,CAAG,IAAA,CAAKE,OAAL,EAAX,CACA,IAAA,CAAK+D,MAAL,EAF2B,CAG3B,IAAKpB,CAAAA,4BAAL,EAH2B,CAI3B,IAAKY,CAAAA,qBAAL,EAJ2B,CAK3B,IAAK1D,CAAAA,0BAAL,CAAgCC,IAAhC,EACA,CAlIF,CAHe;;"}
\ No newline at end of file
+{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Contacts_Detail_Js',\n\t{},\n\t{\n\t\thierarchyResponseCache: {},\n\t\t/**\n\t\t * Function to register recordpresave event\n\t\t */\n\t\tregisterRecordPreSaveEvent: function (form) {\n\t\t\tvar primaryEmailField = jQuery('[name=\"email\"]');\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\n\t\t\tform.on(this.fieldPreSave, '[name=\"portal\"]', function (e, data) {\n\t\t\t\tvar portalField = jQuery(e.currentTarget);\n\n\t\t\t\tvar primaryEmailValue = primaryEmailField.val();\n\t\t\t\tvar isAlertAlreadyShown = jQuery('.ui-pnotify').length;\n\n\t\t\t\tif (portalField.is(':checked')) {\n\t\t\t\t\tif (primaryEmailField.length == 0) {\n\t\t\t\t\t\tif (isAlertAlreadyShown <= 0) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_PRIMARY_EMAIL_FIELD_DOES_NOT_EXISTS'),\n\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t}\n\t\t\t\t\tif (primaryEmailValue == '') {\n\t\t\t\t\t\tif (isAlertAlreadyShown <= 0) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_PLEASE_ENTER_PRIMARY_EMAIL_VALUE_TO_ENABLE_PORTAL_USER'),\n\t\t\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\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\n\t\t/**\n\t\t * Function to get response from hierarchy\n\t\t * @param {array} params\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetHierarchyResponseData: function (params) {\n\t\t\tlet thisInstance = this,\n\t\t\t\taDeferred = jQuery.Deferred();\n\n\t\t\tif (!$.isEmptyObject(thisInstance.hierarchyResponseCache)) {\n\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).then(function (data) {\n\t\t\t\t\tthisInstance.hierarchyResponseCache = data;\n\t\t\t\t\taDeferred.resolve(thisInstance.hierarchyResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\t/**\n\t\t * function to display the hierarchy response data\n\t\t * @param {array} data\n\t\t */\n\t\tdisplayHierarchyResponseData: function (data) {\n\t\t\tlet callbackFunction = function () {\n\t\t\t\tapp.showScrollBar($('#hierarchyScroll'), {\n\t\t\t\t\theight: '300px',\n\t\t\t\t\trailVisible: true,\n\t\t\t\t\tsize: '6px'\n\t\t\t\t});\n\t\t\t};\n\t\t\tapp.showModalWindow(data, function (modalContainer) {\n\t\t\t\tApp.Components.Scrollbar.xy($('#hierarchyScroll', modalContainer));\n\t\t\t\tif (typeof callbackFunction == 'function' && $('#hierarchyScroll', modalContainer).height() > 300) {\n\t\t\t\t\tcallbackFunction();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Registers read count of hierarchy if it is possoble\n\t\t */\n\t\tregisterHierarchyRecordCount: function () {\n\t\t\tlet hierarchyButton = $('.js-detail-hierarchy'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\taction: 'RelationAjax',\n\t\t\t\t\trecord: app.getRecordId(),\n\t\t\t\t\tmode: 'getHierarchyCount'\n\t\t\t\t};\n\t\t\tif (hierarchyButton.length) {\n\t\t\t\tAppConnector.request(params).then(function (response) {\n\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t$('.hierarchy .badge').html(response.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Shows hierarchy\n\t\t */\n\t\tregisterShowHierarchy: function () {\n\t\t\tlet thisInstance = this,\n\t\t\t\thierarchyButton = $('.detailViewTitle'),\n\t\t\t\tparams = {\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tview: 'Hierarchy',\n\t\t\t\t\trecord: app.getRecordId()\n\t\t\t\t};\n\t\t\thierarchyButton.on('click', '.js-detail-hierarchy', function () {\n\t\t\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\t\t\tposition: 'html',\n\t\t\t\t\tblockInfo: {\n\t\t\t\t\t\tenabled: true\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthisInstance.getHierarchyResponseData(params).then(function (data) {\n\t\t\t\t\tthisInstance.displayHierarchyResponseData(data);\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Function which will register all the events\n\t\t */\n\t\tregisterEvents: function () {\n\t\t\tvar form = this.getForm();\n\t\t\tthis._super();\n\t\t\tthis.registerHierarchyRecordCount();\n\t\t\tthis.registerShowHierarchy();\n\t\t\tthis.registerRecordPreSaveEvent(form);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Detail_Js","hierarchyResponseCache","registerRecordPreSaveEvent","form","primaryEmailField","jQuery","getForm","on","fieldPreSave","e","portalField","currentTarget","primaryEmailValue","val","isAlertAlreadyShown","length","is","app","showNotify","text","vtranslate","type","preventDefault","getHierarchyResponseData","params","thisInstance","aDeferred","Deferred","$","isEmptyObject","AppConnector","request","then","data","resolve","promise","displayHierarchyResponseData","callbackFunction","showScrollBar","height","railVisible","size","showModalWindow","modalContainer","App","Components","Scrollbar","xy","registerHierarchyRecordCount","hierarchyButton","module","getModuleName","action","record","getRecordId","mode","response","success","html","result","registerShowHierarchy","view","progressIndicatorElement","progressIndicator","position","blockInfo","enabled","registerEvents","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,gBAAgB,CACf,oBAAoB,CACpB,EAAE,CACF,CACCC,sBAAsB,CAAE,EAAE;AAE5B;AACA,KACEC,0BAA0B,CAAE,SAAAA,0BAAAA,CAAUC,IAAI,CAAE,CAC3C,IAAIC,iBAAiB,CAAGC,MAAM,CAAC,kBAAgB,CAAC,CAC5B,WAAW,EAA3B,OAAOF,IAAoB,GAC9BA,IAAI,CAAG,IAAI,CAACG,OAAO,EAAE,CAGtBH,CAAAA,IAAI,CAACI,EAAE,CAAC,IAAI,CAACC,YAAY,CAAE,mBAAi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vCJ,MAAM,CAAG,CACR0B,MAAM,CAAEjC,GAAG,CAACkC,aAAa,EAAE,CAC3BU,IAAI,CAAE,WAAW,CACjBR,MAAM,CAAEpC,GAAG,CAACqC,WAAW,EACxB,CAAC,CACFL,eAAe,CAAC1C,EAAE,CAAC,OAAO,CAAE,sBAAsB,CAAE,UAAY,CAC/D,IAAIuD,wBAAwB,CAAGlC,CAAC,CAACmC,iBAAiB,CAAC,CAClDC,QAAQ,CAAE,MAAM,CAChBC,SAAS,CAAE,CACVC,OAAO,CACR,CAAA,CAAA,CACD,CAAC,CAAC,CACFzC,YAAY,CAACF,wBAAwB,CAACC,MAAM,CAAC,CAACQ,IAAI,CAAC,SAAUC,IAAI,CAAE,CAClER,YAAY,CAACW,4BAA4B,CAACH,IAAI,CAAC,CAC/C6B,wBAAwB,CAACC,iBAAiB,CAAC,CAAER,IAAI,CAAE,MAAO,CAAC,EAC5D,CAAC,EACF,CAAC,EACF,CAAC;AAEH;AACA,KACEY,cAAc,CAAE,SAAAA,gBAAY,CAC3B,IAAIhE,IAAI,CAAG,IAAI,CAACG,OAAO,EAAE,CACzB,IAAI,CAAC8D,MAAM,EAAE,CACb,IAAI,CAACpB,4BAA4B,EAAE,CACnC,IAAI,CAACY,qBAAqB,EAAE,CAC5B,IAAI,CAAC1D,0BAA0B,CAACC,IAAI,EACrC,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Contacts/resources/Edit.min.js.map b/public_html/layouts/basic/modules/Contacts/resources/Edit.min.js.map
index e1772a22c026..09685708fe41 100644
--- a/public_html/layouts/basic/modules/Contacts/resources/Edit.min.js.map
+++ b/public_html/layouts/basic/modules/Contacts/resources/Edit.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Edit.min.js","sources":["Edit.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 *************************************************************************************/\n'use strict';\n\nVtiger_Edit_Js(\n\t'Contacts_Edit_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to check for Portal User\n\t\t */\n\t\tcheckForPortalUser: function (form) {\n\t\t\tvar element = jQuery('[name=\"portal\"]', form);\n\t\t\tvar response = element.is(':checked');\n\t\t\tvar primaryEmailField = jQuery('[name=\"email\"]');\n\t\t\tvar primaryEmailValue = primaryEmailField.val();\n\t\t\tif (response) {\n\t\t\t\tif (primaryEmailField.length == 0) {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_PRIMARY_EMAIL_FIELD_DOES_NOT_EXISTS'),\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (primaryEmailValue == '') {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_PLEASE_ENTER_PRIMARY_EMAIL_VALUE_TO_ENABLE_PORTAL_USER'),\n\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t});\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t/**\n\t\t * Function to register recordpresave event\n\t\t */\n\t\tregisterRecordPreSaveEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\n\t\t\tform.on(Vtiger_Edit_Js.recordPreSave, function (e, data) {\n\t\t\t\tvar result = thisInstance.checkForPortalUser(form);\n\t\t\t\tif (!result) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerRecordPreSaveEvent(container);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","checkForPortalUser","form","element","jQuery","response","is","primaryEmailField","primaryEmailValue","val","length","showNotify","text","app","vtranslate","type","registerRecordPreSaveEvent","getForm","on","recordPreSave","e","thisInstance","result","preventDefault","registerBasicEvents","container","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,aAEAA,cAAc,CACb,kBADa,CAEb,EAFa,CAGb;AAED;AACA,KACEC,kBAAkB,CAAE,SAAUC,kBAAAA,CAAAA,IAAV,CAAgB,CAC/BC,IAAAA,OAAO,CAAGC,MAAM,CAAC,mBAAD,CAAoBF,IAApB,CADe,CAE/BG,QAAQ,CAAGF,OAAO,CAACG,EAAR,CAAW,UAAX,CAFoB,CAG/BC,iBAAiB,CAAGH,MAAM,CAAC,kBAAD,CAHK,CAI/BI,iBAAiB,CAAGD,iBAAiB,CAACE,GAAlB,EAJW,CAKnC,GAAIJ,QAAJ,CAAc,CACb,GAAgC,CAA5B,EAAAE,iBAAiB,CAACG,MAAtB,CAKC,OAJG,GAAA,CAACC,UAAJ,CAAe,CACdC,IAAI,CAAEC,GAAG,CAACC,UAAJ,CAAe,wCAAf,CADQ,CAEdC,IAAI,CAAE,OAFQ,CAAf,CAIA,CAED,CAAA,CAAA,CAAA,GAAyB,EAArB,EAAAP,iBAAJ,CAKC,OAJG,GAAA,CAACG,UAAJ,CAAe,CACdC,IAAI,CAAEC,GAAG,CAACC,UAAJ,CAAe,2DAAf,CADQ,CAEdC,IAAI,CAAE,MAFQ,CAAf,CAIA,CAED,CAAA,CAAA,CACD,OACA,CAAA,CAAA,CA1BF;AA6BD;AACA,KACEC,0BAA0B,CAAE,SAAUd,0BAAAA,CAAAA,IAAV,CAAgB,CAC3C,IAAgB,YAAA,CAAG,IAAnB,CACoB,WAAhB,EAAOA,OAAAA,IAFgC,GAG1CA,IAAI,CAAG,IAAKe,CAAAA,OAAL,EAHmC,CAAA,CAM3Cf,IAAI,CAACgB,EAAL,CAAQlB,cAAc,CAACmB,aAAvB,CAAsC,SAAUC,CAAV,CAAmB,CACxD,IAAU,MAAA,CAAGC,YAAY,CAACpB,kBAAb,CAAgCC,IAAhC,CAAb,CACKoB,MAFmD,EAGvDF,CAAC,CAACG,cAAF,GAED,CALD,EAMA,CA3CF,CA6CCC,mBAAmB,CAAE,SAAUC,mBAAAA,CAAAA,SAAV,CAAqB,CACzC,IAAKC,CAAAA,MAAL,CAAYD,SAAZ,CADyC,CAEzC,IAAA,CAAKT,0BAAL,CAAgCS,SAAhC,EACA,CAhDF,CAHa;;"}
\ No newline at end of file
+{"version":3,"file":"Edit.min.js","sources":["Edit.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 *************************************************************************************/\n'use strict';\n\nVtiger_Edit_Js(\n\t'Contacts_Edit_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to check for Portal User\n\t\t */\n\t\tcheckForPortalUser: function (form) {\n\t\t\tvar element = jQuery('[name=\"portal\"]', form);\n\t\t\tvar response = element.is(':checked');\n\t\t\tvar primaryEmailField = jQuery('[name=\"email\"]');\n\t\t\tvar primaryEmailValue = primaryEmailField.val();\n\t\t\tif (response) {\n\t\t\t\tif (primaryEmailField.length == 0) {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_PRIMARY_EMAIL_FIELD_DOES_NOT_EXISTS'),\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (primaryEmailValue == '') {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttext: app.vtranslate('JS_PLEASE_ENTER_PRIMARY_EMAIL_VALUE_TO_ENABLE_PORTAL_USER'),\n\t\t\t\t\t\ttype: 'info'\n\t\t\t\t\t});\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\t/**\n\t\t * Function to register recordpresave event\n\t\t */\n\t\tregisterRecordPreSaveEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\n\t\t\tform.on(Vtiger_Edit_Js.recordPreSave, function (e, data) {\n\t\t\t\tvar result = thisInstance.checkForPortalUser(form);\n\t\t\t\tif (!result) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerRecordPreSaveEvent(container);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","checkForPortalUser","form","element","jQuery","response","is","primaryEmailField","primaryEmailValue","val","length","app","showNotify","text","vtranslate","type","registerRecordPreSaveEvent","thisInstance","getForm","on","recordPreSave","e","result","preventDefault","registerBasicEvents","container","_super"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,kBAAkB,CAClB,EAAE,CACF;AAED;AACA,KACEC,kBAAkB,CAAE,SAAAA,kBAAAA,CAAUC,IAAI,CAAE,CAAA,IAC/BC,OAAO,CAAGC,MAAM,CAAC,mBAAiB,CAAEF,IAAI,CAAC,CACzCG,QAAQ,CAAGF,OAAO,CAACG,EAAE,CAAC,UAAU,CAAC,CACjCC,iBAAiB,CAAGH,MAAM,CAAC,kBAAgB,CAAC,CAC5CI,iBAAiB,CAAGD,iBAAiB,CAACE,GAAG,EAAE,CAC/C,GAAIJ,QAAQ,CAAE,CACb,GAAgC,CAAC,EAA7BE,iBAAiB,CAACG,MAAW,CAKhC,OAJAC,GAAG,CAACC,UAAU,CAAC,CACdC,IAAI,CAAEF,GAAG,CAACG,UAAU,CAAC,wCAAwC,CAAC,CAC9DC,IAAI,CAAE,OACP,CAAC,CAAC,CAGH,CAAA,CAAA,CAAA,GAAyB,EAAE,EAAvBP,iBAAuB,CAK1B,OAJAG,GAAG,CAACC,UAAU,CAAC,CACdC,IAAI,CAAEF,GAAG,CAACG,UAAU,CAAC,2DAA2D,CAAC,CACjFC,IAAI,CAAE,MACP,CAAC,CAAC,CAGJ,CAAA,CAAA,CACA,OACD,CAAA,CAAA,CAAC;AAGH;AACA,KACEC,0BAA0B,CAAE,SAAAA,0BAAUd,CAAAA,IAAI,CAAE,CAC3C,IAAIe,YAAY,CAAG,IAAI,CACH,WAAW,EAA3B,OAAOf,IAAoB,GAC9BA,IAAI,CAAG,IAAI,CAACgB,OAAO,EAAE,CAAA,CAGtBhB,IAAI,CAACiB,EAAE,CAACnB,cAAc,CAACoB,aAAa,CAAE,SAAUC,CAAC,CAAQ,CACxD,IAAIC,MAAM,CAAGL,YAAY,CAAChB,kBAAkB,CAACC,IAAI,CAAC,CAC7CoB,MAAM,EACVD,CAAC,CAACE,cAAc,GAElB,CAAC,EACF,CAAC,CAEDC,mBAAmB,CAAE,SAAAA,mBAAAA,CAAUC,SAAS,CAAE,CACzC,IAAI,CAACC,MAAM,CAACD,SAAS,CAAC,CACtB,IAAI,CAACT,0BAA0B,CAACS,SAAS,EAC1C,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/CustomView/resources/CustomView.min.js b/public_html/layouts/basic/modules/CustomView/resources/CustomView.min.js
index dbd289041dcc..5cde8a563f70 100644
--- a/public_html/layouts/basic/modules/CustomView/resources/CustomView.min.js
+++ b/public_html/layouts/basic/modules/CustomView/resources/CustomView.min.js
@@ -8,7 +8,7 @@
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce S.A.
- *************************************************************************************/"use strict";function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var descriptor,i=0;i {\n\t\t\tthis.modalContainer = $('.js-filter-modal__container');\n\t\t\tthis.advanceFilterInstance = new Vtiger_ConditionBuilder_Js(\n\t\t\t\tthis.modalContainer.find('.js-condition-builder-view .js-condition-builder'),\n\t\t\t\tthis.modalContainer.find('#sourceModule').val()\n\t\t\t);\n\t\t\tthis.advanceFilterInstance.registerEvents();\n\t\t\tCustomView.registerAdvancedConditionsEvents(this.modalContainer);\n\n\t\t\t//This will store the columns selection container\n\t\t\tthis.columnSelectElement = false;\n\t\t\tthis.registerEvents();\n\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t});\n\t}\n\n\t/** @type {Vtiger_ConditionBuilder_Js} Condition builder object */\n\tstatic advancedConditionsBuilder;\n\n\tloadDateFilterValues() {\n\t\tlet selectedDateFilter = $('#standardDateFilter option:selected');\n\t\tlet currentDate = selectedDateFilter.data('currentdate');\n\t\tlet endDate = selectedDateFilter.data('enddate');\n\t\t$('#standardFilterCurrentDate').val(currentDate);\n\t\t$('#standardFilterEndDate').val(endDate);\n\t}\n\n\t/**\n\t * Function to get the contents container\n\t * @return : jQuery object of contents container\n\t */\n\tgetContentsContainer() {\n\t\tif (!this.modalContainer) {\n\t\t\tthis.modalContainer = $('.js-filter-modal__container');\n\t\t}\n\t\treturn this.modalContainer;\n\t}\n\n\t/**\n\t * Function to get the view columns selection element\n\t * @return : jQuery object of view columns selection element\n\t */\n\tgetColumnSelectElement() {\n\t\tif (!this.columnSelectElement) {\n\t\t\tthis.columnSelectElement = $('#viewColumnsSelect');\n\t\t}\n\t\treturn this.columnSelectElement;\n\t}\n\n\t/**\n\t * Function which will get the selected columns\n\t * @return : array of selected values\n\t */\n\tgetSelectedColumns() {\n\t\tlet columnListSelectElement = this.getColumnSelectElement();\n\t\treturn columnListSelectElement.val();\n\t}\n\t/**\n\t * Get custom labels\n\t * @returns array\n\t */\n\tgetCustomLabels() {\n\t\tlet customFieldNames = {};\n\t\tthis.getContentsContainer()\n\t\t\t.find('.js-short-label')\n\t\t\t.each(function () {\n\t\t\t\tcustomFieldNames[$(this).attr('data-field-value')] = $(this).val();\n\t\t\t});\n\t\treturn customFieldNames;\n\t}\n\n\tsaveFilter() {\n\t\tlet aDeferred = $.Deferred();\n\t\tlet formData = $('#CustomView').serializeFormData();\n\t\tAppConnector.request(formData, true)\n\t\t\t.done(function (data) {\n\t\t\t\taDeferred.resolve(data);\n\t\t\t})\n\t\t\t.fail(function (error) {\n\t\t\t\taDeferred.reject(error);\n\t\t\t});\n\t\treturn aDeferred.promise();\n\t}\n\n\tsaveAndViewFilter() {\n\t\tthis.saveFilter().done(function (data) {\n\t\t\tlet response = data.result;\n\t\t\tif (response && response.success) {\n\t\t\t\tlet url;\n\t\t\t\tif (app.getParentModuleName() == 'Settings') {\n\t\t\t\t\turl = 'index.php?module=CustomView&parent=Settings&view=Index&sourceModule=' + $('#sourceModule').val();\n\t\t\t\t} else {\n\t\t\t\t\turl = response.listviewurl;\n\t\t\t\t}\n\t\t\t\twindow.location.href = url;\n\t\t\t} else {\n\t\t\t\t$.unblockUI();\n\t\t\t\tapp.showNotify({\n\t\t\t\t\ttitle: app.vtranslate('JS_DUPLICATE_RECORD'),\n\t\t\t\t\ttext: response.message,\n\t\t\t\t\ttype: 'error'\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\n\tregisterIconEvents() {\n\t\tthis.getContentsContainer()\n\t\t\t.find('.js-filter-preferences')\n\t\t\t.on('change', '.js-filter-preference', (e) => {\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tlet iconElement = currentTarget.next();\n\t\t\t\tif (currentTarget.prop('checked')) {\n\t\t\t\t\ticonElement.removeClass(iconElement.data('unchecked')).addClass(iconElement.data('check'));\n\t\t\t\t} else {\n\t\t\t\t\ticonElement.removeClass(iconElement.data('check')).addClass(iconElement.data('unchecked'));\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tregisterColorEvent() {\n\t\tconst container = this.getContentsContainer();\n\t\tlet picker = container.find('.js-color-picker');\n\t\tlet pickerField = picker.find('.js-color-picker__field');\n\t\tlet showPicker = () => {\n\t\t\tApp.Fields.Colors.showPicker({\n\t\t\t\tcolor: pickerField.val(),\n\t\t\t\tbgToUpdate: picker.find('.js-color-picker__color'),\n\t\t\t\tfieldToUpdate: pickerField\n\t\t\t});\n\t\t};\n\t\tpicker.on('click', showPicker);\n\t}\n\n\t/**\n\t * Get list of fields to duplicates\n\t * @returns {Array}\n\t */\n\tgetDuplicateFields() {\n\t\tlet fields = [];\n\t\tconst container = this.getContentsContainer();\n\t\tcontainer.find('.js-duplicates-container .js-duplicates-row').each(function () {\n\t\t\tfields.push({\n\t\t\t\tfieldid: $(this).find('.js-duplicates-field').val(),\n\t\t\t\tignore: $(this).find('.js-duplicates-ignore').is(':checked')\n\t\t\t});\n\t\t});\n\t\treturn fields;\n\t}\n\t/**\n\t * Register events for block \"Find duplicates\"\n\t */\n\tregisterDuplicatesEvents() {\n\t\tconst container = this.getContentsContainer();\n\t\tApp.Fields.Picklist.showSelect2ElementView(container.find('.js-duplicates-container .js-duplicates-field'));\n\t\tcontainer.on('click', '.js-duplicates-remove', function () {\n\t\t\t$(this).closest('.js-duplicates-row').remove();\n\t\t});\n\t\tcontainer.find('.js-duplicate-add-field').on('click', function () {\n\t\t\tlet template = container.find('.js-duplicates-field-template').clone();\n\t\t\ttemplate.removeClass('d-none');\n\t\t\ttemplate.removeClass('js-duplicates-field-template');\n\t\t\tApp.Fields.Picklist.showSelect2ElementView(template.find('.js-duplicates-field'));\n\t\t\tcontainer.find('.js-duplicates-container').append(template);\n\t\t});\n\t}\n\tregisterSubmitEvent(select2Element) {\n\t\t$('#CustomView').on('submit', (e) => {\n\t\t\tconst form = $(e.currentTarget);\n\t\t\tlet selectElement = this.getColumnSelectElement();\n\t\t\tif ($('#viewname').val().length > 100) {\n\t\t\t\tapp.showNotify({\n\t\t\t\t\ttitle: app.vtranslate('JS_MESSAGE'),\n\t\t\t\t\ttext: app.vtranslate('JS_VIEWNAME_ALERT'),\n\t\t\t\t\ttype: 'error'\n\t\t\t\t});\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//Mandatory Fields selection validation\n\t\t\t//Any one Mandatory Field should select while creating custom view.\n\t\t\tlet mandatoryFieldsList = JSON.parse($('#mandatoryFieldsList').val());\n\t\t\tlet selectedOptions = selectElement.val();\n\t\t\tlet mandatoryFieldsMissing = true;\n\t\t\tif (selectedOptions) {\n\t\t\t\tmandatoryFieldsMissing = selectedOptions.filter((value) => mandatoryFieldsList.includes(value)).length <= 0;\n\t\t\t}\n\t\t\tif (mandatoryFieldsMissing) {\n\t\t\t\tselectElement.validationEngine(\n\t\t\t\t\t'showPrompt',\n\t\t\t\t\tapp.vtranslate('JS_PLEASE_SELECT_ATLEAST_ONE_MANDATORY_FIELD'),\n\t\t\t\t\t'error',\n\t\t\t\t\t'topLeft',\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tselect2Element.validationEngine('hide');\n\t\t\t}\n\t\t\t//Mandatory Fields validation ends\n\t\t\tlet result = form.validationEngine('validate');\n\t\t\tif (result) {\n\t\t\t\t//handled standard filters saved values.\n\t\t\t\tlet stdfilterlist = {};\n\n\t\t\t\tif (\n\t\t\t\t\t$('#standardFilterCurrentDate').val() != '' &&\n\t\t\t\t\t$('#standardFilterEndDate').val() != '' &&\n\t\t\t\t\t$('select.standardFilterColumn option:selected').val() != 'none'\n\t\t\t\t) {\n\t\t\t\t\tstdfilterlist['columnname'] = $('select.standardFilterColumn option:selected').val();\n\t\t\t\t\tstdfilterlist['stdfilter'] = $('select#standardDateFilter option:selected').val();\n\t\t\t\t\tstdfilterlist['startdate'] = $('#standardFilterCurrentDate').val();\n\t\t\t\t\tstdfilterlist['enddate'] = $('#standardFilterEndDate').val();\n\t\t\t\t\t$('#stdfilterlist').val(JSON.stringify(stdfilterlist));\n\t\t\t\t}\n\t\t\t\t//handled advanced filters saved values.\n\t\t\t\tlet contentContainer = this.getContentsContainer();\n\t\t\t\t$('#advfilterlist').val(JSON.stringify(this.advanceFilterInstance.getConditions()));\n\t\t\t\tform.find('#advancedConditions').val(JSON.stringify(CustomView.getAdvancedConditions(form)));\n\t\t\t\t$('[name=\"duplicatefields\"]').val(JSON.stringify(this.getDuplicateFields()));\n\t\t\t\t$('input[name=\"columnslist\"]', contentContainer).val(JSON.stringify(this.getSelectedColumns()));\n\t\t\t\tcontentContainer.find('.js-custom-field-names').val(JSON.stringify(this.getCustomLabels()));\n\n\t\t\t\tthis.saveAndViewFilter();\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tapp.formAlignmentAfterValidation($(e.currentTarget));\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Block submit on press enter key\n\t */\n\tregisterDisableSubmitOnEnter() {\n\t\tthis.getContentsContainer()\n\t\t\t.find('#viewname, [name=\"color\"]')\n\t\t\t.on('keydown', (e) => {\n\t\t\t\tif (e.key === 'Enter') {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Function to register the advanced conditions events for customview\n\t * @param {jQuery} listViewContainer\n\t */\n\tstatic registerCustomViewAdvCondEvents(listViewContainer) {\n\t\tlistViewContainer.on('click', '.js-custom-view-adv-cond-modal', () => {\n\t\t\tconst customViewAdvCond = listViewContainer.find('.js-custom-view-adv-cond');\n\t\t\tlet advancedConditions = customViewAdvCond.val();\n\t\t\tif (advancedConditions) {\n\t\t\t\tadvancedConditions = JSON.parse(advancedConditions);\n\t\t\t}\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\tview: 'CustomViewAdvCondModal',\n\t\t\t\tadvancedConditions: advancedConditions\n\t\t\t})\n\t\t\t\t.done((data) => {\n\t\t\t\t\tif (data) {\n\t\t\t\t\t\tapp.showModalWindow(data, (modalContainer) => {\n\t\t\t\t\t\t\tApp.Tools.Form.registerBlockToggle(modalContainer);\n\t\t\t\t\t\t\tthis.registerAdvancedConditionsEvents(modalContainer);\n\t\t\t\t\t\t\tmodalContainer.find('[name=\"saveButton\"]').on('click', () => {\n\t\t\t\t\t\t\t\tcustomViewAdvCond.val(JSON.stringify(this.getAdvancedConditions(modalContainer)));\n\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\tif (typeof app.pageController.getListViewRecords !== 'undefined') {\n\t\t\t\t\t\t\t\t\tapp.pageController.getListViewRecords();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.fail((_textStatus, errorThrown) => {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttextTrusted: false,\n\t\t\t\t\t\ttitle: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\ttext: errorThrown,\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Function to register the advanced conditions events for custom view\n\t * @param {jQuery} container\n\t */\n\tstatic registerAdvancedConditionsEvents(container) {\n\t\tconst self = this;\n\t\tconst builder = container.find('.js-adv-condition-builder-view');\n\t\tconst relationSelect = container.find('.js-relation-select');\n\t\tif (relationSelect.val() != 0) {\n\t\t\tthis.advancedConditionsBuilder = new Vtiger_ConditionBuilder_Js(\n\t\t\t\tbuilder.find('.js-condition-builder'),\n\t\t\t\trelationSelect.find('option:selected').data('module')\n\t\t\t);\n\t\t\tthis.advancedConditionsBuilder.registerEvents();\n\t\t}\n\t\trelationSelect.on('change', function () {\n\t\t\tconst moduleName = $(this).find('option:selected').data('module');\n\t\t\tbuilder.html('');\n\t\t\tdelete self.advancedConditionsBuilder;\n\t\t\tif (moduleName) {\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tparent: app.getParentModuleName(),\n\t\t\t\t\tview: 'ConditionBuilder',\n\t\t\t\t\tmode: 'builder',\n\t\t\t\t\tsourceModuleName: moduleName\n\t\t\t\t}).done((data) => {\n\t\t\t\t\tbuilder.html(data);\n\t\t\t\t\tself.advancedConditionsBuilder = new Vtiger_ConditionBuilder_Js(\n\t\t\t\t\t\tbuilder.find('.js-condition-builder'),\n\t\t\t\t\t\tmoduleName\n\t\t\t\t\t);\n\t\t\t\t\tself.advancedConditionsBuilder.registerEvents();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Function to register the advanced conditions events for custom view\n\t * @param {jQuery} container\n\t * @return {object}\n\t */\n\tstatic getAdvancedConditions(container) {\n\t\tconst advancedConditions = {\n\t\t\trelationId: container.find('.js-relation-select').val()\n\t\t};\n\t\tcontainer.find('.js-relation-checkbox:checked').each(function () {\n\t\t\tif (typeof advancedConditions.relationColumns === 'undefined') {\n\t\t\t\tadvancedConditions.relationColumns = [];\n\t\t\t}\n\t\t\tadvancedConditions.relationColumns.push($(this).val());\n\t\t});\n\t\tif (this.advancedConditionsBuilder) {\n\t\t\tadvancedConditions.relationConditions = this.advancedConditionsBuilder.getConditions();\n\t\t}\n\t\treturn advancedConditions;\n\t}\n\t/**\n\t * Register change selected columns\n\t */\n\tregisterChangeSelectedColumns() {\n\t\tthis.container.find('.js-view-columns-select').on('change', () => {\n\t\t\tthis.registerAppendCustomLabels();\n\t\t});\n\t}\n\t/**\n\t *\tRegister append custom labels\n\t */\n\tregisterAppendCustomLabels() {\n\t\tlet shorterNamesContainer = this.container.find('.js-custom-name-fields');\n\t\tlet selectedColumns = this.container\n\t\t\t.find('.js-view-columns-select option:selected')\n\t\t\t.toArray()\n\t\t\t.map((item) => ({\n\t\t\t\ttext: item.getAttribute('data-field-label'),\n\t\t\t\tvalue: item.value,\n\t\t\t\tcustomLabel: item.getAttribute('data-custom-label') || ''\n\t\t\t}));\n\t\tshorterNamesContainer.empty();\n\t\tlet newCustomLabelElement = '';\n\t\tlet customLabelElement = '';\n\t\tlet customLabelValue = '';\n\t\tlet inputContainerElement = '';\n\t\tlet inputElement = '';\n\t\t$.each(selectedColumns, function (_index, element) {\n\t\t\tnewCustomLabelElement = document.createElement('div');\n\t\t\tnewCustomLabelElement.setAttribute('class', 'd-flex mb-1');\n\n\t\t\tcustomLabelElement = document.createElement('div');\n\t\t\tcustomLabelElement.setAttribute('class', 'col-form-label col-md-2 pl-0');\n\t\t\tcustomLabelValue = document.createTextNode(element.text);\n\t\t\tcustomLabelElement.appendChild(customLabelValue);\n\t\t\tnewCustomLabelElement.appendChild(customLabelElement);\n\n\t\t\tinputContainerElement = document.createElement('div');\n\t\t\tinputContainerElement.setAttribute('class', 'col-md-4');\n\n\t\t\tinputElement = document.createElement('input');\n\t\t\tinputElement.setAttribute('type', 'text');\n\t\t\tinputElement.setAttribute('class', 'form-control js-short-label');\n\t\t\tinputElement.setAttribute('data-field-value', element.value);\n\t\t\tinputElement.setAttribute(\n\t\t\t\t'data-validation-engine',\n\t\t\t\t'validate[maxSize[50], funcCall[Vtiger_Base_Validator_Js.invokeValidation]]'\n\t\t\t);\n\t\t\tinputElement.setAttribute('data-validator', '[{\"name\":\"FieldLabel\"}]');\n\t\t\tinputElement.setAttribute('value', element.customLabel);\n\n\t\t\tinputContainerElement.appendChild(inputElement);\n\t\t\tnewCustomLabelElement.appendChild(inputContainerElement);\n\t\t\tshorterNamesContainer.append(newCustomLabelElement);\n\t\t});\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents() {\n\t\tthis.container = this.getContentsContainer();\n\t\tthis.registerIconEvents();\n\t\tApp.Fields.Tree.register(this.getContentsContainer());\n\t\tApp.Tools.Form.registerBlockToggle(this.getContentsContainer());\n\t\tthis.registerColorEvent();\n\t\tthis.registerDuplicatesEvents();\n\t\tconst select2Element = App.Fields.Picklist.showSelect2ElementView(this.getColumnSelectElement());\n\t\tthis.registerSubmitEvent(select2Element);\n\t\t$('.stndrdFilterDateSelect').datepicker();\n\t\t$('#standardDateFilter').on('change', () => {\n\t\t\tthis.loadDateFilterValues();\n\t\t});\n\t\t$('#CustomView').validationEngine(app.validationEngineOptions);\n\t\tthis.registerDisableSubmitOnEnter();\n\t\tthis.registerChangeSelectedColumns();\n\t\tthis.registerAppendCustomLabels();\n\t}\n}\n\nVtiger_Base_Validator_Js(\n\t'Vtiger_FieldLabel_Validator_Js',\n\t{\n\t\t/** @inheritdoc */\n\t\tinvokeValidation: function (field, _rules, _i, _options) {\n\t\t\tlet instance = new Vtiger_FieldLabel_Validator_Js();\n\t\t\tinstance.setElement(field);\n\t\t\tlet response = instance.validate();\n\t\t\tif (response !== true) {\n\t\t\t\treturn instance.getError();\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\t/** @inheritdoc */\n\t\tvalidate: function () {\n\t\t\treturn this.validateValue(this.getFieldValue());\n\t\t},\n\t\t/** @inheritdoc */\n\t\tvalidateValue: function (fieldValue) {\n\t\t\tlet specialChars = /[&\\<\\>\\:\\'\\\"\\,]/;\n\t\t\tif (specialChars.test(fieldValue)) {\n\t\t\t\tlet errorInfo = app.vtranslate('JS_SPECIAL_CHARACTERS') + ' & < > \\' \" : , ' + app.vtranslate('JS_NOT_ALLOWED');\n\t\t\t\tthis.setError(errorInfo);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n);\n"],"names":["CustomView","url","progressIndicatorElement","$","progressIndicator","position","blockInfo","enabled","app","showModalWindow","modalContainer","advanceFilterInstance","Vtiger_ConditionBuilder_Js","find","val","registerEvents","registerAdvancedConditionsEvents","columnSelectElement","mode","selectedDateFilter","currentDate","data","endDate","getColumnSelectElement","columnListSelectElement","getContentsContainer","each","customFieldNames","attr","Deferred","formData","serializeFormData","AppConnector","request","done","aDeferred","resolve","fail","error","reject","promise","saveFilter","result","response","success","getParentModuleName","listviewurl","window","location","href","unblockUI","showNotify","title","vtranslate","text","message","type","on","e","currentTarget","iconElement","next","prop","removeClass","addClass","picker","container","pickerField","App","Fields","Colors","showPicker","color","bgToUpdate","fieldToUpdate","fields","push","fieldid","ignore","is","Picklist","showSelect2ElementView","closest","remove","clone","template","append","select2Element","selectElement","length","preventDefault","JSON","parse","selectedOptions","mandatoryFieldsMissing","filter","value","includes","validationEngine","form","stdfilterlist","stringify","getConditions","getAdvancedConditions","getDuplicateFields","contentContainer","getSelectedColumns","getCustomLabels","saveAndViewFilter","formAlignmentAfterValidation","key","registerAppendCustomLabels","shorterNamesContainer","selectedColumns","toArray","map","item","getAttribute","customLabel","empty","newCustomLabelElement","customLabelElement","customLabelValue","inputContainerElement","inputElement","_index","element","document","createElement","setAttribute","createTextNode","appendChild","registerIconEvents","Tree","register","Tools","Form","registerBlockToggle","registerColorEvent","registerDuplicatesEvents","registerSubmitEvent","datepicker","loadDateFilterValues","validationEngineOptions","registerDisableSubmitOnEnter","registerChangeSelectedColumns","listViewContainer","advancedConditions","customViewAdvCond","module","getModuleName","view","hideModalWindow","pageController","getListViewRecords","_textStatus","errorThrown","textTrusted","self","builder","relationSelect","advancedConditionsBuilder","html","moduleName","parent","sourceModuleName","relationId","relationColumns","relationConditions","Vtiger_Base_Validator_Js","invokeValidation","field","instance","setElement","validate","getError","validateValue","getFieldValue","fieldValue","test","setError","errorInfo"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,sBAEMA,eAAAA,CAAAA,QAAAA,CAAAA,WAAAA,CAAAA,CAAAA,GAAAA,EAAAA,QAAAA,YAAAA,WAAAA,CAAAA,CAAAA,MAAAA,IAAAA,SAAAA,CAAAA,mCAAAA,CAAAA,CAAAA,SAAAA,iBAAAA,CAAAA,MAAAA,CAAAA,KAAAA,CAAAA,CAAAA,IAAAA,IAAAA,UAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,MAAAA,CAAAA,CAAAA,EAAAA,CAAAA,UAAAA,CAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,UAAAA,CAAAA,UAAAA,CAAAA,UAAAA,CAAAA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CAAmC,CAClC,aAAa,CAAG1K,GAAG,CAAC6C,UAAJ,CAAe,uBAAf,CAA0C,CAAA,kBAA1C,CAA+D7C,GAAG,CAAC6C,UAAJ,CAAe,gBAAf,CAA/E,CAEA,YADK+H,QAAL,CAAcC,SAAd,CACA,CAAA,CAAA,CACA,CACD,OACA,CAAA,CAAA,CAdF,CAbuB;;"}
\ No newline at end of file
+{"version":3,"file":"CustomView.min.js","sources":["CustomView.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\nclass CustomView {\n\tconstructor(url) {\n\t\tlet progressIndicatorElement = $.progressIndicator({\n\t\t\tposition: 'html',\n\t\t\tblockInfo: {\n\t\t\t\tenabled: true\n\t\t\t}\n\t\t});\n\t\tapp.showModalWindow(null, url, () => {\n\t\t\tthis.modalContainer = $('.js-filter-modal__container');\n\t\t\tthis.advanceFilterInstance = new Vtiger_ConditionBuilder_Js(\n\t\t\t\tthis.modalContainer.find('.js-condition-builder-view .js-condition-builder'),\n\t\t\t\tthis.modalContainer.find('#sourceModule').val()\n\t\t\t);\n\t\t\tthis.advanceFilterInstance.registerEvents();\n\t\t\tCustomView.registerAdvancedConditionsEvents(this.modalContainer);\n\n\t\t\t//This will store the columns selection container\n\t\t\tthis.columnSelectElement = false;\n\t\t\tthis.registerEvents();\n\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t});\n\t}\n\n\t/** @type {Vtiger_ConditionBuilder_Js} Condition builder object */\n\tstatic advancedConditionsBuilder;\n\n\tloadDateFilterValues() {\n\t\tlet selectedDateFilter = $('#standardDateFilter option:selected');\n\t\tlet currentDate = selectedDateFilter.data('currentdate');\n\t\tlet endDate = selectedDateFilter.data('enddate');\n\t\t$('#standardFilterCurrentDate').val(currentDate);\n\t\t$('#standardFilterEndDate').val(endDate);\n\t}\n\n\t/**\n\t * Function to get the contents container\n\t * @return : jQuery object of contents container\n\t */\n\tgetContentsContainer() {\n\t\tif (!this.modalContainer) {\n\t\t\tthis.modalContainer = $('.js-filter-modal__container');\n\t\t}\n\t\treturn this.modalContainer;\n\t}\n\n\t/**\n\t * Function to get the view columns selection element\n\t * @return : jQuery object of view columns selection element\n\t */\n\tgetColumnSelectElement() {\n\t\tif (!this.columnSelectElement) {\n\t\t\tthis.columnSelectElement = $('#viewColumnsSelect');\n\t\t}\n\t\treturn this.columnSelectElement;\n\t}\n\n\t/**\n\t * Function which will get the selected columns\n\t * @return : array of selected values\n\t */\n\tgetSelectedColumns() {\n\t\tlet columnListSelectElement = this.getColumnSelectElement();\n\t\treturn columnListSelectElement.val();\n\t}\n\t/**\n\t * Get custom labels\n\t * @returns array\n\t */\n\tgetCustomLabels() {\n\t\tlet customFieldNames = {};\n\t\tthis.getContentsContainer()\n\t\t\t.find('.js-short-label')\n\t\t\t.each(function () {\n\t\t\t\tcustomFieldNames[$(this).attr('data-field-value')] = $(this).val();\n\t\t\t});\n\t\treturn customFieldNames;\n\t}\n\n\tsaveFilter() {\n\t\tlet aDeferred = $.Deferred();\n\t\tlet formData = $('#CustomView').serializeFormData();\n\t\tAppConnector.request(formData, true)\n\t\t\t.done(function (data) {\n\t\t\t\taDeferred.resolve(data);\n\t\t\t})\n\t\t\t.fail(function (error) {\n\t\t\t\taDeferred.reject(error);\n\t\t\t});\n\t\treturn aDeferred.promise();\n\t}\n\n\tsaveAndViewFilter() {\n\t\tthis.saveFilter()\n\t\t\t.done(function (data) {\n\t\t\t\tlet response = data.result;\n\t\t\t\tif (response && response.success) {\n\t\t\t\t\tlet url;\n\t\t\t\t\tif (app.getParentModuleName() == 'Settings') {\n\t\t\t\t\t\turl = 'index.php?module=CustomView&parent=Settings&view=Index&sourceModule=' + $('#sourceModule').val();\n\t\t\t\t\t} else {\n\t\t\t\t\t\turl = response.listviewurl;\n\t\t\t\t\t}\n\t\t\t\t\twindow.location.href = url;\n\t\t\t\t} else {\n\t\t\t\t\t$.unblockUI();\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttitle: app.vtranslate('JS_DUPLICATE_RECORD'),\n\t\t\t\t\t\ttext: response.message,\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t})\n\t\t\t.fail(function (error) {\n\t\t\t\tapp.showNotify({\n\t\t\t\t\ttitle: error,\n\t\t\t\t\ttype: 'error'\n\t\t\t\t});\n\t\t\t});\n\t}\n\n\tregisterIconEvents() {\n\t\tthis.getContentsContainer()\n\t\t\t.find('.js-filter-preferences')\n\t\t\t.on('change', '.js-filter-preference', (e) => {\n\t\t\t\tlet currentTarget = $(e.currentTarget);\n\t\t\t\tlet iconElement = currentTarget.next();\n\t\t\t\tif (currentTarget.prop('checked')) {\n\t\t\t\t\ticonElement.removeClass(iconElement.data('unchecked')).addClass(iconElement.data('check'));\n\t\t\t\t} else {\n\t\t\t\t\ticonElement.removeClass(iconElement.data('check')).addClass(iconElement.data('unchecked'));\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\tregisterColorEvent() {\n\t\tconst container = this.getContentsContainer();\n\t\tlet picker = container.find('.js-color-picker');\n\t\tlet pickerField = picker.find('.js-color-picker__field');\n\t\tlet showPicker = () => {\n\t\t\tApp.Fields.Colors.showPicker({\n\t\t\t\tcolor: pickerField.val(),\n\t\t\t\tbgToUpdate: picker.find('.js-color-picker__color'),\n\t\t\t\tfieldToUpdate: pickerField\n\t\t\t});\n\t\t};\n\t\tpicker.on('click', showPicker);\n\t}\n\n\t/**\n\t * Get list of fields to duplicates\n\t * @returns {Array}\n\t */\n\tgetDuplicateFields() {\n\t\tlet fields = [];\n\t\tconst container = this.getContentsContainer();\n\t\tcontainer.find('.js-duplicates-container .js-duplicates-row').each(function () {\n\t\t\tfields.push({\n\t\t\t\tfieldid: $(this).find('.js-duplicates-field').val(),\n\t\t\t\tignore: $(this).find('.js-duplicates-ignore').is(':checked')\n\t\t\t});\n\t\t});\n\t\treturn fields;\n\t}\n\t/**\n\t * Register events for block \"Find duplicates\"\n\t */\n\tregisterDuplicatesEvents() {\n\t\tconst container = this.getContentsContainer();\n\t\tApp.Fields.Picklist.showSelect2ElementView(container.find('.js-duplicates-container .js-duplicates-field'));\n\t\tcontainer.on('click', '.js-duplicates-remove', function () {\n\t\t\t$(this).closest('.js-duplicates-row').remove();\n\t\t});\n\t\tcontainer.find('.js-duplicate-add-field').on('click', function () {\n\t\t\tlet template = container.find('.js-duplicates-field-template').clone();\n\t\t\ttemplate.removeClass('d-none');\n\t\t\ttemplate.removeClass('js-duplicates-field-template');\n\t\t\tApp.Fields.Picklist.showSelect2ElementView(template.find('.js-duplicates-field'));\n\t\t\tcontainer.find('.js-duplicates-container').append(template);\n\t\t});\n\t}\n\tregisterSubmitEvent(select2Element) {\n\t\t$('#CustomView').on('submit', (e) => {\n\t\t\tconst form = $(e.currentTarget);\n\t\t\tlet selectElement = this.getColumnSelectElement();\n\t\t\tif ($('#viewname').val().length > 100) {\n\t\t\t\tapp.showNotify({\n\t\t\t\t\ttitle: app.vtranslate('JS_MESSAGE'),\n\t\t\t\t\ttext: app.vtranslate('JS_VIEWNAME_ALERT'),\n\t\t\t\t\ttype: 'error'\n\t\t\t\t});\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t//Mandatory Fields selection validation\n\t\t\t//Any one Mandatory Field should select while creating custom view.\n\t\t\tlet mandatoryFieldsList = JSON.parse($('#mandatoryFieldsList').val());\n\t\t\tlet selectedOptions = selectElement.val();\n\t\t\tlet mandatoryFieldsMissing = true;\n\t\t\tif (selectedOptions) {\n\t\t\t\tmandatoryFieldsMissing = selectedOptions.filter((value) => mandatoryFieldsList.includes(value)).length <= 0;\n\t\t\t}\n\t\t\tif (mandatoryFieldsMissing) {\n\t\t\t\tselectElement.validationEngine(\n\t\t\t\t\t'showPrompt',\n\t\t\t\t\tapp.vtranslate('JS_PLEASE_SELECT_ATLEAST_ONE_MANDATORY_FIELD'),\n\t\t\t\t\t'error',\n\t\t\t\t\t'topLeft',\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\te.preventDefault();\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tselect2Element.validationEngine('hide');\n\t\t\t}\n\t\t\t//Mandatory Fields validation ends\n\t\t\tlet result = form.validationEngine('validate');\n\t\t\tif (result) {\n\t\t\t\t//handled standard filters saved values.\n\t\t\t\tlet stdfilterlist = {};\n\n\t\t\t\tif (\n\t\t\t\t\t$('#standardFilterCurrentDate').val() != '' &&\n\t\t\t\t\t$('#standardFilterEndDate').val() != '' &&\n\t\t\t\t\t$('select.standardFilterColumn option:selected').val() != 'none'\n\t\t\t\t) {\n\t\t\t\t\tstdfilterlist['columnname'] = $('select.standardFilterColumn option:selected').val();\n\t\t\t\t\tstdfilterlist['stdfilter'] = $('select#standardDateFilter option:selected').val();\n\t\t\t\t\tstdfilterlist['startdate'] = $('#standardFilterCurrentDate').val();\n\t\t\t\t\tstdfilterlist['enddate'] = $('#standardFilterEndDate').val();\n\t\t\t\t\t$('#stdfilterlist').val(JSON.stringify(stdfilterlist));\n\t\t\t\t}\n\t\t\t\t//handled advanced filters saved values.\n\t\t\t\tlet contentContainer = this.getContentsContainer();\n\t\t\t\t$('#advfilterlist').val(JSON.stringify(this.advanceFilterInstance.getConditions()));\n\t\t\t\tform.find('#advancedConditions').val(JSON.stringify(CustomView.getAdvancedConditions(form)));\n\t\t\t\t$('[name=\"duplicatefields\"]').val(JSON.stringify(this.getDuplicateFields()));\n\t\t\t\t$('input[name=\"columnslist\"]', contentContainer).val(JSON.stringify(this.getSelectedColumns()));\n\t\t\t\tcontentContainer.find('.js-custom-field-names').val(JSON.stringify(this.getCustomLabels()));\n\n\t\t\t\tthis.saveAndViewFilter();\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tapp.formAlignmentAfterValidation($(e.currentTarget));\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Block submit on press enter key\n\t */\n\tregisterDisableSubmitOnEnter() {\n\t\tthis.getContentsContainer()\n\t\t\t.find('#viewname, [name=\"color\"]')\n\t\t\t.on('keydown', (e) => {\n\t\t\t\tif (e.key === 'Enter') {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Function to register the advanced conditions events for customview\n\t * @param {jQuery} listViewContainer\n\t */\n\tstatic registerCustomViewAdvCondEvents(listViewContainer) {\n\t\tlistViewContainer.on('click', '.js-custom-view-adv-cond-modal', () => {\n\t\t\tconst customViewAdvCond = listViewContainer.find('.js-custom-view-adv-cond');\n\t\t\tlet advancedConditions = customViewAdvCond.val();\n\t\t\tif (advancedConditions) {\n\t\t\t\tadvancedConditions = JSON.parse(advancedConditions);\n\t\t\t}\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\tview: 'CustomViewAdvCondModal',\n\t\t\t\tadvancedConditions: advancedConditions\n\t\t\t})\n\t\t\t\t.done((data) => {\n\t\t\t\t\tif (data) {\n\t\t\t\t\t\tapp.showModalWindow(data, (modalContainer) => {\n\t\t\t\t\t\t\tApp.Tools.Form.registerBlockToggle(modalContainer);\n\t\t\t\t\t\t\tthis.registerAdvancedConditionsEvents(modalContainer);\n\t\t\t\t\t\t\tmodalContainer.find('[name=\"saveButton\"]').on('click', () => {\n\t\t\t\t\t\t\t\tcustomViewAdvCond.val(JSON.stringify(this.getAdvancedConditions(modalContainer)));\n\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\tif (typeof app.pageController.getListViewRecords !== 'undefined') {\n\t\t\t\t\t\t\t\t\tapp.pageController.getListViewRecords();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.fail((_textStatus, errorThrown) => {\n\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\ttextTrusted: false,\n\t\t\t\t\t\ttitle: app.vtranslate('JS_ERROR'),\n\t\t\t\t\t\ttext: errorThrown,\n\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t});\n\t}\n\t/**\n\t * Function to register the advanced conditions events for custom view\n\t * @param {jQuery} container\n\t */\n\tstatic registerAdvancedConditionsEvents(container) {\n\t\tconst self = this;\n\t\tconst builder = container.find('.js-adv-condition-builder-view');\n\t\tconst relationSelect = container.find('.js-relation-select');\n\t\tif (relationSelect.val() != 0) {\n\t\t\tthis.advancedConditionsBuilder = new Vtiger_ConditionBuilder_Js(\n\t\t\t\tbuilder.find('.js-condition-builder'),\n\t\t\t\trelationSelect.find('option:selected').data('module')\n\t\t\t);\n\t\t\tthis.advancedConditionsBuilder.registerEvents();\n\t\t}\n\t\trelationSelect.on('change', function () {\n\t\t\tconst moduleName = $(this).find('option:selected').data('module');\n\t\t\tbuilder.html('');\n\t\t\tdelete self.advancedConditionsBuilder;\n\t\t\tif (moduleName) {\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\tparent: app.getParentModuleName(),\n\t\t\t\t\tview: 'ConditionBuilder',\n\t\t\t\t\tmode: 'builder',\n\t\t\t\t\tsourceModuleName: moduleName\n\t\t\t\t}).done((data) => {\n\t\t\t\t\tbuilder.html(data);\n\t\t\t\t\tself.advancedConditionsBuilder = new Vtiger_ConditionBuilder_Js(\n\t\t\t\t\t\tbuilder.find('.js-condition-builder'),\n\t\t\t\t\t\tmoduleName\n\t\t\t\t\t);\n\t\t\t\t\tself.advancedConditionsBuilder.registerEvents();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Function to register the advanced conditions events for custom view\n\t * @param {jQuery} container\n\t * @return {object}\n\t */\n\tstatic getAdvancedConditions(container) {\n\t\tconst advancedConditions = {\n\t\t\trelationId: container.find('.js-relation-select').val()\n\t\t};\n\t\tcontainer.find('.js-relation-checkbox:checked').each(function () {\n\t\t\tif (typeof advancedConditions.relationColumns === 'undefined') {\n\t\t\t\tadvancedConditions.relationColumns = [];\n\t\t\t}\n\t\t\tadvancedConditions.relationColumns.push($(this).val());\n\t\t});\n\t\tif (this.advancedConditionsBuilder) {\n\t\t\tadvancedConditions.relationConditions = this.advancedConditionsBuilder.getConditions();\n\t\t}\n\t\treturn advancedConditions;\n\t}\n\t/**\n\t * Register change selected columns\n\t */\n\tregisterChangeSelectedColumns() {\n\t\tthis.container.find('.js-view-columns-select').on('change', () => {\n\t\t\tthis.registerAppendCustomLabels();\n\t\t});\n\t}\n\t/**\n\t *\tRegister append custom labels\n\t */\n\tregisterAppendCustomLabels() {\n\t\tlet shorterNamesContainer = this.container.find('.js-custom-name-fields');\n\t\tlet selectedColumns = this.container\n\t\t\t.find('.js-view-columns-select option:selected')\n\t\t\t.toArray()\n\t\t\t.map((item) => ({\n\t\t\t\ttext: item.getAttribute('data-field-label'),\n\t\t\t\tvalue: item.value,\n\t\t\t\tcustomLabel: item.getAttribute('data-custom-label') || ''\n\t\t\t}));\n\t\tshorterNamesContainer.empty();\n\t\tlet newCustomLabelElement = '';\n\t\tlet customLabelElement = '';\n\t\tlet customLabelValue = '';\n\t\tlet inputContainerElement = '';\n\t\tlet inputElement = '';\n\t\t$.each(selectedColumns, function (_index, element) {\n\t\t\tnewCustomLabelElement = document.createElement('div');\n\t\t\tnewCustomLabelElement.setAttribute('class', 'd-flex mb-1');\n\n\t\t\tcustomLabelElement = document.createElement('div');\n\t\t\tcustomLabelElement.setAttribute('class', 'col-form-label col-md-2 pl-0');\n\t\t\tcustomLabelValue = document.createTextNode(element.text);\n\t\t\tcustomLabelElement.appendChild(customLabelValue);\n\t\t\tnewCustomLabelElement.appendChild(customLabelElement);\n\n\t\t\tinputContainerElement = document.createElement('div');\n\t\t\tinputContainerElement.setAttribute('class', 'col-md-4');\n\n\t\t\tinputElement = document.createElement('input');\n\t\t\tinputElement.setAttribute('type', 'text');\n\t\t\tinputElement.setAttribute('class', 'form-control js-short-label');\n\t\t\tinputElement.setAttribute('data-field-value', element.value);\n\t\t\tinputElement.setAttribute(\n\t\t\t\t'data-validation-engine',\n\t\t\t\t'validate[maxSize[50], funcCall[Vtiger_Base_Validator_Js.invokeValidation]]'\n\t\t\t);\n\t\t\tinputElement.setAttribute('data-validator', '[{\"name\":\"FieldLabel\"}]');\n\t\t\tinputElement.setAttribute('value', element.customLabel);\n\n\t\t\tinputContainerElement.appendChild(inputElement);\n\t\t\tnewCustomLabelElement.appendChild(inputContainerElement);\n\t\t\tshorterNamesContainer.append(newCustomLabelElement);\n\t\t});\n\t}\n\t/**\n\t * Register events\n\t */\n\tregisterEvents() {\n\t\tthis.container = this.getContentsContainer();\n\t\tthis.registerIconEvents();\n\t\tApp.Fields.Tree.register(this.getContentsContainer());\n\t\tApp.Tools.Form.registerBlockToggle(this.getContentsContainer());\n\t\tthis.registerColorEvent();\n\t\tthis.registerDuplicatesEvents();\n\t\tconst select2Element = App.Fields.Picklist.showSelect2ElementView(this.getColumnSelectElement());\n\t\tthis.registerSubmitEvent(select2Element);\n\t\t$('.stndrdFilterDateSelect').datepicker();\n\t\t$('#standardDateFilter').on('change', () => {\n\t\t\tthis.loadDateFilterValues();\n\t\t});\n\t\t$('#CustomView').validationEngine(app.validationEngineOptions);\n\t\tthis.registerDisableSubmitOnEnter();\n\t\tthis.registerChangeSelectedColumns();\n\t\tthis.registerAppendCustomLabels();\n\t}\n}\n\nVtiger_Base_Validator_Js(\n\t'Vtiger_FieldLabel_Validator_Js',\n\t{\n\t\t/** @inheritdoc */\n\t\tinvokeValidation: function (field, _rules, _i, _options) {\n\t\t\tlet instance = new Vtiger_FieldLabel_Validator_Js();\n\t\t\tinstance.setElement(field);\n\t\t\tlet response = instance.validate();\n\t\t\tif (response !== true) {\n\t\t\t\treturn instance.getError();\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\t/** @inheritdoc */\n\t\tvalidate: function () {\n\t\t\treturn this.validateValue(this.getFieldValue());\n\t\t},\n\t\t/** @inheritdoc */\n\t\tvalidateValue: function (fieldValue) {\n\t\t\tlet specialChars = /[&\\<\\>\\:\\'\\\"\\,]/;\n\t\t\tif (specialChars.test(fieldValue)) {\n\t\t\t\tlet errorInfo = app.vtranslate('JS_SPECIAL_CHARACTERS') + ' & < > \\' \" : , ' + app.vtranslate('JS_NOT_ALLOWED');\n\t\t\t\tthis.setError(errorInfo);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}\n);\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","descriptor","i","length","enumerable","configurable","writable","Object","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","_defineProperty","obj","value","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","call","Number","CustomView","url","_this","progressIndicatorElement","$","progressIndicator","position","blockInfo","enabled","app","showModalWindow","modalContainer","advanceFilterInstance","Vtiger_ConditionBuilder_Js","find","val","registerEvents","registerAdvancedConditionsEvents","columnSelectElement","mode","loadDateFilterValues","selectedDateFilter","currentDate","data","endDate","getContentsContainer","getColumnSelectElement","getSelectedColumns","columnListSelectElement","getCustomLabels","customFieldNames","each","attr","saveFilter","aDeferred","Deferred","formData","serializeFormData","AppConnector","request","done","resolve","fail","error","reject","promise","saveAndViewFilter","response","result","success","getParentModuleName","listviewurl","window","location","href","unblockUI","showNotify","title","vtranslate","text","message","type","registerIconEvents","on","e","currentTarget","iconElement","next","prop","removeClass","addClass","registerColorEvent","container","picker","pickerField","showPicker","App","Fields","Colors","color","bgToUpdate","fieldToUpdate","getDuplicateFields","fields","push","fieldid","ignore","is","registerDuplicatesEvents","Picklist","showSelect2ElementView","closest","remove","template","clone","append","registerSubmitEvent","select2Element","_this2","form","selectElement","preventDefault","mandatoryFieldsList","JSON","parse","selectedOptions","mandatoryFieldsMissing","filter","includes","validationEngine","stdfilterlist","columnname","stdfilter","startdate","enddate","stringify","contentContainer","getConditions","getAdvancedConditions","formAlignmentAfterValidation","registerDisableSubmitOnEnter","registerChangeSelectedColumns","_this3","registerAppendCustomLabels","shorterNamesContainer","selectedColumns","toArray","map","item","getAttribute","customLabel","empty","newCustomLabelElement","customLabelElement","customLabelValue","inputContainerElement","inputElement","_index","element","document","createElement","setAttribute","createTextNode","appendChild","_this4","Tree","register","Tools","Form","registerBlockToggle","datepicker","validationEngineOptions","registerCustomViewAdvCondEvents","listViewContainer","_this5","customViewAdvCond","advancedConditions","module","getModuleName","view","hideModalWindow","pageController","getListViewRecords","_textStatus","errorThrown","textTrusted","self","builder","relationSelect","advancedConditionsBuilder","moduleName","html","parent","sourceModuleName","relationId","relationColumns","relationConditions","Vtiger_Base_Validator_Js","invokeValidation","field","Vtiger_FieldLabel_Validator_Js","setElement","validate","getError","validateValue","getFieldValue","fieldValue","test","errorInfo","setError"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,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,CAAA,CAAA,SAAAA,CAAA,CAAAA,CAAAA,OAAAA,CAAA,EAAAC,UAAAA,EAAAA,OAAAA,MAAA,EAAAD,CAAA,CAAAG,WAAA,GAAAF,MAAA,EAAAD,CAAA,GAAAC,MAAA,CAAAG,SAAA,CAAAJ,QAAAA,CAAAA,OAAAA,CAAA,CAAAD,CAAAA,OAAA,CAAAC,CAAA,CAAA,CAAA,SAAAK,eAAAC,CAAAA,QAAA,CAAAC,WAAA,OAAAD,QAAA,YAAAC,WAAA,CA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,KAAAvI,QAAiB,CACpB,OAAO/E,QAAQ,CAACuN,QAAQ,EAE1B,CACD,CAAC,CACD,mBAECD,QAAQ,CAAE,SAAAA,QAAAA,EAAY,CACrB,OAAW,IAAA,CAACE,aAAa,CAAC,IAAI,CAACC,aAAa,EAAE,CAC/C,CAAC,mBAEDD,aAAa,CAAE,SAAAA,aAAUE,CAAAA,UAAU,CAAE,CAEpC,GADmB,iBAAiB,CACnBC,IAAI,CAACD,UAAU,CAAC,CAAE,CAClC,IAAIE,SAAS,CAAGnL,GAAG,CAACiD,UAAU,CAAC,uBAAuB,CAAC,CAAG,kBAAkB,CAAGjD,GAAG,CAACiD,UAAU,CAAC,gBAAgB,CAAC,CAE/G,OADA,IAAI,CAACmI,QAAQ,CAACD,SAAS,CAAC,CAAA,CAAA,CAEzB,CACA,OAAA,CAAA,CACD,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Documents/resources/Detail.min.js.map b/public_html/layouts/basic/modules/Documents/resources/Detail.min.js.map
index 3f3f55a251b9..2a9453fef00c 100644
--- a/public_html/layouts/basic/modules/Documents/resources/Detail.min.js.map
+++ b/public_html/layouts/basic/modules/Documents/resources/Detail.min.js.map
@@ -1 +1 @@
-{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Documents_Detail_Js',\n\t{\n\t\t//It stores the CheckFileIntegrity response data\n\t\tcheckFileIntegrityResponseCache: {},\n\n\t\t/*\n\t\t * function to trigger CheckFileIntegrity action\n\t\t * @param: CheckFileIntegrity url.\n\t\t */\n\t\tcheckFileIntegrity: function (checkFileIntegrityUrl) {\n\t\t\tDocuments_Detail_Js.getFileIntegrityResponse(checkFileIntegrityUrl).done(function (data) {\n\t\t\t\tDocuments_Detail_Js.displayCheckFileIntegrityResponse(data);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * function to get the CheckFileIntegrity response data\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetFileIntegrityResponse: function (params) {\n\t\t\tvar aDeferred = jQuery.Deferred();\n\n\t\t\t//Check in the cache\n\t\t\tif (!jQuery.isEmptyObject(Documents_Detail_Js.checkFileIntegrityResponseCache)) {\n\t\t\t\taDeferred.resolve(Documents_Detail_Js.checkFileIntegrityResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\t//store it in the cache, so that we dont do multiple request\n\t\t\t\t\tDocuments_Detail_Js.checkFileIntegrityResponseCache = data;\n\t\t\t\t\taDeferred.resolve(Documents_Detail_Js.checkFileIntegrityResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/*\n\t\t * function to display the CheckFileIntegrity message\n\t\t */\n\t\tdisplayCheckFileIntegrityResponse: function (data) {\n\t\t\tvar result = data['result'];\n\t\t\tvar success = result['success'];\n\t\t\tvar message = result['message'];\n\t\t\tvar params = {};\n\t\t\tif (success) {\n\t\t\t\tparams = {\n\t\t\t\t\ttext: message,\n\t\t\t\t\ttype: 'success'\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tparams = {\n\t\t\t\t\ttext: message,\n\t\t\t\t\ttype: 'error'\n\t\t\t\t};\n\t\t\t}\n\t\t\tDocuments_Detail_Js.showNotify(params);\n\t\t\twindow.location.href = result['url'];\n\t\t},\n\n\t\t//This will show the messages of CheckFileIntegrity using pnotify\n\t\tshowNotify: function (customParams) {\n\t\t\tvar params = {\n\t\t\t\ttitle: app.vtranslate('JS_CHECK_FILE_INTEGRITY'),\n\t\t\t\ttext: customParams.text,\n\t\t\t\ttype: customParams.type,\n\t\t\t\tdelay: '2000'\n\t\t\t};\n\t\t\tapp.showNotify(params);\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_Detail_Js","checkFileIntegrityResponseCache","checkFileIntegrity","checkFileIntegrityUrl","Documents_Detail_Js","getFileIntegrityResponse","done","data","displayCheckFileIntegrityResponse","params","aDeferred","jQuery","Deferred","isEmptyObject","AppConnector","request","resolve","promise","success","result","message","text","type","showNotify","window","location","href","customParams","title","app","vtranslate","delay"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAEAA,CAAAA,gBAAgB,CACf,qBADe,CAEf;AAECC,+BAA+B,CAAE,EAFlC;AAKD;AACA;AACA,KACEC,kBAAkB,CAAE,SAAA,kBAAA,CAAUC,qBAAV,CAAiC,CACpDC,mBAAmB,CAACC,wBAApB,CAA6CF,qBAA7C,CAAoEG,CAAAA,IAApE,CAAyE,SAAUC,IAAV,CAAgB,CACxFH,mBAAmB,CAACI,iCAApB,CAAsDD,IAAtD,EACA,CAFD,EAGA,CAZF;AAeD;AACA;AACA,KACEF,wBAAwB,CAAE,SAAUI,wBAAAA,CAAAA,MAAV,CAAkB,CAC3C,IAAIC,SAAS,CAAGC,MAAM,CAACC,QAAP,EAAhB,CAEA;AAUA,OATKD,MAAM,CAACE,aAAP,CAAqBT,mBAAmB,CAACH,+BAAzC,CASL,CANCa,YAAY,CAACC,OAAb,CAAqBN,MAArB,CAAA,CAA6BH,IAA7B,CAAkC,SAAUC,IAAV,CAAgB,CAEjDH,mBAAmB,CAACH,+BAApB,CAAsDM,IAFL,CAGjDG,SAAS,CAACM,OAAV,CAAkBZ,mBAAmB,CAACH,+BAAtC,EACA,CAJD,CAMD,CARCS,SAAS,CAACM,OAAV,CAAkBZ,mBAAmB,CAACH,+BAAtC,CAQD,CAAOS,SAAS,CAACO,OAAV,EACP,CAhCF;AAmCD;AACA,KACET,iCAAiC,CAAE,SAAUD,iCAAAA,CAAAA,IAAV,CAAgB,CAAA,IACxC,MAAA,CAAGA,IAAI,CAAA,MADiC,CAE9CW,OAAO,CAAGC,MAAM,CAAA,OAF8B,CAG9CC,OAAO,CAAGD,MAAM,CAH8B,OAAA,CAI9CV,MAAM,CAAG,EAJqC,CAMjDA,MANiD,CAK9CS,OAL8C,CAMxC,CACRG,IAAI,CAAED,OADE,CAERE,IAAI,CAAE,SAFE,CANwC,CAWxC,CACRD,IAAI,CAAED,OADE,CAERE,IAAI,CAAE,OAFE,CAXwC,CAgBlDlB,mBAAmB,CAACmB,UAApB,CAA+Bd,MAA/B,CAhBkD,CAiBlDe,MAAM,CAACC,QAAP,CAAgBC,IAAhB,CAAuBP,MAAM,CAAA,IAC7B,CAvDF;AA0DCI,UAAU,CAAE,oBAAUI,YAAV,CAAwB,CACnC,IAAIlB,MAAM,CAAG,CACZmB,KAAK,CAAEC,GAAG,CAACC,UAAJ,CAAe,yBAAf,CADK,CAEZT,IAAI,CAAEM,YAAY,CAACN,IAFP,CAGZC,IAAI,CAAEK,YAAY,CAACL,IAHP,CAIZS,KAAK,CAAE,MAJK,CAAb,CAMAF,GAAG,CAACN,UAAJ,CAAed,MAAf,EACA,CAlEF,CAFe,CAsEf,EAtEe;;"}
\ No newline at end of file
+{"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 *************************************************************************************/\n'use strict';\n\nVtiger_Detail_Js(\n\t'Documents_Detail_Js',\n\t{\n\t\t//It stores the CheckFileIntegrity response data\n\t\tcheckFileIntegrityResponseCache: {},\n\n\t\t/*\n\t\t * function to trigger CheckFileIntegrity action\n\t\t * @param: CheckFileIntegrity url.\n\t\t */\n\t\tcheckFileIntegrity: function (checkFileIntegrityUrl) {\n\t\t\tDocuments_Detail_Js.getFileIntegrityResponse(checkFileIntegrityUrl).done(function (data) {\n\t\t\t\tDocuments_Detail_Js.displayCheckFileIntegrityResponse(data);\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * function to get the CheckFileIntegrity response data\n\t\t * @returns {Promise}\n\t\t */\n\t\tgetFileIntegrityResponse: function (params) {\n\t\t\tvar aDeferred = jQuery.Deferred();\n\n\t\t\t//Check in the cache\n\t\t\tif (!jQuery.isEmptyObject(Documents_Detail_Js.checkFileIntegrityResponseCache)) {\n\t\t\t\taDeferred.resolve(Documents_Detail_Js.checkFileIntegrityResponseCache);\n\t\t\t} else {\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\t//store it in the cache, so that we dont do multiple request\n\t\t\t\t\tDocuments_Detail_Js.checkFileIntegrityResponseCache = data;\n\t\t\t\t\taDeferred.resolve(Documents_Detail_Js.checkFileIntegrityResponseCache);\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn aDeferred.promise();\n\t\t},\n\n\t\t/*\n\t\t * function to display the CheckFileIntegrity message\n\t\t */\n\t\tdisplayCheckFileIntegrityResponse: function (data) {\n\t\t\tvar result = data['result'];\n\t\t\tvar success = result['success'];\n\t\t\tvar message = result['message'];\n\t\t\tvar params = {};\n\t\t\tif (success) {\n\t\t\t\tparams = {\n\t\t\t\t\ttext: message,\n\t\t\t\t\ttype: 'success'\n\t\t\t\t};\n\t\t\t} else {\n\t\t\t\tparams = {\n\t\t\t\t\ttext: message,\n\t\t\t\t\ttype: 'error'\n\t\t\t\t};\n\t\t\t}\n\t\t\tDocuments_Detail_Js.showNotify(params);\n\t\t\twindow.location.href = result['url'];\n\t\t},\n\n\t\t//This will show the messages of CheckFileIntegrity using pnotify\n\t\tshowNotify: function (customParams) {\n\t\t\tvar params = {\n\t\t\t\ttitle: app.vtranslate('JS_CHECK_FILE_INTEGRITY'),\n\t\t\t\ttext: customParams.text,\n\t\t\t\ttype: customParams.type,\n\t\t\t\tdelay: '2000'\n\t\t\t};\n\t\t\tapp.showNotify(params);\n\t\t}\n\t},\n\t{}\n);\n"],"names":["Vtiger_Detail_Js","checkFileIntegrityResponseCache","checkFileIntegrity","checkFileIntegrityUrl","Documents_Detail_Js","getFileIntegrityResponse","done","data","displayCheckFileIntegrityResponse","params","aDeferred","jQuery","Deferred","isEmptyObject","AppConnector","request","resolve","promise","result","success","message","text","type","showNotify","window","location","href","url","customParams","title","app","vtranslate","delay"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,gBAAgB,CACf,qBAAqB,CACrB;AAECC,+BAA+B,CAAE,EAAE;AAGrC;AACA;AACA,KACEC,kBAAkB,CAAE,SAAAA,kBAAAA,CAAUC,qBAAqB,CAAE,CACpDC,mBAAmB,CAACC,wBAAwB,CAACF,qBAAqB,CAAC,CAACG,IAAI,CAAC,SAAUC,IAAI,CAAE,CACxFH,mBAAmB,CAACI,iCAAiC,CAACD,IAAI,EAC3D,CAAC,EACF,CAAC;AAGH;AACA;AACA,KACEF,wBAAwB,CAAE,SAAAA,wBAAUI,CAAAA,MAAM,CAAE,CAC3C,IAAIC,SAAS,CAAGC,MAAM,CAACC,QAAQ,EAAE,CAEjC;AAUA,OATKD,MAAM,CAACE,aAAa,CAACT,mBAAmB,CAACH,+BAA+B,CAAC,CAG7Ea,YAAY,CAACC,OAAO,CAACN,MAAM,CAAC,CAACH,IAAI,CAAC,SAAUC,IAAI,CAAE,CAEjDH,mBAAmB,CAACH,+BAA+B,CAAGM,IAAI,CAC1DG,SAAS,CAACM,OAAO,CAACZ,mBAAmB,CAACH,+BAA+B,EACtE,CAAC,CAAC,CANFS,SAAS,CAACM,OAAO,CAACZ,mBAAmB,CAACH,+BAA+B,CAAC,CAQhES,SAAS,CAACO,OAAO,EACzB,CAAC;AAGH;AACA,KACET,iCAAiC,CAAE,SAAAA,iCAAAA,CAAUD,IAAI,CAAE,CAAA,IAC9CW,MAAM,CAAGX,IAAI,CAAAW,MAAU,CACvBC,OAAO,CAAGD,MAAM,CAAAC,OAAW,CAC3BC,OAAO,CAAGF,MAAM,CAAAE,OAAW,CAC3BX,MAAM,CAAG,EAAE,CAEdA,MAAM,CADHU,OAAO,CACD,CACRE,IAAI,CAAED,OAAO,CACbE,IAAI,CAAE,SACP,CAAC,CAEQ,CACRD,IAAI,CAAED,OAAO,CACbE,IAAI,CAAE,OACP,CAAC,CAEFlB,mBAAmB,CAACmB,UAAU,CAACd,MAAM,CAAC,CACtCe,MAAM,CAACC,QAAQ,CAACC,IAAI,CAAGR,MAAM,CAAAS,IAC9B,CAAC;AAGDJ,UAAU,CAAE,SAAAA,UAAUK,CAAAA,YAAY,CAAE,CACnC,IAAInB,MAAM,CAAG,CACZoB,KAAK,CAAEC,GAAG,CAACC,UAAU,CAAC,yBAAyB,CAAC,CAChDV,IAAI,CAAEO,YAAY,CAACP,IAAI,CACvBC,IAAI,CAAEM,YAAY,CAACN,IAAI,CACvBU,KAAK,CAAE,MACR,CAAC,CACDF,GAAG,CAACP,UAAU,CAACd,MAAM,EACtB,CACD,CAAC,CACD,EACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Documents/resources/Edit.min.js b/public_html/layouts/basic/modules/Documents/resources/Edit.min.js
index 49ed18c94f91..c11391c1b3d8 100644
--- a/public_html/layouts/basic/modules/Documents/resources/Edit.min.js
+++ b/public_html/layouts/basic/modules/Documents/resources/Edit.min.js
@@ -14,5 +14,6 @@ if("file"===element.attr("type")){var uploadFileSizeHolder=element.closest(".fil
* Function to save the quickcreate module
* @param accepts form element as parameter
* @returns {Promise}
- */quickCreateSave:function quickCreateSave(form){var aDeferred=jQuery.Deferred(),formData=new FormData(form[0]),fileLocationTypeElement=form.find("[name=\"filelocationtype\"]");return AppConnector.request({url:"index.php",type:"POST",data:formData,processData:!1,contentType:!1}).done(function(data){aDeferred.resolve(data);}).fail(function(textStatus,errorThrown){aDeferred.reject(textStatus,errorThrown);}),aDeferred.promise()},registerBasicEvents:function registerBasicEvents(container){this._super(container),this.registerFileLocationTypeChangeEvent(container),this.registerFileChangeEvent(container);},registerEvents:function registerEvents(){this._super();}});
+ */quickCreateSave:function quickCreateSave(form){var aDeferred=jQuery.Deferred(),formData=new FormData(form[0]),fileLocationTypeElement=form.find("[name=\"filelocationtype\"]");//Using formData object to send data to server as a multipart/form-data form submit
+return AppConnector.request({url:"index.php",type:"POST",data:formData,processData:!1,contentType:!1}).done(function(data){aDeferred.resolve(data);}).fail(function(textStatus,errorThrown){aDeferred.reject(textStatus,errorThrown);}),aDeferred.promise()},registerBasicEvents:function registerBasicEvents(container){this._super(container),this.registerFileLocationTypeChangeEvent(container),this.registerFileChangeEvent(container);},registerEvents:function registerEvents(){this._super();}});
//# sourceMappingURL=Edit.min.js.map
diff --git a/public_html/layouts/basic/modules/Documents/resources/Edit.min.js.map b/public_html/layouts/basic/modules/Documents/resources/Edit.min.js.map
index f8f70494207a..de22ea5fb91b 100644
--- a/public_html/layouts/basic/modules/Documents/resources/Edit.min.js.map
+++ b/public_html/layouts/basic/modules/Documents/resources/Edit.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Edit.min.js","sources":["Edit.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_Edit_Js(\n\t'Documents_Edit_Js',\n\t{},\n\t{\n\t\tINTERNAL_FILE_LOCATION_TYPE: 'I',\n\t\tEXTERNAL_FILE_LOCATION_TYPE: 'E',\n\n\t\tisFileLocationInternalType: function (fileLocationElement) {\n\t\t\tif (fileLocationElement.val() == this.INTERNAL_FILE_LOCATION_TYPE) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\tisFileLocationExternalType: function (fileLocationElement) {\n\t\t\tif (fileLocationElement.val() == this.EXTERNAL_FILE_LOCATION_TYPE) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\tconvertFileSizeInToDisplayFormat: function (fileSizeInBytes) {\n\t\t\tvar i = -1;\n\t\t\tvar byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];\n\t\t\tdo {\n\t\t\t\tfileSizeInBytes = fileSizeInBytes / 1024;\n\t\t\t\ti++;\n\t\t\t} while (fileSizeInBytes > 1024);\n\n\t\t\treturn Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i];\n\t\t},\n\n\t\tregisterFileLocationTypeChangeEvent: function (container) {\n\t\t\tvar thisInstance = this;\n\t\t\tcontainer.on('change', 'select[name=\"filelocationtype\"]', function (e) {\n\t\t\t\tvar fileLocationTypeElement = container.find('[name=\"filelocationtype\"]');\n\t\t\t\tvar fileNameElement = container.find('[name=\"filename\"]');\n\t\t\t\tvar newFileNameElement;\n\t\t\t\tif (thisInstance.isFileLocationInternalType(fileLocationTypeElement)) {\n\t\t\t\t\tnewFileNameElement = jQuery('');\n\t\t\t\t} else {\n\t\t\t\t\tnewFileNameElement = jQuery('');\n\t\t\t\t}\n\t\t\t\tvar oldElementAttributeList = fileNameElement.get(0).attributes;\n\n\t\t\t\tfor (var index = 0; index < oldElementAttributeList.length; index++) {\n\t\t\t\t\tvar attributeObject = oldElementAttributeList[index];\n\t\t\t\t\t//Dont update the type attribute\n\t\t\t\t\tif (attributeObject.name == 'type' || attributeObject.name == 'value' || attributeObject.name == 'class') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tvar value = attributeObject.value;\n\t\t\t\t\tvar className = '';\n\t\t\t\t\tif (attributeObject.name == 'data-fieldinfo') {\n\t\t\t\t\t\tvalue = JSON.parse(value);\n\t\t\t\t\t\tif (thisInstance.isFileLocationExternalType(fileLocationTypeElement)) {\n\t\t\t\t\t\t\tvalue['type'] = 'url';\n\t\t\t\t\t\t\tclassName = 'form-control';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalue['type'] = 'file';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue = JSON.stringify(value);\n\t\t\t\t\t}\n\t\t\t\t\tnewFileNameElement.attr(attributeObject.name, value);\n\t\t\t\t\tnewFileNameElement.addClass(className);\n\t\t\t\t}\n\t\t\t\tfileNameElement.replaceWith(newFileNameElement);\n\t\t\t\tvar fileNameElementTd = newFileNameElement.closest('.fieldValue');\n\t\t\t\tvar uploadFileDetails = fileNameElementTd.find('.uploadedFileDetails');\n\t\t\t\tif (thisInstance.isFileLocationExternalType(fileLocationTypeElement)) {\n\t\t\t\t\tuploadFileDetails.addClass('d-none').removeClass('show');\n\t\t\t\t} else {\n\t\t\t\t\tuploadFileDetails.addClass('show').removeClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterFileChangeEvent: function (container) {\n\t\t\tvar thisInstance = this;\n\n\t\t\tcontainer.on('change', 'input[name=\"filename\"]', function (e) {\n\t\t\t\tif (e.target.type === 'text') {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tlet element = container.find('[name=\"filename\"]');\n\t\t\t\t//ignore all other types than file\n\t\t\t\tif (element.attr('type') !== 'file') {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet uploadFileSizeHolder = element.closest('.fileUploadContainer').find('.uploadedFileSize');\n\t\t\t\tlet fileSize = element.get(0).files[0].size;\n\t\t\t\tif (fileSize > CONFIG['maxUploadLimit']) {\n\t\t\t\t\tapp.showAlert(app.vtranslate('JS_UPLOADED_FILE_SIZE_EXCEEDS'));\n\t\t\t\t\telement.val('');\n\t\t\t\t\tuploadFileSizeHolder.text('');\n\t\t\t\t} else {\n\t\t\t\t\tuploadFileSizeHolder.text(thisInstance.convertFileSizeInToDisplayFormat(fileSize));\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Function to save the quickcreate module\n\t\t * @param accepts form element as parameter\n\t\t * @returns {Promise}\n\t\t */\n\t\tquickCreateSave: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\t//Using formData object to send data to server as a multipart/form-data form submit\n\t\t\tvar formData = new FormData(form[0]);\n\t\t\tvar fileLocationTypeElement = form.find('[name=\"filelocationtype\"]');\n\t\t\tvar params = {\n\t\t\t\turl: 'index.php',\n\t\t\t\ttype: 'POST',\n\t\t\t\tdata: formData,\n\t\t\t\tprocessData: false,\n\t\t\t\tcontentType: false\n\t\t\t};\n\t\t\tAppConnector.request(params)\n\t\t\t\t.done(function (data) {\n\t\t\t\t\taDeferred.resolve(data);\n\t\t\t\t})\n\t\t\t\t.fail(function (textStatus, errorThrown) {\n\t\t\t\t\taDeferred.reject(textStatus, errorThrown);\n\t\t\t\t});\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerFileLocationTypeChangeEvent(container);\n\t\t\tthis.registerFileChangeEvent(container);\n\t\t},\n\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","INTERNAL_FILE_LOCATION_TYPE","EXTERNAL_FILE_LOCATION_TYPE","isFileLocationInternalType","fileLocationElement","val","isFileLocationExternalType","convertFileSizeInToDisplayFormat","fileSizeInBytes","i","max","toFixed","registerFileLocationTypeChangeEvent","container","thisInstance","on","fileLocationTypeElement","find","fileNameElement","newFileNameElement","jQuery","attributeObject","oldElementAttributeList","get","attributes","index","length","name","value","className","JSON","parse","stringify","attr","addClass","replaceWith","closest","uploadFileDetails","fileNameElementTd","removeClass","registerFileChangeEvent","e","target","type","element","uploadFileSizeHolder","fileSize","files","size","CONFIG","app","showAlert","vtranslate","text","quickCreateSave","form","Deferred","formData","AppConnector","request","url","data","processData","contentType","done","aDeferred","resolve","fail","textStatus","errorThrown","reject","promise","registerBasicEvents","_super","registerEvents"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAA,CAEAA,cAAc,CACb,mBADa,CAEb,EAFa,CAGb,CACCC,2BAA2B,CAAE,GAD9B,CAECC,2BAA2B,CAAE,GAF9B,CAICC,0BAA0B,CAAE,SAAA,0BAAA,CAAUC,mBAAV,CAA+B,CAAA,OAAA,EACtDA,mBAAmB,CAACC,GAApB,IAA6B,IAAKJ,CAAAA,2BADoB,CAK1D,CATF,CAWCK,0BAA0B,CAAE,SAAA,0BAAA,CAAUF,mBAAV,CAA+B,CAAA,OAAA,EACtDA,mBAAmB,CAACC,GAApB,IAA6B,IAAKH,CAAAA,2BADoB,CAK1D,CAhBF,CAkBCK,gCAAgC,CAAE,SAAA,gCAAA,CAAUC,eAAV,CAA2B,CAAA,KACvD,CAAG,CAAC,CADmD,CAG5D,kBAAA,EACqC,IADrC,CAECC,CAAC,EAFF,OAG2B,IAAlB,CAAAD,eAHT,EAKA,WAAW,CAACE,GAAL,CAASF,eAAT,CAA0B,EAA1B,CAA+BG,CAAAA,OAA/B,CAAuC,CAAvC,CAAA,CANS,CAAC,KAAD,CAAQ,KAAR,CAAe,KAAf,CAAsB,KAAtB,CAA6B,IAA7B,CAAmC,IAAnC,CAAyC,IAAzC,CAA+C,IAA/C,CAMmC,CAAUF,CAAV,CACnD,CA3BF,CA6BCG,mCAAmC,CAAE,6CAAUC,SAAV,CAAqB,CACzD,IAAIC,YAAY,CAAG,IAAnB,CACAD,SAAS,CAACE,EAAV,CAAa,QAAb,CAAuB,mCAAvB,CAA0D,UAAa,KAAA,kBAAA,CAClEC,uBAAuB,CAAGH,SAAS,CAACI,IAAV,CAAe,6BAAf,CADwC,CAElEC,eAAe,CAAGL,SAAS,CAACI,IAAV,CAAe,qBAAf,CAFgD,CAKrEE,kBALqE,CAIlEL,YAAY,CAACX,0BAAb,CAAwCa,uBAAxC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QAAQ,CAAG,IAAA,QAAA,CAAaF,IAAI,CAAC,CAAD,CAAjB,CAJiB,CAK5BvC,uBAAuB,CAAGuC,IAAI,CAACtC,IAAL,CAAU,6BAAV,CALE,CAoBhC,OAPAyC,YAAY,CAACC,OAAb,CAPa,CACZC,GAAG,CAAE,WADO,CAEZjB,IAAI,CAAE,MAFM,CAGZkB,IAAI,CAAEJ,QAHM,CAIZK,WAAW,CAJC,CAAA,CAAA,CAKZC,WAAW,CAAA,CAAA,CALC,CAOb,CAAA,CACEC,IADF,CACO,SAAUH,IAAV,CAAgB,CACrBI,SAAS,CAACC,OAAV,CAAkBL,IAAlB,EACA,CAHF,CAIEM,CAAAA,IAJF,CAIO,SAAUC,UAAV,CAAsBC,WAAtB,CAAmC,CACxCJ,SAAS,CAACK,MAAV,CAAiBF,UAAjB,CAA6BC,WAA7B,EACA,CANF,CAOA,CAAOJ,SAAS,CAACM,OAAV,EACP,CA5HF,CA6HCC,mBAAmB,CAAE,SAAU3D,mBAAAA,CAAAA,SAAV,CAAqB,CACzC,IAAK4D,CAAAA,MAAL,CAAY5D,SAAZ,CADyC,CAEzC,IAAKD,CAAAA,mCAAL,CAAyCC,SAAzC,CAFyC,CAGzC,IAAA,CAAK2B,uBAAL,CAA6B3B,SAA7B,EACA,CAjIF,CAmIC6D,cAAc,CAAE,SAAY,cAAA,EAAA,CAC3B,IAAKD,CAAAA,MAAL,GACA,CArIF,CAHa;;"}
\ No newline at end of file
+{"version":3,"file":"Edit.min.js","sources":["Edit.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_Edit_Js(\n\t'Documents_Edit_Js',\n\t{},\n\t{\n\t\tINTERNAL_FILE_LOCATION_TYPE: 'I',\n\t\tEXTERNAL_FILE_LOCATION_TYPE: 'E',\n\n\t\tisFileLocationInternalType: function (fileLocationElement) {\n\t\t\tif (fileLocationElement.val() == this.INTERNAL_FILE_LOCATION_TYPE) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\tisFileLocationExternalType: function (fileLocationElement) {\n\t\t\tif (fileLocationElement.val() == this.EXTERNAL_FILE_LOCATION_TYPE) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\n\t\tconvertFileSizeInToDisplayFormat: function (fileSizeInBytes) {\n\t\t\tvar i = -1;\n\t\t\tvar byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];\n\t\t\tdo {\n\t\t\t\tfileSizeInBytes = fileSizeInBytes / 1024;\n\t\t\t\ti++;\n\t\t\t} while (fileSizeInBytes > 1024);\n\n\t\t\treturn Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i];\n\t\t},\n\n\t\tregisterFileLocationTypeChangeEvent: function (container) {\n\t\t\tvar thisInstance = this;\n\t\t\tcontainer.on('change', 'select[name=\"filelocationtype\"]', function (e) {\n\t\t\t\tvar fileLocationTypeElement = container.find('[name=\"filelocationtype\"]');\n\t\t\t\tvar fileNameElement = container.find('[name=\"filename\"]');\n\t\t\t\tvar newFileNameElement;\n\t\t\t\tif (thisInstance.isFileLocationInternalType(fileLocationTypeElement)) {\n\t\t\t\t\tnewFileNameElement = jQuery('');\n\t\t\t\t} else {\n\t\t\t\t\tnewFileNameElement = jQuery('');\n\t\t\t\t}\n\t\t\t\tvar oldElementAttributeList = fileNameElement.get(0).attributes;\n\n\t\t\t\tfor (var index = 0; index < oldElementAttributeList.length; index++) {\n\t\t\t\t\tvar attributeObject = oldElementAttributeList[index];\n\t\t\t\t\t//Dont update the type attribute\n\t\t\t\t\tif (attributeObject.name == 'type' || attributeObject.name == 'value' || attributeObject.name == 'class') {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tvar value = attributeObject.value;\n\t\t\t\t\tvar className = '';\n\t\t\t\t\tif (attributeObject.name == 'data-fieldinfo') {\n\t\t\t\t\t\tvalue = JSON.parse(value);\n\t\t\t\t\t\tif (thisInstance.isFileLocationExternalType(fileLocationTypeElement)) {\n\t\t\t\t\t\t\tvalue['type'] = 'url';\n\t\t\t\t\t\t\tclassName = 'form-control';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalue['type'] = 'file';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue = JSON.stringify(value);\n\t\t\t\t\t}\n\t\t\t\t\tnewFileNameElement.attr(attributeObject.name, value);\n\t\t\t\t\tnewFileNameElement.addClass(className);\n\t\t\t\t}\n\t\t\t\tfileNameElement.replaceWith(newFileNameElement);\n\t\t\t\tvar fileNameElementTd = newFileNameElement.closest('.fieldValue');\n\t\t\t\tvar uploadFileDetails = fileNameElementTd.find('.uploadedFileDetails');\n\t\t\t\tif (thisInstance.isFileLocationExternalType(fileLocationTypeElement)) {\n\t\t\t\t\tuploadFileDetails.addClass('d-none').removeClass('show');\n\t\t\t\t} else {\n\t\t\t\t\tuploadFileDetails.addClass('show').removeClass('d-none');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tregisterFileChangeEvent: function (container) {\n\t\t\tvar thisInstance = this;\n\n\t\t\tcontainer.on('change', 'input[name=\"filename\"]', function (e) {\n\t\t\t\tif (e.target.type === 'text') {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tlet element = container.find('[name=\"filename\"]');\n\t\t\t\t//ignore all other types than file\n\t\t\t\tif (element.attr('type') !== 'file') {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet uploadFileSizeHolder = element.closest('.fileUploadContainer').find('.uploadedFileSize');\n\t\t\t\tlet fileSize = element.get(0).files[0].size;\n\t\t\t\tif (fileSize > CONFIG['maxUploadLimit']) {\n\t\t\t\t\tapp.showAlert(app.vtranslate('JS_UPLOADED_FILE_SIZE_EXCEEDS'));\n\t\t\t\t\telement.val('');\n\t\t\t\t\tuploadFileSizeHolder.text('');\n\t\t\t\t} else {\n\t\t\t\t\tuploadFileSizeHolder.text(thisInstance.convertFileSizeInToDisplayFormat(fileSize));\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Function to save the quickcreate module\n\t\t * @param accepts form element as parameter\n\t\t * @returns {Promise}\n\t\t */\n\t\tquickCreateSave: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\t//Using formData object to send data to server as a multipart/form-data form submit\n\t\t\tvar formData = new FormData(form[0]);\n\t\t\tvar fileLocationTypeElement = form.find('[name=\"filelocationtype\"]');\n\t\t\tvar params = {\n\t\t\t\turl: 'index.php',\n\t\t\t\ttype: 'POST',\n\t\t\t\tdata: formData,\n\t\t\t\tprocessData: false,\n\t\t\t\tcontentType: false\n\t\t\t};\n\t\t\tAppConnector.request(params)\n\t\t\t\t.done(function (data) {\n\t\t\t\t\taDeferred.resolve(data);\n\t\t\t\t})\n\t\t\t\t.fail(function (textStatus, errorThrown) {\n\t\t\t\t\taDeferred.reject(textStatus, errorThrown);\n\t\t\t\t});\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerFileLocationTypeChangeEvent(container);\n\t\t\tthis.registerFileChangeEvent(container);\n\t\t},\n\n\t\tregisterEvents: function () {\n\t\t\tthis._super();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","INTERNAL_FILE_LOCATION_TYPE","EXTERNAL_FILE_LOCATION_TYPE","isFileLocationInternalType","fileLocationElement","val","isFileLocationExternalType","convertFileSizeInToDisplayFormat","fileSizeInBytes","i","Math","max","toFixed","registerFileLocationTypeChangeEvent","container","thisInstance","on","newFileNameElement","fileLocationTypeElement","find","fileNameElement","jQuery","attributeObject","oldElementAttributeList","get","attributes","index","length","name","value","className","JSON","parse","type","stringify","attr","addClass","replaceWith","fileNameElementTd","closest","uploadFileDetails","removeClass","registerFileChangeEvent","e","target","element","uploadFileSizeHolder","fileSize","files","size","CONFIG","maxUploadLimit","app","showAlert","vtranslate","text","quickCreateSave","form","aDeferred","Deferred","formData","FormData","AppConnector","request","url","data","processData","contentType","done","resolve","fail","textStatus","errorThrown","reject","promise","registerBasicEvents","_super","registerEvents"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,mBAAmB,CACnB,EAAE,CACF,CACCC,2BAA2B,CAAE,GAAG,CAChCC,2BAA2B,CAAE,GAAG,CAEhCC,0BAA0B,CAAE,SAAAA,0BAAAA,CAAUC,mBAAmB,CAAE,UACtDA,mBAAmB,CAACC,GAAG,EAAE,EAAI,IAAI,CAACJ,2BAA2B,CAIlE,CAAC,CAEDK,0BAA0B,CAAE,SAAAA,0BAAUF,CAAAA,mBAAmB,CAAE,CAAA,OAAA,EACtDA,mBAAmB,CAACC,GAAG,EAAE,EAAI,IAAI,CAACH,2BAA2B,CAIlE,CAAC,CAEDK,gCAAgC,CAAE,SAAAA,gCAAAA,CAAUC,eAAe,CAAE,CACxD,IAAAC,CAAC,CAAG,CAAC,CAAC,CAEV,GACCD,eAAe,EAAqB,IAAI,CACxCC,CAAC,EAAE,CAAA,MACuB,IAAI,CAAtBD,eAAsB,EAE/B,OAAOE,IAAI,CAACC,GAAG,CAACH,eAAe,CAAE,EAAG,CAAC,CAACI,OAAO,CAAC,CAAC,CAAC,CANhC,CAAC,KAAK,CAAE,KAAK,CAAE,KAAK,CAAE,KAAK,CAAE,IAAI,CAAE,IAAI,CAAE,IAAI,CAAE,IAAI,CAAC,CAMPH,CAAC,CAC/D,CAAC,CAEDI,mCAAmC,CAAE,SAAAA,mCAAAA,CAAUC,SAAS,CAAE,CACzD,IAAIC,YAAY,CA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AAI,CAACxC,YAAY,CAACR,gCAAgC,CAACwC,QAAQ,CAAC,EAAC,CAEpF,CAAC,EACF,CAAC;AAGH;AACA;AACA;AACA,KACES,eAAe,CAAE,SAAAA,eAAUC,CAAAA,IAAI,CAAE,CAE5B,IAAAC,SAAS,CAAGrC,MAAM,CAACsC,QAAQ,EAAE,CAE7BC,QAAQ,CAAG,IAAIC,QAAQ,CAACJ,IAAI,CAAC,CAAC,CAAC,CAAC,CAChCvC,uBAAuB,CAAGuC,IAAI,CAACtC,IAAI,CAAC,6BAA2B,CAAC,CAFpE;AAiBA,OAPA2C,YAAY,CAACC,OAAO,CAPP,CACZC,GAAG,CAAE,WAAW,CAChB/B,IAAI,CAAE,MAAM,CACZgC,IAAI,CAAEL,QAAQ,CACdM,WAAW,GAAO,CAClBC,WAAW,CACZ,CAAA,CAAA,CAC2B,CAAC,CAC1BC,IAAI,CAAC,SAAUH,IAAI,CAAE,CACrBP,SAAS,CAACW,OAAO,CAACJ,IAAI,EACvB,CAAC,CAAC,CACDK,IAAI,CAAC,SAAUC,UAAU,CAAEC,WAAW,CAAE,CACxCd,SAAS,CAACe,MAAM,CAACF,UAAU,CAAEC,WAAW,EACzC,CAAC,CAAC,CACId,SAAS,CAACgB,OAAO,EACzB,CAAC,CACDC,mBAAmB,CAAE,SAAAA,mBAAAA,CAAU7D,SAAS,CAAE,CACzC,IAAI,CAAC8D,MAAM,CAAC9D,SAAS,CAAC,CACtB,IAAI,CAACD,mCAAmC,CAACC,SAAS,CAAC,CACnD,IAAI,CAAC4B,uBAAuB,CAAC5B,SAAS,EACvC,CAAC,CAED+D,cAAc,CAAE,SAAAA,cAAA,EAAY,CAC3B,IAAI,CAACD,MAAM,GACZ,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Documents/resources/List.min.js.map b/public_html/layouts/basic/modules/Documents/resources/List.min.js.map
index 3cb3772b69a5..1bfa7e89d9a8 100644
--- a/public_html/layouts/basic/modules/Documents/resources/List.min.js.map
+++ b/public_html/layouts/basic/modules/Documents/resources/List.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"List.min.js","sources":["List.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 *************************************************************************************/\n'use strict';\n\nVtiger_List_Js(\n\t'Documents_List_Js',\n\t{\n\t\tmassMove: function (url) {\n\t\t\tvar listInstance = Vtiger_List_Js.getInstance();\n\t\t\tvar validationResult = listInstance.checkListRecordSelected();\n\t\t\tif (validationResult != true) {\n\t\t\t\tvar selectedIds = listInstance.readSelectedIds(true);\n\t\t\t\tvar excludedIds = listInstance.readExcludedIds(true);\n\t\t\t\tvar cvId = listInstance.getCurrentCvId();\n\t\t\t\tvar postData = {\n\t\t\t\t\tselected_ids: selectedIds,\n\t\t\t\t\texcluded_ids: excludedIds,\n\t\t\t\t\tviewname: cvId\n\t\t\t\t};\n\n\t\t\t\tvar searchValue = listInstance.getAlphabetSearchValue();\n\n\t\t\t\tif (searchValue.length > 0) {\n\t\t\t\t\tpostData['search_key'] = listInstance.getAlphabetSearchField();\n\t\t\t\t\tpostData['search_value'] = searchValue;\n\t\t\t\t\tpostData['operator'] = 's';\n\t\t\t\t}\n\n\t\t\t\tvar params = {\n\t\t\t\t\turl: url,\n\t\t\t\t\tdata: postData\n\t\t\t\t};\n\t\t\t\tvar progressIndicatorElement = jQuery.progressIndicator();\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\tvar callBackFunction = function (data) {\n\t\t\t\t\t\tlistInstance.moveDocuments().done(function (data) {\n\t\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t\tvar result = data.result;\n\t\t\t\t\t\t\t\tif (result.success) {\n\t\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttitle: app.vtranslate('JS_MOVE_DOCUMENTS'),\n\t\t\t\t\t\t\t\t\t\ttext: result.message,\n\t\t\t\t\t\t\t\t\t\tdelay: '2000',\n\t\t\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tvar urlParams = listInstance.getDefaultParams();\n\t\t\t\t\t\t\t\t\tlistInstance.getListViewRecords(urlParams);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttitle: app.vtranslate('JS_OPERATION_DENIED'),\n\t\t\t\t\t\t\t\t\t\ttext: result.message,\n\t\t\t\t\t\t\t\t\t\tdelay: '2000',\n\t\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tapp.showModalWindow(data, callBackFunction);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tlistInstance.noRecordSelectedAlert();\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tmoveDocuments: function () {\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\tjQuery('#moveDocuments').on('submit', function (e) {\n\t\t\t\tvar formData = jQuery(e.currentTarget).serializeFormData();\n\t\t\t\tAppConnector.request(formData)\n\t\t\t\t\t.done(function (data) {\n\t\t\t\t\t\taDeferred.resolve(data);\n\t\t\t\t\t})\n\t\t\t\t\t.fail(function (textStatus, errorThrown) {\n\t\t\t\t\t\taDeferred.reject(textStatus, errorThrown);\n\t\t\t\t\t});\n\t\t\t\te.preventDefault();\n\t\t\t});\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\tregisterDeleteFilterClickEvent: function () {\n\t\t\tconst self = this;\n\t\t\tlet listViewFilterBlock = this.getFilterBlock();\n\t\t\tif (listViewFilterBlock != false) {\n\t\t\t\t//used mouseup event to stop the propagation of customfilter select change event.\n\t\t\t\tlistViewFilterBlock.on('mouseup', '.js-filter-delete', function (event) {\n\t\t\t\t\t//to close the dropdown\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tself.getFilterSelectElement().data('select2').close();\n\t\t\t\t\tlet liElement = jQuery(event.currentTarget).closest('.select2-results__option');\n\t\t\t\t\tlet message = app.vtranslate('JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE');\n\t\t\t\t\tif (liElement.hasClass('folderOption')) {\n\t\t\t\t\t\tif (liElement.find('.js-filter-delete').hasClass('dull')) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_FOLDER_IS_NOT_EMPTY'),\n\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\t\t\ttext: message,\n\t\t\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\t\t\tlet currentOptionElement = self.getSelectOptionFromChosenOption(liElement);\n\t\t\t\t\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\t\t\t\t\t\tmode: 'delete',\n\t\t\t\t\t\t\t\t\t\taction: 'Folder',\n\t\t\t\t\t\t\t\t\t\tfolderid: currentOptionElement.data('folderid')\n\t\t\t\t\t\t\t\t\t}).done(function (data) {\n\t\t\t\t\t\t\t\t\t\tif (data.success) {\n\t\t\t\t\t\t\t\t\t\t\tcurrentOptionElement.remove();\n\t\t\t\t\t\t\t\t\t\t\tself.getFilterSelectElement().trigger('change');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\t\ttext: message,\n\t\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\t\tAppConnector.requestForm(self.getSelectOptionFromChosenOption(liElement).data('deleteurl'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n);\n"],"names":["Vtiger_List_Js","massMove","url","listInstance","getInstance","validationResult","checkListRecordSelected","selectedIds","readSelectedIds","excludedIds","readExcludedIds","cvId","getCurrentCvId","postData","selected_ids","excluded_ids","viewname","searchValue","getAlphabetSearchValue","length","getAlphabetSearchField","jQuery","progressIndicator","AppConnector","request","data","done","progressIndicatorElement","mode","app","showModalWindow","moveDocuments","result","success","hideModalWindow","showNotify","title","vtranslate","text","message","delay","type","getDefaultParams","getListViewRecords","urlParams","noRecordSelectedAlert","Deferred","on","e","formData","currentTarget","serializeFormData","aDeferred","resolve","fail","textStatus","errorThrown","reject","preventDefault","promise","registerDeleteFilterClickEvent","listViewFilterBlock","getFilterBlock","event","stopPropagation","self","getFilterSelectElement","close","liElement","closest","hasClass","find","showConfirmModal","confirmedCallback","currentOptionElement","getSelectOptionFromChosenOption","module","getModuleName","action","folderid","remove","trigger","requestForm"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAEAA,CAAAA,cAAc,CACb,mBADa,CAEb,CACCC,QAAQ,CAAE,SAAA,QAAA,CAAUC,GAAV,CAAe,CACpBC,IAAAA,YAAY,CAAGH,cAAc,CAACI,WAAf,EADK,CAEpBC,gBAAgB,CAAGF,YAAY,CAACG,uBAAb,EAFC,CAGxB,GAAI,IAAAD,gBAAJ,CAA8B,CACzBE,IAAAA,WAAW,CAAGJ,YAAY,CAACK,eAAb,CAAA,CAAA,CAAA,CADW,CAEzBC,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lC,IAAI,CAAEC,OADc,CAEpBkC,iBAAiB,CAAE,SAAM,iBAAA,EAAA,CACxBlD,YAAY,CAAC2D,WAAb,CAAyBjB,IAAI,CAACU,+BAAL,CAAqCP,SAArC,CAAgD3C,CAAAA,IAAhD,CAAqD,WAArD,CAAzB,EACA,CAJmB,CAArB,EAOD,CAxCD,EA0CD,CA/DF,CA/Da;;"}
\ No newline at end of file
+{"version":3,"file":"List.min.js","sources":["List.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 *************************************************************************************/\n'use strict';\n\nVtiger_List_Js(\n\t'Documents_List_Js',\n\t{\n\t\tmassMove: function (url) {\n\t\t\tvar listInstance = Vtiger_List_Js.getInstance();\n\t\t\tvar validationResult = listInstance.checkListRecordSelected();\n\t\t\tif (validationResult != true) {\n\t\t\t\tvar selectedIds = listInstance.readSelectedIds(true);\n\t\t\t\tvar excludedIds = listInstance.readExcludedIds(true);\n\t\t\t\tvar cvId = listInstance.getCurrentCvId();\n\t\t\t\tvar postData = {\n\t\t\t\t\tselected_ids: selectedIds,\n\t\t\t\t\texcluded_ids: excludedIds,\n\t\t\t\t\tviewname: cvId\n\t\t\t\t};\n\n\t\t\t\tvar searchValue = listInstance.getAlphabetSearchValue();\n\n\t\t\t\tif (searchValue.length > 0) {\n\t\t\t\t\tpostData['search_key'] = listInstance.getAlphabetSearchField();\n\t\t\t\t\tpostData['search_value'] = searchValue;\n\t\t\t\t\tpostData['operator'] = 's';\n\t\t\t\t}\n\n\t\t\t\tvar params = {\n\t\t\t\t\turl: url,\n\t\t\t\t\tdata: postData\n\t\t\t\t};\n\t\t\t\tvar progressIndicatorElement = jQuery.progressIndicator();\n\t\t\t\tAppConnector.request(params).done(function (data) {\n\t\t\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\t\t\tvar callBackFunction = function (data) {\n\t\t\t\t\t\tlistInstance.moveDocuments().done(function (data) {\n\t\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t\tvar result = data.result;\n\t\t\t\t\t\t\t\tif (result.success) {\n\t\t\t\t\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttitle: app.vtranslate('JS_MOVE_DOCUMENTS'),\n\t\t\t\t\t\t\t\t\t\ttext: result.message,\n\t\t\t\t\t\t\t\t\t\tdelay: '2000',\n\t\t\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tvar urlParams = listInstance.getDefaultParams();\n\t\t\t\t\t\t\t\t\tlistInstance.getListViewRecords(urlParams);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\t\t\ttitle: app.vtranslate('JS_OPERATION_DENIED'),\n\t\t\t\t\t\t\t\t\t\ttext: result.message,\n\t\t\t\t\t\t\t\t\t\tdelay: '2000',\n\t\t\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t};\n\t\t\t\t\tapp.showModalWindow(data, callBackFunction);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tlistInstance.noRecordSelectedAlert();\n\t\t\t}\n\t\t}\n\t},\n\t{\n\t\tmoveDocuments: function () {\n\t\t\tvar aDeferred = jQuery.Deferred();\n\t\t\tjQuery('#moveDocuments').on('submit', function (e) {\n\t\t\t\tvar formData = jQuery(e.currentTarget).serializeFormData();\n\t\t\t\tAppConnector.request(formData)\n\t\t\t\t\t.done(function (data) {\n\t\t\t\t\t\taDeferred.resolve(data);\n\t\t\t\t\t})\n\t\t\t\t\t.fail(function (textStatus, errorThrown) {\n\t\t\t\t\t\taDeferred.reject(textStatus, errorThrown);\n\t\t\t\t\t});\n\t\t\t\te.preventDefault();\n\t\t\t});\n\t\t\treturn aDeferred.promise();\n\t\t},\n\t\tregisterDeleteFilterClickEvent: function () {\n\t\t\tconst self = this;\n\t\t\tlet listViewFilterBlock = this.getFilterBlock();\n\t\t\tif (listViewFilterBlock != false) {\n\t\t\t\t//used mouseup event to stop the propagation of customfilter select change event.\n\t\t\t\tlistViewFilterBlock.on('mouseup', '.js-filter-delete', function (event) {\n\t\t\t\t\t//to close the dropdown\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\tself.getFilterSelectElement().data('select2').close();\n\t\t\t\t\tlet liElement = jQuery(event.currentTarget).closest('.select2-results__option');\n\t\t\t\t\tlet message = app.vtranslate('JS_LBL_ARE_YOU_SURE_YOU_WANT_TO_DELETE');\n\t\t\t\t\tif (liElement.hasClass('folderOption')) {\n\t\t\t\t\t\tif (liElement.find('.js-filter-delete').hasClass('dull')) {\n\t\t\t\t\t\t\tapp.showNotify({\n\t\t\t\t\t\t\t\ttext: app.vtranslate('JS_FOLDER_IS_NOT_EMPTY'),\n\t\t\t\t\t\t\t\ttype: 'error'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\t\t\ttext: message,\n\t\t\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\t\t\tlet currentOptionElement = self.getSelectOptionFromChosenOption(liElement);\n\t\t\t\t\t\t\t\t\tAppConnector.request({\n\t\t\t\t\t\t\t\t\t\tmodule: app.getModuleName(),\n\t\t\t\t\t\t\t\t\t\tmode: 'delete',\n\t\t\t\t\t\t\t\t\t\taction: 'Folder',\n\t\t\t\t\t\t\t\t\t\tfolderid: currentOptionElement.data('folderid')\n\t\t\t\t\t\t\t\t\t}).done(function (data) {\n\t\t\t\t\t\t\t\t\t\tif (data.success) {\n\t\t\t\t\t\t\t\t\t\t\tcurrentOptionElement.remove();\n\t\t\t\t\t\t\t\t\t\t\tself.getFilterSelectElement().trigger('change');\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapp.showConfirmModal({\n\t\t\t\t\t\t\ttext: message,\n\t\t\t\t\t\t\tconfirmedCallback: () => {\n\t\t\t\t\t\t\t\tAppConnector.requestForm(self.getSelectOptionFromChosenOption(liElement).data('deleteurl'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n);\n"],"names":["Vtiger_List_Js","massMove","url","listInstance","getInstance","validationResult","checkListRecordSelected","selectedIds","readSelectedIds","excludedIds","readExcludedIds","cvId","getCurrentCvId","postData","selected_ids","excluded_ids","viewname","searchValue","getAlphabetSearchValue","length","search_key","getAlphabetSearchField","search_value","operator","progressIndicatorElement","jQuery","progressIndicator","AppConnector","request","data","done","mode","app","showModalWindow","callBackFunction","moveDocuments","result","success","hideModalWindow","showNotify","title","vtranslate","text","message","delay","type","urlParams","getDefaultParams","getListViewRecords","noRecordSelectedAlert","aDeferred","Deferred","on","e","formData","currentTarget","serializeFormData","resolve","fail","textStatus","errorThrown","reject","preventDefault","promise","registerDeleteFilterClickEvent","self","listViewFilterBlock","getFilterBlock","event","stopPropagation","getFilterSelectElement","close","liElement","closest","hasClass","find","showConfirmModal","confirmedCallback","currentOptionElement","getSelectOptionFromChosenOption","module","getModuleName","action","folderid","remove","trigger","requestForm"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uFACA,YAAY,CAEZA,cAAc,CACb,mBAAmB,CACnB,CACCC,QAAQ,CAAE,SAAAA,SAAUC,GAAG,CAAE,CACpB,IAAA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,CAACK,sBAAsB,EAAE,CAACe,OAAO,CAAC,QAAQ,CAAC,EAEjD,CAAC,EACF,CACD,CAAC,EAEH,CAAC,KACArD,GAAG,CAAC4C,gBAAgB,CAAC,CACpBlC,IAAI,CAAEC,OAAO,CACbkC,iBAAiB,CAAE,SAAAA,iBAAAA,EAAM,CACxBlD,YAAY,CAAC2D,WAAW,CAACrB,IAAI,CAACc,+BAA+B,CAACP,SAAS,CAAC,CAAC3C,IAAI,CAAC,WAAW,CAAC,EAC3F,CACD,CAAC,EAEH,CAAC,EAEH,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/Documents/resources/MassAddDocuments.min.js b/public_html/layouts/basic/modules/Documents/resources/MassAddDocuments.min.js
index e8a2a328e9b4..15f6bb303281 100644
--- a/public_html/layouts/basic/modules/Documents/resources/MassAddDocuments.min.js
+++ b/public_html/layouts/basic/modules/Documents/resources/MassAddDocuments.min.js
@@ -1,9 +1,9 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";/**
+/* {[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]} */"use strict";/**
* Class Documents_MassAddDocuments_Js.
* @type {window.Documents_MassAddDocuments_Js}
- */function _createForOfIteratorHelper(o,allowArrayLike){var it="undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0,F=function(){};return {s:F,n:function n(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return {s:function s(){it=it.call(o);},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2;},f:function f(){try{normalCompletion||null==it.return||it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return "Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=o.length?{done:!0}:{done:!1,value:o[i++]}},e:function e(_e){throw _e},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var err,normalCompletion=!0,didErr=!1;return {s:function s(){it=it.call(o);},n:function n(){var step=it.next();return normalCompletion=step.done,step},e:function e(_e2){didErr=!0,err=_e2;},f:function f(){try{normalCompletion||null==it.return||it.return();}finally{if(didErr)throw err}}}}function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return "Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i {\n\t\t\te.preventDefault();\n\t\t\tthis.submit();\n\t\t});\n\t}\n\t/**\n\t * Submit\n\t */\n\tsubmit() {\n\t\tlet moduleName = app.getModuleName(),\n\t\t\trecordId = app.getRecordId();\n\t\tif (this.modal.find('[name=\"sourceModule\"]').length > 0) {\n\t\t\tmoduleName = this.modal.find('[name=\"sourceModule\"]').val();\n\t\t}\n\t\tif (this.modal.find('[name=\"sourceRecord\"]').length > 0) {\n\t\t\trecordId = this.modal.find('[name=\"sourceRecord\"]').val();\n\t\t}\n\t\tapp.removeEmptyFilesInput(this.form[0]);\n\t\tlet formData = new FormData(this.form[0]);\n\t\tif (this.button.data('view') === 'Detail') {\n\t\t\tformData.append('createmode', 'link');\n\t\t\tformData.append('return_module', moduleName);\n\t\t\tformData.append('return_id', recordId);\n\t\t}\n\t\tconst progressIndicatorElement = $.progressIndicator({\n\t\t\tblockInfo: { enabled: true }\n\t\t});\n\t\tAppConnector.request({\n\t\t\turl: 'index.php',\n\t\t\ttype: 'POST',\n\t\t\tdata: formData,\n\t\t\tprocessData: false,\n\t\t\tcontentType: false\n\t\t}).done((response) => {\n\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\tapp.hideModalWindow(null, this.modal.parent().attr('id'));\n\t\t\tswitch (this.button.data('view')) {\n\t\t\t\tcase 'Detail':\n\t\t\t\t\tconst detailView = Vtiger_Detail_Js.getInstance(),\n\t\t\t\t\t\tselectedTabElement = detailView.getSelectedTab();\n\t\t\t\t\tif (selectedTabElement.data('reference') === 'Documents') {\n\t\t\t\t\t\tdetailView.reloadTabContent();\n\t\t\t\t\t} else if (detailView.getContentHolder().find('.detailViewBlockLink').data('reference') === 'Documents') {\n\t\t\t\t\t\tVtiger_RelatedList_Js.getInstance(\n\t\t\t\t\t\t\tdetailView.getRecordId(),\n\t\t\t\t\t\t\tapp.getModuleName(),\n\t\t\t\t\t\t\tselectedTabElement,\n\t\t\t\t\t\t\t'Documents'\n\t\t\t\t\t\t).loadRelatedList();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst updatesWidget = this.button.closest('.widgetContentBlock');\n\t\t\t\t\t\tif (updatesWidget.length > 0) {\n\t\t\t\t\t\t\tdetailView.loadWidget(updatesWidget, detailView.getFiltersData(updatesWidget)['params']);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'List':\n\t\t\t\t\tconst listInstance = Vtiger_List_Js.getInstance();\n\t\t\t\t\tlistInstance.getListViewRecords().done(function () {\n\t\t\t\t\t\tlistInstance.calculatePages().done(function () {\n\t\t\t\t\t\t\tlistInstance.updatePagination();\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Edit':\n\t\t\t\t\tif (response['result']) {\n\t\t\t\t\t\tconst fieldBlock = this.button.closest('.js-field-block-column'),\n\t\t\t\t\t\t\tfield = fieldBlock.find('[name=\"' + fieldBlock.data('field') + '[]\"]');\n\t\t\t\t\t\tApp.Fields.Utils.setValue(field, response['result'], { extend: true }, false);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Register events.\n\t * @param {jQuery} modal\n\t * @param {jQuery.Event} e\n\t */\n\tregisterEvents(modal, e) {\n\t\tthis.modal = modal;\n\t\tthis.form = modal.find('form');\n\t\tthis.button = $(e.currentTarget);\n\t\tthis.registerSubmit();\n\t}\n};\n"],"names":["window","Documents_MassAddDocuments_Js","uploadButton","modal","find","template","uploadContainer","on","remove","files","file","append","html","val","name","form","e","preventDefault","submit","moduleName","app","getModuleName","recordId","getRecordId","length","removeEmptyFilesInput","formData","FormData","button","data","progressIndicatorElement","$","progressIndicator","blockInfo","enabled","AppConnector","request","url","type","processData","contentType","done","response","mode","hideModalWindow","parent","attr","detailView","Vtiger_Detail_Js","getInstance","selectedTabElement","getSelectedTab","reloadTabContent","getContentHolder","Vtiger_RelatedList_Js","loadRelatedList","updatesWidget","closest","loadWidget","getFiltersData","Vtiger_List_Js","listInstance","getListViewRecords","calculatePages","updatePagination","field","fieldBlock","App","Fields","Utils","setValue","extend","currentTarget","registerSubmit","self","registerEvents"],"mappings":";;AAAA,kKACA,YAEA,CAAA;AACA;AACA;AACA,u+DACAA,MAAM,CAACC,6BAAP,cAAA,UAAA,CAAA,SAAA,6BAAA,EAAA,CAAA,eAAA,CAAA,IAAA,CAAA,6BAAA,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Documents.min.js","sources":["MassAddDocuments.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\n/**\n * Class Documents_MassAddDocuments_Js.\n * @type {window.Documents_MassAddDocuments_Js}\n */\nwindow.Documents_MassAddDocuments_Js = class Documents_MassAddDocuments_Js {\n\t/**\n\t * Create a class object\n\t * @param {jQuery} modal\n\t * @param {jQuery.Event} e\n\t */\n\tstatic register(modal, e) {\n\t\tconst self = new window[this.name]();\n\t\tself.registerEvents(modal, e);\n\t}\n\tregisterSubmit() {\n\t\tconst uploadButton = this.modal.find('#filesToUpload'),\n\t\t\ttemplate = this.modal.find('.fileContainer'),\n\t\t\tuploadContainer = this.modal.find('.uploadFileContainer');\n\t\tuploadButton.on('change', function () {\n\t\t\tuploadContainer.find('.fileItem').remove();\n\t\t\tlet files = uploadButton[0].files;\n\t\t\tfor (let file of files) {\n\t\t\t\tuploadContainer.append(template.html());\n\t\t\t\tuploadContainer.find('[name=\"nameFile[]\"]:last').val(file.name);\n\t\t\t}\n\t\t});\n\t\tthis.form.on('submit', (e) => {\n\t\t\te.preventDefault();\n\t\t\tthis.submit();\n\t\t});\n\t}\n\t/**\n\t * Submit\n\t */\n\tsubmit() {\n\t\tlet moduleName = app.getModuleName(),\n\t\t\trecordId = app.getRecordId();\n\t\tif (this.modal.find('[name=\"sourceModule\"]').length > 0) {\n\t\t\tmoduleName = this.modal.find('[name=\"sourceModule\"]').val();\n\t\t}\n\t\tif (this.modal.find('[name=\"sourceRecord\"]').length > 0) {\n\t\t\trecordId = this.modal.find('[name=\"sourceRecord\"]').val();\n\t\t}\n\t\tapp.removeEmptyFilesInput(this.form[0]);\n\t\tlet formData = new FormData(this.form[0]);\n\t\tif (this.button.data('view') === 'Detail') {\n\t\t\tformData.append('createmode', 'link');\n\t\t\tformData.append('return_module', moduleName);\n\t\t\tformData.append('return_id', recordId);\n\t\t}\n\t\tconst progressIndicatorElement = $.progressIndicator({\n\t\t\tblockInfo: { enabled: true }\n\t\t});\n\t\tAppConnector.request({\n\t\t\turl: 'index.php',\n\t\t\ttype: 'POST',\n\t\t\tdata: formData,\n\t\t\tprocessData: false,\n\t\t\tcontentType: false\n\t\t}).done((response) => {\n\t\t\tprogressIndicatorElement.progressIndicator({ mode: 'hide' });\n\t\t\tapp.hideModalWindow(null, this.modal.parent().attr('id'));\n\t\t\tswitch (this.button.data('view')) {\n\t\t\t\tcase 'Detail':\n\t\t\t\t\tconst detailView = Vtiger_Detail_Js.getInstance(),\n\t\t\t\t\t\tselectedTabElement = detailView.getSelectedTab();\n\t\t\t\t\tif (selectedTabElement.data('reference') === 'Documents') {\n\t\t\t\t\t\tdetailView.reloadTabContent();\n\t\t\t\t\t} else if (detailView.getContentHolder().find('.detailViewBlockLink').data('reference') === 'Documents') {\n\t\t\t\t\t\tVtiger_RelatedList_Js.getInstance(\n\t\t\t\t\t\t\tdetailView.getRecordId(),\n\t\t\t\t\t\t\tapp.getModuleName(),\n\t\t\t\t\t\t\tselectedTabElement,\n\t\t\t\t\t\t\t'Documents'\n\t\t\t\t\t\t).loadRelatedList();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst updatesWidget = this.button.closest('.widgetContentBlock');\n\t\t\t\t\t\tif (updatesWidget.length > 0) {\n\t\t\t\t\t\t\tdetailView.loadWidget(updatesWidget, detailView.getFiltersData(updatesWidget)['params']);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'List':\n\t\t\t\t\tconst listInstance = Vtiger_List_Js.getInstance();\n\t\t\t\t\tlistInstance.getListViewRecords().done(function () {\n\t\t\t\t\t\tlistInstance.calculatePages().done(function () {\n\t\t\t\t\t\t\tlistInstance.updatePagination();\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Edit':\n\t\t\t\t\tif (response['result']) {\n\t\t\t\t\t\tconst fieldBlock = this.button.closest('.js-field-block-column'),\n\t\t\t\t\t\t\tfield = fieldBlock.find('[name=\"' + fieldBlock.data('field') + '[]\"]');\n\t\t\t\t\t\tApp.Fields.Utils.setValue(field, response['result'], { extend: true }, false);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t * Register events.\n\t * @param {jQuery} modal\n\t * @param {jQuery.Event} e\n\t */\n\tregisterEvents(modal, e) {\n\t\tthis.modal = modal;\n\t\tthis.form = modal.find('form');\n\t\tthis.button = $(e.currentTarget);\n\t\tthis.registerSubmit();\n\t}\n};\n"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_createForOfIteratorHelper","allowArrayLike","it","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","err","normalCompletion","didErr","call","step","next","_e2","return","minLen","_arrayLikeToArray","Object","toString","slice","name","from","test","arr","len","arr2","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","_toPropertyKey","key","_createClass","protoProps","staticProps","arg","_toPrimitive","String","input","hint","prim","toPrimitive","res","Number","window","Documents_MassAddDocuments_Js","registerSubmit","_this","uploadButton","modal","find","template","uploadContainer","on","remove","_step","files","_iterator","file","append","html","val","form","preventDefault","submit","_this2","moduleName","app","getModuleName","recordId","getRecordId","removeEmptyFilesInput","formData","FormData","button","data","progressIndicatorElement","$","progressIndicator","blockInfo","enabled","AppConnector","request","url","type","processData","contentType","response","mode","hideModalWindow","parent","attr","detailView","Vtiger_Detail_Js","getInstance","selectedTabElement","getSelectedTab","reloadTabContent","getContentHolder","Vtiger_RelatedList_Js","loadRelatedList","updatesWidget","closest","loadWidget","getFiltersData","params","listInstance","Vtiger_List_Js","getListViewRecords","calculatePages","updatePagination","result","fieldBlock","field","App","Fields","Utils","setValue","extend","registerEvents","currentTarget","register","self"],"mappings":";;AAAA,kKACA,YAAY,CAEZ;AACA;AACA;AACA,GAHA,SAAAA,OAAA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uC,GAAG,CAACC,MAAM,CAACC,KAAK,CAACC,QAAQ,CAACJ,KAAK,CAAE1B,QAAQ,CAAAwB,MAAU,CAAE,CAAEO,MAAM,CAAO,CAAA,CAAA,CAAC,CAAO,CAAA,CAAA,EAC7E,CAEF,CACD,CAAC,EACF,CACA;AACD;AACA;AACA;AACA,KAJC,CAAA,CAAAvF,GAAA,CAAApC,gBAAAA,CAAAA,KAAA,CAKA,SAAA4H,cAAAA,CAAetE,KAAK,CAAErD,CAAC,CAAE,CACxB,IAAI,CAACqD,KAAK,CAAGA,KAAK,CAClB,IAAI,CAACa,IAAI,CAAGb,KAAK,CAACC,IAAI,CAAC,MAAM,CAAC,CAC9B,IAAI,CAACwB,MAAM,CAAGG,CAAC,CAACjF,CAAC,CAAC4H,aAAa,CAAC,CAChC,IAAI,CAAC1E,cAAc,GACpB,CAAC,CAAAf,CAAAA,CAAAA,CAAAA,CAAAA,GAAA,CAAApC,UAAAA,CAAAA,KAAA;AAxGF;AACA;AACA;AACA,IACC,SAAA8H,QAAAA,CAAgBxE,KAAK,CAAErD,CAAC,CAAE,CACzB,IAAM8H,IAAI,CAAG,IAAI9E,MAAM,CAAC,IAAI,CAAC/B,IAAI,CAAG,CACpC6G,IAAI,CAACH,cAAc,CAACtE,KAAK,CAAErD,CAAC,EAC7B,CAAC,CAAA,CAAA,CAAA,CAAAiD,6BAAA,CAkGD,EAAA;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js b/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js
index ad0662390078..bca008c8e696 100644
--- a/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js
+++ b/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js
@@ -1,4 +1,4 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";Vtiger_Edit_Js("EmailTemplates_Edit_Js",{},{loadVariablePanel:function loadVariablePanel(form){var thisInstance=this;"undefined"==typeof form&&(form=this.getForm());var panel=form.find("#variablePanel");panel.progressIndicator(),AppConnector.request({module:"EmailTemplates",record:app.getRecordId(),view:"VariablePanel",type:"mail",selectedModule:form.find("[name=\"module_name\"]").val()}).done(function(response){panel.html(response),thisInstance.afterLoadVariablePanel(panel),App.Tools.VariablesPanel.registerRefreshCompanyVariables(panel);}).fail(function(){panel.progressIndicator({mode:"hide"});});},afterLoadVariablePanel:function afterLoadVariablePanel(html){App.Fields.Picklist.showSelect2ElementView(html.find("select.select2")),App.Fields.Text.registerCopyClipboard(html);},registerVariablePanelEvent:function registerVariablePanelEvent(form){var thisInstance=this;"undefined"==typeof form&&(form=this.getForm()),form.find(".js-toggle-panel[data-label=\"LBL_CONTENT_MAIL\"] .blockContent").prepend(""),thisInstance.loadVariablePanel(form),form.find("[name=\"module_name\"]").on("change",function(){thisInstance.loadVariablePanel(form);});},registerBasicEvents:function registerBasicEvents(container){this._super(container),this.registerVariablePanelEvent(container),App.Tools.VariablesPanel.registerRefreshCompanyVariables(container),App.Tools.VariablesPanel.refreshCompanyVariables(container);}});
+/* {[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]} */"use strict";Vtiger_Edit_Js("EmailTemplates_Edit_Js",{},{loadVariablePanel:function loadVariablePanel(form){var thisInstance=this;"undefined"==typeof form&&(form=this.getForm());var panel=form.find("#variablePanel");panel.progressIndicator(),AppConnector.request({module:"EmailTemplates",record:app.getRecordId(),view:"VariablePanel",type:"mail",selectedModule:form.find("[name=\"module_name\"]").val()}).done(function(response){panel.html(response),thisInstance.afterLoadVariablePanel(panel),App.Tools.VariablesPanel.registerRefreshCompanyVariables(panel);}).fail(function(){panel.progressIndicator({mode:"hide"});});},afterLoadVariablePanel:function afterLoadVariablePanel(html){App.Fields.Picklist.showSelect2ElementView(html.find("select.select2")),App.Fields.Text.registerCopyClipboard(html);},registerVariablePanelEvent:function registerVariablePanelEvent(form){var thisInstance=this;"undefined"==typeof form&&(form=this.getForm()),form.find(".js-toggle-panel[data-label=\"LBL_CONTENT_MAIL\"] .blockContent").prepend(""),thisInstance.loadVariablePanel(form),form.find("[name=\"module_name\"]").on("change",function(){thisInstance.loadVariablePanel(form);});},registerBasicEvents:function registerBasicEvents(container){this._super(container),this.registerVariablePanelEvent(container),App.Tools.VariablesPanel.registerRefreshCompanyVariables(container),App.Tools.VariablesPanel.refreshCompanyVariables(container);}});
//# sourceMappingURL=Edit.min.js.map
diff --git a/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js.map b/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js.map
index 4dc9d6bcee7d..e05ee364067e 100644
--- a/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js.map
+++ b/public_html/layouts/basic/modules/EmailTemplates/resources/Edit.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"Edit.min.js","sources":["Edit.js"],"sourcesContent":["/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\n'use strict';\n\nVtiger_Edit_Js(\n\t'EmailTemplates_Edit_Js',\n\t{},\n\t{\n\t\tloadVariablePanel: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\t\t\tvar panel = form.find('#variablePanel');\n\t\t\tpanel.progressIndicator();\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'EmailTemplates',\n\t\t\t\trecord: app.getRecordId(),\n\t\t\t\tview: 'VariablePanel',\n\t\t\t\ttype: 'mail',\n\t\t\t\tselectedModule: form.find('[name=\"module_name\"]').val()\n\t\t\t})\n\t\t\t\t.done(function (response) {\n\t\t\t\t\tpanel.html(response);\n\t\t\t\t\tthisInstance.afterLoadVariablePanel(panel);\n\t\t\t\t\tApp.Tools.VariablesPanel.registerRefreshCompanyVariables(panel);\n\t\t\t\t})\n\t\t\t\t.fail(function () {\n\t\t\t\t\tpanel.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t},\n\t\tafterLoadVariablePanel: function (html) {\n\t\t\tApp.Fields.Picklist.showSelect2ElementView(html.find('select.select2'));\n\t\t\tApp.Fields.Text.registerCopyClipboard(html);\n\t\t},\n\t\tregisterVariablePanelEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\t\t\tform\n\t\t\t\t.find('.js-toggle-panel[data-label=\"LBL_CONTENT_MAIL\"] .blockContent')\n\t\t\t\t.prepend('');\n\t\t\tthisInstance.loadVariablePanel(form);\n\t\t\tform.find('[name=\"module_name\"]').on('change', function () {\n\t\t\t\tthisInstance.loadVariablePanel(form);\n\t\t\t});\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerVariablePanelEvent(container);\n\t\t\tApp.Tools.VariablesPanel.registerRefreshCompanyVariables(container);\n\t\t\tApp.Tools.VariablesPanel.refreshCompanyVariables(container);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","loadVariablePanel","form","thisInstance","getForm","panel","find","progressIndicator","AppConnector","request","module","record","app","getRecordId","view","type","selectedModule","val","done","response","html","afterLoadVariablePanel","App","Tools","VariablesPanel","registerRefreshCompanyVariables","fail","mode","Fields","Picklist","showSelect2ElementView","Text","registerCopyClipboard","registerVariablePanelEvent","prepend","on","registerBasicEvents","container","_super","refreshCompanyVariables"],"mappings":";;AAAA,kKACA,YAEAA,CAAAA,cAAc,CACb,wBADa,CAEb,EAFa,CAGb,CACCC,iBAAiB,CAAE,SAAUC,iBAAAA,CAAAA,IAAV,CAAgB,CAClC,IAAIC,YAAY,CAAG,IAAnB,CACoB,WAAhB,EAAOD,OAAAA,IAFuB,GAGjCA,IAAI,CAAG,IAAA,CAAKE,OAAL,EAH0B,EAKlC,IAAIC,KAAK,CAAGH,IAAI,CAAC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I,CAACI,IAAL,CAAU,wBAAV,CAAkC6B,CAAAA,EAAlC,CAAqC,QAArC,CAA+C,UAAY,CAC1DhC,YAAY,CAACF,iBAAb,CAA+BC,IAA/B,EACA,CAFD,EAGA,CAxCF,CAyCCkC,mBAAmB,CAAE,SAAUC,mBAAAA,CAAAA,SAAV,CAAqB,CACzC,KAAKC,MAAL,CAAYD,SAAZ,CADyC,CAEzC,IAAA,CAAKJ,0BAAL,CAAgCI,SAAhC,CAFyC,CAGzCf,GAAG,CAACC,KAAJ,CAAUC,cAAV,CAAyBC,+BAAzB,CAAyDY,SAAzD,CAHyC,CAIzCf,GAAG,CAACC,KAAJ,CAAUC,cAAV,CAAyBe,uBAAzB,CAAiDF,SAAjD,EACA,CA9CF,CAHa;;"}
\ No newline at end of file
+{"version":3,"file":"Edit.min.js","sources":["Edit.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\nVtiger_Edit_Js(\n\t'EmailTemplates_Edit_Js',\n\t{},\n\t{\n\t\tloadVariablePanel: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\t\t\tvar panel = form.find('#variablePanel');\n\t\t\tpanel.progressIndicator();\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'EmailTemplates',\n\t\t\t\trecord: app.getRecordId(),\n\t\t\t\tview: 'VariablePanel',\n\t\t\t\ttype: 'mail',\n\t\t\t\tselectedModule: form.find('[name=\"module_name\"]').val()\n\t\t\t})\n\t\t\t\t.done(function (response) {\n\t\t\t\t\tpanel.html(response);\n\t\t\t\t\tthisInstance.afterLoadVariablePanel(panel);\n\t\t\t\t\tApp.Tools.VariablesPanel.registerRefreshCompanyVariables(panel);\n\t\t\t\t})\n\t\t\t\t.fail(function () {\n\t\t\t\t\tpanel.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t},\n\t\tafterLoadVariablePanel: function (html) {\n\t\t\tApp.Fields.Picklist.showSelect2ElementView(html.find('select.select2'));\n\t\t\tApp.Fields.Text.registerCopyClipboard(html);\n\t\t},\n\t\tregisterVariablePanelEvent: function (form) {\n\t\t\tvar thisInstance = this;\n\t\t\tif (typeof form === 'undefined') {\n\t\t\t\tform = this.getForm();\n\t\t\t}\n\t\t\tform\n\t\t\t\t.find('.js-toggle-panel[data-label=\"LBL_CONTENT_MAIL\"] .blockContent')\n\t\t\t\t.prepend('');\n\t\t\tthisInstance.loadVariablePanel(form);\n\t\t\tform.find('[name=\"module_name\"]').on('change', function () {\n\t\t\t\tthisInstance.loadVariablePanel(form);\n\t\t\t});\n\t\t},\n\t\tregisterBasicEvents: function (container) {\n\t\t\tthis._super(container);\n\t\t\tthis.registerVariablePanelEvent(container);\n\t\t\tApp.Tools.VariablesPanel.registerRefreshCompanyVariables(container);\n\t\t\tApp.Tools.VariablesPanel.refreshCompanyVariables(container);\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","loadVariablePanel","form","thisInstance","getForm","panel","find","progressIndicator","AppConnector","request","module","record","app","getRecordId","view","type","selectedModule","val","done","response","html","afterLoadVariablePanel","App","Tools","VariablesPanel","registerRefreshCompanyVariables","fail","mode","Fields","Picklist","showSelect2ElementView","Text","registerCopyClipboard","registerVariablePanelEvent","prepend","on","registerBasicEvents","container","_super","refreshCompanyVariables"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,cAAc,CACb,wBAAwB,CACxB,EAAE,CACF,CACCC,iBAAiB,CAAE,SAAAA,kBAAUC,IAAI,CAAE,CAClC,IAAIC,YAAY,CAAG,IAAI,CACH,WAAW,EAA3B,OAAOD,IAAoB,GAC9BA,IAAI,CAAG,IAAI,CAACE,OAAO,EAAE,CAAA,CAEtB,IAAIC,KAAK,CAAGH,IAAI,CAACI,IAAI,CAAC,gBAAgB,CAAC,CACvCD,KAAK,CAACE,iBAAiB,EAAE,CACzBC,YAAY,CAAC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,CAAC,EACF,CAAC,CACDkC,mBAAmB,CAAE,SAAAA,mBAAUC,CAAAA,SAAS,CAAE,CACzC,IAAI,CAACC,MAAM,CAACD,SAAS,CAAC,CACtB,IAAI,CAACJ,0BAA0B,CAACI,SAAS,CAAC,CAC1Cf,GAAG,CAACC,KAAK,CAACC,cAAc,CAACC,+BAA+B,CAACY,SAAS,CAAC,CACnEf,GAAG,CAACC,KAAK,CAACC,cAAc,CAACe,uBAAuB,CAACF,SAAS,EAC3D,CACD,CACD,CAAC;;"}
\ No newline at end of file
diff --git a/public_html/layouts/basic/modules/FCorectingInvoice/resources/Edit.min.js b/public_html/layouts/basic/modules/FCorectingInvoice/resources/Edit.min.js
index 64e45ad3263a..211ab8e9e9e7 100644
--- a/public_html/layouts/basic/modules/FCorectingInvoice/resources/Edit.min.js
+++ b/public_html/layouts/basic/modules/FCorectingInvoice/resources/Edit.min.js
@@ -1,6 +1,6 @@
'use strict';
-/* {[The file is published on the basis of YetiForce Public License 5.0 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */Vtiger_Edit_Js("FCorectingInvoice_Edit_Js",{},{/**
+/* {[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]} */Vtiger_Edit_Js("FCorectingInvoice_Edit_Js",{},{/**
* Load correcting invoice data to before block
* @param {int} recordId
*/loadInvoiceData:function loadInvoiceData(){var recordId=!!(0 {\n\t\t\t\t\t\tform.find('.js-before-inventory').html(response);\n\t\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t})\n\t\t\t\t\t.fail(() => {\n\t\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * register reference fields events\n\t\t */\n\t\tregisterReferenceFieldsEvents() {\n\t\t\tapp.event.on('EditView.SelectReference', (e, params) => {\n\t\t\t\tif (params.module === 'FInvoice') {\n\t\t\t\t\tthis.loadInvoiceData(params.record);\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst form = this.getForm();\n\t\t\tapp.event.on('EditView.ClearField', (e, params) => {\n\t\t\t\tif (params.fieldName === 'finvoiceid') {\n\t\t\t\t\tconst invoiceidInput = form.find('[name=\"finvoiceid\"]');\n\t\t\t\t\tif (invoiceidInput.length) {\n\t\t\t\t\t\tform\n\t\t\t\t\t\t\t.find('.js-before-inventory')\n\t\t\t\t\t\t\t.html('
');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * Action for copy from correcting invoice button - load data before positions to position in data after block\n\t\t */\n\t\tregisterCopyFromInvoice() {\n\t\t\tconst form = this.getForm();\n\t\t\tconst thisInstance = this;\n\t\t\tform.find('.js-copy-from-invoice').on('click', function (e) {\n\t\t\t\te.preventDefault();\n\t\t\t\te.stopPropagation();\n\t\t\t\tconst finvoiceidInput = form.find('input[name=\"finvoiceid\"]');\n\t\t\t\tif (!finvoiceidInput.length) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tconst finvoiceid = finvoiceidInput.val();\n\t\t\t\tif (!finvoiceid || finvoiceid == 0) {\n\t\t\t\t\treturn Vtiger_Helper_Js.showMessage({\n\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\ttext: app.vtranslate('JS_FCORECTINGINVOICE_CHOOSE_INVOICE')\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tthisInstance.inventoryController.loadInventoryData(finvoiceid, 'FInvoice');\n\t\t\t});\n\t\t},\n\t\t/**\n\t\t * registerEvents override\n\t\t */\n\t\tregisterEvents() {\n\t\t\tthis._super();\n\t\t\tthis.registerCopyFromInvoice();\n\t\t\tthis.registerReferenceFieldsEvents();\n\t\t\tthis.loadInvoiceData();\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","loadInvoiceData","recordId","parseInt","getForm","find","val","progressLoader","$","progressIndicator","blockInfo","enabled","AppConnector","request","module","record","mode","view","done","response","form","html","fail","registerReferenceFieldsEvents","app","event","on","e","params","fieldName","invoiceidInput","length","vtranslate","registerCopyFromInvoice","thisInstance","preventDefault","stopPropagation","finvoiceidInput","finvoiceid","inventoryController","loadInventoryData","Vtiger_Helper_Js","showMessage","type","text","registerEvents","_super"],"mappings":";;AAAA,kKAEAA,cAAc,CACb,2BADa,CAEb,EAFa,CAGb;AAED;AACA;AACA,KACEC,eALD,CAKmC,SAAA,eAAA,EAAA,CAAA,IAAA,QAAA,CAAA,CAAA,EAAA,CAAA,CAAA,SAAA,CAAA,MAAA,EAAA,KAAA,CAAA,GAAA,SAAA,CAAA,CAAA,CAAA,CAAA,EAAA,SAAA,CAAA,CAAA,CAAA,CAIjC,GAHKC,QAGL,GAFCA,QAAQ,CAAGC,QAAQ,CAAC,IAAA,CAAKC,OAAL,EAAA,CAAeC,IAAf,CAAoB,4BAApB,CAAA,CAAgDC,GAAhD,EAAD,CAEpB,CAAA,CAAIJ,QAAQ,EAAgB,CAAZ,EAAAA,QAAhB,CAA+B,KACpB,IAAA,CAAG,IAAKE,CAAAA,OAAL,EADiB,CAExBG,cAAc,CAAGC,CAAC,CAACC,iBAAF,CAAoB,CAAEC,SAAS,CAAE,CAAEC,OAAO,CAAA,CAAA,CAAT,CAAb,CAApB,CAFO,CAG9BC,YAAY,CAACC,OAAb,CAAqB,CACpBC,MAAM,CAAE,UADY,CAEpBC,MAAM,CAAEb,QAFY,CAGpBc,IAAI,CAAE,sBAHc,CAIpBC,IAAI,CAAE,QAJc,CAArB,CAMEC,CAAAA,IANF,CAMO,SAACC,QAAD,CAAc,CACnBC,IAAI,CAACf,IAAL,CAAU,sBAAV,CAAkCgB,CAAAA,IAAlC,CAAuCF,QAAvC,CADmB,CAEnBZ,cAAc,CAACE,iBAAf,CAAiC,CAAEO,IAAI,CAAE,MAAR,CAAjC,EACA,CATF,CAAA,CAUEM,IAVF,CAUO,UAAM,CACXf,cAAc,CAACE,iBAAf,CAAiC,CAAEO,IAAI,CA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GAAhB,EAAnB,CAP2D,OAQtDgC,UAAD,EAA6B,CAAd,EAAAA,UARwC,CAc3DJ,KAAAA,YAAY,CAACK,mBAAb,CAAiCC,iBAAjC,CAAmDF,UAAnD,CAA+D,UAA/D,CAd2D,CASnDG,gBAAgB,CAACC,WAAjB,CAA6B,CACnCC,IAAI,CAAE,OAD6B,CAEnCC,IAAI,CAAEpB,GAAG,CAACQ,UAAJ,CAAe,qCAAf,CAF6B,CAA7B,CAMR,CAfD,EAgBA,CAtEF;AAwED;AACA,KACEa,cA1ED,0BA0EkB,CAChB,IAAA,CAAKC,MAAL,EADgB,CAEhB,KAAKb,uBAAL,EAFgB,CAGhB,IAAKV,CAAAA,6BAAL,EAHgB,CAIhB,IAAA,CAAKtB,eAAL,GACA,CA/EF,CAHa;;"}
\ No newline at end of file
+{"version":3,"file":"Edit.min.js","sources":["Edit.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\nVtiger_Edit_Js(\n\t'FCorectingInvoice_Edit_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Load correcting invoice data to before block\n\t\t * @param {int} recordId\n\t\t */\n\t\tloadInvoiceData(recordId = false) {\n\t\t\tif (!recordId) {\n\t\t\t\trecordId = parseInt(this.getForm().find('input[name=\"finvoiceid\"]').val());\n\t\t\t}\n\t\t\tif (recordId && recordId != 0) {\n\t\t\t\tconst form = this.getForm();\n\t\t\t\tconst progressLoader = $.progressIndicator({ blockInfo: { enabled: true } });\n\t\t\t\tAppConnector.request({\n\t\t\t\t\tmodule: 'FInvoice',\n\t\t\t\t\trecord: recordId,\n\t\t\t\t\tmode: 'showInventoryDetails',\n\t\t\t\t\tview: 'Detail'\n\t\t\t\t})\n\t\t\t\t\t.done((response) => {\n\t\t\t\t\t\tform.find('.js-before-inventory').html(response);\n\t\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t})\n\t\t\t\t\t.fail(() => {\n\t\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * register reference fields events\n\t\t */\n\t\tregisterReferenceFieldsEvents() {\n\t\t\tapp.event.on('EditView.SelectReference', (e, params) => {\n\t\t\t\tif (params.module === 'FInvoice') {\n\t\t\t\t\tthis.loadInvoiceData(params.record);\n\t\t\t\t}\n\t\t\t});\n\t\t\tconst form = this.getForm();\n\t\t\tapp.event.on('EditView.ClearField', (e, params) => {\n\t\t\t\tif (params.fieldName === 'finvoiceid') {\n\t\t\t\t\tconst invoiceidInput = form.find('[name=\"finvoiceid\"]');\n\t\t\t\t\tif (invoiceidInput.length) {\n\t\t\t\t\t\tform\n\t\t\t\t\t\t\t.find('.js-before-inventory')\n\t\t\t\t\t\t\t.html('