/home/ivoiecob/email.hirewise-va.com/static/js/MobileSyncWebclient.app.c7aa504a1260ee6dad1f.min.js
"use strict";(self.webpackChunkafterlogic_aurora_platform=self.webpackChunkafterlogic_aurora_platform||[]).push([[3695],{TQaw:(e,t,i)=>{var n=i("a7T2"),o=i("ERH9");e.exports={ServerModuleName:"MobileSync",HashModuleName:"mobilesync",ServerDavModuleName:"Dav",ExternalHostNameOfDAVServer:"",init:function(e){var t=e[this.ServerDavModuleName];n.isEmpty(t)||(this.ExternalHostNameOfDAVServer=o.pString(t.ExternalHostNameOfDAVServer,this.ExternalHostNameOfDAVServer))},update:function(e){this.ExternalHostNameOfDAVServer=e}}},"Yk/t":(e,t,i)=>{var n=i("a7T2"),o=i("p09A"),s=i("LKDt"),a=i("3cxN"),l=i("8QQh"),r=i("Z9uT"),S=i("yU9o"),c=i("/Odb"),b=i("5D2l"),u=i("KIwC"),h=i("TQaw");function M(){this.oMailMobileSyncSettingsView=b.run("MailWebclient","getMobileSyncSettingsView"),this.oFilesMobileSyncSettingsView=b.run("FilesWebclient","getMobileSyncSettingsView"),this.oCalendarMobileSyncSettingsView=b.run("CalendarWebclient","getMobileSyncSettingsView"),this.oContactsMobileSyncSettingsView=b.run("ContactsWebclient","getMobileSyncSettingsView"),this.oCreateLoginPasswordView=b.run("OAuthIntegratorWebclient","getCreateLoginPasswordView"),this.enableDav=o.observable(!1),this.showSyncViaUrlSection=o.computed(function(){return this.enableDav()&&(b.isModuleEnabled("CalendarWebclient")||b.isModuleEnabled("ContactsWebclient"))},this),this.sSyncViaUrlSectionInfo=this.getSyncViaUrlSectionInfo(),this.sSyncViaUrlIOSDeviceSectionInfo=s.i18n("MOBILESYNCWEBCLIENT/INFO_DAVSYNC_IOS_DEVICE",{WEBMAIL_URL:a.getAppPath()}),this.davServer=o.observable(""),this.bIosDevice=c.iosDevice,this.bDemo=u.IsDemo,this.visibleDavViaUrls=o.computed(function(){return!!this.oCalendarMobileSyncSettingsView&&this.oCalendarMobileSyncSettingsView.visible()||!!this.oContactsMobileSyncSettingsView},this),this.credentialsHintText=S.mobileCredentialsHintText}M.prototype.ViewTemplate="MobileSyncWebclient_MobileSyncSettingsPaneView",M.prototype.showTab=function(){l.send(h.ServerModuleName,"GetInfo",null,this.onGetInfoResponse,this)},M.prototype.getSyncViaUrlSectionInfo=function(){var e=b.isModuleEnabled("CalendarWebclient"),t=b.isModuleEnabled("ContactsWebclient");return e&&t?s.i18n("MOBILESYNCWEBCLIENT/INFO_DAVSYNC"):e?s.i18n("MOBILESYNCWEBCLIENT/INFO_DAVSYNC_CALENDAR_ONLY"):t?s.i18n("MOBILESYNCWEBCLIENT/INFO_DAVSYNC_CONTACTS_ONLY"):""},M.prototype.onGetInfoResponse=function(e,t){var i=e.Result,o=i.EnableDav?i.Dav:null;i?(this.enableDav(!!i.EnableDav),this.enableDav()&&o&&(this.davServer(o.Server),this.oFilesMobileSyncSettingsView&&n.isFunction(this.oFilesMobileSyncSettingsView.populate)&&this.oFilesMobileSyncSettingsView.populate(o),this.oCalendarMobileSyncSettingsView&&n.isFunction(this.oCalendarMobileSyncSettingsView.populate)&&this.oCalendarMobileSyncSettingsView.populate(o),this.oContactsMobileSyncSettingsView&&n.isFunction(this.oContactsMobileSyncSettingsView.populate)&&this.oContactsMobileSyncSettingsView.populate(o))):r.showErrorByCode(e)},e.exports=new M},bA0T:(e,t,i)=>{e.exports=function(e){var t=i("LKDt"),n=i("yU9o"),o=i("5D2l"),s=i("TQaw");return s.init(e),o.isModuleAvailable(s.ServerModuleName)&&n.isUserNormalOrTenant()?{start:function(e){e.run("SettingsWebclient","registerSettingsTab",[function(){return i("Yk/t")},s.HashModuleName,t.i18n("MOBILESYNCWEBCLIENT/LABEL_SETTINGS_TAB")])}}:null}}}]);