2021-03-17 11:45:22 +03:00
! function ( e ) { function t ( t ) { for ( var n , r , s = t [ 0 ] , o = t [ 1 ] , i = 0 , u = [ ] ; i < s . length ; i ++ ) r = s [ i ] , Object . prototype . hasOwnProperty . call ( a , r ) && a [ r ] && u . push ( a [ r ] [ 0 ] ) , a [ r ] = 0 ; for ( n in o ) Object . prototype . hasOwnProperty . call ( o , n ) && ( e [ n ] = o [ n ] ) ; for ( l && l ( t ) ; u . length ; ) u . shift ( ) ( ) } var n = { } , a = { 1 : 0 } ; function r ( t ) { if ( n [ t ] ) return n [ t ] . exports ; var a = n [ t ] = { i : t , l : ! 1 , exports : { } } ; return e [ t ] . call ( a . exports , a , a . exports , r ) , a . l = ! 0 , a . exports } r . e = function ( e ) { var t = [ ] , n = a [ e ] ; if ( 0 !== n ) if ( n ) t . push ( n [ 2 ] ) ; else { var s = new Promise ( ( function ( t , r ) { n = a [ e ] = [ t , r ] } ) ) ; t . push ( n [ 2 ] = s ) ; var o , i = document . createElement ( "script" ) ; i . charset = "utf-8" , i . timeout = 120 , r . nc && i . setAttribute ( "nonce" , r . nc ) , i . src = function ( e ) { return r . p + "" + ( { 2 : "user-status-modal" , 3 : "vendors-user-status-modal" } [ e ] || e ) + ".js?v=" + { 2 : "4bc45b2e43f5bccb3c40" , 3 : "9b1994f8cdba5d948552" } [ e ] } ( e ) ; var l = new Error ; o = function ( t ) { i . onerror = i . onload = null , clearTimeout ( u ) ; var n = a [ e ] ; if ( 0 !== n ) { if ( n ) { var r = t && ( "load" === t . type ? "missing" : t . type ) , s = t && t . target && t . target . src ; l . message = "Loading chunk " + e + " failed.\n(" + r + ": " + s + ")" , l . name = "ChunkLoadError" , l . type = r , l . request = s , n [ 1 ] ( l ) } a [ e ] = void 0 } } ; var u = setTimeout ( ( function ( ) { o ( { type : "timeout" , target : i } ) } ) , 12e4 ) ; i . onerror = i . onload = o , document . head . appendChild ( i ) } return Promise . all ( t ) } , r . m = e , r . c = n , r . d = function ( e , t , n ) { r . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , r . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , r . t = function ( e , t ) { if ( 1 & t && ( e = r ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( r . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var a in e ) r . d ( n , a , function ( t ) { return e [ t ] } . bind ( null , a ) ) ; return n } , r . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return r . d ( t , "a" , t ) , t } , r . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , r . p = "/js/" , r . oe = function ( e ) { throw console . error ( e ) , e } ; var s = window . webpackJsonpUserStatus = window . webpackJsonpUserStatus || [ ] , o = s . push . bind ( s ) ; s . push = t , s = s . slice ( ) ; for ( var i = 0 ; i < s . length ; i ++ ) t ( s [ i ] ) ; var l = o ; r ( r . s = 458 ) } ( [ function ( e , t , n ) { ( function ( e ) { e . exports = function ( ) { "use strict" ; var t , a ; function r ( ) { return t . apply ( null , arguments ) } function s ( e ) { return e instanceof Array || "[object Array]" === Object . prototype . toString . call ( e ) } function o ( e ) { return null != e && "[object Object]" === Object . prototype . toString . call ( e ) } function i ( e ) { return void 0 === e } function l ( e ) { return "number" == typeof e || "[object Number]" === Object . prototype . toString . call ( e ) } function u ( e ) { return e instanceof Date || "[object Date]" === Object . prototype . toString . call ( e ) } function d ( e , t ) { var n , a = [ ] ; for ( n = 0 ; n < e . length ; ++ n ) a . push ( t ( e [ n ] , n ) ) ; return a } function c ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } function m ( e , t ) { for ( var n in t ) c ( t , n ) && ( e [ n ] = t [ n ] ) ; return c ( t , "toString" ) && ( e . toString = t . toString ) , c ( t , "valueOf" ) && ( e . valueOf = t . valueOf ) , e } function p ( e , t , n , a ) { return Yt ( e , t , n , a , ! 0 ) . utc ( ) } function _ ( e ) { return null == e . _pf && ( e . _pf = { empty : ! 1 , unusedTokens : [ ] , unusedInput : [ ] , overflow : - 2 , charsLeftOver : 0 , nullInput : ! 1 , invalidMonth : null , invalidFormat : ! 1 , userInvalidated : ! 1 , iso : ! 1 , parsedDateParts : [ ] , meridiem : null , rfc2822 : ! 1 , weekdayMismatch : ! 1 } ) , e . _pf } function f ( e ) { if ( null == e . _isValid ) { var t = _ ( e ) , n = a . call ( t . parsedDateParts , ( function ( e ) { return null != e } ) ) , r = ! isNaN ( e . _d . getTime ( ) ) && t . overflow < 0 && ! t . empty && ! t . invalidMonth && ! t . invalidWeekday && ! t . weekdayMismatch && ! t . nullInput && ! t . invalidFormat && ! t . userInvalidated && ( ! t . meridiem || t . meridiem && n ) ; if ( e . _strict && ( r = r && 0 === t . charsLeftOver && 0 === t . unusedTokens . length && void 0 === t . bigHour ) , null != Object . isFrozen && Object . isFrozen ( e ) ) return r ; e . _isValid = r } return e . _isValid } function h ( e ) { var t = p ( NaN ) ; return null != e ? m ( _ ( t ) , e ) : _ ( t ) . userInvalidated = ! 0 , t } a = Array . prototype . some ? Array . prototype . some : function ( e ) { for ( var t = Object ( this ) , n = t . length >>> 0 , a = 0 ; a < n ; a ++ ) if ( a in t && e . call ( this , t [ a ] , a , t ) ) return ! 0 ; return ! 1 } ; var y = r . momentProperties = [ ] ; function g ( e , t ) { var n , a , r ; if ( i ( t . _isAMomentObject ) || ( e . _isAMomentObject = t . _isAMomen
/ * !
* Vue . js v2 . 6.12
* ( c ) 2014 - 2020 Evan You
* Released under the MIT License .
* /
var a = Object . freeze ( { } ) ; function r ( e ) { return null == e } function s ( e ) { return null != e } function o ( e ) { return ! 0 === e } function i ( e ) { return "string" == typeof e || "number" == typeof e || "symbol" == typeof e || "boolean" == typeof e } function l ( e ) { return null !== e && "object" == typeof e } var u = Object . prototype . toString ; function d ( e ) { return "[object Object]" === u . call ( e ) } function c ( e ) { return "[object RegExp]" === u . call ( e ) } function m ( e ) { var t = parseFloat ( String ( e ) ) ; return t >= 0 && Math . floor ( t ) === t && isFinite ( e ) } function p ( e ) { return s ( e ) && "function" == typeof e . then && "function" == typeof e . catch } function _ ( e ) { return null == e ? "" : Array . isArray ( e ) || d ( e ) && e . toString === u ? JSON . stringify ( e , null , 2 ) : String ( e ) } function f ( e ) { var t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } function h ( e , t ) { for ( var n = Object . create ( null ) , a = e . split ( "," ) , r = 0 ; r < a . length ; r ++ ) n [ a [ r ] ] = ! 0 ; return t ? function ( e ) { return n [ e . toLowerCase ( ) ] } : function ( e ) { return n [ e ] } } h ( "slot,component" , ! 0 ) ; var y = h ( "key,ref,slot,slot-scope,is" ) ; function g ( e , t ) { if ( e . length ) { var n = e . indexOf ( t ) ; if ( n > - 1 ) return e . splice ( n , 1 ) } } var M = Object . prototype . hasOwnProperty ; function v ( e , t ) { return M . call ( e , t ) } function L ( e ) { var t = Object . create ( null ) ; return function ( n ) { return t [ n ] || ( t [ n ] = e ( n ) ) } } var T = /-(\w)/g , w = L ( ( function ( e ) { return e . replace ( T , ( function ( e , t ) { return t ? t . toUpperCase ( ) : "" } ) ) } ) ) , Y = L ( ( function ( e ) { return e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) } ) ) , k = /\B([A-Z])/g , x = L ( ( function ( e ) { return e . replace ( k , "-$1" ) . toLowerCase ( ) } ) ) ; var b = Function . prototype . bind ? function ( e , t ) { return e . bind ( t ) } : function ( e , t ) { function n ( n ) { var a = arguments . length ; return a ? a > 1 ? e . apply ( t , arguments ) : e . call ( t , n ) : e . call ( t ) } return n . _length = e . length , n } ; function D ( e , t ) { t = t || 0 ; for ( var n = e . length - t , a = new Array ( n ) ; n -- ; ) a [ n ] = e [ n + t ] ; return a } function S ( e , t ) { for ( var n in t ) e [ n ] = t [ n ] ; return e } function j ( e ) { for ( var t = { } , n = 0 ; n < e . length ; n ++ ) e [ n ] && S ( t , e [ n ] ) ; return t } function O ( e , t , n ) { } var F = function ( e , t , n ) { return ! 1 } , H = function ( e ) { return e } ; function E ( e , t ) { if ( e === t ) return ! 0 ; var n = l ( e ) , a = l ( t ) ; if ( ! n || ! a ) return ! n && ! a && String ( e ) === String ( t ) ; try { var r = Array . isArray ( e ) , s = Array . isArray ( t ) ; if ( r && s ) return e . length === t . length && e . every ( ( function ( e , n ) { return E ( e , t [ n ] ) } ) ) ; if ( e instanceof Date && t instanceof Date ) return e . getTime ( ) === t . getTime ( ) ; if ( r || s ) return ! 1 ; var o = Object . keys ( e ) , i = Object . keys ( t ) ; return o . length === i . length && o . every ( ( function ( n ) { return E ( e [ n ] , t [ n ] ) } ) ) } catch ( e ) { return ! 1 } } function A ( e , t ) { for ( var n = 0 ; n < e . length ; n ++ ) if ( E ( e [ n ] , t ) ) return n ; return - 1 } function P ( e ) { var t = ! 1 ; return function ( ) { t || ( t = ! 0 , e . apply ( this , arguments ) ) } } var C = [ "component" , "directive" , "filter" ] , N = [ "beforeCreate" , "created" , "beforeMount" , "mounted" , "beforeUpdate" , "updated" , "beforeDestroy" , "destroyed" , "activated" , "deactivated" , "errorCaptured" , "serverPrefetch" ] , I = { optionMergeStrategies : Object . create ( null ) , silent : ! 1 , productionTip : ! 1 , devtools : ! 1 , performance : ! 1 , errorHandler : null , warnHandler : null , ignoredElements : [ ] , keyCodes : Object . create ( null ) , isReservedTag : F , isReservedAttr : F , isUnknownElement : F , getTagNamespace : O , parsePlatformTagName : H , mustUseProp : F , async : ! 0 , _lifecycleHooks : N } , R = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/ ; function U ( e , t , n , a ) { Object . defineProperty ( e , t , { value : n , enumerable : ! ! a , writable : ! 0 , configurable : ! 0 } ) } var W = new RegExp ( "[^" + R . source + ".$_\\d]" ) ; var z , $ = "__proto__" in { } , J = "undefined" != typeof window , G = "undefined" != typeof WXEnvironment && ! ! WXEnvironment . platform , B = G && WXEnvironment . platform . toLowerCase ( ) , V = J && window . navigator . userAgent . toLowerCase ( ) , q = V && /msie|trident/ . test ( V ) , K = V && V . indexOf ( "msie 9.0" ) > 0 , Z = V && V . indexOf ( "edge/" ) > 0 , X = ( V && V . indexOf ( "android" ) , V && /iphone|ipad|ipod|ios/ . test ( V ) || "ios" === B ) , Q = ( V && /chrome\/\d+/ . test ( V ) , V && /phantomjs/ . test ( V ) , V && V . match ( /firefox\/(\d+)/ ) ) , ee = { } . watch , te = ! 1 ; if ( J ) try { var ne = { } ; Object . defineProperty ( ne , "passive" , { get : function ( ) { te = ! 0 } } ) , window . addEventListener ( "test-passive" , null , ne ) } catch ( e ) { } var ae = function ( ) { return void 0 === z && ( z = ! J && ! G && void 0 !== e && ( e . process && "server" === e . process . env . VUE _ENV ) ) , z } , re = J && window . _ _VUE _DEVTOOLS _GLOBAL _HOOK _ _ ; function se ( e ) { return "function" == t
/ * !
* vuex v3 . 6.2
* ( c ) 2021 Evan You
* @ license MIT
* /
function ( e ) { if ( Number ( e . version . split ( "." ) [ 0 ] ) >= 2 ) e . mixin ( { beforeCreate : n } ) ; else { var t = e . prototype . _init ; e . prototype . _init = function ( e ) { void 0 === e && ( e = { } ) , e . init = e . init ? [ n ] . concat ( e . init ) : n , t . call ( this , e ) } } function n ( ) { var e = this . $options ; e . store ? this . $store = "function" == typeof e . store ? e . store ( ) : e . store : e . parent && e . parent . $store && ( this . $store = e . parent . $store ) } } ( d = e ) } m . state . get = function ( ) { return this . _vm . _data . $$state } , m . state . set = function ( e ) { 0 } , c . prototype . commit = function ( e , t , n ) { var a = this , r = g ( e , t , n ) , s = r . type , o = r . payload , i = ( r . options , { type : s , payload : o } ) , l = this . _mutations [ s ] ; l && ( this . _withCommit ( ( function ( ) { l . forEach ( ( function ( e ) { e ( o ) } ) ) } ) ) , this . _subscribers . slice ( ) . forEach ( ( function ( e ) { return e ( i , a . state ) } ) ) ) } , c . prototype . dispatch = function ( e , t ) { var n = this , a = g ( e , t ) , r = a . type , s = a . payload , o = { type : r , payload : s } , i = this . _actions [ r ] ; if ( i ) { try { this . _actionSubscribers . slice ( ) . filter ( ( function ( e ) { return e . before } ) ) . forEach ( ( function ( e ) { return e . before ( o , n . state ) } ) ) } catch ( e ) { 0 } var l = i . length > 1 ? Promise . all ( i . map ( ( function ( e ) { return e ( s ) } ) ) ) : i [ 0 ] ( s ) ; return new Promise ( ( function ( e , t ) { l . then ( ( function ( t ) { try { n . _actionSubscribers . filter ( ( function ( e ) { return e . after } ) ) . forEach ( ( function ( e ) { return e . after ( o , n . state ) } ) ) } catch ( e ) { 0 } e ( t ) } ) , ( function ( e ) { try { n . _actionSubscribers . filter ( ( function ( e ) { return e . error } ) ) . forEach ( ( function ( t ) { return t . error ( o , n . state , e ) } ) ) } catch ( e ) { 0 } t ( e ) } ) ) } ) ) } } , c . prototype . subscribe = function ( e , t ) { return p ( e , this . _subscribers , t ) } , c . prototype . subscribeAction = function ( e , t ) { return p ( "function" == typeof e ? { before : e } : e , this . _actionSubscribers , t ) } , c . prototype . watch = function ( e , t , n ) { var a = this ; return this . _watcherVM . $watch ( ( function ( ) { return e ( a . state , a . getters ) } ) , t , n ) } , c . prototype . replaceState = function ( e ) { var t = this ; this . _withCommit ( ( function ( ) { t . _vm . _data . $$state = e } ) ) } , c . prototype . registerModule = function ( e , t , n ) { void 0 === n && ( n = { } ) , "string" == typeof e && ( e = [ e ] ) , this . _modules . register ( e , t ) , h ( this , this . state , e , this . _modules . get ( e ) , n . preserveState ) , f ( this , this . state ) } , c . prototype . unregisterModule = function ( e ) { var t = this ; "string" == typeof e && ( e = [ e ] ) , this . _modules . unregister ( e ) , this . _withCommit ( ( function ( ) { var n = y ( t . state , e . slice ( 0 , - 1 ) ) ; d . delete ( n , e [ e . length - 1 ] ) } ) ) , _ ( this ) } , c . prototype . hasModule = function ( e ) { return "string" == typeof e && ( e = [ e ] ) , this . _modules . isRegistered ( e ) } , c . prototype . hotUpdate = function ( e ) { this . _modules . update ( e ) , _ ( this , ! 0 ) } , c . prototype . _withCommit = function ( e ) { var t = this . _committing ; this . _committing = ! 0 , e ( ) , this . _committing = t } , Object . defineProperties ( c . prototype , m ) ; var v = k ( ( function ( e , t ) { var n = { } ; return Y ( t ) . forEach ( ( function ( t ) { var a = t . key , r = t . val ; n [ a ] = function ( ) { var t = this . $store . state , n = this . $store . getters ; if ( e ) { var a = x ( this . $store , "mapState" , e ) ; if ( ! a ) return ; t = a . context . state , n = a . context . getters } return "function" == typeof r ? r . call ( this , t , n ) : t [ r ] } , n [ a ] . vuex = ! 0 } ) ) , n } ) ) , L = k ( ( function ( e , t ) { var n = { } ; return Y ( t ) . forEach ( ( function ( t ) { var a = t . key , r = t . val ; n [ a ] = function ( ) { for ( var t = [ ] , n = arguments . length ; n -- ; ) t [ n ] = arguments [ n ] ; var a = this . $store . commit ; if ( e ) { var s = x ( this . $store , "mapMutations" , e ) ; if ( ! s ) return ; a = s . context . commit } return "function" == typeof r ? r . apply ( this , [ a ] . concat ( t ) ) : a . apply ( this . $store , [ r ] . concat ( t ) ) } } ) ) , n } ) ) , T = k ( ( function ( e , t ) { var n = { } ; return Y ( t ) . forEach ( ( function ( t ) { var a = t . key , r = t . val ; r = e + r , n [ a ] = function ( ) { if ( ! e || x ( this . $store , "mapGetters" , e ) ) return this . $store . getters [ r ] } , n [ a ] . vuex = ! 0 } ) ) , n } ) ) , w = k ( ( function ( e , t ) { var n = { } ; return Y ( t ) . forEach ( ( function ( t ) { var a = t . key , r = t . val ; n [ a ] = function ( ) { for ( var t = [ ] , n = arguments . length ; n -- ; ) t [ n ] = arguments [ n ] ; var a = this . $store . dispatch ; if ( e ) { var s = x ( this . $store , "mapActions" , e ) ; if ( ! s ) return ; a = s . context . dispatch } return "function" == typeof r ? r . apply ( this , [ a ] . concat ( t ) ) : a . apply ( this . $store , [ r ] . concat ( t ) ) } } ) ) , n } ) ) ; function Y ( e ) { return function ( e ) { return Array . isArray ( e ) || o ( e ) } ( e ) ? Array . isArray ( e ) ? e . map ( ( function ( e ) { return { key : e , val : e } } ) ) : Object . keys ( e ) . map ( ( function ( t ) { return { key : t , val : e [ t ] } } ) ) : [ ] } function k ( e ) { return function ( t , n ) { return "string" != typeof t ? ( n = t , t = "" ) : "/" !== t . charAt ( t . length - 1 ) && ( t += "/" ) , e ( t , n ) } } function x ( e , t , n ) { return e . _modulesNamespaceMap [ n ] } function b ( e , t , n ) { var a = n ?
/ * *
* @ copyright Copyright ( c ) 2020 John Molakvoæ < skjnldsv @ protonmail . com >
*
* @ author John Molakvoæ < skjnldsv @ protonmail . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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/>.
*
* / t . a = { c o m p u t e d : i ( i ( { } , O b j e c t ( a . b ) ( { s t a t u s T y p e : f u n c t i o n ( e ) { r e t u r n e . u s e r S t a t u s . s t a t u s } , s t a t u s I s U s e r D e f i n e d : f u n c t i o n ( e ) { r e t u r n e . u s e r S t a t u s . s t a t u s I s U s e r D e f i n e d } , c u s t o m I c o n : f u n c t i o n ( e ) { r e t u r n e . u s e r S t a t u s . i c o n } , c u s t o m M e s s a g e : f u n c t i o n ( e ) { r e t u r n e . u s e r S t a t u s . m e s s a g e } } ) ) , { } , { v i s i b l e M e s s a g e : f u n c t i o n ( ) { i f ( t h i s . c u s t o m I c o n & & t h i s . c u s t o m M e s s a g e ) r e t u r n " " . c o n c a t ( t h i s . c u s t o m I c o n , " " ) . c o n c a t ( t h i s . c u s t o m M e s s a g e ) ; i f ( t h i s . c u s t o m M e s s a g e ) r e t u r n t h i s . c u s t o m M e s s a g e ; i f ( t h i s . s t a t u s I s U s e r D e f i n e d ) s w i t c h ( t h i s . s t a t u s T y p e ) { c a s e " o n l i n e " : r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " O n l i n e " ) ; c a s e " a w a y " : r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " A w a y " ) ; c a s e " d n d " : r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " D o n o t d i s t u r b " ) ; c a s e " i n v i s i b l e " : r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " I n v i s i b l e " ) ; c a s e " o f f l i n e " : r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " O f f l i n e " ) } r e t u r n t h i s . $ t ( " u s e r _ s t a t u s " , " S e t s t a t u s " ) } , s t a t u s I c o n : f u n c t i o n ( ) { s w i t c h ( t h i s . s t a t u s T y p e ) { c a s e " o n l i n e " : r e t u r n " i c o n - u s e r - s t a t u s - o n l i n e " ; c a s e " a w a y " : r e t u r n " i c o n - u s e r - s t a t u s - a w a y " ; c a s e " d n d " : r e t u r n " i c o n - u s e r - s t a t u s - d n d " ; c a s e " i n v i s i b l e " : c a s e " o f f l i n e " : r e t u r n " i c o n - u s e r - s t a t u s - i n v i s i b l e " } r e t u r n " " } } ) , m e t h o d s : { c h a n g e S t a t u s : f u n c t i o n ( e ) { v a r t , n = t h i s ; r e t u r n ( t = r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n t ( ) { r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( t ) { f o r ( ; ; ) s w i t c h ( t . p r e v = t . n e x t ) { c a s e 0 : r e t u r n t . p r e v = 0 , t . n e x t = 3 , n . $ s t o r e . d i s p a t c h ( " s e t S t a t u s " , { s t a t u s T y p e : e } ) ; c a s e 3 : t . n e x t = 9 ; b r e a k ; c a s e 5 : t . p r e v = 5 , t . t 0 = t . c a t c h ( 0 ) , O b j e c t ( r . a ) ( n . $ t ( " u s e r _ s t a t u s " , " T h e r e w a s a n e r r o r s a v i n g t h e n e w s t a t u s " ) ) , c o n s o l e . d e b u g ( t . t 0 ) ; c a s e 9 : c a s e " e n d " : r e t u r n t . s t o p ( ) } } ) , t , n u l l , [ [ 0 , 5 ] ] ) } ) ) , f u n c t i o n ( ) { v a r e = t h i s , n = a r g u m e n t s ; r e t u r n n e w P r o m i s e ( ( f u n c t i o n ( a , r ) { v a r o = t . a p p l y ( e , n ) ; f u n c t i o n i ( e ) { s ( o , a , r , i , l , " n e x t " , e ) } f u n c t i o n l ( e ) { s ( o , a , r , i , l , " t h r o w " , e ) } i ( v o i d 0 ) } ) ) } ) ( ) } } } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; ( f u n c t i o n ( e , a ) { f u n c t i o n r ( e ) { r e t u r n ( r = " f u n c t i o n " = = t y p e o f S y m b o l & & " s y m b o l " = = t y p e o f S y m b o l . i t e r a t o r ? f u n c t i o n ( e ) { r e t u r n t y p e o f e } : f u n c t i o n ( e ) { r e t u r n e & & " f u n c t i o n " = = t y p e o f S y m b o l & & e . c o n s t r u c t o r = = = S y m b o l & & e ! = = S y m b o l . p r o t o t y p e ? " s y m b o l " : t y p e o f e } ) ( e ) } n . d ( t , " a " , ( f u n c t i o n ( ) { r e t u r n X r } ) ) , f u n c t i o n ( ) { v a r t = { T R A N S L A T I O N S : [ { l o c a l e : " a r " , j s o n : { c h a r s e t : " u t f - 8 " , h e a d e r s : { " L a s t - T r a n s l a t o r " : " S 1 S Y S T E M S | B P < i n f o @ s 1 . s a > , 2 0 2 0 " , " L a n g u a g e - T e a m " : " A r a b i c ( h t t p s : / / w w w . t r a n s i f e x . c o m / n e x t c l o u d / t e a m s / 6 4 2 3 6 / a r / ) " , " C o n t e n t - T y p e " : " t e x t / p l a i n ; c h a r s e t = U T F - 8 " , L a n g u a g e : " a r " , " P l u r a l - F o r m s " : " n p l u r a l s = 6 ; p l u r a l = n = = 0 ? 0 : n = = 1 ? 1 : n = = 2 ? 2 : n % 1 0 0 > = 3 & & n % 1 0 0 < = 1 0 ? 3 : n % 1 0 0 > = 1 1 & & n % 1 0 0 < = 9 9 ? 4 : 5 ; " } , t r a n s l a t i o n s : { " " : { " " : { m s g i d : " " , c o m m e n t s : { t r a n s l a t o r : " \ n T r a n s l a t o r s : \ n S 1 S Y S T E M S | B P < i n f o @ s 1 . s a > , 2 0 2 0 \ n " } , m s g s t r : [ " L a s t - T r a n s l a t o r : S 1 S Y S T E M S | B P < i n f o @ s 1 . s a > , 2 0 2 0 \ n L a n g u a g e - T e a m : A r a b i c ( h t t p s : / / w w w . t r a n s i f e x . c o m / n e x t c l o u d / t e a m s / 6 4 2 3 6 / a r / ) \ n C o n t e n t - T y p e : t e x t / p l a i n ; c h a r s e t = U T F - 8 \ n L a n g u a g e : a r \ n P l u r a l - F o r m s : n p l u r a l s = 6 ; p l u r a l = n = = 0 ? 0 : n = = 1 ? 1 : n = = 2 ? 2 : n % 1 0 0 > = 3 & & n % 1 0 0 < = 1 0 ? 3 : n % 1 0 0 > = 1 1 & & n % 1 0 0 < = 9 9 ? 4 : 5 ; \ n " ] } , U n d o : { m s g i d : " U n d o " , c o m m e n t s : { r e f e r e n c e : " l i b / t o a s t . t s : 1 9 1 " } , m s g s t r : [ " ت ر ا ج ع " ] } } } } } , { l o c a l e : " a s t " , j s o n : { c h a r s e t : " u t f - 8 " , h e a d e r s : { " L a s t - T r a n s l a t o r " : " e n o l p < e n o l p @ s o f t a s t u r . o r g > , 2 0 2 0 " , " L a n g u a g e - T e a m " : " A s t u r i a n ( h t t p s : / / w w w . t r a n s i f e x . c o m / n e x t c l o u d / t e a m s / 6 4 2 3 6 / a s t / ) " , " C o n t e n t - T y p e " : " t e x t / p l a i n ; c h a r s e t = U T F - 8 " , L a n g u a g e : " a s t " , " P l u r a l - F o r m s " : " n p l u r a l s = 2 ; p l u r a l = ( n ! = 1 ) ; " } , t r a n s l a t i o n s : { " " : { " " : { m s g i d : " " , c o m m e n t s : { t r a n s l a t o r : " \ n T r a n s l a t o r s : \ n e n o l p < e n o l p @ s o f t a s t u r . o r g > , 2 0 2 0 \ n " } , m s g s t r : [ " L a s t - T r a n s l a t o r : e n o l p < e n o l p @ s o f t a s t u r . o r g > , 2 0 2 0 \ n L a n g u a g e - T e a m : A s t u r i a n ( h t t p s : / / w w w . t r a n s i f e x . c o m / n e x t c l o u d / t e a m s / 6 4 2 3 6 / a s t / ) \ n C o n t e n t - T y p e : t e x t / p l a i n ; c h a r s e t = U T F - 8 \ n L a n g u a g e : a s t \ n P l u r a l - F o r m s : n p l u r a l s = 2 ; p l u r a l = ( n ! = 1 ) ; \ n " ] } , U n d o : { m s g i d : " U n d o " , c o m m e n t s : { r e f e r e n c e : " l i b / t o a s t . t s : 1 8 7 " } , m s g s t r : [ " D e s f a c e r " ] } } } } } , { l o c a l e : " b r " , j s o n : { c h a r s e t : " u t f - 8 " , h e a d e r s : { " L a s t - T r a n s l a t o r " : " K e r v o a s - L e N a b a t E w e n < e w e n k e r v o a s @ f r e e . f r > , 2 0 2 0 " , " L a n g u a g e - T e a m " : " B r e t o n ( h t t p s : / / w w w . t r a n s i f e x . c o m / n e x t c l o u d / t e a m s / 6 4 2 3 6 / b r / ) " , " C o n t e n t - T y p e " : " t e x t / p l a i n ; c h a r s e t = U T F - 8 " , L a n g u a g e : " b r " , " P l u r a l - F o r m s " : " n p l u r a l s = 5 ; p l u r a l = ( ( n % 1 0 = = 1 ) & & ( n % 1 0 0 ! = 1 1 ) & & ( n % 1 0 0 ! = 7 1 ) & & ( n % 1 0 0 ! = 9 1 ) ? 0 : ( n % 1 0 = = 2 ) & & ( n % 1 0 0 ! = 1 2 ) & & ( n % 1 0 0 ! = 7 2 ) & & ( n % 1 0 0 ! = 9 2 ) ? 1 : ( n % 1 0 = = 3 | | n % 1 0 = = 4 | | n % 1 0 = = 9 ) & & ( n
/ * !
* Toastify js 1.9 . 3
* https : //github.com/apvarun/toastify-js
* @ license MIT licensed
*
* Copyright ( C ) 2018 Varun A P
* /
! function ( t , n ) { e . exports ? e . exports = n ( ) : t . Toastify = n ( ) } ( s , ( function ( e ) { var t = function e ( t ) { return new e . lib . init ( t ) } ; function n ( e , t ) { return t . offset [ e ] ? isNaN ( t . offset [ e ] ) ? t . offset [ e ] : t . offset [ e ] + "px" : "0px" } function a ( e , t ) { return ! ( ! e || "string" != typeof t ) && ! ! ( e . className && e . className . trim ( ) . split ( /\s+/gi ) . indexOf ( t ) > - 1 ) } return t . lib = t . prototype = { toastify : "1.9.3" , constructor : t , init : function ( e ) { return e || ( e = { } ) , this . options = { } , this . toastElement = null , this . options . text = e . text || "Hi there!" , this . options . node = e . node , this . options . duration = 0 === e . duration ? 0 : e . duration || 3e3 , this . options . selector = e . selector , this . options . callback = e . callback || function ( ) { } , this . options . destination = e . destination , this . options . newWindow = e . newWindow || ! 1 , this . options . close = e . close || ! 1 , this . options . gravity = "bottom" === e . gravity ? "toastify-bottom" : "toastify-top" , this . options . positionLeft = e . positionLeft || ! 1 , this . options . position = e . position || "" , this . options . backgroundColor = e . backgroundColor , this . options . avatar = e . avatar || "" , this . options . className = e . className || "" , this . options . stopOnFocus = void 0 === e . stopOnFocus || e . stopOnFocus , this . options . onClick = e . onClick , this . options . offset = e . offset || { x : 0 , y : 0 } , this } , buildToast : function ( ) { if ( ! this . options ) throw "Toastify is not initialized" ; var e = document . createElement ( "div" ) ; if ( e . className = "toastify on " + this . options . className , this . options . position ? e . className += " toastify-" + this . options . position : ! 0 === this . options . positionLeft ? ( e . className += " toastify-left" , console . warn ( "Property `positionLeft` will be depreciated in further versions. Please use `position` instead." ) ) : e . className += " toastify-right" , e . className += " " + this . options . gravity , this . options . backgroundColor && ( e . style . background = this . options . backgroundColor ) , this . options . node && this . options . node . nodeType === Node . ELEMENT _NODE ) e . appendChild ( this . options . node ) ; else if ( e . innerHTML = this . options . text , "" !== this . options . avatar ) { var t = document . createElement ( "img" ) ; t . src = this . options . avatar , t . className = "toastify-avatar" , "left" == this . options . position || ! 0 === this . options . positionLeft ? e . appendChild ( t ) : e . insertAdjacentElement ( "afterbegin" , t ) } if ( ! 0 === this . options . close ) { var a = document . createElement ( "span" ) ; a . innerHTML = "✖" , a . className = "toast-close" , a . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , this . removeElement ( this . toastElement ) , window . clearTimeout ( this . toastElement . timeOutValue ) } . bind ( this ) ) ; var r = window . innerWidth > 0 ? window . innerWidth : screen . width ; ( "left" == this . options . position || ! 0 === this . options . positionLeft ) && r > 360 ? e . insertAdjacentElement ( "afterbegin" , a ) : e . appendChild ( a ) } if ( this . options . stopOnFocus && this . options . duration > 0 ) { var s = this ; e . addEventListener ( "mouseover" , ( function ( t ) { window . clearTimeout ( e . timeOutValue ) } ) ) , e . addEventListener ( "mouseleave" , ( function ( ) { e . timeOutValue = window . setTimeout ( ( function ( ) { s . removeElement ( e ) } ) , s . options . duration ) } ) ) } if ( void 0 !== this . options . destination && e . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , ! 0 === this . options . newWindow ? window . open ( this . options . destination , "_blank" ) : window . location = this . options . destination } . bind ( this ) ) , "function" == typeof this . options . onClick && void 0 === this . options . destination && e . addEventListener ( "click" , function ( e ) { e . stopPropagation ( ) , this . options . onClick ( ) } . bind ( this ) ) , "object" === za ( this . options . offset ) ) { var o = n ( "x" , this . options ) , i = n ( "y" , this . options ) , l = "left" == this . options . position ? o : "-" + o , u = "toastify-top" == this . options . gravity ? i : "-" + i ; e . style . transform = "translate(" + l + "," + u + ")" } return e } , showToast : function ( ) { var e ; if ( this . toastElement = this . buildToast ( ) , ! ( e = void 0 === this . options . selector ? document . body : document . getElementById ( this . options . selector ) ) ) throw "Root element is not defined" ; return e . insertBefore ( this . toastElement , e . firstChild ) , t . reposition ( ) , this . options . duration > 0 && ( this . toastElement . timeOutValue = window . setTimeout ( function ( ) { this . removeElement ( this . toastElement ) } . bind ( this ) , this . options . duration ) ) , this } , hideToast : function ( ) { this . toastElement . timeOutValue && clearTimeout ( this . toastElement . timeOutValue ) , this . removeElement ( this . toastElement ) } , removeElement : function ( e ) { e . className = e . className . replace ( "
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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 = function ( ) { return new Date } } , , , , , , function ( e , t ) { function n ( e , t , n ) { var a , r , s , o , i ; function l ( ) { var u = Date . now ( ) - o ; u < t && u >= 0 ? a = setTimeout ( l , t - u ) : ( a = null , n || ( i = e . apply ( s , r ) , s = r = null ) ) } null == t && ( t = 100 ) ; var u = function ( ) { s = this , r = arguments , o = Date . now ( ) ; var u = n && ! a ; return a || ( a = setTimeout ( l , t ) ) , u && ( i = e . apply ( s , r ) , s = r = null ) , i } ; return u . clear = function ( ) { a && ( clearTimeout ( a ) , a = null ) } , u . flush = function ( ) { a && ( i = e . apply ( s , r ) , s = r = null , clearTimeout ( a ) , a = null ) } , u } n . debounce = n , e . exports = n } , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function ( e , n , a ) { "use strict" ; a . r ( n ) ; var r = a ( 15 ) , s = a ( 16 ) , o = a ( 402 ) , i = a . n ( o ) , l = a ( 23 ) , u = a . n ( l ) , d = a ( 18 ) ; function c ( e , t , n , a , r , s , o ) { try { var i = e [ s ] ( o ) , l = i . value } catch ( e ) { return void n ( e ) } i . done ? t ( l ) : Promise . resolve ( l ) . then ( a , r ) }
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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 m = function ( ) { var e , t = ( e = regeneratorRuntime . mark ( ( function e ( t ) { var n ; return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return n = Object ( d . generateUrl ) ( "/apps/user_status/heartbeat" ) , e . next = 3 , u . a . put ( n , { status : t ? "away" : "online" } ) ; case 3 : case "end" : return e . stop ( ) } } ) , e ) } ) ) , function ( ) { var t = this , n = arguments ; return new Promise ( ( function ( a , r ) { var s = e . apply ( t , n ) ; function o ( e ) { c ( s , a , r , o , i , "next" , e ) } function i ( e ) { c ( s , a , r , o , i , "throw" , e ) } o ( void 0 ) } ) ) } ) ; return function ( e ) { return t . apply ( this , arguments ) } } ( ) ; function p ( e , t , n , a , r , s , o ) { try { var i = e [ s ] ( o ) , l = i . value } catch ( e ) { return void n ( e ) } i . done ? t ( l ) : Promise . resolve ( l ) . then ( a , r ) } var _ = { name : "UserStatus" , components : { SetStatusModal : function ( ) { return Promise . all ( [ a . e ( 3 ) , a . e ( 2 ) ] ) . then ( a . bind ( null , 480 ) ) } } , mixins : [ a ( 394 ) . a ] , props : { inline : { type : Boolean , default : ! 1 } } , data : function ( ) { return { isModalOpen : ! 1 , heartbeatInterval : null , setAwayTimeout : null , mouseMoveListener : null , isAway : ! 1 } } , computed : { displayName : function ( ) { return Object ( s . getCurrentUser ) ( ) . displayName } } , mounted : function ( ) { var e = this ; this . $store . dispatch ( "loadStatusFromInitialState" ) , OC . config . session _keepalive && ( this . heartbeatInterval = setInterval ( this . _backgroundHeartbeat . bind ( this ) , 3e5 ) , this . setAwayTimeout = function ( ) { e . isAway = ! 0 } , this . mouseMoveListener = i ( ) ( ( function ( ) { var t = e . isAway ; e . isAway = ! 1 , clearTimeout ( e . setAwayTimeout ) , setTimeout ( e . setAwayTimeout , 12e4 ) , t && e . _backgroundHeartbeat ( ) } ) , 2e3 , ! 0 ) , window . addEventListener ( "mousemove" , this . mouseMoveListener , { capture : ! 0 , passive : ! 0 } ) , this . _backgroundHeartbeat ( ) ) } , beforeDestroy : function ( ) { window . removeEventListener ( "mouseMove" , this . mouseMoveListener ) , clearInterval ( this . heartbeatInterval ) } , methods : { openModal : function ( ) { this . isModalOpen = ! 0 } , closeModal : function ( ) { this . isModalOpen = ! 1 } , _backgroundHeartbeat : function ( ) { var e , t = this ; return ( e = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . prev = 0 , e . next = 3 , m ( t . isAway ) ; case 3 : e . next = 9 ; break ; case 5 : return e . prev = 5 , e . t0 = e . catch ( 0 ) , console . debug ( "Failed sending heartbeat, got: " + e . t0 . response . status ) , e . abrupt ( "return" ) ; case 9 : return e . next = 11 , t . $store . dispatch ( "reFetchStatusFromServer" ) ; case 11 : case "end" : return e . stop ( ) } } ) , e , null , [ [ 0 , 5 ] ] ) } ) ) , function ( ) { var t = this , n = arguments ; return new Promise ( ( function ( a , r ) { var s = e . apply ( t , n ) ; function o ( e ) { p ( s , a , r , o , i , "next" , e ) } function i ( e ) { p ( s , a , r , o , i , "throw" , e ) } o ( void 0 ) } ) ) } ) ( ) } } } , f = a ( 89 ) , h = a . n ( f ) , y = a ( 338 ) , g = { insert : "head" , singleton : ! 1 } , M = ( h ( ) ( y . a , g ) , y . a . locals , a ( 92 ) ) , v = Object ( M . a ) ( _ , ( function ( ) { var e = this , t = e . $createElement , n = e . _self . _c || t ; return n ( "li" , [ n ( "div" , { staticClass : "user-status-menu-item" } , [ e . inline ? e . _e ( ) : n ( "span" , { staticClass : "user-status-menu-item__header" , attrs : { title : e . displayName } } , [ e . _v ( "\n\t\t\t" + e . _s ( e . displayName ) + "\n\t\t" ) ] ) , e . _v ( " " ) , n ( e . inline ? "button" : "a" , { tag : "toggle" , staticClass : "user-status-menu-item__toggle" , class : { "user-status-menu-item__toggle--inline" : e . inline } , attrs : { href : "#" } , on : { click : function ( t ) { return t . preventDefault ( ) , t . stopPropagation ( ) , e . openModal ( t ) } } } , [ n ( "span" , { staticClass : "user-status-menu-item__toggle-icon" , class : e . statusIcon } ) , e . _v ( "\n\t\t\t" + e . _s ( e . visibleMessage ) + "\n\t\t" ) ] ) ] , 1 ) , e . _v ( " " ) , e . isModalOpen ? n ( "SetStatusModal" , { on : { close : e . closeModal } } ) : e . _e ( ) ] , 1 ) } ) , [ ] , ! 1 , null , "30c75648" , null ) . exports , L = a ( 251 ) ; function T ( e , t , n , a , r , s , o ) { try { var i = e [ s ] ( o ) , l = i . value } catch ( e ) { return void n ( e ) } i . done ? t ( l ) : Promise . resolve ( l ) . then ( a , r ) }
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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 w = function ( ) { var e , t = ( e = regeneratorRuntime . mark ( ( function e ( ) { var t , n ; return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return t = Object ( d . generateOcsUrl ) ( "apps/user_status/api/v1" , 2 ) + "/predefined_statuses?format=json" , e . next = 3 , u . a . get ( t ) ; case 3 : return n = e . sent , e . abrupt ( "return" , n . data . ocs . data ) ; case 5 : case "end" : return e . stop ( ) } } ) , e ) } ) ) , function ( ) { var t = this , n = arguments ; return new Promise ( ( function ( a , r ) { var s = e . apply ( t , n ) ; function o ( e ) { T ( s , a , r , o , i , "next" , e ) } function i ( e ) { T ( s , a , r , o , i , "throw" , e ) } o ( void 0 ) } ) ) } ) ; return function ( ) { return t . apply ( this , arguments ) } } ( ) ; function Y ( e , t ) { var n ; if ( "undefined" == typeof Symbol || null == e [ Symbol . iterator ] ) { if ( Array . isArray ( e ) || ( n = function ( e , t ) { if ( ! e ) return ; if ( "string" == typeof e ) return k ( e , t ) ; var n = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 ) ; "Object" === n && e . constructor && ( n = e . constructor . name ) ; if ( "Map" === n || "Set" === n ) return Array . from ( e ) ; if ( "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return k ( e , t ) } ( e ) ) || t && e && "number" == typeof e . length ) { n && ( e = n ) ; var a = 0 , r = function ( ) { } ; return { s : r , n : function ( ) { return a >= e . length ? { done : ! 0 } : { done : ! 1 , value : e [ a ++ ] } } , e : function ( e ) { throw e } , f : r } } throw new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) } var s , o = ! 0 , i = ! 1 ; return { s : function ( ) { n = e [ Symbol . iterator ] ( ) } , n : function ( ) { var e = n . next ( ) ; return o = e . done , e } , e : function ( e ) { i = ! 0 , s = e } , f : function ( ) { try { o || null == n . return || n . return ( ) } finally { if ( i ) throw s } } } } function k ( e , t ) { ( null == t || t > e . length ) && ( t = e . length ) ; for ( var n = 0 , a = new Array ( t ) ; n < t ; n ++ ) a [ n ] = e [ n ] ; return a } function x ( e , t , n , a , r , s , o ) { try { var i = e [ s ] ( o ) , l = i . value } catch ( e ) { return void n ( e ) } i . done ? t ( l ) : Promise . resolve ( l ) . then ( a , r ) }
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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 b = { state : { predefinedStatuses : [ ] } , mutations : { addPredefinedStatus : function ( e , t ) { e . predefinedStatuses . push ( t ) } } , getters : { } , actions : { loadAllPredefinedStatuses : function ( e ) { return ( t = regeneratorRuntime . mark ( ( function t ( ) { var n , a , r , s , o , i ; return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : if ( n = e . state , a = e . commit , ! ( n . predefinedStatuses . length > 0 ) ) { t . next = 3 ; break } return t . abrupt ( "return" ) ; case 3 : return t . next = 5 , w ( ) ; case 5 : r = t . sent , s = Y ( r ) ; try { for ( s . s ( ) ; ! ( o = s . n ( ) ) . done ; ) i = o . value , a ( "addPredefinedStatus" , i ) } catch ( e ) { s . e ( e ) } finally { s . f ( ) } case 8 : case "end" : return t . stop ( ) } } ) , t ) } ) ) , function ( ) { var e = this , n = arguments ; return new Promise ( ( function ( a , r ) { var s = t . apply ( e , n ) ; function o ( e ) { x ( s , a , r , o , i , "next" , e ) } function i ( e ) { x ( s , a , r , o , i , "throw" , e ) } o ( void 0 ) } ) ) } ) ( ) ; var t } } } ; function D ( e , t , n , a , r , s , o ) { try { var i = e [ s ] ( o ) , l = i . value } catch ( e ) { return void n ( e ) } i . done ? t ( l ) : Promise . resolve ( l ) . then ( a , r ) } function S ( e ) { return function ( ) { var t = this , n = arguments ; return new Promise ( ( function ( a , r ) { var s = e . apply ( t , n ) ; function o ( e ) { D ( s , a , r , o , i , "next" , e ) } function i ( e ) { D ( s , a , r , o , i , "throw" , e ) } o ( void 0 ) } ) ) } }
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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/>.
*
* / v a r j = f u n c t i o n ( ) { v a r e = S ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n e ( ) { v a r t , n ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( e ) { f o r ( ; ; ) s w i t c h ( e . p r e v = e . n e x t ) { c a s e 0 : r e t u r n t = O b j e c t ( d . g e n e r a t e O c s U r l ) ( " a p p s / u s e r _ s t a t u s / a p i / v 1 " , 2 ) + " u s e r _ s t a t u s " , e . n e x t = 3 , u . a . g e t ( t ) ; c a s e 3 : r e t u r n n = e . s e n t , e . a b r u p t ( " r e t u r n " , n . d a t a . o c s . d a t a ) ; c a s e 5 : c a s e " e n d " : r e t u r n e . s t o p ( ) } } ) , e ) } ) ) ) ; r e t u r n f u n c t i o n ( ) { r e t u r n e . a p p l y ( t h i s , a r g u m e n t s ) } } ( ) , O = f u n c t i o n ( ) { v a r e = S ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n e ( t ) { v a r n ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( e ) { f o r ( ; ; ) s w i t c h ( e . p r e v = e . n e x t ) { c a s e 0 : r e t u r n n = O b j e c t ( d . g e n e r a t e O c s U r l ) ( " a p p s / u s e r _ s t a t u s / a p i / v 1 " , 2 ) + " u s e r _ s t a t u s / s t a t u s " , e . n e x t = 3 , u . a . p u t ( n , { s t a t u s T y p e : t } ) ; c a s e 3 : c a s e " e n d " : r e t u r n e . s t o p ( ) } } ) , e ) } ) ) ) ; r e t u r n f u n c t i o n ( t ) { r e t u r n e . a p p l y ( t h i s , a r g u m e n t s ) } } ( ) , F = f u n c t i o n ( ) { v a r e = S ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n e ( t ) { v a r n , a , r = a r g u m e n t s ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( e ) { f o r ( ; ; ) s w i t c h ( e . p r e v = e . n e x t ) { c a s e 0 : r e t u r n n = r . l e n g t h > 1 & & v o i d 0 ! = = r [ 1 ] ? r [ 1 ] : n u l l , a = O b j e c t ( d . g e n e r a t e O c s U r l ) ( " a p p s / u s e r _ s t a t u s / a p i / v 1 " , 2 ) + " u s e r _ s t a t u s / m e s s a g e / p r e d e f i n e d ? f o r m a t = j s o n " , e . n e x t = 4 , u . a . p u t ( a , { m e s s a g e I d : t , c l e a r A t : n } ) ; c a s e 4 : c a s e " e n d " : r e t u r n e . s t o p ( ) } } ) , e ) } ) ) ) ; r e t u r n f u n c t i o n ( t ) { r e t u r n e . a p p l y ( t h i s , a r g u m e n t s ) } } ( ) , H = f u n c t i o n ( ) { v a r e = S ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n e ( t ) { v a r n , a , r , s = a r g u m e n t s ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( e ) { f o r ( ; ; ) s w i t c h ( e . p r e v = e . n e x t ) { c a s e 0 : r e t u r n n = s . l e n g t h > 1 & & v o i d 0 ! = = s [ 1 ] ? s [ 1 ] : n u l l , a = s . l e n g t h > 2 & & v o i d 0 ! = = s [ 2 ] ? s [ 2 ] : n u l l , r = O b j e c t ( d . g e n e r a t e O c s U r l ) ( " a p p s / u s e r _ s t a t u s / a p i / v 1 " , 2 ) + " u s e r _ s t a t u s / m e s s a g e / c u s t o m ? f o r m a t = j s o n " , e . n e x t = 5 , u . a . p u t ( r , { m e s s a g e : t , s t a t u s I c o n : n , c l e a r A t : a } ) ; c a s e 5 : c a s e " e n d " : r e t u r n e . s t o p ( ) } } ) , e ) } ) ) ) ; r e t u r n f u n c t i o n ( t ) { r e t u r n e . a p p l y ( t h i s , a r g u m e n t s ) } } ( ) , E = f u n c t i o n ( ) { v a r e = S ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n e ( ) { v a r t ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( e ) { f o r ( ; ; ) s w i t c h ( e . p r e v = e . n e x t ) { c a s e 0 : r e t u r n t = O b j e c t ( d . g e n e r a t e O c s U r l ) ( " a p p s / u s e r _ s t a t u s / a p i / v 1 " , 2 ) + " u s e r _ s t a t u s / m e s s a g e ? f o r m a t = j s o n " , e . n e x t = 3 , u . a . d e l e t e ( t ) ; c a s e 3 : c a s e " e n d " : r e t u r n e . s t o p ( ) } } ) , e ) } ) ) ) ; r e t u r n f u n c t i o n ( ) { r e t u r n e . a p p l y ( t h i s , a r g u m e n t s ) } } ( ) , A = a ( 8 5 ) , P = a ( 3 9 6 ) , C = a ( 8 6 ) , N = a . n ( C ) , I = f u n c t i o n ( e ) { i f ( n u l l = = = e ) r e t u r n n u l l ; v a r t = O b j e c t ( P . a ) ( ) ; i f ( " p e r i o d " = = = e . t y p e ) r e t u r n t . s e t S e c o n d s ( t . g e t S e c o n d s ( ) + e . t i m e ) , M a t h . f l o o r ( t . g e t T i m e ( ) / 1 e 3 ) ; i f ( " e n d - o f " = = = e . t y p e ) s w i t c h ( e . t i m e ) { c a s e " d a y " : c a s e " w e e k " : r e t u r n N u m b e r ( N ( ) ( t ) . e n d O f ( e . t i m e ) . f o r m a t ( " X " ) ) } r e t u r n " _ t i m e " = = = e . t y p e ? e . t i m e : n u l l } , R = a ( 3 9 ) ; f u n c t i o n U ( e , t , n , a , r , s , o ) { t r y { v a r i = e [ s ] ( o ) , l = i . v a l u e } c a t c h ( e ) { r e t u r n v o i d n ( e ) } i . d o n e ? t ( l ) : P r o m i s e . r e s o l v e ( l ) . t h e n ( a , r ) } f u n c t i o n W ( e ) { r e t u r n f u n c t i o n ( ) { v a r t = t h i s , n = a r g u m e n t s ; r e t u r n n e w P r o m i s e ( ( f u n c t i o n ( a , r ) { v a r s = e . a p p l y ( t , n ) ; f u n c t i o n o ( e ) { U ( s , a , r , o , i , " n e x t " , e ) } f u n c t i o n i ( e ) { U ( s , a , r , o , i , " t h r o w " , e ) } o ( v o i d 0 ) } ) ) } }
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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/>.
*
* / v a r z = { s t a t e : { s t a t u s : n u l l , s t a t u s I s U s e r D e f i n e d : n u l l , m e s s a g e : n u l l , i c o n : n u l l , c l e a r A t : n u l l , m e s s a g e I s P r e d e f i n e d : n u l l , m e s s a g e I d : n u l l } , m u t a t i o n s : { s e t S t a t u s : f u n c t i o n ( e , t ) { v a r n = t . s t a t u s T y p e ; e . s t a t u s = n , e . s t a t u s I s U s e r D e f i n e d = ! 0 } , s e t P r e d e f i n e d M e s s a g e : f u n c t i o n ( e , t ) { v a r n = t . m e s s a g e I d , a = t . c l e a r A t , r = t . m e s s a g e , s = t . i c o n ; e . m e s s a g e I d = n , e . m e s s a g e I s P r e d e f i n e d = ! 0 , e . m e s s a g e = r , e . i c o n = s , e . c l e a r A t = a } , s e t C u s t o m M e s s a g e : f u n c t i o n ( e , t ) { v a r n = t . m e s s a g e , a = t . i c o n , r = t . c l e a r A t ; e . m e s s a g e I d = n u l l , e . m e s s a g e I s P r e d e f i n e d = ! 1 , e . m e s s a g e = n , e . i c o n = a , e . c l e a r A t = r } , c l e a r M e s s a g e : f u n c t i o n ( e ) { e . m e s s a g e I d = n u l l , e . m e s s a g e I s P r e d e f i n e d = ! 1 , e . m e s s a g e = n u l l , e . i c o n = n u l l , e . c l e a r A t = n u l l } , l o a d S t a t u s F r o m S e r v e r : f u n c t i o n ( e , t ) { v a r n = t . s t a t u s , a = t . s t a t u s I s U s e r D e f i n e d , r = t . m e s s a g e , s = t . i c o n , o = t . c l e a r A t , i = t . m e s s a g e I s P r e d e f i n e d , l = t . m e s s a g e I d ; e . s t a t u s = n , e . s t a t u s I s U s e r D e f i n e d = a , e . m e s s a g e = r , e . i c o n = s , e . c l e a r A t = o , e . m e s s a g e I s P r e d e f i n e d = i , e . m e s s a g e I d = l } } , g e t t e r s : { } , a c t i o n s : { s e t S t a t u s : f u n c t i o n ( e , t ) { r e t u r n W ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n n ( ) { v a r a , r , o , i ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( n ) { f o r ( ; ; ) s w i t c h ( n . p r e v = n . n e x t ) { c a s e 0 : r e t u r n r = e . c o m m i t , o = e . s t a t e , i = t . s t a t u s T y p e , n . n e x t = 4 , O ( i ) ; c a s e 4 : r ( " s e t S t a t u s " , { s t a t u s T y p e : i } ) , O b j e c t ( R . e m i t ) ( " u s e r _ s t a t u s : s t a t u s . u p d a t e d " , { s t a t u s : o . s t a t u s , m e s s a g e : o . m e s s a g e , i c o n : o . i c o n , c l e a r A t : o . c l e a r A t , u s e r I d : n u l l = = = ( a = O b j e c t ( s . g e t C u r r e n t U s e r ) ( ) ) | | v o i d 0 = = = a ? v o i d 0 : a . u i d } ) ; c a s e 6 : c a s e " e n d " : r e t u r n n . s t o p ( ) } } ) , n ) } ) ) ) ( ) } , s e t P r e d e f i n e d M e s s a g e : f u n c t i o n ( e , t ) { r e t u r n W ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n n ( ) { v a r a , r , o , i , l , u , d , c , m , p ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( n ) { f o r ( ; ; ) s w i t c h ( n . p r e v = n . n e x t ) { c a s e 0 : r e t u r n r = e . c o m m i t , o = e . r o o t S t a t e , i = e . s t a t e , l = t . m e s s a g e I d , u = t . c l e a r A t , d = I ( u ) , n . n e x t = 5 , F ( l , d ) ; c a s e 5 : c = o . p r e d e f i n e d S t a t u s e s . p r e d e f i n e d S t a t u s e s . f i n d ( ( f u n c t i o n ( e ) { r e t u r n e . i d = = = l } ) ) , m = c . m e s s a g e , p = c . i c o n , r ( " s e t P r e d e f i n e d M e s s a g e " , { m e s s a g e I d : l , c l e a r A t : d , m e s s a g e : m , i c o n : p } ) , O b j e c t ( R . e m i t ) ( " u s e r _ s t a t u s : s t a t u s . u p d a t e d " , { s t a t u s : i . s t a t u s , m e s s a g e : i . m e s s a g e , i c o n : i . i c o n , c l e a r A t : i . c l e a r A t , u s e r I d : n u l l = = = ( a = O b j e c t ( s . g e t C u r r e n t U s e r ) ( ) ) | | v o i d 0 = = = a ? v o i d 0 : a . u i d } ) ; c a s e 9 : c a s e " e n d " : r e t u r n n . s t o p ( ) } } ) , n ) } ) ) ) ( ) } , s e t C u s t o m M e s s a g e : f u n c t i o n ( e , t ) { r e t u r n W ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n n ( ) { v a r a , r , o , i , l , u , d ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( n ) { f o r ( ; ; ) s w i t c h ( n . p r e v = n . n e x t ) { c a s e 0 : r e t u r n r = e . c o m m i t , o = e . s t a t e , i = t . m e s s a g e , l = t . i c o n , u = t . c l e a r A t , d = I ( u ) , n . n e x t = 5 , H ( i , l , d ) ; c a s e 5 : r ( " s e t C u s t o m M e s s a g e " , { m e s s a g e : i , i c o n : l , c l e a r A t : d } ) , O b j e c t ( R . e m i t ) ( " u s e r _ s t a t u s : s t a t u s . u p d a t e d " , { s t a t u s : o . s t a t u s , m e s s a g e : o . m e s s a g e , i c o n : o . i c o n , c l e a r A t : o . c l e a r A t , u s e r I d : n u l l = = = ( a = O b j e c t ( s . g e t C u r r e n t U s e r ) ( ) ) | | v o i d 0 = = = a ? v o i d 0 : a . u i d } ) ; c a s e 7 : c a s e " e n d " : r e t u r n n . s t o p ( ) } } ) , n ) } ) ) ) ( ) } , c l e a r M e s s a g e : f u n c t i o n ( e ) { r e t u r n W ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n t ( ) { v a r n , a , r ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( t ) { f o r ( ; ; ) s w i t c h ( t . p r e v = t . n e x t ) { c a s e 0 : r e t u r n a = e . c o m m i t , r = e . s t a t e , t . n e x t = 3 , E ( ) ; c a s e 3 : a ( " c l e a r M e s s a g e " ) , O b j e c t ( R . e m i t ) ( " u s e r _ s t a t u s : s t a t u s . u p d a t e d " , { s t a t u s : r . s t a t u s , m e s s a g e : r . m e s s a g e , i c o n : r . i c o n , c l e a r A t : r . c l e a r A t , u s e r I d : n u l l = = = ( n = O b j e c t ( s . g e t C u r r e n t U s e r ) ( ) ) | | v o i d 0 = = = n ? v o i d 0 : n . u i d } ) ; c a s e 5 : c a s e " e n d " : r e t u r n t . s t o p ( ) } } ) , t ) } ) ) ) ( ) } , r e F e t c h S t a t u s F r o m S e r v e r : f u n c t i o n ( e ) { r e t u r n W ( r e g e n e r a t o r R u n t i m e . m a r k ( ( f u n c t i o n t ( ) { v a r n , a ; r e t u r n r e g e n e r a t o r R u n t i m e . w r a p ( ( f u n c t i o n ( t ) { f o r ( ; ; ) s w i t c h ( t . p r e v = t . n e x t ) { c a s e 0 : r e t u r n n = e . c o m m i t , t . n e x t = 3 , j ( ) ; c a s e 3 : a = t . s e n t , n ( " l o a d S t a t u s F r o m S e r v e r " , a ) ; c a s e 5 : c a s e " e n d " : r e t u r n t . s t o p ( ) } } ) , t ) } ) ) ) ( ) } , l o a d S t a t u s F r o m I n i t i a l S t a t e : f u n c t i o n ( e ) { ( 0 , e . c o m m i t ) ( " l o a d S t a t u s F r o m S e r v e r " , O b j e c t ( A . l o a d S t a t e ) ( " u s e r _ s t a t u s " , " s t a t u s " ) ) } } } ;
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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/>.
*
* /
r . default . use ( L . a ) ; var $ = new L . a . Store ( { modules : { predefinedStatuses : b , userStatus : z } , strict : ! 0 } ) ;
/ * *
* @ copyright Copyright ( c ) 2020 Georg Ehrke
*
* @ author Georg Ehrke < oc . list @ georgehrke . com >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* 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.nc=btoa(Object(s.getRequestToken)()),a.p=OC.linkTo("user_status","js/ "),r.default.prototype.t=t,r.default.prototype.$t=t;n.default=new r.default({el:'li[data-id=" user _status - menuitem "]',name:" UserStatusRoot ",render:function(e){return e(v)},store:$});document.addEventListener(" DOMContentLoaded ",(function(){OCA.Dashboard&&OCA.Dashboard.registerStatus(" status " , ( function ( e ) { return new ( r . default . extend ( v ) ) ( { propsData : { inline : ! 0 } , store : $ } ) . $mount ( e ) } ) ) } ) ) } ] ) ;
//# sourceMappingURL=user-status-menu.js.map?v=7b5a6230bf1156c077c4