(js/css) Update generated files

This commit is contained in:
InverseBot committed 2017-05-13 01:24:30 -04:00
1 parent c9b9150b96
commit 7207925362
30 files changed
+30 -35

No files matched your search

+1 -2
View File
@@ -1,3 +1,2 @@
!function(){"use strict";function a(b){"function"!=typeof b.then&&(angular.extend(this,b),_.forEach(this.identities,function(a){a.fullName?a.full=a.fullName+" <"+a.email+">":a.full="<"+a.email+">"}),a.$log.debug("Account: "+JSON.stringify(b,void 0,2)))}a.$factory=["$q","$timeout","$log","sgSettings","Resource","Preferences","Mailbox","Message",function(b,c,d,e,f,g,h,i){return angular.extend(a,{$q:b,$timeout:c,$log:d,$$resource:new f(e.activeUser("folderURL")+"Mail",e.activeUser()),$Preferences:g,$Mailbox:h,$Message:i}),a}];try{angular.module("SOGo.MailerUI")}catch(a){angular.module("SOGo.MailerUI",["SOGo.Common"])}angular.module("SOGo.MailerUI").factory("Account",a.$factory),a.$findAll=function(b){return b?a.$unwrapCollection(b):a.$$resource.fetch("","mailAccounts").then(function(b){return a.$unwrapCollection(b)})},a.$unwrapCollection=function(b){var c=[];return angular.forEach(b,function(b,d){b.id=d,c[d]=new a(b)}),a.$accounts=c,c},a.prototype.getLength=function(){return this.$flattenMailboxes().length},a.prototype.getItemAtIndex=function(a){var b;return b=this.$flattenMailboxes(),a>=0&&a<b.length?b[a]:null},a.prototype.$getMailboxes=function(b){var c=this;return!this.$mailboxes||b&&b.reload?a.$Mailbox.$find(this,b).then(function(b){return c.$mailboxes=b,c.$expanded=!1,a.$Preferences.ready().then(function(){var b,d=function(a){_.forEach(a,function(a){a.$expanded=b.indexOf("/"+a.id)>=0,a.children&&a.children.length>0&&d(a.children)})};a.$Preferences.settings.Mail.ExpandedFolders&&(b=angular.isString(a.$Preferences.settings.Mail.ExpandedFolders)?angular.fromJson(a.$Preferences.settings.Mail.ExpandedFolders):a.$Preferences.settings.Mail.ExpandedFolders,c.$expanded=b.indexOf("/"+c.id)>=0,b.length>0&&d(c.$mailboxes)),a.$accounts&&(c.$expanded|=1==a.$accounts.length),c.$flattenMailboxes({reload:!0})}),c.$mailboxes}):a.$q.when(this.$mailboxes)},a.prototype.$flattenMailboxes=function(b){var c=this,d=[],e=[],f=function(a){_.forEach(a,function(a){d.push(a),(b&&b.all||a.$expanded)&&a.children&&a.children.length>0&&f(a.children)})};return!this.$$flattenMailboxes||b&&(b.reload||b.all)?(f(this.$mailboxes),b&&b.all||(c.$$flattenMailboxes=d,b&&b.saveState&&(_.forEach(a.$accounts,function(a){a.$expanded&&e.push("/"+a.id),_.reduce(a.$$flattenMailboxes,function(a,b){return b.$expanded&&a.push("/"+b.id),a},e)}),a.$$resource.post(null,"saveFoldersState",e)))):d=this.$$flattenMailboxes,d},a.prototype.$getMailboxByType=function(a){var b=function(c){var d=_.find(c,function(b){return b.type==a});return d||angular.forEach(c,function(a){!d&&a.children&&a.children.length>0&&(d=b(a.children))}),d};return b(this.$mailboxes)},a.prototype.$getMailboxByPath=function(a){var b=function(c){var d=_.find(c,function(b){return b.path==a});return d||angular.forEach(c,function(a){!d&&a.children&&a.children.length>0&&(d=b(a.children))}),d};return b(this.$mailboxes)},a.prototype.$newMailbox=function(b,c){var d=this;return a.$$resource.post(b.toString(),"createFolder",{name:c}).then(function(){d.$getMailboxes({reload:!0})})},a.prototype.updateQuota=function(a){var b,c,d;b=Math.round(1e4*a.usedSpace/a.maxQuota)/100,c=l("quotasFormat"),d=c.formatted(b,Math.round(a.maxQuota/10.24)/100),this.$quota={percent:b,description:d}},a.prototype.$newMessage=function(){var b=this;return a.$$resource.fetch(this.id.toString(),"compose").then(function(c){return a.$log.debug("New message (compose): "+JSON.stringify(c,void 0,2)),new a.$Message(c.accountId,b.$getMailboxByPath(c.mailboxPath),c)}).then(function(b){return a.$$resource.fetch(b.$absolutePath({asDraft:!0}),"edit").then(function(c){return a.$log.debug("New message (edit): "+JSON.stringify(c,void 0,2)),angular.extend(b.editable,c),b.isNew=!0,b})})},a.prototype.$addDelegate=function(b){var c=this,d=a.$q.defer(),e={uid:b.uid};return!b.uid||_.indexOf(_.map(this.delegates,"uid"),b.uid)>-1?d.resolve():a.$$resource.fetch(this.id.toString(),"addDelegate",e).then(function(){c.delegates.push(b),d.resolve(c.users)},function(a,b){d.reject(l("An error occured please try again."))}),d.promise},a.prototype.$removeDelegate=function(b){var c=this,d={uid:b};return a.$$resource.fetch(this.id.toString(),"removeDelegate",d).then(function(){var a=_.indexOf(_.map(c.delegates,"uid"),b);a>=0&&c.delegates.splice(a,1)})}}(),function(){"use strict";function a(b,c){if(this.$account=b,"function"!=typeof c.then){if(this.init(c),this.name&&!this.path){var d=a.$$resource.create("createFolder",this.name);this.$unwrap(d)}}else this.$unwrap(c)}a.$factory=["$q","$timeout","$log","sgSettings","Resource","Message","Acl","Preferences","sgMailbox_PRELOAD",function(b,c,d,e,f,g,h,i,j){return angular.extend(a,{$q:b,$timeout:c,$log:d,$$resource:new f(e.activeUser("folderURL")+"Mail",e.activeUser()),$Message:g,$$Acl:h,$Preferences:i,$query:{sort:"arrival",asc:0},selectedFolder:null,$refreshTimeout:null,$virtualMode:!1,PRELOAD:j}),i.ready().then(function(){i.settings.Mail.SortingState&&(a.$query.sort=i.settings.Mail.SortingState[0],a.$query.asc=parseInt(iLine truncated
_.size(b)>0&&Q.selectedFolder.$markOrUnMarkMessagesAsJunk(b).then(function(){var c="/"+Q.account.id+"/folderINBOX";"junk"!=Q.selectedFolder.type&&(c="/"+Q.account.$getMailboxByType("junk").id),Q.selectedFolder.$moveMessages(b,c).then(function(b){r.$virtualMode?a&&e.go("mail.account.virtualMailbox"):G(a,b)})})}function J(a){var b=Q.selectedFolder.$selectedMessages();_.size(b)>0&&Q.selectedFolder.$copyMessages(b,"/"+a).then(function(){g.show(g.simple().content(l("%{0} message(s) copied",Q.selectedFolder.$selectedCount())).position("top right").hideDelay(2e3))})}function K(a){var b=Q.selectedFolder.hasSelectedMessage(),c=Q.selectedFolder.$selectedMessages(),d=Q.selectedFolder.$selectedCount();_.size(c)>0&&Q.selectedFolder.$moveMessages(c,"/"+a).then(function(a){g.show(g.simple().content(l("%{0} message(s) moved",d)).position("top right").hideDelay(2e3)),r.$virtualMode?b&&e.go("mail.account.virtualMailbox"):G(b,a)})}function L(){var a=0;_.forEach(F(),function(b){for(var c=0,d=b.$messages.length;c<d;c++)b.$messages[c].selected=!0;a+=d}),Q.mode.multiple=a}function M(){_.forEach(F(),function(a){_.forEach(a.$messages,function(a){a.selected=!1})}),Q.mode.multiple=0}function N(){var a=Q.selectedFolder.$selectedMessages();_.size(a)>0&&Q.selectedFolder.$flagMessages(a,"\\Flagged","add").then(function(a){_.forEach(a,function(a){a.isflagged=!0})})}function O(){var a=Q.selectedFolder.$selectedMessages();_.size(a)>0&&Q.selectedFolder.$flagMessages(a,"seen","remove").then(function(a){_.forEach(a,function(a){a.isread&&a.$mailbox.unseenCount++,a.isread=!1})})}function P(){var a=Q.selectedFolder.$selectedMessages();_.size(a)>0&&Q.selectedFolder.$flagMessages(a,"seen","add").then(function(a){_.forEach(a,function(a){a.isread||a.$mailbox.unseenCount--,a.isread=!0})})}var Q=this,R=angular.element(a.document).find("title").attr("sg-default")||"SOGo",S=[];a.$mailboxController=Q,Q.service=r,Q.accounts=h,Q.account=i,Q.selectedFolder=j,Q.selectMessage=D,Q.messageDialog=null,Q.toggleMessageSelection=E,Q.sort=t,Q.sortedBy=u,Q.searchMode=v,Q.cancelSearch=w,Q.newMessage=x,Q.mode={search:!1,multiple:0},Q.confirmDeleteSelectedMessages=H,Q.markOrUnMarkMessagesAsJunk=I,Q.copySelectedMessages=J,Q.moveSelectedMessages=K,Q.markSelectedMessagesAsFlagged=N,Q.markSelectedMessagesAsUnread=O,Q.markSelectedMessagesAsRead=P,Q.selectAll=L,Q.unselectMessages=M,j.selectFolder(),function(a){a.push(k.createHotkey({key:l("hotkey_search"),description:l("Search"),callback:v})),a.push(k.createHotkey({key:l("hotkey_compose"),description:l("Write a new message"),callback:function(a){null===Q.messageDialog&&x(a)}})),a.push(k.createHotkey({key:l("hotkey_junk"),description:l("Mark the selected messages as junk"),callback:I})),a.push(k.createHotkey({key:"space",description:l("Toggle item"),callback:E})),a.push(k.createHotkey({key:"shift+space",description:l("Toggle range of items"),callback:E})),a.push(k.createHotkey({key:"up",description:l("View next item"),callback:z,preventInClass:["sg-mail-part"]})),a.push(k.createHotkey({key:"down",description:l("View previous item"),callback:A,preventInClass:["sg-mail-part"]})),a.push(k.createHotkey({key:"shift+up",description:l("Add next item to selection"),callback:B,preventInClass:["sg-mail-part"]})),a.push(k.createHotkey({key:"shift+down",description:l("Add previous item to selection"),callback:C,preventInClass:["sg-mail-part"]})),a.push(k.createHotkey({key:"backspace",description:l("Delete selected message or folder"),callback:H})),_.forEach(a,function(a){k.registerHotkey(a)})}(S),angular.element(a).on("beforeunload",s),b.$on("$destroy",function(){angular.element(a).off("beforeunload",s),_.forEach(S,function(a){k.deregisterHotkey(a)})}),b.$watch(function(){return Q.selectedFolder.unseenCount},function(b){var c=R+" - ";b&&(c+="("+b+") "),c+=Q.selectedFolder.$displayName,a.document.title=c})}function b(a){return a[0].controller.prototype.resetScroll=function(){"messagesList"==this.$element.parent().attr("id")?this.updateSize():this.scrollTo(0)},a}a.$inject=["$window","$scope","$timeout","$q","$state","$mdDialog","$mdToast","stateAccounts","stateAccount","stateMailbox","sgHotkeys","encodeUriFilter","sgSettings","sgFocus","Dialog","Account","Mailbox"],angular.module("material.components.virtualRepeat").decorator("mdVirtualRepeatContainerDirective",b),b.$inject=["$delegate"],angular.module("SOGo.MailerUI").controller("MailboxController",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k,m,n,o,p,q,r,s,t,u){function v(a){T.showingAdvancedSearch=!0,T.search.mailbox=a,g(i["gt-md"])||h("left").close()}function w(){T.showingAdvancedSearch=!1,T.service.$virtualMode=!1,R=T.accounts[0],S=T.searchPreviousMailbox,b.go("mail.account.mailbox",{accountId:R.id,mailboxId:k(S.path)})}function x(){if(q.selectedFolder.$isLoading)T.virtualMailbox.stopSearch();else{var a,c=[],d=function(a){_.forEach(a,function(a){c.push(a),a.children&&a.children.length>0&&d(a.children)})};T.virtualMailbox=new r(T.accounts[0]),q.$virtualMode||(T.searchPrLine truncated
!function(){"use strict";function e(t){"function"!=typeof t.then&&(angular.extend(this,t),_.forEach(this.identities,function(e){e.fullName?e.full=e.fullName+" <"+e.email+">":e.full="<"+e.email+">"}),e.$log.debug("Account: "+JSON.stringify(t,void 0,2)))}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Preferences","Mailbox","Message",function(t,n,o,a,s,i,r,l){return angular.extend(e,{$q:t,$timeout:n,$log:o,$$resource:new s(a.activeUser("folderURL")+"Mail",a.activeUser()),$Preferences:i,$Mailbox:r,$Message:l}),e}];try{angular.module("SOGo.MailerUI")}catch(e){angular.module("SOGo.MailerUI",["SOGo.Common"])}angular.module("SOGo.MailerUI").factory("Account",e.$factory),e.$findAll=function(t){return t?e.$unwrapCollection(t):e.$$resource.fetch("","mailAccounts").then(function(t){return e.$unwrapCollection(t)})},e.$unwrapCollection=function(t){var n=[];return angular.forEach(t,function(t,o){t.id=o,n[o]=new e(t)}),e.$accounts=n,n},e.prototype.getLength=function(){return this.$flattenMailboxes().length},e.prototype.getItemAtIndex=function(e){var t;return t=this.$flattenMailboxes(),e>=0&&e<t.length?t[e]:null},e.prototype.$getMailboxes=function(t){var n=this;return!this.$mailboxes||t&&t.reload?e.$Mailbox.$find(this,t).then(function(t){return n.$mailboxes=t,n.$expanded=!1,e.$Preferences.ready().then(function(){var t,o=function(e){_.forEach(e,function(e){e.$expanded=t.indexOf("/"+e.id)>=0,e.children&&e.children.length>0&&o(e.children)})};e.$Preferences.settings.Mail.ExpandedFolders&&(t=angular.isString(e.$Preferences.settings.Mail.ExpandedFolders)?angular.fromJson(e.$Preferences.settings.Mail.ExpandedFolders):e.$Preferences.settings.Mail.ExpandedFolders,n.$expanded=t.indexOf("/"+n.id)>=0,t.length>0&&o(n.$mailboxes)),e.$accounts&&(n.$expanded|=1==e.$accounts.length),n.$flattenMailboxes({reload:!0})}),n.$mailboxes}):e.$q.when(this.$mailboxes)},e.prototype.$flattenMailboxes=function(t){var n=this,o=[],a=[],s=function(e){_.forEach(e,function(e){o.push(e),(t&&t.all||e.$expanded)&&e.children&&e.children.length>0&&s(e.children)})};return!this.$$flattenMailboxes||t&&(t.reload||t.all)?(s(this.$mailboxes),t&&t.all||(n.$$flattenMailboxes=o,t&&t.saveState&&(_.forEach(e.$accounts,function(e){e.$expanded&&a.push("/"+e.id),_.reduce(e.$$flattenMailboxes,function(e,t){return t.$expanded&&e.push("/"+t.id),e},a)}),e.$$resource.post(null,"saveFoldersState",a)))):o=this.$$flattenMailboxes,o},e.prototype.$getMailboxByType=function(e){var t=function(n){var o=_.find(n,function(t){return t.type==e});return o||angular.forEach(n,function(e){!o&&e.children&&e.children.length>0&&(o=t(e.children))}),o};return t(this.$mailboxes)},e.prototype.$getMailboxByPath=function(e){var t=function(n){var o=_.find(n,function(t){return t.path==e});return o||angular.forEach(n,function(e){!o&&e.children&&e.children.length>0&&(o=t(e.children))}),o};return t(this.$mailboxes)},e.prototype.$newMailbox=function(t,n){var o=this;return e.$$resource.post(t.toString(),"createFolder",{name:n}).then(function(){o.$getMailboxes({reload:!0})})},e.prototype.updateQuota=function(e){var t,n;t=Math.round(1e4*e.usedSpace/e.maxQuota)/100,n=l("quotasFormat").formatted(t,Math.round(e.maxQuota/10.24)/100),this.$quota={percent:t,description:n}},e.prototype.$newMessage=function(){var t=this;return e.$$resource.fetch(this.id.toString(),"compose").then(function(n){return e.$log.debug("New message (compose): "+JSON.stringify(n,void 0,2)),new e.$Message(n.accountId,t.$getMailboxByPath(n.mailboxPath),n)}).then(function(t){return e.$$resource.fetch(t.$absolutePath({asDraft:!0}),"edit").then(function(n){return e.$log.debug("New message (edit): "+JSON.stringify(n,void 0,2)),angular.extend(t.editable,n),t.isNew=!0,t})})},e.prototype.$addDelegate=function(t){var n=this,o=e.$q.defer(),a={uid:t.uid};return!t.uid||_.indexOf(_.map(this.delegates,"uid"),t.uid)>-1?o.resolve():e.$$resource.fetch(this.id.toString(),"addDelegate",a).then(function(){n.delegates.push(t),o.resolve(n.users)},function(e,t){o.reject(l("An error occured please try again."))}),o.promise},e.prototype.$removeDelegate=function(t){var n=this,o={uid:t};return e.$$resource.fetch(this.id.toString(),"removeDelegate",o).then(function(){var e=_.indexOf(_.map(n.delegates,"uid"),t);e>=0&&n.delegates.splice(e,1)})}}(),function(){"use strict";function e(t,n){if(this.$account=t,"function"!=typeof n.then){if(this.init(n),this.name&&!this.path){var o=e.$$resource.create("createFolder",this.name);this.$unwrap(o)}}else this.$unwrap(n)}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Message","Acl","Preferences","sgMailbox_PRELOAD",function(t,n,o,a,s,i,r,l,c){return angular.extend(e,{$q:t,$timeout:n,$log:o,$$resource:new s(a.activeUser("folderURL")+"Mail",a.activeUser()),$Message:i,$$Acl:r,$Preferences:l,$query:{sort:"arrival",asc:0},selectedFolder:null,$refreshTimeout:null,$virtualMode:!1,PRELOAD:c}),l.ready().then(function(){l.settings.Mail.SortingState&&(e.$query.sort=l.settings.Mail.SortingState[0],e.$query.asc=parseInt(l.settiLine truncated
//# sourceMappingURL=Mailer.services.js.map