mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-15 16:37:13 +00:00
(js/css) Update generated files
This commit is contained in:
1 parent
c9c6b0dc9f
commit
7ddecd4006
18 files changed
+18
-18
No files matched your search
@@ -1,2 +1,2 @@
|
||||
function l(){var e,t,n=arguments[0],r=n,i=arguments;for(labels[n]?r=labels[n]:clabels[n]&&(r=clabels[n]),e=1,t=0;e<i.length;e++,t++)r=r.replace("%{"+t+"}",i[e]);return e=1,i.length>1&&(r=r.replace(/%((%)|s|d)/g,function(t){var n=null;if(t[2])n=t[2];else{switch(n=i[e],t){case"%d":n=parseFloat(n),isNaN(n)&&(n=0)}e++}return n})),r}function hexToRgb(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function contrast(e){var t,n,r=1;if(t=hexToRgb(e)){n=[t.r/255,t.g/255,t.b/255];for(var i=0;i<n.length;++i)n[i]<=.03928?n[i]=n[i]/12.92:n[i]=Math.pow((n[i]+.055)/1.055,2.4);r=.2126*n[0]+.7152*n[1]+.0722*n[2]}return r>.179?"black":"white"}function guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(e()+e()+"-"+e()+"-4"+e().substr(0,3)+"-"+e()+"-"+e()+e()+e()).toLowerCase()}!function(){"use strict";function e(e,t,n,r,i){r.definePalette("sogo-green",{50:"eaf5e9",100:"cbe5c8",200:"aad6a5",300:"88c781",400:"66b86a",500:"56b04c",600:"4da143",700:"388e3c",800:"367d2e",900:"225e1b",A100:"fafafa",A200:"69f0ae",A400:"00e676",A700:"00c853",contrastDefaultColor:"dark",contrastLightColors:["300","400","500","600","700","800","900"]}),r.definePalette("sogo-blue",{50:"f0faf9",100:"e1f5f3",200:"ceebe8",300:"bfe0dd",400:"b2d6d3",500:"a1ccc8",600:"8ebfbb",700:"7db3b0",800:"639997",900:"4d8080",A100:"d4f7fa",A200:"c3f5fa",A400:"53e3f0",A700:"00b0c0",contrastDefaultColor:"light",contrastDarkColors:["50","100","200"]}),r.definePalette("sogo-paper",{50:"fcf7f8",100:"f7f1dc",200:"ede5ca",300:"e6d8ba",400:"e2d2a3",500:"d6c48d",600:"baa870",700:"857545",800:"524517",900:"433809",1000:"000000",A100:"ffffff",A200:"eeeeee",A400:"bdbdbd",A700:"616161",contrastDefaultColor:"dark",contrastLightColors:["800","900"]}),r.theme("default").primaryPalette("sogo-blue",{default:"900","hue-1":"400","hue-2":"800","hue-3":"A700"}).accentPalette("sogo-green",{default:"500","hue-1":"A100","hue-2":"300","hue-3":"A700"}),DebugEnabled||(e.debugEnabled(!1),t.debugInfoEnabled(!1),i.disableWarnings(),r.generateThemesOnDemand(!0)),n.interceptors.push("AuthInterceptor"),n.interceptors.push("ErrorInterceptor")}function t(e,t){return{response:function(n){return n&&/^application\/json/.test(n.config.headers.Accept)&&/^[\n\r ]*<!DOCTYPE html>/.test(n.data)?(e.location.reload(!0),t.reject()):n}}}function n(e,t,n,r){return{responseError:function(i){var o,s;if(/^application\/json/.test(i.config.headers.Accept)){if(t.usesCASAuthentication&&-1==i.status)return o=n.defer(),(s=angular.element('<iframe class="ng-hide" src="'+UserFolderURL+'recover"></iframe>')).on("load",function(){r.get("$http")(i.config).then(o.resolve,o.reject),s.remove()}),document.body.appendChild(s[0]),o.promise;e.$broadcast("http:Error",i)}return n.reject(i)}}}angular.module("SOGo.Common",["ngAnimate","ngMessages","ngSanitize","ngMaterial","mdColors"]).value("sgSettings",{isPopup:document.body.classList.contains("popup"),baseURL:function(){return ApplicationBaseURL||null},resourcesURL:function(){return ResourcesURL||null},activeUser:function(e){var t={login:UserLogin||null,identification:UserIdentification||null,email:UserEmail||null,language:UserLanguage||null,folderURL:UserFolderURL||null,isSuperUser:IsSuperUser||null,path:{calendar:UserCalendarPath||null,contacts:UserContactsPath||null,mail:UserMailPath||null,preferences:UserPreferencesPath||null,administration:IsSuperUser?UserAdministrationPath:null,help:HelpURL||null,logoff:UserLogoffPath||null}};return e?t[e]:t},minimumSearchLength:function(){return angular.isNumber(minimumSearchLength)?minimumSearchLength:2}}).constant("sgColors",{selection:["#FFFFFF","#330033","#C0C0C0","#999999","#666666","#333333","#000000","#FFCCCC","#FF6666","#FF0000","#CC0000","#990000","#660000","#330000","#FFCC99","#FF9966","#FF9900","#FF6600","#CC6600","#993300","#663300","#FFFF99","#FFFF66","#FFCC66","#FFCC33","#CC9933","#996633","#663333","#FFFFCC","#FFFF33","#FFFF00","#FFCC00","#999900","#666600","#333300","#CCCCCC","#66FF99","#33FF33","#33CC00","#009900","#006600","#003300","#99FFFF","#33FFFF","#66CCCC","#00CCCC","#339999","#336666","#003333","#CCFFFF","#66FFFF","#33CCFF","#3366FF","#3333FF","#000099","#000066","#CCCCFF","#9999FF","#6666CC","#6633FF","#6600CC","#333399","#330099","#FFCCFF","#FF99FF","#CC66CC","#CC33CC","#993399","#663366","#99FF99"]}).constant("sgConstant",{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1023px)","gt-md":"(min-width: 1024px)",lg:"(min-width: 1024px) and (max-width: 1279px)","gt-lg":"(min-width: 1280px)",xl:"(min-width: 1920px)",print:"print"}).config(e).factory("AuthInterceptor",t).factory("ErrorInterceptor",n),e.$inject=["$logProvider","$compileProvider","$httpProvider","$mdThemingProvider","$mdAriaProvider"],t.$inject=["$window","$q"],n.$inject=["$rootScope","$window","$q","$injector"]}(),functionLine truncated
|
||||
function l(){var e,t,n=arguments[0],r=n,i=arguments;for(labels[n]?r=labels[n]:clabels[n]&&(r=clabels[n]),e=1,t=0;e<i.length;e++,t++)r=r.replace("%{"+t+"}",i[e]);return e=1,i.length>1&&(r=r.replace(/%((%)|s|d)/g,function(t){var n=null;if(t[2])n=t[2];else{switch(n=i[e],t){case"%d":n=parseFloat(n),isNaN(n)&&(n=0)}e++}return n})),r}function hexToRgb(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function contrast(e){var t,n,r=1;if(t=hexToRgb(e)){n=[t.r/255,t.g/255,t.b/255];for(var i=0;i<n.length;++i)n[i]<=.03928?n[i]=n[i]/12.92:n[i]=Math.pow((n[i]+.055)/1.055,2.4);r=.2126*n[0]+.7152*n[1]+.0722*n[2]}return r>.179?"black":"white"}function guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(e()+e()+"-"+e()+"-4"+e().substr(0,3)+"-"+e()+"-"+e()+e()+e()).toLowerCase()}!function(){"use strict";function e(e,t,n,r,i){r.definePalette("sogo-green",{50:"eaf5e9",100:"cbe5c8",200:"aad6a5",300:"88c781",400:"66b86a",500:"56b04c",600:"4da143",700:"388e3c",800:"367d2e",900:"225e1b",A100:"fafafa",A200:"69f0ae",A400:"00e676",A700:"00c853",contrastDefaultColor:"dark",contrastLightColors:["300","400","500","600","700","800","900"]}),r.definePalette("sogo-blue",{50:"f0faf9",100:"e1f5f3",200:"ceebe8",300:"bfe0dd",400:"b2d6d3",500:"a1ccc8",600:"8ebfbb",700:"7db3b0",800:"639997",900:"4d8080",A100:"d4f7fa",A200:"c3f5fa",A400:"53e3f0",A700:"00b0c0",contrastDefaultColor:"light",contrastDarkColors:["50","100","200"]}),r.definePalette("sogo-paper",{50:"fcf7f8",100:"f7f1dc",200:"ede5ca",300:"e6d8ba",400:"e2d2a3",500:"d6c48d",600:"baa870",700:"857545",800:"524517",900:"433809",1000:"000000",A100:"ffffff",A200:"eeeeee",A400:"bdbdbd",A700:"616161",contrastDefaultColor:"dark",contrastLightColors:["800","900"]}),r.theme("default").primaryPalette("sogo-blue",{default:"900","hue-1":"400","hue-2":"800","hue-3":"A700"}).accentPalette("sogo-green",{default:"500","hue-1":"A100","hue-2":"300","hue-3":"A700"}),DebugEnabled||(e.debugEnabled(!1),t.debugInfoEnabled(!1),i.disableWarnings(),r.generateThemesOnDemand(!0)),n.interceptors.push("AuthInterceptor"),n.interceptors.push("ErrorInterceptor")}function t(e,t){return{response:function(n){return n&&/^application\/json/.test(n.config.headers.Accept)&&/^[\n\r ]*<!DOCTYPE html>/.test(n.data)?(e.location.reload(!0),t.reject()):n}}}function n(e,t,n,r){return{responseError:function(i){var o,s;if(/^application\/json/.test(i.config.headers.Accept)){if(t.usesCASAuthentication&&-1==i.status)return o=n.defer(),(s=angular.element('<iframe class="ng-hide" src="'+UserFolderURL+'recover"></iframe>')).on("load",function(){r.get("$http")(i.config).then(o.resolve,o.reject),s.remove()}),document.body.appendChild(s[0]),o.promise;e.$broadcast("http:Error",i)}return n.reject(i)}}}angular.module("SOGo.Common",["ngAnimate","ngMessages","ngSanitize","ngMaterial","mdColors"]).value("sgSettings",{isPopup:document.body.classList.contains("popup"),baseURL:function(){return ApplicationBaseURL||null},resourcesURL:function(){return ResourcesURL||null},activeUser:function(e){var t={login:UserLogin||null,identification:UserIdentification||null,email:UserEmail||null,language:UserLanguage||null,folderURL:UserFolderURL||null,isSuperUser:IsSuperUser||null,path:{calendar:UserCalendarPath||null,contacts:UserContactsPath||null,mail:UserMailPath||null,preferences:UserPreferencesPath||null,administration:IsSuperUser?UserAdministrationPath:null,help:HelpURL||null,logoff:UserLogoffPath||null}};return e?t[e]:t},minimumSearchLength:function(){return angular.isNumber(minimumSearchLength)?minimumSearchLength:2}}).constant("sgColors",{selection:["#FFFFFF","#330033","#C0C0C0","#999999","#666666","#333333","#000000","#FFCCCC","#FF6666","#FF0000","#CC0000","#990000","#660000","#330000","#FFCC99","#FF9966","#FF9900","#FF6600","#CC6600","#993300","#663300","#FFFF99","#FFFF66","#FFCC66","#FFCC33","#CC9933","#996633","#663333","#FFFFCC","#FFFF33","#FFFF00","#FFCC00","#999900","#666600","#333300","#CCCCCC","#66FF99","#33FF33","#33CC00","#009900","#006600","#003300","#99FFFF","#33FFFF","#66CCCC","#00CCCC","#339999","#336666","#003333","#CCFFFF","#66FFFF","#33CCFF","#3366FF","#3333FF","#000099","#000066","#CCCCFF","#9999FF","#6666CC","#6633FF","#6600CC","#333399","#330099","#FFCCFF","#FF99FF","#CC66CC","#CC33CC","#993399","#663366","#99FF99"]}).constant("sgConstant",{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1023px)","gt-md":"(min-width: 1024px)",lg:"(min-width: 1024px) and (max-width: 1279px)","gt-lg":"(min-width: 1280px)",xl:"(min-width: 1920px)",print:"print"}).config(e).factory("AuthInterceptor",t).factory("ErrorInterceptor",n),e.$inject=["$logProvider","$compileProvider","$httpProvider","$mdThemingProvider","$mdAriaProvider"],t.$inject=["$window","$q"],n.$inject=["$rootScope","$window","$q","$injector"]}(),functionLine truncated
|
||||
//# sourceMappingURL=Common.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Common/utils.js","Common/Common.app.js","Common/mdColors.app.js","Common/decodeUri.filter.js","Common/encodeUri.filter.js","Common/ensureTarget.filter.js","Common/loc.filter.js","Common/range.filter.js","Common/txt2html.filter.js","Common/AclController.js","Common/navController.js","Common/Acl.service.js","Common/Alarm.service.js","Common/Authentication.service.js","Common/Dialog.service.js","Common/Gravatar.service.js","Common/Resource.service.js","Common/sgFocus.service.js","Common/sgHotkeys.service.js","Common/User.service.js","Common/sgAvatarImage.directive.js","Common/sgCheckmark.directive.js","Common/sgColorPicker.directive.js","Common/sgCompile.directive.js","Common/sgDatepickerReadonlyInput.directive.js","Common/sgDraggable.directive.js","Common/sgDroppable.directive.js","Common/sgEnter.directive.js","Common/sgEscape.directive.js","Common/sgFocus.directive.js","Common/sgFolderStylesheet.directive.js","Common/sgNoDirtyCheck.directive.js","Common/sgPlaceholder.directive.js","Common/sgResetOnDisabled.directive.js","Common/sgRippleClick.directive.js","Common/sgSearch.directive.js","Common/sgSelectOnly.directive.js","Common/sgSubscribe.directive.js","Common/sgTimepicker.directive.js","Common/sgToggleGrid.directive.js"],"names":["l","i","j","key","arguments","value","args","labels","clabels","length","replace","m","val","parseFloat","isNaN","hexToRgb","hex","result","exec","r","parseInt","g","b","contrast","color","c","Math","pow","guid","S4","random","toString","substring","substr","toLowerCase","configure","$logProvider","$compileProvider","$httpProvider","$mdThemingProvider","$mdAriaProvider","definePalette","50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700","contrastDefaultColor","contrastLightColors","contrastDarkColors","1000","theme","primaryPalette","default","hue-1","hue-2","hue-3","accentPalette","DebugEnabled","debugEnabled","debugInfoEnabled","disableWarnings","generateThemesOnDemand","interceptors","push","AuthInterceptor","$window","$q","response","test","config","headers","Accept","data","location","reload","reject","ErrorInterceptor","$rootScope","$injector","responseError","rejection","deferred","iframe","usesCASAuthentication","status","defer","angular","element","UserFolderURL","on","get","then","resolve","remove","document","body","appendChild","promise","$broadcast","module","isPopup","classList","contains","baseURL","ApplicationBaseURL","resourcesURL","ResourcesURL","activeUser","param","settings","login","UserLogin","identification","UserIdentification","email","UserEmail","language","UserLanguage","folderURL","isSuperUser","IsSuperUser","path","calendar","UserCalendarPath","contacts","UserContactsPath","mail","UserMailPath","preferences","UserPreferencesPath","administration","UserAdministrationPath","help","HelpURL","logoff","UserLogoffPath","minimumSearchLength","isNumber","constant","selection","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print","factory","$inject","_$mdThemingProvider","runBlock","$interpolate","$document","$log","buildCssSelectors","selectors","join","addRule","fgInterpolate","bgInterpolate","themeName","paletteName","colorArray","hueName","context","palette","hue","customSheet","insertRule","index","addBorderRule","bdrInterpolate","colorValue","fgDefault","bgDefault","bdrDefault","fgDefaultHue","bgDefaultHue","fgColor","bgColor","bdrColor","fgHue","bgHue","style","head","querySelector","createElement","title","createTextNode","sheet","getStyleSheet","cssRules","deleteRule","forEach","_THEMES","_PALETTES","colors","primary","name","hues","run","decodeUri","decodeURIComponent","filter","encodeUri","encodeURIComponent","ensureTarget","$sce","tree","find","attr","trustAs","html","n","res","txt2html","linkyFilter","text","String","undefined","AclController","$timeout","$mdDialog","Dialog","usersWithACL","User","folder","selectUser","user","$event","target","parentNode","vm","selectedUid","uid","selectedUser","inactive","$rights","this","users","userToAdd","searchText","userFilter","$query","$filter","$acl","closeModal","$resetUsersRights","hide","saveModal","$saveUsersRights","alert","confirmChange","confirmation","$confirmRights","showing","message","removeUser","$removeUser","addUser","$addUser","selectAllRights","$selectAllRights","showRights","controller","navController","$scope","$interval","$http","$mdSidenav","$mdToast","$mdMedia","sgConstant","sgSettings","Resource","Alarm","leftIsClose","isOpen","onHttpError","event","isString","statusText","show","template","hideDelay","position","debug","resource","$onInit","centerIsClose","currentDay","window","secondsBeforeTomorrow","$watch","newVal","isGtMedium","$on","getAlarms","toggleLeft","triggerHandler","toggle","toggleRight","toggleCenter","options","save","post","state","Acl","folderId","Settings","extend","$$resource","$User","prototype","$users","owner","_this","isDefined","userResource","fetch","canSubscribeUser","isSubscribed","wasLine truncated
|
||||
{"version":3,"sources":["Common/utils.js","Common/Common.app.js","Common/mdColors.app.js","Common/decodeUri.filter.js","Common/encodeUri.filter.js","Common/ensureTarget.filter.js","Common/loc.filter.js","Common/range.filter.js","Common/txt2html.filter.js","Common/AclController.js","Common/navController.js","Common/Acl.service.js","Common/Alarm.service.js","Common/Authentication.service.js","Common/Dialog.service.js","Common/Gravatar.service.js","Common/Resource.service.js","Common/sgFocus.service.js","Common/sgHotkeys.service.js","Common/User.service.js","Common/sgAvatarImage.directive.js","Common/sgCheckmark.directive.js","Common/sgColorPicker.directive.js","Common/sgCompile.directive.js","Common/sgDatepickerReadonlyInput.directive.js","Common/sgDraggable.directive.js","Common/sgDroppable.directive.js","Common/sgEnter.directive.js","Common/sgEscape.directive.js","Common/sgFocus.directive.js","Common/sgFolderStylesheet.directive.js","Common/sgNoDirtyCheck.directive.js","Common/sgPlaceholder.directive.js","Common/sgResetOnDisabled.directive.js","Common/sgRippleClick.directive.js","Common/sgSearch.directive.js","Common/sgSelectOnly.directive.js","Common/sgSubscribe.directive.js","Common/sgTimepicker.directive.js","Common/sgToggleGrid.directive.js"],"names":["l","i","j","key","arguments","value","args","labels","clabels","length","replace","m","val","parseFloat","isNaN","hexToRgb","hex","result","exec","r","parseInt","g","b","contrast","color","c","Math","pow","guid","S4","random","toString","substring","substr","toLowerCase","configure","$logProvider","$compileProvider","$httpProvider","$mdThemingProvider","$mdAriaProvider","definePalette","50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700","contrastDefaultColor","contrastLightColors","contrastDarkColors","1000","theme","primaryPalette","default","hue-1","hue-2","hue-3","accentPalette","DebugEnabled","debugEnabled","debugInfoEnabled","disableWarnings","generateThemesOnDemand","interceptors","push","AuthInterceptor","$window","$q","response","test","config","headers","Accept","data","location","reload","reject","ErrorInterceptor","$rootScope","$injector","responseError","rejection","deferred","iframe","usesCASAuthentication","status","defer","angular","element","UserFolderURL","on","get","$http","then","resolve","remove","document","body","appendChild","promise","$broadcast","module","isPopup","classList","contains","baseURL","ApplicationBaseURL","resourcesURL","ResourcesURL","activeUser","param","settings","login","UserLogin","identification","UserIdentification","email","UserEmail","language","UserLanguage","folderURL","isSuperUser","IsSuperUser","path","calendar","UserCalendarPath","contacts","UserContactsPath","mail","UserMailPath","preferences","UserPreferencesPath","administration","UserAdministrationPath","help","HelpURL","logoff","UserLogoffPath","minimumSearchLength","isNumber","constant","selection","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print","factory","$inject","_$mdThemingProvider","runBlock","$interpolate","$document","$log","buildCssSelectors","selectors","join","addRule","fgInterpolate","bgInterpolate","themeName","paletteName","colorArray","hueName","context","palette","hue","customSheet","insertRule","index","addBorderRule","bdrInterpolate","colorValue","fgDefault","bgDefault","bdrDefault","fgDefaultHue","bgDefaultHue","fgColor","bgColor","bdrColor","fgHue","bgHue","style","head","querySelector","createElement","title","createTextNode","sheet","getStyleSheet","cssRules","deleteRule","forEach","_THEMES","_PALETTES","colors","primary","name","hues","run","decodeUri","decodeURIComponent","filter","encodeUri","encodeURIComponent","ensureTarget","$sce","tree","find","attr","trustAs","html","n","res","txt2html","linkyFilter","text","String","undefined","AclController","$timeout","$mdDialog","Dialog","usersWithACL","User","folder","selectUser","user","$event","target","parentNode","vm","selectedUid","uid","selectedUser","inactive","$rights","this","users","userToAdd","searchText","userFilter","$query","$filter","$acl","closeModal","$resetUsersRights","hide","saveModal","$saveUsersRights","alert","confirmChange","confirmation","$confirmRights","showing","message","removeUser","$removeUser","addUser","$addUser","selectAllRights","$selectAllRights","showRights","controller","navController","$scope","$interval","$mdSidenav","$mdToast","$mdMedia","sgConstant","sgSettings","Resource","Alarm","onHttpError","event","isString","statusText","show","template","hideDelay","position","debug","resource","$onInit","leftIsClose","centerIsClose","currentDay","window","secondsBeforeTomorrow","$watch","newVal","isGtMedium","$on","getAlarms","toggleLeft","isOpen","triggerHandler","toggle","toggleRight","toggleCenter","options","save","post","state","Acl","folderId","Settings","extend","$$resource","$User","prototype","$users","owner","_this","isDefined","userResource","fetch","canSubscribeUser","isSubscribed","wasLine truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function e(e,a){e.state("app",{url:"/addressbooks",abstract:!0,views:{addressbooks:{templateUrl:"UIxContactFoldersView",controller:"AddressBooksController",controllerAs:"app"}},resolve:{stateAddressbooks:t}}).state("app.addressbook",{url:"/:addressbookId",views:{addressbook:{templateUrl:"addressbook",controller:"AddressBookController",controllerAs:"addressbook"}},resolve:{stateAddressbook:o}}).state("app.addressbook.new",{url:"/{contactType:(?:card|list)}/new",params:{refs:{array:!0}},views:{card:{templateUrl:"UIxContactEditorTemplate",controller:"CardController",controllerAs:"editor"}},resolve:{stateCard:r}}).state("app.addressbook.card",{url:"/:cardId",abstract:!0,views:{card:{template:"<ui-view/>"}},resolve:{stateCard:s},onEnter:d,onExit:n}).state("app.addressbook.card.view",{url:"/view",views:{"card@app.addressbook":{templateUrl:"UIxContactViewTemplate",controller:"CardController",controllerAs:"editor"}}}).state("app.addressbook.card.editor",{url:"/edit",views:{"card@app.addressbook":{templateUrl:"UIxContactEditorTemplate",controller:"CardController",controllerAs:"editor"}}}),a.otherwise("/addressbooks/personal")}function t(e){return e.$findAll(window.contactFolders)}function o(e,t,o,r){var s=_.find(r.$findAll(),function(e){return e.id==o.addressbookId});return s?(delete s.selectedCard,s.$reload(),s):e.reject("Addressbook "+o.addressbookId+" not found")}function r(e,t,o){var r="v"+e.contactType,s=new o({pid:e.addressbookId,c_component:r,refs:e.refs});return t.selectedCard=!0,s}function s(e,t,o){return o.$futureAddressBookData.then(function(){var r=_.find(o.$cards,function(e){return e.id==t.cardId});if(r)return r.$reload();e.go("app.addressbook")})}function d(e,t){t.selectedCard=e.cardId}function n(e){delete o.selectedCard}function a(e,t,o){e.$on("$stateChangeError",function(e,r,s,d,n,a){t.error(a),o.go("app.addressbook",{addressbookId:"personal"})}),e.$on("$routeChangeError",function(e,o,r,s){t.error(e,o,r,s)})}angular.module("SOGo.ContactsUI",["ngCookies","ui.router","angularFileUpload","ck","SOGo.Common","SOGo.PreferencesUI","SOGo.MailerUI"]).config(e).run(a),e.$inject=["$stateProvider","$urlRouterProvider"],t.$inject=["AddressBook"],o.$inject=["$q","$state","$stateParams","AddressBook"],r.$inject=["$stateParams","stateAddressbook","Card"],s.$inject=["$state","$stateParams","stateAddressbook"],d.$inject=["$stateParams","stateAddressbook"],n.$inject=["stateAddressbook"],a.$inject=["$rootScope","$log","$state"]}(),function(){"use strict";function e(e,t,o,r,s,d,n,a,c,i,u,f,p,h,m,g){function $(e){e.push(h.createHotkey({key:l("hotkey_search"),description:l("Search"),callback:angular.bind(y,y.searchMode)})),e.push(h.createHotkey({key:l("key_create_card"),description:l("Create a new address book card"),callback:angular.bind(y,y.newComponent,"card")})),e.push(h.createHotkey({key:l("key_create_list"),description:l("Create a new list"),callback:angular.bind(y,y.newComponent,"list")})),e.push(h.createHotkey({key:"space",description:l("Toggle item"),callback:angular.bind(y,y.toggleCardSelection)})),e.push(h.createHotkey({key:"shift+space",description:l("Toggle range of items"),callback:angular.bind(y,y.toggleCardSelection)})),e.push(h.createHotkey({key:"up",description:l("View next item"),callback:k})),e.push(h.createHotkey({key:"down",description:l("View previous item"),callback:b})),e.push(h.createHotkey({key:"shift+up",description:l("Add next item to selection"),callback:C})),e.push(h.createHotkey({key:"shift+down",description:l("Add previous item to selection"),callback:v})),_.forEach(["backspace","delete"],function(t){e.push(h.createHotkey({key:t,description:l("Delete selected card or address book"),callback:angular.bind(y,y.confirmDeleteSelectedCards)}))}),_.forEach(e,function(e){h.registerHotkey(e)})}function k(e){var t=y.selectedFolder.$selectedCardIndex();return angular.isDefined(t)?(t--,y.selectedFolder.$topIndex>0&&y.selectedFolder.$topIndex--):(t=y.selectedFolder.$cards.length()-1,y.selectedFolder.$topIndex=y.selectedFolder.getLength()),t>-1&&y.selectCard(y.selectedFolder.$cards[t]),e.preventDefault(),t}function b(e){var t=y.selectedFolder.$selectedCardIndex();return angular.isDefined(t)?(t++,y.selectedFolder.$topIndex<y.selectedFolder.$cards.length&&y.selectedFolder.$topIndex++):t=0,t<y.selectedFolder.$cards.length?y.selectCard(y.selectedFolder.$cards[t]):t=-1,e.preventDefault(),t}function C(e){var t;y.selectedFolder.hasSelectedCard()&&(t=k(e))>=0&&toggleCardSelection(e,y.selectedFolder.$cards[t])}function v(e){var t;y.selectedFolder.hasSelectedCard()&&(t=b(e))>=0&&toggleCardSelection(e,y.selectedFolder.$cards[t])}function w(e,t){var o,s,d,a,c,i,u;o=y.selectedFolder,c=!1,s=o.$selectedCards(),(d=_.filter(s,function(e){return e.$isCard()})).length!=s.length&&n.show(n.simple().content(l("Lists can't be moved or copied.")).position("top right").hideDelay(2e3)),d.length&&("copy"==e?(i=o.$copyCards(d,t),u=l("%{0} card(s) copied",d.length)):(i=o.$moveCards(d,t),u=l("%{0} card(s) moLine truncated
|
||||
!function(){"use strict";function e(e,a){e.state("app",{url:"/addressbooks",abstract:!0,views:{addressbooks:{templateUrl:"UIxContactFoldersView",controller:"AddressBooksController",controllerAs:"app"}},resolve:{stateAddressbooks:t}}).state("app.addressbook",{url:"/:addressbookId",views:{addressbook:{templateUrl:"addressbook",controller:"AddressBookController",controllerAs:"addressbook"}},resolve:{stateAddressbook:o}}).state("app.addressbook.new",{url:"/{contactType:(?:card|list)}/new",params:{refs:{array:!0}},views:{card:{templateUrl:"UIxContactEditorTemplate",controller:"CardController",controllerAs:"editor"}},resolve:{stateCard:r}}).state("app.addressbook.card",{url:"/:cardId",abstract:!0,views:{card:{template:"<ui-view/>"}},resolve:{stateCard:s},onEnter:d,onExit:n}).state("app.addressbook.card.view",{url:"/view",views:{"card@app.addressbook":{templateUrl:"UIxContactViewTemplate",controller:"CardController",controllerAs:"editor"}}}).state("app.addressbook.card.editor",{url:"/edit",views:{"card@app.addressbook":{templateUrl:"UIxContactEditorTemplate",controller:"CardController",controllerAs:"editor"}}}),a.otherwise("/addressbooks/personal")}function t(e){return e.$findAll(window.contactFolders)}function o(e,t,o,r){var s=_.find(r.$findAll(),function(e){return e.id==o.addressbookId});return s?(delete s.selectedCard,s.$reload(),s):e.reject("Addressbook "+o.addressbookId+" not found")}function r(e,t,o){var r="v"+e.contactType,s=new o({pid:e.addressbookId,c_component:r,refs:e.refs});return t.selectedCard=!0,s}function s(e,t,o){return o.$futureAddressBookData.then(function(){var r=_.find(o.$cards,function(e){return e.id==t.cardId});if(r)return r.$reload();e.go("app.addressbook")})}function d(e,t){t.selectedCard=e.cardId}function n(e){delete o.selectedCard}function a(e,t,o){e.$on("$stateChangeError",function(e,r,s,d,n,a){t.error(a),o.go("app.addressbook",{addressbookId:"personal"})}),e.$on("$routeChangeError",function(e,o,r,s){t.error(e,o,r,s)})}angular.module("SOGo.ContactsUI",["ngCookies","ui.router","angularFileUpload","ck","SOGo.Common","SOGo.PreferencesUI","SOGo.MailerUI"]).config(e).run(a),e.$inject=["$stateProvider","$urlRouterProvider"],t.$inject=["AddressBook"],o.$inject=["$q","$state","$stateParams","AddressBook"],r.$inject=["$stateParams","stateAddressbook","Card"],s.$inject=["$state","$stateParams","stateAddressbook"],d.$inject=["$stateParams","stateAddressbook"],n.$inject=["stateAddressbook"],a.$inject=["$rootScope","$log","$state"]}(),function(){"use strict";function e(e,t,o,r,s,d,n,a,c,i,u,f,p,h,m,g){function $(e){var t=w.selectedFolder.$selectedCardIndex();return angular.isDefined(t)?(t--,w.selectedFolder.$topIndex>0&&w.selectedFolder.$topIndex--):(t=w.selectedFolder.$cards.length()-1,w.selectedFolder.$topIndex=w.selectedFolder.getLength()),t>-1&&w.selectCard(w.selectedFolder.$cards[t]),e.preventDefault(),t}function k(e){var t=w.selectedFolder.$selectedCardIndex();return angular.isDefined(t)?(t++,w.selectedFolder.$topIndex<w.selectedFolder.$cards.length&&w.selectedFolder.$topIndex++):t=0,t<w.selectedFolder.$cards.length?w.selectCard(w.selectedFolder.$cards[t]):t=-1,e.preventDefault(),t}function b(e){var t;w.selectedFolder.hasSelectedCard()&&(t=$(e))>=0&&toggleCardSelection(e,w.selectedFolder.$cards[t])}function C(e){var t;w.selectedFolder.hasSelectedCard()&&(t=k(e))>=0&&toggleCardSelection(e,w.selectedFolder.$cards[t])}function v(e,t){var o,s,d,a,c,i,u;o=w.selectedFolder,c=!1,s=o.$selectedCards(),(d=_.filter(s,function(e){return e.$isCard()})).length!=s.length&&n.show(n.simple().content(l("Lists can't be moved or copied.")).position("top right").hideDelay(2e3)),d.length&&("copy"==e?(i=o.$copyCards(d,t),u=l("%{0} card(s) copied",d.length)):(i=o.$moveCards(d,t),u=l("%{0} card(s) moved",d.length),a=_.map(d,"id"),c=o.selectedCard&&a.indexOf(o.selectedCard)>=0),i.then(function(){c&&r.go("app.addressbook"),n.show(n.simple().content(u).position("top right").hideDelay(2e3))}))}var w=this,y=[];this.$onInit=function(){i.selectedFolder=g,this.service=i,this.selectedFolder=g,this.mode={search:!1,multiple:0},function(e){e.push(h.createHotkey({key:l("hotkey_search"),description:l("Search"),callback:angular.bind(w,w.searchMode)})),e.push(h.createHotkey({key:l("key_create_card"),description:l("Create a new address book card"),callback:angular.bind(w,w.newComponent,"card")})),e.push(h.createHotkey({key:l("key_create_list"),description:l("Create a new list"),callback:angular.bind(w,w.newComponent,"list")})),e.push(h.createHotkey({key:"space",description:l("Toggle item"),callback:angular.bind(w,w.toggleCardSelection)})),e.push(h.createHotkey({key:"shift+space",description:l("Toggle range of items"),callback:angular.bind(w,w.toggleCardSelection)})),e.push(h.createHotkey({key:"up",description:l("View next item"),callback:$})),e.push(h.createHotkey({key:"down",description:l("View previous item"),callback:k})),e.push(h.createHotkey({key:"shift+up",description:l("Add next item to selection"),callback:b})),e.push(h.creatLine truncated
|
||||
//# sourceMappingURL=Contacts.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Contacts/Contacts.app.js","Contacts/AddressBookController.js","Contacts/AddressBooksController.js","Contacts/CardController.js","Contacts/sgAddress.directive.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","url","abstract","views","addressbooks","templateUrl","controller","controllerAs","resolve","stateAddressbooks","addressbook","stateAddressbook","params","refs","array","card","stateCard","stateNewCard","template","onEnter","onEnterCard","onExit","onExitCard","card@app.addressbook","otherwise","AddressBook","$findAll","window","contactFolders","$q","$state","$stateParams","_","find","id","addressbookId","selectedCard","$reload","reject","Card","tag","contactType","pid","c_component","$futureAddressBookData","then","$cards","cardObject","cardId","go","stateMailbox","runBlock","$rootScope","$log","$on","event","toState","toParams","fromState","fromParams","error","current","previous","rejection","angular","module","config","run","$inject","AddressBookController","$scope","$window","$timeout","$mdDialog","$mdToast","Account","focus","Dialog","Settings","sgHotkeys","_registerHotkeys","keys","push","createHotkey","key","l","description","callback","bind","vm","searchMode","newComponent","toggleCardSelection","_nextCard","_previousCard","_addNextCardToSelection","_addPreviousCardToSelection","forEach","hotkey","confirmDeleteSelectedCards","registerHotkey","$event","index","selectedFolder","$selectedCardIndex","isDefined","$topIndex","length","getLength","selectCard","preventDefault","hasSelectedCard","_selectedCardsOperation","operation","dstId","srcFolder","allCards","cards","ids","clearCardView","promise","success","$selectedCards","filter","$isCard","show","simple","content","position","hideDelay","$copyCards","$moveCards","map","indexOf","this","hotkeys","$onInit","service","mode","search","multiple","deregisterHotkey","selectedIndex","nextSelectedIndex","i","folder","$selectedCard","selected","shiftKey","$selectedCount","idsMap","Math","min","max","stopPropagation","type","unselectCards","selectedCards","size","confirm","ok","$deleteCards","copySelectedCards","moveSelectedCards","selectAll","sort","field","$filter","sortedBy","$query","cancelSearch","newMessage","recipients","recipientsField","accounts","account","o","$getMailboxes","mailboxes","$newMessage","message","editable","parent","element","document","body","targetEvent","clickOutsideToClose","escapeToClose","locals","stateAccount","stateMessage","newMessageWithRecipient","recipient","fn","newMessageWithSelectedCards","promises","$isList","expandable","ref","email","$shortFormat","c_mail","all","uniq","newListWithSelectedCards","$$email","uniqBy","reference","AddressBooksController","$mdMedia","$mdSidenav","FileUploader","sgConstant","User","confirmDelete","isSubscription","$delete","data","status","alert","name","catch","response","statusText","activeUser","select","editMode","value","close","newAddressbook","prompt","isEditable","isRemote","owner","UserLogin","$add","edit","originalAddressbook","$omit","revertEditing","save","$rename","importCards","CardsImportDialogController","scope","filterByExtension","item","isTextFile","test","join","uploader","ApplicationBaseURL","autoUpload","queueLimit","filters","onSuccessItem","headers","msg","hide","imported","onErrorItem","showLinks","LinksDialogController","urls","when","$reloadAll","showProperties","PropertiesDialogController","srcAddressBook","saveProperties","$save","init","cancel","share","$acl","$users","usersWithACL","users","subscribeToFolder","addressbookData","console","debug","$subscribe","isDroppableFolder","dstFolder","isOwned","acls","objectCreator","dragSelectedCards","CardController","sgSettings","$fullname","currentFolder","allEmailTypes","$EMAIL_TYPES","allTelTypes","$TEL_TYPES","allUrlTypes","$URL_TYPES","allAddressTypes","$ADDRESS_TYPES","categories","userFilterResults","transformCategory","input","isString","removeAttribute","form","attribute","$setDirty","addOrg","$addOrg","addBirthday","birthday","Date","addScreenName","$addScreenName","addEmail","$addEmail","addPhone","$addPhone","addUrl","$addUrl","addAddress","$addAddress","canAddCustomField","customFields","addCustomField","availableKeys","pullAll","deleteCustomField","userFilter","excludedCards","minimumSearchLength","dry","excludeLists","$valid","copy","reset","$reset","$setPristine","isNew","toggleRawSource","showRawSource","rawSource","$$resource","post","directive","restrict","addressLines","lines","locality_region","street","street2","locality","region","country","postalcode"],"mappings":"CAGA,WACE,aAUA,SAASA,EAAUC,EAAgBC,GACjCD,EACGE,MAAM,OACLC,IAAK,gBACLC,UAAU,EACVC,OACEC,cACEC,YAAa,wBACbC,WAAY,yBACZC,aAAc,QAGlBC,SACEC,kBAAmBA,KAGtBT,MAAM,mBACLC,IAAK,kBACLE,OACEO,aACEL,YAAa,cACbC,WAAY,wBACZC,aAAc,gBAGlBC,SACEG,iBAAkBA,KAGrBX,MAAM,uBACLC,IAAK,mCACLW,QACEC,MAAQC,OAAO,IAEjBX,OACEY,MACEV,YAAa,2BACbC,WAAY,iBACZC,aAAc,WAGlBC,SACEQ,UAAWC,KAGdjB,MAAM,wBACLC,IAAK,WACLC,UAAU,ELine truncated
|
||||
{"version":3,"sources":["Contacts/Contacts.app.js","Contacts/AddressBookController.js","Contacts/AddressBooksController.js","Contacts/CardController.js","Contacts/sgAddress.directive.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","url","abstract","views","addressbooks","templateUrl","controller","controllerAs","resolve","stateAddressbooks","addressbook","stateAddressbook","params","refs","array","card","stateCard","stateNewCard","template","onEnter","onEnterCard","onExit","onExitCard","card@app.addressbook","otherwise","AddressBook","$findAll","window","contactFolders","$q","$state","$stateParams","_","find","id","addressbookId","selectedCard","$reload","reject","Card","tag","contactType","pid","c_component","$futureAddressBookData","then","$cards","cardObject","cardId","go","stateMailbox","runBlock","$rootScope","$log","$on","event","toState","toParams","fromState","fromParams","error","current","previous","rejection","angular","module","config","run","$inject","AddressBookController","$scope","$window","$timeout","$mdDialog","$mdToast","Account","focus","Dialog","Settings","sgHotkeys","_nextCard","$event","index","vm","selectedFolder","$selectedCardIndex","isDefined","$topIndex","length","getLength","selectCard","preventDefault","_previousCard","_addNextCardToSelection","hasSelectedCard","toggleCardSelection","_addPreviousCardToSelection","_selectedCardsOperation","operation","dstId","srcFolder","allCards","cards","ids","clearCardView","promise","success","$selectedCards","filter","$isCard","show","simple","content","l","position","hideDelay","$copyCards","$moveCards","map","indexOf","this","hotkeys","$onInit","service","mode","search","multiple","keys","push","createHotkey","key","description","callback","bind","searchMode","newComponent","forEach","hotkey","confirmDeleteSelectedCards","registerHotkey","_registerHotkeys","deregisterHotkey","selectedIndex","nextSelectedIndex","i","folder","$selectedCard","selected","shiftKey","$selectedCount","idsMap","Math","min","max","stopPropagation","type","unselectCards","selectedCards","size","confirm","ok","$deleteCards","copySelectedCards","moveSelectedCards","selectAll","sort","field","$filter","sortedBy","$query","cancelSearch","newMessage","recipients","recipientsField","accounts","account","o","$getMailboxes","mailboxes","$newMessage","message","editable","parent","element","document","body","targetEvent","clickOutsideToClose","escapeToClose","locals","stateAccount","stateMessage","newMessageWithRecipient","recipient","fn","newMessageWithSelectedCards","promises","$isList","expandable","ref","email","$shortFormat","c_mail","all","uniq","newListWithSelectedCards","$$email","uniqBy","reference","AddressBooksController","$mdMedia","$mdSidenav","FileUploader","sgConstant","User","confirmDelete","isSubscription","$delete","data","status","alert","name","catch","response","statusText","activeUser","select","editMode","value","close","newAddressbook","prompt","isEditable","isRemote","owner","UserLogin","$add","edit","originalAddressbook","$omit","revertEditing","save","$rename","importCards","CardsImportDialogController","scope","filterByExtension","item","isTextFile","test","join","uploader","ApplicationBaseURL","autoUpload","queueLimit","filters","onSuccessItem","headers","msg","hide","imported","onErrorItem","showLinks","LinksDialogController","urls","when","$reloadAll","showProperties","PropertiesDialogController","srcAddressBook","saveProperties","$save","init","cancel","share","$acl","$users","usersWithACL","users","subscribeToFolder","addressbookData","console","debug","$subscribe","isDroppableFolder","dstFolder","isOwned","acls","objectCreator","dragSelectedCards","CardController","sgSettings","$fullname","currentFolder","allEmailTypes","$EMAIL_TYPES","allTelTypes","$TEL_TYPES","allUrlTypes","$URL_TYPES","allAddressTypes","$ADDRESS_TYPES","categories","userFilterResults","transformCategory","input","isString","removeAttribute","form","attribute","$setDirty","addOrg","$addOrg","addBirthday","birthday","Date","addScreenName","$addScreenName","addEmail","$addEmail","addPhone","$addPhone","addUrl","$addUrl","addAddress","$addAddress","canAddCustomField","customFields","addCustomField","availableKeys","pullAll","deleteCustomField","userFilter","excludedCards","minimumSearchLength","dry","excludeLists","$valid","copy","reset","$reset","$setPristine","isNew","toggleRawSource","showRawSource","rawSource","$$resource","post","directive","restrict","addressLines","lines","locality_region","street","street2","locality","region","country","postalcode"],"mappings":"CAGA,WACE,aAUA,SAASA,EAAUC,EAAgBC,GACjCD,EACGE,MAAM,OACLC,IAAK,gBACLC,UAAU,EACVC,OACEC,cACEC,YAAa,wBACbC,WAAY,yBACZC,aAAc,QAGlBC,SACEC,kBAAmBA,KAGtBT,MAAM,mBACLC,IAAK,kBACLE,OACEO,aACEL,YAAa,cACbC,WAAY,wBACZC,aAAc,gBAGlBC,SACEG,iBAAkBA,KAGrBX,MAAM,uBACLC,IAAK,mCACLW,QACEC,MAAQC,OAAO,IAEjBX,OACEY,MACEV,YAAa,2BACbC,WAAY,iBACZC,aAAc,WAGlBC,SACEQ,UAAWC,KAGdjB,MAAM,wBACLC,IAAK,WACLC,UAAU,ELine truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function t(e){if("function"!=typeof e.then)if(this.init(e),this.name&&!this.id){var i=t.$$resource.create("createFolder",this.name);this.$unwrap(i),this.acls={objectEditor:1,objectCreator:1,objectEraser:1}}else this.id&&(this.$acl=new t.$$Acl("Contacts/"+this.id));else this.$unwrap(e)}t.$factory=["$q","$timeout","$log","sgSettings","sgAddressBook_PRELOAD","Resource","Card","Acl","Preferences",function(e,i,r,s,n,a,o,d,u){return angular.extend(t,{$q:e,$timeout:i,$log:r,PRELOAD:n,$$resource:new a(s.activeUser("folderURL")+"Contacts",s.activeUser()),$Card:o,$$Acl:d,$Preferences:u,$query:{value:"",sort:"c_cn",asc:1},activeUser:s.activeUser(),selectedFolder:null,$refreshTimeout:null}),u.settings.Contact.SortingState&&(t.$query.sort=u.settings.Contact.SortingState[0],t.$query.asc=parseInt(u.settings.Contact.SortingState[1])),t}];try{angular.module("SOGo.ContactsUI")}catch(t){angular.module("SOGo.ContactsUI",["SOGo.Common","SOGo.PreferencesUI"])}angular.module("SOGo.ContactsUI").constant("sgAddressBook_PRELOAD",{LOOKAHEAD:50,SIZE:100}).factory("AddressBook",t.$factory),t.$filterAll=function(e,i,r){var s={search:e};return e?(angular.isUndefined(t.$cards)&&(t.$cards=[]),angular.extend(s,i),t.$$resource.fetch(null,"allContactSearch",s).then(function(i){var s,n,a,o=function(t){return this.id==t.id};for(s=r?_.filter(i.contacts,function(t){return _.isUndefined(_.find(r,_.bind(o,t)))}):i.contacts,a=t.$cards.length-1;a>=0;a--)n=t.$cards[a],_.isUndefined(_.find(s,_.bind(o,n)))&&t.$cards.splice(a,1);return _.forEach(s,function(i,r){if(_.isUndefined(_.find(t.$cards,_.bind(o,i)))){var s=new t.$Card(_.mapKeys(i,function(t,e){return e.toLowerCase()}),e);t.$cards.splice(r,0,s)}}),t.$log.debug(t.$cards),t.$cards})):(t.$cards=[],t.$q.when(t.$cards))},t.$add=function(t){var e,i,r;e=t.isSubscription?this.$subscriptions:this.$addressbooks,r=(i=_.find(e,function(e){return"personal"==t.id||"personal"!=e.id&&1===e.name.localeCompare(t.name)}))?_.indexOf(_.map(e,"id"),i.id):1,e.splice(r,0,t)},t.$findAll=function(e){var i=this;return e&&(this.$addressbooks=[],this.$subscriptions=[],this.$remotes=[],angular.forEach(e,function(e,r){var s=new t(e);s.isRemote?i.$remotes.push(s):s.isSubscription?i.$subscriptions.push(s):i.$addressbooks.push(s)})),_.union(this.$addressbooks,this.$subscriptions,this.$remotes)},t.$subscribe=function(e,i){var r=this;return t.$$resource.userResource(e).fetch(i,"subscribe").then(function(e){var i=new t(e);return _.isUndefined(_.find(r.$subscriptions,function(t){return t.id==e.id}))&&t.$add(i),i})},t.$reloadAll=function(){var e=this;return t.$$resource.fetch("addressbooksList").then(function(i){_.forEach(i.addressbooks,function(i){var r,s;r=i.isRemote?e.$remotes:i.owner!=t.activeUser.login?e.$subscriptions:e.$addressbooks,(s=_.find(r,function(t){return t.id==i.id}))&&s.init(i)})})},t.prototype.init=function(e,i){var r=this;this.$$cards||(this.$$cards=[]),this.idsMap={},this.$cards=[],angular.forEach(e,function(t,e){"headers"!=e&&"cards"!=e&&(r[e]=t)}),this.isOwned=t.activeUser.isSuperUser||this.owner==t.activeUser.login,this.isSubscription=!this.isRemote&&this.owner!=t.activeUser.login},t.prototype.$id=function(){return this.id?t.$q.when(this.id):this.$futureAddressBookData.then(function(t){return t.id})},t.prototype.getLength=function(){return this.$cards.length},t.prototype.getItemAtIndex=function(t){var e;return!this.$isLoading&&t>=0&&t<this.$cards.length&&(e=this.$cards[t],this.$lastVisibleIndex=Math.max(0,t-3),this.$loadCard(e))?e:null},t.prototype.$loadCard=function(e){var i,r,s,n,a=e.id,o=this.idsMap[a],d=this.$cards.length,u=!1;if(angular.isUndefined(this.ids)&&e.id)u=!0;else if(angular.isDefined(o)&&o<this.$cards.length&&(e.$loaded!=t.$Card.STATUS.NOT_LOADED&&(u=!0),i=Math.min(o+t.PRELOAD.LOOKAHEAD,d-1),this.$cards[i].$loaded!=t.$Card.STATUS.NOT_LOADED?(r=Math.max(o-t.PRELOAD.LOOKAHEAD,0),this.$cards[r].$loaded!=t.$Card.STATUS.LOADED&&(i=o,o=Math.max(o-t.PRELOAD.SIZE,0))):i=Math.min(o+t.PRELOAD.SIZE,d-1),this.$cards[o].$loaded==t.$Card.STATUS.NOT_LOADED||this.$cards[i].$loaded==t.$Card.STATUS.NOT_LOADED)){for(s=[];o<i&&o<d;o++)this.$cards[o].$loaded!=t.$Card.STATUS.NOT_LOADED?i++:(s.push(this.$cards[o].id),this.$cards[o].$loaded=t.$Card.STATUS.LOADING);t.$log.debug("Loading Ids "+s.join(" ")+" ("+s.length+" cards)"),s.length>0&&(n=t.$$resource.post(this.id,"headers",{ids:s}),this.$unwrapHeaders(n))}return u},t.prototype.hasSelectedCard=function(){return angular.isDefined(this.selectedCard)},t.prototype.isSelectedCard=function(t){return this.hasSelectedCard()&&this.selectedCard==t},t.prototype.$selectedCard=function(){var t=this;return _.find(this.$cards,function(e){return e.id==t.selectedCard})},t.prototype.$selectedCardIndex=function(){return _.indexOf(_.map(this.$cards,"id"),this.selectedCard)},t.prototype.$selectedCards=function(){return _.filter(this.$cards,function(t){return t.selected})},t.prototype.$selectedCount=function(){var t;return t=0,this.$cards&&(t=_.filter(this.$cardsLine truncated
|
||||
!function(){"use strict";function t(e){if("function"!=typeof e.then)if(this.init(e),this.name&&!this.id){var i=t.$$resource.create("createFolder",this.name);this.$unwrap(i),this.acls={objectEditor:1,objectCreator:1,objectEraser:1}}else this.id&&(this.$acl=new t.$$Acl("Contacts/"+this.id));else this.$unwrap(e)}t.$factory=["$q","$timeout","$log","sgSettings","sgAddressBook_PRELOAD","Resource","Card","Acl","Preferences",function(e,i,r,s,n,a,o,d,u){return angular.extend(t,{$q:e,$timeout:i,$log:r,PRELOAD:n,$$resource:new a(s.activeUser("folderURL")+"Contacts",s.activeUser()),$Card:o,$$Acl:d,$Preferences:u,$query:{value:"",sort:"c_cn",asc:1},activeUser:s.activeUser(),selectedFolder:null,$refreshTimeout:null}),u.settings.Contact.SortingState&&(t.$query.sort=u.settings.Contact.SortingState[0],t.$query.asc=parseInt(u.settings.Contact.SortingState[1])),t}];try{angular.module("SOGo.ContactsUI")}catch(t){angular.module("SOGo.ContactsUI",["SOGo.Common","SOGo.PreferencesUI"])}angular.module("SOGo.ContactsUI").constant("sgAddressBook_PRELOAD",{LOOKAHEAD:50,SIZE:100}).factory("AddressBook",t.$factory),t.$filterAll=function(e,i,r){var s={search:e};return e?(angular.isUndefined(t.$cards)&&(t.$cards=[]),angular.extend(s,i),t.$$resource.fetch(null,"allContactSearch",s).then(function(i){var s,n,a,o=function(t){return this.id==t.id};for(s=r?_.filter(i.contacts,function(t){return _.isUndefined(_.find(r,_.bind(o,t)))}):i.contacts,a=t.$cards.length-1;a>=0;a--)n=t.$cards[a],_.isUndefined(_.find(s,_.bind(o,n)))&&t.$cards.splice(a,1);return _.forEach(s,function(i,r){if(_.isUndefined(_.find(t.$cards,_.bind(o,i)))){var s=new t.$Card(_.mapKeys(i,function(t,e){return e.toLowerCase()}),e);t.$cards.splice(r,0,s)}}),t.$log.debug(t.$cards),t.$cards})):(t.$cards=[],t.$q.when(t.$cards))},t.$add=function(t){var e,i,r;e=t.isSubscription?this.$subscriptions:this.$addressbooks,r=(i=_.find(e,function(e){return"personal"==t.id||"personal"!=e.id&&1===e.name.localeCompare(t.name)}))?_.indexOf(_.map(e,"id"),i.id):1,e.splice(r,0,t)},t.$findAll=function(e){var i=this;return e&&(this.$addressbooks=[],this.$subscriptions=[],this.$remotes=[],angular.forEach(e,function(e,r){var s=new t(e);s.isRemote?i.$remotes.push(s):s.isSubscription?i.$subscriptions.push(s):i.$addressbooks.push(s)})),_.union(this.$addressbooks,this.$subscriptions,this.$remotes)},t.$subscribe=function(e,i){var r=this;return t.$$resource.userResource(e).fetch(i,"subscribe").then(function(e){var i=new t(e);return _.isUndefined(_.find(r.$subscriptions,function(t){return t.id==e.id}))&&t.$add(i),i})},t.$reloadAll=function(){var e=this;return t.$$resource.fetch("addressbooksList").then(function(i){_.forEach(i.addressbooks,function(i){var r,s;r=i.isRemote?e.$remotes:i.owner!=t.activeUser.login?e.$subscriptions:e.$addressbooks,(s=_.find(r,function(t){return t.id==i.id}))&&s.init(i)})})},t.prototype.init=function(e,i){var r=this;this.$$cards||(this.$$cards=[]),this.idsMap={},this.$cards=[],angular.forEach(e,function(t,e){"headers"!=e&&"cards"!=e&&(r[e]=t)}),this.isOwned=t.activeUser.isSuperUser||this.owner==t.activeUser.login,this.isSubscription=!this.isRemote&&this.owner!=t.activeUser.login},t.prototype.$id=function(){return this.id?t.$q.when(this.id):this.$futureAddressBookData.then(function(t){return t.id})},t.prototype.getLength=function(){return this.$cards.length},t.prototype.getItemAtIndex=function(t){var e;return!this.$isLoading&&t>=0&&t<this.$cards.length&&(e=this.$cards[t],this.$lastVisibleIndex=Math.max(0,t-3),this.$loadCard(e))?e:null},t.prototype.$loadCard=function(e){var i,r,s,n,a=e.id,o=this.idsMap[a],d=this.$cards.length,u=!1;if(angular.isUndefined(this.ids)&&e.id)u=!0;else if(angular.isDefined(o)&&o<this.$cards.length&&(e.$loaded!=t.$Card.STATUS.NOT_LOADED&&(u=!0),i=Math.min(o+t.PRELOAD.LOOKAHEAD,d-1),this.$cards[i].$loaded!=t.$Card.STATUS.NOT_LOADED?(r=Math.max(o-t.PRELOAD.LOOKAHEAD,0),this.$cards[r].$loaded!=t.$Card.STATUS.LOADED&&(i=o,o=Math.max(o-t.PRELOAD.SIZE,0))):i=Math.min(o+t.PRELOAD.SIZE,d-1),this.$cards[o].$loaded==t.$Card.STATUS.NOT_LOADED||this.$cards[i].$loaded==t.$Card.STATUS.NOT_LOADED)){for(s=[];o<i&&o<d;o++)this.$cards[o].$loaded!=t.$Card.STATUS.NOT_LOADED?i++:(s.push(this.$cards[o].id),this.$cards[o].$loaded=t.$Card.STATUS.LOADING);t.$log.debug("Loading Ids "+s.join(" ")+" ("+s.length+" cards)"),s.length>0&&(n=t.$$resource.post(this.id,"headers",{ids:s}),this.$unwrapHeaders(n))}return u},t.prototype.hasSelectedCard=function(){return angular.isDefined(this.selectedCard)},t.prototype.isSelectedCard=function(t){return this.hasSelectedCard()&&this.selectedCard==t},t.prototype.$selectedCard=function(){var t=this;return _.find(this.$cards,function(e){return e.id==t.selectedCard})},t.prototype.$selectedCardIndex=function(){return _.indexOf(_.map(this.$cards,"id"),this.selectedCard)},t.prototype.$selectedCards=function(){return _.filter(this.$cards,function(t){return t.selected})},t.prototype.$selectedCount=function(){var t;return t=0,this.$cards&&(t=_.filter(this.$cardsLine truncated
|
||||
//# sourceMappingURL=Contacts.services.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Contacts/AddressBook.service.js","Contacts/Card.service.js"],"names":["AddressBook","futureAddressBookData","then","this","init","name","id","newAddressBookData","$$resource","create","$unwrap","acls","objectEditor","objectCreator","objectEraser","$acl","$$Acl","$factory","$q","$timeout","$log","Settings","AddressBook_PRELOAD","Resource","Card","Acl","Preferences","angular","extend","PRELOAD","activeUser","$Card","$Preferences","$query","value","sort","asc","selectedFolder","$refreshTimeout","settings","Contact","SortingState","parseInt","module","e","constant","LOOKAHEAD","SIZE","factory","$filterAll","search","options","excludedCards","params","isUndefined","$cards","fetch","response","results","card","index","compareIds","data","_","filter","contacts","find","bind","length","splice","forEach","mapKeys","key","toLowerCase","debug","when","$add","addressbook","list","sibling","i","isSubscription","$subscriptions","$addressbooks","o","localeCompare","indexOf","map","$findAll","_this","$remotes","isRemote","push","union","$subscribe","uid","path","userResource","addressbookData","$reloadAll","addressbooks","group","owner","login","prototype","$$cards","idsMap","isOwned","isSuperUser","$id","$futureAddressBookData","getLength","getItemAtIndex","$isLoading","$lastVisibleIndex","Math","max","$loadCard","endIndex","ids","futureHeadersData","cardId","startIndex","loaded","isDefined","$loaded","STATUS","NOT_LOADED","min","LOADED","LOADING","join","post","$unwrapHeaders","hasSelectedCard","selectedCard","isSelectedCard","$selectedCard","$selectedCardIndex","$selectedCards","selected","$selectedCount","count","$startRefreshTimeout","cancel","refreshViewCheck","defaults","SOGoRefreshViewCheck","f","$reload","timeInterval","$filter","query","dry","copy","partial","addressbookId","futureData","fields","idFieldIndex","cards","headers","invokeMap","pid","oldIndex","removedCards","findIndex","zipObject","$rename","$save","$delete","promise","d","defer","remove","resolve","reject","$_deleteCards","forEachRight","selectedIndex","$deleteCards","uids","$copyCards","folder","$moveCards","save","$omit","exportCards","selectedOnly","selectedCards","type","filename","download","$topIndex","reduce","isError","isObject","j","cardHeaders","futureCardData","newCardData","newguid","isNew","$TEL_TYPES","$EMAIL_TYPES","$URL_TYPES","$ADDRESS_TYPES","Card_STATUS","SOGoContactsCategories","$categories","SOGoAlternateAvatar","$alternateAvatar","DELAYED_LOADING","DELAYED_MS","$find","$unwrapCollection","filterCategories","re","RegExp","category","collection","$futureCardData","refs","categories","c_screenname","$$fullname","$fullname","$$email","$preferredEmail","$$image","image","avatar","no_404","hasphoto","photoURL","isgroup","c_component","$avatarIcon","$isList","orgs","org","notes","note","email","emails","reference","birthday","dlp","$mdDateLocaleProvider","parseDate","$birthday","formatDate","c_name","empty","action","ref","$shadowData","attribute","export","names","fn","c_cn","html","c_givenname","nickname","c_sn","contactinfo","split","$description","description","title","role","concat","test","c_mail","$shortFormat","fullname","$isCard","condition","expandable","$addOrg","includes","$addEmail","$addScreenName","screenName","$addPhone","phones","$addUrl","url","urls","$addAddress","postoffice","street","street2","locality","region","country","postalcode","addresses","$addMember","explode","$reset","deep","format","toString","desc"],"mappings":"CAEA,WACE,aAOA,SAASA,EAAYC,GAEnB,GAA0C,mBAA/BA,EAAsBC,KAE/B,GADAC,KAAKC,KAAKH,GACNE,KAAKE,OAASF,KAAKG,GAAI,CAEzB,IAAIC,EAAqBP,EAAYQ,WAAWC,OAAO,eAAgBN,KAAKE,MAC5EF,KAAKO,QAAQH,GACbJ,KAAKQ,MAAQC,aAAgB,EAAGC,cAAiB,EAAGC,aAAgB,QAE7DX,KAAKG,KACZH,KAAKY,KAAO,IAAIf,EAAYgB,MAAM,YAAcb,KAAKG,UAKvDH,KAAKO,QAAQT,GASjBD,EAAYiB,UAAY,KAAM,WAAY,OAAQ,aAAc,wBAAyB,WAAY,OAAQ,MAAO,cAAe,SAASC,EAAIC,EAAUC,EAAMC,EAAUC,EAAqBC,EAAUC,EAAMC,EAAKC,GAqBlN,OApBAC,QAAQC,OAAO5B,GACbkB,GAAIA,EACJC,SAAUA,EACVC,KAAMA,EACNS,QAASP,EACTd,WAAY,IAAIe,EAASF,EAASS,WAAW,aAAe,WAAYT,EAASS,cACjFC,MAAOP,EACPR,MAAOS,EACPO,aAAcN,EACdO,QAASC,MAAO,GAAIC,KAAM,OAAQC,IAAK,GACvCN,WAAYT,EAASS,aACrBO,eAAgB,KAChBC,gBAAiB,OAGfZ,EAAYa,SAASC,QAAQC,eAC/BzC,EAAYiC,OAAOE,KAAOT,EAAYa,SAASC,QAAQC,aAAa,GACpEzC,EAAYiC,OAAOG,IAAMM,SAAShB,EAAYa,SAASC,QAAQC,aAAa,KAGvEzC,IAOT,IACE2B,QAAQgB,OAAO,mBAEjB,MAAMC,GACJjB,QAAQgB,OAAO,mBAAoB,cAAe,uBAEpDhB,QAAQgB,OAAO,mBACZE,SAAS,yBACRC,UAAW,GACXC,KAAM,MAEPC,QAAQ,cAAehD,EAAYiB,UAUtCjB,EAAYiD,WAAa,SAASC,EAAQC,EAASC,GACjD,IAAIC,GAAWH,OAAQA,GAEvB,OAAKA,GAKDvB,QAAQ2B,YAAYtD,EAAYuD,UAElCvD,EAAYuD,WAGd5B,QAAQC,OAAOyB,EAAQF,GAEhBnD,EAAYQ,WAAWgD,MAAM,KAAM,mBAAoBH,GAAQnD,KAAK,SAASuD,GAClF,IAAIC,EAASC,EAAMC,EACfC,EAAa,SAASC,GACpB,OAAO3D,KAAKG,IAAMwD,EAAKxD,IAY7B,IAREoD,EAFEN,EAEQW,EAAEC,OAAOP,EAASQ,SAAU,SAASH,GAC7C,OAAOC,EAAET,YAAYS,EAAEG,KAAKd,EAAeW,EAAEI,KAAKN,EAAYC,OAItDL,EAASQ,SAGhBL,EAAQ5D,EAAYuD,OAAOa,OAAS,EAAGR,GAAS,EAAGA,IACtDD,EAAO3D,EAAYuD,OAAOK,GACtBG,EAAET,YAAYS,EAAEG,KAAKR,EAASK,EAAEI,KAAKN,EAAYFLine truncated
|
||||
{"version":3,"sources":["Contacts/AddressBook.service.js","Contacts/Card.service.js"],"names":["AddressBook","futureAddressBookData","then","this","init","name","id","newAddressBookData","$$resource","create","$unwrap","acls","objectEditor","objectCreator","objectEraser","$acl","$$Acl","$factory","$q","$timeout","$log","Settings","AddressBook_PRELOAD","Resource","Card","Acl","Preferences","angular","extend","PRELOAD","activeUser","$Card","$Preferences","$query","value","sort","asc","selectedFolder","$refreshTimeout","settings","Contact","SortingState","parseInt","module","e","constant","LOOKAHEAD","SIZE","factory","$filterAll","search","options","excludedCards","params","isUndefined","$cards","fetch","response","results","card","index","compareIds","data","_","filter","contacts","find","bind","length","splice","forEach","mapKeys","key","toLowerCase","debug","when","$add","addressbook","list","sibling","i","isSubscription","$subscriptions","$addressbooks","o","localeCompare","indexOf","map","$findAll","_this","$remotes","isRemote","push","union","$subscribe","uid","path","userResource","addressbookData","$reloadAll","addressbooks","group","owner","login","prototype","$$cards","idsMap","isOwned","isSuperUser","$id","$futureAddressBookData","getLength","getItemAtIndex","$isLoading","$lastVisibleIndex","Math","max","$loadCard","endIndex","ids","futureHeadersData","cardId","startIndex","loaded","isDefined","$loaded","STATUS","NOT_LOADED","min","LOADED","LOADING","join","post","$unwrapHeaders","hasSelectedCard","selectedCard","isSelectedCard","$selectedCard","$selectedCardIndex","$selectedCards","selected","$selectedCount","count","$startRefreshTimeout","cancel","refreshViewCheck","defaults","SOGoRefreshViewCheck","f","$reload","timeInterval","$filter","query","dry","copy","partial","addressbookId","futureData","fields","idFieldIndex","cards","headers","invokeMap","pid","oldIndex","removedCards","findIndex","zipObject","$rename","$save","$delete","promise","d","defer","remove","resolve","reject","$_deleteCards","forEachRight","selectedIndex","$deleteCards","uids","$copyCards","folder","$moveCards","save","$omit","exportCards","selectedOnly","selectedCards","type","filename","download","$topIndex","reduce","isError","isObject","j","cardHeaders","futureCardData","newCardData","newguid","isNew","$TEL_TYPES","$EMAIL_TYPES","$URL_TYPES","$ADDRESS_TYPES","Card_STATUS","SOGoContactsCategories","$categories","SOGoAlternateAvatar","$alternateAvatar","DELAYED_LOADING","DELAYED_MS","$find","$unwrapCollection","filterCategories","re","RegExp","category","collection","$futureCardData","refs","categories","c_screenname","$$fullname","$fullname","$$email","$preferredEmail","$$image","image","avatar","no_404","hasphoto","photoURL","isgroup","c_component","$avatarIcon","$isList","orgs","org","notes","note","email","emails","reference","birthday","dlp","$mdDateLocaleProvider","parseDate","$birthday","formatDate","c_name","empty","action","ref","$shadowData","attribute","export","names","fn","c_cn","html","c_givenname","nickname","c_sn","contactinfo","split","$description","description","title","role","concat","test","c_mail","$shortFormat","fullname","$isCard","condition","expandable","$addOrg","includes","$addEmail","$addScreenName","screenName","$addPhone","phones","$addUrl","url","urls","$addAddress","postoffice","street","street2","locality","region","country","postalcode","addresses","$addMember","explode","$reset","deep","format","toString","desc"],"mappings":"CAEA,WACE,aAOA,SAASA,EAAYC,GAEnB,GAA0C,mBAA/BA,EAAsBC,KAE/B,GADAC,KAAKC,KAAKH,GACNE,KAAKE,OAASF,KAAKG,GAAI,CAEzB,IAAIC,EAAqBP,EAAYQ,WAAWC,OAAO,eAAgBN,KAAKE,MAC5EF,KAAKO,QAAQH,GACbJ,KAAKQ,MAAQC,aAAgB,EAAGC,cAAiB,EAAGC,aAAgB,QAE7DX,KAAKG,KACZH,KAAKY,KAAO,IAAIf,EAAYgB,MAAM,YAAcb,KAAKG,UAKvDH,KAAKO,QAAQT,GASjBD,EAAYiB,UAAY,KAAM,WAAY,OAAQ,aAAc,wBAAyB,WAAY,OAAQ,MAAO,cAAe,SAASC,EAAIC,EAAUC,EAAMC,EAAUC,EAAqBC,EAAUC,EAAMC,EAAKC,GAqBlN,OApBAC,QAAQC,OAAO5B,GACbkB,GAAIA,EACJC,SAAUA,EACVC,KAAMA,EACNS,QAASP,EACTd,WAAY,IAAIe,EAASF,EAASS,WAAW,aAAe,WAAYT,EAASS,cACjFC,MAAOP,EACPR,MAAOS,EACPO,aAAcN,EACdO,QAASC,MAAO,GAAIC,KAAM,OAAQC,IAAK,GACvCN,WAAYT,EAASS,aACrBO,eAAgB,KAChBC,gBAAiB,OAGfZ,EAAYa,SAASC,QAAQC,eAC/BzC,EAAYiC,OAAOE,KAAOT,EAAYa,SAASC,QAAQC,aAAa,GACpEzC,EAAYiC,OAAOG,IAAMM,SAAShB,EAAYa,SAASC,QAAQC,aAAa,KAGvEzC,IAOT,IACE2B,QAAQgB,OAAO,mBAEjB,MAAMC,GACJjB,QAAQgB,OAAO,mBAAoB,cAAe,uBAEpDhB,QAAQgB,OAAO,mBACZE,SAAS,yBACRC,UAAW,GACXC,KAAM,MAEPC,QAAQ,cAAehD,EAAYiB,UAUtCjB,EAAYiD,WAAa,SAASC,EAAQC,EAASC,GACjD,IAAIC,GAAWH,OAAQA,GAEvB,OAAKA,GAKDvB,QAAQ2B,YAAYtD,EAAYuD,UAElCvD,EAAYuD,WAGd5B,QAAQC,OAAOyB,EAAQF,GAEhBnD,EAAYQ,WAAWgD,MAAM,KAAM,mBAAoBH,GAAQnD,KAAK,SAASuD,GAClF,IAAIC,EAASC,EAAMC,EACfC,EAAa,SAASC,GACpB,OAAO3D,KAAKG,IAAMwD,EAAKxD,IAY7B,IAREoD,EAFEN,EAEQW,EAAEC,OAAOP,EAASQ,SAAU,SAASH,GAC7C,OAAOC,EAAET,YAAYS,EAAEG,KAAKd,EAAeW,EAAEI,KAAKN,EAAYC,OAItDL,EAASQ,SAGhBL,EAAQ5D,EAAYuD,OAAOa,OAAS,EAAGR,GAAS,EAAGA,IACtDD,EAAO3D,EAAYuD,OAAOK,GACtBG,EAAET,YAAYS,EAAEG,KAAKR,EAASK,EAAEI,KAAKN,EAAYFLine truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!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,s,o,i,a,r,l){return angular.extend(e,{$q:t,$timeout:n,$log:s,$$resource:new i(o.activeUser("folderURL")+"Mail",o.activeUser()),$Preferences:a,$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,s){t.id=s,n[s]=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){n.$mailboxes=t,n.$expanded=!1;var s,o=function(e){_.forEach(e,function(e){e.$expanded=s.indexOf("/"+e.id)>=0,e.children&&e.children.length>0&&o(e.children)})};if(e.$Preferences.settings.Mail.ExpandedFolders){if(angular.isString(e.$Preferences.settings.Mail.ExpandedFolders))try{s=angular.fromJson(e.$Preferences.settings.Mail.ExpandedFolders)}catch(t){e.$log.warn("Can't parse list of expanded folders. String was: "+e.$Preferences.settings.Mail.ExpandedFolders),s=[]}else s=e.$Preferences.settings.Mail.ExpandedFolders;n.$expanded=s.indexOf("/"+n.id)>=0,s.length>0&&o(n.$mailboxes)}return 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,s=[],o=[],i=function(e){_.forEach(e,function(e){s.push(e),(t&&t.all||e.$expanded)&&e.children&&e.children.length>0&&i(e.children)})};return!this.$$flattenMailboxes||t&&(t.reload||t.all)?(i(this.$mailboxes),t&&t.all||(n.$$flattenMailboxes=s,t&&t.saveState&&(_.forEach(e.$accounts,function(e){e.$expanded&&o.push("/"+e.id),_.reduce(e.$$flattenMailboxes,function(e,t){return t.$expanded&&e.push("/"+t.id),e},o)}),e.$$resource.post(null,"saveFoldersState",o)))):s=this.$$flattenMailboxes,s},e.prototype.$getMailboxByType=function(e){var t=function(n){var s=_.find(n,function(t){return t.type==e});return s||angular.forEach(n,function(e){!s&&e.children&&e.children.length>0&&(s=t(e.children))}),s};return t(this.$mailboxes)},e.prototype.$getMailboxByPath=function(e){var t=function(n){var s=_.find(n,function(t){return t.path==e});return s||angular.forEach(n,function(e){!s&&e.children&&e.children.length>0&&(s=t(e.children))}),s};return t(this.$mailboxes)},e.prototype.$newMailbox=function(t,n){var s=this;return e.$$resource.post(t.toString(),"createFolder",{name:n}).then(function(){s.$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(t){var n=this;return e.$$resource.fetch(this.id.toString(),"compose").then(function(t){return e.$log.debug("New message (compose): "+JSON.stringify(t,void 0,2)),new e.$Message(t.accountId,n.$getMailboxByPath(t.mailboxPath),t)}).then(function(n){return e.$$resource.fetch(n.$absolutePath({asDraft:!0}),"edit").then(function(s){return e.$log.debug("New message (edit): "+JSON.stringify(s,void 0,2)),angular.extend(n.editable,s),n.isNew=!0,t&&t.mailto&&(angular.isObject(t.mailto)?angular.extend(n.editable,t.mailto):n.$parseMailto(t.mailto)),n})})},e.prototype.$addDelegate=function(t){var n=this,s=e.$q.defer(),o={uid:t.uid};return!t.uid||_.indexOf(_.map(this.delegates,"uid"),t.uid)>-1?s.resolve():e.$$resource.fetch(this.id.toString(),"addDelegate",o).then(function(){n.delegates.push(t),s.resolve(n.users)},function(e,t){s.reject(l("An error occured please try again."))}),s.promise},e.prototype.$removeDelegate=function(t){var n=this,s={uid:t};return e.$$resource.fetch(this.id.toString(),"removeDelegate",s).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 s=e.$$resource.create("createFolder",this.name);this.$unwrap(s)}}else this.$unwrap(n)}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Message","Acl","Preferences","sgMailbox_PRELOAD",function(t,n,s,o,i,a,r,l,c){return angular.extend(e,{$q:t,$timeout:n,$log:s,$$resource:new i(o.activeUser("folderURL")+"Mail",o.activeUser()),$Message:a,$$Acl:r,$Preferences:l,$query:{sort:"arrival",asc:0Line 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,s,o,i,a,r,l){return angular.extend(e,{$q:t,$timeout:n,$log:s,$$resource:new i(o.activeUser("folderURL")+"Mail",o.activeUser()),$Preferences:a,$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,s){t.id=s,n[s]=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){n.$mailboxes=t,n.$expanded=!1;var s,o=function(e){_.forEach(e,function(e){e.$expanded=s.indexOf("/"+e.id)>=0,e.children&&e.children.length>0&&o(e.children)})};if(e.$Preferences.settings.Mail.ExpandedFolders){if(angular.isString(e.$Preferences.settings.Mail.ExpandedFolders))try{s=angular.fromJson(e.$Preferences.settings.Mail.ExpandedFolders)}catch(t){e.$log.warn("Can't parse list of expanded folders. String was: "+e.$Preferences.settings.Mail.ExpandedFolders),s=[]}else s=e.$Preferences.settings.Mail.ExpandedFolders;n.$expanded=s.indexOf("/"+n.id)>=0,s.length>0&&o(n.$mailboxes)}return 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=[],s=[],o=function(e){_.forEach(e,function(e){n.push(e),(t&&t.all||e.$expanded)&&e.children&&e.children.length>0&&o(e.children)})};return!this.$$flattenMailboxes||t&&(t.reload||t.all)?(o(this.$mailboxes),t&&t.all||(this.$$flattenMailboxes=n,t&&t.saveState&&(_.forEach(e.$accounts,function(e){e.$expanded&&s.push("/"+e.id),_.reduce(e.$$flattenMailboxes,function(e,t){return t.$expanded&&e.push("/"+t.id),e},s)}),e.$$resource.post(null,"saveFoldersState",s)))):n=this.$$flattenMailboxes,n},e.prototype.$getMailboxByType=function(e){var t=function(n){var s=_.find(n,function(t){return t.type==e});return s||angular.forEach(n,function(e){!s&&e.children&&e.children.length>0&&(s=t(e.children))}),s};return t(this.$mailboxes)},e.prototype.$getMailboxByPath=function(e){var t=function(n){var s=_.find(n,function(t){return t.path==e});return s||angular.forEach(n,function(e){!s&&e.children&&e.children.length>0&&(s=t(e.children))}),s};return t(this.$mailboxes)},e.prototype.$newMailbox=function(t,n){var s=this;return e.$$resource.post(t.toString(),"createFolder",{name:n}).then(function(){s.$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(t){var n=this;return e.$$resource.fetch(this.id.toString(),"compose").then(function(t){e.$log.debug("New message (compose): "+JSON.stringify(t,void 0,2));return new e.$Message(t.accountId,n.$getMailboxByPath(t.mailboxPath),t)}).then(function(n){return e.$$resource.fetch(n.$absolutePath({asDraft:!0}),"edit").then(function(s){return e.$log.debug("New message (edit): "+JSON.stringify(s,void 0,2)),angular.extend(n.editable,s),n.isNew=!0,t&&t.mailto&&(angular.isObject(t.mailto)?angular.extend(n.editable,t.mailto):n.$parseMailto(t.mailto)),n})})},e.prototype.$addDelegate=function(t){var n=this,s=e.$q.defer(),o={uid:t.uid};return!t.uid||_.indexOf(_.map(this.delegates,"uid"),t.uid)>-1?s.resolve():e.$$resource.fetch(this.id.toString(),"addDelegate",o).then(function(){n.delegates.push(t),s.resolve(n.users)},function(e,t){s.reject(l("An error occured please try again."))}),s.promise},e.prototype.$removeDelegate=function(t){var n=this,s={uid:t};return e.$$resource.fetch(this.id.toString(),"removeDelegate",s).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 s=e.$$resource.create("createFolder",this.name);this.$unwrap(s)}}else this.$unwrap(n)}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Message","Acl","Preferences","sgMailbox_PRELOAD",function(t,n,s,o,i,a,r,l,c){return angular.extend(e,{$q:t,$timeout:n,$log:s,$$resource:new i(o.activeUser("folderURL")+"Mail",o.activeUser()),$Message:a,$$Acl:r,$Preferences:l,$query:{sort:"arrival",asc:0},seLine truncated
|
||||
//# sourceMappingURL=Mailer.services.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Mailer/Account.service.js","Mailer/Mailbox.service.js","Mailer/Message.service.js","Mailer/sgImageGallery.service.js","Mailer/VirtualMailbox.service.js","Mailer/MailboxController.js","Mailer/MailboxesController.js","Mailer/MessageController.js","Mailer/MessageEditorController.js","Mailer/sgAccountSection.directive.js","Mailer/sgIMIP.directive.js","Mailer/sgMailboxListItem.directive.js","Mailer/sgMessageListItem.directive.js","Mailer/sgMessageListItemMain.directive.js","Mailer/sgZoomableImage.directive.js"],"names":["Account","futureAccountData","then","angular","extend","this","_","forEach","identities","identity","fullName","full","email","$log","debug","JSON","stringify","undefined","$factory","$q","$timeout","Settings","Resource","Preferences","Mailbox","Message","$$resource","activeUser","$Preferences","$Mailbox","$Message","module","e","factory","$findAll","data","$unwrapCollection","fetch","o","collection","i","id","$accounts","prototype","getLength","$flattenMailboxes","length","getItemAtIndex","index","expandedMailboxes","$getMailboxes","options","_this","$mailboxes","reload","$find","$expanded","expandedFolders","_visit","mailboxes","indexOf","children","settings","Mail","ExpandedFolders","isString","fromJson","warn","when","allMailboxes","push","all","$$flattenMailboxes","saveState","account","reduce","mailbox","post","$getMailboxByType","type","_find","find","$getMailboxByPath","path","$newMailbox","name","toString","updateQuota","percent","description","Math","round","usedSpace","maxQuota","l","formatted","$quota","$newMessage","accountId","mailboxPath","message","$absolutePath","asDraft","editable","isNew","mailto","isObject","$parseMailto","$addDelegate","user","deferred","defer","param","uid","map","delegates","resolve","users","status","reject","promise","$removeDelegate","splice","futureMailboxData","$account","init","newMailboxData","create","$unwrap","Acl","PRELOAD","$$Acl","$query","sort","asc","selectedFolder","$refreshTimeout","$virtualMode","$virtualPath","SortingState","parseInt","constant","LOOKAHEAD","SIZE","createMailboxes","level","quotas","split","component","asCSSIdentifier","join","isUndefined","uidsMap","headers","$isLoading","$messages","$id","$acl","$displayName","$isEditable","isEditable","$isSpecial","$icon","$isNoInferiors","isNoInferiors","$shadowData","$omit","selectFolder","$lastVisibleIndex","max","$loadMessage","$selectedMessages","filter","selected","$selectedCount","isSelectedMessage","messageId","selectedMessage","$selectedMessage","$selectedMessageIndex","hasSelectedMessage","isDefined","$filter","sortingAttributes","filters","unseenCount","cancel","searchInput","secondFilter","match","searchBy","copy","refreshViewCheck","defaults","SOGoRefreshViewCheck","f","bind","timeInterval","endIndex","uids","futureHeadersData","startIndex","loaded","subject","min","loading","$unwrapHeaders","flags","isNoSelect","getClassName","base","$rename","findParent","parent","parentMailbox","$save","sibling","oldPath","localeCompare","pathRE","RegExp","_updateChildren","child","replace","$compact","$canFolderAs","$setFolderAs","$emptyTrash","$markAsRead","isread","$flagMessages","messages","operation","msgUIDs","saveSelectedMessages","selectedMessages","selectedUIDs","filename","download","exportFolder","$delete","$_deleteMessages","unseen","firstIndex","forEachRight","selectedIndex","findIndex","$deleteMessages","$markOrUnMarkMessagesAsJunk","method","$copyMessages","folder","$moveMessages","$reset","value","key","save","response","error","$futureMailboxData","$topIndex","invokeMap","threaded","msgs","msg","msgObject","zipObject","isError","j","messageHeaders","$updateSubscribe","action","subscribed","futureMessageData","lazy","$mailbox","$hasUnsafeContent","$loadUnsafeContent","to","cc","bcc","$formatFullAddresses","Message_STATUS","STATUS","$avatar","avatar","SOGoMailLabelsColors","$tags","SOGoMailDisplayRemoteInlineImages","$displayRemoteInlineImages","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","filterTags","query","excludedTags","re","results","keys","tag","pair","search","includes","color","buildPath","nocache","draftId","withResourcePath","$setUID","oldUID","attr","constructor","shortname","first","last","image","$shortRecipients","result","count","total","$shortAddress","address","allowReplyAll","recipientsCount","isDraft","loadUnsafeContent","$content","parts","part","msgclass","content","alternatePart","preferredPart","contentType","isArray","formattedMessage","$smime","validSignature","valid","mixedPart","safeContent","html","unsafeContent","document","createElement","innerHTML","suffix","element","elements","querySelectorAll","removeAttr","compile","$editableContent","from","toLowerCase","text","$plainContent","addTag","$addOrRemoveTag","removeTag","$imipAction","$reload","$sendMDN","shouldAskReceipt","$deleteAttachment","attachmentAttrs","attachment","toggleFlag","isflagged","$loaded","useCache","$futureMessageData","exec","dLine truncated
|
||||
{"version":3,"sources":["Mailer/Account.service.js","Mailer/Mailbox.service.js","Mailer/Message.service.js","Mailer/sgImageGallery.service.js","Mailer/VirtualMailbox.service.js","Mailer/MailboxController.js","Mailer/MailboxesController.js","Mailer/MessageController.js","Mailer/MessageEditorController.js","Mailer/sgAccountSection.directive.js","Mailer/sgIMIP.directive.js","Mailer/sgMailboxListItem.directive.js","Mailer/sgMessageListItem.directive.js","Mailer/sgMessageListItemMain.directive.js","Mailer/sgZoomableImage.directive.js"],"names":["Account","futureAccountData","then","angular","extend","this","_","forEach","identities","identity","fullName","full","email","$log","debug","JSON","stringify","undefined","$factory","$q","$timeout","Settings","Resource","Preferences","Mailbox","Message","$$resource","activeUser","$Preferences","$Mailbox","$Message","module","e","factory","$findAll","data","$unwrapCollection","fetch","o","collection","i","id","$accounts","prototype","getLength","$flattenMailboxes","length","getItemAtIndex","index","expandedMailboxes","$getMailboxes","options","_this","$mailboxes","reload","$find","$expanded","expandedFolders","_visit","mailboxes","indexOf","children","settings","Mail","ExpandedFolders","isString","fromJson","warn","when","allMailboxes","push","all","$$flattenMailboxes","saveState","account","reduce","mailbox","post","$getMailboxByType","type","_find","find","$getMailboxByPath","path","$newMailbox","name","toString","updateQuota","percent","description","Math","round","usedSpace","maxQuota","l","formatted","$quota","$newMessage","accountId","mailboxPath","message","$absolutePath","asDraft","editable","isNew","mailto","isObject","$parseMailto","$addDelegate","user","deferred","defer","param","uid","map","delegates","resolve","users","status","reject","promise","$removeDelegate","splice","futureMailboxData","$account","init","newMailboxData","create","$unwrap","Acl","PRELOAD","$$Acl","$query","sort","asc","selectedFolder","$refreshTimeout","$virtualMode","$virtualPath","SortingState","parseInt","constant","LOOKAHEAD","SIZE","createMailboxes","level","quotas","split","component","asCSSIdentifier","join","isUndefined","uidsMap","headers","$isLoading","$messages","$id","$acl","$displayName","$isEditable","isEditable","$isSpecial","$icon","$isNoInferiors","isNoInferiors","$shadowData","$omit","selectFolder","$lastVisibleIndex","max","$loadMessage","$selectedMessages","filter","selected","$selectedCount","isSelectedMessage","messageId","selectedMessage","$selectedMessage","$selectedMessageIndex","hasSelectedMessage","isDefined","$filter","sortingAttributes","filters","unseenCount","cancel","searchInput","secondFilter","match","searchBy","copy","refreshViewCheck","defaults","SOGoRefreshViewCheck","f","bind","timeInterval","endIndex","uids","futureHeadersData","startIndex","loaded","subject","min","loading","$unwrapHeaders","flags","isNoSelect","getClassName","base","$rename","findParent","parent","parentMailbox","$save","sibling","oldPath","localeCompare","pathRE","RegExp","_updateChildren","child","replace","$compact","$canFolderAs","$setFolderAs","$emptyTrash","$markAsRead","isread","$flagMessages","messages","operation","msgUIDs","saveSelectedMessages","selectedMessages","selectedUIDs","filename","download","exportFolder","$delete","$_deleteMessages","unseen","firstIndex","forEachRight","selectedIndex","findIndex","$deleteMessages","$markOrUnMarkMessagesAsJunk","method","$copyMessages","folder","$moveMessages","$reset","value","key","save","response","error","$futureMailboxData","$topIndex","invokeMap","threaded","msgs","msg","msgObject","zipObject","isError","j","messageHeaders","$updateSubscribe","action","subscribed","futureMessageData","lazy","$mailbox","$hasUnsafeContent","$loadUnsafeContent","to","cc","bcc","$formatFullAddresses","Message_STATUS","STATUS","$avatar","avatar","SOGoMailLabelsColors","$tags","SOGoMailDisplayRemoteInlineImages","$displayRemoteInlineImages","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","filterTags","query","excludedTags","re","results","keys","tag","pair","search","includes","color","buildPath","nocache","draftId","withResourcePath","$setUID","oldUID","attr","constructor","shortname","first","last","image","$shortRecipients","result","count","total","$shortAddress","address","allowReplyAll","recipientsCount","isDraft","loadUnsafeContent","$content","parts","part","msgclass","content","alternatePart","preferredPart","contentType","isArray","formattedMessage","$smime","validSignature","valid","mixedPart","safeContent","html","unsafeContent","document","createElement","innerHTML","suffix","element","elements","querySelectorAll","removeAttr","compile","$editableContent","from","toLowerCase","text","$plainContent","addTag","$addOrRemoveTag","removeTag","$imipAction","$reload","$sendMDN","shouldAskReceipt","$deleteAttachment","attachmentAttrs","attachment","toggleFlag","isflagged","$loaded","useCache","$futureMessageData","exec","dLine truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function e(e,t){e.state("preferences",{abstract:!0,views:{preferences:{templateUrl:"preferences.html",controller:"PreferencesController",controllerAs:"app"}}}).state("preferences.general",{url:"/general",views:{module:{templateUrl:"generalPreferences.html"}}}).state("preferences.calendars",{url:"/calendars",views:{module:{templateUrl:"calendarsPreferences.html"}}}).state("preferences.addressbooks",{url:"/addressbooks",views:{module:{templateUrl:"addressbooksPreferences.html"}}}).state("preferences.mailer",{url:"/mailer",views:{module:{templateUrl:"mailerPreferences.html"}}}),t.otherwise("/general")}function t(e){e.$on("$routeChangeError",function(e,t,a,s){console.error(e,t,a,s)})}angular.module("SOGo.PreferencesUI",["ui.router","ck","SOGo.Common","SOGo.MailerUI","SOGo.ContactsUI","SOGo.Authentication","as.sortable"]).config(e).run(t),e.$inject=["$stateProvider","$urlRouterProvider"],t.$inject=["$rootScope"]}(),function(){"use strict";function e(e,t,a,s,r){var n=this;n.defaultPort=143,n.defaults=t,n.account=a,n.accountId=s,n.customFromIsReadonly=function(){return!(s>0||r)},n.cancel=function(){e.cancel()},n.save=function(){e.hide()},n.hostnameRE=s>0?/^(?!(127\.0\.0\.1|localhost(?:\.localdomain)?)$)/:/./,n.account.encryption?"ssl"==n.account.encryption&&(n.defaultPort=993):n.account.encryption="none"}e.$inject=["$mdDialog","defaults","account","accountId","mailCustomFromEnabled"],angular.module("SOGo.PreferencesUI").controller("AccountDialogController",e)}(),function(){"use strict";function e(e,t,a,s,r,n){var i=this,o=t.sieveCapabilities,c=t.forwardEnabled;t.vacationEnabled;i.filter=s,i.mailboxes=r,i.labels=n,i.cancel=function(){a.cancel()},i.hasRulesAndActions=function(){var e=[i.filter.actions];return"allmessages"!=i.filter.match&&e.push(i.filter.rules),_.every(e,function(e){return e&&e.length>0})},i.save=function(e){a.hide()},i.addMailFilterRule=function(e){i.filter.rules||(i.filter.rules=[]),i.filter.rules.push({field:"subject",operator:"contains"})},i.removeMailFilterRule=function(e){i.filter.rules.splice(e,1)},i.addMailFilterAction=function(e){i.filter.actions||(i.filter.actions=[]),i.filter.actions.push({method:"discard"})},i.removeMailFilterAction=function(e){i.filter.actions.splice(e,1)},i.fieldLabels={subject:l("Subject"),from:l("From"),to:l("To"),cc:l("Cc"),to_or_cc:l("To or Cc"),size:l("Size (Kb)"),header:l("Header")},o.indexOf("body")>-1&&(i.fieldLabels.body=l("Body")),i.methodLabels={discard:l("Discard the message"),keep:l("Keep the message"),stop:l("Stop processing filter rules")},c&&(i.methodLabels.redirect=l("Forward the message to")),o.indexOf("reject")>-1&&(i.methodLabels.reject=l("Send a reject message")),o.indexOf("fileinto")>-1&&(i.methodLabels.fileinto=l("File the message in")),(o.indexOf("imapflags")>-1||o.indexOf("imap4flags")>-1)&&(i.methodLabels.addflag=l("Flag the message with")),i.numberOperatorLabels={under:l("is under"),over:l("is over")},i.textOperatorLabels={is:l("is"),is_not:l("is not"),contains:l("contains"),contains_not:l("does not contain"),matches:l("matches"),matches_not:l("does not match")},o.indexOf("regex")>-1&&(i.textOperatorLabels.regex=l("matches regex"),i.textOperatorLabels.regex_not=l("does not match regex")),i.flagLabels={seen:l("Seen"),deleted:l("Deleted"),answered:l("Answered"),flagged:l("Flagged"),junk:l("Junk"),not_junk:l("Not Junk")}}e.$inject=["$scope","$window","$mdDialog","filter","mailboxes","labels"],angular.module("SOGo.PreferencesUI").controller("FiltersDialogController",e)}(),function(){"use strict";function e(e,t,a,s,r,n,i,o,c,d,f,u,h,p){var m,g=this,b=[],w=(new Date).beginOfDay();this.$onInit=function(){this.preferences=h,this.passwords={newPassword:null,newPasswordConfirmation:null},this.timeZonesList=t.timeZonesList,this.timeZonesSearchText="",this.sieveVariablesCapability=t.sieveCapabilities.indexOf("variables")>=0,this.mailLabelKeyRE=new RegExp('^[^(){} %*"\\\\]*$'),o.activeUser("path").mail&&(m=new u({id:0})).$getMailboxes().then(function(){for(var e=m.$flattenMailboxes({all:!0}),t=-1,a=e.length;++t<a;)b.push(e[t])}),h.defaults.SOGoAlternateAvatar&&(f.$alternateAvatar=h.defaults.SOGoAlternateAvatar),this.updateVacationDates()},this.go=function(e,t){t.$valid&&(s("gt-sm")||r("left").close(),a.go("preferences."+e))},this.onLanguageChange=function(e){e.$valid&&d.confirm(l("Warning"),l("Save preferences and reload page now?"),{ok:l("Yes"),cancel:l("No")}).then(function(){g.save(e,{quick:!0}).then(function(){t.location.reload(!0)})})},this.addCalendarCategory=function(e){this.preferences.defaults.SOGoCalendarCategoriesColors["New category"]="#aaa",this.preferences.defaults.SOGoCalendarCategories.push("New category"),c("calendarCategory_"+(this.preferences.defaults.SOGoCalendarCategories.length-1)),e.$setDirty()},this.removeCalendarCategory=function(e,t){var a=this.preferences.defaults.SOGoCalendarCategories[e];this.preferences.defaults.SOGoCalendarCategories.splice(e,1),delete this.preferences.defaults.SOGoCalendarCategorieLine truncated
|
||||
!function(){"use strict";function e(e,t){e.state("preferences",{abstract:!0,views:{preferences:{templateUrl:"preferences.html",controller:"PreferencesController",controllerAs:"app"}}}).state("preferences.general",{url:"/general",views:{module:{templateUrl:"generalPreferences.html"}}}).state("preferences.calendars",{url:"/calendars",views:{module:{templateUrl:"calendarsPreferences.html"}}}).state("preferences.addressbooks",{url:"/addressbooks",views:{module:{templateUrl:"addressbooksPreferences.html"}}}).state("preferences.mailer",{url:"/mailer",views:{module:{templateUrl:"mailerPreferences.html"}}}),t.otherwise("/general")}function t(e){e.$on("$routeChangeError",function(e,t,a,s){console.error(e,t,a,s)})}angular.module("SOGo.PreferencesUI",["ui.router","ck","SOGo.Common","SOGo.MailerUI","SOGo.ContactsUI","SOGo.Authentication","as.sortable"]).config(e).run(t),e.$inject=["$stateProvider","$urlRouterProvider"],t.$inject=["$rootScope"]}(),function(){"use strict";function e(e,t,a,s,r){this.defaultPort=143,this.defaults=t,this.account=a,this.accountId=s,this.customFromIsReadonly=function(){return!(s>0||r)},this.cancel=function(){e.cancel()},this.save=function(){e.hide()},this.hostnameRE=s>0?/^(?!(127\.0\.0\.1|localhost(?:\.localdomain)?)$)/:/./,this.account.encryption?"ssl"==this.account.encryption&&(this.defaultPort=993):this.account.encryption="none"}e.$inject=["$mdDialog","defaults","account","accountId","mailCustomFromEnabled"],angular.module("SOGo.PreferencesUI").controller("AccountDialogController",e)}(),function(){"use strict";function e(e,t,a,s,r,n){var i=this,o=t.sieveCapabilities,c=t.forwardEnabled;t.vacationEnabled;i.filter=s,i.mailboxes=r,i.labels=n,i.cancel=function(){a.cancel()},i.hasRulesAndActions=function(){var e=[i.filter.actions];return"allmessages"!=i.filter.match&&e.push(i.filter.rules),_.every(e,function(e){return e&&e.length>0})},i.save=function(e){a.hide()},i.addMailFilterRule=function(e){i.filter.rules||(i.filter.rules=[]),i.filter.rules.push({field:"subject",operator:"contains"})},i.removeMailFilterRule=function(e){i.filter.rules.splice(e,1)},i.addMailFilterAction=function(e){i.filter.actions||(i.filter.actions=[]),i.filter.actions.push({method:"discard"})},i.removeMailFilterAction=function(e){i.filter.actions.splice(e,1)},i.fieldLabels={subject:l("Subject"),from:l("From"),to:l("To"),cc:l("Cc"),to_or_cc:l("To or Cc"),size:l("Size (Kb)"),header:l("Header")},o.indexOf("body")>-1&&(i.fieldLabels.body=l("Body")),i.methodLabels={discard:l("Discard the message"),keep:l("Keep the message"),stop:l("Stop processing filter rules")},c&&(i.methodLabels.redirect=l("Forward the message to")),o.indexOf("reject")>-1&&(i.methodLabels.reject=l("Send a reject message")),o.indexOf("fileinto")>-1&&(i.methodLabels.fileinto=l("File the message in")),(o.indexOf("imapflags")>-1||o.indexOf("imap4flags")>-1)&&(i.methodLabels.addflag=l("Flag the message with")),i.numberOperatorLabels={under:l("is under"),over:l("is over")},i.textOperatorLabels={is:l("is"),is_not:l("is not"),contains:l("contains"),contains_not:l("does not contain"),matches:l("matches"),matches_not:l("does not match")},o.indexOf("regex")>-1&&(i.textOperatorLabels.regex=l("matches regex"),i.textOperatorLabels.regex_not=l("does not match regex")),i.flagLabels={seen:l("Seen"),deleted:l("Deleted"),answered:l("Answered"),flagged:l("Flagged"),junk:l("Junk"),not_junk:l("Not Junk")}}e.$inject=["$scope","$window","$mdDialog","filter","mailboxes","labels"],angular.module("SOGo.PreferencesUI").controller("FiltersDialogController",e)}(),function(){"use strict";function e(e,t,a,s,r,n,i,o,c,d,f,u,h,p){var m,g=this,b=[],w=(new Date).beginOfDay();this.$onInit=function(){this.preferences=h,this.passwords={newPassword:null,newPasswordConfirmation:null},this.timeZonesList=t.timeZonesList,this.timeZonesSearchText="",this.sieveVariablesCapability=t.sieveCapabilities.indexOf("variables")>=0,this.mailLabelKeyRE=new RegExp('^[^(){} %*"\\\\]*$'),o.activeUser("path").mail&&(m=new u({id:0})).$getMailboxes().then(function(){for(var e=m.$flattenMailboxes({all:!0}),t=-1,a=e.length;++t<a;)b.push(e[t])}),h.defaults.SOGoAlternateAvatar&&(f.$alternateAvatar=h.defaults.SOGoAlternateAvatar),this.updateVacationDates()},this.go=function(e,t){t.$valid&&(s("gt-sm")||r("left").close(),a.go("preferences."+e))},this.onLanguageChange=function(e){e.$valid&&d.confirm(l("Warning"),l("Save preferences and reload page now?"),{ok:l("Yes"),cancel:l("No")}).then(function(){g.save(e,{quick:!0}).then(function(){t.location.reload(!0)})})},this.addCalendarCategory=function(e){this.preferences.defaults.SOGoCalendarCategoriesColors["New category"]="#aaa",this.preferences.defaults.SOGoCalendarCategories.push("New category"),c("calendarCategory_"+(this.preferences.defaults.SOGoCalendarCategories.length-1)),e.$setDirty()},this.removeCalendarCategory=function(e,t){var a=this.preferences.defaults.SOGoCalendarCategories[e];this.preferences.defaults.SOGoCalendarCategories.splice(e,1),delete this.preferences.defauLine truncated
|
||||
//# sourceMappingURL=Preferences.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Preferences/Preferences.app.js","Preferences/AccountDialogController.js","Preferences/FiltersDialogController.js","Preferences/PreferencesController.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","abstract","views","preferences","templateUrl","controller","controllerAs","url","module","otherwise","runBlock","$rootScope","$on","event","current","previous","rejection","console","error","angular","config","run","$inject","AccountDialogController","$mdDialog","defaults","account","accountId","mailCustomFromEnabled","vm","this","defaultPort","customFromIsReadonly","cancel","save","hide","hostnameRE","encryption","FiltersDialogController","$scope","$window","filter","mailboxes","labels","sieveCapabilities","forwardEnabled","vacationEnabled","hasRulesAndActions","requirements","actions","match","push","rules","_","every","a","length","form","addMailFilterRule","field","operator","removeMailFilterRule","index","splice","addMailFilterAction","method","removeMailFilterAction","fieldLabels","subject","l","from","to","cc","to_or_cc","size","header","indexOf","body","methodLabels","discard","keep","stop","redirect","reject","fileinto","addflag","numberOperatorLabels","under","over","textOperatorLabels","is","is_not","contains","contains_not","matches","matches_not","regex","regex_not","flagLabels","seen","deleted","answered","flagged","junk","not_junk","PreferencesController","$q","$state","$mdMedia","$mdSidenav","$mdToast","sgSettings","focus","Dialog","User","Account","Preferences","Authentication","today","Date","beginOfDay","$onInit","passwords","newPassword","newPasswordConfirmation","timeZonesList","timeZonesSearchText","sieveVariablesCapability","mailLabelKeyRE","RegExp","activeUser","mail","id","$getMailboxes","then","allMailboxes","$flattenMailboxes","all","SOGoAlternateAvatar","$alternateAvatar","updateVacationDates","go","$valid","close","onLanguageChange","confirm","ok","quick","location","reload","addCalendarCategory","SOGoCalendarCategoriesColors","SOGoCalendarCategories","$setDirty","removeCalendarCategory","key","addContactCategory","i","SOGoContactsCategories","removeContactCategory","addMailAccount","ev","AuxiliaryMailAccounts","last","extend","name","identities","fullName","email","receipts","receiptAction","receiptNonRecipientAction","receiptOutsideDomainAction","receiptAnyAction","show","targetEvent","locals","catch","pop","editMailAccount","removeMailAccount","resetMailLabelValidity","$setValidity","addMailLabel","guid","SOGoMailLabelsColorsKeys","SOGoMailLabelsColorsValues","removeMailLabel","addMailFilter","SOGoMailLabelsColors","SOGoSieveFilters","editMailFilter","copy","removeMailFilter","addDefaultEmailAddresses","v","isDefined","Vacation","autoReplyEmailAddresses","split","union","defaultEmailAddresses","join","userFilter","search","excludedUsers","minimumSearchLength","$filter","users","forEach","user","$$image","image","avatar","c_email","no_404","confirmChanges","$event","target","$dirty","$form","preventDefault","stopPropagation","tagName","parentNode","href","options","sendForm","addresses","defaultAddresses","domains","domain","forwardConstraints","Forward","enabled","forwardAddress","adr","toLowerCase","alert","uniq","value","keys","$save","data","simple","content","position","hideDelay","$setPristine","canChangePassword","changePassword","title","finally","undefined","msg","timeZonesListFilter","toUpperCase","d","toggleVacationStartDate","toggleVacationEndDate","startDateEnabled","endDateEnabled","startDate","getTime","endDate","addDays","validateVacationStartDate","date","r","validateVacationEndDate"],"mappings":"CAGA,WACE,aAUA,SAASA,EAAUC,EAAgBC,GACjCD,EACGE,MAAM,eACLC,UAAU,EACVC,OACEC,aACEC,YAAa,mBACbC,WAAY,wBACZC,aAAc,UAInBN,MAAM,uBACLO,IAAK,WACLL,OACEM,QACEJ,YAAa,8BAIlBJ,MAAM,yBACLO,IAAK,aACLL,OACEM,QACEJ,YAAa,gCAIlBJ,MAAM,4BACLO,IAAK,gBACLL,OACEM,QACEJ,YAAa,mCAIlBJ,MAAM,sBACLO,IAAK,UACLL,OACEM,QACEJ,YAAa,6BAMrBL,EAAmBU,UAAU,YAQ/B,SAASC,EAASC,GAChBA,EAAWC,IAAI,oBAAqB,SAASC,EAAOC,EAASC,EAAUC,GACrEC,QAAQC,MAAML,EAAOC,EAASC,EAAUC,KAhE5CG,QAAQX,OAAO,sBAAuB,YAAa,KAAM,cAAe,gBAAiB,kBAAmB,sBAAuB,gBAChIY,OAAOvB,GACPwB,IAAIX,GAKPb,EAAUyB,SAAW,iBAAkB,sBAsDvCZ,EAASY,SAAW,cAhEtB,GCAA,WACE,aAMA,SAASC,EAAwBC,EAAWC,EAAUC,EAASC,EAAWC,GACxE,IAAIC,EAAKC,KAETD,EAAGE,YAAc,IACjBF,EAAGJ,SAAWA,EACdI,EAAGH,QAAUA,EACbG,EAAGF,UAAYA,EACfE,EAAGG,qBAUH,WACE,QAAIL,EAAY,GAGRC,IAbVC,EAAGI,OAgBH,WACET,EAAUS,UAhBZJ,EAAGK,KAmBH,WACEV,EAAUW,QAnBZN,EAAGO,WAAaT,EAAY,EAAI,mDAAqD,IAEhFE,EAAGH,QAAQW,WAEkB,OAAzBR,EAAGH,QAAQW,aAClBR,EAAGE,YAAc,KAFjBF,EAAGH,QAAQW,WAAa,OAd5Bd,EAAwBD,SAAW,YAAa,WAAY,UAAW,YAAa,yBAkCpFH,QACGX,OAAO,sBACPH,WAAW,0BAA2BkB,GA1C3C,GCAA,WACE,aAMA,SAASe,EAAwBC,EAAQC,EAAShB,EAAWiB,EAAQC,EAAWC,GAC9E,IAAId,EAAKC,KACLc,EAAoBJ,EAAQI,kBAC5BC,EAAiBL,EAAQK,eACPL,EAAQM,gBAE9BjB,EAAGY,OAASA,EACZZ,EAAGa,UAAYA,EACfb,EAAGc,OAASA,EACZd,EAAGI,OAsEH,WACET,EAAUS,UAtEZJ,EAAGkB,mBAyEH,WACE,IAAIC,GAAiBnB,EAAGY,OAAOQ,SAI/B,MAHuB,eAAnBpB,EAAGY,OAAOS,OAEZF,EAAaG,KAAKtB,EAAGY,Line truncated
|
||||
{"version":3,"sources":["Preferences/Preferences.app.js","Preferences/AccountDialogController.js","Preferences/FiltersDialogController.js","Preferences/PreferencesController.js"],"names":["configure","$stateProvider","$urlRouterProvider","state","abstract","views","preferences","templateUrl","controller","controllerAs","url","module","otherwise","runBlock","$rootScope","$on","event","current","previous","rejection","console","error","angular","config","run","$inject","AccountDialogController","$mdDialog","defaults","account","accountId","mailCustomFromEnabled","this","defaultPort","customFromIsReadonly","cancel","save","hide","hostnameRE","encryption","FiltersDialogController","$scope","$window","filter","mailboxes","labels","vm","sieveCapabilities","forwardEnabled","vacationEnabled","hasRulesAndActions","requirements","actions","match","push","rules","_","every","a","length","form","addMailFilterRule","field","operator","removeMailFilterRule","index","splice","addMailFilterAction","method","removeMailFilterAction","fieldLabels","subject","l","from","to","cc","to_or_cc","size","header","indexOf","body","methodLabels","discard","keep","stop","redirect","reject","fileinto","addflag","numberOperatorLabels","under","over","textOperatorLabels","is","is_not","contains","contains_not","matches","matches_not","regex","regex_not","flagLabels","seen","deleted","answered","flagged","junk","not_junk","PreferencesController","$q","$state","$mdMedia","$mdSidenav","$mdToast","sgSettings","focus","Dialog","User","Account","Preferences","Authentication","today","Date","beginOfDay","$onInit","passwords","newPassword","newPasswordConfirmation","timeZonesList","timeZonesSearchText","sieveVariablesCapability","mailLabelKeyRE","RegExp","activeUser","mail","id","$getMailboxes","then","allMailboxes","$flattenMailboxes","all","SOGoAlternateAvatar","$alternateAvatar","updateVacationDates","go","$valid","close","onLanguageChange","confirm","ok","quick","location","reload","addCalendarCategory","SOGoCalendarCategoriesColors","SOGoCalendarCategories","$setDirty","removeCalendarCategory","key","addContactCategory","i","SOGoContactsCategories","removeContactCategory","addMailAccount","ev","AuxiliaryMailAccounts","last","extend","name","identities","fullName","email","receipts","receiptAction","receiptNonRecipientAction","receiptOutsideDomainAction","receiptAnyAction","show","targetEvent","locals","catch","pop","editMailAccount","removeMailAccount","resetMailLabelValidity","$setValidity","addMailLabel","guid","SOGoMailLabelsColorsKeys","SOGoMailLabelsColorsValues","removeMailLabel","addMailFilter","SOGoMailLabelsColors","SOGoSieveFilters","editMailFilter","copy","removeMailFilter","addDefaultEmailAddresses","v","isDefined","Vacation","autoReplyEmailAddresses","split","union","defaultEmailAddresses","join","userFilter","search","excludedUsers","minimumSearchLength","$filter","users","forEach","user","$$image","image","avatar","c_email","no_404","confirmChanges","$event","target","$dirty","$form","preventDefault","stopPropagation","tagName","parentNode","href","options","sendForm","addresses","defaultAddresses","domains","domain","forwardConstraints","Forward","enabled","forwardAddress","adr","toLowerCase","alert","uniq","value","keys","$save","data","simple","content","position","hideDelay","$setPristine","canChangePassword","changePassword","title","finally","undefined","msg","timeZonesListFilter","toUpperCase","d","toggleVacationStartDate","toggleVacationEndDate","startDateEnabled","endDateEnabled","startDate","getTime","endDate","addDays","validateVacationStartDate","date","r","validateVacationEndDate"],"mappings":"CAGA,WACE,aAUA,SAASA,EAAUC,EAAgBC,GACjCD,EACGE,MAAM,eACLC,UAAU,EACVC,OACEC,aACEC,YAAa,mBACbC,WAAY,wBACZC,aAAc,UAInBN,MAAM,uBACLO,IAAK,WACLL,OACEM,QACEJ,YAAa,8BAIlBJ,MAAM,yBACLO,IAAK,aACLL,OACEM,QACEJ,YAAa,gCAIlBJ,MAAM,4BACLO,IAAK,gBACLL,OACEM,QACEJ,YAAa,mCAIlBJ,MAAM,sBACLO,IAAK,UACLL,OACEM,QACEJ,YAAa,6BAMrBL,EAAmBU,UAAU,YAQ/B,SAASC,EAASC,GAChBA,EAAWC,IAAI,oBAAqB,SAASC,EAAOC,EAASC,EAAUC,GACrEC,QAAQC,MAAML,EAAOC,EAASC,EAAUC,KAhE5CG,QAAQX,OAAO,sBAAuB,YAAa,KAAM,cAAe,gBAAiB,kBAAmB,sBAAuB,gBAChIY,OAAOvB,GACPwB,IAAIX,GAKPb,EAAUyB,SAAW,iBAAkB,sBAsDvCZ,EAASY,SAAW,cAhEtB,GCAA,WACE,aAMA,SAASC,EAAwBC,EAAWC,EAAUC,EAASC,EAAWC,GAC/DC,KAENC,YAAc,IAFRD,KAGNJ,SAAWA,EAHLI,KAINH,QAAUA,EAJJG,KAKNF,UAAYA,EALNE,KAMNE,qBAUH,WACE,QAAIJ,EAAY,GAGRC,IApBDC,KAONG,OAgBH,WACER,EAAUQ,UAxBHH,KAQNI,KAmBH,WACET,EAAUU,QA5BHL,KASNM,WAAaR,EAAY,EAAI,mDAAqD,IAT5EE,KAWDH,QAAQU,WAEkB,OAbzBP,KAaGH,QAAQU,aAbXP,KAcJC,YAAc,KAdVD,KAYJH,QAAQU,WAAa,OAd5Bb,EAAwBD,SAAW,YAAa,WAAY,UAAW,YAAa,yBAkCpFH,QACGX,OAAO,sBACPH,WAAW,0BAA2BkB,GA1C3C,GCAA,WACE,aAMA,SAASc,EAAwBC,EAAQC,EAASf,EAAWgB,EAAQC,EAAWC,GAC9E,IAAIC,EAAKd,KACLe,EAAoBL,EAAQK,kBAC5BC,EAAiBN,EAAQM,eACPN,EAAQO,gBAE9BH,EAAGH,OAASA,EACZG,EAAGF,UAAYA,EACfE,EAAGD,OAASA,EACZC,EAAGX,OAsEH,WACER,EAAUQ,UAtEZW,EAAGI,mBAyEH,WACE,IAAIC,GAAiBL,EAAGH,OAAOS,SAI/B,MAHuB,eAAnBN,EAAGH,OAAOU,OAEZF,EAAaG,KAAKR,EAAGH,OAAOY,OACvBC,EAAEC,MAAMN,Line truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function e(){var a,t,o,r=this;if(this.defaults={},this.settings={},a=e.$document[0].getElementById("UserDefaults")){try{o=angular.fromJson(a.textContent||a.innerHTML)}catch(a){e.$log.error("Can't parse user's defaults: "+a.message),o={}}o.SOGoMailLabelsColorsKeys=[],o.SOGoMailLabelsColorsValues=[],_.forEach(o.SOGoMailLabelsColors,function(e,a){o.SOGoMailLabelsColorsKeys.push(a),o.SOGoMailLabelsColorsValues.push(e)}),_.forEach(o.SOGoSieveFilters,function(e){_.forEach(e.actions,function(e){"addflag"==e.method&&"$"==e.argument.charAt(0)&&(e.argument="_"+e.argument)})}),o.SOGoRememberLastModule&&(o.SOGoLoginModule="Last"),o.SOGoMailAutoSave=parseInt(o.SOGoMailAutoSave)||0,o.SOGoMailComposeWindowEnabled=angular.isDefined(o.SOGoMailComposeWindow),o.SOGoMailComposeFontSizeEnabled=parseInt(o.SOGoMailComposeFontSize)>0,window.CKEDITOR&&o.SOGoMailComposeFontSizeEnabled&&(window.CKEDITOR.config.fontSize_defaultLabel=o.SOGoMailComposeFontSize,window.CKEDITOR.addCss(".cke_editable { font-size: "+o.SOGoMailComposeFontSize+"px; }")),o.Vacation?(o.Vacation.startDate?o.Vacation.startDate=new Date(1e3*parseInt(o.Vacation.startDate)):(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date,o.Vacation.startDate=o.Vacation.startDate.beginOfDay(),o.Vacation.startDate.addDays(1)),o.Vacation.endDate?o.Vacation.endDate=new Date(1e3*parseInt(o.Vacation.endDate)):(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date(o.Vacation.startDate.getTime()),o.Vacation.endDate.addDays(1)),o.Vacation.autoReplyEmailAddresses&&o.Vacation.autoReplyEmailAddresses.length?o.Vacation.autoReplyEmailAddresses=o.Vacation.autoReplyEmailAddresses.join(","):delete o.Vacation.autoReplyEmailAddresses):o.Vacation={},angular.isUndefined(o.Vacation.autoReplyEmailAddresses)&&angular.isDefined(window.defaultEmailAddresses)&&(o.Vacation.autoReplyEmailAddresses=window.defaultEmailAddresses),angular.isUndefined(o.Vacation.daysBetweenResponse)&&(o.Vacation.daysBetweenResponse=7),angular.isUndefined(o.Vacation.startDate)&&(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date),angular.isUndefined(o.Vacation.endDate)&&(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date),o.Forward&&o.Forward.forwardAddress&&(o.Forward.forwardAddress=o.Forward.forwardAddress.join(",")),angular.isUndefined(o.SOGoCalendarCategoriesColors)&&(o.SOGoCalendarCategoriesColors={},o.SOGoCalendarCategories=[]),angular.isUndefined(o.SOGoContactsCategories)?o.SOGoContactsCategories=[]:o.SOGoContactsCategories=_.compact(o.SOGoContactsCategories),angular.extend(r.defaults,o),r.$mdDateLocaleProvider=e.$mdDateLocaleProvider,angular.extend(r.$mdDateLocaleProvider,o.locale),angular.extend(r.$mdDateLocaleProvider,{firstDayOfWeek:o.SOGoFirstDayOfWeek,firstWeekOfYear:o.SOGoFirstWeekOfYear}),r.$mdDateLocaleProvider.firstDayOfWeek=parseInt(o.SOGoFirstDayOfWeek),r.$mdDateLocaleProvider.weekNumberFormatter=function(e){return l("Week %d",e)},r.$mdDateLocaleProvider.msgCalendar=l("Calender"),r.$mdDateLocaleProvider.msgOpenCalendar=l("Open Calendar"),r.$mdDateLocaleProvider.parseDate=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoShortDateFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatDate=function(e){return e?e.format(r.$mdDateLocaleProvider,e.$dateFormat||r.defaults.SOGoShortDateFormat):""},r.$mdDateLocaleProvider.parseTime=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatTime=function(e){return e?e.format(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):""}}if(t=e.$document[0].getElementById("UserSettings")){try{o=angular.fromJson(t.textContent||t.innerHTML)}catch(a){e.$log.error("Can't parse user's settings: "+a.message),o={}}o.Calendar&&(o.Calendar.PreventInvitationsWhitelist?o.Calendar.PreventInvitationsWhitelist=_.map(o.Calendar.PreventInvitationsWhitelist,function(a,t){var o=/^(.+)\s<(\S+)>$/.exec(a),n=new e.$User({uid:t,cn:o[1],c_email:o[2]});return n.$$image||(n.$$image=r.avatar(n.c_email,32,{no_404:!0})),n}):o.Calendar.PreventInvitationsWhitelist=[]),angular.extend(r.settings,o)}}e.$factory=["$document","$q","$timeout","$log","$mdDateLocale","sgSettings","Gravatar","Resource","User",function(a,t,o,r,n,s,i,d,l){return angular.extend(e,{$document:a,$q:t,$timeout:o,$log:r,$mdDateLocaleProvider:n,$gravatar:i,$$resource:new d(s.activeUser("folderURL"),s.activeUser()),$resourcesURL:s.resourcesURL(),$User:l}),new e}];try{angular.module("SOGo.PreferencesUI")}catch(e){angular.module("SOGo.PreferencesUI",["SOGo.Common"])}angular.module("SOGo.PreferencesUI").factory("Preferences",e.$factory),e.prototype.ready=function(){return e.$log.warn("Preferences.ready is deprecated -- access settings/defaults directly."),e.$q.when(!0)},e.prototype.avatar=function(a,t,o){var r,n=this,s=n.defaults.SOGoAlternateAvatar;return r=n.defaults.SOGoGravatarEnabled?e.$gravatar(a,t,s,o):[e.$resourcesURL,"img","ic_person_grey_24px.svg"].join("/"),o&&o.dstObject&&o.dstAttr&&(o.dstObject[Line truncated
|
||||
!function(){"use strict";function e(){var a,t,o,r=this;if(this.defaults={},this.settings={},a=e.$document[0].getElementById("UserDefaults")){try{o=angular.fromJson(a.textContent||a.innerHTML)}catch(a){e.$log.error("Can't parse user's defaults: "+a.message),o={}}o.SOGoMailLabelsColorsKeys=[],o.SOGoMailLabelsColorsValues=[],_.forEach(o.SOGoMailLabelsColors,function(e,a){o.SOGoMailLabelsColorsKeys.push(a),o.SOGoMailLabelsColorsValues.push(e)}),_.forEach(o.SOGoSieveFilters,function(e){_.forEach(e.actions,function(e){"addflag"==e.method&&"$"==e.argument.charAt(0)&&(e.argument="_"+e.argument)})}),o.SOGoRememberLastModule&&(o.SOGoLoginModule="Last"),o.SOGoMailAutoSave=parseInt(o.SOGoMailAutoSave)||0,o.SOGoMailComposeWindowEnabled=angular.isDefined(o.SOGoMailComposeWindow),o.SOGoMailComposeFontSizeEnabled=parseInt(o.SOGoMailComposeFontSize)>0,window.CKEDITOR&&o.SOGoMailComposeFontSizeEnabled&&(window.CKEDITOR.config.fontSize_defaultLabel=o.SOGoMailComposeFontSize,window.CKEDITOR.addCss(".cke_editable { font-size: "+o.SOGoMailComposeFontSize+"px; }")),o.Vacation?(o.Vacation.startDate?o.Vacation.startDate=new Date(1e3*parseInt(o.Vacation.startDate)):(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date,o.Vacation.startDate=o.Vacation.startDate.beginOfDay(),o.Vacation.startDate.addDays(1)),o.Vacation.endDate?o.Vacation.endDate=new Date(1e3*parseInt(o.Vacation.endDate)):(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date(o.Vacation.startDate.getTime()),o.Vacation.endDate.addDays(1)),o.Vacation.autoReplyEmailAddresses&&o.Vacation.autoReplyEmailAddresses.length?o.Vacation.autoReplyEmailAddresses=o.Vacation.autoReplyEmailAddresses.join(","):delete o.Vacation.autoReplyEmailAddresses):o.Vacation={},angular.isUndefined(o.Vacation.autoReplyEmailAddresses)&&angular.isDefined(window.defaultEmailAddresses)&&(o.Vacation.autoReplyEmailAddresses=window.defaultEmailAddresses),angular.isUndefined(o.Vacation.daysBetweenResponse)&&(o.Vacation.daysBetweenResponse=7),angular.isUndefined(o.Vacation.startDate)&&(o.Vacation.startDateEnabled=0,o.Vacation.startDate=new Date),angular.isUndefined(o.Vacation.endDate)&&(o.Vacation.endDateEnabled=0,o.Vacation.endDate=new Date),o.Forward&&o.Forward.forwardAddress&&(o.Forward.forwardAddress=o.Forward.forwardAddress.join(",")),angular.isUndefined(o.SOGoCalendarCategoriesColors)&&(o.SOGoCalendarCategoriesColors={},o.SOGoCalendarCategories=[]),angular.isUndefined(o.SOGoContactsCategories)?o.SOGoContactsCategories=[]:o.SOGoContactsCategories=_.compact(o.SOGoContactsCategories),angular.extend(r.defaults,o),r.$mdDateLocaleProvider=e.$mdDateLocaleProvider,angular.extend(r.$mdDateLocaleProvider,o.locale),angular.extend(r.$mdDateLocaleProvider,{firstDayOfWeek:o.SOGoFirstDayOfWeek,firstWeekOfYear:o.SOGoFirstWeekOfYear}),r.$mdDateLocaleProvider.firstDayOfWeek=parseInt(o.SOGoFirstDayOfWeek),r.$mdDateLocaleProvider.weekNumberFormatter=function(e){return l("Week %d",e)},r.$mdDateLocaleProvider.msgCalendar=l("Calender"),r.$mdDateLocaleProvider.msgOpenCalendar=l("Open Calendar"),r.$mdDateLocaleProvider.parseDate=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoShortDateFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatDate=function(e){return e?e.format(r.$mdDateLocaleProvider,e.$dateFormat||r.defaults.SOGoShortDateFormat):""},r.$mdDateLocaleProvider.parseTime=function(e){return e?e.parseDate(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):new Date(NaN)},r.$mdDateLocaleProvider.formatTime=function(e){return e?e.format(r.$mdDateLocaleProvider,r.defaults.SOGoTimeFormat):""}}if(t=e.$document[0].getElementById("UserSettings")){try{o=angular.fromJson(t.textContent||t.innerHTML)}catch(a){e.$log.error("Can't parse user's settings: "+a.message),o={}}o.Calendar&&(o.Calendar.PreventInvitationsWhitelist?o.Calendar.PreventInvitationsWhitelist=_.map(o.Calendar.PreventInvitationsWhitelist,function(a,t){var o=/^(.+)\s<(\S+)>$/.exec(a),n=new e.$User({uid:t,cn:o[1],c_email:o[2]});return n.$$image||(n.$$image=r.avatar(n.c_email,32,{no_404:!0})),n}):o.Calendar.PreventInvitationsWhitelist=[]),angular.extend(r.settings,o)}}e.$factory=["$document","$q","$timeout","$log","$mdDateLocale","sgSettings","Gravatar","Resource","User",function(a,t,o,r,n,s,i,d,l){return angular.extend(e,{$document:a,$q:t,$timeout:o,$log:r,$mdDateLocaleProvider:n,$gravatar:i,$$resource:new d(s.activeUser("folderURL"),s.activeUser()),$resourcesURL:s.resourcesURL(),$User:l}),new e}];try{angular.module("SOGo.PreferencesUI")}catch(e){angular.module("SOGo.PreferencesUI",["SOGo.Common"])}angular.module("SOGo.PreferencesUI").factory("Preferences",e.$factory),e.prototype.ready=function(){return e.$log.warn("Preferences.ready is deprecated -- access settings/defaults directly."),e.$q.when(!0)},e.prototype.avatar=function(a,t,o){var r,n=this.defaults.SOGoAlternateAvatar;return r=this.defaults.SOGoGravatarEnabled?e.$gravatar(a,t,n,o):[e.$resourcesURL,"img","ic_person_grey_24px.svg"].join("/"),o&&o.dstObject&&o.dstAttr&&(o.dstObject[oLine truncated
|
||||
//# sourceMappingURL=Preferences.services.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Preferences/Preferences.service.js"],"names":["Preferences","defaultsElement","settingsElement","data","_this","this","defaults","settings","$document","getElementById","angular","fromJson","textContent","innerHTML","e","$log","error","message","SOGoMailLabelsColorsKeys","SOGoMailLabelsColorsValues","_","forEach","SOGoMailLabelsColors","value","key","push","SOGoSieveFilters","filter","actions","action","method","argument","charAt","SOGoRememberLastModule","SOGoLoginModule","SOGoMailAutoSave","parseInt","SOGoMailComposeWindowEnabled","isDefined","SOGoMailComposeWindow","SOGoMailComposeFontSizeEnabled","SOGoMailComposeFontSize","window","CKEDITOR","config","fontSize_defaultLabel","addCss","Vacation","startDate","Date","startDateEnabled","beginOfDay","addDays","endDate","endDateEnabled","getTime","autoReplyEmailAddresses","length","join","isUndefined","defaultEmailAddresses","daysBetweenResponse","Forward","forwardAddress","SOGoCalendarCategoriesColors","SOGoCalendarCategories","SOGoContactsCategories","compact","extend","$mdDateLocaleProvider","locale","firstDayOfWeek","SOGoFirstDayOfWeek","firstWeekOfYear","SOGoFirstWeekOfYear","weekNumberFormatter","weekNumber","l","msgCalendar","msgOpenCalendar","parseDate","dateString","SOGoShortDateFormat","NaN","formatDate","date","format","$dateFormat","parseTime","timeString","SOGoTimeFormat","formatTime","Calendar","PreventInvitationsWhitelist","map","match","exec","user","$User","uid","cn","c_email","$$image","avatar","no_404","$factory","$q","$timeout","Settings","Gravatar","Resource","User","$gravatar","$$resource","activeUser","$resourcesURL","resourcesURL","module","factory","prototype","ready","warn","when","email","size","options","url","alternate_avatar","SOGoAlternateAvatar","SOGoGravatarEnabled","dstObject","dstAttr","$save","save","$omit","then","deep","preferences","whitelist","copy","i","substring","split","v","$shortFormat"],"mappings":"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 truncated
|
||||
{"version":3,"sources":["Preferences/Preferences.service.js"],"names":["Preferences","defaultsElement","settingsElement","data","_this","this","defaults","settings","$document","getElementById","angular","fromJson","textContent","innerHTML","e","$log","error","message","SOGoMailLabelsColorsKeys","SOGoMailLabelsColorsValues","_","forEach","SOGoMailLabelsColors","value","key","push","SOGoSieveFilters","filter","actions","action","method","argument","charAt","SOGoRememberLastModule","SOGoLoginModule","SOGoMailAutoSave","parseInt","SOGoMailComposeWindowEnabled","isDefined","SOGoMailComposeWindow","SOGoMailComposeFontSizeEnabled","SOGoMailComposeFontSize","window","CKEDITOR","config","fontSize_defaultLabel","addCss","Vacation","startDate","Date","startDateEnabled","beginOfDay","addDays","endDate","endDateEnabled","getTime","autoReplyEmailAddresses","length","join","isUndefined","defaultEmailAddresses","daysBetweenResponse","Forward","forwardAddress","SOGoCalendarCategoriesColors","SOGoCalendarCategories","SOGoContactsCategories","compact","extend","$mdDateLocaleProvider","locale","firstDayOfWeek","SOGoFirstDayOfWeek","firstWeekOfYear","SOGoFirstWeekOfYear","weekNumberFormatter","weekNumber","l","msgCalendar","msgOpenCalendar","parseDate","dateString","SOGoShortDateFormat","NaN","formatDate","date","format","$dateFormat","parseTime","timeString","SOGoTimeFormat","formatTime","Calendar","PreventInvitationsWhitelist","map","match","exec","user","$User","uid","cn","c_email","$$image","avatar","no_404","$factory","$q","$timeout","Settings","Gravatar","Resource","User","$gravatar","$$resource","activeUser","$resourcesURL","resourcesURL","module","factory","prototype","ready","warn","when","email","size","options","url","alternate_avatar","SOGoAlternateAvatar","SOGoGravatarEnabled","dstObject","dstAttr","$save","save","$omit","then","deep","preferences","whitelist","copy","i","substring","split","v","$shortFormat"],"mappings":"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 truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(){"use strict";function e(t){if(this.init(t),this.name&&!this.id){var n=e.$$resource.create("createFolder",this.name);this.$unwrap(n)}}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Preferences","Component","Acl",function(t,n,a,o,i,r,s,c){return angular.extend(e,{$q:t,$timeout:n,$log:a,$$resource:new i(o.activeUser("folderURL")+"Calendar",o.activeUser()),$Preferences:r,$Component:s,$$Acl:c,activeUser:o.activeUser(),$view:null}),e}];try{angular.module("SOGo.SchedulerUI")}catch(e){angular.module("SOGo.SchedulerUI",["SOGo.Common"])}angular.module("SOGo.SchedulerUI").value("CalendarSettings",{EventDragDayLength:96,EventDragHorizontalOffset:3,ConflictHTTPErrorCode:409}).factory("Calendar",e.$factory),e.$defaultCalendar=function(){var t;return"first"==e.$Preferences.defaults.SOGoDefaultCalendar&&(t=_.find(e.$findAll(null,!0),function(e){return e.active}))?t.id:"personal"},e.$add=function(t){var n,a;n=t.isWebCalendar?this.$webcalendars:t.isSubscription?this.$subscriptions:this.$calendars,(a=_.findIndex(n,function(e,n){return"personal"==t.id||"personal"!=e.id&&e.name.localeCompare(t.name)>0}))<0?n.push(t):n.splice(a,0,t),e.$Preferences.settings.Calendar.FoldersOrder&&e.saveFoldersOrder(_.flatMap(e.$findAll(),"id")),e.$reloadAll()},e.$findAll=function(t,n){var a=this;if(t)this.$calendars=[],this.$subscriptions=[],this.$webcalendars=[],angular.forEach(t,function(t,n){var o=new e(t);o.isWebCalendar?a.$webcalendars.push(o):o.isSubscription?a.$subscriptions.push(o):a.$calendars.push(o)});else if(angular.isUndefined(this.$calendars))return this.$calendars=[],this.$subscriptions=[],this.$webcalendars=[],e.$$resource.fetch("calendarslist").then(function(t){return e.$findAll(t.calendars,n)});return n?_.union(this.$calendars,_.filter(this.$subscriptions,function(e){return e.isOwned||e.acls.objectCreator})):_.union(this.$calendars,this.$subscriptions,this.$webcalendars)},e.$reloadAll=function(){var t=this;e.$$resource.fetch("calendarslist").then(function(n){_.forEach(n.calendars,function(n){var a,o;a=n.isWebCalendar?t.$webcalendars:n.owner!=e.activeUser.login?t.$subscriptions:t.$calendars,(o=_.find(a,function(e){return e.id==n.id}))&&o.init(n)})})},e.$get=function(t){var n;return(n=_.find(e.$calendars,function(e){return e.id==t}))||(n=_.find(e.$subscriptions,function(e){return e.id==t})),n||(n=_.find(e.$webcalendars,function(e){return e.id==t})),n},e.$getIndex=function(t){var n;return(n=_.indexOf(_.map(e.$calendars,"id"),t))<0&&(n=_.indexOf(_.map(e.$subscriptions,"id"),t)),n<0&&(n=_.indexOf(_.map(e.$webcalendars,"id"),t)),n},e.$subscribe=function(t,n){var a=this;return e.$$resource.userResource(t).fetch(n,"subscribe").then(function(t){var n=new e(angular.extend({active:1},t));return _.find(a.$subscriptions,function(e){return e.id==t.id})||e.$add(n),n})},e.$addWebCalendar=function(t){var n=this,a=e.$q.defer();return _.find(n.$webcalendars,function(e){return e.urls.webCalendarURL==t})?a.reject():e.$$resource.post(null,"addWebCalendar",{url:t}).then(function(n){angular.extend(n,{isWebCalendar:!0,isEditable:!0,isRemote:!1,owner:e.activeUser.login,urls:{webCalendarURL:t}});var o=new e(n);e.$$resource.fetch(o.id,"reload").then(function(t){e.$log.debug(JSON.stringify(t,void 0,2)),e.$add(o),a.resolve()},function(e){401==e.status?a.resolve(o):a.reject()})},a.reject),a.promise},e.reloadWebCalendars=function(){var t=[];return _.forEach(this.$webcalendars,function(n){var a=e.$$resource.fetch(n.id,"reload");a.then(function(e){n.$error=!1},function(e){n.$error=l(e.statusText)}),t.push(a)}),e.$q.all(t)},e.$deleteComponents=function(t){var n={},a=[];return _.forEach(t,function(e){angular.isDefined(n[e.pid])||(n[e.pid]=[]),n[e.pid].push(e.id)}),_.forEach(n,function(t,n){a.push(e.$$resource.post(n,"batchDelete",{uids:t}))}),e.$q.all(a)},e.saveFoldersActivation=function(t){var n={};return _.forEach(t,function(t){var a=e.$get(t);n[a.id]=a.active}),e.$$resource.post(null,"saveFoldersActivation",n)},e.saveFoldersOrder=function(t){return this.$$resource.post(null,"saveFoldersOrder",{folders:t}).then(function(){if(e.$Preferences.settings.Calendar.FoldersOrder=t,!t)return e.$$resource.fetch("calendarslist").then(function(t){return e.$findAll(t.calendars)})})},e.prototype.init=function(t){this.color=this.color||"#AAAAAA",this.active=1,angular.extend(this,t),this.id&&(this.$acl=new e.$$Acl("Calendar/"+this.id)),this.isOwned=e.activeUser.isSuperUser||this.owner==e.activeUser.login,this.isSubscription=!this.isRemote&&this.owner!=e.activeUser.login,angular.isUndefined(this.$shadowData)&&(this.$shadowData=this.$omit())},e.prototype.$id=function(){return this.id?e.$q.when(this.id):this.$futureCalendarData.then(function(e){return e.id})},e.prototype.getClassName=function(e){return angular.isUndefined(e)&&(e="fg"),e+"-folder"+this.id},e.prototype.$rename=function(){var t,n,a=this;return this.name==this.$shadowData.name?e.$q.when():(n=this.isWebCalendar?e.$webcalendars:this.isSubscription?e.$subscriptions:e.$calendars,(t=_.indexOf(_.mapLine truncated
|
||||
!function(){"use strict";function e(t){if(this.init(t),this.name&&!this.id){var n=e.$$resource.create("createFolder",this.name);this.$unwrap(n)}}e.$factory=["$q","$timeout","$log","sgSettings","Resource","Preferences","Component","Acl",function(t,n,a,o,i,r,s,c){return angular.extend(e,{$q:t,$timeout:n,$log:a,$$resource:new i(o.activeUser("folderURL")+"Calendar",o.activeUser()),$Preferences:r,$Component:s,$$Acl:c,activeUser:o.activeUser(),$view:null}),e}];try{angular.module("SOGo.SchedulerUI")}catch(e){angular.module("SOGo.SchedulerUI",["SOGo.Common"])}angular.module("SOGo.SchedulerUI").value("CalendarSettings",{EventDragDayLength:96,EventDragHorizontalOffset:3,ConflictHTTPErrorCode:409}).factory("Calendar",e.$factory),e.$defaultCalendar=function(){var t;return"first"==e.$Preferences.defaults.SOGoDefaultCalendar&&(t=_.find(e.$findAll(null,!0),function(e){return e.active}))?t.id:"personal"},e.$add=function(t){var n,a;n=t.isWebCalendar?this.$webcalendars:t.isSubscription?this.$subscriptions:this.$calendars,(a=_.findIndex(n,function(e,n){return"personal"==t.id||"personal"!=e.id&&e.name.localeCompare(t.name)>0}))<0?n.push(t):n.splice(a,0,t),e.$Preferences.settings.Calendar.FoldersOrder&&e.saveFoldersOrder(_.flatMap(e.$findAll(),"id")),e.$reloadAll()},e.$findAll=function(t,n){var a=this;if(t)this.$calendars=[],this.$subscriptions=[],this.$webcalendars=[],angular.forEach(t,function(t,n){var o=new e(t);o.isWebCalendar?a.$webcalendars.push(o):o.isSubscription?a.$subscriptions.push(o):a.$calendars.push(o)});else if(angular.isUndefined(this.$calendars))return this.$calendars=[],this.$subscriptions=[],this.$webcalendars=[],e.$$resource.fetch("calendarslist").then(function(t){return e.$findAll(t.calendars,n)});return n?_.union(this.$calendars,_.filter(this.$subscriptions,function(e){return e.isOwned||e.acls.objectCreator})):_.union(this.$calendars,this.$subscriptions,this.$webcalendars)},e.$reloadAll=function(){var t=this;e.$$resource.fetch("calendarslist").then(function(n){_.forEach(n.calendars,function(n){var a,o;a=n.isWebCalendar?t.$webcalendars:n.owner!=e.activeUser.login?t.$subscriptions:t.$calendars,(o=_.find(a,function(e){return e.id==n.id}))&&o.init(n)})})},e.$get=function(t){var n;return(n=_.find(e.$calendars,function(e){return e.id==t}))||(n=_.find(e.$subscriptions,function(e){return e.id==t})),n||(n=_.find(e.$webcalendars,function(e){return e.id==t})),n},e.$getIndex=function(t){var n;return(n=_.indexOf(_.map(e.$calendars,"id"),t))<0&&(n=_.indexOf(_.map(e.$subscriptions,"id"),t)),n<0&&(n=_.indexOf(_.map(e.$webcalendars,"id"),t)),n},e.$subscribe=function(t,n){var a=this;return e.$$resource.userResource(t).fetch(n,"subscribe").then(function(t){var n=new e(angular.extend({active:1},t));return _.find(a.$subscriptions,function(e){return e.id==t.id})||e.$add(n),n})},e.$addWebCalendar=function(t){var n=e.$q.defer();return _.find(this.$webcalendars,function(e){return e.urls.webCalendarURL==t})?n.reject():e.$$resource.post(null,"addWebCalendar",{url:t}).then(function(a){angular.extend(a,{isWebCalendar:!0,isEditable:!0,isRemote:!1,owner:e.activeUser.login,urls:{webCalendarURL:t}});var o=new e(a);e.$$resource.fetch(o.id,"reload").then(function(t){e.$log.debug(JSON.stringify(t,void 0,2)),e.$add(o),n.resolve()},function(e){401==e.status?n.resolve(o):n.reject()})},n.reject),n.promise},e.reloadWebCalendars=function(){var t=[];return _.forEach(this.$webcalendars,function(n){var a=e.$$resource.fetch(n.id,"reload");a.then(function(e){n.$error=!1},function(e){n.$error=l(e.statusText)}),t.push(a)}),e.$q.all(t)},e.$deleteComponents=function(t){var n={},a=[];return _.forEach(t,function(e){angular.isDefined(n[e.pid])||(n[e.pid]=[]),n[e.pid].push(e.id)}),_.forEach(n,function(t,n){a.push(e.$$resource.post(n,"batchDelete",{uids:t}))}),e.$q.all(a)},e.saveFoldersActivation=function(t){var n={};return _.forEach(t,function(t){var a=e.$get(t);n[a.id]=a.active}),e.$$resource.post(null,"saveFoldersActivation",n)},e.saveFoldersOrder=function(t){return this.$$resource.post(null,"saveFoldersOrder",{folders:t}).then(function(){if(e.$Preferences.settings.Calendar.FoldersOrder=t,!t)return e.$$resource.fetch("calendarslist").then(function(t){return e.$findAll(t.calendars)})})},e.prototype.init=function(t){this.color=this.color||"#AAAAAA",this.active=1,angular.extend(this,t),this.id&&(this.$acl=new e.$$Acl("Calendar/"+this.id)),this.isOwned=e.activeUser.isSuperUser||this.owner==e.activeUser.login,this.isSubscription=!this.isRemote&&this.owner!=e.activeUser.login,angular.isUndefined(this.$shadowData)&&(this.$shadowData=this.$omit())},e.prototype.$id=function(){return this.id?e.$q.when(this.id):this.$futureCalendarData.then(function(e){return e.id})},e.prototype.getClassName=function(e){return angular.isUndefined(e)&&(e="fg"),e+"-folder"+this.id},e.prototype.$rename=function(){var t,n,a=this;return this.name==this.$shadowData.name?e.$q.when():(n=this.isWebCalendar?e.$webcalendars:this.isSubscription?e.$subscriptions:e.$calendars,(t=_.indexOf(_.map(n,"Line truncated
|
||||
//# sourceMappingURL=Scheduler.services.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["Scheduler/Calendar.service.js","Scheduler/Component.service.js","Scheduler/CalendarController.js","Scheduler/CalendarListController.js","Scheduler/CalendarsController.js","Scheduler/ComponentController.js","Scheduler/sgCalendarDay.directive.js","Scheduler/sgCalendarDayBlock.directive.js","Scheduler/sgCalendarDayTable.directive.js","Scheduler/sgCalendarGhost.directive.js","Scheduler/sgCalendarListEvent.directive.js","Scheduler/sgCalendarListItem.directive.js","Scheduler/sgCalendarMonthDay.directive.js","Scheduler/sgCalendarMonthEvent.directive.js","Scheduler/sgCalendarScrollView.directive.js","Scheduler/sgCategoryStylesheet.directive.js","Scheduler/sgDraggableCalendarBlock.directive.js","Scheduler/sgNowLine.directive.js"],"names":["Calendar","futureCalendarData","this","init","name","id","newCalendarData","$$resource","create","$unwrap","$factory","$q","$timeout","$log","Settings","Resource","Preferences","Component","Acl","angular","extend","activeUser","$Preferences","$Component","$$Acl","$view","module","e","value","EventDragDayLength","EventDragHorizontalOffset","ConflictHTTPErrorCode","factory","$defaultCalendar","calendar","defaults","SOGoDefaultCalendar","_","find","$findAll","active","$add","list","sibling","isWebCalendar","$webcalendars","isSubscription","$subscriptions","$calendars","findIndex","o","i","localeCompare","push","splice","settings","FoldersOrder","saveFoldersOrder","flatMap","$reloadAll","data","writable","_this","forEach","isUndefined","fetch","then","calendars","union","filter","isOwned","acls","objectCreator","calendarData","group","owner","login","$get","$getIndex","indexOf","map","$subscribe","uid","path","userResource","$addWebCalendar","url","d","defer","urls","webCalendarURL","reject","post","isEditable","isRemote","debug","JSON","stringify","undefined","resolve","response","status","promise","reloadWebCalendars","promises","$error","l","statusText","all","$deleteComponents","components","component","isDefined","pid","uids","saveFoldersActivation","ids","request","folders","prototype","color","$acl","isSuperUser","$shadowData","$omit","$id","when","$futureCalendarData","getClassName","base","$rename","$save","$delete","remove","$reset","key","save","error","setCredentials","username","password","export","options","type","filename","download","$setActivation","$getComponent","componentId","recurrenceId","$find","isError","isObject","futureComponentData","newComponentData","newguid","isNew","$rootScope","Component_STATUS","User","Card","Gravatar","STATUS","$settings","$User","$Card","$gravatar","timeFormat","$query","search","$queryEvents","sort","asc","filterpopup","$queryTasks","$refreshTimeout","$ghost","EventsFilterState","TasksFilterState","EventsSortingState","parseInt","TasksSortingState","show_completed","ShowCompletedTasks","$categories","SOGoCalendarCategoriesColors","SOGoTimeFormat","constant","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","$selectedCount","count","$events","event","selected","length","$tasks","task","$startRefreshTimeout","cancel","refreshViewCheck","SOGoRefreshViewCheck","f","bind","$emit","timeInterval","$isLoading","$loaded","$filter","otherType","now","Date","day","getDate","month","getMonth","year","getFullYear","queryKey","capitalize","params","dirty","keys","$unwrapCollection","calendarId","occurrenceId","encodeURIComponent","join","filterCategories","query","re","RegExp","category","saveSelectedList","componentType","$eventsBlocksForView","view","date","firstDayOfWeek","viewAction","startDate","endDate","SOGoFirstDayOfWeek","beginOfWeek","setTime","getTime","addDays","setDate","setMonth","endOfWeek","$eventsBlocks","j","dayDates","dayNumbers","deferred","toLowerCase","sd","getDayString","ed","views","reduceComponent","associateComponent","objects","eventData","componentData","zipObject","eventsFields","start","c_startdate","hour","getHourString","blocks","block","nbr","isFirst","$views","viewIndex","viewData","allDayBlocks","reduce","events","flatten","days","dayIndex","dayNumber","calendarName","fields","invokeMap","monthData","dayData","$resetGhost","pointerHandler","startHour","endHour","$parseDate","dateString","time","substring","split","no_time","categories","repeat","alarm","action","quantity","unit","reference","relation","delta","isString","setMinutes","Math","round","getMinutes","end","minutesTo","setDelta","dueDate","due","completedDate","completed","c_category","$isRecurrent","byDayMask","occurrence","frequency","byday","toString","interval","monthdays","months","until","$hasCustomRepeat","hasCustomRepeat","classification","units","M","H","D","W","match","exec","SOGoCalendarDefaultReminder","$hasAlarm","sendAppointmentNotifications","SOGoAppointmentSendEMailNotifications","destinationCalendar","attendees","attendee","image","email","updateFreeBusy","initOrganizer","results","organizer","cn","c_email","updateFreeBusyAttendee","isReadOnly","isEditableOccurrence","isInvitation","userHasRSVP","Line truncated
|
||||
{"version":3,"sources":["Scheduler/Calendar.service.js","Scheduler/Component.service.js","Scheduler/CalendarController.js","Scheduler/CalendarListController.js","Scheduler/CalendarsController.js","Scheduler/ComponentController.js","Scheduler/sgCalendarDay.directive.js","Scheduler/sgCalendarDayBlock.directive.js","Scheduler/sgCalendarDayTable.directive.js","Scheduler/sgCalendarGhost.directive.js","Scheduler/sgCalendarListEvent.directive.js","Scheduler/sgCalendarListItem.directive.js","Scheduler/sgCalendarMonthDay.directive.js","Scheduler/sgCalendarMonthEvent.directive.js","Scheduler/sgCalendarScrollView.directive.js","Scheduler/sgCategoryStylesheet.directive.js","Scheduler/sgDraggableCalendarBlock.directive.js","Scheduler/sgNowLine.directive.js"],"names":["Calendar","futureCalendarData","this","init","name","id","newCalendarData","$$resource","create","$unwrap","$factory","$q","$timeout","$log","Settings","Resource","Preferences","Component","Acl","angular","extend","activeUser","$Preferences","$Component","$$Acl","$view","module","e","value","EventDragDayLength","EventDragHorizontalOffset","ConflictHTTPErrorCode","factory","$defaultCalendar","calendar","defaults","SOGoDefaultCalendar","_","find","$findAll","active","$add","list","sibling","isWebCalendar","$webcalendars","isSubscription","$subscriptions","$calendars","findIndex","o","i","localeCompare","push","splice","settings","FoldersOrder","saveFoldersOrder","flatMap","$reloadAll","data","writable","_this","forEach","isUndefined","fetch","then","calendars","union","filter","isOwned","acls","objectCreator","calendarData","group","owner","login","$get","$getIndex","indexOf","map","$subscribe","uid","path","userResource","$addWebCalendar","url","d","defer","urls","webCalendarURL","reject","post","isEditable","isRemote","debug","JSON","stringify","undefined","resolve","response","status","promise","reloadWebCalendars","promises","$error","l","statusText","all","$deleteComponents","components","component","isDefined","pid","uids","saveFoldersActivation","ids","request","folders","prototype","color","$acl","isSuperUser","$shadowData","$omit","$id","when","$futureCalendarData","getClassName","base","$rename","$save","$delete","remove","$reset","key","save","error","setCredentials","username","password","export","options","type","filename","download","$setActivation","$getComponent","componentId","recurrenceId","$find","isError","isObject","futureComponentData","newComponentData","newguid","isNew","$rootScope","Component_STATUS","User","Card","Gravatar","STATUS","$settings","$User","$Card","$gravatar","timeFormat","$query","search","$queryEvents","sort","asc","filterpopup","$queryTasks","$refreshTimeout","$ghost","EventsFilterState","TasksFilterState","EventsSortingState","parseInt","TasksSortingState","show_completed","ShowCompletedTasks","$categories","SOGoCalendarCategoriesColors","SOGoTimeFormat","constant","NOT_LOADED","DELAYED_LOADING","LOADING","LOADED","DELAYED_MS","$selectedCount","count","$events","event","selected","length","$tasks","task","$startRefreshTimeout","cancel","refreshViewCheck","SOGoRefreshViewCheck","f","bind","$emit","timeInterval","$isLoading","$loaded","$filter","otherType","now","Date","day","getDate","month","getMonth","year","getFullYear","queryKey","capitalize","params","dirty","keys","$unwrapCollection","calendarId","occurrenceId","encodeURIComponent","join","filterCategories","query","re","RegExp","category","saveSelectedList","componentType","$eventsBlocksForView","view","date","firstDayOfWeek","viewAction","startDate","endDate","SOGoFirstDayOfWeek","beginOfWeek","setTime","getTime","addDays","setDate","setMonth","endOfWeek","$eventsBlocks","j","dayDates","dayNumbers","deferred","toLowerCase","sd","getDayString","ed","views","reduceComponent","associateComponent","objects","eventData","componentData","zipObject","eventsFields","start","c_startdate","hour","getHourString","blocks","block","nbr","isFirst","$views","viewIndex","viewData","allDayBlocks","reduce","events","flatten","days","dayIndex","dayNumber","calendarName","fields","invokeMap","monthData","dayData","$resetGhost","pointerHandler","startHour","endHour","$parseDate","dateString","time","substring","split","no_time","categories","repeat","alarm","action","quantity","unit","reference","relation","delta","isString","setMinutes","Math","round","getMinutes","end","minutesTo","setDelta","dueDate","due","completedDate","completed","c_category","$isRecurrent","byDayMask","occurrence","frequency","byday","toString","interval","monthdays","months","until","$hasCustomRepeat","hasCustomRepeat","classification","match","exec","SOGoCalendarDefaultReminder","$hasAlarm","M","H","D","W","sendAppointmentNotifications","SOGoAppointmentSendEMailNotifications","destinationCalendar","attendees","attendee","image","email","updateFreeBusy","initOrganizer","results","organizer","cn","c_email","updateFreeBusyAttendee","isReadOnly","isEditableOccurrence","isInvitation","userHasRSVP","isInvitaLine truncated
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
var saveAs=saveAs||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,i=function(n){var o=t.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o)},a=e.webkitRequestFileSystem,c=e.requestFileSystem||a||e.mozRequestFileSystem,f=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},u=0,s=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},d=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){f(e)}}},l=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},p=function(t,f){var p,v,w,y=this,m=(t=l(t)).type,S=!1,h=function(){d(y,"writestart progress write writeend".split(" "))},O=function(){!S&&p||(p=n().createObjectURL(t)),v?v.location.href=p:void 0==e.open(p,"_blank")&&"undefined"!=typeof safari&&(e.location.href=p),y.readyState=y.DONE,h(),s(p)},E=function(e){return function(){if(y.readyState!==y.DONE)return e.apply(this,arguments)}},R={create:!0,exclusive:!1};if(y.readyState=y.INIT,f||(f="download"),r)return p=n().createObjectURL(t),o.href=p,o.download=f,i(o),y.readyState=y.DONE,h(),void s(p);e.chrome&&m&&"application/octet-stream"!==m&&(w=t.slice||t.webkitSlice,t=w.call(t,0,t.size,"application/octet-stream"),S=!0),a&&"download"!==f&&(f+=".download"),("application/octet-stream"===m||a)&&(v=e),c?(u+=t.size,c(e.TEMPORARY,u,E(function(e){e.root.getDirectory("saved",R,E(function(e){var n=function(){e.getFile(f,R,E(function(e){e.createWriter(E(function(n){n.onwriteend=function(t){v.location.href=e.toURL(),y.readyState=y.DONE,d(y,"writeend",t),s(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&O()},"writestart progress write abort".split(" ").forEach(function(e){n["on"+e]=y["on"+e]}),n.write(t),y.abort=function(){n.abort(),y.readyState=y.DONE},y.readyState=y.WRITING}),O)}),O)};e.getFile(f,{create:!1},E(function(e){e.remove(),n()}),E(function(e){e.code===e.NOT_FOUND_ERR?n():O()}))}),O)}),O)):O()},v=p.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(l(e),t)}:(v.abort=function(){var e=this;e.readyState=e.DONE,d(e,"abort")},v.readyState=v.INIT=0,v.WRITING=1,v.DONE=2,v.error=v.onwritestart=v.onprogress=v.onwrite=v.onabort=v.onerror=v.onwriteend=null,function(e,t){return new p(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs});
|
||||
var saveAs=saveAs||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,i=e.webkitRequestFileSystem,a=e.requestFileSystem||i||e.mozRequestFileSystem,c=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},f="application/octet-stream",u=0,s=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},d=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){c(e)}}},l=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},p=function(c,p){var v,w,y,m=this,h=(c=l(c)).type,S=!1,O=function(){d(m,"writestart progress write writeend".split(" "))},E=function(){if(!S&&v||(v=n().createObjectURL(c)),w)w.location.href=v;else{void 0==e.open(v,"_blank")&&"undefined"!=typeof safari&&(e.location.href=v)}m.readyState=m.DONE,O(),s(v)},R=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},b={create:!0,exclusive:!1};if(m.readyState=m.INIT,p||(p="download"),r)return v=n().createObjectURL(c),o.href=v,o.download=p,function(n){var o=t.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,e,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}(o),m.readyState=m.DONE,O(),void s(v);e.chrome&&h&&h!==f&&(y=c.slice||c.webkitSlice,c=y.call(c,0,c.size,f),S=!0),i&&"download"!==p&&(p+=".download"),(h===f||i)&&(w=e),a?(u+=c.size,a(e.TEMPORARY,u,R(function(e){e.root.getDirectory("saved",b,R(function(e){var t=function(){e.getFile(p,b,R(function(e){e.createWriter(R(function(t){t.onwriteend=function(t){w.location.href=e.toURL(),m.readyState=m.DONE,d(m,"writeend",t),s(e)},t.onerror=function(){var e=t.error;e.code!==e.ABORT_ERR&&E()},"writestart progress write abort".split(" ").forEach(function(e){t["on"+e]=m["on"+e]}),t.write(c),m.abort=function(){t.abort(),m.readyState=m.DONE},m.readyState=m.WRITING}),E)}),E)};e.getFile(p,{create:!1},R(function(e){e.remove(),t()}),R(function(e){e.code===e.NOT_FOUND_ERR?t():E()}))}),E)}),E)):E()},v=p.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(l(e),t)}:(v.abort=function(){this.readyState=this.DONE,d(this,"abort")},v.readyState=v.INIT=0,v.WRITING=1,v.DONE=2,v.error=v.onwritestart=v.onprogress=v.onwrite=v.onabort=v.onerror=v.onwriteend=null,function(e,t){return new p(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof module&&module.exports?module.exports.saveAs=saveAs:"undefined"!=typeof define&&null!==define&&null!=define.amd&&define([],function(){return saveAs});
|
||||
//# sourceMappingURL=FileSaver.min.js.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"sources":["../../bower_components/file-saver.js/FileSaver.js"],"names":["saveAs","view","navigator","test","userAgent","doc","document","get_URL","URL","webkitURL","save_link","createElementNS","can_use_save_link","click","node","event","createEvent","initMouseEvent","dispatchEvent","webkit_req_fs","webkitRequestFileSystem","req_fs","requestFileSystem","mozRequestFileSystem","throw_outside","ex","setImmediate","setTimeout","fs_min_size","revoke","file","revoker","revokeObjectURL","remove","chrome","dispatch","filesaver","event_types","i","concat","length","listener","call","auto_bom","blob","type","Blob","FileSaver","name","object_url","target_view","slice","this","blob_changed","dispatch_all","split","fs_error","createObjectURL","location","href","undefined","open","safari","readyState","DONE","abortable","func","apply","arguments","create_if_not_found","create","exclusive","INIT","download","webkitSlice","size","TEMPORARY","fs","root","getDirectory","dir","save","getFile","createWriter","writer","onwriteend","toURL","onerror","error","code","ABORT_ERR","forEach","write","abort","WRITING","NOT_FOUND_ERR","FS_proto","prototype","msSaveOrOpenBlob","onwritestart","onprogress","onwrite","onabort","self","window","content","module","exports","define","amd"],"mappings":"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","file":"FileSaver.min.js"}
|
||||
{"version":3,"sources":["../../bower_components/file-saver.js/FileSaver.js"],"names":["saveAs","view","navigator","test","userAgent","doc","document","get_URL","URL","webkitURL","save_link","createElementNS","can_use_save_link","webkit_req_fs","webkitRequestFileSystem","req_fs","requestFileSystem","mozRequestFileSystem","throw_outside","ex","setImmediate","setTimeout","force_saveable_type","fs_min_size","revoke","file","revoker","revokeObjectURL","remove","chrome","dispatch","filesaver","event_types","event","i","concat","length","listener","call","auto_bom","blob","type","Blob","FileSaver","name","object_url","target_view","slice","this","blob_changed","dispatch_all","split","fs_error","createObjectURL","location","href","undefined","open","safari","readyState","DONE","abortable","func","apply","arguments","create_if_not_found","create","exclusive","INIT","download","node","createEvent","initMouseEvent","dispatchEvent","click","webkitSlice","size","TEMPORARY","fs","root","getDirectory","dir","save","getFile","createWriter","writer","onwriteend","toURL","onerror","error","code","ABORT_ERR","forEach","write","abort","WRITING","NOT_FOUND_ERR","FS_proto","prototype","msSaveOrOpenBlob","onwritestart","onprogress","onwrite","onabort","self","window","content","module","exports","define","amd"],"mappings":"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","file":"FileSaver.min.js"}
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["angular-file-upload"]=t():e["angular-file-upload"]=t()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var r=n(o(1)),i=n(o(2)),s=n(o(3)),a=n(o(4)),l=n(o(5)),u=n(o(6)),p=n(o(7)),c=n(o(8)),f=n(o(9)),d=n(o(10)),h=n(o(11)),y=n(o(12)),v=n(o(13));angular.module(r.default.name,[]).value("fileUploaderOptions",i.default).factory("FileUploader",s.default).factory("FileLikeObject",a.default).factory("FileItem",l.default).factory("FileDirective",u.default).factory("FileSelect",p.default).factory("FileDrop",f.default).factory("FileOver",d.default).factory("Pipeline",c.default).directive("nvFileSelect",h.default).directive("nvFileDrop",y.default).directive("nvFileOver",v.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,o,n,r,i,s,a){e.FileLikeObject=t,e.FileItem=o,e.FileDirective=n,e.FileSelect=r,e.FileDrop=i,e.FileOver=s,e.Pipeline=a}])},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,o){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,o,r,s,m,_,g){var b=r.File,F=r.FormData,O=function(){function r(t){n(this,r);var o=l(e);u(this,o,t,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return r.prototype.addToQueue=function(e,t,o){var n=this,r=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],s=this._getFilters(o),a=this.queue.length,l=[],u=function(){n.queue.length!==a&&(n._onAfterAddingAll(l),n.progress=n._getTotalProgress()),n._render(),n.autoUpload&&n.uploadAll()};!function e(){var o=r.shift();if(y(o))return u();var a=n.isFile(o)?o:new m(o),p=n._convertFiltersToPipes(s),c=new g(p);c.onThrown=function(t){var o=t.pipe.originalFilter,r=i(t.args,2),s=r[0],a=r[1];n._onWhenAddingFileFailed(s,o,a),e()},c.onSuccessful=function(t,o){var r=new _(n,t,o);l.push(r),n.queue.push(r),n._onAfterAddingFile(r),e()},c.exec(a,t)}()},r.prototype.removeFromQueue=function(e){var t=this.getIndexOfItem(e),o=this.queue[t];o.isUploading&&o.cancel(),this.queue.splice(t,1),o._destroy(),this.progress=this._getTotalProgress()},r.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},r.prototype.uploadItem=function(e){var t=this.getIndexOfItem(e),o=this.queue[t],n=this.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(o),o.isCancel||(o.isUploading=!0,this.isUploading=!0,this[n](o),this._render()))},r.prototype.cancelItem=function(e){var t=this,o=this.getIndexOfItem(e),n=this.queue[o],r=this.isHTML5?"_xhr":"_form";n&&(n.isCancel=!0,n.isUploading?n[r].abort():function(){var e=[void 0,0,{}];s(function(){t._onCancelItem.apply(t,[n].concat(e)),t._onCompleteItem.apply(t,[n].concat(e))})}())},r.prototype.uploadAll=function(){var e=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(p(e,function(e){return e._prepareToUploading()}),e[0].upload())},r.prototype.cancelAll=function(){var e=this.getNotUploadedItems();p(e,function(e){return e.cancel()})},r.prototype.isFile=function(e){return this.constructor.isFile(e)},r.prototype.isFileLikeObject=function(e){return this.constructor.isFileLikeObject(e)},r.prototype.isArrayLikeObject=function(e){return this.constructor.isArrayLikeObject(e)},r.prototype.getIndexOfItem=function(e){return f(e)?e:this.queue.indexOf(e)},r.prototype.getNotUploadedItems=function(){return this.queue.filter(function(e){return!e.isUploaded})},r.prototype.getReadyItems=function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,t){return e.index-t.index})},r.prototype.destroy=function(){var e=this;p(this._directives,function(t){p(e._directives[t],function(e){e.destroy()})})},r.prototype.onAfterAddingAll=function(e){},r.prototype.onAfterAddingFile=function(e){},r.prototype.onWhenAddingFileFailed=function(e,t,o){},r.prototype.onBeforeUploadItem=function(e){},r.prototype.onProgressItem=function(e,t){},r.prototype.onProgressAll=function(e){},r.prototype.onSuccessItem=function(e,t,o,n){},r.prototype.onErrorItem=function(e,t,o,n){},r.prototype.onCancelItem=function(e,t,oLine truncated
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["angular-file-upload"]=t():e["angular-file-upload"]=t()}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var r=o[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var r=n(o(1)),i=n(o(2)),s=n(o(3)),a=n(o(4)),l=n(o(5)),u=n(o(6)),p=n(o(7)),c=n(o(8)),f=n(o(9)),d=n(o(10)),h=n(o(11)),y=n(o(12)),v=n(o(13));angular.module(r.default.name,[]).value("fileUploaderOptions",i.default).factory("FileUploader",s.default).factory("FileLikeObject",a.default).factory("FileItem",l.default).factory("FileDirective",u.default).factory("FileSelect",p.default).factory("FileDrop",f.default).factory("FileOver",d.default).factory("Pipeline",c.default).directive("nvFileSelect",h.default).directive("nvFileDrop",y.default).directive("nvFileOver",v.default).run(["FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline",function(e,t,o,n,r,i,s,a){e.FileLikeObject=t,e.FileItem=o,e.FileDirective=n,e.FileSelect=r,e.FileDrop=i,e.FileOver=s,e.Pipeline=a}])},function(e,t){e.exports={name:"angularFileUpload"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={url:"/",alias:"file",headers:{},queue:[],progress:0,autoUpload:!1,removeAfterUpload:!1,method:"POST",filters:[],formData:[],queueLimit:Number.MAX_VALUE,withCredentials:!1,disableMultipart:!1}},function(e,t,o){"use strict";function n(e,t,o,n,i,v,m,_){var g=n.File,b=n.FormData,F=function(){function n(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var o=a(e);l(this,o,t,{isUploading:!1,_nextIndex:0,_directives:{select:[],drop:[],over:[]}}),this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return n.prototype.addToQueue=function(e,t,o){var n=this,i=this.isArrayLikeObject(e)?Array.prototype.slice.call(e):[e],s=this._getFilters(o),a=this.queue.length,l=[],u=function(){n.queue.length!==a&&(n._onAfterAddingAll(l),n.progress=n._getTotalProgress()),n._render(),n.autoUpload&&n.uploadAll()};!function e(){var o=i.shift();if(h(o))return u();var a=n.isFile(o)?o:new v(o),p=n._convertFiltersToPipes(s),c=new _(p);c.onThrown=function(t){var o=t.pipe.originalFilter,i=r(t.args,2),s=i[0],a=i[1];n._onWhenAddingFileFailed(s,o,a),e()},c.onSuccessful=function(t,o){var r=new m(n,t,o);l.push(r),n.queue.push(r),n._onAfterAddingFile(r),e()},c.exec(a,t)}()},n.prototype.removeFromQueue=function(e){var t=this.getIndexOfItem(e),o=this.queue[t];o.isUploading&&o.cancel(),this.queue.splice(t,1),o._destroy(),this.progress=this._getTotalProgress()},n.prototype.clearQueue=function(){for(;this.queue.length;)this.queue[0].remove();this.progress=0},n.prototype.uploadItem=function(e){var t=this.getIndexOfItem(e),o=this.queue[t],n=this.isHTML5?"_xhrTransport":"_iframeTransport";o._prepareToUploading(),this.isUploading||(this._onBeforeUploadItem(o),o.isCancel||(o.isUploading=!0,this.isUploading=!0,this[n](o),this._render()))},n.prototype.cancelItem=function(e){var t=this,o=this.getIndexOfItem(e),n=this.queue[o],r=this.isHTML5?"_xhr":"_form";n&&(n.isCancel=!0,n.isUploading?n[r].abort():function(){var e=[void 0,0,{}];i(function(){t._onCancelItem.apply(t,[n].concat(e)),t._onCompleteItem.apply(t,[n].concat(e))})}())},n.prototype.uploadAll=function(){var e=this.getNotUploadedItems().filter(function(e){return!e.isUploading});e.length&&(u(e,function(e){return e._prepareToUploading()}),e[0].upload())},n.prototype.cancelAll=function(){var e=this.getNotUploadedItems();u(e,function(e){return e.cancel()})},n.prototype.isFile=function(e){return this.constructor.isFile(e)},n.prototype.isFileLikeObject=function(e){return this.constructor.isFileLikeObject(e)},n.prototype.isArrayLikeObject=function(e){return this.constructor.isArrayLikeObject(e)},n.prototype.getIndexOfItem=function(e){return c(e)?e:this.queue.indexOf(e)},n.prototype.getNotUploadedItems=function(){return this.queue.filter(function(e){return!e.isUploaded})},n.prototype.getReadyItems=function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,t){return e.index-t.index})},n.prototype.destroy=function(){var e=this;u(this._directives,function(t){u(e._directives[t],function(e){e.destroy()})})},n.prototype.onAfterAddingAll=function(e){},n.prototype.onAfterAddingFile=function(e){},n.prototype.onWhenAddingFileFailed=function(e,t,o){},n.prototype.onBeforeUploadItem=function(e){},n.prototype.onProgressItem=function(e,t){},n.prototype.onProgressAll=function(e){},n.prototype.onSuccessItem=function(e,t,o,n){},n.prototype.onErrorItem=function(e,t,o,n){},n.prototype.onCancelItem=function(e,t,o,nLine truncated
|
||||
//# sourceMappingURL=angular-file-upload.min.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"sources":["../../bower_components/angular-file-upload/dist/angular-file-upload.js","../Common/angular-file-upload.trump.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","_config2","_options2","_FileUploader2","_FileLikeObject2","_FileItem2","_FileDirective2","_FileSelect2","_Pipeline2","_FileDrop2","_FileOver2","_FileSelect4","_FileDrop4","_FileOver4","angular","name","value","directive","run","FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline","Object","defineProperty","url","alias","headers","queue","progress","autoUpload","removeAfterUpload","method","filters","formData","queueLimit","Number","MAX_VALUE","withCredentials","disableMultipart","_classCallCheck","instance","Constructor","TypeError","__identity","fileUploaderOptions","$rootScope","$http","$window","$timeout","File","FormData","options","settings","copy","extend","isUploading","_nextIndex","_directives","select","drop","over","unshift","fn","_queueLimitFilter","_folderFilter","prototype","addToQueue","files","_this","incomingQueue","isArrayLikeObject","Array","slice","arrayOfFilters","_getFilters","count","length","addedFileItems","done","_onAfterAddingAll","_getTotalProgress","_render","uploadAll","next","something","shift","isUndefined","fileLikeObject","isFile","pipes","_convertFiltersToPipes","pipeline","onThrown","err","originalFilter","pipe","_err$args","_slicedToArray","args","_onWhenAddingFileFailed","onSuccessful","fileItem","push","_onAfterAddingFile","exec","removeFromQueue","index","getIndexOfItem","item","cancel","splice","_destroy","clearQueue","remove","uploadItem","transport","isHTML5","_prepareToUploading","_onBeforeUploadItem","isCancel","cancelItem","_this2","prop","abort","dummy","undefined","_onCancelItem","apply","concat","_onCompleteItem","items","getNotUploadedItems","filter","forEach","upload","cancelAll","constructor","isFileLikeObject","isNumber","indexOf","isUploaded","getReadyItems","isReady","sort","item1","item2","destroy","_this3","key","object","onAfterAddingAll","fileItems","onAfterAddingFile","onWhenAddingFileFailed","onBeforeUploadItem","onProgressItem","onProgressAll","onSuccessItem","response","status","onErrorItem","onCancelItem","onCompleteItem","onCompleteAll","notUploaded","uploaded","ratio","current","Math","round","isArray","names","match","_this4","map","bind","isAsync","$$phase","$apply","size","type","_isSuccessCode","_transformResponse","headersGetter","_headersGetter","defaults","transformResponse","transformFn","_parseHeaders","val","i","parsed","split","line","trim","toLowerCase","parsedHeaders","_xhrTransport","sendable","_this5","xhr","_xhr","XMLHttpRequest","_file","append","file","onprogress","event","lengthComputable","total","_onProgressItem","onload","getAllResponseHeaders","gist","onerror","_onErrorItem","onabort","open","setRequestHeader","send","_iframeTransport","_this6","form","element","iframe","Date","now","input","_input","_form","replaceWith","element_","action","target","enctype","encoding","html","contentDocument","body","innerHTML","e","_onSuccessItem","unbind","after","submit","_onBeforeUpload","_onProgress","_onSuccess","_onError","_onCancel","_onComplete","nextItem","isDefined","isObject","inherit","source","create","super_","sliceIterator","arr","_arr","_n","_d","_e","_s","_i","Symbol","iterator","_angular","$inject","fileOrInput","fakePathOrObject","isElement","isString","_createFromFakePath","path","lastModifiedDate","lastIndexOf","_createFromObject","$compile","uploader","some","isInput","isSuccess","isError","_replaceNode","message","code","onBeforeUpload","onProgress","onSuccess","onError","onCancel","onComplete","clone","scope","css","_saveLinks","events","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","enumerable","writable","configurable","setPrototypeOf","__proto__","_FileDirective","extendedOptions","$destroy","change","removeAttr","getOptions","getFilters","isEmptyAfterSelection","attr","onChange","_toConsumableArray","arr2","from","$q","arguments","Error","deferred","defer","onFulfilled","onRejected","promise","then","Boolean","_len","_key","dragover","dragleave","onDrop","transfer","_getTransfer","_preventAndStop","_removeOverClass","onDragOver","_haveFiles","types","dropEffect","_addOverClass","onDragLeave","currentTarget","dataTransfer","originalEvent","preventDefault","stopPropagation","contains","addOverClass","removeOverClass","overClass","addClass","getOverClass","removeClass","$parse","link","attributes","$eval","FileUploaderDecorator","$delegate","$cookies","token","get","X-XSRF-TOKEN","FileDropDecorator","onDragLeaveTimer","that","decorator"],"mappings":"CAKA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,UAAWH,GACe,iBAAZC,QACdA,QALine truncated
|
||||
{"version":3,"sources":["../../bower_components/angular-file-upload/dist/angular-file-upload.js","../Common/angular-file-upload.trump.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","_interopRequireDefault","obj","__esModule","default","_config2","_options2","_FileUploader2","_FileLikeObject2","_FileItem2","_FileDirective2","_FileSelect2","_Pipeline2","_FileDrop2","_FileOver2","_FileSelect4","_FileDrop4","_FileOver4","angular","name","value","directive","run","FileUploader","FileLikeObject","FileItem","FileDirective","FileSelect","FileDrop","FileOver","Pipeline","Object","defineProperty","url","alias","headers","queue","progress","autoUpload","removeAfterUpload","method","filters","formData","queueLimit","Number","MAX_VALUE","withCredentials","disableMultipart","__identity","fileUploaderOptions","$rootScope","$http","$window","$timeout","File","FormData","options","instance","Constructor","TypeError","_classCallCheck","settings","copy","extend","isUploading","_nextIndex","_directives","select","drop","over","unshift","fn","_queueLimitFilter","_folderFilter","prototype","addToQueue","files","_this","incomingQueue","isArrayLikeObject","Array","slice","arrayOfFilters","_getFilters","count","length","addedFileItems","done","_onAfterAddingAll","_getTotalProgress","_render","uploadAll","next","something","shift","isUndefined","fileLikeObject","isFile","pipes","_convertFiltersToPipes","pipeline","onThrown","err","originalFilter","pipe","_err$args","_slicedToArray","args","_onWhenAddingFileFailed","onSuccessful","fileItem","push","_onAfterAddingFile","exec","removeFromQueue","index","getIndexOfItem","item","cancel","splice","_destroy","clearQueue","remove","uploadItem","transport","isHTML5","_prepareToUploading","_onBeforeUploadItem","isCancel","cancelItem","_this2","prop","abort","dummy","undefined","_onCancelItem","apply","concat","_onCompleteItem","items","getNotUploadedItems","filter","forEach","upload","cancelAll","constructor","isFileLikeObject","isNumber","indexOf","isUploaded","getReadyItems","isReady","sort","item1","item2","destroy","_this3","key","object","onAfterAddingAll","fileItems","onAfterAddingFile","onWhenAddingFileFailed","onBeforeUploadItem","onProgressItem","onProgressAll","onSuccessItem","response","status","onErrorItem","onCancelItem","onCompleteItem","onCompleteAll","notUploaded","uploaded","ratio","current","Math","round","isArray","names","match","_this4","map","bind","isAsync","$$phase","$apply","size","type","_isSuccessCode","_transformResponse","headersGetter","_headersGetter","defaults","transformResponse","transformFn","_parseHeaders","val","i","parsed","split","line","trim","toLowerCase","parsedHeaders","_xhrTransport","sendable","_this5","xhr","_xhr","XMLHttpRequest","_file","append","file","onprogress","event","lengthComputable","total","_onProgressItem","onload","getAllResponseHeaders","gist","onerror","_onErrorItem","onabort","open","setRequestHeader","send","_iframeTransport","_this6","form","element","iframe","Date","now","input","_input","_form","replaceWith","element_","action","target","enctype","encoding","html","contentDocument","body","innerHTML","e","_onSuccessItem","unbind","after","submit","_onBeforeUpload","_onProgress","_onSuccess","_onError","_onCancel","_onComplete","nextItem","isDefined","isObject","inherit","source","create","super_","arr","Symbol","iterator","_arr","_n","_d","_e","_s","_i","sliceIterator","_angular","$inject","fileOrInput","fakePathOrObject","isElement","isString","_createFromFakePath","path","lastModifiedDate","lastIndexOf","_createFromObject","$compile","uploader","some","isInput","isSuccess","isError","_replaceNode","message","code","onBeforeUpload","onProgress","onSuccess","onError","onCancel","onComplete","clone","scope","css","_saveLinks","events","_FileDirective","extendedOptions","$destroy","change","self","ReferenceError","_possibleConstructorReturn","removeAttr","subClass","superClass","enumerable","writable","configurable","setPrototypeOf","__proto__","_inherits","getOptions","getFilters","isEmptyAfterSelection","attr","onChange","_toConsumableArray","arr2","from","$q","arguments","Error","deferred","defer","onFulfilled","onRejected","promise","then","Boolean","_len","_key","dragover","dragleave","onDrop","transfer","_getTransfer","_preventAndStop","_removeOverClass","onDragOver","_haveFiles","types","dropEffect","_addOverClass","onDragLeave","currentTarget","dataTransfer","originalEvent","preventDefault","stopPropagation","contains","addOverClass","removeOverClass","overClass","addClass","getOverClass","removeClass","$parse","link","attributes","$eval","FileUploaderDecorator","$delegate","$cookies","token","get","X-XSRF-TOKEN","FileDropDecorator","onDragLeaveTimer","that","decorator"],"mappings":"CAKA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,UAAWH,GACe,iBAAZC,QACdA,QALine truncated
|
||||
Reference in new issue
Block a user