var __awaiter,Unibase;(function(Unibase){let Themes;(function(Themes){let Compact;(function(Compact){let Components;(function(Components){class Index_Anonymous extends Unibase.Platform.Core.BaseComponent{init(callback,imagerUrl){Unibase.Platform.Helpers.NavigationHelper.SetInstance(new Compact.NavigationHelper);this.render(imagerUrl)}render(imagerUrl){const html=`
`;jQuery("#bizgaze_body").html(html);const cacheHelper=Unibase.Platform.Helpers.FileCacheHelper.Instance();cacheHelper.loadFile({FileName:"",FileType:Unibase.Platform.Helpers.FileType.Js},null)}}Components.Index_Anonymous=Index_Anonymous})(Components=Compact.Components||(Compact.Components={}))})(Compact=Themes.Compact||(Themes.Compact={}))})(Themes=Unibase.Themes||(Unibase.Themes={}))})(Unibase||(Unibase={})),function(Unibase){let Platform;(function(Platform){let Membership;(function(Membership){let Requests;(function(Requests){class Login{constructor(username,password,unibaseid,rememberMe){this.UserName=username;this.Password=password;this.UnibaseId=unibaseid;this.RememberMe=rememberMe}}Requests.Login=Login})(Requests=Membership.Requests||(Membership.Requests={}))})(Membership=Platform.Membership||(Platform.Membership={}))})(Platform=Unibase.Platform||(Unibase.Platform={}))}(Unibase||(Unibase={}));__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},function(Unibase){let Themes;(function(Themes){let Compact;(function(Compact){let Components;(function(Components){class Notification extends Unibase.Platform.Core.BaseComponent{static Instance(){return new Notification}init(containerid){Unibase.Themes.Compact.Components.Notification.containerid=containerid;Unibase.Themes.Compact.Components.Notification.Instance().GetUnreadRemindersCount();Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallAppId("Unibase_Platform_Communications_Reminders_App_Reminders").then(function(response){response.result!=null&&(Unibase.Themes.Compact.Components.Notification.ReminderAppid=response.result.InstalledAppId)});Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallAppId("Unibase_Platform_Communications_Reminders_App_TaskReminders").then(function(response){response.result!=null&&(Unibase.Themes.Compact.Components.Notification.TaskReminderAppid=response.result.InstalledAppId)});$("#Active_Process").click(function(){$("#Active_Process").addClass("active");$("#Active_Notification").removeClass("active");$("#Active_Tasks").removeClass("active");$(".Reminders").remove();Unibase.Themes.Compact.Components.Notification.Instance().GetRunnningProcess()})}tabView(id){var viewallbtn=`View All`,viewallbtntask=`View All`;let instance=this;$(".tab-view").removeClass("biz-notification-mobile-view border");$("#"+id).addClass("biz-notification-mobile-view border-0");id=="notification-tab"&&(Unibase.Themes.Compact.Components.Notification.Instance().loadReminders("tab-view"),$(".biz-settings-panel").css("background","#fff9f9"));id=="task-tab"?($(".clearall-checkbox").addClass("d-none"),$(".clear_alldiv").addClass("d-none"),Unibase.Themes.Compact.Components.Notification.Instance().loadTasks("tab-view"),$(".biz-settings-panel").css("background","#fff9f9"),$(".notification-footer").html(viewallbtntask)):(Unibase.Themes.Compact.Components.Notification.UnReadNotificationsCount==0?($(".clearall-checkbox").addClass("d-none"),$(".clear_alldiv").addClass("d-none")):($(".clearall-checkbox").removeClass("d-none"),$(".clear_alldiv").removeClass("d-none")),$(".biz-settings-panel").css("background","#f7fbff"),$(".notification-footer").html(viewallbtn),$("#notificationTabView .rem-item-wrap").length?$(".notification-footer").removeClass("d-none"):$(".notification-footer").addClass("d-none"))}loadNotificationsTask(html,tabType,binding){let tabViewHeaderHTML=`
You don't have any Notifications yet.
Will notify you when Something arrives'
${response[i].Subject}

You don't have any Tasks Right Now.
Will notify you when Something arrives'