@@ -1,5 +1,5 @@
"use strict"
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/app" , [ "exports" , "ember-resolver" , "ember-load-initializers" , "kredits-web/config/environment" ] , ( function ( e , t , n , r ) { function o ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ]
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/app" , [ "exports" , "ember-resolver" , "ember-load-initializers" , "kredits-web/config/environment" ] , ( function ( e , t , n , r ) { function o ( 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 i ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function u ( e , t ) { return ( u = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function a ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
if ( "function" == typeof Proxy ) return ! 0
@@ -10,15 +10,15 @@ n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments)
return s ( this , n ) } } function s ( 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 c ( e ) } function c ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function l ( e ) { return ( l = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function d ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var f = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
return e } function l ( e ) { return ( l = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function f ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var d = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && u ( e , t ) } ) ( p , Ember . Application )
var n , s , l , f = a ( p )
var n , s , l , d = a ( p )
function p ( ) { var e
i ( this , p )
for ( var n = arguments . length , o = new Array ( n ) , u = 0 ; u < n ; u ++ ) o [ u ] = arguments [ u ]
return d ( c ( e = f . call . apply ( f , [ this ] . concat ( o ) ) ) , "modulePrefix" , r . default . modulePrefix ) , d ( c ( e ) , "podModulePrefix" , r . default . podModulePrefix ) , d ( c ( e ) , "Resolver" , t . default ) , e } return n = p , s && o ( n . prototype , s ) , l && o ( n , l ) , Object . defineProperty ( n , "prototype" , { writable : ! 1 } ) , n } ( )
e . default = f , ( 0 , n . default ) ( f , r . default . modulePrefix ) } ) ) , define ( "kredits-web/component-managers/glimmer" , [ "exports" , "@glimmer/component/-private/ember-component-manager" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/components/add-contribution/component" , [ "exports" , "moment" ] , ( function ( e , t ) { function n ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var n = null == e ? null : "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
return f ( c ( e = d . call . apply ( d , [ this ] . concat ( o ) ) ) , "modulePrefix" , r . default . modulePrefix ) , f ( c ( e ) , "podModulePrefix" , r . default . podModulePrefix ) , f ( c ( e ) , "Resolver" , t . default ) , e } return n = p , s && o ( n . prototype , s ) , l && o ( n , l ) , Object . defineProperty ( n , "prototype" , { writable : ! 1 } ) , n } ( )
e . default = d , ( 0 , n . default ) ( d , r . default . modulePrefix ) } ) ) , define ( "kredits-web/component-managers/glimmer" , [ "exports" , "@glimmer/component/-private/ember-component-manager" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/components/add-contribution/component" , [ "exports" , "moment" ] , ( function ( e , t ) { function n ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var n = null == e ? null : "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( null == n ) return
var r , o , i = [ ] , u = ! 0 , a = ! 1
try { for ( n = n . call ( e ) ; ! ( u = ( r = n . next ( ) ) . done ) && ( i . push ( r . value ) , ! t || i . length !== t ) ; u = ! 0 ) ; } catch ( s ) { a = ! 0 , o = s } finally { try { u || null == n . return || n . return ( ) } finally { if ( a ) throw o } } return i } ( e , t ) || function ( e , t ) { if ( ! e ) return
@@ -43,7 +43,7 @@ this.set("inProgress",!0),this.save(r).then((function(){t.reset()})).catch((func
else window . alert ( "Only core team members can edit profiles. Please ask someone to set you up." ) } } } )
e . default = n } ) ) , define ( "kredits-web/components/add-contributor/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "sjEfCFXi" , block : '{"symbols":[],"statements":[[10,"form"],[15,"onsubmit",[30,[36,0],[[32,0],"submit"],null]],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-account"],[12],[2,"Rootstock account"],[13],[2,"\\n "],[8,"input",[[24,3,"account"],[24,1,"c-account"],[24,"placeholder","0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4"],[16,0,[30,[36,1],[[32,0,["isValidAccount"]],"valid",""],null]]],[["@type","@value"],["text",[32,0,["account"]]]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-kind"],[12],[2,"Kind"],[13],[2,"\\n "],[10,"select"],[14,"required",""],[15,"onchange",[30,[36,0],[[32,0],[30,[36,2],[[32,0,["kind"]]],null]],[["value"],["target.value"]]]],[14,1,"c-kind"],[12],[2,"\\n "],[10,"option"],[14,2,"person"],[15,"selected",[30,[36,3],[[32,0,["kind"]],"person"],null]],[12],[2,"Person"],[13],[2,"\\n "],[10,"option"],[14,2,"organization"],[15,"selected",[30,[36,3],[[32,0,["kind"]],"organization"],null]],[12],[2,"Organization"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-name"],[12],[2,"Name"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["name","text",[32,0,["name"]],"Zero Cool",[30,[36,1],[[32,0,["isValidName"]],"valid",""],null],"c-name"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-url"],[12],[2,"URL"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["url","text",[32,0,["url"]],"http://zerocool.bit",[30,[36,1],[[32,0,["isValidURL"]],"valid",""],null],"c-url"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-github-uid"],[12],[2,"GitHub UID"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["github_uid","text",[32,0,["github_uid"]],"2342",[30,[36,1],[[32,0,["isValidGithubUID"]],"valid",""],null],"c-github-uid"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-github-username"],[12],[2,"GitHub username"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["github_username","text",[32,0,["github_username"]],"zerocool",[30,[36,1],[[32,0,["isValidGithubUsername"]],"valid",""],null],"c-github-username"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-gitea-username"],[12],[2,"Gitea username"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["gitea_username","text",[32,0,["gitea_username"]],"zerocool",[30,[36,1],[[32,0,["isValidGiteaUsername"]],"valid",""],null],"c-gitea-username"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-wiki-username"],[12],[2,"Wiki username"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["wiki_username","text",[32,0,["wiki_username"]],"ZeroCool",[30,[36,1],[[32,0,["isValidWikiUsername"]],"valid",""],null],"c-wiki-username"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,"for","c-zoom-display-name"],[12],[2,"Zoom display name"],[13],[2,"\\n "],[1,[30,[36,4],null,[["name","type","value","placeholder","class","id"],["zoom_display_name","text",[32,0,["zoom_display_name"]],"Zero Cool",[30,[36,1],[[32,0,["isValidZoomDisplayName"]],"valid",""],null],"c-zoom-display-name"]]]],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[1,[30,[36,4],null,[["type","disabled","value"],["submit",[32,0,["inProgress"]],[30,[36,1],[[32,0,["inProgress"]],"Processing","Save"],null]]]]],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","if","mut","eq","input"]}' , meta : { moduleName : "kredits-web/components/add-contributor/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/add-expense-item/component" , [ "exports" , "@glimmer/component" , "moment" , "kredits-web/utils/is-valid-amount" ] , ( function ( e , t , n , r ) { var o , i , u , a , s , c , l , d , f , p , b , m , y , h , v , g , w
e . default = t } ) ) , define ( "kredits-web/components/add-expense-item/component" , [ "exports" , "@glimmer/component" , "moment" , "kredits-web/utils/is-valid-amount" ] , ( function ( e , t , n , r ) { var o , i , u , a , s , c , l , f , d , p , b , m , y , h , v , g , w
function k ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var n = null == e ? null : "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( null == n ) return
var r , o , i = [ ] , u = ! 0 , a = ! 1
@@ -54,7 +54,7 @@ var n=Object.prototype.toString.call(e).slice(8,-1)
if ( "Map" === n || "Set" === n ) return Array . from ( e )
if ( "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return O ( e , t ) } ( e , t ) || function ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) } ( ) } function O ( e , t ) { ( null == t || t > e . length ) && ( t = e . length )
for ( var n = 0 , r = new Array ( t ) ; n < t ; n ++ ) r [ n ] = e [ n ]
return r } function _ ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function x ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function j ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ]
return r } function _ ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function j ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function x ( 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 P ( e , t ) { return ( P = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function E ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
if ( "function" == typeof Proxy ) return ! 0
@@ -67,11 +67,11 @@ if(void 0!==t)throw new TypeError("Derived constructors may only return object o
return R ( e ) } function R ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function S ( e ) { return ( S = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function z ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } function M ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var B = ( o = Ember . _tracked , i = Ember . _tracked , u = Ember . _tracked , a = Ember . _tracked , s = Ember . _tracked , c = Ember . _tracked , l = Ember . _tracked , d = Ember . _action , f = Ember . _action , p = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
var B = ( o = Ember . _tracked , i = Ember . _tracked , u = Ember . _tracked , a = Ember . _tracked , s = Ember . _tracked , c = Ember . _tracked , l = Ember . _tracked , f = Ember . _action , d = Ember . _action , p = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && P ( e , t ) } ) ( a , e )
var t , o , i , u = E ( a )
function a ( ) { var e
x ( this , a )
j ( this , a )
for ( var t = arguments . length , r = new Array ( t ) , o = 0 ; o < t ; o ++ ) r [ o ] = arguments [ o ]
return _ ( R ( e = u . call . apply ( u , [ this ] . concat ( r ) ) ) , "amount" , b , R ( e ) ) , _ ( R ( e ) , "currency" , m , R ( e ) ) , _ ( R ( e ) , "date" , y , R ( e ) ) , _ ( R ( e ) , "title" , h , R ( e ) ) , _ ( R ( e ) , "description" , v , R ( e ) ) , _ ( R ( e ) , "url" , g , R ( e ) ) , _ ( R ( e ) , "tags" , w , R ( e ) ) , z ( R ( e ) , "defaultDate" , ( 0 , n . default ) ( ) . startOf ( "hour" ) . toDate ( ) ) , z ( R ( e ) , "currencies" , [ { code : "EUR" } , { code : "USD" } ] ) , e } return t = a , ( o = [ { key : "isValidAmount" , get : function ( ) { return ( 0 , r . default ) ( this . amount ) } } , { key : "amountInputClass" , get : function ( ) { return this . isValidTotal ? "valid" : "" } } , { key : "validateForm" , value : function ( ) { var e = document . querySelector ( "form#add-expense-item" ) , t = e . querySelectorAll ( "input" )
t . forEach ( ( function ( e ) { return e . classList . remove ( "invalid" ) } ) )
@@ -80,10 +80,10 @@ return this.isValidAmount||(document.querySelector("input[name=expense-amount]")
var t = this . date instanceof Array ? this . date [ 0 ] : this . date , r = k ( ( 0 , n . default ) ( t ) . utcOffset ( 0 , ! 0 ) . toISOString ( ) . split ( "T" ) , 1 ) [ 0 ]
if ( ! this . validateForm ( ) ) return ! 1
var o = { amount : parseFloat ( this . amount ) , currency : this . currency , date : r , title : this . title , description : Ember . isPresent ( this . description ) ? this . description : void 0 , url : Ember . isPresent ( this . url ) ? this . url : void 0 }
Ember . isPresent ( this . tags ) && ( o . tags = this . tags . split ( "," ) . map ( ( function ( e ) { return e . trim ( ) } ) ) . filter ( ( function ( e ) { return e . length > 0 } ) ) ) , this . args . addExpenseItem ( o ) } } ] ) && j ( t . prototype , o ) , i && j ( t , i ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , b = M ( p . prototype , "amount" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , m = M ( p . prototype , "currency" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "EUR" } } ) , y = M ( p . prototype , "date" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ( 0 , n . default ) ( ) . startOf ( "hour" ) . toDate ( ) } } ) , h = M ( p . prototype , "title" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , v = M ( p . prototype , "description" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , g = M ( p . prototype , "url" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , w = M ( p . prototype , "tags" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , M ( p . prototype , "updateCurrency" , [ d ] , Object . getOwnPropertyDescriptor ( p . prototype , "updateCurrency" ) , p . prototype ) , M ( p . prototype , "submit" , [ f ] , Object . getOwnPropertyDescriptor ( p . prototype , "submit" ) , p . prototype ) , p )
Ember . isPresent ( this . tags ) && ( o . tags = this . tags . split ( "," ) . map ( ( function ( e ) { return e . trim ( ) } ) ) . filter ( ( function ( e ) { return e . length > 0 } ) ) ) , this . args . addExpenseItem ( o ) } } ] ) && x ( t . prototype , o ) , i && x ( t , i ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , b = M ( p . prototype , "amount" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , m = M ( p . prototype , "currency" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "EUR" } } ) , y = M ( p . prototype , "date" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ( 0 , n . default ) ( ) . startOf ( "hour" ) . toDate ( ) } } ) , h = M ( p . prototype , "title" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , v = M ( p . prototype , "description" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , g = M ( p . prototype , "url" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , w = M ( p . prototype , "tags" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , M ( p . prototype , "updateCurrency" , [ f ] , Object . getOwnPropertyDescriptor ( p . prototype , "updateCurrency" ) , p . prototype ) , M ( p . prototype , "submit" , [ d ] , Object . getOwnPropertyDescriptor ( p . prototype , "submit" ) , p . prototype ) , p )
e . default = B } ) ) , define ( "kredits-web/components/add-expense-item/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "xrdEJbVd" , block : '{"symbols":["currency"],"statements":[[11,"form"],[24,1,"add-expense-item"],[24,"novalidate",""],[4,[38,1],["submit",[32,0,["submit"]]],null],[12],[2,"\\n "],[10,"fieldset"],[14,0,"horizontal"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Amount:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@placeholder","@value","@required","@pattern","@class"],["expense-amount","text","10",[32,0,["amount"]],true,"([0-9]*[.])?[0-9]+",[32,0,["amountInputClass"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Currency:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[11,"select"],[24,"required",""],[24,3,"expense-currency"],[4,[38,1],["change",[32,0,["updateCurrency"]]],null],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[14,"disabled",""],[14,"hidden",""],[12],[13],[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["currencies"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,1,["code"]]],[15,"selected",[30,[36,0],[[32,0,["currency"]],[32,1,["code"]]],null]],[12],[1,[32,1,["code"]]],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Date:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"ember-flatpickr",[],[["@date","@defaultDate","@maxDate","@enableTime","@onChange"],[[32,0,["date"]],[32,0,["defaultDate"]],[32,0,["defaultDate"]],false,[30,[36,5],[[30,[36,4],[[32,0,["date"]]],null]],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Title:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value","@required"],["expense-title","text",[32,0,["title"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Description (optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-description","text",[32,0,["description"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"URL (optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-url","url",[32,0,["url"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Tags (comma-separated, optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-tags","text",[32,0,["tags"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[8,"input",[],[["@type","@value","@class","@title"],["submit","Add","green","Add item to reimbursement"]],null],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["eq","on","-track-array","each","mut","fn"]}' , meta : { moduleName : "kredits-web/components/add-expense-item/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/add-reimbursement/component" , [ "exports" , "@glimmer/component" , "kredits-web/utils/is-valid-amount" , "kredits-web/utils/read-file-content" , "kredits-web/config/environment" ] , ( function ( e , t , n , r , o ) { var i , u , a , s , c , l , d , f , p , b , m , y , h , v , g , w , k , O , _ , x , j , P , E , C , R
e . default = t } ) ) , define ( "kredits-web/components/add-reimbursement/component" , [ "exports" , "@glimmer/component" , "kredits-web/utils/is-valid-amount" , "kredits-web/utils/read-file-content" , "kredits-web/config/environment" ] , ( function ( e , t , n , r , o ) { var i , u , a , s , c , l , f , d , p , b , m , y , h , v , g , w , k , O , _ , j , x , P , E , C , R
function S ( e , t ) { var n = "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( ! n ) { if ( Array . isArray ( e ) || ( n = function ( e , t ) { if ( ! e ) return
if ( "string" == typeof e ) return z ( e , t )
@@ -101,19 +101,19 @@ r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Obj
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 , r = N ( e )
if ( t ) { var o = N ( this ) . constructor
return function ( ) { var n , r = F ( e )
if ( t ) { var o = F ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return U ( this , n ) } } function U ( 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 F ( e ) } function F ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function N ( e ) { return ( N = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function L ( e , t , n , r , o ) { var i = { }
return N ( e ) } function N ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function F ( e ) { return ( F = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function L ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var H = ( i = Ember . inject . service , u = Ember . inject . service , a = Ember . inject . service , s = Ember . computed . alias ( "kredits.contributorsSorted" ) , c = Ember . _tracked , l = Ember . _tracked , d = Ember . _tracked , f = Ember . _tracked , p = Ember . _tracked , b = Ember . _action , m = Ember . _action , y = Ember . _action , h = Ember . _action , v = Ember . _action , g = Ember . _action , w = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
var H = ( i = Ember . inject . service , u = Ember . inject . service , a = Ember . inject . service , s = Ember . computed . alias ( "kredits.contributorsSorted" ) , c = Ember . _tracked , l = Ember . _tracked , f = Ember . _tracked , d = Ember . _tracked , p = Ember . _tracked , b = Ember . _action , m = Ember . _action , y = Ember . _action , h = Ember . _action , v = Ember . _action , g = Ember . _action , w = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && I ( e , t ) } ) ( l , e )
var t , i , u , a , s , c = D ( l )
function l ( ) { var e
return T ( this , l ) , B ( F ( e = c . apply ( this , arguments ) ) , "router" , k , F ( e ) ) , B ( F ( e ) , "kredits" , O , F ( e ) ) , B ( F ( e ) , "exchangeRates" , _ , F ( e ) ) , B ( F ( e ) , "contributors" , x , F ( e ) ) , B ( F ( e ) , "recipientId" , j , F ( e ) ) , B ( F ( e ) , "title" , P , F ( e ) ) , B ( F ( e ) , "total" , E , F ( e ) ) , B ( F ( e ) , "expenses" , C , F ( e ) ) , B ( F ( e ) , "expenseFormVisible" , R , F ( e ) ) , e . exchangeRates . fetchRates ( ) , e } return t = l , ( i = [ { key : "isValidTotal" , get : function ( ) { return ( 0 , n . default ) ( this . total ) } } , { key : "totalInputClass" , get : function ( ) { return this . isValidTotal ? "valid" : "" } } , { key : "totalEUR" , get : function ( ) { var e = this . expenses . filterBy ( "currency" , "EUR" )
return T ( this , l ) , B ( N ( e = c . apply ( this , arguments ) ) , "router" , k , N ( e ) ) , B ( N ( e ) , "kredits" , O , N ( e ) ) , B ( N ( e ) , "exchangeRates" , _ , N ( e ) ) , B ( N ( e ) , "contributors" , j , N ( e ) ) , B ( N ( e ) , "recipientId" , x , N ( e ) ) , B ( N ( e ) , "title" , P , N ( e ) ) , B ( N ( e ) , "total" , E , N ( e ) ) , B ( N ( e ) , "expenses" , C , N ( e ) ) , B ( N ( e ) , "expenseFormVisible" , R , N ( e ) ) , e . exchangeRates . fetchRates ( ) , e } return t = l , ( i = [ { key : "isValidTotal" , get : function ( ) { return ( 0 , n . default ) ( this . total ) } } , { key : "totalInputClass" , get : function ( ) { return this . isValidTotal ? "valid" : "" } } , { key : "totalEUR" , get : function ( ) { var e = this . expenses . filterBy ( "currency" , "EUR" )
return e . length > 0 ? e . mapBy ( "amount" ) . reduce ( ( function ( e , t ) { return e + t } ) ) : 0 } } , { key : "totalUSD" , get : function ( ) { var e = this . expenses . filterBy ( "currency" , "USD" )
return e . length > 0 ? e . mapBy ( "amount" ) . reduce ( ( function ( e , t ) { return e + t } ) ) : 0 } } , { key : "submitButtonEnabled" , get : function ( ) { return this . isValidTotal && this . expenses . length > 0 } } , { key : "submitButtonDisabled" , get : function ( ) { return ! this . submitButtonEnabled } } , { key : "scrollToExpenseItemForm" , value : function ( ) { document . getElementById ( "new-expense-item" ) . scrollIntoView ( ) } } , { key : "updateTotalAmountFromFiat" , value : function ( ) { var e = parseFloat ( this . total )
this . exchangeRates . btceur > 0 && this . totalEUR > 0 && ( e += this . totalEUR / this . exchangeRates . btceur ) , this . exchangeRates . btcusd > 0 && this . totalUSD > 0 && ( e += this . totalUSD / this . exchangeRates . btcusd ) , 0 === this . totalUSD && 0 === this . totalEUR && ( e = 0 ) , this . total = e . toFixed ( 8 ) } } , { key : "addExpensesFromFile" , value : ( a = regeneratorRuntime . mark ( ( function e ( t ) { var n , o , i , u , a
@@ -126,30 +126,30 @@ function i(e){M(o,n,r,i,u,"next",e)}function u(e){M(o,n,r,i,u,"throw",e)}i(void
if ( e . preventDefault ( ) , ! this . kredits . currentUser ) return window . alert ( "You need to connect your RSK account first." ) , ! 1
if ( ! this . kredits . currentUserIsCore ) return window . alert ( "Only core contributors can submit reimbursements." ) , ! 1
var n = this . contributors . findBy ( "id" , parseInt ( this . recipientId ) ) , r = { amount : parseInt ( 1e8 * parseFloat ( this . total ) ) , token : o . default . tokens . BTC , recipientId : parseInt ( this . recipientId ) , title : "Expenses covered by " . concat ( n . name ) , description : this . description , url : this . url , expenses : JSON . parse ( JSON . stringify ( this . expenses ) ) }
this . inProgress = ! 0 , this . kredits . addReimbursement ( r ) . then ( ( function ( ) { t . router . transitionTo ( "budget" ) } ) ) . catch ( ( function ( e ) { console . error ( "Could not add reimbursement:" , e ) , window . alert ( "Something went wrong. Please check the browser console." ) } ) ) . finally ( ( function ( ) { t . inProgress = ! 1 } ) ) } } ] ) && A ( t . prototype , i ) , u && A ( t , u ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , l } ( t . default ) , k = L ( w . prototype , "router" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , O = L ( w . prototype , "kredits" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , _ = L ( w . prototype , "exchangeRates" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , x = L ( w . prototype , "contributors" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , j = L ( w . prototype , "recipientId" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return null } } ) , P = L ( w . prototype , "title" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , E = L ( w . prototype , "total" , [ d ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , C = L ( w . prototype , "expenses" , [ f ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , R = L ( w . prototype , "expenseFormVisible" , [ p ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 0 } } ) , L ( w . prototype , "addExpensesFromFile" , [ b ] , Object . getOwnPropertyDescriptor ( w . prototype , "addExpensesFromFile" ) , w . prototype ) , L ( w . prototype , "updateContributor" , [ m ] , Object . getOwnPropertyDescriptor ( w . prototype , "updateContributor" ) , w . prototype ) , L ( w . prototype , "showExpenseForm" , [ y ] , Object . getOwnPropertyDescriptor ( w . prototype , "showExpenseForm" ) , w . prototype ) , L ( w . prototype , "addExpenseItem" , [ h ] , Object . getOwnPropertyDescriptor ( w . prototype , "addExpenseItem" ) , w . prototype ) , L ( w . prototype , "removeExpenseItem" , [ v ] , Object . getOwnPropertyDescriptor ( w . prototype , "removeExpenseItem" ) , w . prototype ) , L ( w . prototype , "submit" , [ g ] , Object . getOwnPropertyDescriptor ( w . prototype , "submit" ) , w . prototype ) , w )
this . inProgress = ! 0 , this . kredits . addReimbursement ( r ) . then ( ( function ( ) { t . router . transitionTo ( "budget" ) } ) ) . catch ( ( function ( e ) { console . error ( "Could not add reimbursement:" , e ) , window . alert ( "Something went wrong. Please check the browser console." ) } ) ) . finally ( ( function ( ) { t . inProgress = ! 1 } ) ) } } ] ) && A ( t . prototype , i ) , u && A ( t , u ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , l } ( t . default ) , k = L ( w . prototype , "router" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , O = L ( w . prototype , "kredits" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , _ = L ( w . prototype , "exchangeRates" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , j = L ( w . prototype , "contributors" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , x = L ( w . prototype , "recipientId" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return null } } ) , P = L ( w . prototype , "title" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , E = L ( w . prototype , "total" , [ f ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , C = L ( w . prototype , "expenses" , [ d ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , R = L ( w . prototype , "expenseFormVisible" , [ p ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 0 } } ) , L ( w . prototype , "addExpensesFromFile" , [ b ] , Object . getOwnPropertyDescriptor ( w . prototype , "addExpensesFromFile" ) , w . prototype ) , L ( w . prototype , "updateContributor" , [ m ] , Object . getOwnPropertyDescriptor ( w . prototype , "updateContributor" ) , w . prototype ) , L ( w . prototype , "showExpenseForm" , [ y ] , Object . getOwnPropertyDescriptor ( w . prototype , "showExpenseForm" ) , w . prototype ) , L ( w . prototype , "addExpenseItem" , [ h ] , Object . getOwnPropertyDescriptor ( w . prototype , "addExpenseItem" ) , w . prototype ) , L ( w . prototype , "removeExpenseItem" , [ v ] , Object . getOwnPropertyDescriptor ( w . prototype , "removeExpenseItem" ) , w . prototype ) , L ( w . prototype , "submit" , [ g ] , Object . getOwnPropertyDescriptor ( w . prototype , "submit" ) , w . prototype ) , w )
e . default = H } ) ) , define ( "kredits-web/components/add-reimbursement/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "GxxUddPT" , block : '{"symbols":["contributor"],"statements":[[11,"form"],[24,"novalidate",""],[4,[38,1],["submit",[32,0,["submit"]]],null],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Contributor:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[11,"select"],[24,"required",""],[4,[38,1],["change",[32,0,["updateContributor"]]],null],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[14,"disabled",""],[14,"hidden",""],[12],[13],[2,"\\n"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,["contributors"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,1,["id"]]],[15,"selected",[30,[36,2],[[32,0,["contributorId"]],[32,1,["id"]]],null]],[12],[1,[32,1,["name"]]],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"fieldset"],[14,0,"horizontal thirds total-amounts"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Total amount (BTC):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@placeholder","@value","@required","@pattern","@class"],["text","0.0015",[32,0,["total"]],true,"([0-9]*[.])?[0-9]+",[32,0,["totalInputClass"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"EUR total"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@name","@value","@disabled"],["text","total-eur",[32,0,["totalEUR"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"USD total"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@name","@value","@disabled"],["text","total-usd",[32,0,["totalUSD"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"h3"],[12],[2,"Expense items"],[13],[2,"\\n"],[6,[37,5],[[32,0,["expenses"]]],null,[["default","else"],[{"statements":[[2," "],[8,"expense-list",[],[["@expenses","@removeExpenseItem","@deletable"],[[32,0,["expenses"]],[32,0,["removeExpenseItem"]],true]],null],[2,"\\n\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[24,0,"green small"],[24,4,"button"],[4,[38,1],["click",[32,0,["showExpenseForm"]]],null],[12],[2,"+ Add another item"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"p"],[12],[2,"No line items yet."],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n"],[6,[37,5],[[32,0,["inProgress"]]],null,[["default","else"],[{"statements":[[2," "],[8,"input",[],[["@type","@value","@disabled","@title"],["submit","Submitting...",true,"Submit/propose this reimbursement"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"input",[],[["@type","@value","@disabled","@title"],["submit","Submit",[32,0,["submitButtonDisabled"]],"Submit/propose this reimbursement"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,5],[[32,0,["expenseFormVisible"]]],null,[["default"],[{"statements":[[2," "],[10,"h3"],[14,1,"new-expense-item"],[12],[2,"New expense item"],[13],[2,"\\n "],[8,"add-expense-item",[],[["@addExpenseItem"],[[30,[36,0],[[32,0,["addExpenseItem"]]],null]]],null],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"],[10,"form"],[14,1,"add-expenses-from-file"],[12],[2,"\\n "],[10,"h3"],[12],[2,"Add expense items from file"],[13],[2,"\\n "],[10,"input"],[14,"multiple","false"],[15,"onchange",[30,[36,0],[[32,0,["addExpensesFromFile"]]],null]],[14,"accept","application/json"],[14,4,"file"],[12],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["fn","on","eq","-track-array","each","if"]}' , meta : { moduleName : "kredits-web/components/add-reimbursement/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/budget-balances/component" , [ "exports" , "@glimmer/component" ] , ( function ( e , t ) { var n , r , o , i , u
function a ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function s ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function c ( 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 l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function d ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function f ( 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 , r = b ( e )
if ( t ) { var o = b ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return f ( this , n ) } } function f ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
return d ( this , n ) } } function d ( 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 p ( e ) } function p ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function b ( e ) { return ( b = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function m ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var y = ( n = Ember . inject . service , r = Ember . computed . alias ( "communityFunds.balances" ) , o = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && l ( e , t ) } ) ( f , e )
var t , n , r , o = d ( f )
function f ( ) { var e
s ( this , f )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && l ( e , t ) } ) ( d , e )
var t , n , r , o = f ( d )
function d ( ) { var e
s ( this , d )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( p ( e = o . call . apply ( o , [ this ] . concat ( n ) ) ) , "communityFunds" , i , p ( e ) ) , a ( p ( e ) , "balances" , u , p ( e ) ) , e } return t = f , ( n = [ { key : "loading" , get : function ( ) { return ! this . communityFunds . balancesLoaded } } ] ) && c ( t . prototype , n ) , r && c ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , f } ( t . default ) , i = m ( o . prototype , "communityFunds" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , u = m ( o . prototype , "balances" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , o )
return a ( p ( e = o . call . apply ( o , [ this ] . concat ( n ) ) ) , "communityFunds" , i , p ( e ) ) , a ( p ( e ) , "balances" , u , p ( e ) ) , e } return t = d , ( n = [ { key : "loading" , get : function ( ) { return ! this . communityFunds . balancesLoaded } } ] ) && c ( t . prototype , n ) , r && c ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , d } ( t . default ) , i = m ( o . prototype , "communityFunds" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , u = m ( o . prototype , "balances" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , o )
e . default = y } ) ) , define ( "kredits-web/components/budget-balances/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "Ss15QE7U" , block : '{"symbols":["balance"],"statements":[[10,"table"],[15,0,[31,["token-balances ",[30,[36,0],[[32,0,["loading"]],"loading"],null]]]],[12],[2,"\\n "],[10,"thead"],[12],[2,"\\n "],[10,"tr"],[12],[2,"\\n "],[10,"th"],[12],[2,"Token"],[13],[2,"\\n "],[10,"th"],[12],[2,"Amount"],[13],[2,"\\n "],[10,"th"],[12],[2,"Fiat value"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"tbody"],[12],[2,"\\n"],[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,0,["balances"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"tr"],[12],[2,"\\n "],[10,"th"],[12],[1,[32,1,["token","symbol"]]],[13],[2,"\\n "],[10,"td"],[14,0,"amount"],[12],[1,[32,1,["confirmed_balance"]]],[13],[2,"\\n "],[10,"td"],[14,0,"fiat-amount"],[12],[2,"~"],[1,[32,1,["balanceUSD"]]],[2," USD"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","-track-array","each"]}' , meta : { moduleName : "kredits-web/components/budget-balances/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/chart-contributions-by-type/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -166,17 +166,17 @@ try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function
return function ( ) { var n , r = p ( e )
if ( t ) { var o = p ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return d ( this , n ) } } function d ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
return f ( this , n ) } } function f ( 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 f ( e ) } function f ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return d ( e ) } function d ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function p ( e ) { return ( p = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var b , m , y , h , v , g , w = ( r = Ember . inject . service , o = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && c ( e , t ) } ) ( p , e )
var t , r , o , d = l ( p )
var t , r , o , f = l ( p )
function p ( ) { var e
a ( this , p )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return u ( f ( e = d . call . apply ( d , [ this ] . concat ( n ) ) ) , "kredits" , i , f ( e ) ) , e } return t = p , ( r = [ { key : "confirmedInBlocks" , get : function ( ) { return this . args . confirmedAtBlock - this . kredits . currentBlock } } , { key : "confirmedInSeconds" , get : function ( ) { return 30 * this . confirmedInBlocks } } , { key : "confirmedInHumanTime" , get : function ( ) { return n . default . duration ( this . confirmedInSeconds , "seconds" ) . humanize ( ) } } , { key : "isConfirmed" , get : function ( ) { return this . confirmedInBlocks <= 0 } } ] ) && s ( t . prototype , r ) , o && s ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , p } ( t . default ) , b = o . prototype , m = "kredits" , y = [ r ] , h = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , g = { } , Object . keys ( h ) . forEach ( ( function ( e ) { g [ e ] = h [ e ] } ) ) , g . enumerable = ! ! g . enumerable , g . configurable = ! ! g . configurable , ( "value" in g || g . initializer ) && ( g . writable = ! 0 ) , g = y . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( b , m , e ) || e } ) , g ) , v && void 0 !== g . initializer && ( g . value = g . initializer ? g . initializer . call ( v ) : void 0 , g . initializer = void 0 ) , void 0 === g . initializer && ( Object . defineProperty ( b , m , g ) , g = null ) , i = g , o )
return u ( d ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "kredits" , i , d ( e ) ) , e } return t = p , ( r = [ { key : "confirmedInBlocks" , get : function ( ) { return this . args . confirmedAtBlock - this . kredits . currentBlock } } , { key : "confirmedInSeconds" , get : function ( ) { return 30 * this . confirmedInBlocks } } , { key : "confirmedInHumanTime" , get : function ( ) { return n . default . duration ( this . confirmedInSeconds , "seconds" ) . humanize ( ) } } , { key : "isConfirmed" , get : function ( ) { return this . confirmedInBlocks <= 0 } } ] ) && s ( t . prototype , r ) , o && s ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , p } ( t . default ) , b = o . prototype , m = "kredits" , y = [ r ] , h = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , g = { } , Object . keys ( h ) . forEach ( ( function ( e ) { g [ e ] = h [ e ] } ) ) , g . enumerable = ! ! g . enumerable , g . configurable = ! ! g . configurable , ( "value" in g || g . initializer ) && ( g . writable = ! 0 ) , g = y . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( b , m , e ) || e } ) , g ) , v && void 0 !== g . initializer && ( g . value = g . initializer ? g . initializer . call ( v ) : void 0 , g . initializer = void 0 ) , void 0 === g . initializer && ( Object . defineProperty ( b , m , g ) , g = null ) , i = g , o )
e . default = w } ) ) , define ( "kredits-web/components/confirmed-in/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "Q4nwoyU+" , block : '{"symbols":[],"statements":[[6,[37,0],[[32,0,["isConfirmed"]]],null,[["default"],[{"statements":[[2,"Confirming in "],[10,"strong"],[12],[1,[32,0,["confirmedInBlocks"]]],[13],[2," blocks (~ "],[1,[32,0,["confirmedInHumanTime"]]],[2,")\\n"]],"parameters":[]}]]]],"hasEval":false,"upvars":["unless"]}' , meta : { moduleName : "kredits-web/components/confirmed-in/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/contribution-list/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -218,9 +218,11 @@ e.default=t})),define("kredits-web/components/loading-spinner/component",["expor
var t = Ember . Component . extend ( { classNames : [ "loading-spinner" ] } )
e . default = t } ) ) , define ( "kredits-web/components/loading-spinner/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "RDvW8Yf/" , block : '{"symbols":[],"statements":[[10,"p"],[12],[2,"\\n "],[10,"svg"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:xlink","http://www.w3.org/1999/xlink","http://www.w3.org/2000/xmlns/"],[14,"version","1.1"],[14,"x","0px"],[14,"y","0px"],[14,"viewBox","0 0 132 100"],[14,"enable-background","new 0 0 100 100"],[14,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[12],[2,"\\n "],[10,"path"],[14,1,"path-comet"],[14,"d","M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337\\n c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492\\n c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z"],[12],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"],[10,"p"],[12],[2,"\\n Loading data...\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/components/loading-spinner/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/main-navigation-menu/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "3Bc8huBy" , block : '{"symbols":[],"statements":[[10,"nav"],[14,1,"main-menu"],[12],[2,"\\n "],[10,"ul"],[12],[2,"\\n "],[10,"li"],[12],[8,"link-to",[],[["@route"],["dashboard"]],[["default"],[{"statements":[[2,"Dashboard"]],"parameters":[]}]]],[13],[2,"\\n "],[10,"li"],[12],[8,"link-to",[],[["@route"],["budget"]],[["default"],[{"statements":[[2,"Budget"]],"parameters":[]}]]],[13],[2,"\\n "],[10,"li"],[12],[8,"link-to",[],[["@route"],["about"]],[["default"],[{"statements":[[2,"About"]],"parameters":[]}]]],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/components/main-navigation-menu/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/reimbursement-list/component" , [ "exports" , "@glimmer/component" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { var r , o , i , u , a , s
function c ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function d ( 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 f ( e , t ) { return ( f = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function p ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
function c ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function f ( 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 d ( e , t ) { return ( d = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function p ( 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 } } ( )
@@ -233,17 +235,17 @@ return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't be
return e } function y ( e ) { return ( y = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function h ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } function v ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var g = ( r = Ember . inject . service , o = Ember . computed . sort ( "args.items" , "itemSorting" ) , i = Ember . _action , u = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && f ( e , t ) } ) ( u , e )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && d ( e , t ) } ) ( u , e )
var t , r , o , i = p ( u )
function u ( ) { var e
l ( this , u )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return c ( m ( e = i . call . apply ( i , [ this ] . concat ( n ) ) ) , "kredits" , a , m ( e ) ) , h ( m ( e ) , "itemSorting" , Object . freeze ( [ "pendingStatus:asc" , "id:desc" ] ) ) , c ( m ( e ) , "itemsSorted" , s , m ( e ) ) , e } return t = u , ( r = [ { key : "ipfsGatewayUrl" , get : function ( ) { return n . default . ipfs . gatewayUrl } } , { key : "veto" , value : function ( e ) { this . kredits . vetoReimbursement ( e ) . then ( ( function ( e ) { console . debug ( "[controllers:budget] Veto submitted to chain: " + e . hash ) } ) ) } } ] ) && d ( t . prototype , r ) , o && d ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , u } ( t . default ) , a = v ( u . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = v ( u . prototype , "itemsSorted" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , v ( u . prototype , "veto" , [ i ] , Object . getOwnPropertyDescriptor ( u . prototype , "veto" ) , u . prototype ) , u )
e . default = g } ) ) , define ( "kredits-web/components/reimbursement-list/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
return c ( m ( e = i . call . apply ( i , [ this ] . concat ( n ) ) ) , "kredits" , a , m ( e ) ) , h ( m ( e ) , "itemSorting" , Object . freeze ( [ "pendingStatus:asc" , "id:desc" ] ) ) , c ( m ( e ) , "itemsSorted" , s , m ( e ) ) , e } return t = u , ( r = [ { key : "ipfsGatewayUrl" , get : function ( ) { return n . default . ipfs . gatewayUrl } } , { key : "veto" , value : function ( e ) { this . kredits . vetoReimbursement ( e ) . then ( ( function ( e ) { console . debug ( "[controllers:budget] Veto submitted to chain: " + e . hash ) } ) ) } } ] ) && f ( t . prototype , r ) , o && f ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , u } ( t . default ) , a = v ( u . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = v ( u . prototype , "itemsSorted" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , v ( u . prototype , "veto" , [ i ] , Object . getOwnPropertyDescriptor ( u . prototype , "veto" ) , u . prototype ) , u )
e . default = g } ) )
define ( "kredits-web/components/reimbursement-list/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "/SHVSc1V" , block : '{"symbols":["reimbursement","@loading"],"statements":[[10,"ul"],[15,0,[31,["item-list spaced reimbursement-list ",[30,[36,4],[[32,2],"loading"],null]]]],[12],[2,"\\n"],[6,[37,6],[[30,[36,5],[[30,[36,5],[[32,0,["itemsSorted"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[15,"data-reimbursement-id",[32,1,["id"]]],[15,0,[31,[[30,[36,2],[[32,1]],null]]]],[12],[2,"\\n "],[10,"p"],[14,0,"meta"],[12],[2,"\\n "],[10,"span"],[14,0,"recipient"],[12],[2,"\\n "],[8,"user-avatar",[],[["@contributor"],[[32,1,["contributor"]]]],null],[2,"\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"title"],[12],[2,"\\n Expenses covered by "],[1,[32,1,["contributor","name"]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"token-amount"],[12],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"\\n "],[1,[30,[36,3],[[32,1,["amount"]]],null]],[13],[2," "],[10,"span"],[14,0,"symbol"],[12],[2,"BTC"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[8,"expense-list",[],[["@expenses"],[[32,1,["expenses"]]]],null],[2,"\\n\\n "],[10,"div"],[14,0,"meta"],[12],[2,"\\n "],[10,"p"],[14,0,"confirmation-eta"],[12],[2,"\\n "],[8,"confirmed-in",[],[["@confirmedAtBlock"],[[32,1,["confirmedAt"]]]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,0,["ipfsGatewayUrl"]],"/",[32,1,["ipfsHash"]]]]],[14,0,"button small"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Inspect IPFS data\\n "],[13],[2,"\\n"],[6,[37,4],[[32,0,["kredits","currentUserIsCore"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[16,"disabled",[32,1,["vetoed"]]],[24,0,"button small danger"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],[[32,0,["veto"]],[32,1,["id"]]],null]],null],[12],[2,"veto"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[13]],"hasEval":false,"upvars":["fn","on","item-status","sats-to-btc","if","-track-array","each"]}' , meta : { moduleName : "kredits-web/components/reimbursement-list/template.hbs" } } )
e . default = t } ) )
define ( "kredits-web/components/topbar-account-panel/component" , [ "exports" , "@glimmer/component" ] , ( function ( e , t ) { var n , r , o , i , u , a , s , c , l
function d ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function f ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function p ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function b ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ]
e . default = t } ) ) , define ( "kredits-web/components/topbar-account-panel/component" , [ "exports" , "@glimmer/component" ] , ( function ( e , t ) { var n , r , o , i , u , a , s , c , l
function f ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function d ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function p ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function b ( 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 m ( e , t ) { return ( m = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function y ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
if ( "function" == typeof Proxy ) return ! 0
@@ -262,11 +264,11 @@ var t,n,r,o,i,u=y(a)
function a ( ) { var e
p ( this , a )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return f ( v ( e = u . call . apply ( u , [ this ] . concat ( n ) ) ) , "router" , s , v ( e ) ) , f ( v ( e ) , "kredits" , c , v ( e ) ) , f ( v ( e ) , "setupInProgress" , l , v ( e ) ) , e } return t = a , ( n = [ { key : "userHasWallet" , get : function ( ) { return Ember . isPresent ( window . ethereum ) } } , { key : "walletConnected" , get : function ( ) { return this . userHasWallet && this . kredits . hasAccounts } } , { key : "walletDisconnected" , get : function ( ) { return this . userHasWallet && ! this . kredits . hasAccounts } } , { key : "signup" , value : function ( ) { this . router . transitionTo ( "signup" ) } } , { key : "connectWallet" , value : ( o = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return this . setupInProgress = ! 0 , e . next = 3 , this . kredits . connectWallet ( )
return d ( v ( e = u . call . apply ( u , [ this ] . concat ( n ) ) ) , "router" , s , v ( e ) ) , d ( v ( e ) , "kredits" , c , v ( e ) ) , d ( v ( e ) , "setupInProgress" , l , v ( e ) ) , e } return t = a , ( n = [ { key : "userHasWallet" , get : function ( ) { return Ember . isPresent ( window . ethereum ) } } , { key : "walletConnected" , get : function ( ) { return this . userHasWallet && this . kredits . hasAccounts } } , { key : "walletDisconnected" , get : function ( ) { return this . userHasWallet && ! this . kredits . hasAccounts } } , { key : "signup" , value : function ( ) { this . router . transitionTo ( "signup" ) } } , { key : "connectWallet" , value : ( o = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return this . setupInProgress = ! 0 , e . next = 3 , this . kredits . connectWallet ( )
case 3 : this . setupInProgress = ! 1
case 4 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) , i = function ( ) { var e = this , t = arguments
return new Promise ( ( function ( n , r ) { var i = o . apply ( e , t )
function u ( e ) { d ( i , n , r , u , a , "next" , e ) } function a ( e ) { d ( i , n , r , u , a , "throw" , e ) } u ( void 0 ) } ) ) } , function ( ) { return i . apply ( this , arguments ) } ) } ] ) && b ( t . prototype , n ) , r && b ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , s = w ( a . prototype , "router" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , c = w ( a . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , l = w ( a . prototype , "setupInProgress" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 1 } } ) , w ( a . prototype , "signup" , [ i ] , Object . getOwnPropertyDescriptor ( a . prototype , "signup" ) , a . prototype ) , w ( a . prototype , "connectWallet" , [ u ] , Object . getOwnPropertyDescriptor ( a . prototype , "connectWallet" ) , a . prototype ) , a )
function u ( e ) { f ( i , n , r , u , a , "next" , e ) } function a ( e ) { f ( i , n , r , u , a , "throw" , e ) } u ( void 0 ) } ) ) } , function ( ) { return i . apply ( this , arguments ) } ) } ] ) && b ( t . prototype , n ) , r && b ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , s = w ( a . prototype , "router" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , c = w ( a . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , l = w ( a . prototype , "setupInProgress" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 1 } } ) , w ( a . prototype , "signup" , [ i ] , Object . getOwnPropertyDescriptor ( a . prototype , "signup" ) , a . prototype ) , w ( a . prototype , "connectWallet" , [ u ] , Object . getOwnPropertyDescriptor ( a . prototype , "connectWallet" ) , a . prototype ) , a )
e . default = k } ) ) , define ( "kredits-web/components/topbar-account-panel/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "fiv0QGp6" , block : '{"symbols":[],"statements":[[10,"section"],[14,1,"user-account"],[12],[2,"\\n"],[6,[37,1],[[32,0,["setupInProgress"]]],null,[["default","else"],[{"statements":[[2," Connecting account...\\n"]],"parameters":[]},{"statements":[[6,[37,1],[[30,[36,2],[[32,0,["walletConnected"]],[32,0,["kredits","currentUser"]]],null]],null,[["default","else"],[{"statements":[[2," "],[1,[32,0,["kredits","currentUser","name"]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"span"],[14,0,"anonymous"],[12],[2,"Anonymous"],[13],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,0],[[32,0],"signup"],null]],[14,1,"signup"],[14,0,"small"],[14,4,"button"],[12],[2,"Sign up"],[13],[2,"\\n"],[6,[37,1],[[32,0,["walletDisconnected"]]],null,[["default"],[{"statements":[[2," "],[10,"button"],[15,"onclick",[30,[36,0],[[32,0],"connectWallet"],null]],[14,1,"connect"],[14,0,"small green"],[14,4,"button"],[12],[2,"Connect wallet"],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]]],"parameters":[]}]]],[13]],"hasEval":false,"upvars":["action","if","and"]}' , meta : { moduleName : "kredits-web/components/topbar-account-panel/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/user-avatar/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -274,11 +276,29 @@ var t={small:"128",medium:"256",large:"512"},n=Ember.Component.extend({contribut
return e ? "https://avatars2.githubusercontent.com/u/" . concat ( e , "?v=3&s=" ) . concat ( t [ this . size ] ) : "" } ) ) } )
e . default = n } ) ) , define ( "kredits-web/components/user-avatar/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "PL5L75/g" , block : '{"symbols":[],"statements":[],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/components/user-avatar/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/controllers/application" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) } )
e . default = t } ) ) , define ( "kredits-web/controllers/budget ", [ "exports" ] , ( function ( e ) { var t , n , r , o , i , u , a
e . default = t } ) ) , define ( "kredits-web/controllers/application" , [ "exports" ] , ( function ( e ) { var t , n , r
function o ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function i ( 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 u ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function ") } function a ( e , t ) { return ( a = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function s ( 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 , r = f ( e )
if ( t ) { var o = f ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return c ( this , n ) } } function c ( 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 l ( e ) } function l ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function f ( e ) { return ( f = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var d , p , b , m , y , h , v = ( t = Ember . inject . service , d = ( n = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && a ( e , t ) } ) ( d , Ember . Controller )
var t , n , c , f = s ( d )
function d ( ) { var e
u ( this , d )
for ( var t = arguments . length , n = new Array ( t ) , i = 0 ; i < t ; i ++ ) n [ i ] = arguments [ i ]
return o ( l ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "kredits" , r , l ( e ) ) , e } return t = d , n && i ( t . prototype , n ) , c && i ( t , c ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , t } ( ) ) . prototype , p = "kredits" , b = [ t ] , m = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , h = { } , Object . keys ( m ) . forEach ( ( function ( e ) { h [ e ] = m [ e ] } ) ) , h . enumerable = ! ! h . enumerable , h . configurable = ! ! h . configurable , ( "value" in h || h . initializer ) && ( h . writable = ! 0 ) , h = b . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( d , p , e ) || e } ) , h ) , y && void 0 !== h . initializer && ( h . value = h . initializer ? h . initializer . call ( y ) : void 0 , h . initializer = void 0 ) , void 0 === h . initializer && ( Object . defineProperty ( d , p , h ) , h = null ) , r = h , n )
e . default = v } ) ) , define ( "kredits-web/controllers/budget" , [ "exports" ] , ( function ( e ) { var t , n , r , o , i , u , a
function s ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function c ( 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 l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function d ( e , t ) { return ( d = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function f ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function f ( e , t ) { return ( f = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function d ( 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 } } ( )
@@ -291,8 +311,8 @@ return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't be
return e } function m ( e ) { return ( m = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function y ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var h = ( t = Ember . inject . service , n = Ember . computed . alias ( "kredits.reimbursementsUnconfirmed" ) , r = Ember . computed . alias ( "kredits.reimbursementsConfirmed" ) , i = y ( ( o = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && d ( e , t ) } ) ( p , Ember . Controller )
var t , n , r , o = f ( p )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && f ( e , t ) } ) ( p , Ember . Controller )
var t , n , r , o = d ( p )
function p ( ) { var e
l ( this , p )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
@@ -307,14 +327,14 @@ var t=Ember.Controller.extend({kredits:Ember.inject.service(),actions:{save:func
e . default = t } ) ) , define ( "kredits-web/controllers/contributors/new" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) , actions : { save : function ( e ) { return this . kredits . addContributor ( e ) } } } )
e . default = t } ) ) , define ( "kredits-web/controllers/dashboard" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) , showDetailsPane : ! 1 , selectedContributorId : null , selectedContributionId : null , currentBlock : Ember . computed . alias ( "kredits.currentBlock" ) , contributions : Ember . computed . alias ( "kredits.contributions" ) , contributionsConfirmed : Ember . computed . alias ( "kredits.contributionsConfirmed" ) , contributionsUnconfirmed : Ember . computed . alias ( "kredits.contributionsUnconfirmed" ) , contributionsSorting : Object . freeze ( [ "date:desc" , "time:desc" , "id:desc" ] ) , contributionsUnconfirmedSorted : Ember . computed . sort ( "contributionsUnconfirmed" , "contributionsSorting" ) , contributionsConfirmedSorted : Ember . computed . sort ( "contributionsConfirmed" , "contributionsSorting" ) , kreditsByContributor : Ember . computed . alias ( "kredits.kreditsByContributor" ) , kreditsToplistSorting : Ember . computed ( "showUnconfirmedKredits" , ( function ( ) { return this . showUnconfirmedKredits ? [ "amountTotal:desc" ] : [ "amountConfirmed:desc" ] } ) ) , kreditsToplist : Ember . computed . sort ( "kreditsByContributor" , "kreditsToplistSorting" ) , showUnconfirmedKredits : ! 0 , hideUnconfirmedKredits : Ember . computed . not ( "showUnconfirmedKredits" ) , showQuickFilterUnconfirmed : ! 1 , showQuickFilterConfirmed : ! 1 , showFullContributionSync : Ember . computed . gt ( "kredits.missingHistoricContributionsCount" , 0 ) , showIntroText : Ember . computed ( "kredits.{hasAccounts,currentUser}" , ( function ( ) { return ! this . kredits . hasAccounts || ! this . kredits . currentUser } ) ) , actions : { vetoContribution : function ( e ) { this . kredits . veto ( e ) . then ( ( function ( e ) { console . debug ( "[controllers:index] Veto submitted to chain: " + e . hash ) } ) ) } , toggleQuickFilterUnconfirmed : function ( ) { this . toggleProperty ( "showQuickFilterUnconfirmed" ) } , toggleQuickFilterConfirmed : function ( ) { this . toggleProperty ( "showQuickFilterConfirmed" ) } } } )
var t = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) , showDetailsPane : ! 1 , selectedContributorId : null , selectedContributionId : null , currentBlock : Ember . computed . alias ( "kredits.currentBlock" ) , contributions : Ember . computed . alias ( "kredits.contributions" ) , contributionsConfirmed : Ember . computed . alias ( "kredits.contributionsConfirmed" ) , contributionsUnconfirmed : Ember . computed . alias ( "kredits.contributionsUnconfirmed" ) , contributionsSorting : Object . freeze ( [ "date:desc" , "time:desc" , "id:desc" ] ) , contributionsUnconfirmedSorted : Ember . computed . sort ( "contributionsUnconfirmed" , "contributionsSorting" ) , contributionsConfirmedSorted : Ember . computed . sort ( "contributionsConfirmed" , "contributionsSorting" ) , kreditsByContributor : Ember . computed . alias ( "kredits.kreditsByContributor" ) , kreditsToplistSorting : Ember . computed ( "showUnconfirmedKredits" , ( function ( ) { return this . showUnconfirmedKredits ? [ "amountTotal:desc" ] : [ "amountConfirmed:desc" ] } ) ) , kreditsToplist : Ember . computed . sort ( "kreditsByContributor" , "kreditsToplistSorting" ) , showUnconfirmedKredits : ! 0 , hideUnconfirmedKredits : Ember . computed . not ( "showUnconfirmedKredits" ) , showQuickFilterUnconfirmed : ! 1 , showQuickFilterConfirmed : ! 1 , showFullContributionSync : Ember . computed . gt ( "kredits.missingHistoricContributionsCount" , 0 ) , actions : { vetoContribution : function ( e ) { this . kredits . veto ( e ) . then ( ( function ( e ) { console . debug ( "[controllers:index] Veto submitted to chain: " + e . hash ) } ) ) } , toggleQuickFilterUnconfirmed : function ( ) { this . toggleProperty ( "showQuickFilterUnconfirmed" ) } , toggleQuickFilterConfirmed : function ( ) { this . toggleProperty ( "showQuickFilterConfirmed" ) } } } )
e . default = t } ) ) , define ( "kredits-web/controllers/dashboard/contributions/show" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Controller . extend ( { ipfsGatewayUrl : Ember . computed ( ( function ( ) { return t . default . ipfs . gatewayUrl } ) ) } )
e . default = n } ) ) , define ( "kredits-web/controllers/dashboard/contributors/show" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Controller . extend ( { roleName : Ember . computed ( "model.isCore" , "totalKreditsEarned" , ( function ( ) { return this . model . isCore ? "Core Contributor" : this . model . totalKreditsEarned <= 5e3 ? "Newcomer" : "Contributor" } ) ) , ipfsGatewayUrl : Ember . computed ( ( function ( ) { return t . default . ipfs . gatewayUrl } ) ) } )
e . default = n } ) ) , define ( "kredits-web/controllers/signup/account" , [ "exports" , "kredits-web/config/environment" , "web3-utils" ] , ( function ( e , t , n ) { var r , o , i , u , a , s
function c ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function d ( 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 f ( e , t ) { return ( f = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function p ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
function c ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function l ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function f ( 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 d ( e , t ) { return ( d = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function p ( 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 } } ( )
@@ -327,14 +347,14 @@ return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't be
return e } function y ( e ) { return ( y = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function h ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var v = ( r = Ember . inject . service , o = Ember . _tracked , i = Ember . _action , a = h ( ( u = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && f ( e , t ) } ) ( b , Ember . Controller )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && d ( e , t ) } ) ( b , Ember . Controller )
var r , o , i , u = p ( b )
function b ( ) { var e
l ( this , b )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return c ( m ( e = u . call . apply ( u , [ this ] . concat ( n ) ) ) , "kredits" , a , m ( e ) ) , c ( m ( e ) , "accountAddress" , s , m ( e ) ) , e } return r = b , ( o = [ { key : "isValidEthAccount" , get : function ( ) { return ( 0 , n . isAddress ) ( this . accountAddress ) } } , { key : "signupButtonDisabled" , get : function ( ) { return ! this . isValidEthAccount } } , { key : "completeSignup" , value : function ( ) { var e = this , n = { accessToken : this . kredits . githubAccessToken , account : this . accountAddress }
fetch ( t . default . githubSignupUrl , { method : "POST" , headers : { "Content-Type" : "application/json" } , body : JSON . stringify ( n ) } ) . then ( ( function ( e ) { return e . json ( ) } ) ) . then ( ( function ( t ) { if ( t . error ) return alert ( "Creating profile failed. We have been notified about this error and will take a look soon. Sorry!" ) , console . warn ( "Creating contributor profile failed:" , JSON . parse ( t . error . body ) . error . message ) , ! 1
console . log ( "[signup/account] Created contributor:" , t ) , e . kredits . githubAccessToken = null , e . accountAddress = null , e . transitionToRoute ( "signup.complete" ) } ) ) } } ] ) && d ( r . prototype , o ) , i && d ( r , i ) , Object . defineProperty ( r , "prototype" , { writable : ! 1 } ) , b } ( ) ) . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = h ( u . prototype , "accountAddress" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return null } } ) , h ( u . prototype , "completeSignup" , [ i ] , Object . getOwnPropertyDescriptor ( u . prototype , "completeSignup" ) , u . prototype ) , u )
console . log ( "[signup/account] Created contributor:" , t ) , e . kredits . githubAccessToken = null , e . accountAddress = null , e . transitionToRoute ( "signup.complete" ) } ) ) } } ] ) && f ( r . prototype , o ) , i && f ( r , i ) , Object . defineProperty ( r , "prototype" , { writable : ! 1 } ) , b } ( ) ) . prototype , "kredits" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = h ( u . prototype , "accountAddress" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return null } } ) , h ( u . prototype , "completeSignup" , [ i ] , Object . getOwnPropertyDescriptor ( u . prototype , "completeSignup" ) , u . prototype ) , u )
e . default = v } ) ) , define ( "kredits-web/controllers/signup/index" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { var n , r
function o ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function i ( 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 u ( e , t ) { return ( u = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function a ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
@@ -348,10 +368,10 @@ return s(this,n)}}function s(e,t){if(t&&("object"===_typeof(t)||"function"==type
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 c ( e ) { return ( c = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var l , d , f , p , b , m , y = ( n = Ember . _action , l = ( r = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
var l , f , d , p , b , m , y = ( n = Ember . _action , l = ( r = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && u ( e , t ) } ) ( l , Ember . Controller )
var n , r , s , c = a ( l )
function l ( ) { return o ( this , l ) , c . apply ( this , arguments ) } return n = l , ( r = [ { key : "connectGithub" , value : function ( ) { window . location = t . default . githubConnectUrl } } ] ) && i ( n . prototype , r ) , s && i ( n , s ) , Object . defineProperty ( n , "prototype" , { writable : ! 1 } ) , l } ( ) ) . prototype , d = "connectGithub" , f = [ n ] , p = Object . getOwnPropertyDescriptor ( r . prototype , "connectGithub" ) , b = r . prototype , m = { } , Object . keys ( p ) . forEach ( ( function ( e ) { m [ e ] = p [ e ] } ) ) , m . enumerable = ! ! m . enumerable , m . configurable = ! ! m . configurable , ( "value" in m || m . initializer ) && ( m . writable = ! 0 ) , m = f . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( l , d , e ) || e } ) , m ) , b && void 0 !== m . initializer && ( m . value = m . initializer ? m . initializer . call ( b ) : void 0 , m . initializer = void 0 ) , void 0 === m . initializer && ( Object . defineProperty ( l , d , m ) , m = null ) , r )
function l ( ) { return o ( this , l ) , c . apply ( this , arguments ) } return n = l , ( r = [ { key : "connectGithub" , value : function ( ) { window . location = t . default . githubConnectUrl } } ] ) && i ( n . prototype , r ) , s && i ( n , s ) , Object . defineProperty ( n , "prototype" , { writable : ! 1 } ) , l } ( ) ) . prototype , f = "connectGithub" , d = [ n ] , p = Object . getOwnPropertyDescriptor ( r . prototype , "connectGithub" ) , b = r . prototype , m = { } , Object . keys ( p ) . forEach ( ( function ( e ) { m [ e ] = p [ e ] } ) ) , m . enumerable = ! ! m . enumerable , m . configurable = ! ! m . configurable , ( "value" in m || m . initializer ) && ( m . writable = ! 0 ) , m = d . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( l , f , e ) || e } ) , m ) , b && void 0 !== m . initializer && ( m . value = m . initializer ? m . initializer . call ( b ) : void 0 , m . initializer = void 0 ) , void 0 === m . initializer && ( Object . defineProperty ( l , f , m ) , m = null ) , r )
e . default = y } ) ) , define ( "kredits-web/helpers/and" , [ "exports" , "ember-truth-helpers/helpers/and" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "and" , { enumerable : ! 0 , get : function ( ) { return t . and } } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/app-version" , [ "exports" , "kredits-web/config/environment" , "ember-cli-app-version/utils/regexp" ] , ( function ( e , t , n ) { function r ( e ) { var r = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , o = t . default . APP . version , i = r . versionOnly || r . hideSha , u = r . shaOnly || r . hideVersion , a = null
return i && ( r . showExtended && ( a = o . match ( n . versionExtendedRegExp ) ) , a || ( a = o . match ( n . versionRegExp ) ) ) , u && ( a = o . match ( n . shaRegExp ) ) , a ? a [ 0 ] : o } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . appVersion = r , e . default = void 0
var o = Ember . Helper . helper ( r )
@@ -379,8 +399,8 @@ return new Intl.DateTimeFormat(r).format(n)}))
e . default = n } ) ) , define ( "kredits-web/helpers/fmt-fiat-currency" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Helper . helper ( ( function ( e ) { var t = navigator . language || navigator . userLanguage
return new Intl . NumberFormat ( t , { style : "currency" , currency : e [ 1 ] || "EUR" , currencyDisplay : "code" } ) . format ( e [ 0 ] ) } ) )
e . default = t } ) ) , define ( "kredits-web/helpers/gt" , [ "exports" , "ember-truth-helpers/helpers/gt" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "gt" , { enumerable : ! 0 , get : function ( ) { return t . gt } } ) } ) ) , define ( "kredits-web/helpers/gte" , [ "exports" , "ember-truth-helpers/helpers/gte" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "gte" , { enumerable : ! 0 , get : function ( ) { return t . gte } } ) } ) ) , define ( "kredits-web/helpers/is-after" , [ "exports" , "ember-moment/helpers/is-after" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/is-array" , [ "exports" , "ember-truth-helpers/helpers/is-array" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "isArray" , { enumerable : ! 0 , get : function ( ) { return t . isArray } } ) } ) ) , define ( "kredits-web/helpers/is-before" , [ "exports" , "ember-moment/helpers/is-before" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/is-between" , [ "exports" , "ember-moment/helpers/is-between" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) )
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/helpers/is-confirmed-contribution" , [ "exports" ] , ( function ( e ) { function t ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var n = null == e ? null : "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
e . default = t } ) ) , define ( "kredits-web/helpers/gt" , [ "exports" , "ember-truth-helpers/helpers/gt" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "gt" , { enumerable : ! 0 , get : function ( ) { return t . gt } } ) } ) ) , define ( "kredits-web/helpers/gte" , [ "exports" , "ember-truth-helpers/helpers/gte" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "gte" , { enumerable : ! 0 , get : function ( ) { return t . gte } } ) } ) ) , define ( "kredits-web/helpers/is-after" , [ "exports" , "ember-moment/helpers/is-after" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/is-array" , [ "exports" , "ember-truth-helpers/helpers/is-array" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "isArray" , { enumerable : ! 0 , get : function ( ) { return t . isArray } } ) } ) ) , define ( "kredits-web/helpers/is-before" , [ "exports" , "ember-moment/helpers/is-before" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) )
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/helpers/is-between" , [ "exports" , "ember-moment/helpers/is-between" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/is- confirmed-contribution", [ "exports" ] , ( function ( e ) { function t ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var n = null == e ? null : "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( null == n ) return
var r , o , i = [ ] , u = ! 0 , a = ! 1
try { for ( n = n . call ( e ) ; ! ( u = ( r = n . next ( ) ) . done ) && ( i . push ( r . value ) , ! t || i . length !== t ) ; u = ! 0 ) ; } catch ( s ) { a = ! 0 , o = s } finally { try { u || null == n . return || n . return ( ) } finally { if ( a ) throw o } } return i } ( e , t ) || function ( e , t ) { if ( ! e ) return
@@ -422,8 +442,8 @@ this.setupRecompute(n)
var r = [ ]
return n . vetoed ? r . push ( "vetoed" ) : n . confirmedAt > this . currentBlock ? r . push ( "unconfirmed" ) : r . push ( "confirmed" ) , n . hasPendingChanges && r . push ( "pending" ) , r . join ( " " ) } , destroy : function ( ) { this . teardown && this . teardown ( ) , this . _super . apply ( this , arguments ) } , setupRecompute : function ( e ) { var t = this
this . teardown && this . teardown ( ) , e . addObserver ( "vetoed" , this , this . triggerRecompute ) , e . addObserver ( "confirmedAt" , this , this . triggerRecompute ) , e . addObserver ( "currentBlock" , this , this . triggerRecompute ) , e . addObserver ( "hasPendingChanges" , this , this . triggerRecompute ) , this . teardown = function ( ) { e . removeObserver ( "vetoed" , t , t . triggerRecompute ) , e . removeObserver ( "confirmedAt" , t , t . triggerRecompute ) , e . removeObserver ( "currentBlock" , t , t . triggerRecompute ) , e . removeObserver ( "hasPendingChanges" , t , t . triggerRecompute ) } } , triggerRecompute : function ( ) { Ember . run . once ( this , this . recompute ) } } )
e . default = r } ) ) , define ( "kredits-web/helpers/lt" , [ "exports" , "ember-truth-helpers/helpers/lt" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "lt" , { enumerable : ! 0 , get : function ( ) { return t . lt } } ) } ) ) , define ( "kredits-web/helpers/lte" , [ "exports" , "ember-truth-helpers/helpers/lte" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "lte" , { enumerable : ! 0 , get : function ( ) { return t . lte } } ) } ) ) , define ( "kredits-web/helpers/moment-add" , [ "exports" , "ember-moment/helpers/moment-add" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-calendar" , [ "exports" , "ember-moment/helpers/moment-calendar" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-diff" , [ "exports" , "ember-moment/helpers/moment-diff" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-duration" , [ "exports" , "ember-moment/helpers/moment-duration" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-format" , [ "exports" , "ember-moment/helpers/moment-format" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-from-now" , [ "exports" , "ember-moment/helpers/moment-from-now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-from" , [ "exports" , "ember-moment/helpers/moment-from" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-subtract" , [ "exports" , "ember-moment/helpers/moment-subtract" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to-date" , [ "exports" , "ember-moment/helpers/moment-to-date" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to-now" , [ "exports" , "ember-moment/helpers/moment-to-now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to" , [ "exports" , "ember-moment/helpers/moment-to" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-unix" , [ "exports" , "ember-moment/helpers/unix" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment" , [ "exports" , "ember-moment/helpers/moment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/not-eq" , [ "exports" , "ember-truth-helpers/helpers/not-equal" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "notEqualHelper" , { enumerable : ! 0 , get : function ( ) { return t . notEqualHelper } } ) } ) ) , define ( "kredits-web/helpers/not" , [ "exports" , "ember-truth-helpers/helpers/not" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "not" , { enumerable : ! 0 , get : function ( ) { return t . not } } ) } ) ) , define ( "kredits-web/helpers/now" , [ "exports" , "ember-moment/helpers/now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/or" , [ "exports" , "ember-truth-helpers/helpers/or" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "or" , { enumerable : ! 0 , get : function ( ) { return t . or } } ) } ) )
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/helpers/perform" , [ "exports" , "ember-concurrency/helpers/perform" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-all" , [ "exports" , "ember-promise-helpers/helpers/promise-all" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-hash" , [ "exports" , "ember-promise-helpers/helpers/promise-hash" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-rejected-reason" , [ "exports" , "ember-promise-helpers/helpers/promise-rejected-reason" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/sats-to-btc" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
e . default = r } ) ) , define ( "kredits-web/helpers/lt" , [ "exports" , "ember-truth-helpers/helpers/lt" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "lt" , { enumerable : ! 0 , get : function ( ) { return t . lt } } ) } ) ) , define ( "kredits-web/helpers/lte" , [ "exports" , "ember-truth-helpers/helpers/lte" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "lte" , { enumerable : ! 0 , get : function ( ) { return t . lte } } ) } ) ) , define ( "kredits-web/helpers/moment-add" , [ "exports" , "ember-moment/helpers/moment-add" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-calendar" , [ "exports" , "ember-moment/helpers/moment-calendar" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-diff" , [ "exports" , "ember-moment/helpers/moment-diff" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-duration" , [ "exports" , "ember-moment/helpers/moment-duration" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-format" , [ "exports" , "ember-moment/helpers/moment-format" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-from-now" , [ "exports" , "ember-moment/helpers/moment-from-now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-from" , [ "exports" , "ember-moment/helpers/moment-from" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-subtract" , [ "exports" , "ember-moment/helpers/moment-subtract" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to-date" , [ "exports" , "ember-moment/helpers/moment-to-date" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to-now" , [ "exports" , "ember-moment/helpers/moment-to-now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-to" , [ "exports" , "ember-moment/helpers/moment-to" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment-unix" , [ "exports" , "ember-moment/helpers/unix" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/moment" , [ "exports" , "ember-moment/helpers/moment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/not-eq" , [ "exports" , "ember-truth-helpers/helpers/not-equal" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "notEqualHelper" , { enumerable : ! 0 , get : function ( ) { return t . notEqualHelper } } ) } ) ) , define ( "kredits-web/helpers/not" , [ "exports" , "ember-truth-helpers/helpers/not" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "not" , { enumerable : ! 0 , get : function ( ) { return t . not } } ) } ) ) , define ( "kredits-web/helpers/now" , [ "exports" , "ember-moment/helpers/now" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) )
function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } function _typeof ( e ) { return ( _typeof = "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 ) } define ( "kredits-web/helpers/or" , [ "exports" , "ember-truth-helpers/helpers/or" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "or" , { enumerable : ! 0 , get : function ( ) { return t . or } } ) } ) ) , define ( "kredits-web/helpers/perform" , [ "exports" , "ember-concurrency/helpers/perform" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-all" , [ "exports" , "ember-promise-helpers/helpers/promise-all" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-hash" , [ "exports" , "ember-promise-helpers/helpers/promise-hash" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/promise-rejected-reason" , [ "exports" , "ember-promise-helpers/helpers/promise-rejected-reason" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/sats-to-btc" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Helper . helper ( ( function ( e ) { return e / 1e8 } ) )
e . default = t } ) ) , define ( "kredits-web/helpers/task" , [ "exports" , "ember-concurrency/helpers/task" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/unix" , [ "exports" , "ember-moment/helpers/unix" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/utc" , [ "exports" , "ember-moment/helpers/utc" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "utc" , { enumerable : ! 0 , get : function ( ) { return t . utc } } ) } ) ) , define ( "kredits-web/helpers/xor" , [ "exports" , "ember-truth-helpers/helpers/xor" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "xor" , { enumerable : ! 0 , get : function ( ) { return t . xor } } ) } ) ) , define ( "kredits-web/initializers/app-version" , [ "exports" , "ember-cli-app-version/initializer-factory" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { var r , o
Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0 , n . default . APP && ( r = n . default . APP . name , o = n . default . APP . version )
@@ -458,13 +478,29 @@ if(void 0!==t)throw new TypeError("Derived constructors may only return object o
return a ( e ) } function a ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function s ( e ) { return ( s = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function c ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var l = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && o ( e , t ) } ) ( f , Ember . Router )
var u , s , l , d = i ( f )
function f ( ) { var e
r ( this , f )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && o ( e , t ) } ) ( d , Ember . Router )
var u , s , l , f = i ( d )
function d ( ) { var e
r ( this , d )
for ( var n = arguments . length , o = new Array ( n ) , i = 0 ; i < n ; i ++ ) o [ i ] = arguments [ i ]
return c ( a ( e = d . call . apply ( d , [ this ] . concat ( o ) ) ) , "location" , t . default . locationType ) , c ( a ( e ) , "rootURL" , t . default . rootURL ) , e } return u = f , s && n ( u . prototype , s ) , l && n ( u , l ) , Object . defineProperty ( u , "prototype" , { writable : ! 1 } ) , u } ( )
e . default = l , l . map ( ( function ( ) { this . route ( "dashboard" , ( function ( ) { this . route ( "contributors" , ( function ( ) { this . route ( "show" , { path : ":id" } ) } ) ) , this . route ( "contributions" , ( function ( ) { this . route ( "show" , { path : ":id" } ) } ) ) } ) ) , this . route ( "contributions" , ( function ( ) { this . route ( "new" , { queryParams : [ "contributorId" , "kind" , "amount" ] } ) , this . route ( "resubmit" , { path : ":id/resubmit" } ) } ) ) , this . route ( "contributors" , ( function ( ) { this . route ( "new" ) , this . route ( "edit" , { path : ":id/edit" } ) } ) ) , this . route ( "signup" , ( function ( ) { this . route ( "github" ) , this . route ( "account" ) , this . route ( "complete" ) } ) ) , this . route ( "budget" , ( function ( ) { this . route ( "expenses" ) , this . route ( "reimbursements" , ( function ( ) { } ) ) } ) ) , this . route ( "reimbursements" , ( function ( ) { this . route ( "new" ) } ) ) } ) ) } ) ) , define ( "kredits-web/routes/application " , [ "exports" ] , ( function ( e ) { var t , n , r , o , i
return c ( a ( e = f . call . apply ( f , [ this ] . concat ( o ) ) ) , "location" , t . default . locationType ) , c ( a ( e ) , "rootURL" , t . default . rootURL ) , e } return u = d , s && n ( u . prototype , s ) , l && n ( u , l ) , Object . defineProperty ( u , "prototype" , { writable : ! 1 } ) , u } ( )
e . default = l , l . map ( ( function ( ) { this . route ( "dashboard" , ( function ( ) { this . route ( "contributors" , ( function ( ) { this . route ( "show" , { path : ":id" } ) } ) ) , this . route ( "contributions" , ( function ( ) { this . route ( "show" , { path : ":id" } ) } ) ) } ) ) , this . route ( "contributions" , ( function ( ) { this . route ( "new" , { queryParams : [ "contributorId" , "kind" , "amount" ] } ) , this . route ( "resubmit" , { path : ":id/resubmit" } ) } ) ) , this . route ( "contributors" , ( function ( ) { this . route ( "new" ) , this . route ( "edit" , { path : ":id/edit" } ) } ) ) , this . route ( "signup" , ( function ( ) { this . route ( "github" ) , this . route ( "account" ) , this . route ( "complete" ) } ) ) , this . route ( "budget" , ( function ( ) { this . route ( "expenses" ) , this . route ( "reimbursements" , ( function ( ) { } ) ) } ) ) , this . route ( "reimbursements" , ( function ( ) { this . route ( "new" ) } ) ) , this . route ( "about" ) } ) ) } ) ) , define ( "kredits-web/routes/about " , [ "exports" ] , ( function ( e ) { 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 , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function r ( e , t ) { return ( r = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function o ( 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 , r = u ( e )
if ( t ) { var o = u ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return i ( this , n ) } } function i ( 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 u ( e ) { return ( u = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var a = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && r ( e , t ) } ) ( c , Ember . Route )
var i , u , a , s = o ( c )
function c ( ) { return n ( this , c ) , s . apply ( this , arguments ) } return i = c , u && t ( i . prototype , u ) , a && t ( i , a ) , Object . defineProperty ( i , "prototype" , { writable : ! 1 } ) , i } ( )
e . default = a } ) ) , define ( "kredits-web/routes/application" , [ "exports" ] , ( function ( e ) { var t , n , r , o , i
function u ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function a ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function s ( 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 c ( e , t ) { return ( c = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function l ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
@@ -473,41 +509,41 @@ try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function
return function ( ) { var n , r = p ( e )
if ( t ) { var o = p ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return d ( this , n ) } } function d ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
return f ( this , n ) } } function f ( 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 f ( e ) } function f ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return d ( e ) } function d ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function p ( e ) { return ( p = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function b ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var m = ( t = Ember . inject . service , n = Ember . inject . service , o = b ( ( r = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && c ( e , t ) } ) ( p , Ember . Route )
var t , n , r , d = l ( p )
var t , n , r , f = l ( p )
function p ( ) { var e
a ( this , p )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return u ( f ( e = d . call . apply ( d , [ this ] . concat ( n ) ) ) , "kredits" , o , f ( e ) ) , u ( f ( e ) , "communityFunds" , i , f ( e ) ) , e } return t = p , ( n = [ { key : "beforeModel" , value : function ( ) { var e = this
return u ( d ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "kredits" , o , d ( e ) ) , u ( d ( e ) , "communityFunds" , i , d ( e ) ) , e } return t = p , ( n = [ { key : "beforeModel" , value : function ( ) { var e = this
return this . kredits . setup ( ) . then ( ( function ( ) { e . kredits . kredits . preflightChecks ( ) . catch ( ( function ( e ) { console . error ( "Kredits preflight check failed!" ) , console . error ( e ) } ) ) } ) ) . catch ( ( function ( e ) { console . log ( "Error initializing Kredits" , e ) } ) ) } } , { key : "model" , value : function ( ) { var e = this
return this . kredits . loadInitialData ( ) . then ( ( function ( ) { e . kredits . addContractEventHandlers ( ) } ) ) } } , { key : "afterModel" , value : function ( ) { this . kredits . contributorsNeedSync && Ember . run . schedule ( "afterRender" , this . kredits . syncContributors , this . kredits . syncContributors . perform ) , Ember . run . schedule ( "afterRender" , this . communityFunds . fetchBalances , this . communityFunds . fetchBalances . perform ) } } ] ) && s ( t . prototype , n ) , r && s ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , p } ( ) ) . prototype , "kredits" , [ t ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , i = b ( r . prototype , "communityFunds" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , r )
e . default = m } ) ) , define ( "kredits-web/routes/budget" , [ "exports" ] , ( function ( e ) { var t , n , r , o , i
function u ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function a ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function s ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function c ( 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 l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function d ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function f ( 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 , r = b ( e )
if ( t ) { var o = b ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return f ( this , n ) } } function f ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
return d ( this , n ) } } function d ( 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 p ( e ) } function p ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function b ( e ) { return ( b = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function m ( e , t , n , r , o ) { var i = { }
return Object . keys ( r ) . forEach ( ( function ( e ) { i [ e ] = r [ e ] } ) ) , i . enumerable = ! ! i . enumerable , i . configurable = ! ! i . configurable , ( "value" in i || i . initializer ) && ( i . writable = ! 0 ) , i = n . slice ( ) . reverse ( ) . reduce ( ( function ( n , r ) { return r ( e , t , n ) || n } ) , i ) , o && void 0 !== i . initializer && ( i . value = i . initializer ? i . initializer . call ( o ) : void 0 , i . initializer = void 0 ) , void 0 === i . initializer && ( Object . defineProperty ( e , t , i ) , i = null ) , i } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var y = ( t = Ember . inject . service , n = Ember . inject . service , o = m ( ( r = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && l ( e , t ) } ) ( y , Ember . Route )
var t , n , r , f , b , m = d ( y )
var t , n , r , d , b , m = f ( y )
function y ( ) { var e
s ( this , y )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( p ( e = m . call . apply ( m , [ this ] . concat ( n ) ) ) , "browserCache" , o , p ( e ) ) , a ( p ( e ) , "kredits" , i , p ( e ) ) , e } return t = y , ( n = [ { key : "model" , value : ( f = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( ! Ember . isPresent ( this . kredits . reimbursements ) || ! Ember . isEmpty ( this . kredits . reimbursementsPending ) ) { e . next = 5
return a ( p ( e = m . call . apply ( m , [ this ] . concat ( n ) ) ) , "browserCache" , o , p ( e ) ) , a ( p ( e ) , "kredits" , i , p ( e ) ) , e } return t = y , ( n = [ { key : "model" , value : ( d = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( ! Ember . isPresent ( this . kredits . reimbursements ) || ! Ember . isEmpty ( this . kredits . reimbursementsPending ) ) { e . next = 5
break } return console . debug ( "[route:budget] Reimbursements loaded before, no need to sync or load" ) , e . abrupt ( "return" )
case 5 : return e . next = 7 , this . browserCache . reimbursements . length ( )
case 7 : if ( ! ( e . sent > 0 ) ) { e . next = 14
@@ -516,7 +552,7 @@ case 11:this.kredits.set("reimbursementsNeedSync",!0),e.next=16
break
case 14 : return e . next = 16 , this . kredits . fetchObjects ( "Reimbursement" , { page : { size : 10 } } )
case 16 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) , b = function ( ) { var e = this , t = arguments
return new Promise ( ( function ( n , r ) { var o = f . apply ( e , t )
return new Promise ( ( function ( n , r ) { var o = d . apply ( e , t )
function i ( e ) { u ( o , n , r , i , a , "next" , e ) } function a ( e ) { u ( o , n , r , i , a , "throw" , e ) } i ( void 0 ) } ) ) } , function ( ) { return b . apply ( this , arguments ) } ) } , { key : "afterModel" , value : function ( ) { this . kredits . reimbursementsNeedSync && Ember . run . schedule ( "afterRender" , this . kredits . syncReimbursements , this . kredits . syncReimbursements . perform ) , Ember . run . schedule ( "afterRender" , this . kredits . fetchMissingReimbursements , this . kredits . fetchMissingReimbursements . perform ) } } ] ) && c ( t . prototype , n ) , r && c ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , y } ( ) ) . prototype , "browserCache" , [ t ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , i = m ( r . prototype , "kredits" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , r )
e . default = y } ) ) , define ( "kredits-web/routes/budget/expenses" , [ "exports" ] , ( function ( e ) { 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 , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function r ( e , t ) { return ( r = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function o ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
@@ -560,20 +596,20 @@ r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Obj
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 , r = d ( e )
if ( t ) { var o = d ( this ) . constructor
return function ( ) { var n , r = f ( e )
if ( t ) { var o = f ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return c ( this , n ) } } function c ( 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 l ( e ) } function l ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function d ( e ) { return ( d = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var f , p , b , m , y , h , v = ( t = Ember . inject . service , f = ( n = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && a ( e , t ) } ) ( f , Ember . Route )
var t , n , c , d = s ( f )
function f ( ) { var e
i ( this , f )
return e } function f ( e ) { return ( f = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var d , p , b , m , y , h , v = ( t = Ember . inject . service , d = ( n = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && a ( e , t ) } ) ( d , Ember . Route )
var t , n , c , f = s ( d )
function d ( ) { var e
i ( this , d )
for ( var t = arguments . length , n = new Array ( t ) , u = 0 ; u < t ; u ++ ) n [ u ] = arguments [ u ]
return o ( l ( e = d . call . apply ( d , [ this ] . concat ( n ) ) ) , "kredits" , r , l ( e ) ) , e } return t = f , ( n = [ { key : "afterModel" , value : function ( ) { this . kredits . contributionsNeedSync && Ember . run . schedule ( "afterRender" , this . kredits . syncContributions , this . kredits . syncContributions . perform ) } } ] ) && u ( t . prototype , n ) , c && u ( t , c ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , f } ( ) ) . prototype , p = "kredits" , b = [ t ] , m = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , h = { } , Object . keys ( m ) . forEach ( ( function ( e ) { h [ e ] = m [ e ] } ) ) , h . enumerable = ! ! h . enumerable , h . configurable = ! ! h . configurable , ( "value" in h || h . initializer ) && ( h . writable = ! 0 ) , h = b . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( f , p , e ) || e } ) , h ) , y && void 0 !== h . initializer && ( h . value = h . initializer ? h . initializer . call ( y ) : void 0 , h . initializer = void 0 ) , void 0 === h . initializer && ( Object . defineProperty ( f , p , h ) , h = null ) , r = h , n )
return o ( l ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "kredits" , r , l ( e ) ) , e } return t = d , ( n = [ { key : "afterModel" , value : function ( ) { this . kredits . contributionsNeedSync && Ember . run . schedule ( "afterRender" , this . kredits . syncContributions , this . kredits . syncContributions . perform ) } } ] ) && u ( t . prototype , n ) , c && u ( t , c ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , d } ( ) ) . prototype , p = "kredits" , b = [ t ] , m = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , h = { } , Object . keys ( m ) . forEach ( ( function ( e ) { h [ e ] = m [ e ] } ) ) , h . enumerable = ! ! h . enumerable , h . configurable = ! ! h . configurable , ( "value" in h || h . initializer ) && ( h . writable = ! 0 ) , h = b . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( d , p , e ) || e } ) , h ) , y && void 0 !== h . initializer && ( h . value = h . initializer ? h . initializer . call ( y ) : void 0 , h . initializer = void 0 ) , void 0 === h . initializer && ( Object . defineProperty ( d , p , h ) , h = null ) , r = h , n )
e . default = v } ) ) , define ( "kredits-web/routes/dashboard/contributions/show" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , contributions : Ember . computed . alias ( "kredits.contributions" ) , model : function ( e ) { return this . contributions . findBy ( "id" , parseInt ( e . id ) ) } , setupController : function ( e , t ) { this . _super ( e , t ) , this . controllerFor ( "dashboard" ) . setProperties ( { showDetailsPane : ! 0 , selectedContributionId : t . id } ) } , deactivate : function ( ) { this . controllerFor ( "dashboard" ) . setProperties ( { showDetailsPane : ! 1 , selectedContributionId : null } ) } } )
e . default = t } ) ) , define ( "kredits-web/routes/dashboard/contributors/show" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -597,7 +633,8 @@ var a=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new Typ
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && r ( e , t ) } ) ( c , Ember . Route )
var i , u , a , s = o ( c )
function c ( ) { return t ( this , c ) , s . apply ( this , arguments ) } return i = c , ( u = [ { key : "model" , value : function ( e ) { return { params : e } } } ] ) && n ( i . prototype , u ) , a && n ( i , a ) , Object . defineProperty ( i , "prototype" , { writable : ! 1 } ) , c } ( )
e . default = a } ) ) , define ( "kredits-web/routes/signup" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
e . default = a } ) )
define ( "kredits-web/routes/signup" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { } )
e . default = t } ) ) , define ( "kredits-web/routes/signup/account" , [ "exports" ] , ( function ( e ) { var t , n , r
function o ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function i ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function u ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function a ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ]
@@ -605,30 +642,29 @@ r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Obj
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 , r = f ( e )
if ( t ) { var o = f ( this ) . constructor
return function ( ) { var n , r = d ( e )
if ( t ) { var o = d ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return l ( this , n ) } } function l ( 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 d ( e ) } function d ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function f ( e ) { return ( f = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
return f ( e ) } function f ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function d ( e ) { return ( d = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var p , b , m , y , h , v , g = ( t = Ember . inject . service , p = ( n = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && s ( e , t ) } ) ( m , Ember . Route )
var t , n , l , f , p , b = c ( m )
var t , n , l , d , p , b = c ( m )
function m ( ) { var e
u ( this , m )
for ( var t = arguments . length , n = new Array ( t ) , o = 0 ; o < t ; o ++ ) n [ o ] = arguments [ o ]
return i ( d ( e = b . call . apply ( b , [ this ] . concat ( n ) ) ) , "kredits" , r , d ( e ) ) , e } return t = m , ( n = [ { key : "setupController" , value : ( f = regeneratorRuntime . mark ( ( function e ( t ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( window . ethereum ) { e . next = 2
return i ( f ( e = b . call . apply ( b , [ this ] . concat ( n ) ) ) , "kredits" , r , f ( e ) ) , e } return t = m , ( n = [ { key : "setupController" , value : ( d = regeneratorRuntime . mark ( ( function e ( t ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( window . ethereum ) { e . next = 2
break } return e . abrupt ( "return" )
case 2 : if ( ! this . kredits . hasAccounts ) { e . next = 6
break } t . accountAddress = this . kredits . currentUserAccounts . firstObject , e . next = 7
break
case 6 : return e . abrupt ( "return" , this . kredits . connectWallet ( ) )
case 7 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) , p = function ( ) { var e = this , t = arguments
return new Promise ( ( function ( n , r ) { var i = f . apply ( e , t )
return new Promise ( ( function ( n , r ) { var i = d . apply ( e , t )
function u ( e ) { o ( i , n , r , u , a , "next" , e ) } function a ( e ) { o ( i , n , r , u , a , "throw" , e ) } u ( void 0 ) } ) ) } , function ( e ) { return p . apply ( this , arguments ) } ) } , { key : "redirect" , value : function ( ) { Ember . isEmpty ( this . kredits . githubAccessToken ) && this . transitionTo ( "signup.index" ) } } ] ) && a ( t . prototype , n ) , l && a ( t , l ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , m } ( ) ) . prototype , b = "kredits" , m = [ t ] , y = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , v = { } , Object . keys ( y ) . forEach ( ( function ( e ) { v [ e ] = y [ e ] } ) ) , v . enumerable = ! ! v . enumerable , v . configurable = ! ! v . configurable , ( "value" in v || v . initializer ) && ( v . writable = ! 0 ) , v = m . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( p , b , e ) || e } ) , v ) , h && void 0 !== v . initializer && ( v . value = v . initializer ? v . initializer . call ( h ) : void 0 , v . initializer = void 0 ) , void 0 === v . initializer && ( Object . defineProperty ( p , b , v ) , v = null ) , r = v , n )
e . default = g } ) )
define ( "kredits-web/routes/signup/complete" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
e . default = g } ) ) , define ( "kredits-web/routes/signup/complete" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { } )
e . default = t } ) ) , define ( "kredits-web/routes/signup/github" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , redirect : function ( ) { var e
@@ -656,8 +692,8 @@ return r(this,l),(e=s.apply(this,arguments)).stores={contributors:c("contributor
e . default = l } ) ) , define ( "kredits-web/services/community-funds" , [ "exports" , "ember-concurrency-decorators" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { var r , o , i , u , a , s , c
function l ( e , t ) { var n = Object . keys ( e )
if ( Object . getOwnPropertySymbols ) { var r = Object . getOwnPropertySymbols ( e )
t && ( r = r . filter ( ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) ) , n . push . apply ( n , r ) } return n } function d ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { }
t % 2 ? l ( Object ( n ) , ! 0 ) . forEach ( ( function ( t ) { k ( e , t , n [ t ] ) } ) ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : l ( Object ( n ) ) . forEach ( ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) ) } return e } function f ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function p ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function b ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function m ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ]
t && ( r = r . filter ( ( function ( t ) { return Object . getOwnPropertyDescriptor ( e , t ) . enumerable } ) ) ) , n . push . apply ( n , r ) } return n } function f ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var n = null != arguments [ t ] ? arguments [ t ] : { }
t % 2 ? l ( Object ( n ) , ! 0 ) . forEach ( ( function ( t ) { k ( e , t , n [ t ] ) } ) ) : Object . getOwnPropertyDescriptors ? Object . defineProperties ( e , Object . getOwnPropertyDescriptors ( n ) ) : l ( Object ( n ) ) . forEach ( ( function ( t ) { Object . defineProperty ( e , t , Object . getOwnPropertyDescriptor ( n , t ) ) } ) ) } return e } function d ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function p ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function b ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function m ( 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 y ( e , t ) { return ( y = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function h ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
if ( "function" == typeof Proxy ) return ! 0
@@ -680,20 +716,20 @@ return p(g(e=l.call.apply(l,[this].concat(n))),"exchangeRates",a,g(e)),p(g(e),"b
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , fetch ( n . default . btcBalanceAPI ) . then ( ( function ( e ) { return e . json ( ) } ) ) . then ( ( function ( e ) { return t . processBalances ( e ) } ) ) . catch ( ( function ( e ) { console . log ( "[community-funds] Fetching balances failed:" ) , console . error ( e ) } ) )
case 2 : case "end" : return e . stop ( ) } } ) , e ) } ) ) } , { key : "processBalances" , value : ( i = regeneratorRuntime . mark ( ( function e ( t ) { var n , r
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , this . exchangeRates . fetchRates ( )
case 2 : n = navigator . language || navigator . userLanguage , r = t . confirmed _balance * this . exchangeRates . btcusd , t . balanceUSD = Math . round ( r ) . toLocaleString ( n ) , this . balances . pushObject ( d ( d ( { } , t ) , { token : { name : "BTC" , symbol : "BTC" } } ) ) , this . balancesLoaded = ! 0
case 2 : n = navigator . language || navigator . userLanguage , r = t . confirmed _balance * this . exchangeRates . btcusd , t . balanceUSD = Math . round ( r ) . toLocaleString ( n ) , this . balances . pushObject ( f ( f ( { } , t ) , { token : { name : "BTC" , symbol : "BTC" } } ) ) , this . balancesLoaded = ! 0
case 7 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) , u = function ( ) { var e = this , t = arguments
return new Promise ( ( function ( n , r ) { var o = i . apply ( e , t )
function u ( e ) { f ( o , n , r , u , a , "next" , e ) } function a ( e ) { f ( o , n , r , u , a , "throw" , e ) } u ( void 0 ) } ) ) } , function ( e ) { return u . apply ( this , arguments ) } ) } ] ) && m ( t . prototype , r ) , o && m ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , v } ( ) ) . prototype , "exchangeRates" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = O ( u . prototype , "balancesLoaded" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 1 } } ) , c = O ( u . prototype , "balances" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , O ( u . prototype , "fetchBalances" , [ t . task ] , Object . getOwnPropertyDescriptor ( u . prototype , "fetchBalances" ) , u . prototype ) , u )
function u ( e ) { d ( o , n , r , u , a , "next" , e ) } function a ( e ) { d ( o , n , r , u , a , "throw" , e ) } u ( void 0 ) } ) ) } , function ( e ) { return u . apply ( this , arguments ) } ) } ] ) && m ( t . prototype , r ) , o && m ( t , o ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , v } ( ) ) . prototype , "exchangeRates" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , s = O ( u . prototype , "balancesLoaded" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 1 } } ) , c = O ( u . prototype , "balances" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , O ( u . prototype , "fetchBalances" , [ t . task ] , Object . getOwnPropertyDescriptor ( u . prototype , "fetchBalances" ) , u . prototype ) , u )
e . default = _ } ) ) , define ( "kredits-web/services/exchange-rates" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { var n , r , o , i , u
function a ( e , t , n , r ) { n && Object . defineProperty ( e , t , { enumerable : n . enumerable , configurable : n . configurable , writable : n . writable , value : n . initializer ? n . initializer . call ( r ) : void 0 } ) } function s ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function c ( 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 l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function d ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function l ( e , t ) { return ( l = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function f ( 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 , r = b ( e )
if ( t ) { var o = b ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return f ( this , n ) } } function f ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
return d ( this , n ) } } function d ( 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 p ( e ) } function p ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function b ( e ) { return ( b = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function m ( e , t , n , r , o ) { var i = { }
@@ -707,18 +743,18 @@ case 3:return n=e.sent,e.abrupt("return",parseFloat(n.vwap))
case 7 : return e . prev = 7 , e . t0 = e . catch ( 0 ) , console . error ( "Could not fetch exchange rate from Bitstamp:" , e . t0 ) , e . abrupt ( "return" , 0 )
case 11 : case "end" : return e . stop ( ) } } ) , e , null , [ [ 0 , 7 ] ] ) } ) ) ) ) . apply ( this , arguments ) } var k = ( n = Ember . _tracked , r = Ember . _tracked , i = m ( ( o = function ( e ) { ( function ( e , t ) { if ( "function" != typeof t && null !== t ) throw new TypeError ( "Super expression must either be null or a function" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && l ( e , t ) } ) ( b , Ember . Service )
var t , n , r , o , f = d ( b )
var t , n , r , o , d = f ( b )
function b ( ) { var e
s ( this , b )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( p ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "btceur" , i , p ( e ) ) , a ( p ( e ) , "btcusd" , u , p ( e ) ) , e } return t = b , ( n = [ { key : "fetchRates" , value : ( o = h ( regeneratorRuntime . mark ( ( function e ( ) { var t , n = arguments
return a ( p ( e = d . call . apply ( d , [ this ] . concat ( n ) ) ) , "btceur" , i , p ( e ) ) , a ( p ( e ) , "btcusd" , u , p ( e ) ) , e } return t = b , ( n = [ { key : "fetchRates" , value : ( o = h ( regeneratorRuntime . mark ( ( function e ( ) { var t , n = arguments
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : t = n . length > 0 && void 0 !== n [ 0 ] ? n [ 0 ] : "bitstamp" , e . t0 = t , e . next = "bitstamp" === e . t0 ? 4 : 10
break
case 4 : return e . next = 6 , g ( "btceur" )
case 6 : return this . btceur = e . sent , e . next = 9 , g ( "btcusd" )
case 9 : this . btcusd = e . sent
case 10 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , function ( ) { return o . apply ( this , arguments ) } ) } ] ) && c ( t . prototype , n ) , r && c ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , b } ( ) ) . prototype , "btceur" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return 0 } } ) , u = m ( o . prototype , "btcusd" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return 0 } } ) , o )
e . default = k } ) ) , define ( "kredits-web/services/kredits" , [ "exports" , "ethers" , "@kredits/contracts" , "ember-concurrency" , "kredits-web/utils/group-by" , "kredits-web/utils/process-contributor-data" , "kredits-web/utils/process-contribution-data" , "kredits-web/utils/process-reimbursement-data" , "kredits-web/utils/format-kredits" , "kredits-web/utils/switch-network" , "kredits-web/config/environment" , "kredits-web/models/contributor" , "kredits-web/models/contribution" , "kredits-web/models/reimbursement" ] , ( function ( e , t , n , r , o , i , u , a , s , c , l , d , f , p ) { function b ( e ) { return function ( e ) { if ( Array . isArray ( e ) ) return h ( e ) } ( e ) || function ( e ) { if ( "undefined" != typeof Symbol && null != e [ Symbol . iterator ] || null != e [ "@@iterator" ] ) return Array . from ( e ) } ( e ) || y ( e ) || function ( ) { throw new TypeError ( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) } ( ) } function m ( e , t ) { var n = "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
e . default = k } ) ) , define ( "kredits-web/services/kredits" , [ "exports" , "ethers" , "@kredits/contracts" , "ember-concurrency" , "kredits-web/utils/group-by" , "kredits-web/utils/process-contributor-data" , "kredits-web/utils/process-contribution-data" , "kredits-web/utils/process-reimbursement-data" , "kredits-web/utils/format-kredits" , "kredits-web/utils/switch-network" , "kredits-web/config/environment" , "kredits-web/models/contributor" , "kredits-web/models/contribution" , "kredits-web/models/reimbursement" ] , ( function ( e , t , n , r , o , i , u , a , s , c , l , f , d , p ) { function b ( e ) { return function ( e ) { if ( Array . isArray ( e ) ) return h ( e ) } ( e ) || function ( e ) { if ( "undefined" != typeof Symbol && null != e [ Symbol . iterator ] || null != e [ "@@iterator" ] ) return Array . from ( e ) } ( e ) || y ( e ) || function ( ) { throw new TypeError ( "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) } ( ) } function m ( e , t ) { var n = "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( ! n ) { if ( Array . isArray ( e ) || ( n = y ( e ) ) || t && e && "number" == typeof e . length ) { n && ( e = n )
var r = 0 , o = function ( ) { }
return { s : o , n : function ( ) { return r >= e . length ? { done : ! 0 } : { done : ! 1 , value : e [ r ++ ] } } , e : function ( e ) { throw e } , f : o } } 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 i , u = ! 0 , a = ! 1
@@ -730,15 +766,15 @@ for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n]
return r } function v ( e , t , n , r , o , i , u ) { try { var a = e [ i ] ( u ) , s = a . value } catch ( c ) { return void n ( c ) } a . done ? t ( s ) : Promise . resolve ( s ) . then ( r , o ) } function g ( e ) { return function ( ) { var t = this , n = arguments
return new Promise ( ( function ( r , o ) { var i = e . apply ( t , n )
function u ( e ) { v ( i , r , o , u , a , "next" , e ) } function a ( e ) { v ( i , r , o , u , a , "throw" , e ) } u ( void 0 ) } ) ) } } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var w = { Contributor : d . default , Contribution : f . default , Reimbursement : p . default } , k = Ember . Service . extend ( { browserCache : Ember . inject . service ( ) , currentBlock : null , currentUserAccounts : null , currentUser : null , contributors : null , contributions : null , reimbursements : null , githubAccessToken : null , currentUserIsContributor : Ember . computed . notEmpty ( "currentUser" ) , currentUserIsCore : Ember . computed . alias ( "currentUser.isCore" ) , hasAccounts : Ember . computed . notEmpty ( "currentUserAccounts" ) , contributorsMined : Ember . computed . filterBy ( "contributors" , "id" ) , contributorsSorting : Object . freeze ( [ "name:asc" ] ) , contributorsSorted : Ember . computed . sort ( "contributorsMined" , "contributorsSorting" ) , contributorsNeedSync : ! 1 , contributionsNeedSync : ! 1 , reimbursementsNeedSync : ! 1 , missingHistoricContributionsCount : 0 , init : function ( ) { this . _super . apply ( this , arguments ) , this . set ( "contributors" , [ ] ) , this . set ( "contributions" , [ ] ) , this . set ( "reimbursements" , [ ] ) , window . ethereum && ( window . ethereum . on ( "chainChanged" , this . handleUserChainChanged ) , window . ethereum . on ( "accountsChanged" , this . handleAccountsChanged ) ) } , handleUserChainChanged : function ( e ) { console . log ( "User-provided chain ID changed to" , e ) , window . location . reload ( ) } , handleAccountsChanged : function ( e ) { console . log ( "User-provided accounts changed to" , e ) , window . location . reload ( ) } , getEthProvider : function ( ) { var e , n = this
return new Promise ( ( function ( r ) { function o ( ) { console . debug ( "[kredits] Creating new instance from npm module class" ) , console . debug ( "[kredits] providerURL: " . concat ( l . default . web3ProviderUrl ) ) , e = new t . default . providers . JsonRpcProvider ( l . default . web3ProviderUrl ) , r ( { ethProvider : e , ethSigner : null } ) } function i ( ) { return ( i = g ( regeneratorRuntime . mark ( ( function n ( i , u ) { var a , s , d , f
var w = { Contributor : f . default , Contribution : d . default , Reimbursement : p . default } , k = Ember . Service . extend ( { browserCache : Ember . inject . service ( ) , currentBlock : null , currentUserAccounts : null , currentUser : null , contributors : null , contributions : null , reimbursements : null , githubAccessToken : null , currentUserIsContributor : Ember . computed . notEmpty ( "currentUser" ) , currentUserIsCore : Ember . computed . alias ( "currentUser.isCore" ) , hasAccounts : Ember . computed . notEmpty ( "currentUserAccounts" ) , contributorsMined : Ember . computed . filterBy ( "contributors" , "id" ) , contributorsSorting : Object . freeze ( [ "name:asc" ] ) , contributorsSorted : Ember . computed . sort ( "contributorsMined" , "contributorsSorting" ) , contributorsNeedSync : ! 1 , contributionsNeedSync : ! 1 , reimbursementsNeedSync : ! 1 , missingHistoricContributionsCount : 0 , init : function ( ) { this . _super . apply ( this , arguments ) , this . set ( "contributors" , [ ] ) , this . set ( "contributions" , [ ] ) , this . set ( "reimbursements" , [ ] ) , window . ethereum && ( window . ethereum . on ( "chainChanged" , this . handleUserChainChanged ) , window . ethereum . on ( "accountsChanged" , this . handleAccountsChanged ) ) } , handleUserChainChanged : function ( e ) { console . log ( "User-provided chain ID changed to" , e ) , window . location . reload ( ) } , handleAccountsChanged : function ( e ) { console . log ( "User-provided accounts changed to" , e ) , window . location . reload ( ) } , getEthProvider : function ( ) { var e , n = this
return new Promise ( ( function ( r ) { function o ( ) { console . debug ( "[kredits] Creating new instance from npm module class" ) , console . debug ( "[kredits] providerURL: " . concat ( l . default . web3ProviderUrl ) ) , e = new t . default . providers . JsonRpcProvider ( l . default . web3ProviderUrl ) , r ( { ethProvider : e , ethSigner : null } ) } function i ( ) { return ( i = g ( regeneratorRuntime . mark ( ( function n ( i , u ) { var a , s , f , d
return regeneratorRuntime . wrap ( ( function ( n ) { for ( ; ; ) switch ( n . prev = n . next ) { case 0 : return console . debug ( "[kredits] Using user-provided Web3 instance, e.g. from Metamask" ) , e = new t . default . providers . Web3Provider ( i ) , n . next = 4 , e . getNetwork ( )
case 4 : return a = n . sent , n . next = 7 , e . listAccounts ( )
case 7 : if ( s = n . sent , d = l . default . web3ChainId , ! Ember . isEmpty ( s ) ) { n . next = 11
case 7 : if ( s = n . sent , f = l . default . web3ChainId , ! Ember . isEmpty ( s ) ) { n . next = 11
break } return n . abrupt ( "return" , o ( ) )
case 11 : if ( a . chainId === d ) { n . next = 15
case 11 : if ( a . chainId === f ) { n . next = 15
break } return n . abrupt ( "return" , ( 0 , c . default ) ( ) )
case 15 : u . set ( "currentUserAccounts" , s ) , f = 0 === s . length ? null : e . getSigner ( ) , r ( { ethProvider : e , ethSigner : f } )
case 15 : u . set ( "currentUserAccounts" , s ) , d = 0 === s . length ? null : e . getSigner ( ) , r ( { ethProvider : e , ethSigner : d } )
case 18 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ) . apply ( this , arguments ) } window . ethereum ? function ( e , t ) { i . apply ( this , arguments ) } ( window . ethereum , n ) : o ( ) } ) ) } , connectWallet : function ( ) { return g ( regeneratorRuntime . mark ( ( function e ( ) { var n , r , o , i
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return n = new t . default . providers . Web3Provider ( window . ethereum ) , e . next = 3 , n . getNetwork ( )
case 3 : return r = e . sent , o = l . default . web3ChainId , i = "0x" . concat ( Number ( o ) . toString ( 16 ) ) , e . prev = 6 , e . next = 9 , window . ethereum . request ( { method : "eth_requestAccounts" } )
@@ -784,7 +820,7 @@ e.github_uid=t}return console.debug("[kredits] add contributor",e),this.kredits.
t . github _uid = n } return console . debug ( "[kredits] update contributor" , t ) , this . kredits . Contributor . updateProfile ( e , t , { gasLimit : 35e4 } ) . then ( ( function ( e ) { console . debug ( "[kredits] updateProfile response" , e ) } ) ) } , fetchContributor : function ( e ) { var t = this
return g ( regeneratorRuntime . mark ( ( function n ( ) { return regeneratorRuntime . wrap ( ( function ( n ) { for ( ; ; ) switch ( n . prev = n . next ) { case 0 : return console . debug ( "[kredits] Fetching contributor from the network" ) , n . abrupt ( "return" , t . kredits . Contributor . getById ( e ) . then ( ( function ( e ) { return t . loadContributorFromData ( e ) } ) ) )
case 2 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ( ) } , fetchContributors : function ( ) { var e = this
return console . debug ( "[kredits] Fetching all contributors from the network" ) , this . kredits . Contributor . all ( ) . then ( ( function ( t ) { return t . forEach ( ( function ( t ) { e . loadContributorFromData ( t ) } ) ) } ) ) . then ( ( function ( ) { return e . cacheLoadedContributors ( ) } ) ) } , loadContributorFromData : function ( e ) { var t = d . default . create ( ( 0 , i . default ) ( e ) ) , n = this . contributors . findBy ( "id" , t . id )
return console . debug ( "[kredits] Fetching all contributors from the network" ) , this . kredits . Contributor . all ( ) . then ( ( function ( t ) { return t . forEach ( ( function ( t ) { e . loadContributorFromData ( t ) } ) ) } ) ) . then ( ( function ( ) { return e . cacheLoadedContributors ( ) } ) ) } , loadContributorFromData : function ( e ) { var t = f . default . create ( ( 0 , i . default ) ( e ) ) , n = this . contributors . findBy ( "id" , t . id )
return n && this . contributors . removeObject ( n ) , this . contributors . pushObject ( t ) , t } , cacheLoadedContributors : function ( ) { var e = this
return g ( regeneratorRuntime . mark ( ( function t ( ) { var n , r , o
return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : n = m ( e . contributors ) , t . prev = 1 , n . s ( )
@@ -798,15 +834,15 @@ case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0)
case 14 : return t . prev = 14 , n . f ( ) , t . finish ( 14 )
case 17 : return console . debug ( "[kredits] Cached " . concat ( e . contributors . length , " contributors in browser storage" ) ) , t . abrupt ( "return" , Promise . resolve ( ) )
case 19 : case "end" : return t . stop ( ) } } ) , t , null , [ [ 1 , 11 , 14 , 17 ] ] ) } ) ) ) ( ) } , loadContributorsFromCache : function ( ) { var e = this
return g ( regeneratorRuntime . mark ( ( function t ( ) { return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . abrupt ( "return" , e . browserCache . contributors . iterate ( ( function ( t ) { e . contributors . pushObject ( d . default . create ( JSON . parse ( t ) ) ) } ) ) . then ( ( function ( ) { console . debug ( "[kredits] Loaded " . concat ( e . contributors . length , " contributors from cache" ) ) } ) ) )
return g ( regeneratorRuntime . mark ( ( function t ( ) { return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . abrupt ( "return" , e . browserCache . contributors . iterate ( ( function ( t ) { e . contributors . pushObject ( f . default . create ( JSON . parse ( t ) ) ) } ) ) . then ( ( function ( ) { console . debug ( "[kredits] Loaded " . concat ( e . contributors . length , " contributors from cache" ) ) } ) ) )
case 1 : case "end" : return t . stop ( ) } } ) , t ) } ) ) ) ( ) } , syncContributors : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , this . fetchContributors ( )
case 2 : this . set ( "contributorsNeedSync" , ! 1 )
case 3 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , addContribution : function ( e ) { var t = this
return console . debug ( "[kredits] Adding contribution" , e ) , this . kredits . Contribution . add ( e , { gasLimit : 3e5 } ) . then ( ( function ( n ) { console . debug ( "[kredits] Contribution.add response" , n ) , e . contributor = t . contributors . findBy ( "id" , e . contributorId )
var r = f . default . create ( e )
var r = d . default . create ( e )
return r . set ( "pendingTx" , n ) , r . set ( "confirmedAtBlock" , t . currentBlock + 40320 ) , t . contributions . pushObject ( r ) , r } ) ) } , fetchContributions : function ( ) { var e = this , t = arguments . length > 0 && void 0 !== arguments [ 0 ] ? arguments [ 0 ] : { page : { size : 200 } }
return console . debug ( "[kredits] Fetching contributions from the network" ) , this . kredits . Contribution . all ( t ) . then ( ( function ( t ) { return t . map ( ( function ( t ) { return e . loadContributionFromData ( t ) } ) ) } ) ) . then ( ( function ( t ) { var n = t . map ( ( function ( t ) { return e . browserCache . contributions . setItem ( t . id . toString ( ) , t . serialize ( ) ) } ) )
return Promise . all ( n ) . then ( ( function ( ) { console . debug ( "[kredits] Cached " . concat ( t . length , " contributions in browser storage" ) ) } ) ) } ) ) } , loadContributionFromData : function ( e ) { var t = f . default . create ( ( 0 , u . default ) ( e ) )
return Promise . all ( n ) . then ( ( function ( ) { console . debug ( "[kredits] Cached " . concat ( t . length , " contributions in browser storage" ) ) } ) ) } ) ) } , loadContributionFromData : function ( e ) { var t = d . default . create ( ( 0 , u . default ) ( e ) )
t . set ( "contributor" , this . contributors . findBy ( "id" , e . contributorId ) )
var n = this . contributions . findBy ( "id" , t . id )
return n && this . contributions . removeObject ( n ) , this . contributions . pushObject ( t ) , t } , cacheLoadedContributions : function ( ) { var e = this
@@ -822,7 +858,7 @@ case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0)
case 14 : return t . prev = 14 , n . f ( ) , t . finish ( 14 )
case 17 : return console . debug ( "[kredits] Cached " . concat ( e . contributions . length , " contributions in browser storage" ) ) , t . abrupt ( "return" , Promise . resolve ( ) )
case 19 : case "end" : return t . stop ( ) } } ) , t , null , [ [ 1 , 11 , 14 , 17 ] ] ) } ) ) ) ( ) } , loadContributionsFromCache : function ( ) { var e = this
return g ( regeneratorRuntime . mark ( ( function t ( ) { return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . abrupt ( "return" , e . browserCache . contributions . iterate ( ( function ( t ) { e . contributions . pushObject ( f . default . create ( JSON . parse ( t ) ) ) } ) ) . then ( ( function ( ) { console . debug ( "[kredits] Loaded " . concat ( e . contributions . length , " contributions from cache" ) ) } ) ) )
return g ( regeneratorRuntime . mark ( ( function t ( ) { return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . abrupt ( "return" , e . browserCache . contributions . iterate ( ( function ( t ) { e . contributions . pushObject ( d . default . create ( JSON . parse ( t ) ) ) } ) ) . then ( ( function ( ) { console . debug ( "[kredits] Loaded " . concat ( e . contributions . length , " contributions from cache" ) ) } ) ) )
case 1 : case "end" : return t . stop ( ) } } ) , t ) } ) ) ) ( ) } , contributionTasks : ( 0 , r . taskGroup ) ( ) . enqueue ( ) , syncContributions : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , this . fetchNewContributions . perform ( )
case 2 : return e . next = 4 , this . syncUnconfirmedContributions . perform ( )
case 4 : return e . next = 6 , this . updateMissingHistoricContributionsCount ( )
@@ -948,7 +984,7 @@ return this.kredits.Reimbursement.functions.veto(e,{gasLimit:3e5}).then((functio
return g ( regeneratorRuntime . mark ( ( function r ( ) { var o , i , u , a , s , c
return regeneratorRuntime . wrap ( ( function ( r ) { for ( ; ; ) switch ( r . prev = r . next ) { case 0 : for ( console . debug ( "[kredits] Contributor add/update event received for ID" , e ) , o = t . length , i = new Array ( o > 1 ? o - 1 : 0 ) , u = 1 ; u < o ; u ++ ) i [ u - 1 ] = t [ u ]
return console . debug ( "[kredits] Event data:" , i ) , r . next = 5 , n . kredits . Contributor . getById ( e )
case 5 : a = r . sent , s = d . default . create ( a ) , ( c = n . contributors . findBy ( "id" , e ) ) && n . contributors . removeObject ( c ) , n . contributors . pushObject ( s )
case 5 : a = r . sent , s = f . default . create ( a ) , ( c = n . contributors . findBy ( "id" , e ) ) && n . contributors . removeObject ( c ) , n . contributors . pushObject ( s )
case 10 : case "end" : return r . stop ( ) } } ) , r ) } ) ) ) ( ) } , handleContributionAdded : function ( e , t , n ) { var r = this
return g ( regeneratorRuntime . mark ( ( function o ( ) { var i , u , a
return regeneratorRuntime . wrap ( ( function ( o ) { for ( ; ; ) switch ( o . prev = o . next ) { case 0 : return console . debug ( "[kredits] ContributionAdded event received" , { id : e , contributorId : t , amount : n } ) , ( i = r . contributions . find ( ( function ( e ) { return null === e . id && e . contributorId === t && e . amount . toString ( ) === n . toString ( ) } ) ) ) && r . contributions . removeObject ( i ) , o . next = 5 , r . kredits . Contribution . getById ( e )
@@ -967,12 +1003,14 @@ return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:
case 4 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ( ) } , handleTransfer : function ( e , t , n ) { n = n . toNumber ( ) , this . contributors . findBy ( "address" , e ) . decrementProperty ( "balance" , n ) , this . contributors . findBy ( "address" , t ) . incrementProperty ( "balance" , n ) } } )
e . default = k } ) ) , define ( "kredits-web/services/moment" , [ "exports" , "ember-moment/services/moment" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . get , o = t . default . extend ( { defaultFormat : r ( n . default , "moment.outputFormat" ) } )
e . default = o } ) ) , define ( "kredits-web/templates/application-loading " , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
e . default = o } ) ) , define ( "kredits-web/templates/about " , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "qDPvmLqW" , block : '{"symbols":[],"statements":[[10,"main"],[14,1,"about"],[12],[2,"\\n "],[10,"div"],[14,1,"aside"],[12],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"content"],[12],[2,"\\n "],[10,"section"],[14,0,"text"],[12],[2,"\\n "],[10,"h2"],[12],[2,"What is this?"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n You have found the contribution dashboard and budget management app of the\\n "],[10,"a"],[14,6,"https://kosmos.org"],[14,"target","_blank"],[14,"rel","noreferrer noopener"],[12],[2,"Kosmos"],[13],[2,"\\n open-source co-operative.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n We use this app to track what people contribute to all parts of our\\n projects (not just code), as well as for managing our community\'s budget.\\n "],[13],[2,"\\n "],[10,"h2"],[12],[2,"Why?"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n We are trying out a new form of co-operative, native to the Internet,\\n creating and sharing digital resources the same way traditional\\n co-operatives share physical ones.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n By knowing roughly how much people contribute, we are able to reward\\n co-operative members who contribute their time with money contributed\\n by the ones who don\'t.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n In addition to open-source grant payouts, all contributors can also propose\\n reimbursements for specific expenses they covered on behalf of the\\n community.\\n "],[13],[2,"\\n "],[10,"h2"],[12],[2,"How?"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Instead of notaries, lawyers, courts, or banks, we record data and manage\\n certain decisions on a decentralized ledger called\\n "],[10,"a"],[14,6,"https://rootstock.io/"],[14,"target","_blank"],[14,"rel","noreferrer noopener"],[12],[2,"Rootstock"],[13],[2,",\\n which is cryptographically tied to the bitcoin timechain.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n By doing this, we can ensure community control over the budget, as well as\\n full transparency and verifiability of everything that happens. It also\\n allows us to quickly, cheaply, and reliably send our open-source grants to\\n anyone who\'s contributing, no matter where they are on this beautiful\\n planet.\\n "],[13],[2,"\\n "],[10,"h2"],[12],[2,"Kredits"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n All contributions are rewarded with so-called kredits. They are both\\n credits in the traditional sense of public attribution, as well as a\\n measure of how much and how regularly someone has added value to the\\n community and its products and services.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Kredits are considered for example for grant payouts, as well as\\n permissions for certain actions like vetos or votes. They may also be used\\n to access "],[10,"a"],[14,6,"https://kosmos.org/services/"],[12],[2,"hosted services"],[13],[2," for free,\\n or to unlock additional features on otherwise free services.\\n "],[13],[2,"\\n "],[10,"h2"],[12],[2,"Getting started"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n We\'d be delighted to welcome you as a new contributor!\\n If you\'d like to start collecting kredits for your contributions, you can\\n "],[8,"link-to",[],[["@route"],["signup"]],[["default"],[{"statements":[[2,"create a contributor profile"]],"parameters":[]}]]],[2," now.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Next, you could learn more about\\n "],[10,"a"],[14,6,"https://community.kosmos.org/t/how-kredits-for-contributions-are-proposed-and-confirmed/176"],[12],[2,"how kredits are proposed and issued"],[13],[2,".\\n If you want to dive deeper into how this all works, head over to the\\n "],[10,"a"],[14,6,"https://wiki.kosmos.org/Kredits"],[12],[2,"Kredits documentation"],[13],[2,"\\n page on our (soon to be phased out) wiki.\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"empty"],[12],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/about.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/application-loading" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "rH2U9nfi" , block : '{"symbols":[],"statements":[[8,"loading-spinner",[],[[],[]],null],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/application-loading.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/application" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "v+/8V/ng " , block : '{"symbols":[],"statements":[[10,"header"],[14,1,"topbar"],[12],[2,"\\n "],[10,"h1"],[12],[8,"link-to",[],[["@route"],["dashboard"]],[["default"],[{"statements":[[2,"Kosmos Kredits"]],"parameters":[]}]]],[13],[2,"\\n "],[8,"topbar-account-panel",[],[[],[]],null],[2,"\\n"],[13],[2,"\\n\\n"],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,"\\n"]],"hasEval":false,"upvars":["-outlet","component"]}' , meta : { moduleName : "kredits-web/templates/application.hbs" } } )
var t = Ember . HTMLBars . template ( { id : "7nDDmrRX " , block : '{"symbols":[],"statements":[[10,"header"],[14,1,"topbar"],[12],[2,"\\n "],[10,"h1"],[12],[8,"link-to",[],[["@route"],["dashboard"]],[["default"],[{"statements":[[2,"Kredits"]],"parameters":[]}]]],[13],[2,"\\n "],[8,"topbar-account-panel",[],[[],[]],null],[2,"\\n"],[13],[2,"\\n\\n"],[8,"main-navigation-menu",[],[[],[]],null],[2,"\\n\\n"],[ 1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,"\\n"]],"hasEval":false,"upvars":["-outlet","component"]}' , meta : { moduleName : "kredits-web/templates/application.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/budget" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "7cWkGD9u " , block : '{"symbols":[],"statements":[[10,"main"],[14,1,"budget"],[12],[2,"\\n\\n "],[10,"div"],[14,1,"aside"],[12],[2,"\\n "],[3," <section id=\\"main-nav\\"> "],[2,"\\n "],[3," <header> "],[2,"\\n "],[3," <h2>Budget</h2> "],[2,"\\n "],[3," </header> "],[2,"\\n "],[3," <div class=\\"content\\"> "],[2,"\\n "],[3," <ul> "],[2,"\\n "],[3," <li> "],[2,"\\n "],[3," <LinkTo @route=\\"budget.expenses\\">Expenses</LinkTo> "],[2,"\\n "],[3," </li> "],[2,"\\n "],[3," <li> "],[2,"\\n "],[3," <a href=\\"#\\">Rewards</a> "],[2,"\\n "],[3," </li> "],[2,"\\n "],[3," </ul> "],[2,"\\n "],[3," </div> "],[2,"\\n "],[3," </section> "],[2,"\\n\\n "],[10,"section"],[14,1,"funds"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Community funds"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"budget-balances",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"content"],[12],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Proposed Reimbursements"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsUnconfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Expense s"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"empty"],[12],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":["if"]}' , meta : { moduleName : "kredits-web/templates/budget.hbs" } } )
var t = Ember . HTMLBars . template ( { id : "NF9wJ3hK " , block : '{"symbols":[],"statements":[[10,"main"],[14,1,"budget"],[12],[2,"\\n\\n "],[10,"div"],[14,1,"aside"],[12],[2,"\\n "],[3," <section id=\\"main-nav\\"> "],[2,"\\n "],[3," <header> "],[2,"\\n "],[3," <h2>Budget</h2> "],[2,"\\n "],[3," </header> "],[2,"\\n "],[3," <div class=\\"content\\"> "],[2,"\\n "],[3," <ul> "],[2,"\\n "],[3," <li> "],[2,"\\n "],[3," <LinkTo @route=\\"budget.expenses\\">Expenses</LinkTo> "],[2,"\\n "],[3," </li> "],[2,"\\n "],[3," <li> "],[2,"\\n "],[3," <a href=\\"#\\">Rewards</a> "],[2,"\\n "],[3," </li> "],[2,"\\n "],[3," </ul> "],[2,"\\n "],[3," </div> "],[2,"\\n "],[3," </section> "],[2,"\\n\\n "],[10,"section"],[14,1,"funds"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Community funds"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"budget-balances",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"content"],[12],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Proposed Reimbursements"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsUnconfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Reimbursement s"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"empty"],[12],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":["if"]}' , meta : { moduleName : "kredits-web/templates/budget.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/budget/expenses" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "GPyv0u4G" , block : '{"symbols":[],"statements":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],"hasEval":false,"upvars":["-outlet","component"]}' , meta : { moduleName : "kredits-web/templates/budget/expenses.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-account-gitea-kosmos-org" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -998,7 +1036,7 @@ var t=Ember.HTMLBars.template({id:"clbPf+4y",block:'{"symbols":[],"statements":[
e . default = t } ) ) , define ( "kredits-web/templates/contributors/new" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "zY+qbRPK" , block : '{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-contributor"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Add contributor profile"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-contributor",[],[["@save"],[[30,[36,0],[[32,0],"save"],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action"]}' , meta : { moduleName : "kredits-web/templates/contributors/new.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/dashboard" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "x0i2G66s" , block : ' { "symbols" : [ ] , "statements" : [ [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "showIntroText" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "div" ] , [ 14 , 1 , "intro" ] , [ 15 , 0 , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showDetailsPane" ] ] , "with-details" ] , null ] ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "\\n Welcome to the contribution dashboard of the\\n " ] , [ 10 , "a" ] , [ 14 , 6 , "https://kosmos.org" ] , [ 14 , "target" , "_blank" ] , [ 14 , "rel" , "noreferrer noopener" ] , [ 12 ] , [ 2 , "Kosmos" ] , [ 13 ] , [ 2 , " project!\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "p" ] , [ 12 ] , [ 2 , "\\n If you want to learn more about what the numbers mean and how this works,\\n check out the\\n " ] , [ 10 , "a" ] , [ 14 , 6 , "https://wiki.kosmos.org/Kredits" ] , [ 14 , "target" , "_blank" ] , [ 14 , "rel" , "noreferrer noopener" ] , [ 12 ] , [ 2 , "Kredits documentation" ] , [ 13 ] , [ 2 , ".\\n If you want to start earning kredits for your contributions,\\n " ] , [ 8 , "link-to" , [ ] , [ [ "@route" ] , [ "signup" ] ] , [ [ "default" ] , [ { "statements" : [ [ 2 , "create a contributor profile" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , ".\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n" ] , [ 10 , "main" ] , [ 14 , 1 , "dashboard" ] , [ 15 , 0 , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showDetailsPane" ] ] , "with-details" ] , null ] ] , [ 12 ] , [ 2 , "\\n\\n " ] , [ 10 , "div" ] , [ 14 , 1 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "section" ] , [ 14 , 1 , "people" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "Contributors" ] , [ 13 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "link-to" , [ [ 24 , 0 , "button small green" ] ] , [ [ "@route" , "@title" ] , [ "contributors.new" , "Add contributor profile" ] ] , [ [ "default" ] , [ { "statements" : [ [ 2 , "add" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "contributor-list" , [ ] , [ [ "@contributorList" , "@showUnconfirmedKredits" , "@selectedContributorId" , "@loading" ] , [ [ 32 , 0 , [ "kreditsToplist" ] ] , [ 32 , 0 , [ "showUnconfirmedKredits" ] ] , [ 32 , 0 , [ "selectedContributorId" ] ] , [ 32 , 0 , [ "kredits" , "syncContributors" , "isRunning" ] ] ] ] , null ] , [ 2 , "\\n\\n " ] , [ 10 , "p" ] , [ 14 , 0 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "span" ] , [ 14 , 0 , "number" ] , [ 12 ] , [ 1 , [ 30 , [ 36 , 4 ] , [ [ 32 , 0 , [ "kredits" , "totalKreditsEarned" ] ] ] , null ] ] , [ 13 ] , [ 2 , " kredits confirmed and issued to\\n " ] , [ 10 , "span" ] , [ 14 , 0 , "number" ] , [ 12 ] , [ 1 , [ 32 , 0 , [ "contributorsWithKredits" , "length" ] ] ] , [ 13 ] , [ 2 , " contributors\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "p" ] , [ 14 , 0 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "input" , [ [ 24 , 1 , "hide-unnconfirmed-kredits" ] ] , [ [ "@type" , "@checked" ] , [ "checkbox" , [ 32 , 0 , [ "showUnconfirmedKredits" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 10 , "label" ] , [ 14 , "for" , "hide-unnconfirmed-kredits" ] , [ 12 ] , [ 2 , "Show unconfirmed kredits in toplist" ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "contributionsConfirmed" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-by-type" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "Contributions by type" ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "chart-contributions-by-type" , [ ] , [ [ "@contributions" ] , [ [ 32 , 0 , [ "contributions" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n\\n " ] , [ 10 , "div" ] , [ 14 , 1 , "contributions" ] , [ 12 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "contributionsUnconfirmed" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-unconfirmed" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "\\n Latest Contributions\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "button" ] , [ 15 , "onclick" , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "toggleQuickFilterUnconfirmed" ] , null ] ] , [ 15 , 0 , [ 31 , [ "small " , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showQuickFilterUnconfirmed" ] ] , "active" ] , null ] ] ] ] , [ 14 , 4 , "button" ] , [ 12 ] , [ 2 , "\\n filter\\n " ] , [ 13 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 8 , "link-to" , [ [ 24 , 0 , "button small green" ] ] , [ [ "@route" , "@title" ] , [ "contributions.new" , "Submit a contribution" ] ] , [ [ "default" ] , [ { "statements" : [ [ 2 , "add" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n" ] , [ 2 , " " ] , [ 8 , "contribution-list" , [ ] , [ [ "@contributions" , "@vetoContribution" , "@contractInteractionEnabled" , "@selectedContributionId" , "@showQuickFilter" , "@loading" ] , [ [ 32 , 0 , [ "contributionsUnconfirmedSorted" ] ] , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "vetoContribution" ] , null ] , [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] , [ 32 , 0 , [ "selectedContributionId" ] ] , [ 32 , 0 , [ "showQuickFilterUnconfirmed" ] ] , [ 32 , 0 , [ "kredits" , "syncContributions" , "isRunning" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ " contributionsConfirm Line truncated
var t = Ember . HTMLBars . template ( { id : "MmUvWH35" , block : ' { "symbols" : [ ] , "statements" : [ [ 10 , "main" ] , [ 14 , 1 , "dashboard" ] , [ 15 , 0 , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showDetailsPane" ] ] , "with-details" ] , null ] ] , [ 12 ] , [ 2 , "\\n\\n " ] , [ 10 , "div" ] , [ 14 , 1 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "section" ] , [ 14 , 1 , "people" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "Contributors" ] , [ 13 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "link-to" , [ [ 24 , 0 , "button small green" ] ] , [ [ "@route" , "@title" ] , [ "contributors.new" , "Add contributor profile" ] ] , [ [ "default" ] , [ { "statements" : [ [ 2 , "add" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "contributor-list" , [ ] , [ [ "@contributorList" , "@showUnconfirmedKredits" , "@selectedContributorId" , "@loading" ] , [ [ 32 , 0 , [ "kreditsToplist" ] ] , [ 32 , 0 , [ "showUnconfirmedKredits" ] ] , [ 32 , 0 , [ "selectedContributorId" ] ] , [ 32 , 0 , [ "kredits" , "syncContributors" , "isRunning" ] ] ] ] , null ] , [ 2 , "\\n\\n " ] , [ 10 , "p" ] , [ 14 , 0 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "span" ] , [ 14 , 0 , "number" ] , [ 12 ] , [ 1 , [ 30 , [ 36 , 4 ] , [ [ 32 , 0 , [ "kredits" , "totalKreditsEarned" ] ] ] , null ] ] , [ 13 ] , [ 2 , " kredits confirmed and issued to\\n " ] , [ 10 , "span" ] , [ 14 , 0 , "number" ] , [ 12 ] , [ 1 , [ 32 , 0 , [ "contributorsWithKredits" , "length" ] ] ] , [ 13 ] , [ 2 , " contributors\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "p" ] , [ 14 , 0 , "stats" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "input" , [ [ 24 , 1 , "hide-unnconfirmed-kredits" ] ] , [ [ "@type" , "@checked" ] , [ "checkbox" , [ 32 , 0 , [ "showUnconfirmedKredits" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 10 , "label" ] , [ 14 , "for" , "hide-unnconfirmed-kredits" ] , [ 12 ] , [ 2 , "Show unconfirmed kredits in toplist" ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "contributionsConfirmed" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-by-type" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "Contributions by type" ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "chart-contributions-by-type" , [ ] , [ [ "@contributions" ] , [ [ 32 , 0 , [ "contributions" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n\\n " ] , [ 10 , "div" ] , [ 14 , 1 , "contributions" ] , [ 12 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "contributionsUnconfirmed" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-unconfirmed" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "\\n Latest Contributions\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "button" ] , [ 15 , "onclick" , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "toggleQuickFilterUnconfirmed" ] , null ] ] , [ 15 , 0 , [ 31 , [ "small " , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showQuickFilterUnconfirmed" ] ] , "active" ] , null ] ] ] ] , [ 14 , 4 , "button" ] , [ 12 ] , [ 2 , "\\n filter\\n " ] , [ 13 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 8 , "link-to" , [ [ 24 , 0 , "button small green" ] ] , [ [ "@route" , "@title" ] , [ "contributions.new" , "Submit a contribution" ] ] , [ [ "default" ] , [ { "statements" : [ [ 2 , "add" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , " " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n" ] , [ 2 , " " ] , [ 8 , "contribution-list" , [ ] , [ [ "@contributions" , "@vetoContribution" , "@contractInteractionEnabled" , "@selectedContributionId" , "@showQuickFilter" , "@loading" ] , [ [ 32 , 0 , [ "contributionsUnconfirmedSorted" ] ] , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "vetoContribution" ] , null ] , [ 32 , 0 , [ "kredits" , "hasAccounts" ] ] , [ 32 , 0 , [ "selectedContributionId" ] ] , [ 32 , 0 , [ "showQuickFilterUnconfirmed" ] ] , [ 32 , 0 , [ "kredits" , "syncContributions" , "isRunning" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 2 ] , [ [ 32 , 0 , [ "contributionsConfirmed" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-confirmed" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , "Confirmed Contributions" ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "button" ] , [ 15 , "onclick" , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "toggleQuickFilterConfirmed" ] , null ] ] , [ 15 , 0 , [ 31 , [ "small " , [ 30 , [ 36 , 2 ] , [ [ 32 , 0 , [ "showQuickFilterConfirmed" ] ] , "active" ] , null ] ] ] ] , [ 14 , 4 , "button" ] , [ 12 ] , [ 2 , "\\n filter\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "div" ] , [ 14 , 0 , "content" ] , [ 12 ] , [ 2 , "\\n " ] , [ 8 , "contribution-list" , [ ] , [ [ "@contributions" , "@vetoContribution" , "@selectedContributionId" , "@showQuickFilter" ] , [ [ 32 , 0 , [ "contributionsConfirmedSorted" ] ] , [ 30 , [ 36 , 3 ] , [ [ 32 , 0 ] , "vetoContribution" ] , null ] , [ 32 , 0 , [ "selectedContributionId" ] ] , [ 32 , 0 , [ "showQuickFilterConfirmed" ] ] ] ] , null ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n " ] , [ 13 ] , [ 2 , "\\n" ] ] , "parameters" : [ ] } ] ] ] , [ Line truncated
e . default = t } ) ) , define ( "kredits-web/templates/dashboard/contributions/show" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "DufwIN5Z" , block : '{"symbols":[],"statements":[[10,"section"],[14,1,"contribution-details"],[15,0,[30,[36,0],[[32,0,["model","vetoed"]],"vetoed"],null]],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contribution #"],[1,[32,0,["model","id"]]],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,0,["model","amount"]]],[13],[2," \\n "],[10,"span"],[14,0,"symbol"],[12],[2,"₭S"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[10,"p"],[14,0,"who-what-when"],[12],[2,"\\n "],[10,"span"],[14,0,"contributor"],[12],[2,"\\n "],[8,"user-avatar",[],[["@contributor"],[[32,0,["model","contributor"]]]],null],[2,"\\n "],[8,"link-to",[],[["@route","@model"],["dashboard.contributors.show",[32,0,["model","contributor"]]]],[["default"],[{"statements":[[1,[32,0,["model","contributor","name"]]]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n contributed\\n "],[10,"span"],[14,0,"date"],[15,"title",[32,0,["model","iso8601Date"]]],[12],[1,[30,[36,1],[[32,0,["model","iso8601Date"]]],null]],[13],[2,":\\n "],[13],[2,"\\n "],[10,"h3"],[12],[1,[32,0,["model","description"]]],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Kind: "],[1,[32,0,["model","kind"]]],[2,"\\n "],[10,"br"],[12],[13],[2,"Status: "],[1,[30,[36,2],[[32,0,["model"]]],null]],[2,"\\n "],[13],[2,"\\n"],[6,[37,0],[[32,0,["model","url"]]],null,[["default"],[{"statements":[[2," "],[10,"p"],[12],[2,"\\n "],[10,"a"],[15,6,[32,0,["model","url"]]],[15,"title",[32,0,["model","description"]]],[14,0,"button"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Open URL\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,0],[[32,0,["model","vetoed"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"hint vetoed"],[12],[2,"\\n "],[10,"div"],[14,0,"icon"],[12],[2,"\\n "],[8,"icon-warning",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n This contribution has been vetoed, meaning no\\n kredits will be issued.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@model"],["contributions.resubmit",[32,0,["model"]]]],[["default"],[{"statements":[[2,"Re-submit contribution …"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"actions"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small"]],[["@route","@model"],["contributions.resubmit",[32,0,["model"]]]],[["default"],[{"statements":[[2,"Copy & edit as new"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["model","ipfsHash"]]],null,[["default"],[{"statements":[[2," "],[10,"a"],[15,6,[31,[[32,0,["ipfsGatewayUrl"]],"/",[32,0,["model","ipfsHash"]]]]],[14,0,"button small"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Inspect IPFS data\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","moment-from","item-status"]}' , meta : { moduleName : "kredits-web/templates/dashboard/contributions/show.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/dashboard/contributors/show" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
@@ -1007,14 +1045,14 @@ e.default=t})),define("kredits-web/templates/reimbursements/new",["exports"],(fu
var t = Ember . HTMLBars . template ( { id : "4ZGew5Lo" , block : '{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-item"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Submit a Reimbursement"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-reimbursement",[],[["@attributes"],[[32,0,["model","params"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/reimbursements/new.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/signup" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "vyvqw+Xa" , block : '{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n "],[10,"section"],[14,1,"signup"],[12],[2,"\\n "],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["-outlet","component"]}' , meta : { moduleName : "kredits-web/templates/signup.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/signup/account" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
e . default = t } ) )
define ( "kredits-web/templates/signup/account" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "juAngjy3" , block : '{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Complete your contributor profile"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg"],[12],[2,"\\n "],[10,"p"],[14,0,"mb-8"],[12],[2,"\\n Kredits allow you to to earn rewards for your contributions, in the form of\\n dynamic open-source grants. As a regular contributor, you can also take\\n part in the community\'s project governance and finances.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n In order to interact with the system you will need a\\n "],[10,"a"],[14,6,"https://rootstock.io"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"Rootstock"],[13],[2,"\\n wallet/account.\\n "],[13],[2,"\\n "],[10,"form"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n Rootstock address:"],[10,"br"],[12],[13],[2,"\\n "],[8,"input",[[24,"placeholder","0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4"],[16,0,[30,[36,0],[[32,0,["isValidEthAccount"]],"valid",""],null]]],[["@type","@value"],["text",[32,0,["accountAddress"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[16,"disabled",[32,0,["signupButtonDisabled"]]],[24,4,"button"],[4,[38,2],["click",[30,[36,1],[[32,0,["completeSignup"]]],null]],null],[12],[2,"\\n Complete my profile\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","fn","on"]}' , meta : { moduleName : "kredits-web/templates/signup/account.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/signup/complete" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "hc80mylW" , block : '{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Welcome aboard!"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg text-center"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n Congratulations. Your initial profile is now complete.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Why not say hi to your fellow contributors\\n "],[10,"a"],[14,6,"https://wiki.kosmos.org/Main_Page#Community_.2F_Getting_in_touch_.2F_Getting_involved"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"in one of our chat rooms"],[13],[2,"?.\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small"]],[["@route"],["dashboard"]],[["default"],[{"statements":[[2,"Return to dashboard"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/signup/complete.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/signup/index" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "NAvcexMu" , block : '{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Create your contributor profile"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n You have already contributed to a Kosmos project, or you are interested\\n in contributing in the near future? Fantastic!\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n In order to earn kredits for your contributions, you will need a\\n registered contributor profile. The quickest way to register is by\\n connecting one of the following accounts:\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,0],[[32,0],"connectGithub"],null]],[14,0,"icon"],[14,4,"button"],[12],[2,"\\n "],[8,"icon-account-github-com",[],[[],[]],null],[2,"\\n Connect GitHub\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action"]}' , meta : { moduleName : "kredits-web/templates/signup/index.hbs" } } )
e . default = t } ) )
define ( "kredits-web/utils/format-kredits" , [ "exports" , "ethers" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , r = t . default . utils . formatEther ( e )
e . default = t } ) ) , define ( "kredits-web/utils/format-kredits" , [ "exports" , "ethers" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , r = t . default . utils . formatEther ( e )
n . decimals || ( r = parseInt ( r ) . toString ( ) )
return r } } ) ) , define ( "kredits-web/utils/get-locale" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( ) { return navigator . languages && navigator . languages . length ? navigator . languages [ 0 ] : navigator . language } } ) ) , define ( "kredits-web/utils/group-by" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e , t ) { var n = Ember . A ( ) , r = e
r && r . forEach ( ( function ( e ) { var r = e [ t ] , o = n . findBy ( "value" , r )
@@ -1040,6 +1078,6 @@ case 13:e.next=16
break
case 15 : console . warn ( "Failed to switch chains:" , e . t0 . message )
case 16 : case "end" : return e . stop ( ) } } ) , e , null , [ [ 3 , 8 ] ] ) } ) ) ) ) . apply ( this , arguments ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( ) { return o . apply ( this , arguments ) } } ) ) , define ( "kredits-web/config/environment" , [ ] , ( function ( ) { try { var e = "kredits-web/config/environment" , t = document . querySelector ( 'meta[name="' + e + '"]' ) . getAttribute ( "content" ) , n = { default : JSON . parse ( decodeURIComponent ( t ) ) }
return Object . defineProperty ( n , "__esModule" , { value : ! 0 } ) , n } catch ( r ) { throw new Error ( 'Could not read config from meta tag with name "' + e + '".' ) } } ) ) , runningTests || require ( "kredits-web/app" ) . default . create ( { name : "kredits-web" , version : "2.0.0+bdeab512 " } )
return Object . defineProperty ( n , "__esModule" , { value : ! 0 } ) , n } catch ( r ) { throw new Error ( 'Could not read config from meta tag with name "' + e + '".' ) } } ) ) , runningTests || require ( "kredits-web/app" ) . default . create ( { name : "kredits-web" , version : "2.0.0+03e7f14d " } )
//# sourceMappingURL=kredits-web-c6399723d7220b2a99dd4f3a76ffcb1 0.map
//# sourceMappingURL=kredits-web-651a47539df240d969d59469e72da49 0.map