@ -727,10 +727,10 @@ function se(e){return e.toString().split("&").join("&").split("<").join("<
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
/ *
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
/ * *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ author 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
@ -747,7 +747,7 @@ function se(e){return e.toString().split("&").join("&").split("<").join("<
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
window . _ = s . a , window . $ = a . a , window . autosize = u . a , window . Backbone = d . a , window . Clipboard = p . a , window . ClipboardJS = p . a , window . cssVars = W , window . dav = U . a , window . DOMPurify = q . a , window . Handlebars = V . a , window . jstimezonedetect = K . a , window . jstz = K . a , window . jQuery = a . a , window . marked = Z . a , window . md5 = ee . a , window . moment = ne . a , window . OC = ie . a , window . OCP = re . a , window . OCA = { } , window . escapeHTML = se , window . formatDate = function ( e ) { return console . warn ( "formatDate is deprecated, use OC.Util.formatDate instead" ) , ie . a . Util . formatDate ( e ) }
var ae = function ( e , t ) { var n = e , i = function ( ) { return console . warn ( "The " . concat ( t , " library is deprecated! It will be removed in nextcloud 19." ) ) , n . apply ( this , arguments ) } ; return Object . assign ( i , n ) , i } ; window . _ = s . a , window . $ = a . a , window . autosize = u . a , window . Backbone = d . a , window . Clipboard = p . a , window . ClipboardJS = p . a , window . cssVars = W , window . dav = U . a , window . DOMPurify = q . a , window . Handlebars = V . a , window . jstimezonedetect = K . a , window . jstz = K . a , window . jQuery = a . a , window . marked = ae ( Z . a , "marked" ) , window . md5 = ee . a , window . moment = ne . a , window . OC = ie . a , window . OCP = re . a , window . OCA = { } , window . escapeHTML = ae ( se , "escapeHTML" ) , window . formatDate = ae ( function ( e ) { return console . warn ( "formatDate is deprecated, use OC.Util.formatDate instead" ) , ie . a . Util . formatDate ( e ) }
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -767,7 +767,7 @@ window._=s.a,window.$=a.a,window.autosize=u.a,window.Backbone=d.a,window.Clipboa
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /,window.getURLParameter=function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/ \ + / g , " % 2 0 " ) ) | | " " } , w i n d o w . h u m a n F i l e S i z e = o e . a , w i n d o w . r e l a t i v e _ m o d i f i e d _ d a t e = f u n c t i o n ( e ) { r e t u r n c o n s o l e . w a r n ( " r e l a t i v e _ m o d i f i e d _ d a t e i s d e p r e c a t e d , u s e O C . U t i l . r e l a t i v e M o d i f i e d D a t e i n s t e a d " ) , i e . a . U t i l . r e l a t i v e M o d i f i e d D a t e ( 1 e 3 * e ) } , w i n d o w . t = s . a . b i n d ( i e . a . L 1 0 N . t r a n s l a t e , i e . a . L 1 0 N ) , w i n d o w . n = s . a . b i n d ( i e . a . L 1 0 N . t r a n s l a t e P l u r a l , i e . a . L 1 0 N ) ,
* /,"formatDate"), window.getURLParameter=ae( function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/ \ + / g , " % 2 0 " ) ) | | " " } , " g e t U R L P a r a m e t e r " ) , w i n d o w . h u m a n F i l e S i z e = a e ( o e . a , " h u m a n F i l e S i z e " ) , w i n d o w . r e l a t i v e _ m o d i f i e d _ d a t e = a e ( f u n c t i o n ( e ) { r e t u r n c o n s o l e . w a r n ( " r e l a t i v e _ m o d i f i e d _ d a t e i s d e p r e c a t e d , u s e O C . U t i l . r e l a t i v e M o d i f i e d D a t e i n s t e a d " ) , i e . a . U t i l . r e l a t i v e M o d i f i e d D a t e ( 1 e 3 * e ) } , " r e l a t i v e _ m o d i f i e d _ d a t e " ) , a . a . f n . s e l e c t 2 = a e ( a . a . f n . s e l e c t 2 , " s e l e c t 2 " ) , w i n d o w . t = s . a . b i n d ( i e . a . L 1 0 N . t r a n s l a t e , i e . a . L 1 0 N ) , w i n d o w . n = s . a . b i n d ( i e . a . L 1 0 N . t r a n s l a t e P l u r a l , i e . a . L 1 0 N ) ,
/ *
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -809,7 +809,7 @@ a.a.fn.avatar=function(e,t,n,i,r,s){var o=function(e){e.imageplaceholder("?"),e.
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
var a e= i ( 490 ) ; a . a . fn . contactsMenu = function ( e , n , i ) { if ( - 1 !== [ 0 , 4 , 6 ] . indexOf ( n ) ) { var r = this ; i . append ( '<div class="menu popovermenu menu-left hidden contactsmenu-popover"> <ul> <li> <a> <span class="icon-loading-small"></span> </a> </li> </ul></div>' ) ; var s = i . find ( "div.contactsmenu-popover" ) ; r . click ( function ( ) { if ( ! s . hasClass ( "hidden" ) ) return s . addClass ( "hidden" ) , void s . hide ( ) ; s . removeClass ( "hidden" ) , s . show ( ) , s . hasClass ( "loaded" ) || ( s . addClass ( "loaded" ) , a . a . ajax ( ie . a . generateUrl ( "/contactsmenu/findOne" ) , { method : "POST" , data : { shareType : n , shareWith : e } } ) . then ( function ( e ) { var n ; s . find ( "ul" ) . find ( "li" ) . addClass ( "hidden" ) , ( n = e . topAction ? [ e . topAction ] . concat ( e . actions ) : [ { hyperlink : "#" , title : t ( "core" , "No action available" ) } ] ) . forEach ( function ( e ) { var t = a e; s . find ( "ul" ) . append ( t ( e ) ) } ) , n . length } , function ( e ) { var n ; s . find ( "ul" ) . find ( "li" ) . addClass ( "hidden" ) , n = 404 === e . status ? t ( "core" , "No action available" ) : t ( "core" , "Error fetching contact actions" ) ; var i = a e; s . find ( "ul" ) . append ( i ( { hyperlink : "#" , title : n } ) ) } ) ) } ) , a ( ) ( document ) . click ( function ( e ) { var t = s . has ( e . target ) . length > 0 , n = r . has ( e . target ) . length > 0 ; r . each ( function ( ) { a ( ) ( this ) . is ( e . target ) && ( n = ! 0 ) } ) , t || n || ( s . addClass ( "hidden" ) , s . hide ( ) ) } ) } } ,
var l e= i ( 490 ) ; a . a . fn . contactsMenu = function ( e , n , i ) { if ( - 1 !== [ 0 , 4 , 6 ] . indexOf ( n ) ) { var r = this ; i . append ( '<div class="menu popovermenu menu-left hidden contactsmenu-popover"> <ul> <li> <a> <span class="icon-loading-small"></span> </a> </li> </ul></div>' ) ; var s = i . find ( "div.contactsmenu-popover" ) ; r . click ( function ( ) { if ( ! s . hasClass ( "hidden" ) ) return s . addClass ( "hidden" ) , void s . hide ( ) ; s . removeClass ( "hidden" ) , s . show ( ) , s . hasClass ( "loaded" ) || ( s . addClass ( "loaded" ) , a . a . ajax ( ie . a . generateUrl ( "/contactsmenu/findOne" ) , { method : "POST" , data : { shareType : n , shareWith : e } } ) . then ( function ( e ) { var n ; s . find ( "ul" ) . find ( "li" ) . addClass ( "hidden" ) , ( n = e . topAction ? [ e . topAction ] . concat ( e . actions ) : [ { hyperlink : "#" , title : t ( "core" , "No action available" ) } ] ) . forEach ( function ( e ) { var t = l e; s . find ( "ul" ) . append ( t ( e ) ) } ) , n . length } , function ( e ) { var n ; s . find ( "ul" ) . find ( "li" ) . addClass ( "hidden" ) , n = 404 === e . status ? t ( "core" , "No action available" ) : t ( "core" , "Error fetching contact actions" ) ; var i = l e; s . find ( "ul" ) . append ( i ( { hyperlink : "#" , title : n } ) ) } ) ) } ) , a ( ) ( document ) . click ( function ( e ) { var t = s . has ( e . target ) . length > 0 , n = r . has ( e . target ) . length > 0 ; r . each ( function ( ) { a ( ) ( this ) . is ( e . target ) && ( n = ! 0 ) } ) , t || n || ( s . addClass ( "hidden" ) , s . hide ( ) ) } ) } } ,
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -872,7 +872,7 @@ a.a.fn.filterAttr=function(e,t){return this.filter(function(){return a()(this).a
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
a . a . widget ( "oc.ocdialog" , { options : { width : "auto" , height : "auto" , closeButton : ! 0 , closeOnEscape : ! 0 , modal : ! 1 } , _create : function ( ) { var e = this ; this . originalCss = { display : this . element [ 0 ] . style . display , width : this . element [ 0 ] . style . width , height : this . element [ 0 ] . style . height } , this . originalTitle = this . element . attr ( "title" ) , this . options . title = this . options . title || this . originalTitle , this . $dialog = a ( ) ( '<div class="oc-dialog" />' ) . attr ( { tabIndex : - 1 , role : "dialog" } ) . insertBefore ( this . element ) , this . $dialog . append ( this . element . detach ( ) ) , this . element . removeAttr ( "title" ) . addClass ( "oc-dialog-content" ) . appendTo ( this . $dialog ) , this . $dialog . css ( { display : "inline-block" , position : "fixed" } ) , this . enterCallback = null , a ( ) ( document ) . on ( "keydown keyup" , function ( t ) { if ( t . target === e . $dialog . get ( 0 ) || 0 !== e . $dialog . find ( a ( ) ( t . target ) ) . length ) { if ( 27 === t . keyCode && "keydown" === t . type && e . options . closeOnEscape ) return t . stopImmediatePropagation ( ) , e . close ( ) , ! 1 ; if ( 13 === t . keyCode ) { if ( t . stopImmediatePropagation ( ) , null !== e . enterCallback ) return e . enterCallback ( ) , t . preventDefault ( ) , ! 1 ; if ( "keyup" === t . type ) return t . preventDefault ( ) , ! 1 ; if ( e . $buttonrow && 0 === e . $buttonrow . find ( a ( ) ( t . target ) ) . length ) { var n = e . $buttonrow . find ( "button.primary" ) ; n && ! n . prop ( "disabled" ) && n . trigger ( "click" ) } else e . $buttonrow && a ( ) ( t . target ) . trigger ( "click" ) ; return ! 1 } } } ) , this . _setOptions ( this . options ) , this . _createOverlay ( ) } , _init : function ( ) { this . $dialog . focus ( ) , this . _trigger ( "open" ) } , _setOption : function ( e , t ) { var n = this ; switch ( e ) { case "title" : if ( this . $title ) this . $title . text ( t ) ; else { var i = a ( ) ( '<h2 class="oc-dialog-title">' + t + "</h2>" ) ; this . $title = i . prependTo ( this . $dialog ) } this . _setSizes ( ) ; break ; case "buttons" : if ( this . $buttonrow ) this . $buttonrow . empty ( ) ; else { var r = a ( ) ( '<div class="oc-dialog-buttonrow" />' ) ; this . $buttonrow = r . appendTo ( this . $dialog ) } 1 === t . length ? this . $buttonrow . addClass ( "onebutton" ) : 2 === t . length ? this . $buttonrow . addClass ( "twobuttons" ) : 3 === t . length && this . $buttonrow . addClass ( "threebuttons" ) , a . a . each ( t , function ( e , t ) { var i = a ( ) ( "<button>" ) . text ( t . text ) ; t . classes && i . addClass ( t . classes ) , t . defaultButton && ( i . addClass ( "primary" ) , n . $defaultButton = i ) , n . $buttonrow . append ( i ) , i . click ( function ( ) { t . click . apply ( n . element [ 0 ] , arguments ) } ) } ) , this . $buttonrow . find ( "button" ) . on ( "focus" , function ( e ) { n . $buttonrow . find ( "button" ) . removeClass ( "primary" ) , a ( ) ( this ) . addClass ( "primary" ) } ) , this . _setSizes ( ) ; break ; case "style" : void 0 !== t . buttons && this . $buttonrow . addClass ( t . buttons ) ; break ; case "closeButton" : if ( t ) { var s = a ( ) ( '<a class="oc-dialog-close"></a>' ) ; this . $dialog . prepend ( s ) , s . on ( "click" , function ( ) { n . close ( ) } ) } else this . $dialog . find ( ".oc-dialog-close" ) . remove ( ) ; break ; case "width" : this . $dialog . css ( "width" , t ) ; break ; case "height" : this . $dialog . css ( "height" , t ) ; break ; case "close" : this . closeCB = t } a . a . Widget . prototype . _setOption . apply ( this , arguments ) } , _setOptions : function ( e ) { a . a . Widget . prototype . _setOptions . apply ( this , arguments ) } , _setSizes : function ( ) { var e = 0 ; this . $title && ( e += this . $title . outerHeight ( ! 0 ) ) , this . $buttonrow && ( e += this . $buttonrow . outerHeight ( ! 0 ) ) , this . element . css ( { height : "calc(100% - " + e + "px)" } ) } , _createOverlay : function ( ) { if ( this . options . modal ) { var e = this ; this . overlay = a ( ) ( "<div>" ) . addClass ( "oc-dialog-dim" ) . appendTo ( a ( ) ( "#content" ) ) , this . overlay . on ( "click keydown keyup" , function ( t ) { if ( t . target !== e . $dialog . get ( 0 ) && 0 === e . $dialog . find ( a ( ) ( t . target ) ) . length ) return t . preventDefault ( ) , void t . stopPropagation ( ) } ) } } , _destroyOverlay : function ( ) { this . options . modal && this . overlay && ( this . overlay . off ( "click keydown keyup" ) , this . overlay . remove ( ) , this . overlay = null ) } , widget : function ( ) { return this . $dialog } , setEnterCallback : function ( e ) { this . enterCallback = e } , unsetEnterCallback : function ( ) { this . enterCallback = null } , close : function ( ) { this . _destroyOverlay ( ) ; var e = this ; setTimeout ( function ( ) { e . _trigger ( "close" , e ) } , 200 ) , e . $dialog . remove ( ) , this . destroy ( ) } , destroy : function ( ) { this . $title && this . $title . remove ( ) , this . $buttonrow && this . $buttonrow . remove ( ) , this . originalTitle && this . element . attr ( "title" , this . originalTitle ) , this . element . removeClass ( "oc-dialog-content" ) . css ( this . originalCss ) . detach ( ) . insertBefore ( this . $dialog ) , this . $dialog . remove ( ) } } ) ; var l e= { init : function ( e , t , n ) { this . vars = e , this . options = a . a . extend ( { } , this . options , t ) , this . elem = n ; if ( "function" == typeof this . options . escapeFunction ) for ( var i = Object . keys ( this . vars ) , r = 0 ; r < i . length ; r ++ ) "string" == typeof this . vars [ i [ r ] ] && ( this . vars [ i [ r ] ] = this . options . escapeFunction ( this . vars [ i [ r ] ] ) ) ; var s = this . _build ( this . vars ) ; return a ( ) ( s ) } , _build : function ( e ) { var t = "text/template" === this . elem . attr ( "type" ) ? this . elem . html ( ) : this . elem . get ( 0 ) . outerHTML ; try { return t . replace ( /{([^{}]*)}/g , function ( t , n ) { var i = e [ n ] ; return "string" == typeof i || "number" == typeof i ? i : t } ) } catch ( e ) { console . error ( e , "data:" , t ) } } , options : { escapeFunction : se } } ; function u e( e ) { return ( u e= "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( e ) { return typeof e } : function ( e ) { return e && "function" == typeof Symbol && e . constructor === Symbol && e !== Symbol . prototype ? "symbol" : typeof e } ) ( e ) }
a . a . widget ( "oc.ocdialog" , { options : { width : "auto" , height : "auto" , closeButton : ! 0 , closeOnEscape : ! 0 , modal : ! 1 } , _create : function ( ) { var e = this ; this . originalCss = { display : this . element [ 0 ] . style . display , width : this . element [ 0 ] . style . width , height : this . element [ 0 ] . style . height } , this . originalTitle = this . element . attr ( "title" ) , this . options . title = this . options . title || this . originalTitle , this . $dialog = a ( ) ( '<div class="oc-dialog" />' ) . attr ( { tabIndex : - 1 , role : "dialog" } ) . insertBefore ( this . element ) , this . $dialog . append ( this . element . detach ( ) ) , this . element . removeAttr ( "title" ) . addClass ( "oc-dialog-content" ) . appendTo ( this . $dialog ) , this . $dialog . css ( { display : "inline-block" , position : "fixed" } ) , this . enterCallback = null , a ( ) ( document ) . on ( "keydown keyup" , function ( t ) { if ( t . target === e . $dialog . get ( 0 ) || 0 !== e . $dialog . find ( a ( ) ( t . target ) ) . length ) { if ( 27 === t . keyCode && "keydown" === t . type && e . options . closeOnEscape ) return t . stopImmediatePropagation ( ) , e . close ( ) , ! 1 ; if ( 13 === t . keyCode ) { if ( t . stopImmediatePropagation ( ) , null !== e . enterCallback ) return e . enterCallback ( ) , t . preventDefault ( ) , ! 1 ; if ( "keyup" === t . type ) return t . preventDefault ( ) , ! 1 ; if ( e . $buttonrow && 0 === e . $buttonrow . find ( a ( ) ( t . target ) ) . length ) { var n = e . $buttonrow . find ( "button.primary" ) ; n && ! n . prop ( "disabled" ) && n . trigger ( "click" ) } else e . $buttonrow && a ( ) ( t . target ) . trigger ( "click" ) ; return ! 1 } } } ) , this . _setOptions ( this . options ) , this . _createOverlay ( ) } , _init : function ( ) { this . $dialog . focus ( ) , this . _trigger ( "open" ) } , _setOption : function ( e , t ) { var n = this ; switch ( e ) { case "title" : if ( this . $title ) this . $title . text ( t ) ; else { var i = a ( ) ( '<h2 class="oc-dialog-title">' + t + "</h2>" ) ; this . $title = i . prependTo ( this . $dialog ) } this . _setSizes ( ) ; break ; case "buttons" : if ( this . $buttonrow ) this . $buttonrow . empty ( ) ; else { var r = a ( ) ( '<div class="oc-dialog-buttonrow" />' ) ; this . $buttonrow = r . appendTo ( this . $dialog ) } 1 === t . length ? this . $buttonrow . addClass ( "onebutton" ) : 2 === t . length ? this . $buttonrow . addClass ( "twobuttons" ) : 3 === t . length && this . $buttonrow . addClass ( "threebuttons" ) , a . a . each ( t , function ( e , t ) { var i = a ( ) ( "<button>" ) . text ( t . text ) ; t . classes && i . addClass ( t . classes ) , t . defaultButton && ( i . addClass ( "primary" ) , n . $defaultButton = i ) , n . $buttonrow . append ( i ) , i . click ( function ( ) { t . click . apply ( n . element [ 0 ] , arguments ) } ) } ) , this . $buttonrow . find ( "button" ) . on ( "focus" , function ( e ) { n . $buttonrow . find ( "button" ) . removeClass ( "primary" ) , a ( ) ( this ) . addClass ( "primary" ) } ) , this . _setSizes ( ) ; break ; case "style" : void 0 !== t . buttons && this . $buttonrow . addClass ( t . buttons ) ; break ; case "closeButton" : if ( t ) { var s = a ( ) ( '<a class="oc-dialog-close"></a>' ) ; this . $dialog . prepend ( s ) , s . on ( "click" , function ( ) { n . close ( ) } ) } else this . $dialog . find ( ".oc-dialog-close" ) . remove ( ) ; break ; case "width" : this . $dialog . css ( "width" , t ) ; break ; case "height" : this . $dialog . css ( "height" , t ) ; break ; case "close" : this . closeCB = t } a . a . Widget . prototype . _setOption . apply ( this , arguments ) } , _setOptions : function ( e ) { a . a . Widget . prototype . _setOptions . apply ( this , arguments ) } , _setSizes : function ( ) { var e = 0 ; this . $title && ( e += this . $title . outerHeight ( ! 0 ) ) , this . $buttonrow && ( e += this . $buttonrow . outerHeight ( ! 0 ) ) , this . element . css ( { height : "calc(100% - " + e + "px)" } ) } , _createOverlay : function ( ) { if ( this . options . modal ) { var e = this ; this . overlay = a ( ) ( "<div>" ) . addClass ( "oc-dialog-dim" ) . appendTo ( a ( ) ( "#content" ) ) , this . overlay . on ( "click keydown keyup" , function ( t ) { if ( t . target !== e . $dialog . get ( 0 ) && 0 === e . $dialog . find ( a ( ) ( t . target ) ) . length ) return t . preventDefault ( ) , void t . stopPropagation ( ) } ) } } , _destroyOverlay : function ( ) { this . options . modal && this . overlay && ( this . overlay . off ( "click keydown keyup" ) , this . overlay . remove ( ) , this . overlay = null ) } , widget : function ( ) { return this . $dialog } , setEnterCallback : function ( e ) { this . enterCallback = e } , unsetEnterCallback : function ( ) { this . enterCallback = null } , close : function ( ) { this . _destroyOverlay ( ) ; var e = this ; setTimeout ( function ( ) { e . _trigger ( "close" , e ) } , 200 ) , e . $dialog . remove ( ) , this . destroy ( ) } , destroy : function ( ) { this . $title && this . $title . remove ( ) , this . $buttonrow && this . $buttonrow . remove ( ) , this . originalTitle && this . element . attr ( "title" , this . originalTitle ) , this . element . removeClass ( "oc-dialog-content" ) . css ( this . originalCss ) . detach ( ) . insertBefore ( this . $dialog ) , this . $dialog . remove ( ) } } ) ; var u e= { init : function ( e , t , n ) { this . vars = e , this . options = a . a . extend ( { } , this . options , t ) , this . elem = n ; if ( "function" == typeof this . options . escapeFunction ) for ( var i = Object . keys ( this . vars ) , r = 0 ; r < i . length ; r ++ ) "string" == typeof this . vars [ i [ r ] ] && ( this . vars [ i [ r ] ] = this . options . escapeFunction ( this . vars [ i [ r ] ] ) ) ; var s = this . _build ( this . vars ) ; return a ( ) ( s ) } , _build : function ( e ) { var t = "text/template" === this . elem . attr ( "type" ) ? this . elem . html ( ) : this . elem . get ( 0 ) . outerHTML ; try { return t . replace ( /{([^{}]*)}/g , function ( t , n ) { var i = e [ n ] ; return "string" == typeof i || "number" == typeof i ? i : t } ) } catch ( e ) { console . error ( e , "data:" , t ) } } , options : { escapeFunction : se } } ; function c e( e ) { return ( c e= "function" == typeof Symbol && "symbol" == typeof Symbol . iterator ? function ( e ) { return typeof e } : function ( e ) { return e && "function" == typeof Symbol && e . constructor === Symbol && e !== Symbol . prototype ? "symbol" : typeof e } ) ( e ) }
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -892,7 +892,7 @@ a.a.widget("oc.ocdialog",{options:{width:"auto",height:"auto",closeButton:!0,clo
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* / a . a . f n . o c t e m p l a t e = f u n c t i o n ( e , t ) { i f ( e = e | | { } , t h i s . l e n g t h ) r e t u r n O b j e c t . c r e a t e ( l e ) . i n i t ( e , t , t h i s ) } , S t r i n g . p r o t o t y p e . t o R g b = f u n c t i o n ( ) { v a r e = t h i s . t o L o w e r C a s e ( ) ; f u n c t i o n t ( e , t , n ) { t h i s . r = e , t h i s . g = t , t h i s . b = n } f u n c t i o n n ( e , n , i ) { v a r r = n e w A r r a y ; r . p u s h ( n ) ; f o r ( v a r s = f u n c t i o n ( e , t ) { v a r n = n e w A r r a y ( 3 ) ; r e t u r n n [ 0 ] = ( t [ 1 ] . r - t [ 0 ] . r ) / e , n [ 1 ] = ( t [ 1 ] . g - t [ 0 ] . g ) / e , n [ 2 ] = ( t [ 1 ] . b - t [ 0 ] . b ) / e , n } ( e , [ n , i ] ) , o = 1 ; o < e ; o + + ) { v a r a = p a r s e I n t ( n . r + s [ 0 ] * o ) , l = p a r s e I n t ( n . g + s [ 1 ] * o ) , u = p a r s e I n t ( n . b + s [ 2 ] * o ) ; r . p u s h ( n e w t ( a , l , u ) ) } r e t u r n r } n u l l = = = e . m a t c h ( / ^ ( [ 0 - 9 a - f ] { 4 } - ? ) { 8 } $ / ) & & ( e = m d 5 ( e ) ) , e = e . r e p l a c e ( / [ ^ 0 - 9 a - f ] / g , " " ) ; v a r i = n e w t ( 1 8 2 , 7 0 , 1 5 7 ) , r = n e w t ( 2 2 1 , 2 0 3 , 8 5 ) , s = n e w t ( 0 , 1 3 0 , 2 0 1 ) , o = n ( 6 , i , r ) , a = n ( 6 , r , s ) , l = n ( 6 , s , i ) ; r e t u r n o . c o n c a t ( a ) . c o n c a t ( l ) [ f u n c t i o n ( e , t ) { f o r ( v a r n = 0 , i = A r r a y ( ) , r = 0 ; r < e . l e n g t h ; r + + ) i . p u s h ( p a r s e I n t ( e . c h a r A t ( r ) , 1 6 ) % 1 6 ) ; f o r ( v a r s i n i ) n + = i [ s ] ; r e t u r n p a r s e I n t ( p a r s e I n t ( n ) % t ) } ( e , 1 8 ) ] } , a . a . f n . i m a g e p l a c e h o l d e r = f u n c t i o n ( e , t , n ) { t = t | | e ; v a r i = e . t o R g b ( ) ; t h i s . c s s ( " b a c k g r o u n d - c o l o r " , " r g b ( " + i . r + " , " + i . g + " , " + i . b + " ) " ) ; v a r r = t h i s . h e i g h t ( ) | | n | | 3 2 ; t h i s . h e i g h t ( r ) , t h i s . w i d t h ( r ) , t h i s . c s s ( " c o l o r " , " # f f f " ) , t h i s . c s s ( " f o n t - w e i g h t " , " n o r m a l " ) , t h i s . c s s ( " t e x t - a l i g n " , " c e n t e r " ) , t h i s . c s s ( " l i n e - h e i g h t " , r + " p x " ) , t h i s . c s s ( " f o n t - s i z e " , . 5 5 * r + " p x " ) , n u l l ! = = e & & e . l e n g t h & & t h i s . h t m l ( t [ 0 ] . t o U p p e r C a s e ( ) ) } , a . a . f n . c l e a r i m a g e p l a c e h o l d e r = f u n c t i o n ( ) { t h i s . c s s ( " b a c k g r o u n d - c o l o r " , " " ) , t h i s . c s s ( " c o l o r " , " " ) , t h i s . c s s ( " f o n t - w e i g h t " , " " ) , t h i s . c s s ( " t e x t - a l i g n " , " " ) , t h i s . c s s ( " l i n e - h e i g h t " , " " ) , t h i s . c s s ( " f o n t - s i z e " , " " ) , t h i s . h t m l ( " " ) , t h i s . r e m o v e C l a s s ( " i c o n - l o a d i n g " ) , t h i s . r e m o v e C l a s s ( " i c o n - l o a d i n g - s m a l l " ) } ,
* / a . a . f n . o c t e m p l a t e = f u n c t i o n ( e , t ) { i f ( e = e | | { } , t h i s . l e n g t h ) r e t u r n O b j e c t . c r e a t e ( u e ) . i n i t ( e , t , t h i s ) } , S t r i n g . p r o t o t y p e . t o R g b = f u n c t i o n ( ) { v a r e = t h i s . t o L o w e r C a s e ( ) ; f u n c t i o n t ( e , t , n ) { t h i s . r = e , t h i s . g = t , t h i s . b = n } f u n c t i o n n ( e , n , i ) { v a r r = n e w A r r a y ; r . p u s h ( n ) ; f o r ( v a r s = f u n c t i o n ( e , t ) { v a r n = n e w A r r a y ( 3 ) ; r e t u r n n [ 0 ] = ( t [ 1 ] . r - t [ 0 ] . r ) / e , n [ 1 ] = ( t [ 1 ] . g - t [ 0 ] . g ) / e , n [ 2 ] = ( t [ 1 ] . b - t [ 0 ] . b ) / e , n } ( e , [ n , i ] ) , o = 1 ; o < e ; o + + ) { v a r a = p a r s e I n t ( n . r + s [ 0 ] * o ) , l = p a r s e I n t ( n . g + s [ 1 ] * o ) , u = p a r s e I n t ( n . b + s [ 2 ] * o ) ; r . p u s h ( n e w t ( a , l , u ) ) } r e t u r n r } n u l l = = = e . m a t c h ( / ^ ( [ 0 - 9 a - f ] { 4 } - ? ) { 8 } $ / ) & & ( e = m d 5 ( e ) ) , e = e . r e p l a c e ( / [ ^ 0 - 9 a - f ] / g , " " ) ; v a r i = n e w t ( 1 8 2 , 7 0 , 1 5 7 ) , r = n e w t ( 2 2 1 , 2 0 3 , 8 5 ) , s = n e w t ( 0 , 1 3 0 , 2 0 1 ) , o = n ( 6 , i , r ) , a = n ( 6 , r , s ) , l = n ( 6 , s , i ) ; r e t u r n o . c o n c a t ( a ) . c o n c a t ( l ) [ f u n c t i o n ( e , t ) { f o r ( v a r n = 0 , i = A r r a y ( ) , r = 0 ; r < e . l e n g t h ; r + + ) i . p u s h ( p a r s e I n t ( e . c h a r A t ( r ) , 1 6 ) % 1 6 ) ; f o r ( v a r s i n i ) n + = i [ s ] ; r e t u r n p a r s e I n t ( p a r s e I n t ( n ) % t ) } ( e , 1 8 ) ] } , a . a . f n . i m a g e p l a c e h o l d e r = f u n c t i o n ( e , t , n ) { t = t | | e ; v a r i = e . t o R g b ( ) ; t h i s . c s s ( " b a c k g r o u n d - c o l o r " , " r g b ( " + i . r + " , " + i . g + " , " + i . b + " ) " ) ; v a r r = t h i s . h e i g h t ( ) | | n | | 3 2 ; t h i s . h e i g h t ( r ) , t h i s . w i d t h ( r ) , t h i s . c s s ( " c o l o r " , " # f f f " ) , t h i s . c s s ( " f o n t - w e i g h t " , " n o r m a l " ) , t h i s . c s s ( " t e x t - a l i g n " , " c e n t e r " ) , t h i s . c s s ( " l i n e - h e i g h t " , r + " p x " ) , t h i s . c s s ( " f o n t - s i z e " , . 5 5 * r + " p x " ) , n u l l ! = = e & & e . l e n g t h & & t h i s . h t m l ( t [ 0 ] . t o U p p e r C a s e ( ) ) } , a . a . f n . c l e a r i m a g e p l a c e h o l d e r = f u n c t i o n ( ) { t h i s . c s s ( " b a c k g r o u n d - c o l o r " , " " ) , t h i s . c s s ( " c o l o r " , " " ) , t h i s . c s s ( " f o n t - w e i g h t " , " " ) , t h i s . c s s ( " t e x t - a l i g n " , " " ) , t h i s . c s s ( " l i n e - h e i g h t " , " " ) , t h i s . c s s ( " f o n t - s i z e " , " " ) , t h i s . h t m l ( " " ) , t h i s . r e m o v e C l a s s ( " i c o n - l o a d i n g " ) , t h i s . r e m o v e C l a s s ( " i c o n - l o a d i n g - s m a l l " ) } ,
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -934,7 +934,7 @@ a.a.fn.selectRange=function(e,t){return this.each(function(){if(this.setSelectio
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
a . a . fn . extend ( { showPassword : function ( e ) { var t = { fn : null , args : { } } ; t . fn = e ; var n = function ( e , t ) { t . val ( e . val ( ) ) } , i = function ( e , t , i ) { e . is ( ":checked" ) ? ( n ( t , i ) , i . show ( ) , t . hide ( ) ) : ( n ( i , t ) , i . hide ( ) , t . show ( ) ) } ; return this . each ( function ( ) { var e = a ( ) ( this ) , r = a ( ) ( e . data ( "typetoggle" ) ) , s = function ( e ) { var t = a ( ) ( e ) , n = a ( ) ( "<input />" ) ; return n . attr ( { type : "text" , class : t . attr ( "class" ) , style : t . attr ( "style" ) , size : t . attr ( "size" ) , name : t . attr ( "name" ) + "-clone" , tabindex : t . attr ( "tabindex" ) , autocomplete : "off" } ) , void 0 !== t . attr ( "placeholder" ) && n . attr ( "placeholder" , t . attr ( "placeholder" ) ) , n } ( e ) ; s . insertAfter ( e ) , t . fn && ( t . args . input = e , t . args . checkbox = r , t . args . clone = s ) , r . bind ( "click" , function ( ) { i ( r , e , s ) } ) , e . bind ( "keyup" , function ( ) { n ( e , s ) } ) , s . bind ( "keyup" , function ( ) { n ( s , e ) , e . trigger ( "keyup" ) } ) , s . bind ( "blur" , function ( ) { e . trigger ( "focusout" ) } ) , i ( r , e , s ) , s . closest ( "form" ) . submit ( function ( e ) { s . prop ( "type" , "password" ) } ) , t . fn && t . fn ( t . args ) } ) } } ) , a . a . fn . tipsy = function ( e ) { if ( console . warn ( "Deprecation warning: tipsy is deprecated. Use tooltip instead." ) , "object" === u e( e ) && null !== e ) { var t = { placement : "bottom" , delay : { show : 0 , hide : 0 } , trigger : "hover" , html : ! 1 , container : "body" } ; if ( e . gravity ) switch ( e . gravity ) { case "n" : case "nw" : case "ne" : t . placement = "bottom" ; break ; case "s" : case "sw" : case "se" : t . placement = "top" ; break ; case "w" : t . placement = "right" ; break ; case "e" : t . placement = "left" } e . trigger && ( t . trigger = e . trigger ) , e . delayIn && ( t . delay . show = e . delayIn ) , e . delayOut && ( t . delay . hide = e . delayOut ) , e . html && ( t . html = ! 0 ) , e . fallback && ( t . title = e . fallback ) , a . a . fn . tooltip . call ( this , "destroy" ) , a . a . fn . tooltip . call ( this , t ) } else this . tooltip ( e ) , a . a . fn . tooltip . call ( this , e ) ; return this } , a . a . ui . autocomplete . prototype . _resizeMenu = function ( ) { this . menu . element . outerWidth ( this . element . outerWidth ( ) ) } ; i ( 491 ) , i ( 498 ) ; var c e= i ( 73 ) ;
a . a . fn . extend ( { showPassword : function ( e ) { var t = { fn : null , args : { } } ; t . fn = e ; var n = function ( e , t ) { t . val ( e . val ( ) ) } , i = function ( e , t , i ) { e . is ( ":checked" ) ? ( n ( t , i ) , i . show ( ) , t . hide ( ) ) : ( n ( i , t ) , i . hide ( ) , t . show ( ) ) } ; return this . each ( function ( ) { var e = a ( ) ( this ) , r = a ( ) ( e . data ( "typetoggle" ) ) , s = function ( e ) { var t = a ( ) ( e ) , n = a ( ) ( "<input />" ) ; return n . attr ( { type : "text" , class : t . attr ( "class" ) , style : t . attr ( "style" ) , size : t . attr ( "size" ) , name : t . attr ( "name" ) + "-clone" , tabindex : t . attr ( "tabindex" ) , autocomplete : "off" } ) , void 0 !== t . attr ( "placeholder" ) && n . attr ( "placeholder" , t . attr ( "placeholder" ) ) , n } ( e ) ; s . insertAfter ( e ) , t . fn && ( t . args . input = e , t . args . checkbox = r , t . args . clone = s ) , r . bind ( "click" , function ( ) { i ( r , e , s ) } ) , e . bind ( "keyup" , function ( ) { n ( e , s ) } ) , s . bind ( "keyup" , function ( ) { n ( s , e ) , e . trigger ( "keyup" ) } ) , s . bind ( "blur" , function ( ) { e . trigger ( "focusout" ) } ) , i ( r , e , s ) , s . closest ( "form" ) . submit ( function ( e ) { s . prop ( "type" , "password" ) } ) , t . fn && t . fn ( t . args ) } ) } } ) , a . a . fn . tipsy = function ( e ) { if ( console . warn ( "Deprecation warning: tipsy is deprecated. Use tooltip instead." ) , "object" === c e( e ) && null !== e ) { var t = { placement : "bottom" , delay : { show : 0 , hide : 0 } , trigger : "hover" , html : ! 1 , container : "body" } ; if ( e . gravity ) switch ( e . gravity ) { case "n" : case "nw" : case "ne" : t . placement = "bottom" ; break ; case "s" : case "sw" : case "se" : t . placement = "top" ; break ; case "w" : t . placement = "right" ; break ; case "e" : t . placement = "left" } e . trigger && ( t . trigger = e . trigger ) , e . delayIn && ( t . delay . show = e . delayIn ) , e . delayOut && ( t . delay . hide = e . delayOut ) , e . html && ( t . html = ! 0 ) , e . fallback && ( t . title = e . fallback ) , a . a . fn . tooltip . call ( this , "destroy" ) , a . a . fn . tooltip . call ( this , t ) } else this . tooltip ( e ) , a . a . fn . tooltip . call ( this , e ) ; return this } , a . a . ui . autocomplete . prototype . _resizeMenu = function ( ) { this . menu . element . outerWidth ( this . element . outerWidth ( ) ) } ; i ( 491 ) , i ( 498 ) ; var d e= i ( 73 ) ;
/ *
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
@ -955,5 +955,5 @@ a.a.fn.extend({showPassword:function(e){var t={fn:null,args:{}};t.fn=e;var n=fun
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
a ( ) ( document ) . ready ( function ( ) { Object ( c e. b ) ( ) } ) } ] ) ;
a ( ) ( document ) . ready ( function ( ) { Object ( d e. b ) ( ) } ) } ] ) ;
//# sourceMappingURL=main.js.map