/** * Need sweet alert * Need momentjs */ var TP; (function (TP) { var AttributeValue = /** @class */ (function () { function AttributeValue(attribute, valuePropertyId) { this.Attribute = attribute; this.ValuePropertyId = valuePropertyId; } return AttributeValue; }()); TP.AttributeValue = AttributeValue; var Commons = /** @class */ (function () { function Commons() { } Commons.Init = function (languageCode, siteUrl) { Commons.antiforgeryToken = $("input[name=__RequestVerificationToken]").val(); Commons.SetLanguageCode(languageCode); Commons.SetSiteUrl(siteUrl); Commons.SetUrlPathServices(); $('body').loading({ theme: 'dark' }); $("#LanguageDropDownListButton").css("width", $("#LanguageDropDownList").css("width")); $("#LanguageDropDownListButton").trigger("click"); $("#LanguageDropDownListButton").trigger("click"); setInterval(function () { if ($("#LanguageDropDownList").length) $("#LanguageDropDownList").css("top", (($("#LanguageDropDownListButton").height() - $("#LanguageDropDownListButton").position().top) + 2) + "px !important"); //else clearInterval(theInterval); $(".dsr-form-left-column").css("height", $("#dsr-form").css("height")); }, 500); }; Commons.IsNullOrEmpty = function (value) { if (value == null || value == "" || value == undefined) { return true; } else { return false; } }; Commons.SetLanguageCode = function (value) { if (Commons.IsNullOrEmpty(value)) { if (Commons.IsNullOrEmpty($("#" + Commons.LanguageCodeInputId).val())) { Commons.LanguageCode = "en"; } else { Commons.LanguageCode = $("#" + Commons.LanguageCodeInputId).val(); } } else { Commons.LanguageCode = value; } }; Commons.SetSiteUrl = function (value) { if (Commons.IsNullOrEmpty(value)) { if (Commons.IsNullOrEmpty($("#" + Commons.SiteUrlInputId).val())) { Commons.SiteUrl = "/"; } else { Commons.SiteUrl = $("#" + Commons.SiteUrlInputId).val(); } } else { Commons.SiteUrl = value; } }; Commons.SetUrlPathServices = function () { Commons.UrlPathServices = Commons.SiteUrl + Commons.PathServices; }; Commons.GetUrlService = function (ServiceName) { var url = Commons.UrlPathServices.replace("{{ServiceName}}", ServiceName); return url; }; Commons.AjaxServicePromisePost = function (pUrl, pData, pToken, pAntiforgeryToken) { var dfd = jQuery.Deferred(); $.ajax({ url: pUrl, method: "POST", dataType: "json", data: pData, beforeSend: function (request) { if (pToken != null) { request.setRequestHeader("chs", pToken); } if (pAntiforgeryToken != null) { request.setRequestHeader("__RequestVerificationToken", pAntiforgeryToken); } } }).done(function (result) { if ((result) && (result.ResponseCode) && (result.ResponseCode >= 1)) { return dfd.resolve(result); } else { return dfd.reject(result); } }).fail(function (error) { return dfd.reject(error); }); return dfd.promise(); }; //http://carlosbonetti.github.io/jquery-loading/ Commons.LoadingStart = function () { $('body').loading('start'); }; //http://carlosbonetti.github.io/jquery-loading/ Commons.LoadingStop = function () { setTimeout(function () { $('body').loading('stop'); }, 500); }; Commons.toUTF8Text = function (str) { var utf8 = []; var i; var tmp; utf8 = Commons.toUTF8Array(str); tmp = ''; for (i = 0; i <= utf8.length - 1; i++) { tmp = tmp + utf8[i].toString(); if (i != utf8.length - 1) { tmp = tmp + "-"; } } return tmp; }; Commons.toUTF8Array = function (str) { var utf8 = []; for (var i = 0; i < str.length; i++) { var charcode = str.charCodeAt(i); if (charcode < 0x80) utf8.push(charcode); else if (charcode < 0x800) { utf8.push(0xc0 | (charcode >> 6), 0x80 | (charcode & 0x3f)); } else if (charcode < 0xd800 || charcode >= 0xe000) { utf8.push(0xe0 | (charcode >> 12), 0x80 | ((charcode >> 6) & 0x3f), 0x80 | (charcode & 0x3f)); } // surrogate pair else { i++; // UTF-16 encodes 0x10000-0x10FFFF by // subtracting 0x10000 and splitting the // 20 bits of 0x0-0xFFFFF into two halves charcode = 0x10000 + (((charcode & 0x3ff) << 10) | (str.charCodeAt(i) & 0x3ff)); utf8.push(0xf0 | (charcode >> 18), 0x80 | ((charcode >> 12) & 0x3f), 0x80 | ((charcode >> 6) & 0x3f), 0x80 | (charcode & 0x3f)); } } return utf8; }; Commons.fromUTF8Text = function (str) { var data = []; var datastr = []; var i; datastr = str.split('-'); for (i = 0; i <= datastr.length - 1; i++) { data.push(parseInt(datastr[i], 10)); } return Commons.fromUTF8Array(data); }; Commons.fromUTF8Array = function (data) { var str = '', i; for (i = 0; i < data.length; i++) { var value = data[i]; if (value < 0x80) { str += String.fromCharCode(value); } else if (value > 0xBF && value < 0xE0) { str += String.fromCharCode((value & 0x1F) << 6 | data[i + 1] & 0x3F); i += 1; } else if (value > 0xDF && value < 0xF0) { str += String.fromCharCode((value & 0x0F) << 12 | (data[i + 1] & 0x3F) << 6 | data[i + 2] & 0x3F); i += 2; } else { // surrogate pair var charCode = ((value & 0x07) << 18 | (data[i + 1] & 0x3F) << 12 | (data[i + 2] & 0x3F) << 6 | data[i + 3] & 0x3F) - 0x010000; str += String.fromCharCode(charCode >> 10 | 0xD800, charCode & 0x03FF | 0xDC00); i += 3; } } return str; }; Commons.tpClearFieldValidators = function () { $(".tpValidateGroup").find("input").keyup(function () { Commons.clearScreenErrors(); }); $(".tpValidateGroup").find("input:radio").click(function () { Commons.clearScreenErrors(); }); $(".tpValidateGroup").find("textarea").keyup(function () { Commons.clearScreenErrors(); }); $(".tpValidateGroup").find("select").change(function () { Commons.clearScreenErrors(); }); }; Commons.clearScreenErrors = function () { $(".tpValidateError").addClass("hide"); $(".tpValidateGroup").removeClass("has-error"); }; Commons.tpAlertSuccess = function (Message, OkFunction, paramConfirm, OkMessage) { if ((OkMessage == null) || (typeof OkMessage == "undefined")) { OkMessage = 'OkButton'; } swal({ title: '', text: Message, allowOutsideClick: false, showConfirmButton: true, confirmButtonText: OkMessage, type: 'success', html: true }, function (isConfirm) { if (isConfirm) { if ((OkFunction != null) && (typeof OkFunction != "undefined")) { try { OkFunction(paramConfirm); } catch (e) { } } } }); }; Commons.tpAlertError = function (Message, OkFunction, paramConfirm, OkMessage) { if ((OkMessage == null) || (typeof OkMessage == "undefined")) { OkMessage = 'OkButton'; } swal({ title: '', text: Message, allowOutsideClick: false, showConfirmButton: true, confirmButtonText: OkMessage, type: 'error', html: true, }, function (isConfirm) { if (isConfirm) { if ((OkFunction != null) && (typeof OkFunction != "undefined")) { try { OkFunction(paramConfirm); } catch (e) { } } } }); }; Commons.fnValidateEmail = function (email) { var reg = /^([A-Za-z0-9_\-\.\&/+])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,15})$/; var emails; var validateEmail; var i; email = email.replace(/ /ig, ""); email = email.replace(/,/g, ";"); validateEmail = email.charAt(email.length - 1); if (validateEmail == ';') { email = email.substring(0, email.length - 1); } emails = email.split(";"); for (i = 0; i < emails.length; i++) { if (!reg.test(emails[i].trim())) { return false; } } return true; }; //Validation later - Only Integer Commons.fnIsNumericOnlyInteger = function (ValueNumber) { /***************************************************************** DESCRIPTION: Validates that a string contains only valid numbers. PARAMETERS: ValueNumber - String to be tested for validity RETURNS: True if valid, otherwise false. ******************************************************************/ var patron = /^[0-9]+$/; //check for numeric characters return patron.test(ValueNumber); }; Commons.fnGetGuid = function () { var d = new Date(); return d.getTime(); }; Commons.fnValidateDate = function (stringDate, formatDate, separatorDate) { var arrTMP; var arrTMP1; var myDate = new Date(); var newDate = ""; var lHour = 0; var lMinute = 0; var lYear; var bolHour; var lDay; bolHour = false; if (stringDate == "") { return false; } arrTMP = stringDate.split(separatorDate); if (arrTMP.length != 3) { return false; } //YYYYMMDD if (formatDate == "YYYYMMDD") { try { stringDate = separatorDate + arrTMP[1] * 1 + separatorDate; if (arrTMP[2].length > 2) { //Date with hours bolHour = true; if (arrTMP[2].indexOf(":") == 0) { return false; } arrTMP1 = arrTMP[2].split(" "); lDay = arrTMP1[0] * 1; if (arrTMP1.length != 2) { return false; } lYear = arrTMP[0].trim(); stringDate = lYear * 1 + stringDate + lDay + " "; arrTMP1 = arrTMP1[1].split(":"); if (arrTMP1.length != 2) { return false; } if (Commons.fnIsNumericOnlyInteger(arrTMP1[0]) == false || Commons.fnIsNumericOnlyInteger(arrTMP1[1]) == false || Commons.fnIsNumericOnlyInteger(lDay) == false) { return false; } lHour = arrTMP1[0] * 1; lMinute = arrTMP1[1] * 1; stringDate = stringDate + lHour + ":" + lMinute; } else { lYear = arrTMP[0]; lYear = lYear * 1; lDay = arrTMP[2] * 1; stringDate = lYear + stringDate + lDay; } myDate = new Date(lYear, arrTMP[1] - 1, lDay, lHour, lMinute); //Local_New_Date_Validate = myDate; if (myDate == undefined || myDate == null) { return false; } if (bolHour == true) { newDate = myDate.getFullYear() * 1 + separatorDate + (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getDate() * 1 + " " + myDate.getHours() * 1 + ":" + myDate.getMinutes() * 1; } else { newDate = myDate.getFullYear() * 1 + separatorDate + (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getDate() * 1; } } catch (e) { return false; } if (stringDate != newDate) { return false; } return true; } //DDMMYYYY if (formatDate == "DDMMYYYY") { try { stringDate = arrTMP[0] * 1 + separatorDate + arrTMP[1] * 1 + separatorDate; lYear = arrTMP[2]; lDay = arrTMP[0]; lHour = 0; lMinute = 0; if (arrTMP[2].length != 4) { //Date with hours bolHour = true; if (arrTMP[2].indexOf(":") == 0) { return false; } arrTMP1 = arrTMP[2].split(" "); if (arrTMP1.length != 2) { return false; } lYear = arrTMP1[0].trim(); stringDate = stringDate + lYear * 1 + " "; arrTMP1 = arrTMP1[1].split(":"); if (arrTMP1.length != 2) { return false; } if (Commons.fnIsNumericOnlyInteger(arrTMP1[0]) == false || Commons.fnIsNumericOnlyInteger(arrTMP1[1]) == false) { return false; } lHour = arrTMP1[0] * 1; lMinute = arrTMP1[1] * 1; stringDate = stringDate + lHour + ":" + lMinute; } else { stringDate = stringDate + arrTMP[2] * 1; } myDate = new Date(lYear, arrTMP[1] - 1, lDay, lHour, lMinute); //Local_New_Date_Validate = myDate; if (myDate == undefined || myDate == null) { return false; } if (bolHour == true) { newDate = myDate.getDate() * 1 + separatorDate + (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getFullYear() * 1 + " " + myDate.getHours() * 1 + ":" + myDate.getMinutes() * 1; } else { newDate = myDate.getDate() * 1 + separatorDate + (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getFullYear() * 1; } } catch (e) { return false; } if (stringDate != newDate) { return false; } return true; } //MMDDYYYY if (formatDate == "MMDDYYYY") { try { stringDate = arrTMP[0] * 1 + separatorDate + arrTMP[1] * 1 + separatorDate; if (arrTMP[2].length != 4) { //Date with hours bolHour = true; if (arrTMP[2].indexOf(":") == 0) { return false; } arrTMP1 = arrTMP[2].split(" "); if (arrTMP1.length != 2) { return false; } lYear = arrTMP1[0].trim(); stringDate = stringDate + lYear * 1 + " "; arrTMP1 = arrTMP1[1].split(":"); if (arrTMP1.length != 2) { return false; } if (Commons.fnIsNumericOnlyInteger(arrTMP1[0]) == false || Commons.fnIsNumericOnlyInteger(arrTMP1[1]) == false) { return false; } lHour = arrTMP1[0] * 1; lMinute = arrTMP1[1] * 1; stringDate = stringDate + lHour + ":" + lMinute; } else { lYear = arrTMP[2]; stringDate = stringDate + arrTMP[2] * 1; } myDate = new Date(lYear, arrTMP[0] - 1, arrTMP[1], lHour, lMinute); //Local_New_Date_Validate = myDate; if (myDate == undefined || myDate == null) { return false; } if (bolHour == true) { newDate = (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getDate() * 1 + separatorDate + myDate.getFullYear() * 1 + " " + myDate.getHours() * 1 + ":" + myDate.getMinutes() * 1; } else { newDate = (myDate.getMonth() + 1) * 1 + separatorDate + myDate.getDate() * 1 + separatorDate + myDate.getFullYear() * 1; } } catch (e) { return false; } if (stringDate != newDate) { return false; } return true; } }; //minData and maxDate are in YYYY/MM/DD format Commons.fnValidateMinAndMaxDate = function (myDate, minDate, maxDate, formatDate, separatorDate) { var arrTMP; var newDate = new Date(); var newDateTMP = new Date(); try { if (formatDate == "YYYYMMDD") { arrTMP = myDate.split(separatorDate); newDate = new Date(arrTMP[0] * 1, (arrTMP[1] * 1) - 1, arrTMP[2] * 1); } else if (formatDate == "DDMMYYYY") { arrTMP = myDate.split(separatorDate); newDate = new Date(arrTMP[2] * 1, (arrTMP[1] * 1) - 1, arrTMP[0] * 1); } else if (formatDate == "MMDDYYYY") { arrTMP = myDate.split(separatorDate); newDate = new Date(arrTMP[2] * 1, (arrTMP[0] * 1) - 1, arrTMP[1] * 1); } else { //Error return "ErrorValidatingDate"; } if (minDate.trim() != "..") { //Validanting min date arrTMP = minDate.split("/"); newDateTMP = new Date(arrTMP[0] * 1, (arrTMP[1] * 1) - 1, arrTMP[2] * 1); if (newDate < newDateTMP) { return "invalidMinDate"; } } if (maxDate.trim() != "..") { //Validanting max date arrTMP = maxDate.split("/"); newDateTMP = new Date(arrTMP[0] * 1, (arrTMP[1] * 1) - 1, arrTMP[2] * 1); if (newDate > newDateTMP) { return "invalidMaxDate"; } } return "1"; } catch (e) { return "ErrorValidatingDate"; } }; Commons.fnValidateWhiteList = function (Chars, WhiteList) { var i; var j; var bolEncontro; var car; //WhiteList = WhiteList + " "; Chars = Commons.replaceAll(Chars, new RegExp("\\n", "g"), ""); Chars = Commons.replaceAll(Chars, "\n", ""); Chars = Commons.replaceAll(Chars, "\r", ""); for (i = 1; i <= Chars.length; i++) { car = Chars.charAt(i - 1); bolEncontro = false; for (j = 1; j <= WhiteList.length; j++) { if (car == WhiteList.charAt(j - 1)) { bolEncontro = true; break; } } if (bolEncontro == false) { return car; } } return "OK"; }; Commons.replaceAll = function (originalText, replace, with_this) { return originalText.split(replace).join(with_this); }; Commons.CloneElements = function (sourceSelector, destinationSelector) { $(sourceSelector).children().clone().appendTo(destinationSelector); }; /*Start Common for DSR and Global Ethics*/ /*Start Form Utilities*/ //upload plugin //Modernizr test Commons.isUploadSupported = function () { if (navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/)) { return false; } var elem = document.createElement('input'); elem.type = 'file'; return !elem.disabled; }; Commons.FileInputHasFiles = function (controlId) { if (document.getElementById(controlId)) return document.getElementById(controlId).files.length > 0; else return false; }; Commons.ValidateExtension = function (control, _validFileExtensions) { var oInput = $(control)[0]; if ($(oInput).attr("type").toLowerCase() == "file") { var sFileName = $(control)[0].files[0].name; if (sFileName.length > 0) { var blnValid = false; for (var j = 0; j < _validFileExtensions.length; j++) { var sCurExtension = _validFileExtensions[j]; if (sFileName.substr(sFileName.length - sCurExtension.length, sCurExtension.length).toLowerCase() == sCurExtension.toLowerCase()) { blnValid = true; break; } } if (!blnValid) { Commons.AlertMessageError('Error', "The file extension is not allowed. The allowed extensions are: " + Commons.replaceAll($("#ValidExtensions").val(), "|", ", ") + "."); return false; } } } return true; }; Commons.ShowControl = function (selectorControl, show) { show === true ? $(selectorControl).removeClass("tp-hide") : $(selectorControl).addClass("tp-hide"); }; Commons.ShowGroupingControl = function (selectorControl, show, groupingClass) { var control = $(selectorControl); var controlContainer = $(control).parents("." + (groupingClass ? groupingClass : "form-group")); Commons.ShowControl(controlContainer, show); }; Commons.EmptyInputControlSelector = function (controlSelector) { var control = $(controlSelector); Commons.EmptyInputControl(control); }; Commons.GetDateInTPFormatFromDate = function (date) { return date.getFullYear() + "/" + Commons.Pad((date.getMonth() + 1).toString(), 2, "0") + "/" + Commons.Pad(date.getDate().toString(), 2, "0"); }; Commons.GetDateFromString = function (date) { return moment(date).toDate(); }; Commons.Pad = function (source, quantity, replaceValue) { var s = String(source); while (s.length < (quantity || 2)) { s = replaceValue + s; } return s; }; Commons.EmptyInputControl = function (control) { $(control).val(""); }; Commons.RemoveControlFromDom = function (control) { $(control).parents(".form-group").remove(); }; Commons.GetAttributesForFillSelects = function (object, attributes) { if (attributes == null) { return ""; } var html = ""; for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) { var attribute = attributes_1[_i]; html += Commons.GetAttributeForFillSelects(object, attribute) + " "; } return html; }; Commons.GetAttributeForFillSelects = function (object, attribute) { return (attribute != null && object[attribute.ValuePropertyId] != null ? attribute.Attribute + "='" + object[attribute.ValuePropertyId] + "'" : ""); }; Commons.FillSelects = function (idSelect, data, idProperty, valueProperty, parameters) { if (parameters === void 0) { parameters = null; } var control = $("#" + idSelect); Commons.EmptySelect(idSelect); $(data).each(function (index, object) { $(control).append(""); }); //if other then last $("[data-parameters*='OTHER']").detach().appendTo(control); if (data) { if (data.length == 1) { $(control).val(data[0][idProperty]); $(control).trigger("change"); } } }; Commons.EmptySelect = function (idSelect) { var control = $("#" + idSelect); $(control).html(""); $(control).append(""); }; /*End Form Utilities*/ /*Start Alerts*/ Commons.AlertMessageSuccess = function (title, message) { Commons.AlertMessage(title, message, "success"); }; Commons.AlertMessageError = function (title, message) { Commons.AlertMessage(title, message, "error"); }; Commons.AlertMessageInfo = function (title, message) { Commons.AlertMessage(title, message, "info"); }; Commons.AlertMessage = function (title, message, type) { swal({ title: title, text: message, allowOutsideClick: false, type: type, }); }; /*End Alerts*/ /*Start Validation*/ /*Start Bootstrap 3*/ Commons.ValidationB3GetAllPossibleClassesFormControl = function () { return ""; }; Commons.ValidationB3GetFormGroupClassByValidationType = function (validationType) { var prefix = "has-"; return Commons.ValidationB3GetClassGeneral(validationType, prefix); }; Commons.ValidationB3GetFormControlClassByValidationType = function (validationType) { var prefix = "form-control-"; return Commons.ValidationB3GetClassGeneral(validationType, prefix); }; Commons.ValidationB3GetClassGeneral = function (validationType, prefix) { switch (validationType.toLowerCase()) { case "success": case "ok": return prefix == "form-control-" ? "is-valid" : prefix + "success"; case "warning": return prefix + "warning"; case "error": return prefix == "form-control-" ? "is-invalid" : prefix + "danger " + prefix + "error"; case "remove": case "delete": default: return ""; } ; }; Commons.ValidationB3GenerateFeedback = function (message) { var html = ""; html += "
"; html += " " + message; html += "
"; return html; }; Commons.ValidationB3Generator = function (control, validationType, message) { var controlFormGroup = $(control).parents(".form-group"); Commons.ValidationB3RemoveAll(control); $(controlFormGroup).addClass(Commons.ValidationB3GetFormGroupClassByValidationType(validationType)); $(control).addClass(Commons.ValidationB3GetFormControlClassByValidationType(validationType)); $(control).after(Commons.ValidationB3GenerateFeedback(message)); }; Commons.ValidationB3RemoveAll = function (control) { var controlFormGroup = $(control).parents(".form-group"); $(controlFormGroup).find(".help-block").remove(); $(controlFormGroup).removeClass(TP.Commons.ValidationB3GetAllPossibleClassesFormGroup); }; Commons.ValidationB3GetAllPossibleClassesFormGroup = function () { return "has-error has-success has-danger has-warning"; }; /*End Bootstrap 3*/ /*Start Bootstrap 4*/ Commons.ValidationB4Generator = function (control, validationType, message) { var controlFormGroup = $(control).parents(".form-group"); Commons.ValidationB4RemoveAll(control); $(controlFormGroup).addClass(Commons.ValidationB4GetFormGroupClassByValidationType(validationType)); $(control).addClass(Commons.ValidationB4GetFormControlClassByValidationType(validationType)); $(control).after(Commons.ValidationB4GenerateFeedback(message)); }; Commons.ValidationB4RemoveAll = function (control) { var controlFormGroup = $(control).parents(".form-group"); $(controlFormGroup).find(".form-control-feedback").remove(); $(control).removeClass(Commons.ValidationB4GetAllPossibleClassesFormControl); $(controlFormGroup).removeClass(Commons.ValidationB4GetAllPossibleClassesFormGroup); }; Commons.ValidationB4GetFormGroupClassByValidationType = function (validationType) { var prefix = "has-"; return Commons.ValidationB4GetClassGeneral(validationType, prefix); }; Commons.ValidationB4GetFormControlClassByValidationType = function (validationType) { var prefix = "form-control-"; return Commons.ValidationB4GetClassGeneral(validationType, prefix); }; Commons.ValidationB4GetClassGeneral = function (validationType, prefix) { switch (validationType.toLowerCase()) { case "success": case "ok": return prefix == "form-control-" ? "is-valid" : prefix + "success"; case "warning": return prefix + "warning"; case "error": return prefix == "form-control-" ? "is-invalid" : prefix + "danger"; case "remove": case "delete": default: return ""; } ; }; Commons.ValidationB4GetAllPossibleClassesFormGroup = function () { return "has-success has-danger has-warning"; }; Commons.ValidationB4GetAllPossibleClassesFormControl = function () { return "form-control-success form-control-error form-control-warning is-valid is-invalid"; }; Commons.ValidationB4GenerateFeedback = function (message) { var html = ""; html += "
"; html += " " + message; html += "
"; return html; }; /*End Bootstrap 4*/ /*End validation*/ /*End Common for DSR and Global Ethics*/ Commons.CompareTwoValues = function (defaultValue, alternativeValue) { return Commons.IsNullOrEmpty(defaultValue) ? alternativeValue : defaultValue; }; Commons.LanguageCode = "en"; Commons.SiteUrl = ""; Commons.UrlPathServices = ""; Commons.LanguageCodeInputId = "CurrentLanguage"; Commons.SiteUrlInputId = "ThisSiteURLHidden"; Commons.PathServices = "api/v1/{{ServiceName}}"; return Commons; }()); TP.Commons = Commons; })(TP || (TP = {})); //# sourceMappingURL=commonfunctions.js.map