@ -826,7 +826,7 @@ function Te(e){return e.toString().split("&").join("&").split("<").join("<
* You should have received a copy of the GNU Affero General Public License
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
* /
var Se = 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 } , C e= function ( e , t , n ) { void 0 !== window [ e ] && delete window [ e ] , Object . defineProperty ( window , e , { get : function ( ) { return n? console . warn ( "" . concat ( e , " is deprecated: " ) . concat ( n ) ) : console . warn ( "" . concat ( e , " is deprecated" ) ) , t } } ) } ; window . _ = l . a , window . $ = u . a , window . autosize = h . a , window . Backbone = f . a , window . Clipboard = g . a , window . ClipboardJS = g . a , window . cssVars = G , window . dav = X . a , window . DOMPurify = $ . a , window . Handlebars = te . a , window . jstimezonedetect = ie . a , window . jstz = ie . a , window . jQuery = u . a , window . marked = S e( se . a , "marked" ) , window . md5 = ae . a , window . moment = ce . a , window . OC = ue . a , C e( "oc_appswebroots" , ue . a . appswebroots , "use OC.appswebroots instead" ) , C e( "oc_config" , ue . a . config , "use OC.config instead" ) , C e( "oc_current_user" , ue . a . getCurrentUser ( ) . uid , "use OC.getCurrentUser().uid instead" ) , C e( "oc_debug" , ue . a . debug , "use OC.debug instead" ) , C e( "oc_isadmin" , ue . a . isUserAdmin ( ) , "use OC.isUserAdmin() instead" ) , C e( "oc_webroot" , ue . a . webroot , "use OC.getRootPath() instead" ) , C e( "OCDialogs" , ue . a . dialogs , "use OC.dialogs instead" ) , window . OCP = Le , window . OCA = De . a , window . escapeHTML = S e( Te , "escapeHTML" ) , window . formatDate = S e( function ( e ) { return console . warn ( "formatDate is deprecated, use OC.Util.formatDate instead" ) , ue . a . Util . formatDate ( e ) }
var Se = function ( ) { void 0 === window . TESTING && console . warn . apply ( console , arguments ) } , Ce = function ( e , t ) { var n = e , i = function ( ) { return Se ( "The " . concat ( t , " library is deprecated! It will be removed in nextcloud 19." ) ) , n . apply ( this , arguments ) } ; return Object . assign ( i , n ) , i } , E e= function ( e , t , n ) { void 0 !== window [ e ] && delete window [ e ] , Object . defineProperty ( window , e , { get : function ( ) { return Se( n ? "" . concat ( e , " is deprecated: " ) . concat ( n ) : "" . concat ( e , " is deprecated" ) ) , t } } ) } ; window . _ = l . a , window . $ = u . a , window . autosize = h . a , window . Backbone = f . a , window . Clipboard = g . a , window . ClipboardJS = g . a , window . cssVars = G , window . dav = X . a , window . DOMPurify = $ . a , window . Handlebars = te . a , window . jstimezonedetect = ie . a , window . jstz = ie . a , window . jQuery = u . a , window . marked = C e( se . a , "marked" ) , window . md5 = ae . a , window . moment = ce . a , window . OC = ue . a , E e( "oc_appswebroots" , ue . a . appswebroots , "use OC.appswebroots instead" ) , E e( "oc_config" , ue . a . config , "use OC.config instead" ) , E e( "oc_current_user" , ue . a . getCurrentUser ( ) . uid , "use OC.getCurrentUser().uid instead" ) , E e( "oc_debug" , ue . a . debug , "use OC.debug instead" ) , E e( "oc_isadmin" , ue . a . isUserAdmin ( ) , "use OC.isUserAdmin() instead" ) , E e( "oc_webroot" , ue . a . webroot , "use OC.getRootPath() instead" ) , E e( "OCDialogs" , ue . a . dialogs , "use OC.dialogs instead" ) , window . OCP = Le , window . OCA = De . a , window . escapeHTML = C e( Te , "escapeHTML" ) , window . formatDate = C e( function ( e ) { return console . warn ( "formatDate is deprecated, use OC.Util.formatDate instead" ) , ue . a . Util . formatDate ( e ) }
/ *
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -846,7 +846,7 @@ var Se=function(e,t){var n=e,i=function(){return console.warn("The ".concat(t,"
*
*
* You should have received a copy of the GNU Affero General Public License
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /,"formatDate"),window.getURLParameter= S e(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 = S e ( Y 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 = S 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 " ) , u 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 " ) , u . a . f n . s e l e c t 2 = S e ( u . a . f n . s e l e c t 2 , " s e l e c t 2 " ) , w i n d o w . t = l . a . b i n d ( u e . a . L 1 0 N . t r a n s l a t e , u e . a . L 1 0 N ) , w i n d o w . n = l . a . b i n d ( u e . a . L 1 0 N . t r a n s l a t e P l u r a l , u e . a . L 1 0 N ) ,
* /,"formatDate"),window.getURLParameter= C e(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 = C e ( Y 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 = C 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 " ) , u 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 " ) , u . a . f n . s e l e c t 2 = C e ( u . a . f n . s e l e c t 2 , " s e l e c t 2 " ) , w i n d o w . t = l . a . b i n d ( u e . a . L 1 0 N . t r a n s l a t e , u e . a . L 1 0 N ) , w i n d o w . n = l . a . b i n d ( u e . a . L 1 0 N . t r a n s l a t e P l u r a l , u e . a . L 1 0 N ) ,
/ *
/ *
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -888,7 +888,7 @@ u.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
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
* /
var E e= i ( 491 ) ; u . 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" ) , u . a . ajax ( ue . 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 = E 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 = E e; s . find ( "ul" ) . append ( i ( { hyperlink : "#" , title : n } ) ) } ) ) } ) , u ( ) ( document ) . click ( function ( e ) { var t = s . has ( e . target ) . length > 0 , n = r . has ( e . target ) . length > 0 ; r . each ( function ( ) { u ( ) ( this ) . is ( e . target ) && ( n = ! 0 ) } ) , t || n || ( s . addClass ( "hidden" ) , s . hide ( ) ) } ) } } ,
var H e= i ( 491 ) ; u . 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" ) , u . a . ajax ( ue . 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 = H 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 = H e; s . find ( "ul" ) . append ( i ( { hyperlink : "#" , title : n } ) ) } ) ) } ) , u ( ) ( document ) . click ( function ( e ) { var t = s . has ( e . target ) . length > 0 , n = r . has ( e . target ) . length > 0 ; r . each ( function ( ) { u ( ) ( this ) . is ( e . target ) && ( n = ! 0 ) } ) , t || n || ( s . addClass ( "hidden" ) , s . hide ( ) ) } ) } } ,
/ *
/ *
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -951,7 +951,7 @@ u.a.fn.filterAttr=function(e,t){return this.filter(function(){return u()(this).a
* You should have received a copy of the GNU Affero General Public License
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
* /
u . 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 = u ( ) ( '<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 , u ( ) ( document ) . on ( "keydown keyup" , function ( t ) { if ( t . target === e . $dialog . get ( 0 ) || 0 !== e . $dialog . find ( u ( ) ( 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 ( u ( ) ( t . target ) ) . length ) { var n = e . $buttonrow . find ( "button.primary" ) ; n && ! n . prop ( "disabled" ) && n . trigger ( "click" ) } else e . $buttonrow && u ( ) ( 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 = u ( ) ( '<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 = u ( ) ( '<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" ) , u . a . each ( t , function ( e , t ) { var i = u ( ) ( "<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" ) , u ( ) ( this ) . addClass ( "primary" ) } ) , this . _setSizes ( ) ; break ; case "style" : void 0 !== t . buttons && this . $buttonrow . addClass ( t . buttons ) ; break ; case "closeButton" : if ( t ) { var s = u ( ) ( '<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 } u . a . Widget . prototype . _setOption . apply ( this , arguments ) } , _setOptions : function ( e ) { u . 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 = u ( ) ( "<div>" ) . addClass ( "oc-dialog-dim" ) . appendTo ( u ( ) ( "#content" ) ) , this . overlay . on ( "click keydown keyup" , function ( t ) { if ( t . target !== e . $dialog . get ( 0 ) && 0 === e . $dialog . find ( u ( ) ( 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 H e= { init : function ( e , t , n ) { this . vars = e , this . options = u . 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 u ( ) ( 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 : Te } } ; function Pe( e ) { return ( P 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 ) }
u . 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 = u ( ) ( '<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 , u ( ) ( document ) . on ( "keydown keyup" , function ( t ) { if ( t . target === e . $dialog . get ( 0 ) || 0 !== e . $dialog . find ( u ( ) ( 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 ( u ( ) ( t . target ) ) . length ) { var n = e . $buttonrow . find ( "button.primary" ) ; n && ! n . prop ( "disabled" ) && n . trigger ( "click" ) } else e . $buttonrow && u ( ) ( 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 = u ( ) ( '<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 = u ( ) ( '<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" ) , u . a . each ( t , function ( e , t ) { var i = u ( ) ( "<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" ) , u ( ) ( this ) . addClass ( "primary" ) } ) , this . _setSizes ( ) ; break ; case "style" : void 0 !== t . buttons && this . $buttonrow . addClass ( t . buttons ) ; break ; case "closeButton" : if ( t ) { var s = u ( ) ( '<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 } u . a . Widget . prototype . _setOption . apply ( this , arguments ) } , _setOptions : function ( e ) { u . 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 = u ( ) ( "<div>" ) . addClass ( "oc-dialog-dim" ) . appendTo ( u ( ) ( "#content" ) ) , this . overlay . on ( "click keydown keyup" , function ( t ) { if ( t . target !== e . $dialog . get ( 0 ) && 0 === e . $dialog . find ( u ( ) ( 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 P e= { init : function ( e , t , n ) { this . vars = e , this . options = u . 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 u ( ) ( 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 : Te } } ; function Oe( e ) { return ( O 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 >
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -971,7 +971,7 @@ u.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
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* / u . 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 ( H 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 ) , c = p a r s e I n t ( n . b + s [ 2 ] * o ) ; r . p u s h ( n e w t ( a , l , c ) ) } 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 ) ] } , u . 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 ( ) ) } , u . 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 " ) } ,
* / u . 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 ( P 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 ) , c = p a r s e I n t ( n . b + s [ 2 ] * o ) ; r . p u s h ( n e w t ( a , l , c ) ) } 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 ) ] } , u . 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 ( ) ) } , u . 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 >
* @ copyright 2019 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -1013,7 +1013,7 @@ u.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
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
* /
u . 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 = u ( ) ( this ) , r = u ( ) ( e . data ( "typetoggle" ) ) , s = function ( e ) { var t = u ( ) ( e ) , n = u ( ) ( "<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 ) } ) } } ) , u . a . fn . tipsy = function ( e ) { if ( console . warn ( "Deprecation warning: tipsy is deprecated. Use tooltip instead." ) , "object" === P 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 ) , u . a . fn . tooltip . call ( this , "destroy" ) , u . a . fn . tooltip . call ( this , t ) } else this . tooltip ( e ) , u . a . fn . tooltip . call ( this , e ) ; return this } , u . a . ui . autocomplete . prototype . _resizeMenu = function ( ) { this . menu . element . outerWidth ( this . element . outerWidth ( ) ) } ; i ( 492 ) , i ( 499 ) ; var O e= i ( 50 ) ;
u . 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 = u ( ) ( this ) , r = u ( ) ( e . data ( "typetoggle" ) ) , s = function ( e ) { var t = u ( ) ( e ) , n = u ( ) ( "<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 ) } ) } } ) , u . a . fn . tipsy = function ( e ) { if ( console . warn ( "Deprecation warning: tipsy is deprecated. Use tooltip instead." ) , "object" === O 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 ) , u . a . fn . tooltip . call ( this , "destroy" ) , u . a . fn . tooltip . call ( this , t ) } else this . tooltip ( e ) , u . a . fn . tooltip . call ( this , e ) ; return this } , u . a . ui . autocomplete . prototype . _resizeMenu = function ( ) { this . menu . element . outerWidth ( this . element . outerWidth ( ) ) } ; i ( 492 ) , i ( 499 ) ; var I e= i ( 50 ) ;
/ *
/ *
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
* @ copyright 2018 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
*
@ -1034,5 +1034,5 @@ u.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
* 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/>.
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
* /
* /
u ( ) ( document ) . ready ( function ( ) { Object ( O e. b ) ( ) } ) } ] ) ;
u ( ) ( document ) . ready ( function ( ) { Object ( I e. b ) ( ) } ) } ] ) ;
//# sourceMappingURL=main.js.map
//# sourceMappingURL=main.js.map