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();this.indexInstance=n.Themes.Compact.Components.Index.Instance();this.layoutIndex=this.indexInstance.layoutIndex;this.leftLayout=this.indexInstance.leftLayout;this.topLayout=this.indexInstance.topLayout;this.topLeftLayout=this.indexInstance.topLeftLayout;this.currentTheme=this.indexInstance.currentTheme;this.Logo=this.indexInstance.Logo;this.desktopMode=this.indexInstance.desktopMode;this.tabMode=this.indexInstance.tabMode;this.switchToSecondary=!1;this.isRestrictHidden="";this.initialLoad=!1;this.isList=!1;this.isDshboardBck=!1;this.isDshboardBckArray=[];this.dashboards=[];this.apps=[];this.createapps=[];this.fileCacheHelper.loadCssFile("tenants/themes/compact/components/nav/nav.style.css",null);this.fileCacheHelper.loadJsFiles(["platform/connect/components/chat.js","platform/connect/managers/chatmanager.js","platform/membership/infos/identity.js","platform/membership/managers/accountmanager.js","tenants/themes/compact/components/nav/nav.template.js","apps/crm/companies/managers/companymanager.js","apps/hrms/components/attendence.js","platform/communications/enums/reminders/remindertype.js","platform/communications/managers/reminders/remindermanager.js","tenants/themes/compact/components/details/details.js"],null)}cssFiles(){return[]}jsFiles(){return[]}html(){var c,l,a,v,t=this,u="NA",y="NA",o,s,h,f,i,r;n.Platform.Membership.Infos.Identity.getCurrentUser().settings!=null&&(o=n.Platform.Membership.Infos.Identity.getCurrentUser().settings.find(n=>n.settingName=="branchname"),o!=undefined&&(u=o.settingValue,y=u.length>20?o.settingValue.substring(0,20)+"...":u));s="NA";n.Platform.Membership.Infos.Identity.getCurrentUser().settings!=null&&(h=n.Platform.Membership.Infos.Identity.getCurrentUser().settings.find(n=>n.settingName=="branchcode"),h!=undefined&&h!=null&&(s=h.settingValue));f="";i=n.Platform.Membership.Infos.Identity.getCurrentUser().name;i!=null&&i!=undefined&&i!=""&&(f=i.length>20?i.substring(0,20)+"...":i);n.Platform.Membership.Infos.Identity.currentUser.isRestrictedUser&&(t.isRestrictHidden="d-none");r="";let e=`
`}loadimage(){var t,n=(t=this.currentUser)===null||t===void 0?void 0:t.photoUrl;n!=null&&n!=undefined&&n!=""?$("#loginUserImg").attr("src",n):$("#loginUserImg").attr("src","tenants/themes/compact/imgs/avatar.svg")}load(t,i){function s(){if(f=f+1,f>=3600&&!isMobileApp()){var t=$("#bizgaze_body").find("#_bizgaze_modal").find("#sessionsModal").length;t==0&&n.Themes.Compact.Components.Nav.instance.sessiontimeout("nav-branches")}}var o,e,f;const r=this;o=this.html(0,i);this.layoutIndex==r.leftLayout&&$("#"+i).html(o);$(window).on("orientationchange",function(){if((screen.width<1198||isMobileApp)&&screen.width>screen.height)bootbox.confirm({message:"Screen Rotation detectedNo Dashboards Found!
${t}