mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-10 22:37:12 +00:00
(js/css) Update generated files
This commit is contained in:
1 parent
ce7087fd6c
commit
ee62ead75d
2 files changed
+2
-2
No files matched your search
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function l(e){this.component=e,this.component.attendees&&_.forEach(this.component.attendees,function(e){e.image=l.$gravatar(e.email,32)}),this.workDaysOnly=!0,this.slotStartTimeLimit=new Date,this.slotStartTimeLimit.setMinutes(0),this.slotStartTimeLimit.setHours(l.dayStartHour),this.slotEndTimeLimit=new Date,this.slotEndTimeLimit.setMinutes(0),this.slotEndTimeLimit.setHours(l.dayEndHour),this.$days=[],this.updateFreeBusyCoverage(),this.updateFreeBusy()}l.$factory=["$q","$timeout","$log","sgSettings","Preferences","User","Card","Gravatar","Resource",function(e,t,n,i,a,o,r,s,c){return angular.extend(l,{$q:e,$timeout:t,$log:n,$settings:i,$User:o,$Preferences:a,$Card:r,$gravatar:s,$$resource:new c(i.activeUser("folderURL")+"Calendar",i.activeUser())}),l.dayStartHour=parseInt(a.defaults.SOGoDayStartTime.split(":")[0]),l.dayEndHour=parseInt(a.defaults.SOGoDayEndTime.split(":")[0]),l}];try{angular.module("SOGo.SchedulerUI")}catch(e){angular.module("SOGo.SchedulerUI",["SOGo.Common"])}angular.module("SOGo.SchedulerUI").factory("Attendees",l.$factory),l.timeToQuarters=function(e){return 4*e.getHours()+Math.ceil(e.getMinutes()/15)},l.prototype.getLength=function(){return this.component.attendees?this.component.attendees.length:0},l.prototype.initOrganizer=function(e){var t,n=this;e&&e.isSubscription?t=l.$User.$filter(e.owner).then(function(e){var t=e[0];n.component.organizer={uid:t.uid,name:t.cn,email:t.c_email}}):(this.component.organizer={uid:l.$settings.activeUser("login"),name:l.$settings.activeUser("identification"),email:l.$settings.activeUser("email")},t=l.$q.when()),t.then(function(){n.updateFreeBusyAttendee(n.component.organizer)})},l.prototype.add=function(e,t){var n,i,a=this;e&&((!this.component.attendees||t&&t.organizerCalendar)&&this.initOrganizer(t?t.organizerCalendar:void 0),e.$isList({expandable:!0})?(i=l.$Card.$find(e.container,e.c_name)).$id().then(function(e){_.forEach(i.refs,function(e){n={name:e.c_cn,email:e.$preferredEmail(t?t.partial:void 0),role:"req-participant",partstat:"needs-action",uid:e.c_uid,$avatarIcon:"person"},_.find(a.component.attendees,function(e){return e.email==n.email})||(n.image=l.$gravatar(n.email,32),a.component.attendees?a.component.attendees.push(n):a.component.attendees=[n],a.updateFreeBusyAttendee(n))})}):(n={uid:e.c_uid,domain:e.c_domain,isMSExchange:e.ismsexchange,name:e.c_cn,email:e.$preferredEmail(),role:"req-participant",partstat:"needs-action",$avatarIcon:e.$avatarIcon},_.find(this.attendees,function(e){return e.email==n.email})||(n.image=l.$gravatar(n.email,32),this.component.attendees?this.component.attendees.push(n):this.component.attendees=[n],this.updateFreeBusyAttendee(n))))},l.prototype.hasAttendee=function(e){var t=_.find(this.component.attendees,function(t){return _.find(e.emails,function(e){return e.value==t.email})});return angular.isDefined(t)},l.prototype.remove=function(t){var e=_.findIndex(this.component.attendees,function(e){return e.email==t.email});this.component.attendees.splice(e,1)},l.prototype.updateFreeBusyCoverage=function(){var o,r,s,e,c={};this.component.start&&this.component.end&&(o=new Date(this.component.start.getTime()),r=new Date(this.component.end.getTime()),this.component.isAllDay?(o.setHours(l.dayStartHour),o.setMinutes(0),r.setHours(l.dayEndHour),r.setMinutes(0),s=e=0):(s=parseInt(o.getMinutes()/15+.5),e=parseInt(r.getMinutes()/15+.5)),o.setMinutes(15*s),r.setMinutes(15*e),_.forEach(o.daysUpTo(r),function(e,t){var n,i=e.getDate(),a=e.getDayString();if(a===o.getDayString())for(n=e.getHours().toString(),c[a]={},c[a][n]=[];0<s;)c[a][n].push(0),s--;else e=e.beginOfDay(),c[a]={};for(;e.getTime()<r.getTime()&&e.getDate()==i;)n=e.getHours().toString(),angular.isUndefined(c[a][n])&&(c[a][n]=[]),c[a][n].push(1),e.addMinutes(15)}),this.freebusy=c)},l.prototype.coversFreeBusy=function(e,t,n){return this.freebusy&&angular.isDefined(this.freebusy[e])&&angular.isDefined(this.freebusy[e][t])&&1==this.freebusy[e][t][n]},l.prototype.getDays=function(e){var t,n,i,a=this;return e?(t=e,(n=new Date(e.getTime())).addMinutes(this.component.delta)):(t=this.component.start,n=this.component.end),(0===this.$days.length||_.findIndex(this.$days,["getDayString",t.getDayString()])<0||_.findIndex(this.$days,["getDayString",n.getDayString()])<0)&&(t=t.beginOfDay().addDays(-7),n=n.beginOfDay().addDays(7),i=l.$Preferences.$mdDateLocaleProvider.formatDate,this.$days.splice(0,this.$days.length),_.forEach(t.daysUpTo(n),function(e){e.$dateFormat=l.$Preferences.defaults.SOGoLongDateFormat,a.$days.push({stringWithSeparator:i(e),getDayString:e.getDayString()})})),this.$days},l.prototype.updateFreeBusy=function(t){var n=this,i=[];return 0<this.getLength()&&(this.component.organizer&&i.push(this.updateFreeBusyAttendee(this.component.organizer,t)),_.forEach(_.filter(this.component.attendees,"uid"),function(e){i.push(n.updateFreeBusyAttendee(e,t))})),l.$q.all(i)},l.prototype.updateFreeBusyAttendee=function(a,e){var t,n,i,o;if(a.uid)return n=a.uid,a.doLine truncated
|
||||
!function(){"use strict";function l(e){this.component=e,this.component.attendees&&_.forEach(this.component.attendees,function(e){e.image=l.$gravatar(e.email,32)}),this.workDaysOnly=!0,this.slotStartTimeLimit=new Date,this.slotStartTimeLimit.setMinutes(0),this.slotStartTimeLimit.setHours(l.dayStartHour),this.slotEndTimeLimit=new Date,this.slotEndTimeLimit.setMinutes(0),this.slotEndTimeLimit.setHours(l.dayEndHour),this.$days=[],this.updateFreeBusyCoverage(),this.updateFreeBusy()}l.$factory=["$q","$timeout","$log","sgSettings","Preferences","User","Card","Gravatar","Resource",function(e,t,n,i,a,o,r,s,c){return angular.extend(l,{$q:e,$timeout:t,$log:n,$settings:i,$User:o,$Preferences:a,$Card:r,$gravatar:s,$$resource:new c(i.activeUser("folderURL")+"Calendar",i.activeUser())}),l.dayStartHour=parseInt(a.defaults.SOGoDayStartTime.split(":")[0]),l.dayEndHour=parseInt(a.defaults.SOGoDayEndTime.split(":")[0]),l}];try{angular.module("SOGo.SchedulerUI")}catch(e){angular.module("SOGo.SchedulerUI",["SOGo.Common"])}angular.module("SOGo.SchedulerUI").factory("Attendees",l.$factory),l.timeToQuarters=function(e){return 4*e.getHours()+Math.ceil(e.getMinutes()/15)},l.prototype.getLength=function(){return this.component.attendees?this.component.attendees.length:0},l.prototype.initOrganizer=function(e){var t,n=this;e&&e.isSubscription?t=l.$User.$filter(e.owner).then(function(e){var t=e[0];n.component.organizer={uid:t.uid,name:t.cn,email:t.c_email}}):(this.component.organizer={uid:l.$settings.activeUser("login"),name:l.$settings.activeUser("identification"),email:l.$settings.activeUser("email")},t=l.$q.when()),t.then(function(){n.updateFreeBusyAttendee(n.component.organizer)})},l.prototype.add=function(e,t){var n,i,a=this;e&&((!this.component.attendees||t&&t.organizerCalendar)&&this.initOrganizer(t?t.organizerCalendar:void 0),e.$isList({expandable:!0})?(i=l.$Card.$find(e.container,e.c_name)).$id().then(function(e){_.forEach(i.refs,function(e){n={name:e.c_cn,email:e.$preferredEmail(t?t.partial:void 0),role:"req-participant",partstat:"needs-action",uid:e.c_uid,$avatarIcon:"person"},_.find(a.component.attendees,function(e){return e.email==n.email})||(n.image=l.$gravatar(n.email,32),a.component.attendees?a.component.attendees.push(n):a.component.attendees=[n],a.updateFreeBusyAttendee(n))})}):(n={uid:e.c_uid,domain:e.c_domain,isMSExchange:e.ismsexchange,name:e.c_cn,email:e.$preferredEmail(),role:"req-participant",partstat:"needs-action",$avatarIcon:e.$avatarIcon},_.find(this.attendees,function(e){return e.email==n.email})||(n.image=l.$gravatar(n.email,32),this.component.attendees?this.component.attendees.push(n):this.component.attendees=[n],this.updateFreeBusyAttendee(n))))},l.prototype.hasAttendee=function(e){var t=_.find(this.component.attendees,function(t){return _.find(e.emails,function(e){return e.value==t.email})});return angular.isDefined(t)},l.prototype.remove=function(t){var e=_.findIndex(this.component.attendees,function(e){return e.email==t.email});this.component.attendees.splice(e,1)},l.prototype.updateFreeBusyCoverage=function(){var o,r,s,e,c={};this.component.start&&this.component.end&&(o=new Date(this.component.start.getTime()),r=new Date(this.component.end.getTime()),this.component.isAllDay?(o.setHours(l.dayStartHour),o.setMinutes(0),r.setHours(l.dayEndHour),r.setMinutes(0),s=e=0):(s=parseInt(o.getMinutes()/15+.5),e=parseInt(r.getMinutes()/15+.5)),o.setMinutes(15*s),r.setMinutes(15*e),_.forEach(o.daysUpTo(r),function(e,t){var n,i=e.getDate(),a=e.getDayString();if(a===o.getDayString())for(n=e.getHours().toString(),c[a]={},c[a][n]=[];0<s;)c[a][n].push(0),s--;else e=e.beginOfDay(),c[a]={};for(;e.getTime()<r.getTime()&&e.getDate()==i;)n=e.getHours().toString(),angular.isUndefined(c[a][n])&&(c[a][n]=[]),c[a][n].push(1),e.addMinutes(15)}),this.freebusy=c)},l.prototype.coversFreeBusy=function(e,t,n){return this.freebusy&&angular.isDefined(this.freebusy[e])&&angular.isDefined(this.freebusy[e][t])&&1==this.freebusy[e][t][n]},l.prototype.getDays=function(e){var t,n,i,a=this;return e?(t=e,(n=new Date(e.getTime())).addMinutes(this.component.delta)):(t=this.component.start,n=this.component.end),(0===this.$days.length||_.findIndex(this.$days,["getDayString",t.getDayString()])<0||_.findIndex(this.$days,["getDayString",n.getDayString()])<0)&&(t=t.beginOfDay().addDays(-7),n=n.beginOfDay().addDays(7),i=l.$Preferences.$mdDateLocaleProvider.formatDate,this.$days.splice(0,this.$days.length),_.forEach(t.daysUpTo(n),function(e){e.$dateFormat=l.$Preferences.defaults.SOGoLongDateFormat,a.$days.push({stringWithSeparator:i(e),getDayString:e.getDayString()})})),this.$days},l.prototype.updateFreeBusy=function(t){var n=this,i=[];return 0<this.getLength()&&(this.component.organizer&&i.push(this.updateFreeBusyAttendee(this.component.organizer,t)),_.forEach(_.filter(this.component.attendees,"uid"),function(e){i.push(n.updateFreeBusyAttendee(e,t))})),l.$q.all(i)},l.prototype.updateFreeBusyAttendee=function(a,e){var t,n,i,o;if(a.uid)return n=a.uid,a.doLine truncated
|
||||
//# sourceMappingURL=Scheduler.services.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Scheduler/Attendees.service.js","Scheduler/Calendar.service.js","Scheduler/Component.service.js","Scheduler/CalendarController.js","Scheduler/CalendarListController.js","Scheduler/CalendarsController.js","Scheduler/ComponentController.js","Scheduler/sgCalendarDay.directive.js","Scheduler/sgCalendarDayBlock.directive.js","Scheduler/sgCalendarDayTable.directive.js","Scheduler/sgCalendarGhost.directive.js","Scheduler/sgCalendarListEvent.directive.js","Scheduler/sgCalendarListItem.directive.js","Scheduler/sgCalendarMonthDay.directive.js","Scheduler/sgCalendarMonthEvent.directive.js","Scheduler/sgCalendarPrintStylesheet.directive.js","Scheduler/sgCalendarScrollView.directive.js","Scheduler/sgCategoryStylesheet.directive.js","Scheduler/sgDraggableCalendarBlock.directive.js","Scheduler/sgNowLine.directive.js"],"names":["Attendees","component","this","attendees","_","forEach","attendee","image","$gravatar","email","workDaysOnly","slotStartTimeLimit","Date","setMinutes","setHours","dayStartHour","slotEndTimeLimit","dayEndHour","$days","updateFreeBusyCoverage","updateFreeBusy","$factory","$q","$timeout","$log","Settings","Preferences","User","Card","Gravatar","Resource","angular","extend","$settings","$User","$Preferences","$Card","$$resource","activeUser","parseInt","defaults","SOGoDayStartTime","split","SOGoDayEndTime","module","e","factory","timeToQuarters","dateTime","getHours","Math","ceil","getMinutes","prototype","getLength","length","initOrganizer","calendar","promise","_this","isSubscription","$filter","owner","then","results","organizer","uid","name","cn","c_email","when","updateFreeBusyAttendee","add","card","options","list","organizerCalendar","undefined","$isList","expandable","$find","container","c_name","$id","listId","refs","ref","c_cn","$preferredEmail","partial","role","partstat","c_uid","$avatarIcon","find","o","push","domain","c_domain","isMSExchange","ismsexchange","hasAttendee","emails","value","isDefined","remove","index","findIndex","currentAttendee","splice","roundedStart","roundedEnd","startQuarter","endQuarter","freebusy","start","end","getTime","isAllDay","daysUpTo","date","hourKey","currentDay","getDate","dayKey","getDayString","toString","beginOfDay","isUndefined","addMinutes","coversFreeBusy","day","hour","quarter","getDays","refDate","sd","ed","formatFcn","delta","addDays","$mdDateLocaleProvider","formatDate","$dateFormat","SOGoLongDateFormat","stringWithSeparator","promises","filter","all","resource","params","days","sday","map","eday","userResource","intersection","keys","fetch","data","i","forwardFindDate","currentStart","foundDate","maxOffset","endLimit","duration","offset","firstStep","floor","currentEntries","indexOf","startLimit","testDuration","foundTime","setTime","forwardAdjustCurrentStart","getDay","backwardFindDate","lastIndexOf","testOffset","debug","backwardAdjustCurrentStart","findSlot","direction","findDate","adjustCurrentStart","clone","setSeconds","step","mergeFreebusy","startDay","j","attendeeEntries","flatMap","Calendar","futureCalendarData","init","id","newCalendarData","create","$unwrap","Component","Acl","$Component","$$Acl","$view","EventDragDayLength","EventDragHorizontalOffset","ConflictHTTPErrorCode","$defaultCalendar","SOGoDefaultCalendar","$findAll","active","$add","sibling","isWebCalendar","$webcalendars","$subscriptions","$calendars","localeCompare","settings","FoldersOrder","saveFoldersOrder","$reloadAll","writable","calendars","union","isOwned","acls","objectCreator","calendarData","group","login","$get","$getIndex","$subscribe","path","$addWebCalendar","url","d","defer","urls","webCalendarURL","reject","post","isEditable","isRemote","JSON","stringify","resolve","response","status","reloadWebCalendars","$error","l","statusText","$deleteComponents","components","pid","uids","saveFoldersActivation","ids","request","folders","color","$acl","isSuperUser","$shadowData","$omit","$futureCalendarData","getClassName","base","$rename","$save","$delete","$reset","key","save","setCredentials","username","password","export","ownerPaths","realOwnerId","type","filename","webDavICSURL","substring","join","open","$setActivation","$getComponent","componentId","recurrenceId","isError","isObject","copy","futureComponentData","newComponentData","newguid","isNew","$rootScope","Component_STATUS","STATUS","$Attendees","timeFormat","$query","search","$queryEvents","sort","asc","filterpopup","$queryTasks","$refreshTimeout","$ghost","EventsFilterState","TasksFilterState","EventsSortingState","TasksSortingState","show_completed","ShowCompletedTasks","$categories","SOGoCalendarCategoriesColors","SOGoTimeFormat","constant","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","$selectedCount","count","$events","event","selected","$tasks","task","$startRefreshTimeout","cancel","refreshViewCheck","SOGoRefreshViewCheck","f","bind","$emit","timeInterval","$isLoading","$loaded","otherType","now","month","getMonth","year","getFullYear","queryKey","capitaLine truncated
|
||||
{"version":3,"sources":["Scheduler/Attendees.service.js","Scheduler/Calendar.service.js","Scheduler/Component.service.js","Scheduler/CalendarController.js","Scheduler/CalendarListController.js","Scheduler/CalendarsController.js","Scheduler/ComponentController.js","Scheduler/sgCalendarDay.directive.js","Scheduler/sgCalendarDayBlock.directive.js","Scheduler/sgCalendarDayTable.directive.js","Scheduler/sgCalendarGhost.directive.js","Scheduler/sgCalendarListEvent.directive.js","Scheduler/sgCalendarListItem.directive.js","Scheduler/sgCalendarMonthDay.directive.js","Scheduler/sgCalendarMonthEvent.directive.js","Scheduler/sgCalendarPrintStylesheet.directive.js","Scheduler/sgCalendarScrollView.directive.js","Scheduler/sgCategoryStylesheet.directive.js","Scheduler/sgDraggableCalendarBlock.directive.js","Scheduler/sgNowLine.directive.js"],"names":["Attendees","component","this","attendees","_","forEach","attendee","image","$gravatar","email","workDaysOnly","slotStartTimeLimit","Date","setMinutes","setHours","dayStartHour","slotEndTimeLimit","dayEndHour","$days","updateFreeBusyCoverage","updateFreeBusy","$factory","$q","$timeout","$log","Settings","Preferences","User","Card","Gravatar","Resource","angular","extend","$settings","$User","$Preferences","$Card","$$resource","activeUser","parseInt","defaults","SOGoDayStartTime","split","SOGoDayEndTime","module","e","factory","timeToQuarters","dateTime","getHours","Math","ceil","getMinutes","prototype","getLength","length","initOrganizer","calendar","promise","_this","isSubscription","$filter","owner","then","results","organizer","uid","name","cn","c_email","when","updateFreeBusyAttendee","add","card","options","list","organizerCalendar","undefined","$isList","expandable","$find","container","c_name","$id","listId","refs","ref","c_cn","$preferredEmail","partial","role","partstat","c_uid","$avatarIcon","find","o","push","domain","c_domain","isMSExchange","ismsexchange","hasAttendee","emails","value","isDefined","remove","index","findIndex","currentAttendee","splice","roundedStart","roundedEnd","startQuarter","endQuarter","freebusy","start","end","getTime","isAllDay","daysUpTo","date","hourKey","currentDay","getDate","dayKey","getDayString","toString","beginOfDay","isUndefined","addMinutes","coversFreeBusy","day","hour","quarter","getDays","refDate","sd","ed","formatFcn","delta","addDays","$mdDateLocaleProvider","formatDate","$dateFormat","SOGoLongDateFormat","stringWithSeparator","promises","filter","all","resource","params","days","sday","map","eday","userResource","intersection","keys","fetch","data","i","forwardFindDate","currentStart","foundDate","maxOffset","endLimit","duration","offset","firstStep","floor","currentEntries","indexOf","startLimit","testDuration","foundTime","setTime","forwardAdjustCurrentStart","getDay","backwardFindDate","lastIndexOf","testOffset","debug","backwardAdjustCurrentStart","findSlot","direction","findDate","adjustCurrentStart","clone","setSeconds","step","mergeFreebusy","startDay","j","attendeeEntries","flatMap","Calendar","futureCalendarData","init","id","newCalendarData","create","$unwrap","Component","Acl","$Component","$$Acl","$view","EventDragDayLength","EventDragHorizontalOffset","ConflictHTTPErrorCode","$defaultCalendar","SOGoDefaultCalendar","$findAll","active","$add","sibling","isWebCalendar","$webcalendars","$subscriptions","$calendars","localeCompare","settings","FoldersOrder","saveFoldersOrder","$reloadAll","writable","calendars","union","isOwned","acls","objectCreator","calendarData","group","login","$get","$getIndex","$subscribe","path","$addWebCalendar","url","d","defer","urls","webCalendarURL","reject","post","isEditable","isRemote","JSON","stringify","resolve","response","status","reloadWebCalendars","$error","l","statusText","$deleteComponents","components","pid","uids","saveFoldersActivation","ids","request","folders","color","$acl","isSuperUser","$shadowData","$omit","$futureCalendarData","getClassName","base","$rename","$save","$delete","$reset","key","save","setCredentials","username","password","export","ownerPaths","realOwnerId","type","filename","webDavICSURL","substring","join","open","$setActivation","$getComponent","componentId","recurrenceId","isError","isObject","copy","futureComponentData","newComponentData","newguid","isNew","$rootScope","Component_STATUS","STATUS","$Attendees","timeFormat","$query","search","$queryEvents","sort","asc","filterpopup","$queryTasks","$refreshTimeout","$ghost","EventsFilterState","TasksFilterState","EventsSortingState","TasksSortingState","show_completed","ShowCompletedTasks","$categories","SOGoCalendarCategoriesColors","SOGoTimeFormat","constant","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","$selectedCount","count","$events","event","selected","$tasks","task","$startRefreshTimeout","cancel","refreshViewCheck","SOGoRefreshViewCheck","f","bind","$emit","timeInterval","$isLoading","$loaded","otherType","now","month","getMonth","year","getFullYear","queryKey","capitaLine truncated
|
||||
Reference in new issue
Block a user