2021-11-18 23:59:59 +01:00
! function ( ) { "use strict" ; function e ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function t ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ] ; r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function n ( e , n , r ) { return n && t ( e . prototype , n ) , r && t ( e , r ) , e } function r ( e ) { return r = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } , r ( e ) } function o ( e , t ) { return o = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } , o ( e , t ) } function a ( e , t ) { if ( t && ( "object" == typeof t || "function" == typeof t ) ) return t ; if ( void 0 !== t ) throw new TypeError ( "Derived constructors may only return object or undefined" ) ; return function ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; return e } ( e ) } function i ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1 ; if ( Reflect . construct . sham ) return ! 1 ; if ( "function" == typeof Proxy ) return ! 0 ; try { return Boolean . prototype . valueOf . call ( Reflect . construct ( Boolean , [ ] , ( function ( ) { } ) ) ) , ! 0 } catch ( e ) { return ! 1 } } ( ) ; return function ( ) { var n , o = r ( e ) ; if ( t ) { var i = r ( this ) . constructor ; n = Reflect . construct ( o , arguments , i ) } else n = o . apply ( this , arguments ) ; return a ( this , n ) } } var s = "POST" , l = "json" , u = "x-www-form-urlencoded" , c = "/api/v1/status" , d = "/api/v1/settings/publish" , f = "/api/v1/mailer" , h = "/api/v1/login" , p = "writeSettings" , g = "publishSite" , m = "createNewPage" , v = "editPage" , y = "deletePage" , b = "reIndexPages" , w = "getSiteSettings" , E = "getMemberInfo" , I = "apiUseAuthorized" , k = function ( ) { function t ( ) { var n = this , r = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : null ; e ( this , t ) , this . percentComplete = 0 , this . baseURL = null , this . status = ! 1 , r && ( this . baseURL = r ) , this . _request ( this . baseURL ? this . baseURL + c : c ) . then ( ( function ( e ) { e . type === I && ( n . token = e . token ) } ) ) } return n ( t , [ { key : "login" , value : function ( e ) { var t = this ; return new Promise ( ( function ( n , r ) { t . baseURL ? e . remote = ! 0 : e . remote = ! 1 , t . key ? e . key = t . key : e . key = null , t . _request ( t . baseURL ? t . baseURL + h : h , "getAuthStatus" , s , l , e ) . then ( ( function ( e ) { n ( e ) } ) ) . catch ( ( function ( e ) { r ( e ) } ) ) } ) ) } } , { key : "sync" , value : function ( e , t ) { var n = this ; return new Promise ( ( function ( r , o ) { var a = "" ; switch ( e ) { case "syncSite" : a = "/api/v1/settings/sync" ; break ; case "syncNav" : a = "/api/v1/settings/nav-sync" } n . _request ( n . baseURL ? n . baseURL + a : a , p , s , l , t ) . then ( ( function ( e ) { r ( e ) } ) ) . catch ( ( function ( e ) { o ( e ) } ) ) } ) ) } } , { key : "publish" , value : function ( e ) { var t = this ; return new Promise ( ( function ( n , r ) { t . _request ( t . baseURL ? t . baseURL + d : d , g , s , l , e ) . then ( ( function ( e ) { n ( e ) } ) ) . catch ( ( function ( e ) { r ( e ) } ) ) } ) ) } } , { key : "pageActions" , value : function ( e , t ) { var n , r , o , a = this ; switch ( e ) { case m : n = "/api/v1/page/create" , r = m , o = u ; break ; case v : n = "/api/v1/page/write" , r = v , o = u ; break ; case y : n = "/api/v1/page/delete" , r = y , o = l } return this . baseURL ? t . remote = ! 0 : t . remote = ! 1 , new Promise ( ( function ( e , i ) { a . _request ( a . baseURL ? a . baseURL + n : n , r , s , o , t ) . then ( ( function ( t ) { e ( t ) } ) ) . catch ( ( function ( e ) { i ( e ) } ) ) } ) ) } } , { key : "sendMail" , value : function ( e ) { var t = this ; return new Promise ( ( function ( n , r ) { t . _request ( t . baseURL ? t . baseURL + f : f , "sendMail" , s , l , e ) . then ( ( function ( e ) { n ( e ) } ) ) . catch ( ( function ( e ) { r ( e ) } ) ) } ) ) } } , { key : "getInfo" , value : function ( e ) { var t , n , r = this ; return "site" == e ? ( t = "/api/v1/settings/site" , n = w ) : ( t = "/api/v1/settings/member" , n = E ) , new Promise ( ( function ( e , o ) { r . _request ( r . baseURL ? r . baseURL + t : t , n ) . then ( ( function ( t ) { e ( t ) } ) ) . catch ( ( function ( e ) { o ( e ) } ) ) } ) ) } } , { key : "_request" , value : function ( e , t ) { var n = arguments . length > 2 && void 0 !== arguments [ 2 ] ? arguments [ 2 ] : "GET" , r = arguments . length > 3 && void 0 !== arguments [ 3 ] ? arguments [ 3 ] : l , o = arguments . length > 4 && void 0 !== arguments [ 4 ] ? arguments [ 4 ] : null , a = this ; return new Promise ( ( function ( i , c ) { var d = new XMLHttpRequest ; if ( d . upload . onprogress = a . handleLoadProgress , d . open ( n , e , ! 0 ) , d . onload = function ( ) { if ( 200 == d . status ) { var e = JSON . parse ( d . response ) ; i ( e ) } else { var t = JSON . parse ( d . response ) ; c ( t ) } } , "PUT" == n || n == s ) switch ( t !== p && t !== v && t !== m && t !== y && t !== g && t !== b || d . setRequestHeader ( "fipamo-access-token" , a . token ) , r ) { case l : d . setRequestHeader ( "Content-type" , "application/" + r ) , d . send ( JSON . stringify ( o ) ) ; break ; case u : d . send ( o ) } else
var o = n [ t ] , a = o . animatable , i = o . tweens , s = i . length - 1 , u = i [ s ] ; s && ( u = he ( i , ( function ( t ) { return e < t . end } ) ) [ 0 ] || u ) ; for ( var c = ee ( e - u . start - u . delay , 0 , u . duration ) / u . duration , d = isNaN ( c ) ? 1 : u . easing ( c ) , f = u . to . strings , h = u . round , p = [ ] , g = u . to . numbers . length , m = void 0 , v = 0 ; v < g ; v ++ ) { var y = void 0 , b = u . to . numbers [ v ] , w = u . from . numbers [ v ] || 0 ; y = u . isPath ? Ne ( u . value , d * b , u . isPathTargetInsideSVG ) : w + d * ( b - w ) , h && ( u . isColor && v > 2 || ( y = Math . round ( y * h ) / h ) ) , p . push ( y ) } var E = f . length ; if ( E ) { m = f [ 0 ] ; for ( var I = 0 ; I < E ; I ++ ) { f [ I ] ; var k = f [ I + 1 ] , S = p [ I ] ; isNaN ( S ) || ( m += k ? S + k : S + " " ) } } else m = p [ 0 ] ; Ye [ o . type ] ( a . target , o . property , m , a . transforms ) , o . currentValue = m , t ++ } } function p ( e ) { l [ e ] && ! l . passThrough && l [ e ] ( l ) } function g ( e ) { var d = l . duration , g = l . delay , m = d - l . endDelay , v = c ( e ) ; l . progress = ee ( v / d * 100 , 0 , 100 ) , l . reversePlayback = v < l . currentTime , t && function ( e ) { if ( l . reversePlayback ) for ( var n = a ; n -- ; ) f ( e , t [ n ] ) ; else for ( var r = 0 ; r < a ; r ++ ) f ( e , t [ r ] ) } ( v ) , ! l . began && l . currentTime > 0 && ( l . began = ! 0 , p ( "begin" ) ) , ! l . loopBegan && l . currentTime > 0 && ( l . loopBegan = ! 0 , p ( "loopBegin" ) ) , v <= g && 0 !== l . currentTime && h ( 0 ) , ( v >= m && l . currentTime !== d || ! d ) && h ( d ) , v > g && v < m ? ( l . changeBegan || ( l . changeBegan = ! 0 , l . changeCompleted = ! 1 , p ( "changeBegin" ) ) , p ( "change" ) , h ( v ) ) : l . changeBegan && ( l . changeCompleted = ! 0 , l . changeBegan = ! 1 , p ( "changeComplete" ) ) , l . currentTime = ee ( v , 0 , d ) , l . began && p ( "update" ) , e >= d && ( r = 0 , l . remaining && ! 0 !== l . remaining && l . remaining -- , l . remaining ? ( n = o , p ( "loopComplete" ) , l . loopBegan = ! 1 , "alternate" === l . direction && u ( ) ) : ( l . paused = ! 0 , l . completed || ( l . completed = ! 0 , p ( "loopComplete" ) , p ( "complete" ) , ! l . passThrough && "Promise" in window && ( i ( ) , s ( l ) ) ) ) ) } return s ( l ) , l . reset = function ( ) { var e = l . direction ; l . passThrough = ! 1 , l . currentTime = 0 , l . progress = 0 , l . paused = ! 0 , l . began = ! 1 , l . loopBegan = ! 1 , l . changeBegan = ! 1 , l . completed = ! 1 , l . changeCompleted = ! 1 , l . reversePlayback = ! 1 , l . reversed = "reverse" === e , l . remaining = l . loop , t = l . children ; for ( var n = a = t . length ; n -- ; ) l . children [ n ] . reset ( ) ; ( l . reversed && ! 0 !== l . loop || "alternate" === e && 1 === l . loop ) && l . remaining ++ , h ( l . reversed ? l . duration : 0 ) } , l . _onDocumentVisibility = d , l . set = function ( e , t ) { return je ( e , t ) , l } , l . tick = function ( e ) { o = e , n || ( n = o ) , g ( ( o + ( r - n ) ) * $e . speed ) } , l . seek = function ( e ) { g ( c ( e ) ) } , l . pause = function ( ) { l . paused = ! 0 , d ( ) } , l . play = function ( ) { l . paused && ( l . completed && l . reset ( ) , l . paused = ! 1 , Qe . push ( l ) , d ( ) , Ve ( ) ) } , l . reverse = function ( ) { u ( ) , l . completed = ! l . reversed , d ( ) } , l . restart = function ( ) { l . reset ( ) , l . play ( ) } , l . remove = function ( e ) { Ke ( Ue ( e ) , l ) } , l . reset ( ) , l . autoplay && l . play ( ) , l } function Ze ( e , t ) { for ( var n = t . length ; n -- ; ) me ( e , t [ n ] . animatable . target ) && t . splice ( n , 1 ) } function Ke ( e , t ) { var n = t . animations , r = t . children ; Ze ( e , n ) ; for ( var o = r . length ; o -- ; ) { var a = r [ o ] , i = a . animations ; Ze ( e , i ) , i . length || a . children . length || r . splice ( o , 1 ) } n . length || r . length || t . pause ( ) } $e . version = "3.2.1" , $e . speed = 1 , $e . suspendWhenDocumentHidden = ! 0 , $e . running = Qe , $e . remove = function ( e ) { for ( var t = Ue ( e ) , n = Qe . length ; n -- ; ) { Ke ( t , Qe [ n ] ) } } , $e . get = Be , $e . set = je , $e . convertPx = Se , $e . path = function ( e , t ) { var n = re . str ( e ) ? fe ( e ) [ 0 ] : e , r = t || 100 ; return function ( e ) { return { property : e , el : n , svg : Oe ( n ) , totalLength : Me ( n ) * ( r / 100 ) } } } , $e . setDashoffset = function ( e ) { var t = Me ( e ) ; return e . setAttribute ( "stroke-dasharray" , t ) , t } , $e . stagger = function ( e , t ) { void 0 === t && ( t = { } ) ; var n = t . direction || "normal" , r = t . easing ? de ( t . easing ) : null , o = t . grid , a = t . axis , i = t . from || 0 , s = "first" === i , l = "center" === i , u = "last" === i , c = re . arr ( e ) , d = c ? parseFloat ( e [ 0 ] ) : parseFloat ( e ) , f = c ? parseFloat ( e [ 1 ] ) : 0 , h = Ee ( c ? e [ 1 ] : e ) || 0 , p = t . start || 0 + ( c ? d : 0 ) , g = [ ] , m = 0 ; return function ( e , t , v ) { if ( s && ( i = 0 ) , l && ( i = ( v - 1 ) / 2 ) , u && ( i = v - 1 ) , ! g . length ) { for ( var y = 0 ; y < v ; y ++ ) { if ( o ) { var b = l ? ( o [ 0 ] - 1 ) / 2 : i % o [ 0 ] , w = l ? ( o [ 1 ] - 1 ) / 2 : Math . floor ( i / o [ 0 ] ) , E = b - y % o [ 0 ] , I = w - Math . floor ( y / o [ 0 ] ) , k = Math . sqrt ( E * E + I * I ) ; "x" === a && ( k = - E ) , "y" === a && ( k = - I ) , g . push ( k ) } else g . push ( Math . abs ( i - y ) ) ; m = Math . max . apply ( Math , g ) } r && ( g = g . map ( ( function ( e ) { return r ( e / m ) * m } ) ) ) , "reverse" === n && ( g = g . map ( ( function ( e ) { return a ? e < 0 ? - 1 * e : - e : Math . abs ( m - e ) } ) ) ) } return p + ( c ? ( f - d ) / m : d ) * ( Math . round ( 100 * g [ t ] ) / 100 ) + h } } , $e . timeline = function ( e ) { void 0 === e && ( e = { } ) ; var t = $e ( e ) ; return t . duration = 0 , t . add = function ( n , r ) { var o = Qe . indexOf ( t ) , a = t . children ; function i ( e ) { e . passThrough = ! 0 } o > - 1 && Qe . splice ( o , 1 ) ; for ( var s = 0 ; s < a . length ; s ++ ) i ( a [ s ] ) ; var l = be ( n , ye ( J , e ) ) ; l . targets = l . targ
2021-09-12 23:40:27 +02:00
/ * * !
* Sortable 1.13 . 0
* @ author RubaXa < trash @ rubaxa . org >
* @ author owenm < owen23355 @ gmail . com >
* @ license MIT
* /
2021-11-18 23:59:59 +01:00
function mt ( e ) { return mt = "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 } , mt ( e ) } function vt ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } function yt ( ) { return yt = Object . assign || function ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = arguments [ t ] ; for ( var r in n ) Object . prototype . hasOwnProperty . call ( n , r ) && ( e [ r ] = n [ r ] ) } return e } , yt . apply ( this , arguments ) } function bt ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { } , r = Object . keys ( n ) ; "function" == typeof Object . getOwnPropertySymbols && ( r = r . concat ( Object . getOwnPropertySymbols ( n ) . filter ( ( function ( e ) { return Object . getOwnPropertyDescriptor ( n , e ) . enumerable } ) ) ) ) , r . forEach ( ( function ( t ) { vt ( e , t , n [ t ] ) } ) ) } return e } function wt ( e , t ) { if ( null == e ) return { } ; var n , r , o = function ( e , t ) { if ( null == e ) return { } ; var n , r , o = { } , a = Object . keys ( e ) ; for ( r = 0 ; r < a . length ; r ++ ) n = a [ r ] , t . indexOf ( n ) >= 0 || ( o [ n ] = e [ n ] ) ; return o } ( e , t ) ; if ( Object . getOwnPropertySymbols ) { var a = Object . getOwnPropertySymbols ( e ) ; for ( r = 0 ; r < a . length ; r ++ ) n = a [ r ] , t . indexOf ( n ) >= 0 || Object . prototype . propertyIsEnumerable . call ( e , n ) && ( o [ n ] = e [ n ] ) } return o } function Et ( e ) { if ( "undefined" != typeof window && window . navigator ) return ! ! navigator . userAgent . match ( e ) } var It = Et ( /(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i ) , kt = Et ( /Edge/i ) , St = Et ( /firefox/i ) , Tt = Et ( /safari/i ) && ! Et ( /chrome/i ) && ! Et ( /android/i ) , Dt = Et ( /iP(ad|od|hone)/i ) , Pt = Et ( /chrome/i ) && Et ( /android/i ) , xt = { capture : ! 1 , passive : ! 1 } ; function Bt ( e , t , n ) { e . addEventListener ( t , n , ! It && xt ) } function _t ( e , t , n ) { e . removeEventListener ( t , n , ! It && xt ) } function At ( e , t ) { if ( t ) { if ( ">" === t [ 0 ] && ( t = t . substring ( 1 ) ) , e ) try { if ( e . matches ) return e . matches ( t ) ; if ( e . msMatchesSelector ) return e . msMatchesSelector ( t ) ; if ( e . webkitMatchesSelector ) return e . webkitMatchesSelector ( t ) } catch ( e ) { return ! 1 } return ! 1 } } function Lt ( e ) { return e . host && e !== document && e . host . nodeType ? e . host : e . parentNode } function Ct ( e , t , n , r ) { if ( e ) { n = n || document ; do { if ( null != t && ( ">" === t [ 0 ] ? e . parentNode === n && At ( e , t ) : At ( e , t ) ) || r && e === n ) return e ; if ( e === n ) break } while ( e = Lt ( e ) ) } return null } var Mt , Ot = /\s+/g ; function Nt ( e , t , n ) { if ( e && t ) if ( e . classList ) e . classList [ n ? "add" : "remove" ] ( t ) ; else { var r = ( " " + e . className + " " ) . replace ( Ot , " " ) . replace ( " " + t + " " , " " ) ; e . className = ( r + ( n ? " " + t : "" ) ) . replace ( Ot , " " ) } } function Rt ( e , t , n ) { var r = e && e . style ; if ( r ) { if ( void 0 === n ) return document . defaultView && document . defaultView . getComputedStyle ? n = document . defaultView . getComputedStyle ( e , "" ) : e . currentStyle && ( n = e . currentStyle ) , void 0 === t ? n : n [ t ] ; t in r || - 1 !== t . indexOf ( "webkit" ) || ( t = "-webkit-" + t ) , r [ t ] = n + ( "string" == typeof n ? "" : "px" ) } } function Ut ( e , t ) { var n = "" ; if ( "string" == typeof e ) n = e ; else do { var r = Rt ( e , "transform" ) ; r && "none" !== r && ( n = r + " " + n ) } while ( ! t && ( e = e . parentNode ) ) ; var o = window . DOMMatrix || window . WebKitCSSMatrix || window . CSSMatrix || window . MSCSSMatrix ; return o && new o ( n ) } function Ht ( e , t , n ) { if ( e ) { var r = e . getElementsByTagName ( t ) , o = 0 , a = r . length ; if ( n ) for ( ; o < a ; o ++ ) n ( r [ o ] , o ) ; return r } return [ ] } function Ft ( ) { var e = document . scrollingElement ; return e || document . documentElement } function Xt ( e , t , n , r , o ) { if ( e . getBoundingClientRect || e === window ) { var a , i , s , l , u , c , d ; if ( e !== window && e . parentNode && e !== Ft ( ) ? ( i = ( a = e . getBoundingClientRect ( ) ) . top , s = a . left , l = a . bottom , u = a . right , c = a . height , d = a . width ) : ( i = 0 , s = 0 , l = window . innerHeight , u = window . innerWidth , c = window . innerHeight , d = window . innerWidth ) , ( t || n ) && e !== window && ( o = o || e . parentNode , ! It ) ) do { if ( o && o . getBoundingClientRect && ( "none" !== Rt ( o , "transform" ) || n && "static" !== Rt ( o , "position" ) ) ) { var f = o . getBoundingClientRect ( ) ; i -= f . top + parseInt ( Rt ( o , "border-top-width" ) ) , s -= f . left + parseInt ( Rt ( o , "border-left-width" ) ) , l = i + a . height , u = s + a . width ; break } } while ( o = o . parentNode ) ; if ( r && e !== window ) { var h = Ut ( o || e ) , p = h && h . a , g = h && h . d ; h && ( l = ( i /= g ) + ( c /= g ) , u = ( s /= p ) + ( d /= p ) ) } return { top : i , left : s , bottom : l , right : u , width : d , height : c } } } function qt ( e , t , n ) { for ( var r = Gt ( e , ! 0 ) , o = Xt ( e ) [ t ] ; r ; ) { var a = Xt ( r ) [ n ] ; if ( ! ( "top" === n || "left" === n ? o >= a : o <= a ) ) return r ; if ( r === Ft ( ) ) break ; r = Gt ( r , ! 1 ) } return ! 1 } function Yt ( e , t , n ) { for ( var r = 0
; var x = E && ( Math . abs ( y - a ) <= s && D + b < k ) - ( Math . abs ( v - a ) <= s && ! ! D ) , B = I && ( Math . abs ( m - i ) <= s && P + w < S ) - ( Math . abs ( g - i ) <= s && ! ! P ) ; if ( ! ur [ d ] ) for ( var _ = 0 ; _ <= d ; _ ++ ) ur [ _ ] || ( ur [ _ ] = { } ) ; ur [ d ] . vx == x && ur [ d ] . vy == B && ur [ d ] . el === h || ( ur [ d ] . el = h , ur [ d ] . vx = x , ur [ d ] . vy = B , clearInterval ( ur [ d ] . pid ) , 0 == x && 0 == B || ( c = ! 0 , ur [ d ] . pid = setInterval ( function ( ) { r && 0 === this . layer && Jn . active . _onTouchMove ( sr ) ; var t = ur [ this . layer ] . vy ? ur [ this . layer ] . vy * l : 0 , n = ur [ this . layer ] . vx ? ur [ this . layer ] . vx * l : 0 ; "function" == typeof o && "continue" !== o . call ( Jn . dragged . parentNode [ Zt ] , n , t , e , sr , ur [ this . layer ] . el ) || Jt ( ur [ this . layer ] . el , n , t ) } . bind ( { layer : d } ) , 24 ) ) ) , d ++ } while ( t . bubbleScroll && f !== u && ( f = Gt ( f , ! 1 ) ) ) ; cr = c } } ) , 30 ) , pr = function ( e ) { var t = e . originalEvent , n = e . putSortable , r = e . dragEl , o = e . activeSortable , a = e . dispatchSortableEvent , i = e . hideGhostForTarget , s = e . unhideGhostForTarget ; if ( t ) { var l = n || o ; i ( ) ; var u = t . changedTouches && t . changedTouches . length ? t . changedTouches [ 0 ] : t , c = document . elementFromPoint ( u . clientX , u . clientY ) ; s ( ) , l && ! l . el . contains ( c ) && ( a ( "spill" ) , this . onSpill ( { dragEl : r , putSortable : n } ) ) } } ; function gr ( ) { } function mr ( ) { } gr . prototype = { startIndex : null , dragStart : function ( e ) { var t = e . oldDraggableIndex ; this . startIndex = t } , onSpill : function ( e ) { var t = e . dragEl , n = e . putSortable ; this . sortable . captureAnimationState ( ) , n && n . captureAnimationState ( ) ; var r = Yt ( this . sortable . el , this . startIndex , this . options ) ; r ? this . sortable . el . insertBefore ( t , r ) : this . sortable . el . appendChild ( t ) , this . sortable . animateAll ( ) , n && n . animateAll ( ) } , drop : pr } , yt ( gr , { pluginName : "revertOnSpill" } ) , mr . prototype = { onSpill : function ( e ) { var t = e . dragEl , n = e . putSortable || this . sortable ; n . captureAnimationState ( ) , t . parentNode && t . parentNode . removeChild ( t ) , n . animateAll ( ) } , drop : pr } , yt ( mr , { pluginName : "removeOnSpill" } ) , Jn . mount ( new function ( ) { function e ( ) { for ( var e in this . defaults = { scroll : ! 0 , scrollSensitivity : 30 , scrollSpeed : 10 , bubbleScroll : ! 0 } , this ) "_" === e . charAt ( 0 ) && "function" == typeof this [ e ] && ( this [ e ] = this [ e ] . bind ( this ) ) } return e . prototype = { dragStarted : function ( e ) { var t = e . originalEvent ; this . sortable . nativeDraggable ? Bt ( document , "dragover" , this . _handleAutoScroll ) : this . options . supportPointer ? Bt ( document , "pointermove" , this . _handleFallbackAutoScroll ) : t . touches ? Bt ( document , "touchmove" , this . _handleFallbackAutoScroll ) : Bt ( document , "mousemove" , this . _handleFallbackAutoScroll ) } , dragOverCompleted : function ( e ) { var t = e . originalEvent ; this . options . dragOverBubble || t . rootEl || this . _handleAutoScroll ( t ) } , drop : function ( ) { this . sortable . nativeDraggable ? _t ( document , "dragover" , this . _handleAutoScroll ) : ( _t ( document , "pointermove" , this . _handleFallbackAutoScroll ) , _t ( document , "touchmove" , this . _handleFallbackAutoScroll ) , _t ( document , "mousemove" , this . _handleFallbackAutoScroll ) ) , fr ( ) , dr ( ) , clearTimeout ( Mt ) , Mt = void 0 } , nulling : function ( ) { sr = or = rr = cr = lr = ar = ir = null , ur . length = 0 } , _handleFallbackAutoScroll : function ( e ) { this . _handleAutoScroll ( e , ! 0 ) } , _handleAutoScroll : function ( e , t ) { var n = this , r = ( e . touches ? e . touches [ 0 ] : e ) . clientX , o = ( e . touches ? e . touches [ 0 ] : e ) . clientY , a = document . elementFromPoint ( r , o ) ; if ( sr = e , t || kt || It || Tt ) { hr ( e , this . options , a , t ) ; var i = Gt ( a , ! 0 ) ; ! cr || lr && r === ar && o === ir || ( lr && fr ( ) , lr = setInterval ( ( function ( ) { var a = Gt ( document . elementFromPoint ( r , o ) , ! 0 ) ; a !== i && ( i = a , dr ( ) ) , hr ( e , n . options , a , t ) } ) , 10 ) , ar = r , ir = o ) } else { if ( ! this . options . bubbleScroll || Gt ( a , ! 0 ) === Ft ( ) ) return void dr ( ) ; hr ( e , this . options , Gt ( a , ! 1 ) , ! 1 ) } } } , yt ( e , { pluginName : "scroll" , initializeByDefault : ! 0 } ) } ) , Jn . mount ( mr , gr ) ; var vr = new it , yr = function ( ) { function t ( ) { e ( this , t ) , this . processing = ! 1 , this . admin = new k ( null ) , this . start ( ) } return n ( t , [ { key : "start" , value : function ( ) { var e = this , t = this ; Jn . create ( document . getElementById ( "nav-pages" ) , { onUpdate : function ( ) { ( new gt ) . syncMenu ( ) . then ( ( function ( e ) { vr . alert ( "Updating Menu" , null ) , t . admin . sync ( "syncNav" , e ) . then ( ( function ( e ) { e . type , vr . alert ( e . message , ! 0 ) } ) ) } ) ) } } ) ; for ( var n = document . querySelectorAll ( ".nav-btn" ) , r = 0 , o = n . length ; r < o ; r ++ ) n [ r ] . addEventListener ( "click" , ( function ( t ) { return e . handleNavButton ( t ) } ) , ! 1 ) } } , { key : "handleNavButton" , value : function ( e ) { if ( ! this . processing ) { var t = "" , n = this ; switch ( e . target . id ) { case "remove-item" : t = e . target . getAttribute ( "data-id" ) , ( new gt ) . removeItem ( t ) , ( new gt ) . syncMenu ( ) . then ( ( functio
2021-04-27 02:31:49 +02:00
//# sourceMappingURL=dash.min.js.map