Commit df2926e8 authored by Francis Lachapelle's avatar Francis Lachapelle
Browse files

(js/css) Update generated files

parent e3ba7c8c
md-tabs.md-dynamic-height{-webkit-transition:none!important;transition:none!important}md-tab-content.md-right:not(.md-active){-webkit-animation:none;animation:none}md-tab-content.md-left:not(.md-active){-webkit-animation:none;animation:none}md-tab-content.md-left:not(.md-active) *,md-tab-content.md-right:not(.md-active) *{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-tab-content.md-left,md-tab-content.md-right{-webkit-transition:none!important;transition:none!important}.md-tab{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-tab-content{-webkit-transition:none!important;transition:none!important}md-ink-bar.md-left,md-ink-bar.md-right{-webkit-transition:none!important;transition:none!important}md-backdrop{-webkit-transition:none!important;transition:none!important}md-slider .md-focus-thumb{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important;-webkit-animation:none!important;animation:none!important}md-slider ._md-thumb{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-option{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-dialog md-toolbar,md-dialog md-toolbar .md-input,md-dialog md-toolbar md-icon,md-dialog md-toolbar md-input-container.md-input-has-value label,md-dialog md-toolbar md-input-container.md-input-has-value label:not(.md-no-float),md-dialog.md-transition-in,md-dialog.md-transition-in .md-input,md-dialog.md-transition-in md-icon,md-dialog.md-transition-in md-input-container.md-input-has-value label,md-dialog.md-transition-in md-input-container.md-input-has-value label:not(.md-no-float),md-dialog.md-transition-out,md-dialog.md-transition-out .md-input,md-dialog.md-transition-out md-icon,md-dialog.md-transition-out md-input-container.md-input-has-value label,md-dialog.md-transition-out md-input-container.md-input-has-value label:not(.md-no-float){-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-card.sg-collapsed,md-card.sg-expanded{-webkit-transition:none!important;transition:none!important}.md-ripple,.md-ripple-container,sg-ripple{-webkit-transition:none!important;transition:none!important}.md-ripple.md-ripple-remove{-webkit-animation:none!important;animation:none!important}.sg-progress-circular-floating{-webkit-transition:none!important;transition:none!important}md-checkbox ._md-icon{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-radio-button .md-off,md-radio-button .md-on{-webkit-transition:none!important;transition:none!important}.md-container::before{-webkit-transition:none!important;transition:none!important}.md-button,.md-button.md-fab{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-grid-tile{-webkit-transition:none!important;transition:none!important}.md-icon,md-icon{-webkit-transition:none!important;transition:none!important}md-input-container label{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-slider .md-focus-ring,md-slider .md-sign,md-slider .md-sign::after,md-slider .md-thumb,md-slider .md-thumb-container,md-slider .md-track-fill{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-input-container .md-char-counter,md-input-container .md-input-message-animation{-webkit-transition:none!important;transition:none!important}.md-tooltip{-webkit-transition:none!important;transition:none!important}md-fab-speed-dial.sg-fab-bottom-center{-webkit-transition:none!important;transition:none!important}md-fab-speed-dial.md-scale .md-fab-action-item{-webkit-transition:none!important;transition:none!important}md-select-menu,md-select-menu md-content{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-select-menu-container.md-leave{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-open-menu-container.md-active,.md-open-menu-container.md-active>md-menu-content>*{-webkit-transition:none!important;transition:none!important}.md-datepicker-calendar-pane,.sg-timepicker-time-pane{-webkit-transition:none!important;transition:none!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-datepicker-calendar,.md-datepicker-calendar-pane .md-calendar,.sg-timepicker-time,.sg-timepicker-time-pane .md-calendar{-webkit-transition:none!important;transition:none!important}.view-detail,.view-list,.view-list--close{-webkit-transition:none!important;transition:none!important}.md-sidenav-left,.md-sidenav-left .md-clickable{-webkit-transition:none!important;transition:none!important}.attendees{-webkit-transition:none!important;transition:none!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.attendees-chips md-chips-wrap{-webkit-transition:none!important;transition:none!important}.sg-reversible{-webkit-transition:none!important;transition:none!important;position:relative}.sg-reversible .sg-back,.sg-reversible .sg-face,.sg-reversible.sg-flip{position:relative;-webkit-transform:none!important;transform:none!important}.sg-reversible .sg-back,.sg-reversible.sg-flip .sg-face{display:none}.sg-reversible.sg-flip .sg-back{display:block}md-card{border:1px solid rgba(0,0,0,.14)!important;-webkit-box-shadow:none!important;box-shadow:none!important}md-dialog{border:1px solid rgba(0,0,0,.14)!important;-webkit-box-shadow:none!important;box-shadow:none!important}md-select-menu{border:1px solid rgba(0,0,0,.14)!important;-webkit-box-shadow:none!important;box-shadow:none!important}.md-button.md-raised{border:1px solid rgba(0,0,0,.14)!important;-webkit-box-shadow:none!important;box-shadow:none!important}md-toast .md-toast-content{-webkit-box-shadow:none!important;box-shadow:none!important}
md-tabs.md-dynamic-height{-webkit-transition:none!important;transition:none!important}md-tab-content.md-left:not(.md-active),md-tab-content.md-right:not(.md-active){-webkit-animation:none;animation:none}md-tab-content.md-left:not(.md-active) *,md-tab-content.md-right:not(.md-active) *{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-tab-content.md-left,md-tab-content.md-right{-webkit-transition:none!important;transition:none!important}.md-tab{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}md-backdrop,md-ink-bar.md-left,md-ink-bar.md-right,md-tab-content{-webkit-transition:none!important;transition:none!important}md-slider .md-focus-thumb{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important;-webkit-animation:none!important;animation:none!important}md-dialog md-toolbar,md-dialog md-toolbar .md-input,md-dialog md-toolbar md-icon,md-dialog md-toolbar md-input-container.md-input-has-value label,md-dialog md-toolbar md-input-container.md-input-has-value label:not(.md-no-float),md-dialog.md-transition-in,md-dialog.md-transition-in .md-input,md-dialog.md-transition-in md-icon,md-dialog.md-transition-in md-input-container.md-input-has-value label,md-dialog.md-transition-in md-input-container.md-input-has-value label:not(.md-no-float),md-dialog.md-transition-out,md-dialog.md-transition-out .md-input,md-dialog.md-transition-out md-icon,md-dialog.md-transition-out md-input-container.md-input-has-value label,md-dialog.md-transition-out md-input-container.md-input-has-value label:not(.md-no-float),md-option,md-slider ._md-thumb{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-ripple,.md-ripple-container,md-card.sg-collapsed,md-card.sg-expanded,sg-ripple{-webkit-transition:none!important;transition:none!important}.md-ripple.md-ripple-remove{-webkit-animation:none!important;animation:none!important}.sg-progress-circular-floating{-webkit-transition:none!important;transition:none!important}md-checkbox ._md-icon{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-container::before,md-radio-button .md-off,md-radio-button .md-on{-webkit-transition:none!important;transition:none!important}.md-button,.md-button.md-fab{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-icon,md-grid-tile,md-icon{-webkit-transition:none!important;transition:none!important}md-input-container label,md-slider .md-focus-ring,md-slider .md-sign,md-slider .md-sign::after,md-slider .md-thumb,md-slider .md-thumb-container,md-slider .md-track-fill{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-tooltip,md-fab-speed-dial.md-scale .md-fab-action-item,md-fab-speed-dial.sg-fab-bottom-center,md-input-container .md-char-counter,md-input-container .md-input-message-animation{-webkit-transition:none!important;transition:none!important}.md-select-menu-container.md-leave,md-select-menu,md-select-menu md-content{-webkit-transition:none!important;transition:none!important;-webkit-transition-duration:0s!important;transition-duration:0s!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-open-menu-container.md-active,.md-open-menu-container.md-active>md-menu-content>*{-webkit-transition:none!important;transition:none!important}.md-datepicker-calendar-pane,.sg-timepicker-time-pane{-webkit-transition:none!important;transition:none!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.md-datepicker-calendar,.md-datepicker-calendar-pane .md-calendar,.md-sidenav-left,.md-sidenav-left .md-clickable,.sg-timepicker-time,.sg-timepicker-time-pane .md-calendar,.view-detail,.view-list,.view-list--close{-webkit-transition:none!important;transition:none!important}.attendees{-webkit-transition:none!important;transition:none!important;-webkit-transition-delay:0s!important;transition-delay:0s!important}.attendees-chips md-chips-wrap{-webkit-transition:none!important;transition:none!important}.sg-reversible{-webkit-transition:none!important;transition:none!important;position:relative}.sg-reversible .sg-back,.sg-reversible .sg-face,.sg-reversible.sg-flip{position:relative;-webkit-transform:none!important;transform:none!important}.sg-reversible .sg-back,.sg-reversible.sg-flip .sg-face{display:none}.sg-reversible.sg-flip .sg-back{display:block}.md-button.md-raised,md-card,md-dialog,md-select-menu{border:1px solid rgba(0,0,0,.14)!important;box-shadow:none!important}md-toast .md-toast-content{box-shadow:none!important}
/*# sourceMappingURL=no-animation.css.map */
\ No newline at end of file
{"version":3,"sources":["../scss/core/no-animation.scss","css/no-animation.css"],"names":[],"mappings":"AAcA,0BACE,mBAAA,eAAA,WAAA,eAGF,wCACE,kBAAA,KAAA,UAAA,KAGF,uCACE,kBAAA,KAAA,UAAA,KAGF,yCCNA,0CDQE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aCDF,uBDIA,wBAEE,mBAAA,eAAA,WAAA,eAGF,QACE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aAGF,eACE,mBAAA,eAAA,WAAA,eCCF,mBDEA,oBAEE,mBAAA,eAAA,WAAA,eAIF,YACE,mBAAA,eAAA,WAAA,eAIF,0BACE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aACA,kBAAA,eAAA,UAAA,eAGF,qBACE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aAGF,UACE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aCiBF,qBACA,+BAGA,6BAFA,iEACA,mFARqC,2BACrC,qCAGA,mCAFA,uEACA,yFDXA,4BCKA,sCAGA,oCAFA,wEACA,0FDEM,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aAMN,qBCUA,oBDRE,mBAAA,eAAA,WAAA,eAIF,WCUA,qBACA,UDRE,mBAAA,eAAA,WAAA,eAGF,4BACE,kBAAA,eAAA,UAAA,eAIF,+BACE,mBAAA,eAAA,WAAA,eAIF,sBACE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,y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A,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aASF,SALA,aAKA,QAJE,mBAAA,eAAA,WAAA,eAUF,yBAOA,yBAAA,mBAAA,0BAAA,oBAAA,8BAAA,yBANE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aAsBF,YASA,+CAJA,uCAVA,oCAAqC,+CACnC,mBAAA,eAAA,WAAA,eAyBF,mCAPA,eAAA,0BAEE,mBAAA,eAAA,WAAA,eACA,4BAAA,aAAA,oBAAA,aACA,yBAAA,aAAA,iBAAA,aASF,kCAAA,oDAEE,mBAAA,eAAA,WAAA,eAIF,6BAAA,yBAEE,mBAAA,eAAA,WAAA,eACA,yBAAA,aAAA,iBAAA,aAGF,wBAAA,0CAcA,iBAAA,+BAdA,oBAAA,sCAQA,aAAA,WAAA,kBAJE,mBAAA,eAAA,WAAA,eAgBF,WACE,mBAAA,eAAA,WAAA,eACA,yBAAA,aAAA,iBAAA,aAEF,+BACE,mBAAA,eAAA,WAAA,eAOF,eACE,mBAAA,eAAA,WAAA,eACA,SAAA,SAGF,wBAAA,wBAAA,uBAGE,SAAA,SACA,kBAAA,eAAA,UAAA,eAGF,wBAAA,gCAEE,QAAA,KAGF,gCACE,QAAA,MAsBF,qBAfA,QAKA,UAKA,eATE,OAAA,IAAA,MAAA,0BACA,WAAA,eAkBF,2BACE,WAAA"}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(){"use strict";angular.module("SOGo.AdministrationUI",["ui.router","SOGo.Common","SOGo.Authentication","SOGo.PreferencesUI","SOGo.ContactsUI","SOGo.SchedulerUI"]).config(e).run(n),e.$inject=["$stateProvider","$urlRouterProvider"];function e(e,n){e.state("administration",{abstract:!0,views:{administration:{templateUrl:"administration.html",controller:"AdministrationController",controllerAs:"app"}}}).state("administration.rights",{url:"/rights",views:{module:{templateUrl:"rights.html"}}}).state("administration.rights.edit",{url:"/:userId/:folderId/edit",views:{acl:{templateUrl:"UIxAdministrationAclEditor",controller:"AdministrationAclController",controllerAs:"acl"}},resolve:{stateUser:t,stateFolder:r}}),n.otherwise("/rights")}t.$inject=["$q","$stateParams","User"];function t(e,t,r){var n;return n=_.find(r.$users,function(e){return e.uid==t.userId}),angular.isUndefined(n)?r.$filter(t.userId).then(function(s){return n=_.find(r.$users,function(e){return e.uid==t.userId}),angular.isUndefined(n)?e.reject("User with ID "+t.userId+" not found"):n.$folders().then(function(){return n})}):n}r.$inject=["$state","$stateParams","decodeUriFilter","stateUser","AddressBook","Calendar"];function r(e,t,r,n,s,i){var o,d,l=r(t.folderId);return d="Appointment"==(o=_.find(n.$$folders,function(e){return e.name==l})).type?new i({id:o.name.split("/").pop(),owner:o.owner,name:o.displayName}):new s({id:o.name.split("/").pop(),owner:o.owner,name:o.displayName}),n.selectedFolder=d.id,d}n.$inject=["$log","$rootScope","$state"];function n(e,t,r){t.$on("$stateChangeError",function(t,n,s,i,o,d){e.error(d),r.go("administration.rights")}),t.$on("$routeChangeError",function(t,r,n,s){e.error(t,r,n,s)})}}(),function(){"use strict";e.$inject=["$timeout","$state","$mdMedia","$mdToast","stateUser","stateFolder","User"];function e(e,t,r,n,s,i,o){var d=this;d.user=s,d.folder=i,d.folderType=angular.isDefined(i.$cards)?"AddressBook":"Calendar",d.selectedUser=null,d.selectedUid=null,d.selectUser=a,d.selectAllRights=function(e){i.$acl.$selectAllRights(e)},d.showRights=function(e){return d.selectedUid==e.uid&&e.rights},d.removeUser=function(t){e(function(){i.$acl.$removeUser(t.uid,i.owner)},500)},d.getTemplate=function(){return angular.isDefined(i.$cards)?"../"+i.owner+"/Contacts/"+i.id+"/UIxContactsUserRightsEditor":"../"+i.owner+"/Calendar/"+i.id+"/UIxCalUserRightsEditor"},d.close=u,d.save=function(){i.$acl.$saveUsersRights(i.owner).then(function(){n.show(n.simple().content(l("ACLs saved")).position("bottom right").hideDelay(3e3)),r("xs")&&u()})},d.userToAdd="",d.searchText="",d.userFilter=function(e){return o.$filter(e,i.$acl.users,{dry:!0,uid:d.user.uid})},d.addUser=function(e){e&&i.$acl.$addUser(e,i.owner).then(function(e){d.userToAdd="",d.searchText="",d.selectedUid=null,e&&a(e)})},i.$acl.$users(i.owner).then(function(e){d.users=e});function a(e,t){if(t&&t.target.parentNode.classList.contains("md-secondary"))return!1;d.selectedUid==e.uid?d.selectedUid=null:(d.selectedUid=e.uid,d.selectedUser=e,d.selectedUser.$rights())}function u(){t.go("administration.rights").then(function(){delete d.user.selectedFolder,d.user=null})}}angular.module("SOGo.AdministrationUI").controller("AdministrationAclController",e)}(),function(){"use strict";e.$inject=["$state","$mdToast","$mdMedia","$mdSidenav","sgConstant","Dialog","encodeUriFilter","User"];function e(e,t,r,n,s,i,o,d){var l=this;l.service=d,l.selectedUser=null,l.users=d.$users,l.go=function(t){e.go("administration."+t),r(s["gt-md"])||n("left").close()},l.filter=function(e){d.$filter(e)},l.selectUser=function(e){l.selectedUser==l.users[e]?l.selectedUser=null:l.users[e].$folders().then(function(){l.selectedUser=l.users[e]})},l.selectFolder=function(t){e.go("administration.rights.edit",{userId:l.selectedUser.uid,folderId:o(t.name)})}}angular.module("SOGo.AdministrationUI").controller("AdministrationController",e)}();
!function(){"use strict";function a(a,d){a.state("administration",{abstract:!0,views:{administration:{templateUrl:"administration.html",controller:"AdministrationController",controllerAs:"app"}}}).state("administration.rights",{url:"/rights",views:{module:{templateUrl:"rights.html"}}}).state("administration.rights.edit",{url:"/:userId/:folderId/edit",views:{acl:{templateUrl:"UIxAdministrationAclEditor",controller:"AdministrationAclController",controllerAs:"acl"}},resolve:{stateUser:b,stateFolder:c}}),d.otherwise("/rights")}function b(a,b,c){var d;return d=_.find(c.$users,function(a){return a.uid==b.userId}),angular.isUndefined(d)?c.$filter(b.userId).then(function(e){return d=_.find(c.$users,function(a){return a.uid==b.userId}),angular.isUndefined(d)?a.reject("User with ID "+b.userId+" not found"):d.$folders().then(function(){return d})}):d}function c(a,b,c,d,e,f){var g,h,i=c(b.folderId);return g=_.find(d.$$folders,function(a){return a.name==i}),h="Appointment"==g.type?new f({id:g.name.split("/").pop(),owner:g.owner,name:g.displayName}):new e({id:g.name.split("/").pop(),owner:g.owner,name:g.displayName}),d.selectedFolder=h.id,h}function d(a,b,c){b.$on("$stateChangeError",function(b,d,e,f,g,h){a.error(h),c.go("administration.rights")}),b.$on("$routeChangeError",function(b,c,d,e){a.error(b,c,d,e)})}angular.module("SOGo.AdministrationUI",["ui.router","SOGo.Common","SOGo.Authentication","SOGo.PreferencesUI","SOGo.ContactsUI","SOGo.SchedulerUI"]).config(a).run(d),a.$inject=["$stateProvider","$urlRouterProvider"],b.$inject=["$q","$stateParams","User"],c.$inject=["$state","$stateParams","decodeUriFilter","stateUser","AddressBook","Calendar"],d.$inject=["$log","$rootScope","$state"]}(),function(){"use strict";function a(a,b,c,d,e,f,g){function h(){return angular.isDefined(f.$cards)?"../"+f.owner+"/Contacts/"+f.id+"/UIxContactsUserRightsEditor":"../"+f.owner+"/Calendar/"+f.id+"/UIxCalUserRightsEditor"}function i(a){f.$acl.$selectAllRights(a)}function j(a,b){return(!b||!b.target.parentNode.classList.contains("md-secondary"))&&void(r.selectedUid==a.uid?r.selectedUid=null:(r.selectedUid=a.uid,r.selectedUser=a,r.selectedUser.$rights()))}function k(a){return r.selectedUid==a.uid&&a.rights}function m(a){return g.$filter(a,f.$acl.users,{dry:!0,uid:r.user.uid})}function n(b){a(function(){f.$acl.$removeUser(b.uid,f.owner)},500)}function o(a){a&&f.$acl.$addUser(a,f.owner).then(function(a){r.userToAdd="",r.searchText="",r.selectedUid=null,a&&j(a)})}function p(){b.go("administration.rights").then(function(){delete r.user.selectedFolder,r.user=null})}function q(){f.$acl.$saveUsersRights(f.owner).then(function(){d.show(d.simple().content(l("ACLs saved")).position("bottom right").hideDelay(3e3)),c("xs")&&p()})}var r=this;r.user=e,r.folder=f,r.folderType=angular.isDefined(f.$cards)?"AddressBook":"Calendar",r.selectedUser=null,r.selectedUid=null,r.selectUser=j,r.selectAllRights=i,r.showRights=k,r.removeUser=n,r.getTemplate=h,r.close=p,r.save=q,r.userToAdd="",r.searchText="",r.userFilter=m,r.addUser=o,f.$acl.$users(f.owner).then(function(a){r.users=a})}a.$inject=["$timeout","$state","$mdMedia","$mdToast","stateUser","stateFolder","User"],angular.module("SOGo.AdministrationUI").controller("AdministrationAclController",a)}(),function(){"use strict";function a(a,b,c,d,e,f,g,h){function i(b){a.go("administration."+b),c(e["gt-md"])||d("left").close()}function j(a){h.$filter(a)}function k(a){m.selectedUser==m.users[a]?m.selectedUser=null:m.users[a].$folders().then(function(){m.selectedUser=m.users[a]})}function l(b){a.go("administration.rights.edit",{userId:m.selectedUser.uid,folderId:g(b.name)})}var m=this;m.service=h,m.selectedUser=null,m.users=h.$users,m.go=i,m.filter=j,m.selectUser=k,m.selectFolder=l}a.$inject=["$state","$mdToast","$mdMedia","$mdSidenav","sgConstant","Dialog","encodeUriFilter","User"],angular.module("SOGo.AdministrationUI").controller("AdministrationController",a)}();
//# sourceMappingURL=Administration.js.map
\ No newline at end of file
{"version":3,"sources":["Administration/Administration.app.js","Administration/AdministrationAclController.js","Administration/AdministrationController.js"],"names":["angular","module","config","configure","run","runBlock","$inject","$stateProvider","$urlRouterProvider","state","abstract","views","administration","templateUrl","controller","controllerAs","url","acl","resolve","stateUser","stateFolder","otherwise","$q","$stateParams","User","user","_","find","$users","uid","userId","isUndefined","$filter","then","users","reject","$folders","$state","decodeUriFilter","AddressBook","Calendar","folder","o","folderId","$$folders","name","type","id","split","pop","owner","displayName","selectedFolder","$log","$rootScope","$on","event","toState","toParams","fromState","fromParams","error","go","current","previous","rejection","AdministrationAclController","$timeout","$mdMedia","$mdToast","vm","this","folderType","isDefined","$cards","selectedUser","selectedUid","selectUser","selectAllRights","$acl","$selectAllRights","showRights","rights","removeUser","$removeUser","getTemplate","close","save","$saveUsersRights","show","simple","content","l","position","hideDelay","userToAdd","searchText","userFilter","$query","dry","addUser","data","$addUser","$event","target","parentNode","classList","contains","$rights","AdministrationController","$mdSidenav","sgConstant","Dialog","encodeUriFilter","service","filter","i","selectFolder"],"mappings":"CAGA,WACE,aAEAA,QAAQC,OAAO,yBAA0B,YAAa,cAAe,sBAAuB,qBAAsB,kBAAmB,qBAClIC,OAAOC,GACPC,IAAIC,GAKPF,EAAUG,SAAW,iBAAkB,sBACvC,SAASH,EAAUI,EAAgBC,GACjCD,EACGE,MAAM,kBACLC,UAAU,EACVC,OACEC,gBACEC,YAAa,sBACbC,WAAY,2BACZC,aAAc,UAInBN,MAAM,yBACLO,IAAK,UACLL,OACEV,QACEY,YAAa,kBAIlBJ,MAAM,8BACLO,IAAK,0BACLL,OACEM,KACEJ,YAAa,6BACbC,WAAY,8BACZC,aAAc,QAGlBG,SACEC,UAAWA,EACXC,YAAaA,KAKnBZ,EAAmBa,UAAU,WAM/BF,EAAUb,SAAW,KAAM,eAAgB,QAC3C,SAASa,EAAUG,EAAIC,EAAcC,GACnC,IAAIC,EAMJ,OAJAA,EAAOC,EAAEC,KAAKH,EAAKI,OAAQ,SAASH,GAClC,OAAOA,EAAKI,KAAON,EAAaO,SAG9B9B,QAAQ+B,YAAYN,GACfD,EAAKQ,QAAQT,EAAaO,QAAQG,KAAK,SAASC,GAIrD,OAHAT,EAAOC,EAAEC,KAAKH,EAAKI,OAAQ,SAASH,GAClC,OAAOA,EAAKI,KAAON,EAAaO,SAE9B9B,QAAQ+B,YAAYN,GACfH,EAAGa,OAAO,gBAAkBZ,EAAaO,OAAS,cAIlDL,EAAKW,WAAWH,KAAK,WAC1B,OAAOR,MAORA,EAMTL,EAAYd,SAAW,SAAU,eAAgB,kBAAmB,YAAa,cAAe,YAChG,SAASc,EAAYiB,EAAQd,EAAce,EAAiBnB,EAAWoB,EAAaC,GAClF,IAAIC,EAAQC,EACRC,EAAWL,EAAgBf,EAAaoB,UAkB5C,OAXED,EADiB,gBAJnBD,EAASf,EAAEC,KAAKR,EAAUyB,UAAW,SAASH,GAC5C,OAAOA,E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H,SAASuG,EAAyBxE,EAAQgC,EAAUD,EAAU0C,EAAYC,EAAYC,EAAQC,EAAiBzF,GAC7G,IAAI8C,EAAKC,KAETD,EAAG4C,QAAU1F,EAEb8C,EAAGK,aAAe,KAClBL,EAAGpC,MAAQV,EAAKI,OAEhB0C,EAAGR,GAKH,SAAY7D,GACVoC,EAAOyB,GAAG,kBAAoB7D,GAEzBmE,EAAS2C,EAAW,WACvBD,EAAW,QAAQxB,SARvBhB,EAAG6C,OAWH,SAAgBnB,GACdxE,EAAKQ,QAAQgE,IAXf1B,EAAGO,WAcH,SAAoBuC,GACd9C,EAAGK,cAAgBL,EAAGpC,MAAMkF,GAC9B9C,EAAGK,aAAe,KAIlBL,EAAGpC,MAAMkF,GAAGhF,WAAWH,KAAK,WAC1BqC,EAAGK,aAAeL,EAAGpC,MAAMkF,MApBjC9C,EAAG+C,aAyBH,SAAsB5E,GACpBJ,EAAOyB,GAAG,8BAA+BhC,OAAQwC,EAAGK,aAAa9C,IAAKc,SAAUsE,EAAgBxE,EAAOI,SAK3G7C,QACGC,OAAO,yBACPa,WAAW,2BAA4B+F,GAnD5C","file":"Administration.js"}
\ No newline at end of file
{"version":3,"sources":["Administration/Administration.app.js","Administration/AdministrationAclController.js","Administration/AdministrationController.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","abstract","views","administration","templateUrl","controller","controllerAs","url","module","acl","resolve","stateUser","stateFolder","otherwise","$q","$stateParams","User","user","_","find","$users","uid","userId","angular","isUndefined","$filter","then","users","reject","$folders","$state","decodeUriFilter","AddressBook","Calendar","folder","o","folderId","$$folders","name","type","id","split","pop","owner","displayName","selectedFolder","runBlock","$log","$rootScope","$on","event","toState","toParams","fromState","fromParams","error","go","current","previous","rejection","config","run","$inject","AdministrationAclController","$timeout","$mdMedia","$mdToast","getTemplate","isDefined","$cards","selectAllRights","$acl","$selectAllRights","selectUser","$event","target","parentNode","classList","contains","vm","selectedUid","selectedUser","$rights","showRights","rights","userFilter","$query","dry","removeUser","$removeUser","addUser","data","$addUser","userToAdd","searchText","close","save","$saveUsersRights","show","simple","content","l","position","hideDelay","this","folderType","AdministrationController","$mdSidenav","sgConstant","Dialog","encodeUriFilter","filter","i","selectFolder","service"],"mappings":"CAGA,WACE,YAUA,SAASA,GAAUC,EAAgBC,GACjCD,EACGE,MAAM,kBACLC,UAAU,EACVC,OACEC,gBACEC,YAAa,sBACbC,WAAY,2BACZC,aAAc,UAInBN,MAAM,yBACLO,IAAK,UACLL,OACEM,QACEJ,YAAa,kBAIlBJ,MAAM,8BACLO,IAAK,0BACLL,OACEO,KACEL,YAAa,6BACbC,WAAY,8BACZC,aAAc,QAGlBI,SACEC,UAAWA,EACXC,YAAaA,KAKnBb,EAAmBc,UAAU,WAO/B,QAASF,GAAUG,EAAIC,EAAcC,GACnC,GAAIC,EAMJ,OAJAA,GAAOC,EAAEC,KAAKH,EAAKI,OAAQ,SAASH,GAClC,MAAOA,GAAKI,KAAON,EAAaO,SAG9BC,QAAQC,YAAYP,GACfD,EAAKS,QAAQV,EAAaO,QAAQI,KAAK,SAASC,GAIrD,MAHAV,GAAOC,EAAEC,KAAKH,EAAKI,OAAQ,SAASH,GAClC,MAAOA,GAAKI,KAAON,EAAaO,SAE9BC,QAAQC,YAAYP,GACfH,EAAGc,OAAO,gBAAkBb,EAAaO,OAAS,cAIlDL,EAAKY,WAAWH,KAAK,WAC1B,MAAOT,OAORA,EAOT,QAASL,GAAYkB,EAAQf,EAAcgB,EAAiBpB,EAAWqB,EAAaC,GAClF,GAAIC,GAAQC,EACRC,EAAWL,EAAgBhB,EAAaqB,SAkB5C,OAhBAF,GAAShB,EAAEC,KAAKR,EAAU0B,UAAW,SAASH,GAC5C,MAAOA,GAAOI,MAAQF,IAItBD,EADiB,eAAfD,EAAOK,KACL,GAAIN,IAAWO,GAAIN,EAAOI,KAAKG,MAAM,KAAKC,MAC3BC,MAAOT,EAAOS,MACdL,KAAMJ,EAAOU,cAE5B,GAAIZ,IAAcQ,GAAIN,EAAOI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AkGjHvC,QACGf,OAAO,yBACPH,WAAW,8BAA+B0D,MC1G/C,WACE,YAMA,SAAS2C,GAAyB5E,EAAQoC,EAAUD,EAAU0C,EAAYC,EAAYC,EAAQC,EAAiB9F,GAa7G,QAASwC,GAAGhD,GACVsB,EAAO0B,GAAG,kBAAoBhD,GAEzByD,EAAS2C,EAAW,WACvBD,EAAW,QAAQZ,QAGvB,QAASgB,GAAOjB,GACd9E,EAAKS,QAAQqE,GAGf,QAASrB,GAAWuC,GACdjC,EAAGE,cAAgBF,EAAGpD,MAAMqF,GAC9BjC,EAAGE,aAAe,KAIlBF,EAAGpD,MAAMqF,GAAGnF,WAAWH,KAAK,WAC1BqD,EAAGE,aAAeF,EAAGpD,MAAMqF,KAKjC,QAASC,GAAa/E,GACpBJ,EAAO0B,GAAG,8BAA+BlC,OAAQyD,EAAGE,aAAa5D,IAAKe,SAAU0E,EAAgB5E,EAAOI,QApCzG,GAAIyC,GAAKyB,IAETzB,GAAGmC,QAAUlG,EAEb+D,EAAGE,aAAe,KAClBF,EAAGpD,MAAQX,EAAKI,OAEhB2D,EAAGvB,GAAKA,EACRuB,EAAGgC,OAASA,EACZhC,EAAGN,WAAaA,EAChBM,EAAGkC,aAAeA,EAZpBP,EAAyB5C,SAAW,SAAU,WAAY,WAAY,aAAc,aAAc,SAAU,kBAAmB,QA2C/HvC,QACGf,OAAO,yBACPH,WAAW,2BAA4BqG","file":"Administration.js","sourcesContent":["/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* JavaScript for SOGoAdministration */\n\n(function() {\n 'use strict';\n\n angular.module('SOGo.AdministrationUI', ['ui.router', 'SOGo.Common', 'SOGo.Authentication', 'SOGo.PreferencesUI', 'SOGo.ContactsUI', 'SOGo.SchedulerUI'])\n .config(configure)\n .run(runBlock);\n\n /**\n * @ngInject\n */\n configure.$inject = ['$stateProvider', '$urlRouterProvider'];\n function configure($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('administration', {\n abstract: true,\n views: {\n administration: {\n templateUrl: 'administration.html',\n controller: 'AdministrationController',\n controllerAs: 'app'\n }\n }\n })\n .state('administration.rights', {\n url: '/rights',\n views: {\n module: {\n templateUrl: 'rights.html'\n }\n }\n })\n .state('administration.rights.edit', {\n url: '/:userId/:folderId/edit',\n views: {\n acl: {\n templateUrl: 'UIxAdministrationAclEditor', // UI/Templates/Administration/UIxAdministrationAclEditor.wox\n controller: 'AdministrationAclController',\n controllerAs: 'acl'\n }\n },\n resolve: {\n stateUser: stateUser,\n stateFolder: stateFolder\n }\n });\n\n // if none of the above states are matched, use this as the fallback\n $urlRouterProvider.otherwise('/rights');\n }\n\n /**\n * @ngInject\n */\n stateUser.$inject = ['$q', '$stateParams', 'User'];\n function stateUser($q, $stateParams, User) {\n var user;\n\n user = _.find(User.$users, function(user) {\n return user.uid == $stateParams.userId;\n });\n\n if (angular.isUndefined(user)) {\n return User.$filter($stateParams.userId).then(function(users) {\n user = _.find(User.$users, function(user) {\n return user.uid == $stateParams.userId;\n });\n if (angular.isUndefined(user)) {\n return $q.reject('User with ID ' + $stateParams.userId + ' not found');\n }\n else {\n // Resolve folders\n return user.$folders().then(function() {\n return user;\n });\n }\n return user;\n });\n }\n\n return user;\n }\n\n /**\n * @ngInject\n */\n stateFolder.$inject = ['$state', '$stateParams', 'decodeUriFilter', 'stateUser', 'AddressBook', 'Calendar'];\n function stateFolder($state, $stateParams, decodeUriFilter, stateUser, AddressBook, Calendar) {\n var folder, o,\n folderId = decodeUriFilter($stateParams.folderId);\n\n folder = _.find(stateUser.$$folders, function(folder) {\n return folder.name == folderId;\n });\n \n if (folder.type == \"Appointment\") {\n o = new Calendar({ id: folder.name.split('/').pop(),\n owner: folder.owner,\n name: folder.displayName });\n } else {\n o = new AddressBook({ id: folder.name.split('/').pop(),\n owner: folder.owner,\n name: folder.displayName });\n }\n\n stateUser.selectedFolder = o.id;\n\n return o;\n }\n\n /**\n * @ngInject\n */\n runBlock.$inject = ['$log', '$rootScope', '$state'];\n function runBlock($log, $rootScope, $state) {\n $rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams, error) {\n $log.error(error);\n $state.go('administration.rights');\n });\n $rootScope.$on('$routeChangeError', function(event, current, previous, rejection) {\n $log.error(event, current, previous, rejection);\n });\n }\n\n})();\n","/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* JavaScript for SOGoAdministration */\n\n(function() {\n 'use strict';\n \n /**\n * @ngInject\n */\n AdministrationAclController.$inject = ['$timeout', '$state', '$mdMedia', '$mdToast', 'stateUser', 'stateFolder', 'User'];\n function AdministrationAclController($timeout, $state, $mdMedia, $mdToast, stateUser, stateFolder, User) {\n var vm = this;\n\n vm.user = stateUser;\n vm.folder = stateFolder;\n vm.folderType = angular.isDefined(stateFolder.$cards)? 'AddressBook' : 'Calendar';\n vm.selectedUser = null;\n vm.selectedUid = null;\n vm.selectUser = selectUser;\n vm.selectAllRights = selectAllRights;\n vm.showRights = showRights;\n vm.removeUser = removeUser;\n vm.getTemplate = getTemplate;\n vm.close = close;\n vm.save = save;\n\n vm.userToAdd = '';\n vm.searchText = '';\n vm.userFilter = userFilter;\n vm.addUser = addUser;\n\n stateFolder.$acl.$users(stateFolder.owner).then(function(data) {\n vm.users = data;\n });\n\n function getTemplate() {\n if (angular.isDefined(stateFolder.$cards))\n return '../' + stateFolder.owner + '/Contacts/' + stateFolder.id + '/UIxContactsUserRightsEditor';\n\n return '../' + stateFolder.owner + '/Calendar/' + stateFolder.id + '/UIxCalUserRightsEditor';\n }\n\n function selectAllRights(user) {\n stateFolder.$acl.$selectAllRights(user);\n }\n\n function selectUser(user, $event) {\n if ($event && $event.target.parentNode.classList.contains('md-secondary'))\n return false;\n if (vm.selectedUid == user.uid) {\n vm.selectedUid = null;\n }\n else {\n vm.selectedUid = user.uid;\n vm.selectedUser = user;\n vm.selectedUser.$rights();\n }\n }\n\n function showRights(user) {\n return vm.selectedUid == user.uid && user.rights;\n }\n\n function userFilter($query) {\n return User.$filter($query, stateFolder.$acl.users, { dry: true, uid: vm.user.uid });\n }\n\n function removeUser(user) {\n $timeout(function() {\n stateFolder.$acl.$removeUser(user.uid, stateFolder.owner);\n }, 500); // wait for CSS transition to complete (see card.scss)\n }\n\n function addUser(data) {\n if (data) {\n stateFolder.$acl.$addUser(data, stateFolder.owner).then(function(user) {\n vm.userToAdd = '';\n vm.searchText = '';\n vm.selectedUid = null;\n if (user)\n selectUser(user);\n });\n }\n }\n\n function close() {\n $state.go('administration.rights').then(function() {\n delete vm.user.selectedFolder;\n vm.user = null;\n });\n }\n\n function save() {\n stateFolder.$acl.$saveUsersRights(stateFolder.owner).then(function() {\n $mdToast.show(\n $mdToast.simple()\n .content(l('ACLs saved'))\n .position('bottom right')\n .hideDelay(3000)\n );\n // Close acls on small devices\n if ($mdMedia('xs'))\n close();\n });\n }\n }\n\n angular\n .module('SOGo.AdministrationUI')\n .controller('AdministrationAclController', AdministrationAclController);\n\n})();\n","/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* JavaScript for SOGoAdministration */\n\n(function() {\n 'use strict';\n \n /**\n * @ngInject\n */\n AdministrationController.$inject = ['$state', '$mdToast', '$mdMedia', '$mdSidenav', 'sgConstant', 'Dialog', 'encodeUriFilter', 'User'];\n function AdministrationController($state, $mdToast, $mdMedia, $mdSidenav, sgConstant, Dialog, encodeUriFilter, User) {\n var vm = this;\n\n vm.service = User;\n\n vm.selectedUser = null;\n vm.users = User.$users;\n\n vm.go = go;\n vm.filter = filter;\n vm.selectUser = selectUser;\n vm.selectFolder = selectFolder;\n\n function go(module) {\n $state.go('administration.' + module);\n // Close sidenav on small devices\n if (!$mdMedia(sgConstant['gt-md']))\n $mdSidenav('left').close();\n }\n\n function filter(searchText) {\n User.$filter(searchText);\n }\n\n function selectUser(i) {\n if (vm.selectedUser == vm.users[i]) {\n vm.selectedUser = null;\n }\n else {\n // Fetch folders of specific type for selected user\n vm.users[i].$folders().then(function() {\n vm.selectedUser = vm.users[i];\n });\n }\n }\n\n function selectFolder(folder) {\n $state.go('administration.rights.edit', {userId: vm.selectedUser.uid, folderId: encodeUriFilter(folder.name)});\n }\n\n }\n\n angular\n .module('SOGo.AdministrationUI')\n .controller('AdministrationController', AdministrationController);\n\n})();\n"]}
\ No newline at end of file
!function(){"use strict";function t(){}t.$factory=["$q","$timeout","$log","sgSettings","Resource","User",function(e,o,r,n,i,a){return angular.extend(t,{$q:e,$timeout:o,$log:r,$$resource:new i(n.activeUser("folderURL"),n.activeUser()),activeUser:n.activeUser(),$User:a}),new t}];try{angular.module("SOGo.AdministrationUI")}catch(t){angular.module("SOGo.AdministrationUI",["SOGo.Common"])}angular.module("SOGo.AdministrationUI").factory("Administration",t.$factory)}();
!function(){"use strict";function a(){}a.$factory=["$q","$timeout","$log","sgSettings","Resource","User",function(b,c,d,e,f,g){return angular.extend(a,{$q:b,$timeout:c,$log:d,$$resource:new f(e.activeUser("folderURL"),e.activeUser()),activeUser:e.activeUser(),$User:g}),new a}];try{angular.module("SOGo.AdministrationUI")}catch(a){angular.module("SOGo.AdministrationUI",["SOGo.Common"])}angular.module("SOGo.AdministrationUI").factory("Administration",a.$factory)}();
//# sourceMappingURL=Administration.services.js.map
\ No newline at end of file
{"version":3,"sources":["Administration/Administration.service.js"],"names":["Administration","$factory","$q","$timeout","$log","Settings","Resource","User","angular","extend","$$resource","activeUser","$User","module","e","factory"],"mappings":"CAEA,WACE,aAMA,SAASA,KASTA,EAAeC,UAAY,KAAM,WAAY,OAAQ,aAAc,WAAY,OAAQ,SAASC,EAAIC,EAAUC,EAAMC,EAAUC,EAAUC,GAUtI,OATAC,QAAQC,OAAOT,GACbE,GAAIA,EACJC,SAAUA,EACVC,KAAMA,EACNM,WAAY,IAAIJ,EAASD,EAASM,WAAW,aAAcN,EAASM,cACpEA,WAAYN,EAASM,aACrBC,MAAOL,IAGF,IAAIP,IAIb,IACEQ,QAAQK,OAAO,yBAEjB,MAAMC,GACJN,QAAQK,OAAO,yBAA0B,gBAI3CL,QAAQK,OAAO,yBACZE,QAAQ,iBAAkBf,EAAeC,UAvC9C","file":"Administration.services.js"}
\ No newline at end of file
{"version":3,"sources":["Administration/Administration.service.js"],"names":["Administration","$factory","$q","$timeout","$log","Settings","Resource","User","angular","extend","$$resource","activeUser","$User","module","e","factory"],"mappings":"CAEA,WACE,YAMA,SAASA,MASTA,EAAeC,UAAY,KAAM,WAAY,OAAQ,aAAc,WAAY,OAAQ,SAASC,EAAIC,EAAUC,EAAMC,EAAUC,EAAUC,GAUtI,MATAC,SAAQC,OAAOT,GACbE,GAAIA,EACJC,SAAUA,EACVC,KAAMA,EACNM,WAAY,GAAIJ,GAASD,EAASM,WAAW,aAAcN,EAASM,cACpEA,WAAYN,EAASM,aACrBC,MAAOL,IAGF,GAAIP,IAIb,KACEQ,QAAQK,OAAO,yBAEjB,MAAMC,GACJN,QAAQK,OAAO,yBAA0B,gBAI3CL,QAAQK,OAAO,yBACZE,QAAQ,iBAAkBf,EAAeC","file":"Administration.services.js","sourcesContent":["/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n\n(function() {\n 'use strict';\n\n /**\n * @name Administration\n * @constructor\n */\n function Administration() {\n\n }\n\n /**\n * @memberof Administration\n * @desc The factory we'll use to register with Angular\n * @returns the Administration constructor\n */\n Administration.$factory = ['$q', '$timeout', '$log', 'sgSettings', 'Resource', 'User', function($q, $timeout, $log, Settings, Resource, User) {\n angular.extend(Administration, {\n $q: $q,\n $timeout: $timeout,\n $log: $log,\n $$resource: new Resource(Settings.activeUser('folderURL'), Settings.activeUser()),\n activeUser: Settings.activeUser(),\n $User: User\n });\n\n return new Administration(); // return unique instance\n }];\n\n /* Initialize module if necessary */\n try {\n angular.module('SOGo.AdministrationUI');\n }\n catch(e) {\n angular.module('SOGo.AdministrationUI', ['SOGo.Common']);\n }\n\n /* Factory registration in Angular module */\n angular.module('SOGo.AdministrationUI')\n .factory('Administration', Administration.$factory);\n\n})();\n"]}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(){"use strict";angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(e).run(i).controller("MessageEditorControllerPopup",l),e.$inject=["$stateProvider","$urlRouterProvider"];function e(e,i){e.state("mail",{url:"/Mail",abstract:!0,views:{message:{template:"<ui-view/>"}},resolve:{stateAccounts:t}}).state("mail.account",{url:"/:accountId",abstract:!0,template:'<ui-view id="account"/>',resolve:{stateAccount:o}}).state("mail.account.mailbox",{url:"/:mailboxId",abstract:!0,template:'<ui-view id="mailbox"/>',resolve:{stateMailbox:n}}).state("mail.account.mailbox.newMessage",{url:"/new",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}},resolve:{stateMessage:r}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{"message@":{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMessage:a}}).state("mail.account.mailbox.message.edit",{url:"/edit",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}},resolve:{stateContent:s}}).state("mail.account.mailbox.message.action",{url:"/{actionName:(?:reply|replyall|forward)}",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}}}),i.otherwise("/Mail/0/folderINBOX/new")}t.$inject=["$window","$q","Account"];function t(e,t,o){var n,r=[];return e&&e.opener&&e.opener.$mailboxController?(n=e.opener.$mailboxController.accounts,t.when(n)):o.$findAll().then(function(e){return angular.forEach(e,function(e,t){var o=e.$getMailboxes();0===t?r.push(o.then(function(t){return e})):r.push(e)}),t.all(r)})}o.$inject=["$stateParams","stateAccounts"];function o(e,t){return _.find(t,function(t){return t.id==e.accountId})}n.$inject=["$q","$state","$stateParams","stateAccount","decodeUriFilter","Mailbox"];function n(e,t,o,n,r,a){var s,i,l=r(o.mailboxId);return(s=(i=function(e){var t=_.find(e,function(e){return e.path==l});return t||angular.forEach(e,function(e){!t&&e.children&&e.children.length>0&&(t=i(e.children))}),t})(n.$mailboxes))?(s.$topIndex=0,s.selectFolder(),s):e.reject("Mailbox doesn't exist")}r.$inject=["$urlService","stateAccount"];function r(e,t){var o,n=e.search();return n&&(o=_.find(_.keys(n),function(e){return/^mailto:/i.test(e)})),t.$newMessage({mailto:o})}a.$inject=["encodeUriFilter","$q","$stateParams","$state","stateMailbox","Message"];function a(e,t,o,n,r,a){var s,i;return window&&window.opener&&window.opener.$messageController&&window.opener.$messageController.message.uid==parseInt(o.messageId)?(i=new a(r.$account.id,r,window.opener.$messageController.message.$omit({privateAttributes:!0})),t.when(i)):(s={uid:o.messageId.toString()},(i=new a(r.$account.id,r,s)).$reload())}s.$inject=["stateMessage"];function s(e){return e.$editableContent()}i.$inject=["$window","$rootScope","$log"];function i(e,t,o){t.$on("$stateChangeError",function(t,n,r,a,s,i){o.error(i),e.close()}),t.$on("$routeChangeError",function(e,t,n,r){o.error(e,t,n,r)})}l.$inject=["$window","$mdDialog","stateAccount","stateMessage"];function l(e,t,o,n){t.show({hasBackdrop:!1,disableParentScroll:!1,clickOutsideToClose:!1,escapeToClose:!1,templateUrl:"UIxMailEditor",controller:"MessageEditorController",controllerAs:"editor",locals:{stateAccount:o,stateMessage:n}}).finally(function(){e.close()})}}();
!function(){"use strict";function a(a,h){a.state("mail",{url:"/Mail",abstract:!0,views:{message:{template:"<ui-view/>"}},resolve:{stateAccounts:b}}).state("mail.account",{url:"/:accountId",abstract:!0,template:'<ui-view id="account"/>',resolve:{stateAccount:c}}).state("mail.account.mailbox",{url:"/:mailboxId",abstract:!0,template:'<ui-view id="mailbox"/>',resolve:{stateMailbox:d}}).state("mail.account.mailbox.newMessage",{url:"/new",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}},resolve:{stateMessage:e}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{"message@":{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMessage:f}}).state("mail.account.mailbox.message.edit",{url:"/edit",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}},resolve:{stateContent:g}}).state("mail.account.mailbox.message.action",{url:"/{actionName:(?:reply|replyall|forward)}",views:{"message@":{template:"<ui-view/>",controller:"MessageEditorControllerPopup"}}}),h.otherwise("/Mail/0/folderINBOX/new")}function b(a,b,c){var d,e=[];return a&&a.opener&&a.opener.$mailboxController?(d=a.opener.$mailboxController.accounts,b.when(d)):c.$findAll().then(function(a){return angular.forEach(a,function(a,b){var c=a.$getMailboxes();0===b?e.push(c.then(function(b){return a})):e.push(a)}),b.all(e)})}function c(a,b){return _.find(b,function(b){return b.id==a.accountId})}function d(a,b,c,d,e,f){var g,h,i=e(c.mailboxId);return h=function(a){var b=_.find(a,function(a){return a.path==i});return b||angular.forEach(a,function(a){!b&&a.children&&a.children.length>0&&(b=h(a.children))}),b},g=h(d.$mailboxes),g?(g.$topIndex=0,g.selectFolder(),g):a.reject("Mailbox doesn't exist")}function e(a,b){var c,d=a.search();return d&&(c=_.find(_.keys(d),function(a){return/^mailto:/i.test(a)})),b.$newMessage({mailto:c})}function f(a,b,c,d,e,f){var g,h;return window&&window.opener&&window.opener.$messageController&&window.opener.$messageController.message.uid==parseInt(c.messageId)?(h=new f(e.$account.id,e,window.opener.$messageController.message.$omit({privateAttributes:!0})),b.when(h)):(g={uid:c.messageId.toString()},h=new f(e.$account.id,e,g),h.$reload())}function g(a){return a.$editableContent()}function h(a,b,c){b.$on("$stateChangeError",function(b,d,e,f,g,h){c.error(h),a.close()}),b.$on("$routeChangeError",function(a,b,d,e){c.error(a,b,d,e)})}function i(a,b,c,d){b.show({hasBackdrop:!1,disableParentScroll:!1,clickOutsideToClose:!1,escapeToClose:!1,templateUrl:"UIxMailEditor",controller:"MessageEditorController",controllerAs:"editor",locals:{stateAccount:c,stateMessage:d}}).finally(function(){a.close()})}angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(a).run(h).controller("MessageEditorControllerPopup",i),a.$inject=["$stateProvider","$urlRouterProvider"],b.$inject=["$window","$q","Account"],c.$inject=["$stateParams","stateAccounts"],d.$inject=["$q","$state","$stateParams","stateAccount","decodeUriFilter","Mailbox"],e.$inject=["$urlService","stateAccount"],f.$inject=["encodeUriFilter","$q","$stateParams","$state","stateMailbox","Message"],g.$inject=["stateMessage"],h.$inject=["$window","$rootScope","$log"],i.$inject=["$window","$mdDialog","stateAccount","stateMessage"]}();
//# sourceMappingURL=Mailer.app.popup.js.map
\ No newline at end of file
{"version":3,"sources":["Mailer/Mailer.popup.js"],"names":["angular","module","config","configure","run","runBlock","controller","MessageEditorControllerPopup","$inject","$stateProvider","$urlRouterProvider","state","url","abstract","views","message","template","resolve","stateAccounts","stateAccount","stateMailbox","message@","stateMessage","stateNewMessage","templateUrl","controllerAs","stateContent","otherwise","$window","$q","Account","accounts","promises","opener","$mailboxController","when","$findAll","then","forEach","account","i","mailboxes","$getMailboxes","push","objects","all","$stateParams","_","find","id","accountId","$state","decodeUriFilter","Mailbox","mailbox","_find","mailboxId","o","path","children","length","$mailboxes","$topIndex","selectFolder","reject","$urlService","mailto","params","search","keys","k","test","$newMessage","encodeUriFilter","Message","data","window","$messageController","uid","parseInt","messageId","$account","$omit","privateAttributes","toString","$reload","$editableContent","$rootScope","$log","$on","event","toState","toParams","fromState","fromParams","error","close","current","previous","rejection","$mdDialog","show","hasBackdrop","disableParentScroll","clickOutsideToClose","escapeToClose","locals","finally"],"mappings":"CAGA,WACE,aAEAA,QAAQC,OAAO,iBAAkB,YAAa,YAAa,KAAM,oBAAqB,cAAe,kBAAmB,mBAAoB,YAAa,uBACtJC,OAAOC,GACPC,IAAIC,GACJC,WAAW,+BAAgCC,GAK9CJ,EAAUK,SAAW,iBAAkB,sBACvC,SAASL,EAAUM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E,mBAMtBjF,EAASG,SAAW,UAAW,aAAc,QAC7C,SAASH,EAASuB,EAAS2D,EAAYC,GACrCD,EAAWE,IAAI,oBAAqB,SAASC,EAAOC,EAASC,EAAUC,EAAWC,EAAYC,GAC5FP,EAAKO,MAAMA,GACXnE,EAAQoE,UAEVT,EAAWE,IAAI,oBAAqB,SAASC,EAAOO,EAASC,EAAUC,GACrEX,EAAKO,MAAML,EAAOO,EAASC,EAAUC,KAOzC5F,EAA6BC,SAAW,UAAW,YAAa,eAAgB,gBAChF,SAASD,EAA6BqB,EAASwE,EAAWjF,EAAcG,GACtE8E,EACGC,MACCC,aAAa,EACbC,qBAAqB,EACrBC,qBAAqB,EACrBC,eAAe,EACfjF,YAAa,gBACblB,WAAY,0BACZmB,aAAc,SACdiF,QACEvF,aAAcA,EACdG,aAAcA,KAGjBqF,QAAQ,WACP/E,EAAQoE,WA7PhB","file":"Mailer.app.popup.js"}
\ No newline at end of file
{"version":3,"sources":["Mailer/Mailer.popup.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","url","abstract","views","message","template","resolve","stateAccounts","stateAccount","stateMailbox","message@","controller","stateMessage","stateNewMessage","templateUrl","controllerAs","stateContent","otherwise","$window","$q","Account","accounts","promises","opener","$mailboxController","when","$findAll","then","angular","forEach","account","i","mailboxes","$getMailboxes","push","objects","all","$stateParams","_","find","id","accountId","$state","decodeUriFilter","Mailbox","mailbox","_find","mailboxId","o","path","children","length","$mailboxes","$topIndex","selectFolder","reject","$urlService","mailto","params","search","keys","k","test","$newMessage","encodeUriFilter","Message","data","window","$messageController","uid","parseInt","messageId","$account","$omit","privateAttributes","toString","$reload","$editableContent","runBlock","$rootScope","$log","$on","event","toState","toParams","fromState","fromParams","error","close","current","previous","rejection","MessageEditorControllerPopup","$mdDialog","show","hasBackdrop","disableParentScroll","clickOutsideToClose","escapeToClose","locals","finally","module","config","run","$inject"],"mappings":"CAGA,WACE,YAWA,SAASA,GAAUC,EAAgBC,GACjCD,EACGE,MAAM,Q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AAUC,KAQzC,QAASC,GAA6B1E,EAAS2E,EAAWrF,EAAcI,GACtEiF,EACGC,MACCC,aAAa,EACbC,qBAAqB,EACrBC,qBAAqB,EACrBC,eAAe,EACfpF,YAAa,gBACbH,WAAY,0BACZI,aAAc,SACdoF,QACE3F,aAAcA,EACdI,aAAcA,KAGjBwF,QAAQ,WACPlF,EAAQsE,UA1Pd5D,QAAQyE,OAAO,iBAAkB,YAAa,YAAa,KAAM,oBAAqB,cAAe,kBAAmB,mBAAoB,YAAa,uBACtJC,OAAOzG,GACP0G,IAAIzB,GACJnE,WAAW,+BAAgCiF,GAK9C/F,EAAU2G,SAAW,iBAAkB,sBAqFvCjG,EAAciG,SAAW,UAAW,KAAM,WAiC1ChG,EAAagG,SAAW,eAAgB,iBAUxC/F,EAAa+F,SAAW,KAAM,SAAU,eAAgB,eAAgB,kBAAmB,WAoC3F3F,EAAgB2F,SAAW,cAAe,gBAc1C5F,EAAa4F,SAAW,kBAAmB,KAAM,eAAgB,SAAU,eAAgB,WAyB3FxF,EAAawF,SAAW,gBAQxB1B,EAAS0B,SAAW,UAAW,aAAc,QAc7CZ,EAA6BY,SAAW,UAAW,YAAa,eAAgB","file":"Mailer.app.popup.js","sourcesContent":["/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* JavaScript for SOGo.MailerUI module */\n\n(function() {\n 'use strict';\n\n angular.module('SOGo.MailerUI', ['ngCookies', 'ui.router', 'ck', 'angularFileUpload', 'SOGo.Common', 'SOGo.ContactsUI', 'SOGo.SchedulerUI', 'ngAnimate', 'SOGo.PreferencesUI'])\n .config(configure)\n .run(runBlock)\n .controller('MessageEditorControllerPopup', MessageEditorControllerPopup);\n\n /**\n * @ngInject\n */\n configure.$inject = ['$stateProvider', '$urlRouterProvider'];\n function configure($stateProvider, $urlRouterProvider) {\n $stateProvider\n .state('mail', {\n url: '/Mail',\n abstract: true,\n views: {\n message: {\n template: '<ui-view/>'\n }\n },\n resolve: {\n stateAccounts: stateAccounts\n }\n })\n .state('mail.account', {\n url: '/:accountId',\n abstract: true,\n template: '<ui-view id=\"account\"/>',\n resolve: {\n stateAccount: stateAccount\n }\n })\n .state('mail.account.mailbox', {\n url: '/:mailboxId',\n abstract: true,\n template: '<ui-view id=\"mailbox\"/>',\n resolve: {\n stateMailbox: stateMailbox\n }\n })\n .state('mail.account.mailbox.newMessage', {\n url: '/new',\n views: {\n 'message@': {\n template: '<ui-view/>',\n controller: 'MessageEditorControllerPopup'\n }\n },\n resolve: {\n stateMessage: stateNewMessage\n }\n })\n .state('mail.account.mailbox.message', {\n url: '/:messageId',\n views: {\n 'message@': {\n templateUrl: 'UIxMailViewTemplate', // UI/Templates/MailerUI/UIxMailViewTemplate.wox\n controller: 'MessageController',\n controllerAs: 'viewer'\n }\n },\n resolve: {\n stateMessage: stateMessage\n }\n })\n .state('mail.account.mailbox.message.edit', {\n url: '/edit',\n views: {\n 'message@': {\n template: '<ui-view/>',\n controller: 'MessageEditorControllerPopup'\n }\n },\n resolve: {\n stateContent: stateContent\n }\n })\n .state('mail.account.mailbox.message.action', {\n url: '/{actionName:(?:reply|replyall|forward)}',\n views: {\n 'message@': {\n template: '<ui-view/>',\n controller: 'MessageEditorControllerPopup'\n }\n }\n });\n\n // if none of the above states are matched, use this as the fallback\n $urlRouterProvider.otherwise('/Mail/0/folderINBOX/new');\n }\n\n /**\n * @ngInject\n */\n stateAccounts.$inject = ['$window', '$q', 'Account'];\n function stateAccounts($window, $q, Account) {\n var accounts, promises = [];\n\n if ($window &&\n $window.opener &&\n $window.opener.$mailboxController) {\n // Mail accounts are available from the parent window\n accounts = $window.opener.$mailboxController.accounts;\n return $q.when(accounts);\n }\n else {\n return Account.$findAll().then(function(accounts) {\n // Fetch list of mailboxes for each account\n angular.forEach(accounts, function(account, i) {\n var mailboxes = account.$getMailboxes();\n if (i === 0)\n // Make sure we have the list of mailboxes of the first account\n promises.push(mailboxes.then(function(objects) {\n return account;\n }));\n else\n // Don't wait for external accounts\n promises.push(account);\n });\n return $q.all(promises);\n });\n }\n }\n\n /**\n * @ngInject\n */\n stateAccount.$inject = ['$stateParams', 'stateAccounts'];\n function stateAccount($stateParams, stateAccounts) {\n return _.find(stateAccounts, function(account) {\n return account.id == $stateParams.accountId;\n });\n }\n\n /**\n * @ngInject\n */\n stateMailbox.$inject = ['$q', '$state', '$stateParams', 'stateAccount', 'decodeUriFilter', 'Mailbox'];\n function stateMailbox($q, $state, $stateParams, stateAccount, decodeUriFilter, Mailbox) {\n var mailbox,\n mailboxId = decodeUriFilter($stateParams.mailboxId),\n _find;\n\n // Recursive find function\n _find = function(mailboxes) {\n var mailbox = _.find(mailboxes, function(o) {\n return o.path == mailboxId;\n });\n if (!mailbox) {\n angular.forEach(mailboxes, function(o) {\n if (!mailbox && o.children && o.children.length > 0) {\n mailbox = _find(o.children);\n }\n });\n }\n return mailbox;\n };\n\n mailbox = _find(stateAccount.$mailboxes);\n\n if (mailbox) {\n mailbox.$topIndex = 0;\n mailbox.selectFolder();\n return mailbox;\n }\n else\n // Mailbox not found\n return $q.reject(\"Mailbox doesn't exist\");\n }\n\n /**\n * @ngInject\n */\n stateNewMessage.$inject = ['$urlService', 'stateAccount'];\n function stateNewMessage($urlService, stateAccount) {\n var mailto, params = $urlService.search();\n if (params) {\n mailto = _.find(_.keys(params), function(k) {\n return /^mailto:/i.test(k);\n });\n }\n return stateAccount.$newMessage({ mailto: mailto });\n }\n\n /**\n * @ngInject\n */\n stateMessage.$inject = ['encodeUriFilter', '$q', '$stateParams', '$state', 'stateMailbox', 'Message'];\n function stateMessage(encodeUriFilter, $q, $stateParams, $state, stateMailbox, Message) {\n var data, message;\n\n if (window &&\n window.opener &&\n window.opener.$messageController &&\n window.opener.$messageController.message.uid == parseInt($stateParams.messageId)) {\n // Message is available from the parent window\n message = new Message(stateMailbox.$account.id,\n stateMailbox,\n window.opener.$messageController.message.$omit({privateAttributes: true}));\n return $q.when(message);\n }\n else {\n // Message is not available; load it from the server\n data = { uid: $stateParams.messageId.toString() };\n message = new Message(stateMailbox.$account.id, stateMailbox, data);\n return message.$reload();\n }\n }\n\n /**\n * @ngInject\n */\n stateContent.$inject = ['stateMessage'];\n function stateContent(stateMessage) {\n return stateMessage.$editableContent();\n }\n\n /**\n * @ngInject\n */\n runBlock.$inject = ['$window', '$rootScope', '$log'];\n function runBlock($window, $rootScope, $log) {\n $rootScope.$on('$stateChangeError', function(event, toState, toParams, fromState, fromParams, error) {\n $log.error(error);\n $window.close();\n });\n $rootScope.$on('$routeChangeError', function(event, current, previous, rejection) {\n $log.error(event, current, previous, rejection);\n });\n }\n\n /**\n * @ngInject\n */\n MessageEditorControllerPopup.$inject = ['$window', '$mdDialog', 'stateAccount', 'stateMessage'];\n function MessageEditorControllerPopup($window, $mdDialog, stateAccount, stateMessage) {\n $mdDialog\n .show({\n hasBackdrop: false,\n disableParentScroll: false,\n clickOutsideToClose: false,\n escapeToClose: false,\n templateUrl: 'UIxMailEditor',\n controller: 'MessageEditorController',\n controllerAs: 'editor',\n locals: {\n stateAccount: stateAccount,\n stateMessage: stateMessage\n }\n })\n .finally(function() {\n $window.close();\n });\n }\n \n})();\n"]}
\ No newline at end of file
!function(){"use strict";angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(e).run(d),e.$inject=["$stateProvider","$urlRouterProvider"];function e(e,d){if(e.state("mail",{url:"/Mail",views:{mailboxes:{templateUrl:"UIxMailMainFrame",controller:"MailboxesController",controllerAs:"app"}},resolve:{stateAccounts:t}}).state("mail.account",{url:"/:accountId",abstract:!0,views:{mailbox:{template:"<ui-view/>"}},resolve:{stateAccount:a}}).state("mail.account.virtualMailbox",{url:"/virtual",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:l}}).state("mail.account.virtualMailbox.message",{url:"/:mailboxId/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMailbox:n,stateMessages:i,stateMessage:s},onEnter:c,onExit:u}).state("mail.account.inbox",{url:"/inbox",onEnter:r}).state("mail.account.mailbox",{url:"/:mailboxId",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:o,stateMessages:i}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},onEnter:c,onExit:u,resolve:{stateMessage:s}}),d.otherwise("/Mail/0/inbox"),navigator&&navigator.registerProtocolHandler){var m=window.location.origin+window.ApplicationBaseURL+"UIxMailPopupView#!/Mail/0/INBOX/new?%s";navigator.registerProtocolHandler("mailto",m,"SOGo")}}t.$inject=["$window","$q","Account"];function t(e,t,a){var o=a.$findAll(e.mailAccounts),r=[];return angular.forEach(o,function(e,t){var a=e.$getMailboxes();0===t?r.push(a.then(function(t){return e})):r.push(e)}),t.all(r)}a.$inject=["$stateParams","stateAccounts"];function a(e,t){return _.find(t,function(t){return t.id==e.accountId})}o.$inject=["$q","$stateParams","stateAccount","decodeUriFilter","Mailbox"];function o(e,t,a,o,r){var i,l,n=o(t.mailboxId);return l=function(e){var t=_.find(e,function(e){return e.path==n});return t||angular.forEach(e,function(e){!t&&e.children&&e.children.length>0&&(t=l(e.children))}),t},r.selectedFolder&&!r.$virtualMode&&(r.selectedFolder.$isLoading=!0),(i=l(a.$mailboxes))?(i.$topIndex=0,i.selectFolder(),i):e.reject("Mailbox doesn't exist")}r.$inject=["$transition$","encodeUriFilter","Mailbox"];function r(e,t,a){return e.injector().getAsync("stateAccount").then(function(o){return o.$mailboxes.length>0?e.router.stateService.target("mail.account.mailbox",{accountId:o.id,mailboxId:t(o.$mailboxes[0].path)}):(a.selectedFolder=!1,e.router.stateService.target("mail"))})}i.$inject=["$q","$state","Mailbox","stateMailbox"];function i(e,t,a,o){return a.$virtualMode?[]:o?o.$filter().catch(function(){return e.reject("Mailbox not found")}):e.reject("Mailbox doesn't exist")}l.$inject=["$q","Mailbox"];function l(e,t){return t.$virtualMode?t.selectedFolder:e.reject("No virtual mailbox defined")}n.$inject=["$q","Mailbox","decodeUriFilter","$stateParams"];function n(e,t,a,o){var r=a(o.mailboxId);return t.$virtualMode?(t.selectedFolder.resetSelectedMessage(),_.find(t.selectedFolder.$mailboxes,function(e){return e.path==r})):e.reject("No virtual mailbox defined for message")}s.$inject=["Mailbox","encodeUriFilter","$stateParams","$state","stateMailbox","stateMessages"];function s(e,t,a,o,r,i){var l;if(l=_.find(r.$messages,function(e){return e.uid==parseInt(a.messageId)}))return l.$reload({useCache:!0});o.go("mail.account.mailbox",{accountId:r.$account.id,mailboxId:t(r.path)})}c.$inject=["$stateParams","stateMailbox"];function c(e,t){t.selectedMessage=parseInt(e.messageId)}u.$inject=["stateMailbox"];function u(e){delete e.selectedMessage}d.$inject=["$window","$transitions","$log","$state","Mailbox"];function d(e,t,a,o,r){e.DebugEnabled||o.defaultErrorHandler(function(){}),t.onError({to:"mail.**"},function(e){"mail"!=e.to().name&&!e.ignored()&&e.error().message.indexOf("superseded")<0&&(a.error("transition error to "+e.to().name),r.selectedFolder=!1,o.go("mail"))})}}();
!function(){"use strict";function a(a,l){if(a.state("mail",{url:"/Mail",views:{mailboxes:{templateUrl:"UIxMailMainFrame",controller:"MailboxesController",controllerAs:"app"}},resolve:{stateAccounts:b}}).state("mail.account",{url:"/:accountId",abstract:!0,views:{mailbox:{template:"<ui-view/>"}},resolve:{stateAccount:c}}).state("mail.account.virtualMailbox",{url:"/virtual",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:g}}).state("mail.account.virtualMailbox.message",{url:"/:mailboxId/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},resolve:{stateMailbox:h,stateMessages:f,stateMessage:i},onEnter:j,onExit:k}).state("mail.account.inbox",{url:"/inbox",onEnter:e}).state("mail.account.mailbox",{url:"/:mailboxId",views:{"mailbox@mail":{templateUrl:"UIxMailFolderTemplate",controller:"MailboxController",controllerAs:"mailbox"}},resolve:{stateMailbox:d,stateMessages:f}}).state("mail.account.mailbox.message",{url:"/:messageId",views:{message:{templateUrl:"UIxMailViewTemplate",controller:"MessageController",controllerAs:"viewer"}},onEnter:j,onExit:k,resolve:{stateMessage:i}}),l.otherwise("/Mail/0/inbox"),navigator&&navigator.registerProtocolHandler){var m=window.location.origin+window.ApplicationBaseURL+"UIxMailPopupView#!/Mail/0/INBOX/new?%s";navigator.registerProtocolHandler("mailto",m,"SOGo")}}function b(a,b,c){var d=c.$findAll(a.mailAccounts),e=[];return angular.forEach(d,function(a,b){var c=a.$getMailboxes();0===b?e.push(c.then(function(b){return a})):e.push(a)}),b.all(e)}function c(a,b){return _.find(b,function(b){return b.id==a.accountId})}function d(a,b,c,d,e){var f,g,h=d(b.mailboxId);return g=function(a){var b=_.find(a,function(a){return a.path==h});return b||angular.forEach(a,function(a){!b&&a.children&&a.children.length>0&&(b=g(a.children))}),b},e.selectedFolder&&!e.$virtualMode&&(e.selectedFolder.$isLoading=!0),f=g(c.$mailboxes),f?(f.$topIndex=0,f.selectFolder(),f):a.reject("Mailbox doesn't exist")}function e(a,b,c){var d=a.injector().getAsync("stateAccount");return d.then(function(d){return d.$mailboxes.length>0?a.router.stateService.target("mail.account.mailbox",{accountId:d.id,mailboxId:b(d.$mailboxes[0].path)}):(c.selectedFolder=!1,a.router.stateService.target("mail"))})}function f(a,b,c,d){var e;return c.$virtualMode?[]:e=d?d.$filter().catch(function(){return a.reject("Mailbox not found")}):a.reject("Mailbox doesn't exist")}function g(a,b){return b.$virtualMode?b.selectedFolder:a.reject("No virtual mailbox defined")}function h(a,b,c,d){var e=c(d.mailboxId);return b.$virtualMode?(b.selectedFolder.resetSelectedMessage(),_.find(b.selectedFolder.$mailboxes,function(a){return a.path==e})):a.reject("No virtual mailbox defined for message")}function i(a,b,c,d,e,f){var g;return(g=_.find(e.$messages,function(a){return a.uid==parseInt(c.messageId)}))?g.$reload({useCache:!0}):void d.go("mail.account.mailbox",{accountId:e.$account.id,mailboxId:b(e.path)})}function j(a,b){b.selectedMessage=parseInt(a.messageId)}function k(a){delete a.selectedMessage}function l(a,b,c,d,e){a.DebugEnabled||d.defaultErrorHandler(function(){}),b.onError({to:"mail.**"},function(a){"mail"!=a.to().name&&!a.ignored()&&a.error().message.indexOf("superseded")<0&&(c.error("transition error to "+a.to().name),e.selectedFolder=!1,d.go("mail"))})}angular.module("SOGo.MailerUI",["ngCookies","ui.router","ck","angularFileUpload","SOGo.Common","SOGo.ContactsUI","SOGo.SchedulerUI","ngAnimate","SOGo.PreferencesUI"]).config(a).run(l),a.$inject=["$stateProvider","$urlRouterProvider"],b.$inject=["$window","$q","Account"],c.$inject=["$stateParams","stateAccounts"],d.$inject=["$q","$stateParams","stateAccount","decodeUriFilter","Mailbox"],e.$inject=["$transition$","encodeUriFilter","Mailbox"],f.$inject=["$q","$state","Mailbox","stateMailbox"],g.$inject=["$q","Mailbox"],h.$inject=["$q","Mailbox","decodeUriFilter","$stateParams"],i.$inject=["Mailbox","encodeUriFilter","$stateParams","$state","stateMailbox","stateMessages"],j.$inject=["$stateParams","stateMailbox"],k.$inject=["stateMailbox"],l.$inject=["$window","$transitions","$log","$state","Mailbox"]}();
//# sourceMappingURL=Mailer.js.map
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(){"use strict";angular.module("SOGo.MainUI",["SOGo.Common","SOGo.Authentication"]),n.$inject=["$scope","$window","$timeout","Dialog","$mdDialog","Authentication"];function n(n,o,t,e,i,a){var l=this;this.$onInit=function(){this.creds={username:o.cookieUsername,password:null,rememberLogin:angular.isDefined(o.cookieUsername)&&o.cookieUsername.length>0},/\blanguage=/.test(o.location.search)&&(this.creds.language=o.language),this.loginState=!1,this.showLogin=!1,t(function(){l.showLogin=!0},100)},this.login=function(){return l.loginState="authenticating",a.login(l.creds).then(function(n){l.loginState="logged",l.cn=n.cn,t(function(){o.location.href===n.url?o.location.reload(!0):o.location.href=n.url},1e3)},function(n){l.loginState="error",l.errorMessage=n.error}),!1},this.showAbout=function(n){i.show({targetEvent:n,templateUrl:"aboutBox.html",controller:o,controllerAs:"about"}),o.$inject=["$mdDialog"];function o(n){this.closeDialog=function(){n.hide()}}},this.changeLanguage=function(n){o.location.href=ApplicationBaseURL+"login?language="+this.creds.language}}angular.module("SOGo.MainUI").controller("LoginController",n)}();
!function(){"use strict";function a(a,b,c,d,e,f){var g=this;this.$onInit=function(){this.creds={username:b.cookieUsername,password:null,rememberLogin:angular.isDefined(b.cookieUsername)&&b.cookieUsername.length>0},/\blanguage=/.test(b.location.search)&&(this.creds.language=b.language),this.loginState=!1,this.showLogin=!1,c(function(){g.showLogin=!0},100)},this.login=function(){return g.loginState="authenticating",f.login(g.creds).then(function(a){g.loginState="logged",g.cn=a.cn,c(function(){b.location.href===a.url?b.location.reload(!0):b.location.href=a.url},1e3)},function(a){g.loginState="error",g.errorMessage=a.error}),!1},this.showAbout=function(a){function b(a){this.closeDialog=function(){a.hide()}}e.show({targetEvent:a,templateUrl:"aboutBox.html",controller:b,controllerAs:"about"}),b.$inject=["$mdDialog"]},this.changeLanguage=function(a){b.location.href=ApplicationBaseURL+"login?language="+this.creds.language}}angular.module("SOGo.MainUI",["SOGo.Common","SOGo.Authentication"]),a.$inject=["$scope","$window","$timeout","Dialog","$mdDialog","Authentication"],angular.module("SOGo.MainUI").controller("LoginController",a)}();
//# sourceMappingURL=Main.js.map
\ No newline at end of file
{"version":3,"sources":["Main/Main.app.js"],"names":["angular","module","LoginController","$inject","$scope","$window","$timeout","Dialog","$mdDialog","Authentication","vm","this","$onInit","creds","username","cookieUsername","password","rememberLogin","isDefined","length","test","location","search","language","loginState","showLogin","login","then","data","cn","href","url","reload","msg","errorMessage","error","showAbout","$event","show","targetEvent","templateUrl","controller","AboutDialogController","controllerAs","closeDialog","hide","changeLanguage","ApplicationBaseURL"],"mappings":"CAGA,WACE,aAEAA,QAAQC,OAAO,eAAgB,cAAe,wBAK9CC,EAAgBC,SAAW,SAAU,UAAW,WAAY,SAAU,YAAa,kBACnF,SAASD,EAAgBE,EAAQC,EAASC,EAAUC,EAAQC,EAAWC,GACrE,IAAIC,EAAKC,KAETA,KAAKC,QAAU,WACbD,KAAKE,OACHC,SAAUT,EAAQU,eAClBC,SAAU,KACVC,cAAejB,QAAQkB,UAAUb,EAAQU,iBAAmBV,EAAQU,eAAeI,OAAS,GAG1F,cAAcC,KAAKf,EAAQgB,SAASC,UACtCX,KAAKE,MAAMU,SAAWlB,EAAQkB,UAChCZ,KAAKa,YAAa,EAGlBb,KAAKc,WAAY,EACjBnB,EAAS,WAAaI,EAAGe,WAAY,GAAS,MAGhDd,KAAKe,MAAQ,WAkBX,OAjBAhB,EAAGc,WAAa,iBAChBf,EAAeiB,MAAMhB,EAAGG,OACrBc,KAAK,SAASC,GACblB,EAAGc,WAAa,SAChBd,EAAGmB,GAAKD,EAAKC,GAGbvB,EAAS,WACHD,EAAQgB,SAASS,OAASF,EAAKG,IACjC1B,EAAQgB,SAASW,QAAO,GAExB3B,EAAQgB,SAASS,KAAOF,EAAKG,KAC9B,MACF,SAASE,GACVvB,EAAGc,WAAa,QAChBd,EAAGwB,aAAeD,EAAIE,SAEnB,GAGTxB,KAAKyB,UAAY,SAASC,GACxB7B,EAAU8B,MACRC,YAAaF,EACbG,YAAa,gBACbC,WAAYC,EACZC,aAAc,UAEhBD,EAAsBvC,SAAW,aACjC,SAASuC,EAAsBlC,GAC7BG,KAAKiC,YAAc,WACjBpC,EAAUqC,UAKhBlC,KAAKmC,eAAiB,SAAST,GAE7BhC,EAAQgB,SAASS,KAAOiB,mBAAqB,kBAAoBpC,KAAKE,MAAMU,UAIhFvB,QACGC,OAAO,eACPwC,WAAW,kBAAmBvC,GAxEnC","file":"Main.js"}
\ No newline at end of file
{"version":3,"sources":["Main/Main.app.js"],"names":["LoginController","$scope","$window","$timeout","Dialog","$mdDialog","Authentication","vm","this","$onInit","creds","username","cookieUsername","password","rememberLogin","angular","isDefined","length","test","location","search","language","loginState","showLogin","login","then","data","cn","href","url","reload","msg","errorMessage","error","showAbout","$event","AboutDialogController","closeDialog","hide","show","targetEvent","templateUrl","controller","controllerAs","$inject","changeLanguage","ApplicationBaseURL","module"],"mappings":"CAGA,WACE,YAQA,SAASA,GAAgBC,EAAQC,EAASC,EAAUC,EAAQC,EAAWC,GACrE,GAAIC,GAAKC,IAETA,MAAKC,QAAU,WACbD,KAAKE,OACHC,SAAUT,EAAQU,eAClBC,SAAU,KACVC,cAAeC,QAAQC,UAAUd,EAAQU,iBAAmBV,EAAQU,eAAeK,OAAS,GAG1F,cAAcC,KAAKhB,EAAQiB,SAASC,UACtCZ,KAAKE,MAAMW,SAAWnB,EAAQmB,UAChCb,KAAKc,YAAa,EAGlBd,KAAKe,WAAY,EACjBpB,EAAS,WAAaI,EAAGgB,WAAY,GAAS,MAGhDf,KAAKgB,MAAQ,WAkBX,MAjBAjB,GAAGe,WAAa,iBAChBhB,EAAekB,MAAMjB,EAAGG,OACrBe,KAAK,SAASC,GACbnB,EAAGe,WAAa,SAChBf,EAAGoB,GAAKD,EAAKC,GAGbxB,EAAS,WACHD,EAAQiB,SAASS,OAASF,EAAKG,IACjC3B,EAAQiB,SAASW,QAAO,GAExB5B,EAAQiB,SAASS,KAAOF,EAAKG,KAC9B,MACF,SAASE,GACVxB,EAAGe,WAAa,QAChBf,EAAGyB,aAAeD,EAAIE,SAEnB,GAGTzB,KAAK0B,UAAY,SAASC,GAQxB,QAASC,GAAsB/B,GAC7BG,KAAK6B,YAAc,WACjBhC,EAAUiC,QATdjC,EAAUkC,MACRC,YAAaL,EACbM,YAAa,gBACbC,WAAYN,EACZO,aAAc,UAEhBP,EAAsBQ,SAAW,cAQnCpC,KAAKqC,eAAiB,SAASV,GAE7BjC,EAAQiB,SAASS,KAAOkB,mBAAqB,kBAAoBtC,KAAKE,MAAMW,UA/DhFN,QAAQgC,OAAO,eAAgB,cAAe,wBAK9C/C,EAAgB4C,SAAW,SAAU,UAAW,WAAY,SAAU,YAAa,kBA8DnF7B,QACGgC,OAAO,eACPL,WAAW,kBAAmB1C","file":"Main.js","sourcesContent":["/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\n/* JavaScript for MainUI (SOGoRootPage) */\n\n(function() {\n 'use strict';\n\n angular.module('SOGo.MainUI', ['SOGo.Common', 'SOGo.Authentication']);\n\n /**\n * @ngInject\n */\n LoginController.$inject = ['$scope', '$window', '$timeout', 'Dialog', '$mdDialog', 'Authentication'];\n function LoginController($scope, $window, $timeout, Dialog, $mdDialog, Authentication) {\n var vm = this;\n\n this.$onInit = function() {\n this.creds = {\n username: $window.cookieUsername,\n password: null,\n rememberLogin: angular.isDefined($window.cookieUsername) && $window.cookieUsername.length > 0\n };\n // Send selected language only if user has changed it\n if (/\\blanguage=/.test($window.location.search))\n this.creds.language = $window.language;\n this.loginState = false;\n\n // Show login once everything is initialized\n this.showLogin = false;\n $timeout(function() { vm.showLogin = true; }, 100);\n };\n\n this.login = function() {\n vm.loginState = 'authenticating';\n Authentication.login(vm.creds)\n .then(function(data) {\n vm.loginState = 'logged';\n vm.cn = data.cn;\n\n // Let the user see the succesfull message before reloading the page\n $timeout(function() {\n if ($window.location.href === data.url)\n $window.location.reload(true);\n else\n $window.location.href = data.url;\n }, 1000);\n }, function(msg) {\n vm.loginState = 'error';\n vm.errorMessage = msg.error;\n });\n return false;\n };\n\n this.showAbout = function($event) {\n $mdDialog.show({\n targetEvent: $event,\n templateUrl: 'aboutBox.html',\n controller: AboutDialogController,\n controllerAs: 'about'\n });\n AboutDialogController.$inject = ['$mdDialog'];\n function AboutDialogController($mdDialog) {\n this.closeDialog = function() {\n $mdDialog.hide();\n };\n }\n };\n\n this.changeLanguage = function($event) {\n // Reload page\n $window.location.href = ApplicationBaseURL + 'login?language=' + this.creds.language;\n };\n }\n\n angular\n .module('SOGo.MainUI')\n .controller('LoginController', LoginController);\n})();\n"]}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(){"use strict";angular.module("SOGo.SchedulerUI",["ngCookies","ui.router","angularFileUpload","ck","SOGo.Common","SOGo.PreferencesUI","SOGo.ContactsUI","SOGo.MailerUI","as.sortable"]).config(e).run(r),e.$inject=["$stateProvider","$urlRouterProvider"];function e(e,r){e.state("calendars",{url:"/calendar",views:{calendars:{templateUrl:"UIxCalMainView",controller:"CalendarsController",controllerAs:"app"}},resolve:{stateCalendars:a}}).state("calendars.view",{url:"/{view:(?:day|week|month|multicolumnday)}/:day",views:{calendarView:{templateUrl:function(e){return e.view+"view?day="+e.day},controller:"CalendarController",controllerAs:"calendar"}},resolve:{stateEventsBlocks:n}}),r.when("/calendar/day",function(){return"/calendar/day/"+(new Date).getDayString()}),r.when("/calendar/multicolumnday",function(){return"/calendar/multicolumnday/"+(new Date).getDayString()}),r.when("/calendar/week",function(){return"/calendar/week/"+(new Date).getDayString()}),r.when("/calendar/month",function(){return"/calendar/month/"+(new Date).getDayString()}),r.otherwise("/calendar")}a.$inject=["Calendar"];function a(e){return e.$calendars||e.$findAll(window.calendarsData)}n.$inject=["$stateParams","Component","Calendar"];function n(e,a,n){return a.$eventsBlocksForView(e.view,e.day.asDate()).then(function(e){return _.forEach(e,function(e){e.id&&(e.calendar=new n({id:e.id,name:e.calendarName}))}),e})}r.$inject=["$rootScope","$log","$location","$state","Preferences"];function r(e,a,n,r,t){if(e.$on("$stateChangeError",function(e,n,t,l,o,c){a.error(c),r.go("calendar")}),e.$on("$routeChangeError",function(e,n,r,t){a.error(e,n,r,t)}),0===n.url().length){var l="/calendar/",o=/(.+)view/.exec(t.settings.Calendar.View);l+=o?o[1]:"week";var c=new Date;if(t.defaults.SOGoCalendarWeekdays)for(var i=["SU","MO","TU","WE","TH","FR","SA"],d=i[c.getDay()];t.defaults.SOGoCalendarWeekdays.indexOf(d)<0;)c.addDays(1),d=i[c.getDay()];l+="/"+c.getDayString(),n.replace().url(l)}}}();
!function(){"use strict";function a(a,d){a.state("calendars",{url:"/calendar",views:{calendars:{templateUrl:"UIxCalMainView",controller:"CalendarsController",controllerAs:"app"}},resolve:{stateCalendars:b}}).state("calendars.view",{url:"/{view:(?:day|week|month|multicolumnday)}/:day",views:{calendarView:{templateUrl:function(a){return a.view+"view?day="+a.day},controller:"CalendarController",controllerAs:"calendar"}},resolve:{stateEventsBlocks:c}}),d.when("/calendar/day",function(){var a=new Date;return"/calendar/day/"+a.getDayString()}),d.when("/calendar/multicolumnday",function(){var a=new Date;return"/calendar/multicolumnday/"+a.getDayString()}),d.when("/calendar/week",function(){var a=new Date;return"/calendar/week/"+a.getDayString()}),d.when("/calendar/month",function(){var a=new Date;return"/calendar/month/"+a.getDayString()}),d.otherwise("/calendar")}function b(a){return a.$calendars||a.$findAll(window.calendarsData)}function c(a,b,c){return b.$eventsBlocksForView(a.view,a.day.asDate()).then(function(a){return _.forEach(a,function(a){a.id&&(a.calendar=new c({id:a.id,name:a.calendarName}))}),a})}function d(a,b,c,d,e){if(a.$on("$stateChangeError",function(a,c,e,f,g,h){b.error(h),d.go("calendar")}),a.$on("$routeChangeError",function(a,c,d,e){b.error(a,c,d,e)}),0===c.url().length){var f="/calendar/",g=/(.+)view/.exec(e.settings.Calendar.View);f+=g?g[1]:"week";var h=new Date;if(e.defaults.SOGoCalendarWeekdays)for(var i=["SU","MO","TU","WE","TH","FR","SA"],j=i[h.getDay()];e.defaults.SOGoCalendarWeekdays.indexOf(j)<0;)h.addDays(1),j=i[h.getDay()];f+="/"+h.getDayString(),c.replace().url(f)}}angular.module("SOGo.SchedulerUI",["ngCookies","ui.router","angularFileUpload","ck","SOGo.Common","SOGo.PreferencesUI","SOGo.ContactsUI","SOGo.MailerUI","as.sortable"]).config(a).run(d),a.$inject=["$stateProvider","$urlRouterProvider"],b.$inject=["Calendar"],c.$inject=["$stateParams","Component","Calendar"],d.$inject=["$rootScope","$log","$location","$state","Preferences"]}();
//# sourceMappingURL=Scheduler.js.map
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment