var Unibase;(function(n){let t;(function(t){let i;(function(i){let r;(function(r){class u extends t.Core.BaseComponent{constructor(){super();this.parentGroupId=0;this.groupId=0;this.groupName="";this._reportManager=i.Managers.ReportManager.Instance()}cssFiles(){return[]}jsFiles(){return["platform/analytics/requests/reportgroup.js","platform/core/infos/status.js"]}html(){return`
`}load(t,i){var r=this;r.parentGroupId=0;$("#"+i).find(".modal-body").css("height",$(window).outerHeight()-$("#"+i).find(".modal-header").outerHeight()-$("#"+i).find(".modal-footer").outerHeight()+"px");t!=0&&r.loadReportGroup(t);$("#btn_SaveReportGrp").click(function(){let e=$("#reportGroup_IsInternalGroup").prop("checked"),f=$("#txt_reportgroupindex").val();if($("#txt_GroupName").val()=="")return MessageHelper.Instance().showError("Please select ReportGroup","divReportGroup_ErrorMessage");let u=new n.Platform.Analytics.Reports.Requests.ReportGroup;u.GroupName=String($("#txt_GroupName").val());u.ReportGroupId=t;u.IsInternalGroup=e;u.ReportGroupIndex=parseInt(f)?parseInt(f):0;u.ParentGroupId=r.parentGroupId;r._reportManager.saveReportGroup(u).then(function(t){let r=JSON.parse(t.result);t.status==n.Data.Status.Error?MessageHelper.Instance().showError(t.message,"divReportGroup_ErrorMessage"):($("#RptGroup_AutoComplete").append("