var __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()); }); }; var Unibase; (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(); let remindersuniqueid = "Unibase_Platform_Communications_Reminders_App_Reminders"; Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallAppId(remindersuniqueid).then(function (response) { if (response.result != null) { Unibase.Themes.Compact.Components.Notification.ReminderAppid = response.result.InstalledAppId; } }); let taskremindersuniqueid = "Unibase_Platform_Communications_Reminders_App_TaskReminders"; Unibase.Platform.Apps.Managers.AppManager.Instance().getInstallAppId(taskremindersuniqueid).then(function (response) { if (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`; var viewallbtntask = `View All`; let instance = this; $('.tab-view').removeClass('biz-notification-mobile-view border'); $("#" + id).addClass('biz-notification-mobile-view border-0'); if (id == 'notification-tab') { Unibase.Themes.Compact.Components.Notification.Instance().loadReminders('tab-view'); $(".biz-settings-panel").css("background", "#fff9f9"); } if (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); } else { if (Unibase.Themes.Compact.Components.Notification.UnReadNotificationsCount == 0) { $('.clearall-checkbox').addClass('d-none'); $('.clear_alldiv').addClass('d-none'); } else { $('.clearall-checkbox').removeClass('d-none'); $('.clear_alldiv').removeClass('d-none'); } $(".biz-settings-panel").css("background", "#f7fbff"); $(".notification-footer").html(viewallbtn); if ($('#notificationTabView .rem-item-wrap').length) { $(".notification-footer").removeClass('d-none'); } else { $(".notification-footer").addClass('d-none'); } } } loadNotificationsTask(html, tabType, binding) { let tabViewHeaderHTML = `
${response[i].Subject}
You don't have any Tasks Right Now.
Will notify you when Something arrives'
You don't have any Notifications yet.
Will notify you when Something arrives'