(js/css) Update generated files

This commit is contained in:
Francis Lachapelle committed 2018-03-07 11:09:20 -05:00
1 parent e3ba7c8cab
commit df2926e872
34 files changed
+40 -34

No files matched your search

@@ -1,2 +1,2 @@
!function(){"use strict";function e(){var a,t,o,r=this;if(this.defaults={},this.settings={},a=e.$document[0].getElementById("UserDefaults")){try{o=angular.fromJson(a.textContent||a.innerHTML)}catch(a){e.$log.error("Can't parse user's defaults: "+a.message),o={}}o.SOGoMailLabelsColorsKeys=[],o.SOGoMailLabelsColorsValues=[],_.forEach(o.SOGoMailLabelsColors,function(e,a){o.SOGoMailLabelsColorsKeys.push(a),o.SOGoMailLabelsColorsValues.push(e)}),_.forEach(o.SOGoSieveFilters,function(e){_.forEach(e.actions,function(e){"addflag"==e.method&&"$"==e.argument.charAt(0)&&(e.argument="_"+e.argument)})}),o.SOGoRememberLastModule&&(o.SOGoLoginModule="Last"),o.SOGoMailAutoSave=parseInt(o.SOGoMailAutoSave)||0,o.SOGoMailComposeWindowEnabled=angular.isDefined(o.SOGoMailComposeWindow),o.SOGoMailComposeFontSizeEnabled=parseInt(o.SOGoMailComposeFontSize)>0,window.CKEDITOR&&o.SOGoMailComposeFontSizeEnabled&&(window.CKEDITOR.config.fontSize_defaultLabel=o.SOGoMailComposeFontSize,window.CKEDITOR.addCss(".cke_editable { font-size: "+o.SOGoMailComposeFontSize+"px; }")),_.forEach(o.AuxiliaryMailAccounts,function(e){isNaN(parseInt(e.port))&&(e.port=null)}),o.Vacation?(o.Vacation.startDate?o.Vacation.startDate=new Date(1e3*parseInt(o.Vacation.startDate)):(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date,o.Vacation.startDate=o.Vacation.startDate.beginOfDay(),o.Vacation.startDate.addDays(1)),o.Vacation.endDate?o.Vacation.endDate=new Date(1e3*parseInt(o.Vacation.endDate)):(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date(o.Vacation.startDate.getTime()),o.Vacation.endDate.addDays(1)),o.Vacation.autoReplyEmailAddresses&&o.Vacation.autoReplyEmailAddresses.length?o.Vacation.autoReplyEmailAddresses=o.Vacation.autoReplyEmailAddresses.join(","):delete o.Vacation.autoReplyEmailAddresses):o.Vacation={},angular.isUndefined(o.Vacation.autoReplyEmailAddresses)&&angular.isDefined(window.defaultEmailAddresses)&&(o.Vacation.autoReplyEmailAddresses=window.defaultEmailAddresses),angular.isUndefined(o.Vacation.daysBetweenResponse)&&(o.Vacation.daysBetweenResponse=7),angular.isUndefined(o.Vacation.startDate)&&(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date),angular.isUndefined(o.Vacation.endDate)&&(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date),o.Forward&&o.Forward.forwardAddress&&(o.Forward.forwardAddress=o.Forward.forwardAddress.join(",")),angular.isUndefined(o.SOGoCalendarCategoriesColors)&&(o.SOGoCalendarCategoriesColors={},o.SOGoCalendarCategories=[]),angular.isUndefined(o.SOGoContactsCategories)?o.SOGoContactsCategories=[]:o.SOGoContactsCategories=_.compact(o.SOGoContactsCategories),angular.extend(r.defaults,o),r.$mdDateLocaleProvider=e.$mdDateLocaleProvider,angular.extend(r.$mdDateLocaleProvider,o.locale),angular.extend(r.$mdDateLocaleProvider,{firstDayOfWeek:o.SOGoFirstDayOfWeek,firstWeekOfYear:o.SOGoFirstWeekOfYear}),r.$mdDateLocaleProvider.firstDayOfWeek=parseInt(o.SOGoFirstDayOfWeek),r.$mdDateLocaleProvider.weekNumberFormatter=function(e){return l("Week %d",e)},r.$mdDateLocaleProvider.msgCalendar=l("Calender"),r.$mdDateLocaleProvider.msgOpenCalendar=l("Open Calendar"),r.$mdDateLocaleProvider.parseDate=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoShortDateFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatDate=function(e){return e?e.format(r.$mdDateLocaleProvider,e.$dateFormat||r.defaults.SOGoShortDateFormat):""},r.$mdDateLocaleProvider.parseTime=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatTime=function(e){return e?e.format(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):""}}if(t=e.$document[0].getElementById("UserSettings")){try{o=angular.fromJson(t.textContent||t.innerHTML)}catch(a){e.$log.error("Can't parse user's settings: "+a.message),o={}}o.Calendar&&(o.Calendar.PreventInvitationsWhitelist?o.Calendar.PreventInvitationsWhitelist=_.map(o.Calendar.PreventInvitationsWhitelist,function(a,t){var o=/^(.+)\s<(\S+)>$/.exec(a),n=new e.$User({uid:t,cn:o[1],c_email:o[2]});return n.$$image||(n.$$image=r.avatar(n.c_email,32,{no_404:!0})),n}):o.Calendar.PreventInvitationsWhitelist=[]),angular.extend(r.settings,o)}}e.$factory=["$document","$q","$timeout","$log","$mdDateLocale","sgSettings","Gravatar","Resource","User",function(a,t,o,r,n,s,i,d,l){return angular.extend(e,{$document:a,$q:t,$timeout:o,$log:r,$mdDateLocaleProvider:n,$gravatar:i,$$resource:new d(s.activeUser("folderURL"),s.activeUser()),$resourcesURL:s.resourcesURL(),$User:l}),new e}];try{angular.module("SOGo.PreferencesUI")}catch(e){angular.module("SOGo.PreferencesUI",["SOGo.Common"])}angular.module("SOGo.PreferencesUI").factory("Preferences",e.$factory),e.prototype.ready=function(){return e.$log.warn("Preferences.ready is deprecated -- access settings/defaults directly."),e.$q.when(!0)},e.prototype.avatar=function(a,t,o){var r,n=this.defaults.SOGoAlternateAvatar;return r=this.defaults.SOGoGravatarEnabled?e.$gravatar(a,t,n,o):[e.$resourcesULine truncated
!function(){"use strict";function a(){var b,c,d,e=this;if(this.defaults={},this.settings={},b=a.$document[0].getElementById("UserDefaults")){try{d=angular.fromJson(b.textContent||b.innerHTML)}catch(b){a.$log.error("Can't parse user's defaults: "+b.message),d={}}d.SOGoMailLabelsColorsKeys=[],d.SOGoMailLabelsColorsValues=[],_.forEach(d.SOGoMailLabelsColors,function(a,b){d.SOGoMailLabelsColorsKeys.push(b),d.SOGoMailLabelsColorsValues.push(a)}),_.forEach(d.SOGoSieveFilters,function(a){_.forEach(a.actions,function(a){"addflag"==a.method&&"$"==a.argument.charAt(0)&&(a.argument="_"+a.argument)})}),d.SOGoRememberLastModule&&(d.SOGoLoginModule="Last"),d.SOGoMailAutoSave=parseInt(d.SOGoMailAutoSave)||0,d.SOGoMailComposeWindowEnabled=angular.isDefined(d.SOGoMailComposeWindow),d.SOGoMailComposeFontSizeEnabled=parseInt(d.SOGoMailComposeFontSize)>0,window.CKEDITOR&&d.SOGoMailComposeFontSizeEnabled&&(window.CKEDITOR.config.fontSize_defaultLabel=d.SOGoMailComposeFontSize,window.CKEDITOR.addCss(".cke_editable { font-size: "+d.SOGoMailComposeFontSize+"px; }")),_.forEach(d.AuxiliaryMailAccounts,function(a){isNaN(parseInt(a.port))&&(a.port=null)}),d.Vacation?(d.Vacation.startDate?d.Vacation.startDate=new Date(1e3*parseInt(d.Vacation.startDate)):(d.Vacation.startDateEnabled=0,d.Vacation.startDate=new Date,d.Vacation.startDate=d.Vacation.startDate.beginOfDay(),d.Vacation.startDate.addDays(1)),d.Vacation.endDate?d.Vacation.endDate=new Date(1e3*parseInt(d.Vacation.endDate)):(d.Vacation.endDateEnabled=0,d.Vacation.endDate=new Date(d.Vacation.startDate.getTime()),d.Vacation.endDate.addDays(1)),d.Vacation.autoReplyEmailAddresses&&d.Vacation.autoReplyEmailAddresses.length?d.Vacation.autoReplyEmailAddresses=d.Vacation.autoReplyEmailAddresses.join(","):delete d.Vacation.autoReplyEmailAddresses):d.Vacation={},angular.isUndefined(d.Vacation.autoReplyEmailAddresses)&&angular.isDefined(window.defaultEmailAddresses)&&(d.Vacation.autoReplyEmailAddresses=window.defaultEmailAddresses),angular.isUndefined(d.Vacation.daysBetweenResponse)&&(d.Vacation.daysBetweenResponse=7),angular.isUndefined(d.Vacation.startDate)&&(d.Vacation.startDateEnabled=0,d.Vacation.startDate=new Date),angular.isUndefined(d.Vacation.endDate)&&(d.Vacation.endDateEnabled=0,d.Vacation.endDate=new Date),d.Forward&&d.Forward.forwardAddress&&(d.Forward.forwardAddress=d.Forward.forwardAddress.join(",")),angular.isUndefined(d.SOGoCalendarCategoriesColors)&&(d.SOGoCalendarCategoriesColors={},d.SOGoCalendarCategories=[]),angular.isUndefined(d.SOGoContactsCategories)?d.SOGoContactsCategories=[]:d.SOGoContactsCategories=_.compact(d.SOGoContactsCategories),angular.extend(e.defaults,d),e.$mdDateLocaleProvider=a.$mdDateLocaleProvider,angular.extend(e.$mdDateLocaleProvider,d.locale),angular.extend(e.$mdDateLocaleProvider,{firstDayOfWeek:d.SOGoFirstDayOfWeek,firstWeekOfYear:d.SOGoFirstWeekOfYear}),e.$mdDateLocaleProvider.firstDayOfWeek=parseInt(d.SOGoFirstDayOfWeek),e.$mdDateLocaleProvider.weekNumberFormatter=function(a){return l("Week %d",a)},e.$mdDateLocaleProvider.msgCalendar=l("Calender"),e.$mdDateLocaleProvider.msgOpenCalendar=l("Open Calendar"),e.$mdDateLocaleProvider.parseDate=function(a){return a?a.parseDate(e.$mdDateLocaleProvider,e.defaults.SOGoShortDateFormat):new Date(NaN)},e.$mdDateLocaleProvider.formatDate=function(a){return a?a.format(e.$mdDateLocaleProvider,a.$dateFormat||e.defaults.SOGoShortDateFormat):""},e.$mdDateLocaleProvider.parseTime=function(a){return a?a.parseDate(e.$mdDateLocaleProvider,e.defaults.SOGoTimeFormat):new Date(NaN)},e.$mdDateLocaleProvider.formatTime=function(a){return a?a.format(e.$mdDateLocaleProvider,e.defaults.SOGoTimeFormat):""}}if(c=a.$document[0].getElementById("UserSettings")){try{d=angular.fromJson(c.textContent||c.innerHTML)}catch(b){a.$log.error("Can't parse user's settings: "+b.message),d={}}d.Calendar&&(d.Calendar.PreventInvitationsWhitelist?d.Calendar.PreventInvitationsWhitelist=_.map(d.Calendar.PreventInvitationsWhitelist,function(b,c){var d=/^(.+)\s<(\S+)>$/.exec(b),f=new a.$User({uid:c,cn:d[1],c_email:d[2]});return f.$$image||(f.$$image=e.avatar(f.c_email,32,{no_404:!0})),f}):d.Calendar.PreventInvitationsWhitelist=[]),angular.extend(e.settings,d)}}a.$factory=["$document","$q","$timeout","$log","$mdDateLocale","sgSettings","Gravatar","Resource","User",function(b,c,d,e,f,g,h,i,j){return angular.extend(a,{$document:b,$q:c,$timeout:d,$log:e,$mdDateLocaleProvider:f,$gravatar:h,$$resource:new i(g.activeUser("folderURL"),g.activeUser()),$resourcesURL:g.resourcesURL(),$User:j}),new a}];try{angular.module("SOGo.PreferencesUI")}catch(a){angular.module("SOGo.PreferencesUI",["SOGo.Common"])}angular.module("SOGo.PreferencesUI").factory("Preferences",a.$factory),a.prototype.ready=function(){return a.$log.warn("Preferences.ready is deprecated -- access settings/defaults directly."),a.$q.when(!0)},a.prototype.avatar=function(b,c,d){var e,f=this,g=f.defaults.SOGoAlternateAvatar;return e=f.defaults.SOGoGravatarEnabled?a.$gravatar(b,c,g,d):[a.$resourcesLine truncated
//# sourceMappingURL=Preferences.services.js.map