var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Unibase;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{constructor(){super(...arguments);this.firstLoad=!0;this.filterClickBtn=!0;this.jsindex=0;this.htmlindex=0;this.evalExecuted=0;this._bizgaze_core_activeinstalledappId=0;this._bizgaze_core_activeportletid=0;this._dashboard_first_load=0}jsFiles(){return["platform/analytics/components/reportbuilder/reportbuilder.js","tenants/themes/compact/dashboard.min.js","platform/analytics/components/commonfilter/_commonfilter.js","platform/analytics/enums/globaldaterangetype.js","platform/core/infos/status.js","platform/membership/components/userlogindetailswidget.js","libs/mobile/jquerySwipeHandler.js"]}cssFiles(){return[]}html(t,i){var r;let o=$(window).width(),f;f=o<=576?"mx-2":"mx-20";let u="",e="";n.Platform.Membership.Infos.Identity.currentUser.isRestrictedUser==!0&&(u="d-none");let s=window.location.hash;return s.includes("ticket")&&(e="d-none"),`
`}load(t,i){n.Platform.Helpers.FileCacheHelper.Instance().addCacheFiles(["tenants/themes/compact/widgets/reportwidgets/default.js","tenants/themes/compact/widgets/kpiwidgets/default.js","tenants/themes/compact/widgets/detailwidgets/default.js","tenants/themes/compact/widgets/detailwidgets/singledata.js","tenants/themes/compact/widgets/detailwidgets/singlecolumn.js","tenants/themes/compact/widgets/detailwidgets/singlecolumn_noborder.js","tenants/themes/compact/widgets/kpiwidgets/comparision.js","tenants/themes/compact/widgets/kpiwidgets/icon.js","tenants/themes/compact/widgets/kpiwidgets/valuewithpercentage.js","tenants/themes/compact/widgets/kpiwidgets/twovalue.js","tenants/themes/compact/widgets/reportwidgets/withnoheaderandfooter.js","platform/widgets/components/widgetpermission.js","tenants/themes/compact/widgets/kpiwidgets/twovaluebgcolor.js","tenants/themes/compact/widgets/kpiwidgets/valuewithpercentagebgcolor.js","tenants/themes/compact/widgets/kpiwidgets/twovaluecenterline.js","tenants/themes/compact/widgets/kpiwidgets/owlcarouselslider.js","tenants/themes/compact/widgets/kpiwidgets/valuewithpercentageprogressbar.js","tenants/themes/compact/widgets/kpiwidgets/kpi_fulfillment.js","tenants/themes/compact/widgets/kpiwidgets/carouselslider.js","tenants/themes/compact/widgets/kpiwidgets/carouselsliderbgcolor.js","platform/analytics/components/reportviewer/widgetreportviewer.js","platform/analytics/components/reportviewer/reportviewer.js","platform/analytics/enums/reporttype.js","platform/analytics/providers/ireportviewer.js","platform/analytics/enums/viewertype.js","platform/analytics/components/tableviewer/tableviewer.js","platform/analytics/components/templateviewer/templateviewer.js","platform/widgets/managers/widgetmanager.js","tenants/themes/compact/widgets/detailwidgets/customdesign.js","platform/core/enums/expressionoperator.js","platform/apps/enums/appconfigurationtypes.js","tenants/themes/compact/widgets/kpiwidgets/comparisionrightbarcolor.js","tenants/themes/compact/widgets/kpiwidgets/comparisionbottombarcolor.js","tenants/themes/compact/widgets/kpiwidgets/singlevalueborder.js","tenants/themes/compact/widgets/kpiwidgets/twovaluebottombarcolor.js","tenants/themes/compact/widgets/kpiwidgets/singlevaluepiechart.js","tenants/themes/compact/widgets/kpiwidgets/iconbgcolor.js","tenants/themes/compact/widgets/kpiwidgets/iconcolor.js","tenants/themes/compact/widgets/kpiwidgets/iconleftbarcolor.js","tenants/themes/compact/widgets/kpiwidgets/manager/kpimanager.js","tenants/themes/compact/widgets/kpiwidgets/manager/interfaces/ikpimanager.js","tenants/themes/compact/components/dashboard/walkthrough.js"]);let r=this;$(window).outerWidth()<=575&&($("#dashboardwidget-container-outer").css("margin-left","-15px").css("margin-right","-15px"),$("#dashboardwidget-container-scroll").removeClass("px-0"));$(`#filter_toggle_btn${i}`).click(function(){if(!$(`#bizCmnFilterDp_${i}`).hasClass("show")){let t=Number($("#hf_PortletId").val());n.Platform.Analytics.Components._CommonFilter.Instance().commonFilter(t,i)}});$(document).on("click",".daterangepicker",function(n){n.stopPropagation()});$("#dbHeaderRight").on("shown.bs.dropdown",function(){$(this).hasClass("show")&&$(`#filter_toggle_btn${i}`).find(".la-filter").removeClass("la-filter").addClass("la-times")});$("#dbHeaderRight").on("hide.bs.dropdown",function(){$(`#filter_toggle_btn${i}`).find(".la-times").removeClass("la-times").addClass("la-filter")});n.Platform.Analytics.Components._CommonFilter.Instance().commonFilter(0,i)}init(){}loadDashboard(){var n=this}loadCreateDashboard(){var t=this;t.fileCacheHelper.loadJsFile("platform/dashboards/components/createdashboard.js",function(){t.navigationHelper.popup(0,"",n.Platform.Dashboards.Components.CreateDashboard.Instance(),null,n.Platform.Helpers.Size.DockLeft)})}confirmSave(){$("#_bizgaze_modal").before('