@@ -0,0 +1,872 @@
"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 ) } 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
try { return Boolean . prototype . valueOf . call ( Reflect . construct ( Boolean , [ ] , ( function ( ) { } ) ) ) , ! 0 } catch ( e ) { return ! 1 } } ( )
return function ( ) { var n , r = l ( e )
if ( t ) { var o = l ( this ) . constructor
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" )
e . prototype = Object . create ( t && t . prototype , { constructor : { value : e , writable : ! 0 , configurable : ! 0 } } ) , Object . defineProperty ( e , "prototype" , { writable : ! 1 } ) , t && u ( e , t ) } ) ( b , Ember . Application )
var n , s , l , f = a ( b )
function b ( ) { var e
i ( this , b )
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 = b , 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" ]
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
if ( "string" == typeof e ) return r ( e , t )
var n = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === n && e . constructor && ( n = e . constructor . name )
if ( "Map" === n || "Set" === n ) return Array . from ( e )
if ( "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return r ( 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 r ( 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 } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var o = Ember . Component . extend ( { kredits : Ember . inject . service ( ) , attributes : null , contributors : Ember . computed ( "kredits.contributorsSorted.[]" , ( function ( ) { return this . kredits . contributorsSorted . map ( ( function ( e ) { return { id : e . id . toString ( ) , name : e . name } } ) ) } ) ) , isValidContributor : Ember . computed . notEmpty ( "contributorId" ) , isValidKind : Ember . computed . notEmpty ( "kind" ) , isValidAmount : Ember . computed ( "amount" , ( function ( ) { return parseInt ( this . amount , 10 ) > 0 } ) ) , isValidDescription : Ember . computed . notEmpty ( "description" ) , isValidUrl : Ember . computed . notEmpty ( "url" ) , isValid : Ember . computed . and ( "isValidContributor" , "isValidKind" , "isValidAmount" , "isValidDescription" ) , init : function ( ) { this . _super . apply ( this , arguments ) , this . set ( "defaultDate" , ( 0 , t . default ) ( ) . startOf ( "hour" ) . toDate ( ) ) , this . set ( "defaultAttr" , { contributorId : null , kind : null , date : this . defaultDate , amount : null , description : null , url : null , details : null } ) , this . set ( "attributes" , Ember . assign ( { } , this . defaultAttr , this . attributes ) ) , this . reset ( ) } , reset : function ( ) { this . setProperties ( this . attributes ) } , actions : { submit : function ( e ) { var t = this
if ( e . preventDefault ( ) , this . isValid ) { var r = this . getProperties ( Object . keys ( this . attributes ) )
r . contributorId = parseInt ( this . contributorId )
var o = n ( ( r . date instanceof Array ? r . date [ 0 ] : r . date ) . toISOString ( ) . split ( "T" ) , 2 ) , i = [ o [ 0 ] , o [ 1 ] ]
r . date = i [ 0 ] , r . time = i [ 1 ] , this . set ( "inProgress" , ! 0 ) , this . save ( r ) . then ( ( function ( ) { t . reset ( ) } ) , ( function ( e ) { console . warn ( e ) , window . alert ( "Something went wrong. Check the browser console for details." ) } ) ) . finally ( ( function ( ) { return t . set ( "inProgress" , ! 1 ) } ) ) } else alert ( "Invalid data. Please review and try again." ) } } } )
e . default = o } ) ) , define ( "kredits-web/components/add-contribution/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "Ht3NNTLA" , block : '{"symbols":["contributor"],"statements":[[10,"form"],[15,"onsubmit",[30,[36,1],[[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 "],[10,"select"],[14,"required",""],[15,"onchange",[30,[36,1],[[32,0],[30,[36,2],[[32,0,["contributorId"]]],null]],[["value"],["target.value"]]]],[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,0],[[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,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Kind:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"select"],[14,"required",""],[15,"onchange",[30,[36,1],[[32,0],[30,[36,2],[[32,0,["kind"]]],null]],[["value"],["target.value"]]]],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[14,"disabled",""],[14,"hidden",""],[12],[13],[2,"\\n "],[10,"option"],[14,2,"bureaucracy"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"bureaucracy"],null]],[12],[2,"Bureaucracy"],[13],[2,"\\n "],[10,"option"],[14,2,"community"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"community"],null]],[12],[2,"Community"],[13],[2,"\\n "],[10,"option"],[14,2,"design"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"design"],null]],[12],[2,"Design"],[13],[2,"\\n "],[10,"option"],[14,2,"dev"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"dev"],null]],[12],[2,"Development"],[13],[2,"\\n "],[10,"option"],[14,2,"docs"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"docs"],null]],[12],[2,"Documentation"],[13],[2,"\\n "],[10,"option"],[14,2,"ops"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"ops"],null]],[12],[2,"IT Operations"],[13],[2,"\\n "],[10,"option"],[14,2,"outreach"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"outreach"],null]],[12],[2,"Outreach"],[13],[2,"\\n "],[10,"option"],[14,2,"qa"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"qa"],null]],[12],[2,"Quality Assurance"],[13],[2,"\\n "],[10,"option"],[14,2,"special"],[15,"selected",[30,[36,0],[[32,0,["kind"]],"special"],null]],[12],[2,"Special"],[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 "],[1,[30,[36,5],null,[["date","defaultDate","maxDate","enableTime","time_24hr","onChange"],[[32,0,["date"]],[32,0,["defaultDate"]],[32,0,["defaultDate"]],true,true,[30,[36,1],[[32,0],[30,[36,2],[[32,0,["date"]]],null]],null]]]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Amount:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[1,[30,[36,7],null,[["type","placeholder","value","class"],["text","500",[32,0,["amount"]],[30,[36,6],[[32,0,["isValidAmount"]],"valid",""],null]]]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Description:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[1,[30,[36,7],null,[["type","value","class"],["text",[32,0,["description"]],[30,[36,6],[[32,0,["isValidDescription"]],"valid",""],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 "],[1,[30,[36,7],null,[["type","value","class"],["text",[32,0,["url"]],[30,[36,6],[[32,0,["isValidUrl"]],"valid",""],null]]]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,6],[[32,0,["details"]]],null,[["default"],[{"statements":[[2," "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Details:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"pre"],[12],[2," "],[1,[32,0,["details"]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[1,[30,[36,7],null,[["type","disabled","value"],["submit",[32,0,["inProgress"]],[30,[36,6],[[32,0,["inProgress"]],"Processing","Save"],null]]]]],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n\\n"]],"hasEval":false,"upvars":["eq","action","mut","-track-array","each","ember-flatpickr","if","input"]}' , meta : { moduleName : "kredits-web/components/add-contribution/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/add-contributor/component" , [ "exports" , "web3-utils" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Component . extend ( { router : Ember . inject . service ( ) , kredits : Ember . inject . service ( ) , attributes : null , isValidAccount : Ember . computed ( "account" , ( function ( ) { return ( 0 , t . isAddress ) ( this . account ) } ) ) , isValidName : Ember . computed . notEmpty ( "name" ) , isValidURL : Ember . computed . notEmpty ( "url" ) , isValidGithubUID : Ember . computed . notEmpty ( "github_uid" ) , isValidGithubUsername : Ember . computed . notEmpty ( "github_username" ) , isValidGiteaUsername : Ember . computed . notEmpty ( "gitea_username" ) , isValidWikiUsername : Ember . computed . notEmpty ( "wiki_username" ) , isValidZoomDisplayName : Ember . computed . notEmpty ( "zoom_display_name" ) , isValid : Ember . computed . and ( "isValidAccount" , "isValidName" , "isValidGithubUID" ) , inProgress : ! 1 , init : function ( ) { this . _super . apply ( this , arguments ) , this . setDefaultAttributes ( ) , this . reset ( ) } , setDefaultAttributes : function ( ) { Ember . isPresent ( this . attributes ) || this . set ( "attributes" , { account : null , name : null , kind : "person" , url : null , github _username : null , github _uid : null , gitea _username : null , wiki _username : null , zoom _display _name : null } ) } , reset : function ( ) { this . setProperties ( this . attributes ) } , actions : { submit : function ( e ) { var t = this
if ( e . preventDefault ( ) , this . kredits . currentUserIsCore ) if ( this . isValid ) { var n = Object . keys ( this . attributes ) , r = this . getProperties ( n )
this . set ( "inProgress" , ! 0 ) , this . save ( r ) . then ( ( function ( ) { t . reset ( ) } ) ) . catch ( ( function ( e ) { console . warn ( e ) , window . alert ( "Something went wrong. Please check the browser console." ) } ) ) . finally ( ( function ( ) { t . set ( "inProgress" , ! 1 ) , t . router . transitionTo ( "dashboard" ) } ) ) } else window . alert ( "Invalid data. Please review and try again." )
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 : "M5Q03SON" , 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,"Ethereum 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 , b , p , m , h , y , 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
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
if ( "string" == typeof e ) return x ( e , t )
var n = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === n && e . constructor && ( n = e . constructor . name )
if ( "Map" === n || "Set" === n ) return Array . from ( e )
if ( "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ) return x ( 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 x ( 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 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 _ ( 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 ]
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
try { return Boolean . prototype . valueOf . call ( Reflect . construct ( Boolean , [ ] , ( function ( ) { } ) ) ) , ! 0 } catch ( e ) { return ! 1 } } ( )
return function ( ) { var n , r = S ( e )
if ( t ) { var o = S ( 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 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 M ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } function z ( 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 , b = 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
_ ( this , a )
for ( var t = arguments . length , r = new Array ( t ) , o = 0 ; o < t ; o ++ ) r [ o ] = arguments [ o ]
return O ( R ( e = u . call . apply ( u , [ this ] . concat ( r ) ) ) , "amount" , p , R ( e ) ) , O ( R ( e ) , "currency" , m , R ( e ) ) , O ( R ( e ) , "date" , h , R ( e ) ) , O ( R ( e ) , "title" , y , R ( e ) ) , O ( R ( e ) , "description" , v , R ( e ) ) , O ( R ( e ) , "url" , g , R ( e ) ) , O ( R ( e ) , "tags" , w , R ( e ) ) , M ( R ( e ) , "defaultDate" , ( 0 , n . default ) ( ) . startOf ( "hour" ) . toDate ( ) ) , M ( 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" ) } ) )
var n = ! 0
return this . isValidAmount || ( document . querySelector ( "input[name=expense-amount]" ) . classList . add ( "invalid" ) , n = ! 1 ) , e . checkValidity ( ) || t . forEach ( ( function ( e ) { e . validity . valid || ( e . classList . add ( "invalid" ) , n = ! 1 ) } ) ) , n } } , { key : "updateCurrency" , value : function ( e ) { this . currency = e . target . value } } , { key : "submit" , value : function ( e ) { e . preventDefault ( )
var t = k ( ( this . date instanceof Array ? this . date [ 0 ] : this . date ) . toISOString ( ) . split ( "T" ) , 1 ) [ 0 ]
if ( ! this . validateForm ( ) ) return ! 1
var n = { amount : parseFloat ( this . amount ) , currency : this . currency , date : t , 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 ) && ( n . tags = this . tags . split ( "," ) . map ( ( function ( e ) { return e . trim ( ) } ) ) ) , this . args . addExpenseItem ( n ) } } ] ) && j ( t . prototype , o ) , i && j ( t , i ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , p = z ( b . prototype , "amount" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , m = z ( b . prototype , "currency" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "EUR" } } ) , h = z ( b . prototype , "date" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ( 0 , n . default ) ( ) . startOf ( "hour" ) . toDate ( ) } } ) , y = z ( b . prototype , "title" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , v = z ( b . prototype , "description" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , g = z ( b . prototype , "url" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , w = z ( b . prototype , "tags" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , z ( b . prototype , "updateCurrency" , [ d ] , Object . getOwnPropertyDescriptor ( b . prototype , "updateCurrency" ) , b . prototype ) , z ( b . prototype , "submit" , [ f ] , Object . getOwnPropertyDescriptor ( b . prototype , "submit" ) , b . prototype ) , b )
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/config/environment" ] , ( function ( e , t , n , r ) { var o , i , u , a , s , c , l , d , f , b , p , m , h , y , v , g , w , k , x , O , _ , j , P , E
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 R ( 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 M ( e , t ) { return ( M = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function z ( 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 = T ( e )
if ( t ) { var o = T ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return B ( this , n ) } } function B ( 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 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 T ( e ) { return ( T = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function I ( 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 U = ( o = Ember . inject . service , i = Ember . inject . service , u = Ember . inject . service , a = Ember . computed . alias ( "kredits.contributorsSorted" ) , s = Ember . _tracked , c = Ember . _tracked , l = Ember . _tracked , d = Ember . _tracked , f = Ember . _tracked , b = Ember . _action , p = Ember . _action , m = Ember . _action , h = Ember . _action , y = Ember . _action , v = 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 && M ( e , t ) } ) ( a , e )
var t , o , i , u = z ( a )
function a ( ) { var e
return R ( this , a ) , C ( A ( e = u . apply ( this , arguments ) ) , "router" , g , A ( e ) ) , C ( A ( e ) , "kredits" , w , A ( e ) ) , C ( A ( e ) , "exchangeRates" , k , A ( e ) ) , C ( A ( e ) , "contributors" , x , A ( e ) ) , C ( A ( e ) , "recipientId" , O , A ( e ) ) , C ( A ( e ) , "title" , _ , A ( e ) ) , C ( A ( e ) , "total" , j , A ( e ) ) , C ( A ( e ) , "expenses" , P , A ( e ) ) , C ( A ( e ) , "expenseFormVisible" , E , A ( e ) ) , e . exchangeRates . fetchRates ( ) , e } return t = a , ( o = [ { 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 : "updateContributor" , value : function ( e ) { this . recipientId = e . target . value } } , { key : "showExpenseForm" , value : function ( ) { this . expenseFormVisible = ! 0 , Ember . run . scheduleOnce ( "afterRender" , this , this . scrollToExpenseItemForm ) } } , { key : "addExpenseItem" , value : function ( e ) { this . expenses . pushObject ( e ) , this . updateTotalAmountFromFiat ( ) , this . expenseFormVisible = ! 1 } } , { key : "removeExpenseItem" , value : function ( e ) { this . expenses . removeObject ( e ) , this . updateTotalAmountFromFiat ( ) , 0 === this . expenses . length && ( this . expenseFormVisible = ! 0 ) } } , { key : "submit" , value : function ( e ) { var t = this
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 ) ) , o = { amount : parseInt ( 1e8 * parseFloat ( this . total ) ) , token : r . 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 ( o ) . 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 } ) ) } } ] ) && S ( t . prototype , o ) , i && S ( t , i ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , a } ( t . default ) , g = I ( v . prototype , "router" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , w = I ( v . prototype , "kredits" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , k = I ( v . prototype , "exchangeRates" , [ u ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , x = I ( v . prototype , "contributors" , [ a ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , O = I ( v . prototype , "recipientId" , [ s ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return null } } ) , _ = I ( v . prototype , "title" , [ c ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "" } } ) , j = I ( v . prototype , "total" , [ l ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return "0" } } ) , P = I ( v . prototype , "expenses" , [ d ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , E = I ( v . prototype , "expenseFormVisible" , [ f ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 0 } } ) , I ( v . prototype , "updateContributor" , [ b ] , Object . getOwnPropertyDescriptor ( v . prototype , "updateContributor" ) , v . prototype ) , I ( v . prototype , "showExpenseForm" , [ p ] , Object . getOwnPropertyDescriptor ( v . prototype , "showExpenseForm" ) , v . prototype ) , I ( v . prototype , "addExpenseItem" , [ m ] , Object . getOwnPropertyDescriptor ( v . prototype , "addExpenseItem" ) , v . prototype ) , I ( v . prototype , "removeExpenseItem" , [ h ] , Object . getOwnPropertyDescriptor ( v . prototype , "removeExpenseItem" ) , v . prototype ) , I ( v . prototype , "submit" , [ y ] , Object . getOwnPropertyDescriptor ( v . prototype , "submit" ) , v . prototype ) , v )
e . default = U } ) ) , 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 : "aBifjeXZ" , block : '{"symbols":["expense","contributor"],"statements":[[11,"form"],[24,"novalidate",""],[4,[38,2],["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,2],["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,2,["id"]]],[15,"selected",[30,[36,5],[[32,0,["contributorId"]],[32,2,["id"]]],null]],[12],[1,[32,2,["name"]]],[13],[2,"\\n"]],"parameters":[2]}]]],[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,6],[[32,0,["expenses"]]],null,[["default","else"],[{"statements":[[2," "],[10,"ul"],[14,0,"expense-list"],[12],[2,"\\n"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,["expenses"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"div"],[14,0,"description"],[14,"rowspan","2"],[12],[2,"\\n "],[10,"h4"],[12],[2,"\\n "],[10,"span"],[14,0,"date"],[12],[1,[32,1,["date"]]],[2,":"],[13],[2,"\\n "],[10,"span"],[14,0,"title"],[12],[1,[32,1,["title"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"description"],[12],[1,[32,1,["description"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"amount"],[12],[2,"\\n "],[1,[30,[36,1],[[32,1,["amount"]],[32,1,["currency"]]],null]],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[24,0,"danger small"],[24,4,"button"],[4,[38,2],["click",[30,[36,0],[[32,0,["removeExpenseItem"]],[32,1]],null]],null],[12],[2,"delete"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[24,0,"green small"],[24,4,"button"],[4,[38,2],["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,6],[[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,6],[[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"]],"hasEval":false,"upvars":["fn","fmt-fiat-currency","on","-track-array","each","eq","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
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 = p ( e )
if ( t ) { var o = p ( 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
if ( void 0 !== t ) throw new TypeError ( "Derived constructors may only return object or undefined" )
return b ( e ) } function b ( 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 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 h = ( 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 )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( b ( e = o . call . apply ( o , [ this ] . concat ( n ) ) ) , "communityFunds" , i , b ( e ) ) , a ( b ( e ) , "balances" , u , b ( 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 )
e . default = h } ) ) , 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
var t = "#fb6868" , n = "#fbe468" , r = "#e068fb" , o = "#97fb68" , i = "#8f68fb" , u = Ember . Component . extend ( { contributions : null , chartOptions : Object . freeze ( { legend : { display : ! 1 } } ) , chartData : Ember . computed ( "contributions" , ( function ( ) { var e = this . contributions . filterBy ( "vetoed" , ! 1 ) . map ( ( function ( e ) { return { kind : e . kind , amount : e . amount } } ) ) . reduce ( ( function ( e , t ) { return t . kind in e ? e [ t . kind ] = e [ t . kind ] + t . amount : e [ t . kind ] = t . amount , e } ) , { } )
return { datasets : [ { data : [ e . community , e . design , e . dev , e . ops , e . docs ] , borderColor : [ t , n , r , i , o ] , borderWidth : 1 } ] , labels : [ "Community" , "Design" , "Development" , "Operations & Infrastructure" , "Documentation" ] } } ) ) } )
e . default = u } ) ) , define ( "kredits-web/components/chart-contributions-by-type/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "wfd6i6On" , block : '{"symbols":[],"statements":[[10,"div"],[14,0,"chart"],[12],[2,"\\n "],[8,"ember-chart",[],[["@type","@data","@options","@width","@height"],["doughnut",[32,0,["chartData"]],[32,0,["chartOptions"]],"200","200"]],null],[2,"\\n"],[13]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/components/chart-contributions-by-type/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
var t = Ember . Component . extend ( { router : Ember . inject . service ( ) , tagName : "div" , classNames : [ "contributions" ] , selectedContribution : null , showQuickFilter : ! 1 , hideSmallContributions : ! 1 , contributorId : null , contributionKind : null , kredits : Ember . inject . service ( ) , contributorsSorting : Object . freeze ( [ "name:asc" ] ) , contributors : Ember . computed . sort ( "kredits.contributors" , "contributorsSorting" ) , contributorsActive : Ember . computed ( "contributors.[]" , "contributions" , ( function ( ) { var e = new Set ( this . contributions . mapBy ( "contributorId" ) )
return this . contributors . filter ( ( function ( t ) { return e . has ( t . id ) } ) ) } ) ) , contributionKinds : Ember . computed ( "contributions.[]" , ( function ( ) { return this . contributions . mapBy ( "kind" ) . uniq ( ) } ) ) , contributionsFiltered : Ember . computed ( "contributions.[]" , "hideSmallContributions" , "contributorId" , "contributionKind" , ( function ( ) { var e = this
return this . contributions . filter ( ( function ( t ) { var n = ! 0
return e . hideSmallContributions && t . amount <= 500 && ( n = ! 1 ) , Ember . isPresent ( e . contributorId ) && t . contributorId !== parseInt ( e . contributorId ) && ( n = ! 1 ) , Ember . isPresent ( e . contributionKind ) && t . kind !== e . contributionKind && ( n = ! 1 ) , n } ) ) } ) ) , actions : { veto : function ( e ) { this . contractInteractionEnabled ? this . vetoContribution ( e ) : window . alert ( "Only members can veto contributions. Please ask someone to set you up." ) } , openContributionDetails : function ( e ) { this . router . transitionTo ( "dashboard.contributions.show" , e ) } } } )
e . default = t } ) ) , define ( "kredits-web/components/contribution-list/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "6QjAzyse" , block : '{"symbols":["contribution","kind","contributor","@selectedContributionId","@showQuickFilter","@loading"],"statements":[[6,[37,5],[[32,5]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"quick-filter"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[14,0,"filter-contributor"],[12],[2,"\\n Contributor:\\n "],[10,"select"],[15,"onchange",[30,[36,0],[[32,0],[30,[36,8],[[32,0,["contributorId"]]],null]],[["value"],["target.value"]]]],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[12],[2,"all"],[13],[2,"\\n"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,["contributorsActive"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,3,["id"]]],[15,"selected",[30,[36,4],[[32,0,["contributorId"]],[32,3,["id"]]],null]],[12],[1,[32,3,["name"]]],[13],[2,"\\n"]],"parameters":[3]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"label"],[14,0,"filter-contribution-kind"],[12],[2,"\\n Kind:\\n "],[10,"select"],[15,"onchange",[30,[36,0],[[32,0],[30,[36,8],[[32,0,["contributionKind"]]],null]],[["value"],["target.value"]]]],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[12],[2,"all"],[13],[2,"\\n"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,["contributionKinds"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,2]],[15,"selected",[30,[36,4],[[32,0,["contributionKind"]],[32,2]],null]],[12],[1,[30,[36,7],[[32,2]],null]],[13],[2,"\\n"]],"parameters":[2]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"label"],[14,0,"filter-contribution-size"],[12],[2,"\\n "],[8,"input",[],[["@type","@checked"],["checkbox",[32,0,["hideSmallContributions"]]]],null],[2,"\\n Hide small contributions\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[10,"ul"],[15,0,[31,["item-list contribution-list ",[30,[36,5],[[32,6],"loading"],null]]]],[12],[2,"\\n"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,["contributionsFiltered"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[11,"li"],[24,"role","button"],[16,"data-contribution-id",[32,1,["id"]]],[16,0,[31,[[30,[36,6],[[32,1]],null],[30,[36,5],[[30,[36,4],[[32,1,["id"]],[32,4]],null]," selected"],null]]]],[4,[38,0],[[32,0],"openContributionDetails",[32,1]],null],[12],[2,"\\n "],[10,"p"],[14,0,"meta"],[12],[2,"\\n "],[10,"span"],[14,0,"recipient"],[12],[8,"user-avatar",[],[["@contributor"],[[32,1,["contributor"]]]],null],[13],[2,"\\n "],[10,"span"],[15,0,[31,["category ",[32,1,["kind"]]]]],[12],[2,"("],[1,[32,1,["kind"]]],[2,")"],[13],[2,"\\n "],[10,"span"],[14,0,"title"],[12],[1,[32,1,["description"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"kredits-amount"],[12],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,1,["amount"]]],[13],[10,"span"],[14,0,"symbol"],[12],[2,"₭S"],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,3],[[32,1,["vetoed"]]],null,[["default"],[{"statements":[[6,[37,3],[[30,[36,2],[[32,1]],null]],null,[["default"],[{"statements":[[2," "],[10,"p"],[14,0,"voting"],[12],[2,"\\n "],[1,[30,[36,1],null,[["type","class","value","click","disabled"],["button","button small danger","veto",[30,[36,0],[[32,0],"veto",[32,1,["id"]]],null],[32,1,["hasPendingChanges"]]]]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[1]}]]],[13]],"hasEval":false,"upvars":["action","input","is-confirmed-contribution","unless","eq","if","item-status","capitalize-string","mut","-track-array","each"]}' , meta : { moduleName : "kredits-web/components/contribution-list/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/contributor-list/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Component . extend ( { tagName : "" , router : Ember . inject . service ( ) , selectedContributorId : null , actions : { openContributorDetails : function ( e ) { this . router . transitionTo ( "dashboard.contributors.show" , e ) } } } )
e . default = t } ) ) , define ( "kredits-web/components/contributor-list/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "H19rOGuf" , block : '{"symbols":["c","@selectedContributorId","@showUnconfirmedKredits","@loading","@contributorList"],"statements":[[10,"table"],[15,0,[31,["contributor-list ",[30,[36,2],[[32,4],"loading"],null]]]],[12],[2,"\\n "],[10,"thead"],[12],[2,"\\n "],[13],[2,"\\n "],[10,"tbody"],[12],[2,"\\n"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,5]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"tr"],[14,"role","button"],[15,"onclick",[30,[36,0],[[32,0],"openContributorDetails",[32,1,["contributor"]]],null]],[15,0,[31,[[30,[36,2],[[30,[36,3],[[32,1,["contributor"]]],null],"current-user"],null]," ",[30,[36,2],[[30,[36,1],[[32,1,["contributor","id"]],[32,2]],null],"selected"],null]]]],[12],[2,"\\n "],[10,"td"],[14,0,"person"],[12],[2,"\\n "],[8,"user-avatar",[],[["@contributor"],[[32,1,["contributor"]]]],null],[2," "],[1,[32,1,["contributor","name"]]],[2,"\\n "],[13],[2,"\\n "],[10,"td"],[14,0,"kredits"],[12],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[2,"\\n"],[6,[37,2],[[32,3]],null,[["default","else"],[{"statements":[[2," "],[1,[32,1,["amountTotal"]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,1,["amountConfirmed"]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"symbol"],[12],[2,"₭S"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action","eq","if","is-current-user","-track-array","each"]}' , meta : { moduleName : "kredits-web/components/contributor-list/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/ember-chart" , [ "exports" , "ember-cli-chart/components/ember-chart" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = t . default
e . default = n } ) ) , define ( "kredits-web/components/ember-flatpickr" , [ "exports" , "ember-flatpickr/components/ember-flatpickr" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/components/external-account-link/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Component . extend ( { tagName : "" , account : null , iconComponentName : Ember . computed ( "account.site" , ( function ( ) { return this . account . site . match ( /github|gitea|wiki|zoom/ ) ? "icon-account-" + this . account . site . replace ( /\./g , "-" ) : "icon-web-globe" } ) ) } )
e . default = t } ) ) , define ( "kredits-web/components/external-account-link/template" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "rwjEP1kx" , block : '{"symbols":[],"statements":[[10,"a"],[15,6,[32,0,["account","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[15,"title",[31,[[32,0,["account","username"]]," on ",[32,0,["account","site"]]]]],[12],[2,"\\n "],[10,"span"],[14,0,"site"],[12],[1,[32,0,["account","site"]]],[13],[2,"\\n "],[1,[30,[36,0],[[32,0,["iconComponentName"]]],null]],[2,"\\n"],[13]],"hasEval":false,"upvars":["component"]}' , meta : { moduleName : "kredits-web/components/external-account-link/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/loading-spinner/component" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
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/reimbursement-list/component" , [ "exports" , "@glimmer/component" ] , ( function ( e , t ) { var n , 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 ) { 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 a ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function s ( e , t ) { return ( s = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function c ( 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 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 ) } function b ( 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 p , m , h , y , v , g , w = ( n = Ember . computed . sort ( "args.items" , "itemSorting" ) , 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 && s ( e , t ) } ) ( f , e )
var t , n , r , l = c ( f )
function f ( ) { var e
a ( this , f )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return b ( d ( e = l . call . apply ( l , [ this ] . concat ( n ) ) ) , "itemSorting" , Object . freeze ( [ "pendingStatus:asc" , "id:desc" ] ) ) , i ( d ( e ) , "itemsSorted" , o , d ( e ) ) , e } return t = f , n && u ( t . prototype , n ) , r && u ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , t } ( t . default ) , p = r . prototype , m = "itemsSorted" , h = [ n ] , y = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , g = { } , Object . keys ( y ) . forEach ( ( function ( e ) { g [ e ] = y [ e ] } ) ) , g . enumerable = ! ! g . enumerable , g . configurable = ! ! g . configurable , ( "value" in g || g . initializer ) && ( g . writable = ! 0 ) , g = h . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( p , 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 ( p , m , g ) , g = null ) , o = g , r )
e . default = w } ) ) , 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 : "OfIuWQzP" , block : '{"symbols":["reimbursement","expense","@loading"],"statements":[[10,"ul"],[15,0,[31,["item-list spaced reimbursement-list ",[30,[36,5],[[32,3],"loading"],null]]]],[12],[2,"\\n"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,["itemsSorted"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[15,"data-reimbursement-id",[32,1,["id"]]],[15,0,[31,[[30,[36,1],[[32,1]],null]]]],[12],[2,"\\n "],[10,"p"],[14,0,"meta"],[12],[2,"\\n "],[10,"span"],[14,0,"recipient"],[12],[8,"user-avatar",[],[["@contributor"],[[32,1,["contributor"]]]],null],[13],[2,"\\n "],[10,"span"],[14,0,"title"],[12],[2,"Expenses covered by "],[1,[32,1,["contributor","name"]]],[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,2],[[32,1,["amount"]]],null]],[13],[2," "],[10,"span"],[14,0,"symbol"],[12],[2,"BTC"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"ul"],[14,0,"expense-list"],[12],[2,"\\n"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,1,["expenses"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"div"],[14,0,"description"],[14,"rowspan","2"],[12],[2,"\\n "],[10,"h4"],[12],[2,"\\n "],[10,"span"],[14,0,"date"],[12],[1,[32,2,["date"]]],[2,":"],[13],[2,"\\n "],[10,"span"],[14,0,"title"],[12],[1,[32,2,["title"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"description"],[12],[1,[32,2,["description"]]],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"amount"],[12],[2,"\\n "],[1,[30,[36,0],[[32,2,["amount"]],[32,2,["currency"]]],null]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[2]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[13]],"hasEval":false,"upvars":["fmt-fiat-currency","item-status","sats-to-btc","-track-array","each","if"]}' , meta : { moduleName : "kredits-web/components/reimbursement-list/template.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/components/topbar-account-panel/component" , [ "exports" ] , ( function ( e ) { function t ( 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 ) } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Component . extend ( { tagName : "" , kredits : Ember . inject . service ( ) , router : Ember . inject . service ( ) , setupInProgress : ! 1 , userHasEthereumWallet : Ember . computed ( ( function ( ) { return Ember . isPresent ( window . ethereum ) } ) ) , showConnectButton : Ember . computed ( "userHasEthereumWallet" , "kredits.hasAccounts" , ( function ( ) { return this . userHasEthereumWallet && ! this . kredits . hasAccounts } ) ) , actions : { signup : function ( ) { this . router . transitionTo ( "signup" ) } , connectAccount : function ( ) { var e , n = this
return ( e = regeneratorRuntime . mark ( ( function e ( ) { return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . prev = 0 , e . next = 3 , window . ethereum . enable ( )
case 3 : return n . set ( "setupInProgress" , ! 0 ) , e . next = 6 , n . kredits . setup ( )
case 6 : n . set ( "setupInProgress" , ! 1 ) , e . next = 13
break
case 9 : e . prev = 9 , e . t0 = e . catch ( 0 ) , n . set ( "setupInProgress" , ! 1 ) , console . log ( "Opening Ethereum wallet failed:" , e . t0 )
case 13 : case "end" : return e . stop ( ) } } ) , e , null , [ [ 0 , 9 ] ] ) } ) ) , function ( ) { var n = this , r = arguments
return new Promise ( ( function ( o , i ) { var u = e . apply ( n , r )
function a ( e ) { t ( u , o , i , a , s , "next" , e ) } function s ( e ) { t ( u , o , i , a , s , "throw" , e ) } a ( void 0 ) } ) ) } ) ( ) } } } )
e . default = n } ) ) , 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 : "tHJ6yVSg" , 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,["kredits","hasAccounts"]],[32,0,["kredits","currentUser"]]],null]],null,[["default","else"],[{"statements":[[2," "],[1,[32,0,["kredits","currentUser","name"]]],[2,"\\n"],[6,[37,1],[[32,0,["kredits","currentUserIsCore"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"core-flag"],[12],[2,"(core)"],[13],[2,"\\n"]],"parameters":[]}]]]],"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,0,"small"],[14,4,"button"],[12],[2,"Sign up"],[13],[2,"\\n"],[6,[37,1],[[32,0,["showConnectButton"]]],null,[["default"],[{"statements":[[2," "],[10,"button"],[15,"onclick",[30,[36,0],[[32,0],"connectAccount"],null]],[14,0,"small green"],[14,4,"button"],[12],[2,"Connect account"],[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
var t = { small : "128" , medium : "256" , large : "512" } , n = Ember . Component . extend ( { contributor : null , tagName : "img" , classNames : [ "avatar" ] , classNameBindings : [ "size" ] , attributeBindings : [ "src" , "title" ] , size : "small" , src : Ember . computed . alias ( "avatarURL" ) , title : Ember . computed . alias ( "contributor.name" ) , avatarURL : Ember . computed ( "contributor.github_uid" , "size" , ( function ( ) { var e = this . contributor . github _uid
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
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
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 = m ( e )
if ( t ) { var o = m ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return b ( this , n ) } } function b ( 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 m ( e ) { return ( m = 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 y = ( t = Ember . inject . service , n = Ember . computed . alias ( "kredits.reimbursementsUnconfirmed" ) , r = Ember . computed . alias ( "kredits.reimbursementsConfirmed" ) , i = h ( ( 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 ) } ) ( b , Ember . Controller )
var t , n , r , o = f ( 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 s ( p ( e = o . call . apply ( o , [ this ] . concat ( n ) ) ) , "kredits" , i , p ( e ) ) , s ( p ( e ) , "reimbursementsUnconfirmed" , u , p ( e ) ) , s ( p ( e ) , "reimbursementsConfirmed" , a , p ( e ) ) , e } return t = b , n && c ( t . prototype , n ) , r && c ( t , r ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , t } ( ) ) . prototype , "kredits" , [ t ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , u = h ( o . prototype , "reimbursementsUnconfirmed" , [ n ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , a = h ( o . prototype , "reimbursementsConfirmed" , [ r ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , o )
e . default = y } ) ) , define ( "kredits-web/controllers/contributions/new" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) , queryParams : [ "contributorId" , "kind" , "amount" ] , contributors : Ember . computed . alias ( "kredits.contributors" ) , minedContributors : Ember . computed . filterBy ( "contributors" , "id" ) , contributorsSorting : Object . freeze ( [ "name:asc" ] ) , sortedContributors : Ember . computed . sort ( "minedContributors" , "contributorsSorting" ) , actions : { save : function ( e ) { var t = this , n = this . contributors . findBy ( "id" , e . contributorId )
return e . contributorIpfsHash = n . ipfsHash , this . kredits . addContribution ( e ) . then ( ( function ( e ) { return t . transitionToRoute ( "index" ) , e } ) ) } } } )
e . default = t } ) ) , define ( "kredits-web/controllers/contributions/resubmit" , [ "exports" , "kredits-web/controllers/contributions/new" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = t . default . extend ( { attributes : null } )
e . default = n } ) ) , define ( "kredits-web/controllers/contributors/edit" , [ "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 . updateContributor ( this . model . id , e ) } } } )
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 , 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" ) } } } )
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/eth-account" , [ "exports" , "web3-utils" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . Controller . extend ( { kredits : Ember . inject . service ( ) , ethAddress : null , githubAccessToken : Ember . computed . alias ( "kredits.githubAccessToken" ) , isValidEthAccount : Ember . computed ( "ethAddress" , ( function ( ) { return ( 0 , t . isAddress ) ( this . ethAddress ) } ) ) , signupButtonDisabled : Ember . computed . not ( "isValidEthAccount" ) , actions : { completeSignup : function ( ) { var e = this , t = { accessToken : this . githubAccessToken , account : this . ethAddress }
fetch ( n . default . githubSignupUrl , { method : "POST" , headers : { "Content-Type" : "application/json" } , body : JSON . stringify ( t ) } ) . then ( ( function ( e ) { return e . json ( ) } ) ) . then ( ( function ( t ) { console . log ( "Created contributor:" , t ) , e . setProperties ( { githubAccessToken : null , ethAddress : null } ) , e . transitionToRoute ( "signup.complete" ) } ) ) } } } )
e . default = r } ) ) , define ( "kredits-web/controllers/signup/index" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Controller . extend ( { actions : { connectGithub : function ( ) { window . location = t . default . githubConnectUrl } } } )
e . default = n } ) ) , 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 )
e . default = o } ) ) , define ( "kredits-web/helpers/await" , [ "exports" , "ember-promise-helpers/helpers/await" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/cancel-all" , [ "exports" , "ember-concurrency/helpers/cancel-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/capitalize-string" , [ "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
if ( "string" == typeof e ) return n ( e , t )
var r = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === r && e . constructor && ( r = e . constructor . name )
if ( "Map" === r || "Set" === r ) return Array . from ( e )
if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( r ) ) return n ( 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 n ( 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 } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . Helper . extend ( { compute : function ( e ) { var n = t ( e , 1 ) [ 0 ]
return n . charAt ( 0 ) . toUpperCase ( ) + n . slice ( 1 ) } } )
e . default = r } ) ) , define ( "kredits-web/helpers/eq" , [ "exports" , "ember-truth-helpers/helpers/equal" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "equal" , { enumerable : ! 0 , get : function ( ) { return t . equal } } ) } ) ) , define ( "kredits-web/helpers/fmt-crypto-currency" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Helper . helper ( ( function ( e ) { var t , n = e [ 0 ]
switch ( e [ 1 ] ) { case "RBTC" : t = n / 1e18
break
case "BTC" : t = n / 1e8 } return t } ) )
e . default = t } ) ) , 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 } } ) } ) ) , 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
if ( "string" == typeof e ) return n ( e , t )
var r = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === r && e . constructor && ( r = e . constructor . name )
if ( "Map" === r || "Set" === r ) return Array . from ( e )
if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( r ) ) return n ( 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 n ( 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 } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . Helper . extend ( { kredits : Ember . inject . service ( ) , currentBlock : Ember . computed . alias ( "kredits.currentBlock" ) , compute : function ( e ) { var n = t ( e , 1 ) [ 0 ]
return ! n . vetoed && n . confirmedAt <= this . currentBlock } } )
e . default = r } ) ) , define ( "kredits-web/helpers/is-current-user" , [ "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
if ( "string" == typeof e ) return n ( e , t )
var r = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === r && e . constructor && ( r = e . constructor . name )
if ( "Map" === r || "Set" === r ) return Array . from ( e )
if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( r ) ) return n ( 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 n ( 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 } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . Helper . extend ( { kredits : Ember . inject . service ( ) , currentUser : Ember . computed . alias ( "kredits.currentUser" ) , compute : function ( e ) { var n = t ( e , 1 ) [ 0 ]
return Ember . isPresent ( n ) && Ember . isPresent ( this . currentUser ) && n . account === this . currentUser . account } } )
e . default = r } ) ) , define ( "kredits-web/helpers/is-empty" , [ "exports" , "ember-truth-helpers/helpers/is-empty" ] , ( 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-equal" , [ "exports" , "ember-truth-helpers/helpers/is-equal" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) , Object . defineProperty ( e , "isEqual" , { enumerable : ! 0 , get : function ( ) { return t . isEqual } } ) } ) ) , define ( "kredits-web/helpers/is-fulfilled" , [ "exports" , "ember-promise-helpers/helpers/is-fulfilled" ] , ( 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 ) } 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-pending" , [ "exports" , "ember-promise-helpers/helpers/is-pending" ] , ( 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-rejected" , [ "exports" , "ember-promise-helpers/helpers/is-rejected" ] , ( 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-same-or-after" , [ "exports" , "ember-moment/helpers/is-same-or-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-same-or-before" , [ "exports" , "ember-moment/helpers/is-same-or-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-same" , [ "exports" , "ember-moment/helpers/is-same" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/helpers/item-status" , [ "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
if ( "string" == typeof e ) return n ( e , t )
var r = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
"Object" === r && e . constructor && ( r = e . constructor . name )
if ( "Map" === r || "Set" === r ) return Array . from ( e )
if ( "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( r ) ) return n ( 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 n ( 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 } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var r = Ember . Helper . extend ( { kredits : Ember . inject . service ( ) , currentBlock : Ember . computed . alias ( "kredits.currentBlock" ) , compute : function ( e ) { var n = t ( e , 1 ) [ 0 ]
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 } } ) } ) ) , define ( "kredits-web/helpers/perform" , [ "exports" , " ember - concurrency / helpers / per Line truncated
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 )
var i = { name : "App Version" , initialize : ( 0 , t . default ) ( r , o ) }
e . default = i } ) ) , define ( "kredits-web/initializers/container-debug-adapter" , [ "exports" , "ember-resolver/resolvers/classic/container-debug-adapter" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = { name : "container-debug-adapter" , initialize : function ( ) { var e = arguments [ 1 ] || arguments [ 0 ]
e . register ( "container-debug-adapter:main" , t . default ) } }
e . default = n } ) ) , define ( "kredits-web/initializers/ember-concurrency" , [ "exports" , "ember-concurrency/initializers/ember-concurrency" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , Object . defineProperty ( e , "default" , { enumerable : ! 0 , get : function ( ) { return t . default } } ) } ) ) , define ( "kredits-web/initializers/export-application-global" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { function n ( ) { var e = arguments [ 1 ] || arguments [ 0 ]
if ( ! 1 !== t . default . exportApplicationGlobal ) { var n
if ( "undefined" != typeof window ) n = window
else if ( "undefined" != typeof global ) n = global
else { if ( "undefined" == typeof self ) return
n = self } var r , o = t . default . exportApplicationGlobal
r = "string" == typeof o ? o : Ember . String . classify ( t . default . modulePrefix ) , n [ r ] || ( n [ r ] = e , e . reopen ( { willDestroy : function ( ) { this . _super . apply ( this , arguments ) , delete n [ r ] } } ) ) } } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0 , e . initialize = n
var r = { name : "export-application-global" , initialize : n }
e . default = r } ) ) , define ( "kredits-web/models/contribution" , [ "exports" , "moment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Object . extend ( { id : null , contributorId : null , amount : null , confirmedAt : null , vetoed : null , ipfsHash : null , contributor : null , kind : null , description : null , details : null , url : null , date : null , time : null , pendingTx : null , init : function ( ) { this . _super . apply ( this , arguments ) , Ember . isEmpty ( this . details ) && this . set ( "details" , { } ) } , iso8601Date : Ember . computed ( "date" , "time" , ( function ( ) { return this . time ? "" . concat ( this . date , "T" ) . concat ( this . time ) : this . date } ) ) , jsDate : Ember . computed ( "iso8601Date" , ( function ( ) { return ( 0 , t . default ) ( this . iso8601Date ) . toDate ( ) } ) ) , hasPendingChanges : Ember . computed ( "pendingTx" , ( function ( ) { return Ember . isPresent ( this . pendingTx ) } ) ) , serialize : function ( ) { return JSON . stringify ( this ) } } )
e . default = n } ) ) , define ( "kredits-web/models/contributor" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Object . extend ( { id : null , account : null , balance : 0 , totalKreditsEarned : 0 , contributionsCount : 0 , isCore : ! 1 , ipfsHash : null , kind : null , name : null , url : null , github _username : null , github _uid : null , wiki _username : null , zoom _display _name : null , serialize : function ( ) { return JSON . stringify ( this ) } } )
e . default = t } ) ) , define ( "kredits-web/models/reimbursement" , [ "exports" , "moment" ] , ( function ( e , t ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var n = Ember . Object . extend ( { id : null , recipientId : null , token : null , amount : null , confirmedAt : null , vetoed : null , ipfsHash : null , recipient : null , expenses : null , pendingTx : null , iso8601Date : Ember . computed ( "date" , "time" , ( function ( ) { return this . time ? "" . concat ( this . date , "T" ) . concat ( this . time ) : this . date } ) ) , jsDate : Ember . computed ( "iso8601Date" , ( function ( ) { return ( 0 , t . default ) ( this . iso8601Date ) . toDate ( ) } ) ) , hasPendingChanges : Ember . computed ( "pendingTx" , ( function ( ) { return Ember . isPresent ( this . pendingTx ) } ) ) , pendingStatus : Ember . computed ( "pendingTx" , ( function ( ) { return Ember . isPresent ( this . pendingTx ) ? "isPending" : "notPending" } ) ) , serialize : function ( ) { return JSON . stringify ( this ) } } )
e . default = n } ) ) , define ( "kredits-web/router" , [ "exports" , "kredits-web/config/environment" ] , ( function ( e , t ) { function n ( 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 r ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function o ( e , t ) { return ( o = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function i ( e ) { var t = function ( ) { if ( "undefined" == typeof Reflect || ! Reflect . construct ) return ! 1
if ( Reflect . construct . sham ) return ! 1
if ( "function" == typeof Proxy ) return ! 0
try { return Boolean . prototype . valueOf . call ( Reflect . construct ( Boolean , [ ] , ( function ( ) { } ) ) ) , ! 0 } catch ( e ) { return ! 1 } } ( )
return function ( ) { var n , r = s ( e )
if ( t ) { var o = s ( 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 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 )
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 ( "eth-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
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
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 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 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 b ( e ) { return ( b = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function p ( 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 = p ( ( 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 ) } ) ( b , Ember . Route )
var t , n , r , d = l ( b )
function b ( ) { var e
a ( this , b )
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 = b , ( 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 } ) , b } ( ) ) . prototype , "kredits" , [ t ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } ) , i = p ( 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
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 = p ( e )
if ( t ) { var o = p ( 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
if ( void 0 !== t ) throw new TypeError ( "Derived constructors may only return object or undefined" )
return b ( e ) } function b ( 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 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 h = ( 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 ) } ) ( h , Ember . Route )
var t , n , r , f , p , m = d ( h )
function h ( ) { var e
s ( this , h )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( b ( e = m . call . apply ( m , [ this ] . concat ( n ) ) ) , "browserCache" , o , b ( e ) ) , a ( b ( e ) , "kredits" , i , b ( e ) ) , e } return t = h , ( 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
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
break } return e . next = 11 , this . kredits . loadObjectsFromCache ( "Reimbursement" )
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 ) } ) ) , p = function ( ) { var e = this , t = arguments
return new Promise ( ( function ( n , r ) { var o = f . 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 p . 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 } ) , h } ( ) ) . 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 = h } ) ) , 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
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/contributions/new" , [ "exports" ] , ( function ( e ) { function t ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function n ( 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 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 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/contributions/resubmit" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , model : function ( e ) { return this . kredits . contributions . findBy ( "id" , parseInt ( e . id ) ) } , setupController : function ( e , t ) { this . _super ( e , t ) , e . set ( "attributes" , t . getProperties ( [ "contributorId" , "kind" , "amount" , "description" , "url" , "details" ] ) ) , e . set ( "attributes.date" , t . jsDate ) } } )
e . default = t } ) ) , define ( "kredits-web/routes/contributors/edit" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , contributors : Ember . computed . alias ( "kredits.contributors" ) , model : function ( e ) { return this . kredits . contributors . findBy ( "id" , e . id ) } , setupController : function ( e , t ) { this . _super ( e , t ) , e . set ( "attributes" , { account : t . account , name : t . name , kind : t . kind , url : t . url , github _username : t . github _username , github _uid : t . github _uid , gitea _username : t . gitea _username , wiki _username : t . wiki _username , zoom _display _name : t . zoom _display _name } ) } } )
e . default = t } ) ) , define ( "kredits-web/routes/dashboard" , [ "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 ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function u ( 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 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 = d ( e )
if ( t ) { var o = d ( 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 , b , p , m , h , y , 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 )
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 ) , Ember . run . schedule ( "afterRender" , this . kredits . fetchMissingContributions , this . kredits . fetchMissingContributions . perform ) } } ] ) && u ( t . prototype , n ) , c && u ( t , c ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , f } ( ) ) . prototype , b = "kredits" , p = [ t ] , m = { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : null } , y = { } , Object . keys ( m ) . forEach ( ( function ( e ) { y [ e ] = m [ e ] } ) ) , y . enumerable = ! ! y . enumerable , y . configurable = ! ! y . configurable , ( "value" in y || y . initializer ) && ( y . writable = ! 0 ) , y = p . slice ( ) . reverse ( ) . reduce ( ( function ( e , t ) { return t ( f , b , e ) || e } ) , y ) , h && void 0 !== y . initializer && ( y . value = y . initializer ? y . initializer . call ( h ) : void 0 , y . initializer = void 0 ) , void 0 === y . initializer && ( Object . defineProperty ( f , b , y ) , y = null ) , r = y , 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
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , contributors : Ember . computed . alias ( "kredits.contributors" ) , model : function ( e ) { return this . contributors . findBy ( "id" , e . id ) } , setupController : function ( e , t ) { this . _super ( e , t ) , this . controllerFor ( "dashboard" ) . setProperties ( { showDetailsPane : ! 0 , selectedContributorId : t . id } ) } , deactivate : function ( ) { this . controllerFor ( "dashboard" ) . setProperties ( { showDetailsPane : ! 1 , selectedContributorId : null } ) } } )
e . default = t } ) ) , define ( "kredits-web/routes/index" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { redirect : function ( ) { this . transitionTo ( "dashboard" ) } } )
e . default = t } ) ) , define ( "kredits-web/routes/reimbursements/new" , [ "exports" ] , ( function ( e ) { function t ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function n ( 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 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 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
var t = Ember . Route . extend ( { } )
e . default = t } ) ) , 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/eth-account" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . Route . extend ( { kredits : Ember . inject . service ( ) , redirect : function ( ) { this . _super . apply ( this , arguments ) , Ember . isEmpty ( this . kredits . githubAccessToken ) && this . transitionTo ( "signup.index" ) } } )
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
this . _super . apply ( this , arguments )
try { e = window . location . hash . match ( /access_token=(.+)/ ) [ 1 ] } catch ( t ) { } if ( Ember . isEmpty ( e ) || "undefined" === e ) return console . error ( "No GitHub access token found." ) , void this . transitionTo ( "signup" )
this . kredits . set ( "githubAccessToken" , e ) , this . transitionTo ( "signup.eth-account" ) } } )
e . default = t } ) ) , define ( "kredits-web/services/browser-cache" , [ "exports" , "localforage" , "kredits-web/config/environment" ] , ( function ( e , t , n ) { function r ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } 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 ) { return ( i = Object . setPrototypeOf || function ( e , t ) { return e . _ _proto _ _ = t , e } ) ( e , t ) } function u ( 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 = s ( e )
if ( t ) { var o = s ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return a ( this , n ) } } function a ( e , t ) { if ( t && ( "object" === _typeof ( t ) || "function" == typeof t ) ) return t
if ( void 0 !== t ) throw new TypeError ( "Derived constructors may only return object or undefined" )
return function ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } ( e ) } function s ( e ) { return ( s = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function c ( e ) { var r
return r = n . default . web3RequiredNetworkName ? n . default . web3RequiredNetworkName . toLocaleLowerCase ( ) . replace ( " " , "-" ) : "custom" , t . createInstance ( { name : "kredits:" . concat ( r , ":" ) . concat ( 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 && i ( e , t ) } ) ( l , Ember . Service )
var t , n , a , s = u ( l )
function l ( ) { var e
return r ( this , l ) , ( e = s . apply ( this , arguments ) ) . stores = { contributors : c ( "contributors" ) , contributions : c ( "contributions" ) , reimbursements : c ( "reimbursements" ) } , e } return t = l , ( n = [ { key : "contributors" , get : function ( ) { return this . stores . contributors } } , { key : "contributions" , get : function ( ) { return this . stores . contributions } } , { key : "reimbursements" , get : function ( ) { return this . stores . reimbursements } } ] ) && o ( t . prototype , n ) , a && o ( t , a ) , Object . defineProperty ( t , "prototype" , { writable : ! 1 } ) , l } ( )
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 b ( 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 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 h ( e , t ) { return ( h = 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
try { return Boolean . prototype . valueOf . call ( Reflect . construct ( Boolean , [ ] , ( function ( ) { } ) ) ) , ! 0 } catch ( e ) { return ! 1 } } ( )
return function ( ) { var n , r = w ( e )
if ( t ) { var o = w ( this ) . constructor
n = Reflect . construct ( r , arguments , o ) } else n = r . apply ( this , arguments )
return v ( this , n ) } } function v ( 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 g ( e ) } function g ( e ) { if ( void 0 === e ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" )
return e } function w ( e ) { return ( w = Object . setPrototypeOf ? Object . getPrototypeOf : function ( e ) { return e . _ _proto _ _ || Object . getPrototypeOf ( e ) } ) ( e ) } function k ( e , t , n ) { return t in e ? Object . defineProperty ( e , t , { value : n , enumerable : ! 0 , configurable : ! 0 , writable : ! 0 } ) : e [ t ] = n , e } function x ( 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 O = ( r = Ember . inject . service , o = Ember . _tracked , i = Ember . _tracked , a = x ( ( 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 && h ( e , t ) } ) ( v , Ember . Service )
var t , r , o , i , u , l = y ( v )
function v ( ) { var e
p ( this , v )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return b ( g ( e = l . call . apply ( l , [ this ] . concat ( n ) ) ) , "exchangeRates" , a , g ( e ) ) , b ( g ( e ) , "balancesLoaded" , s , g ( e ) ) , b ( g ( e ) , "balances" , c , g ( e ) ) , e } return t = v , ( r = [ { key : "fetchBalances" , value : regeneratorRuntime . mark ( ( function e ( ) { var t = this
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 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 = x ( u . prototype , "balancesLoaded" , [ o ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return ! 1 } } ) , c = x ( u . prototype , "balances" , [ i ] , { configurable : ! 0 , enumerable : ! 0 , writable : ! 0 , initializer : function ( ) { return Ember . A ( [ ] ) } } ) , x ( u . prototype , "fetchBalances" , [ t . task ] , Object . getOwnPropertyDescriptor ( u . prototype , "fetchBalances" ) , u . prototype ) , u )
e . default = O } ) ) , 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
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 = p ( e )
if ( t ) { var o = p ( 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
if ( void 0 !== t ) throw new TypeError ( "Derived constructors may only return object or undefined" )
return b ( e ) } function b ( 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 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 } function h ( 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 y ( e ) { return function ( ) { var t = this , n = arguments
return new Promise ( ( function ( r , o ) { var i = e . apply ( t , n )
function u ( e ) { h ( i , r , o , u , a , "next" , e ) } function a ( e ) { h ( i , r , o , u , a , "throw" , e ) } u ( void 0 ) } ) ) } } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var v = "" . concat ( t . default . corsProxy , "https://www.bitstamp.net/api/v2" )
function g ( e ) { return w . apply ( this , arguments ) } function w ( ) { return ( w = y ( regeneratorRuntime . mark ( ( function e ( t ) { var n
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . prev = 0 , e . next = 3 , fetch ( "" . concat ( v , "/ticker/" ) . concat ( t , "/" ) ) . then ( ( function ( e ) { return e . json ( ) } ) )
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 ) } ) ( p , Ember . Service )
var t , n , r , o , f = d ( p )
function p ( ) { var e
s ( this , p )
for ( var t = arguments . length , n = new Array ( t ) , r = 0 ; r < t ; r ++ ) n [ r ] = arguments [ r ]
return a ( b ( e = f . call . apply ( f , [ this ] . concat ( n ) ) ) , "btceur" , i , b ( e ) ) , a ( b ( e ) , "btcusd" , u , b ( e ) ) , e } return t = p , ( n = [ { key : "fetchRates" , value : ( o = y ( 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 } ) , p } ( ) ) . 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/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 ) { 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 ) || m ( 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 p ( e , t ) { var n = "undefined" != typeof Symbol && e [ Symbol . iterator ] || e [ "@@iterator" ]
if ( ! n ) { if ( Array . isArray ( e ) || ( n = m ( 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
return { s : function ( ) { n = n . call ( e ) } , n : function ( ) { var e = n . next ( )
return u = e . done , e } , e : function ( e ) { a = ! 0 , i = e } , f : function ( ) { try { u || null == n . return || n . return ( ) } finally { if ( a ) throw i } } } } function m ( e , t ) { if ( e ) { if ( "string" == typeof e ) return h ( e , t )
var n = Object . prototype . toString . call ( e ) . slice ( 8 , - 1 )
return "Object" === n && e . constructor && ( n = e . constructor . name ) , "Map" === n || "Set" === n ? Array . from ( e ) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ . test ( n ) ? h ( e , t ) : void 0 } } function h ( 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 y ( 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 v ( e ) { return function ( ) { var t = this , n = arguments
return new Promise ( ( function ( r , o ) { var i = e . apply ( t , n )
function u ( e ) { y ( i , r , o , u , a , "next" , e ) } function a ( e ) { y ( i , r , o , u , a , "throw" , e ) } u ( void 0 ) } ) ) } } Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var g = { Contributor : l . default , Contribution : d . default , Reimbursement : f . default } , w = 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 , init : function ( ) { this . _super . apply ( this , arguments ) , this . set ( "contributors" , [ ] ) , this . set ( "contributions" , [ ] ) , this . set ( "reimbursements" , [ ] ) } , 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 ( c . default . web3ProviderUrl ) ) , e = new t . default . providers . JsonRpcProvider ( c . default . web3ProviderUrl ) , r ( { ethProvider : e , ethSigner : null } ) } function i ( e , t ) { return u . apply ( this , arguments ) } function u ( ) { return ( u = v ( regeneratorRuntime . mark ( ( function n ( i , u ) { var a
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 : if ( a = n . sent , ! Ember . isPresent ( c . default . web3RequiredChainId ) || a . chainId === c . default . web3RequiredChainId ) { n . next = 7
break } return n . abrupt ( "return" , o ( ) )
case 7 : e . listAccounts ( ) . then ( ( function ( t ) { u . set ( "currentUserAccounts" , t )
var n = 0 === t . length ? null : e . getSigner ( )
r ( { ethProvider : e , ethSigner : n } ) } ) )
case 8 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ) . apply ( this , arguments ) } window . ethereum ? window . ethereum . isConnected ( ) ? i ( window . ethereum , n ) : o ( ) : window . web3 ? i ( window . web3 . currentProvider , n ) : o ( ) } ) ) } , setup : function ( ) { var e = this
return v ( regeneratorRuntime . mark ( ( function t ( ) { var r
return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . next = 2 , e . getEthProvider ( ) . then ( ( function ( e ) { return new n . default ( e . ethProvider , e . ethSigner , { ipfsConfig : c . default . ipfs } ) } ) )
case 2 : return r = t . sent , t . next = 5 , r . init ( )
case 5 : return e . set ( "kredits" , r ) , t . t0 = e , t . next = 9 , r . provider . getBlockNumber ( )
case 9 : return t . t1 = t . sent , t . t0 . set . call ( t . t0 , "currentBlock" , t . t1 ) , e . currentUserAccounts && e . currentUserAccounts . length > 0 && e . getCurrentUser . then ( ( function ( t ) { e . set ( "currentUser" , t ) } ) ) , t . abrupt ( "return" , r )
case 13 : case "end" : return t . stop ( ) } } ) , t ) } ) ) ) ( ) } , getCurrentUser : Ember . computed ( "kredits.provider" , "currentUserAccounts.[]" , ( function ( ) { var e = this
return Ember . isEmpty ( this . currentUserAccounts ) ? Promise . resolve ( ) : this . kredits . Contributor . functions . getContributorIdByAddress ( this . currentUserAccounts . firstObject ) . then ( ( function ( t ) { return 0 === t ? Promise . resolve ( ) : e . kredits . Contributor . getById ( t ) } ) ) } ) ) , totalSupply : Ember . computed ( ( function ( ) { return this . kredits . Token . functions . totalSupply ( ) . then ( ( function ( e ) { return ( 0 , s . default ) ( e ) } ) ) } ) ) , totalKreditsEarned : Ember . computed ( ( function ( ) { return this . kredits . Contribution . functions . totalKreditsEarned ( ! 0 ) } ) ) , kreditsByContributor : Ember . computed ( "contributionsUnconfirmed.@each.vetoed" , "contributors.[]" , ( function ( ) { var e = this , t = this . contributionsUnconfirmed . filterBy ( "vetoed" , ! 1 ) , n = ( 0 , o . default ) ( t , "contributorId" ) , r = n . map ( ( function ( e ) { return e . value } ) ) , i = this . contributors . reject ( ( function ( e ) { return r . includes ( e . id ) } ) ) , u = n . map ( ( function ( t ) { var n = t . items . mapBy ( "amount" ) . reduce ( ( function ( e , t ) { return e + t } ) ) , r = e . contributors . findBy ( "id" , t . value )
return Ember . Object . create ( { contributor : r , amountUnconfirmed : n , amountConfirmed : r . totalKreditsEarned , amountTotal : r . totalKreditsEarned + n } ) } ) )
return i . forEach ( ( function ( e ) { u . push ( Ember . Object . create ( { contributor : e , amountUnconfirmed : 0 , amountConfirmed : e . totalKreditsEarned , amountTotal : e . totalKreditsEarned } ) ) } ) ) , u } ) ) , contributionsUnconfirmed : Ember . computed ( "contributions.[]" , "currentBlock" , ( function ( ) { var e = this
return this . contributions . filter ( ( function ( t ) { return t . confirmedAt > e . currentBlock } ) ) } ) ) , contributionsConfirmed : Ember . computed ( "contributions.[]" , "currentBlock" , ( function ( ) { var e = this
return this . contributions . filterBy ( "vetoed" , ! 1 ) . filter ( ( function ( t ) { return t . confirmedAt <= e . currentBlock } ) ) } ) ) , reimbursementsUnconfirmed : Ember . computed ( "reimbursements.[]" , "currentBlock" , ( function ( ) { var e = this
return this . reimbursements . filter ( ( function ( t ) { return t . confirmedAt > e . currentBlock } ) ) } ) ) , reimbursementsConfirmed : Ember . computed ( "reimbursements.[]" , "currentBlock" , ( function ( ) { var e = this
return this . reimbursements . filterBy ( "vetoed" , ! 1 ) . filter ( ( function ( t ) { return t . confirmedAt <= e . currentBlock } ) ) } ) ) , reimbursementsPending : Ember . computed ( "reimbursements.[]" , "pendingTx" , ( function ( ) { return this . reimbursements . filter ( ( function ( e ) { return ! e . id } ) ) } ) ) , loadInitialData : function ( ) { var e = this
return v ( regeneratorRuntime . mark ( ( function t ( ) { return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : return t . next = 2 , e . browserCache . contributors . length ( )
case 2 : if ( ! ( t . sent > 0 ) ) { t . next = 9
break } return t . next = 6 , e . loadObjectsFromCache ( "Contributor" )
case 6 : e . set ( "contributorsNeedSync" , ! 0 ) , t . next = 11
break
case 9 : return t . next = 11 , e . fetchContributors ( )
case 11 : return t . next = 13 , e . browserCache . contributions . length ( )
case 13 : if ( ! ( t . sent > 0 ) ) { t . next = 20
break } return t . next = 17 , e . loadObjectsFromCache ( "Contribution" )
case 17 : e . set ( "contributionsNeedSync" , ! 0 ) , t . next = 22
break
case 20 : return t . next = 22 , e . fetchContributions ( { page : { size : 30 } } )
case 22 : return t . abrupt ( "return" , Promise . resolve ( ) )
case 23 : case "end" : return t . stop ( ) } } ) , t ) } ) ) ) ( ) } , addContributor : function ( e ) { if ( e . github _uid ) { var t = parseInt ( e . github _uid )
e . github _uid = t } return console . debug ( "[kredits] add contributor" , e ) , this . kredits . Contributor . add ( e , { gasLimit : 35e4 } ) . then ( ( function ( e ) { console . debug ( "[kredits] add contributor response" , e ) } ) ) } , updateContributor : function ( e , t ) { if ( t . github _uid ) { var n = parseInt ( t . github _uid )
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 ) } ) ) } , 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 = l . 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 v ( regeneratorRuntime . mark ( ( function t ( ) { var n , r , o
return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : n = p ( e . contributors ) , t . prev = 1 , n . s ( )
case 3 : if ( ( r = n . n ( ) ) . done ) { t . next = 9
break } return o = r . value , t . next = 7 , e . browserCache . contributors . setItem ( o . id . toString ( ) , o . serialize ( ) )
case 7 : t . next = 3
break
case 9 : t . next = 14
break
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 v ( 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 ( l . 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 = 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 = 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
return v ( regeneratorRuntime . mark ( ( function t ( ) { var n , r , o
return regeneratorRuntime . wrap ( ( function ( t ) { for ( ; ; ) switch ( t . prev = t . next ) { case 0 : n = p ( e . contributions ) , t . prev = 1 , n . s ( )
case 3 : if ( ( r = n . n ( ) ) . done ) { t . next = 9
break } return o = r . value , t . next = 7 , e . browserCache . contributions . setItem ( o . id . toString ( ) , o . serialize ( ) )
case 7 : t . next = 3
break
case 9 : t . next = 14
break
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 v ( 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 : this . set ( "contributionsNeedSync" , ! 1 )
case 5 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) . group ( "contributionTasks" ) , fetchNewContributions : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( ) { var t , n , r , o , i , u
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , this . kredits . Contribution . functions . contributionsCount ( )
case 2 : if ( t = e . sent , n = Math . max . apply ( null , this . contributions . mapBy ( "id" ) ) , ! ( ( r = t - n ) > 0 ) ) { e . next = 20
break } console . debug ( "[kredits] Fetching " . concat ( r , " new contributions" ) ) , o = n
case 8 : if ( ! ( o <= t ) ) { e . next = 18
break } return e . next = 11 , this . kredits . Contribution . getById ( o )
case 11 : return i = e . sent , u = this . loadContributionFromData ( i ) , e . next = 15 , this . browserCache . contributions . setItem ( u . id . toString ( ) , u . serialize ( ) )
case 15 : o ++ , e . next = 8
break
case 18 : e . next = 21
break
case 20 : console . debug ( "[kredits] No new contributions to fetch" )
case 21 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , fetchMissingContributions : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( ) { var t , n , r , o , i , u , a , s
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return e . next = 2 , this . kredits . Contribution . functions . contributionsCount ( )
case 2 : if ( t = e . sent , ( n = b ( Array ( t + 1 ) . keys ( ) ) ) . shift ( ) , r = new Set ( this . contributions . mapBy ( "id" ) ) , 0 !== ( o = n . filter ( ( function ( e ) { return ! r . has ( e ) } ) ) ) . length ) { e . next = 10
break } return console . debug ( "[kredits] No contributions left to fetch" ) , e . abrupt ( "return" )
case 10 : console . debug ( "[kredits] Fetching " . concat ( o . length , " past contributions" ) ) , i = 0 , u = t
case 13 : if ( ! ( u > 0 ) ) { e . next = 29
break } if ( ! r . has ( u ) ) { e . next = 18
break } return e . abrupt ( "continue" , 26 )
case 18 : return e . next = 20 , this . kredits . Contribution . getById ( u )
case 20 : return a = e . sent , s = this . loadContributionFromData ( a ) , e . next = 24 , this . browserCache . contributions . setItem ( s . id . toString ( ) , s . serialize ( ) )
case 24 : ++ i % 20 == 0 && console . debug ( "[kredits] Fetched " . concat ( i , " more contributions" ) )
case 26 : u -- , e . next = 13
break
case 29 : console . debug ( "[kredits] Cached " . concat ( i , " past contributions" ) )
case 30 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) . group ( "contributionTasks" ) , syncUnconfirmedContributions : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( ) { var t , n , r , o , i
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( ! ( this . contributionsUnconfirmed . length > 0 ) ) { e . next = 25
break } console . debug ( "[kredits] Syncing unconfirmed contributions" ) , t = p ( this . contributionsUnconfirmed ) , e . prev = 3 , t . s ( )
case 5 : if ( ( n = t . n ( ) ) . done ) { e . next = 15
break } return r = n . value , e . next = 9 , this . kredits . Contribution . getById ( r . id )
case 9 : return o = e . sent , i = this . loadContributionFromData ( o ) , e . next = 13 , this . browserCache . contributions . setItem ( r . id . toString ( ) , i . serialize ( ) )
case 13 : e . next = 5
break
case 15 : e . next = 20
break
case 17 : e . prev = 17 , e . t0 = e . catch ( 3 ) , t . e ( e . t0 )
case 20 : return e . prev = 20 , t . f ( ) , e . finish ( 20 )
case 23 : e . next = 26
break
case 25 : console . debug ( "[kredits] No unconfirmed contributions to sync" )
case 26 : case "end" : return e . stop ( ) } } ) , e , this , [ [ 3 , 17 , 20 , 23 ] ] ) } ) ) ) , veto : function ( e ) { console . debug ( "[kredits] veto against" , e )
var t = this . contributions . findBy ( "id" , e )
return this . kredits . Contribution . functions . veto ( e , { gasLimit : 3e5 } ) . then ( ( function ( e ) { return console . debug ( "[kredits] veto response" , e ) , t . set ( "pendingTx" , e ) , e } ) ) } , fetchObjects : function ( e ) { var t = this , n = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { page : { size : 200 } } , r = e . toLowerCase ( )
return console . debug ( "[kredits] Fetching " . concat ( r , "s from the network" ) ) , this . kredits [ e ] . all ( n ) . then ( ( function ( n ) { return n . map ( ( function ( n ) { return t [ "load" . concat ( e , "FromData" ) ] ( n ) } ) ) } ) ) . then ( ( function ( e ) { var n = e . map ( ( function ( e ) { return t . browserCache [ r + "s" ] . setItem ( e . id . toString ( ) , e . serialize ( ) ) } ) )
return Promise . all ( n ) . then ( ( function ( ) { console . debug ( "[kredits] Cached " . concat ( e . length , " " ) . concat ( r + "s" , " in browser storage" ) ) } ) ) } ) ) } , removeObjectFromCollectionIfLoaded : function ( e , t ) { var n = this [ e ] . findBy ( "id" , t )
n && this [ e ] . removeObject ( n ) } , cacheLoadedObjects : function ( e ) { var t = this
return v ( regeneratorRuntime . mark ( ( function n ( ) { var r , o , i
return regeneratorRuntime . wrap ( ( function ( n ) { for ( ; ; ) switch ( n . prev = n . next ) { case 0 : r = p ( t [ e ] ) , n . prev = 1 , r . s ( )
case 3 : if ( ( o = r . n ( ) ) . done ) { n . next = 9
break } return i = o . value , n . next = 7 , t . browserCache [ e ] . setItem ( i . id , i . serialize ( ) )
case 7 : n . next = 3
break
case 9 : n . next = 14
break
case 11 : n . prev = 11 , n . t0 = n . catch ( 1 ) , r . e ( n . t0 )
case 14 : return n . prev = 14 , r . f ( ) , n . finish ( 14 )
case 17 : console . debug ( "[kredits] Cached " . concat ( t [ e ] . length , " " ) . concat ( e , " in browser storage" ) )
case 18 : case "end" : return n . stop ( ) } } ) , n , null , [ [ 1 , 11 , 14 , 17 ] ] ) } ) ) ) ( ) } , loadObjectsFromCache : function ( e ) { var t = this
return v ( regeneratorRuntime . mark ( ( function n ( ) { var r
return regeneratorRuntime . wrap ( ( function ( n ) { for ( ; ; ) switch ( n . prev = n . next ) { case 0 : return r = e . toLowerCase ( ) + "s" , n . abrupt ( "return" , t . browserCache [ r ] . iterate ( ( function ( n ) { var o = g [ e ] . create ( JSON . parse ( n ) )
t . removeObjectFromCollectionIfLoaded ( r , o . id ) , t [ r ] . pushObject ( o ) } ) ) . then ( ( function ( ) { console . debug ( "[kredits] Loaded " . concat ( t [ r ] . length , " " ) . concat ( r , " from cache" ) ) } ) ) )
case 2 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ( ) } , syncTaskGroup : ( 0 , r . taskGroup ) ( ) . enqueue ( ) , fetchNewObjects : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( t ) { var n , r , o , i , u , a , s
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return n = t . toLowerCase ( ) + "s" , e . next = 3 , this . kredits [ t ] . functions [ "" . concat ( n , "Count" ) ] ( )
case 3 : if ( r = e . sent , o = Math . max . apply ( null , this [ n ] . mapBy ( "id" ) ) , ! ( ( i = r - o ) > 0 ) ) { e . next = 21
break } console . debug ( "[kredits] Fetching " . concat ( i , " new " ) . concat ( n ) ) , u = o
case 9 : if ( ! ( u <= r ) ) { e . next = 19
break } return e . next = 12 , this . kredits [ t ] . getById ( u )
case 12 : return a = e . sent , s = this [ "load" . concat ( t , "FromData" ) ] ( a ) , e . next = 16 , this . browserCache [ n ] . setItem ( s . id . toString ( ) , s . serialize ( ) )
case 16 : u ++ , e . next = 9
break
case 19 : e . next = 22
break
case 21 : console . debug ( "[kredits] No new " . concat ( n , " to fetch" ) )
case 22 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , fetchMissingObjects : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( t ) { var n , r , o , i , u , a , s , c , l
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : return n = t . toLowerCase ( ) + "s" , e . next = 3 , this . kredits [ t ] . functions [ "" . concat ( n , "Count" ) ] ( )
case 3 : if ( r = e . sent , ( o = b ( Array ( r + 1 ) . keys ( ) ) ) . shift ( ) , i = new Set ( this [ n ] . mapBy ( "id" ) ) , 0 !== ( u = o . filter ( ( function ( e ) { return ! i . has ( e ) } ) ) ) . length ) { e . next = 11
break } return console . debug ( "[kredits] No " . concat ( n , " left to fetch" ) ) , e . abrupt ( "return" )
case 11 : console . debug ( "[kredits] Fetching " . concat ( u . length , " past " ) . concat ( n ) ) , a = 0 , s = r
case 14 : if ( ! ( s > 0 ) ) { e . next = 30
break } if ( ! i . has ( s ) ) { e . next = 19
break } return e . abrupt ( "continue" , 27 )
case 19 : return e . next = 21 , this . kredits [ t ] . getById ( s )
case 21 : return c = e . sent , l = this [ "load" . concat ( t , "FromData" ) ] ( c ) , e . next = 25 , this . browserCache [ n ] . setItem ( l . id . toString ( ) , l . serialize ( ) )
case 25 : ++ a % 20 == 0 && console . debug ( "[kredits] Fetched " . concat ( a , " more " ) . concat ( n ) )
case 27 : s -- , e . next = 14
break
case 30 : console . debug ( "[kredits] Cached " . concat ( a , " past " ) . concat ( n ) )
case 31 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) , syncUnconfirmedObjects : ( 0 , r . task ) ( regeneratorRuntime . mark ( ( function e ( t ) { var n , r , o , i , u , a
return regeneratorRuntime . wrap ( ( function ( e ) { for ( ; ; ) switch ( e . prev = e . next ) { case 0 : if ( n = t . toLowerCase ( ) + "s" , ! ( this . get ( "" . concat ( n , "Unconfirmed" ) ) . length > 0 ) ) { e . next = 28
break } console . debug ( "[kredits] Syncing unconfirmed " . concat ( n ) ) , r = p ( this [ "" . concat ( n , "Unconfirmed" ) ] ) , e . prev = 4 , r . s ( )
case 6 : if ( ( o = r . n ( ) ) . done ) { e . next = 18
break } if ( i = o . value , ! Ember . isEmpty ( i . id ) ) { e . next = 10
break } return e . abrupt ( "return" )
case 10 : return e . next = 12 , this . kredits [ t ] . getById ( i . id )
case 12 : return u = e . sent , a = this [ "load" . concat ( t , "FromData" ) ] ( u ) , e . next = 16 , this . browserCache [ n ] . setItem ( i . id . toString ( ) , a . serialize ( ) )
case 16 : e . next = 6
break
case 18 : e . next = 23
break
case 20 : e . prev = 20 , e . t0 = e . catch ( 4 ) , r . e ( e . t0 )
case 23 : return e . prev = 23 , r . f ( ) , e . finish ( 23 )
case 26 : e . next = 29
break
case 28 : console . debug ( "[kredits] No unconfirmed " . concat ( n , " to sync" ) )
case 29 : case "end" : return e . stop ( ) } } ) , e , this , [ [ 4 , 20 , 23 , 26 ] ] ) } ) ) ) , vetoAgainstObject : function ( e , t ) { console . debug ( "[kredits] veto against " . concat ( e . toLowerCase ( ) ) , t )
var n = this [ e . toLowerCase ( ) + "s" ] . findBy ( "id" , t )
return this . kredits [ e ] . functions . veto ( t , { gasLimit : 3e5 } ) . then ( ( function ( e ) { return console . debug ( "[kredits] veto response" , e ) , n . set ( "pendingTx" , e ) , e } ) ) } , loadReimbursementFromData : function ( e ) { var t = f . default . create ( ( 0 , a . default ) ( e ) )
return t . set ( "contributor" , this . contributors . findBy ( "id" , e . recipientId ) ) , this . removeObjectFromCollectionIfLoaded ( "reimbursements" , t . id ) , this . reimbursements . pushObject ( t ) , t } , addReimbursement : function ( e ) { var t = this
return console . debug ( "[kredits] add reimbursement" , e ) , this . kredits . Reimbursement . add ( e , { gasLimit : 3e5 } ) . then ( ( function ( n ) { console . debug ( "[kredits] add reimbursement response" , n )
var r = f . default . create ( e )
return r . setProperties ( { contributor : t . contributors . findBy ( "id" , e . recipientId ) , pendingTx : n , confirmedAt : t . currentBlock + 40320 } ) , t . reimbursements . pushObject ( r ) , n . wait ( ) . then ( ( function ( e ) { return console . debug ( "[kredits] tx successful" , e ) } ) ) . catch ( ( function ( e ) { window . alert ( "The transaction failed to execute. Please check the browser console." ) , console . log ( "[kredits] tx error" , e ) } ) ) , r } ) ) } , syncReimbursements : ( 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 . fetchNewObjects . perform ( "Reimbursement" )
case 2 : return e . next = 4 , this . syncUnconfirmedObjects . perform ( "Reimbursement" )
case 4 : this . set ( "reimbursementsNeedSync" , ! 1 )
case 5 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) . group ( "syncTaskGroup" ) , fetchMissingReimbursements : ( 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 . fetchMissingObjects . perform ( "Reimbursement" )
case 2 : case "end" : return e . stop ( ) } } ) , e , this ) } ) ) ) . group ( "syncTaskGroup" ) , addContractEventHandlers : function ( ) { this . kredits . Contributor . on ( "ContributorProfileUpdated" , this . handleContributorChange . bind ( this ) ) . on ( "ContributorAccountUpdated" , this . handleContributorChange . bind ( this ) ) . on ( "ContributorAdded" , this . handleContributorChange . bind ( this ) ) , this . kredits . Contribution . on ( "ContributionAdded" , this . handleContributionAdded . bind ( this ) ) . on ( "ContributionVetoed" , this . handleContributionVetoed . bind ( this ) ) , this . kredits . Reimbursement . on ( "ReimbursementAdded" , this . handleReimbursementAdded . bind ( this ) ) . on ( "ReimbursementVetoed" , this . handleReimbursementVetoed . bind ( this ) ) , this . kredits . Token . on ( "Transfer" , this . handleTransfer . bind ( this ) ) } , handleContributorChange : function ( e ) { var t = arguments , n = this
return v ( 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 = l . 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 v ( 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 )
case 5 : return u = o . sent , a = r . loadContributionFromData ( u ) , o . next = 9 , r . browserCache . contributions . setItem ( a . id . toString ( ) , a . serialize ( ) )
case 9 : case "end" : return o . stop ( ) } } ) , o ) } ) ) ) ( ) } , handleContributionVetoed : function ( e ) { var t = this
return v ( regeneratorRuntime . mark ( ( function n ( ) { var r
return regeneratorRuntime . wrap ( ( function ( n ) { for ( ; ; ) switch ( n . prev = n . next ) { case 0 : if ( console . debug ( "[kredits] ContributionVetoed event received for " , e ) , ! ( r = t . contributions . findBy ( "id" , e ) ) ) { n . next = 8
break } return console . debug ( "[kredits] Updating contribution" , r ) , r . set ( "vetoed" , ! 0 ) , r . set ( "pendingTx" , null ) , n . next = 8 , t . browserCache . contributions . setItem ( r . id . toString ( ) , r . serialize ( ) )
case 8 : case "end" : return n . stop ( ) } } ) , n ) } ) ) ) ( ) } , handleReimbursementAdded : function ( e , t , n ) { var r = this
return v ( regeneratorRuntime . mark ( ( function o ( ) { var i , u
return regeneratorRuntime . wrap ( ( function ( o ) { for ( ; ; ) switch ( o . prev = o . next ) { case 0 : return console . debug ( "[kredits] ReimbursementAdded event received" , { id : e , addedByAccount : t , amount : n } ) , ( i = r . reimbursementsPending . find ( ( function ( e ) { return e . amount . toString ( ) === n . toString ( ) } ) ) ) && ( console . debug ( "[kredits] Found a pending reimbursement matching the event. Replacing it with the final record..." ) , r . reimbursements . removeObject ( i ) ) , o . next = 5 , r . kredits . Reimbursement . getById ( e )
case 5 : u = o . sent , r . loadReimbursementFromData ( u )
case 7 : case "end" : return o . stop ( ) } } ) , o ) } ) ) ) ( ) } , handleReimbursementVetoed : function ( e ) { console . debug ( "[kredits] ReimbursementVetoed received for " , e )
var t = this . reimbursements . findBy ( "id" , e )
console . debug ( "[kredits] reimbursement" , this . reimbursement ) , t && ( t . set ( "vetoed" , ! 0 ) , t . set ( "pendingTx" , null ) ) } , 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 = w } ) ) , 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
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" } } )
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 Expenses"],[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
var t = Ember . HTMLBars . template ( { id : "i2/ZI1CX" , block : ' { "symbols" : [ ] , "statements" : [ [ 10 , "svg" ] , [ 14 , 0 , "icon-gitea" ] , [ 14 , "width" , "400" ] , [ 14 , "height" , "400" ] , [ 14 , "version" , "1.1" ] , [ 14 , "viewBox" , "0 0 400 400" ] , [ 14 , "xmlns" , "http://www.w3.org/2000/svg" , "http://www.w3.org/2000/xmlns/" ] , [ 14 , "xmlns:cc" , "http://creativecommons.org/ns#" ] , [ 14 , "xmlns:dc" , "http://purl.org/dc/elements/1.1/" ] , [ 14 , "xmlns:rdf" , "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "g" ] , [ 14 , "fill-rule" , "evenodd" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "path" ] , [ 14 , "d" , "m235.61 136.7 7e-3 32.7 4.493 2.189c2.471 1.204 4.628 2.25 4.793 2.324s0.3-15.626 0.3-34.889v-35.024h-9.6l7e-3 32.7m-22.336 30.528c-2.787 0.548-5.894 2.175-8.11 4.244-2.296 2.145-1.694 0.967-24.197 47.328l-11.164 23v4.6c0 4.305 0.076 4.75 1.185 6.942 2.815 5.56 1.055 4.606 69.415 37.629l4.2 2.029h4.221c10.104 0 11.144-1.319 26.676-33.8 0.999-2.09 4.15-8.57 7.001-14.4s6.916-14.2 9.033-18.6l3.849-8 0.01-4.219c0.02-8.49-2.644-11.721-14.326-17.371-4.215-2.038-11.264-5.461-15.664-7.606-15.241-7.429-22.802-11.07-23.125-11.137-0.418-0.086-1.177 1.299-5.112 9.333l-3.234 6.6 1.19 2.2c0.654 1.21 1.308 3.038 1.454 4.063l0.265 1.862 5.747 2.8c22.047 10.742 22.975 15.314 9.007 44.377l-3.317 6.902 1.162 2.098c3.865 6.974-0.923 15.098-8.898 15.098-12.557 0-13.717-18.335-1.278-20.2l1.842-0.276 3.101-6.462c12.037-25.079 11.953-25.952-3.232-33.53l-7.333-3.659-2.319 1.032c-1.276 0.567-3.151 1.153-4.167 1.301l-1.848 0.269-6.785 13.855-6.786 13.854 1.109 1.747c6.109 9.633-5.532 20.771-14.552 13.924-6.729-5.108-4.39-16.742 3.633-18.073 0.812-0.134 1.71-0.318 1.996-0.408 0.429-0.136 6.592-12.372 13.118-26.044l1.37-2.87-0.782-1.33c-3.586-6.099 0.331-14.253 7.353-15.306l1.683-0.252 3.969-8.045c2.183-4.425 4.019-8.168 4.08-8.319s-2.979-1.758-6.755-3.571c-8.092-3.885-10.4-4.452-14.685-3.609" ] , [ 12 ] , [ 13 ] , [ 2 , "\\n " ] , [ 10 , "path" ] , [ 14 , 0 , "fg" ] , [ 14 , "d" , " m73 . 4 97.876 c - 2.903 0.376 - 8.068 1.377 - 8.8 1.705 - 0.44 0.197 - 2.915 1.007 - 5.5 1.8 s - 4.7 1.617 - 4.7 1.831 c0 0.213 - 0.225 0.388 - 0.5 0.388 - 0.63 1e-3 - 5.615 2.344 - 5.893 2.771 - 0.114 0.175 - 0.837 0.638 - 1.607 1.029 - 5.482 2.788 - 14.835 11.523 - 18.63 17.4 - 0.639 0.99 - 1.274 1.89 - 1.409 2 - 0.659 0.534 - 4.752 8.933 - 5.555 11.4 - 0.502 1.54 - 1.048 2.98 - 1.213 3.2 - 0.587 0.782 - 2.031 7.531 - 2.489 11.633 - 0.256 2.292 - 0.61 4.167 - 0.785 4.167 - 0.443 0 - 0.403 17.45 0.042 18.305 0.199 0.382 0.566 2.748 0.816 5.258 0.493 4.939 1.847 12.516 2.428 13.578 0.198 0.363 0.83 2.369 1.405 4.459 1.927 7.009 10.26 22.927 12.44 23.764 0.303 0.116 0.55 0.481 0.55 0.812 0 0.813 10.667 11.552 12.3 12.383 0.715 0.364 1.3 0.821 1.3 1.017 0 0.195 0.945 0.934 2.1 1.642 s2 . 19 1.41 2.3 1.561 1.28 0.875 2.6 1.609 c1 . 32 0.735 2.67 1.552 3 1.816 s1 . 95 1.086 3.6 1.827 c1 . 65 0.74 3.101 1.486 3.224 1.658 0.123 0.171 1.741 0.865 3.596 1.542 s3 . 557 1.384 3.783 1.572 c0 . 226 0.187 2.388 0.907 4.804 1.599 s4 . 753 1.423 5.193 1.624 c1 . 299 0.593 7.258 1.856 12.2 2.586 2.53 0.374 4.96 0.83 5.4 1.013 1.151 0.48 8.262 1.165 15.067 1.45 l5 . 866 0.247 0.877 2.594 c0 . 903 2.673 4.652 10.529 5.195 10.884 0.168 0.11 0.585 0.83 0.928 1.6 0.685 1.538 1.927 3.686 2.313 4 0.135 0.11 0.826 1.19 1.536 2.4 1.544 2.634 4.561 7.175 5.293 7.968 0.289 0.313 0.975 1.236 1.525 2.051 1.729 2.563 7.039 9.405 8.557 11.025 0.244 0.26 1.523 1.692 2.843 3.183 3.476 3.925 7.354 7.774 10.261 10.183 1.397 1.157 2.629 2.223 2.739 2.368 s1 . 096 0.884 2.191 1.643 c1 . 094 0.758 2.33 1.681 2.745 2.051 s1 . 229 0.911 1.809 1.203 1.884 1.026 2.897 1.632 c1 . 952 1.167 7.201 3.093 8.428 3.093 0.402 0 0.73 0.18 0.73 0.4 0 0.511 115.46 0.557 115.77 0.046 0.121 - 0.194 1.074 - 0.482 2.119 - 0.639 2.437 - 0.365 7.765 - 2.307 9.27 - 3.378 0.64 - 0.456 1.334 - 0.829 1.542 - 0.829 0.451 0 5.639 - 3.687 8.597 - 6.111 2.854 - 2.337 5.633 - 5.107 8.718 - 8.689 1.42 - 1.65 2.681 - 3.09 2.8 - 3.2 0.581 - 0.536 5.161 - 6.76 5.812 - 7.9 0.409 - 0.715 0.869 - 1.3 1.023 - 1.3 0.153 0 0.938 - 1.125 1.742 - 2.5 2.068 - 3.533 4.108 - 6.822 4.561 - 7.352 0.213 - 0.248 1.043 - 1.755 1.845 - 3.348 s1 . 62 - 3.1 1.818 - 3.348 c0 . 687 - 0.864 5.069 - 9.661 5.555 - 11.152 0.269 - 0.825 0.642 - 1.5 0.829 - 1.5 s0 . 878 - 1.396 1.536 - 3.101 c0 . 658 - 1.706 1.671 - 4.047 2.251 - 5.203 0.581 - 1.156 1.405 - 3.116 1.832 - 4.356 0.426 - 1.239 0.934 - 2.453 1.129 - 2.696 0.194 - 0.244 0.946 - 2.154 1.671 - 4.244 s1 . 446 - 3.89 1.602 - 4 c0 . 155 - 0.11 0.964 - 2.36 1.797 - 5 0.832 - 2.64 1.627 - 4.89 1.766 - 5 s0 . 861 - 2.27 1.604 - 4.8 c0 . 742 - 2.53 1.484 - 4.782 1.649 - 5.003 0.164 - 0.222 0.872 - 2.562 1.573 - 5.2 0.701 - 2.639 1.412 - 4.977 1.58 - 5.197 s0 . 965 - 3.19 1.77 - 6.6 1.623 - 6.488 1.817 - 6.84 c0 . 195 - 0.353 0.919 - 3.503 1.611 - 7 0.692 - 3.498 1.431 - 6.678 1.642 - 7.068 0.211 - 0.389 0.938 - 4.169 1.616 - 8.4 0.677 - 4.23 1.388 - 8.052 1.579 - 8.492 0.192 - 0.44 0.708 - 3.77 1.147 - 7.4 4.258 - 35.198 1.497 - 55.451 - 8.208 - 60.199 l - 2.219 - 1.086 - 7.473 0.266 c - 4.111 0.146 - 7.834 0.417 - 8.274 0.602 - 0.801 0.336 - 13.842 0.941 - 52 2.412 - 11.22 0.433 - 22.2 0.881 - 24.4 0.997 - 2.2 0.115 - 11.334 0.415 - 20.298 0.665 l - 16.298 0.455 - 0.204 69.922 - 9.392 - 4.634 - 8e-3 - 65.272 - 19.3 - 0.277 c - 10.615 - 0.153 - 19.84 - 0.441 - 20.5 - 0.642 - 0.66 - 0.2 - 6.69 - 0.551 - 13.4 - 0.779 - 21.82 - 0.743 - 58.18 - 2.495 - 59 - 2.843 - 0.44 - 0.187 - 4.04 - 0.453 - 8 - 0.591 s - 11.34 - 0.508 - 16.4 - 0.822 c - 8.365 - 0.519 - 2 Line truncated
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-account-github-com" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "6f7RSD0A" , block : '{"symbols":[],"statements":[[10,"svg"],[14,0,"icon-github"],[14,"width","260"],[14,"height","260"],[14,"enable-background","new 0 0 212.4575 186.23"],[14,"version","1.1"],[14,"viewBox","0 0 260 260"],[14,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:cc","http://creativecommons.org/ns#"],[14,"xmlns:dc","http://purl.org/dc/elements/1.1/"],[14,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"],[12],[2,"\\n "],[10,"g"],[14,"transform","translate(23.766 36.885)"],[12],[2,"\\n "],[10,"path"],[14,"d","m151.79 86.234c-7.078 0.1229-14.154 0.5605-21.232 0.7069-12.318 0.248-24.64 0.5664-36.961 0.512-11.176-0.0472-22.358-0.9728-33.518-0.7052-7.3164 0.1776-14.373 2.2948-20.131 7.584-9.9472 9.1368-12.522 21-11.314 33.807 1.92 20.357 9.2716 31.449 29.115 37.064 15.793 4.4704 31.963 5.2088 48.199 4.9744 5.254 0 10.51 0.1367 15.758-0.0292 12.723-0.4064 25.264-2.2072 37.358-6.3596 10.846-3.7225 18.799-10.691 22.572-22.166 2.6736-8.1288 3.7148-16.388 2.5544-24.853-1.7772-12.959-13.275-30.86-32.4-30.535zm-81.576 59.996c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20zm76 0c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20z"],[14,"fill","none"],[12],[13],[2,"\\n "],[10,"path"],[14,0,"fg"],[14,"d","m200.25 59.188c-2.5076-3.4493-4.3632-6.3888-3.8748-11.44 0.6796-7.0664-0.3536-14.396-1.3204-21.518-1.2188-8.9843-3.5236-17.74-7.1776-26.23-9.0332 1.9356-17.981 3.49-25.963 8.0976-8.4648 4.8908-16.695 10.215-25.08 15.25-0.9532 0.5704-2.3124 0.8848-3.3848 0.7032-17.967-3.1368-35.92-3.0196-53.898-0.086-1.3632 0.2244-3.0724-0.2345-4.2948-0.9608-4.4436-2.6604-8.6564-5.7344-13.123-8.3516-11.656-6.844-23.66-12.822-37.494-14.59-0.3928 0.8597-0.7188 1.4785-0.9612 2.1253-4.164 11.22-6.6424 22.844-7.4276 34.82-0.2872 4.3516-0.6092 8.8048 0 13.072 0.3456 2.4296-4e-3 3.8788-1.3924 5.6132-4.8516 6.0488-8.6368 12.717-11.102 20.219-4.6972 14.295-4.4004 28.861-2.2756 43.475 1.7268 11.974 4.7344 23.537 11.324 33.873 13.186 20.682 32.892 29.774 55.572 31.705 19.308 1.6464 38.8 1.1992 58.213 1.2364 13.855 0.0251 27.57-1.4924 40.715-6.6389 20.375-7.9727 33.859-22.604 40.275-44.166 3.7344-12.545 5.2324-25.396 4.8144-38.498-0.4412-13.81-4.0504-26.566-12.144-37.711zm-18.609 82.435c-3.7736 11.475-11.727 18.444-22.572 22.166-12.094 4.1524-24.635 5.9532-37.358 6.3596-5.248 0.1659-10.504 0.0292-15.758 0.0292-16.236 0.2344-32.406-0.504-48.199-4.9744-19.844-5.6152-27.195-16.707-29.115-37.064-1.2072-12.807 1.3672-24.67 11.314-33.807 5.7576-5.2892 12.814-7.4064 20.131-7.584 11.16-0.2676 22.342 0.658 33.518 0.7052 12.32 0.0544 24.642-0.264 36.961-0.512 7.0784-0.1464 14.154-0.584 21.232-0.7069 19.125-0.3243 30.623 17.576 32.4 30.535 1.1604 8.4647 0.1192 16.724-2.5544 24.853z"],[12],[13],[2,"\\n "],[10,"ellipse"],[14,0,"fg"],[14,"cx","70.214"],[14,"cy","126.23"],[14,"rx","16"],[14,"ry","20"],[12],[13],[2,"\\n "],[10,"ellipse"],[14,0,"fg"],[14,"cx","146.21"],[14,"cy","126.23"],[14,"rx","16"],[14,"ry","20"],[12],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/components/icon-account-github-com.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-account-wiki-kosmos-org" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "Jd1PFucm" , block : '{"symbols":[],"statements":[[10,"svg"],[14,0,"icon-wiki"],[14,"width","120"],[14,"height","120"],[14,"version","1.1"],[14,"viewBox","0 0 120 120"],[14,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:cc","http://creativecommons.org/ns#"],[14,"xmlns:dc","http://purl.org/dc/elements/1.1/"],[14,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"],[12],[2,"\\n "],[10,"g"],[14,"transform","translate(18.1,3)"],[12],[2,"\\n "],[10,"polygon"],[14,0,"fg"],[14,"transform","translate(-6.2,9)"],[14,"points","6.2 5 45.7 20.5 45.7 91 6.2 75.5"],[12],[13],[2,"\\n "],[10,"polygon"],[14,0,"fg"],[14,"transform","translate(-6.2,9)"],[14,"points","90 5 50.5 20.5 50.5 91 90 75.5"],[12],[13],[2,"\\n "],[10,"polygon"],[14,0,"fg"],[14,"transform","translate(-6.2,9)"],[14,"points","87 88 87 81.8 60.4 91"],[12],[13],[2,"\\n "],[10,"polygon"],[14,0,"fg"],[14,"transform","translate(-6.2,9)"],[14,"points","9.2 88 9.2 81.8 34.9 91"],[12],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/components/icon-account-wiki-kosmos-org.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-account-zoom-us" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "t+FK8DQJ" , block : '{"symbols":[],"statements":[[10,"svg"],[14,"width","256"],[14,"height","256"],[14,"version","1.1"],[14,"viewBox","0 0 67.733 67.733"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:cc","http://creativecommons.org/ns#"],[14,"xmlns:dc","http://purl.org/dc/elements/1.1/"],[14,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"],[12],[2,"\\n "],[10,"g"],[14,"transform","translate(0 -229.27)"],[12],[2,"\\n "],[10,"g"],[14,"transform","matrix(.90278 0 0 .90278 6.5684 141.05)"],[14,"fill-rule","evenodd"],[12],[2,"\\n "],[10,"path"],[14,0,"fg"],[14,"d","m32.67 117.1c2.2056 0.1405 3.0528 0.27041 4.1992 0.64479 3.9359 1.2854 6.7418 4.6736 7.3059 8.8223 0.06615 0.48578 0.13996 1.0253 0.16431 1.1986 0.29104 2.0743 0.07488 21.552-0.25003 22.55-0.59082 1.814-1.901 2.7993-4.0537 3.0488-1.3671 0.15849-30.564 0.0701-31.846-0.0963-5.2843-0.68659-8.8934-4.001-9.7398-8.9445-0.38418-2.2439-0.62362-20.748-0.29871-23.084 0.34422-2.4746 1.7264-3.797 4.3212-4.1338 0.98769-0.12832 28.191-0.13361 30.197-6e-3"],[12],[13],[2,"\\n "],[10,"path"],[14,0,"fg"],[14,"d","m61.114 118.11c0.56621 0.4072 0.97816 1.0565 1.1885 1.874 0.19553 0.75909 0.24474 28.04 0.05371 29.747-0.37333 3.3361-2.6305 4.0137-5.5264 1.6584-7.9722-6.4841-9.021-7.5734-9.6795-10.052-0.26008-0.97895-0.33152-10.629-0.08811-11.876 0.38021-1.9457 1.2594-3.1946 3.7383-5.3099 7.4491-6.3564 7.5914-6.4569 9.0522-6.4008 0.70723 0.0272 0.8599 0.0709 1.2613 0.3593"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/components/icon-account-zoom-us.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-warning" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "s2ZzsQPB" , block : '{"symbols":[],"statements":[[10,"svg"],[14,"width","60px"],[14,"height","60px"],[14,"version","1.1"],[14,"viewBox","0 0 60 60"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:cc","http://creativecommons.org/ns#"],[14,"xmlns:dc","http://purl.org/dc/elements/1.1/"],[14,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"],[12],[2,"\\n "],[10,"g"],[14,"fill","none"],[14,"fill-rule","evenodd"],[12],[2,"\\n "],[10,"g"],[14,"transform","translate(-479,-238)"],[14,"stroke","#fbe468"],[14,"stroke-linecap","round"],[14,"stroke-linejoin","round"],[14,"stroke-width","1"],[12],[2,"\\n "],[10,"g"],[14,"transform","translate(482,244)"],[12],[2,"\\n "],[10,"a"],[14,"transform","translate(0,2)"],[12],[2,"\\n "],[10,"polygon"],[14,1,"Triangle-58"],[14,"points","0.15321 44 27 0 53.847 44"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[10,"rect"],[14,"x","25"],[14,"y","13"],[14,"width","4"],[14,"height","21"],[12],[13],[2,"\\n "],[10,"a"],[14,"transform","translate(0,2)"],[12],[2,"\\n "],[10,"circle"],[14,"cx","27"],[14,"cy","38"],[14,"r","2"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/components/icon-warning.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/components/icon-web-globe" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "CCF3RzQa" , block : '{"symbols":[],"statements":[[10,"svg"],[14,0,"icon-web-globe"],[14,"width","60"],[14,"height","60"],[14,"enable-background","new 0 0 64 64"],[14,"version","1.1"],[14,"viewBox","0 0 60 60"],[14,"xml:space","preserve","http://www.w3.org/XML/1998/namespace"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[14,"xmlns:cc","http://creativecommons.org/ns#"],[14,"xmlns:dc","http://purl.org/dc/elements/1.1/"],[14,"xmlns:rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#"],[12],[2,"\\n "],[10,"path"],[14,0,"fg"],[14,"d","m48.1 14.3c-0.4-0.5-0.9-1-1.4-1.5-4.3-4.2-10.2-6.8-16.7-6.8s-12.4 2.6-16.7 6.8c-0.5 0.5-1 1-1.4 1.5-3.7 4.2-5.9 9.7-5.9 15.7s2.2 11.5 5.8 15.7c0.4 0.5 0.9 1 1.4 1.5 4.3 4.2 10.3 6.8 16.8 6.8s12.5-2.6 16.8-6.9c0.5-0.5 0.9-0.9 1.4-1.5 3.6-4.1 5.8-9.6 5.8-15.6s-2.2-11.5-5.9-15.7zm3.9 14.7h-8.1c-0.1-3-1-7.3-2.4-10.5 1.8-0.8 3.5-1.8 5.1-3 3.1 3.6 5.1 8.5 5.4 13.5zm-21-20.1c3 2.3 5.8 5.2 7.6 8.5-2.4 0.9-4.6 1.3-7.6 1.4zm-2 9.9c-3-0.1-5.2-0.6-7.6-1.4 1.8-3.3 4.6-6.3 7.6-8.5zm0 2v8.2h-10.8c0.1-3 0.9-6.8 2.3-9.8 2.7 1 5.5 1.5 8.5 1.6zm0 10.2v8c-3 0.1-5.9 0.7-8.6 1.7-1.4-3-2.1-5.7-2.3-9.7zm0 10v10.1c-3-2.3-5.8-5.3-7.7-8.6 2.4-0.9 4.7-1.4 7.7-1.5zm2 0c3 0.1 5.3 0.6 7.7 1.5-1.9 3.4-4.7 6.3-7.7 8.6zm0-2v-8h10.8c-0.1 4-0.9 6.7-2.3 9.7-2.6-1-5.5-1.5-8.5-1.7zm0-10v-8.2c3-0.1 5.8-0.7 8.5-1.6 1.4 3 2.2 6.8 2.3 9.8zm9.5-12.3c-1.7-3.2-4.1-6-6.9-8.3 4.4 0.6 8.4 2.7 11.5 5.6-1.4 1.1-3 1.9-4.6 2.7zm-14.1-8.4c-2.9 2.3-5.2 5.2-6.9 8.3-1.6-0.7-3.2-1.6-4.6-2.6 3.1-2.9 7.1-5 11.5-5.7zm-12.9 7.2c1.6 1.2 3.3 2.2 5.1 3-1.5 3.3-2.3 7.5-2.4 10.5h-8.2c0.3-5 2.3-9.9 5.5-13.5zm-5.5 15.5h8.1c0.1 4 1 7.2 2.4 10.5-1.8 0.8-3.5 1.8-5.1 3-3.2-3.7-5.1-8.5-5.4-13.5zm11.4 12.2c1.7 3.2 4.1 6.1 7 8.4-4.5-0.7-8.5-2.8-11.6-5.8 1.5-1 3-1.8 4.6-2.6zm14.2 8.5c2.9-2.4 5.3-5.2 7-8.4 1.6 0.7 3.2 1.6 4.6 2.6-3.1 3-7.2 5-11.6 5.8zm13-7.3c-1.6-1.2-3.3-2.2-5.1-3 1.4-3.2 2.3-6.5 2.4-10.5h8.1c-0.3 5.1-2.2 9.9-5.4 13.5z"],[12],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":[]}' , meta : { moduleName : "kredits-web/templates/components/icon-web-globe.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/contributions/new" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "FD6gV6zT" , block : '{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-contribution"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Submit a contribution"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-contribution",[],[["@attributes","@save"],[[32,0,["model","params"]],[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/contributions/new.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/contributions/resubmit" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "CwFo+wqw" , block : '{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-contribution"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Re-submit contribution #"],[1,[32,0,["model","id"]]],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-contribution",[],[["@attributes","@contributors","@save"],[[32,0,["attributes"]],[32,0,["sortedContributors"]],[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/contributions/resubmit.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/contributors/edit" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "clbPf+4y" , 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,"Update contributor profile"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-contributor",[],[["@attributes","@save"],[[32,0,["attributes"]],[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/edit.hbs" } } )
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 : "Cpa+mFtw" , block : ' { "symbols" : [ ] , "statements" : [ [ 6 , [ 37 , 1 ] , [ [ 32 , 0 , [ "showIntroText" ] ] ] , null , [ [ "default" ] , [ { "statements" : [ [ 2 , " " ] , [ 10 , "div" ] , [ 14 , 1 , "intro" ] , [ 15 , 0 , [ 30 , [ 36 , 1 ] , [ [ 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 , 1 ] , [ [ 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 , 1 ] , [ [ 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 , 2 ] , [ [ 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 " ] , [ 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 " ] , [ 13 ] , [ 2 , "\\n\\n " ] , [ 10 , "div" ] , [ 14 , 1 , "contributions" ] , [ 12 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 1 ] , [ [ 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 , 0 ] , [ [ 32 , 0 ] , "toggleQuickFilterUnconfirmed" ] , null ] ] , [ 15 , 0 , [ 31 , [ "small " , [ 30 , [ 36 , 1 ] , [ [ 32 , 0 , [ "showQuickFilterUnconfirmed" ] ] , "active" ] , null ] ] ] ] , [ 14 , 4 , "button" ] , [ 12 ] , [ 2 , "\\n filter\\n " ] , [ 13 ] , [ 2 , "\\n" ] , [ 6 , [ 37 , 1 ] , [ [ 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 , 0 ] , [ [ 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 " ] , [ 10 , "section" ] , [ 14 , 1 , "contributions-confirmed" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "header" ] , [ 14 , 0 , "with-nav" ] , [ 12 ] , [ 2 , "\\n " ] , [ 10 , "h2" ] , [ 12 ] , [ 2 , " Confirmed Contributions 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
var t = Ember . HTMLBars . template ( { id : "fKxhLwYT" , block : '{"symbols":["account"],"statements":[[10,"section"],[14,1,"contributor-profile"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[8,"user-avatar",[],[["@contributor","@size"],[[32,0,["model"]],"medium"]],null],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[10,"h2"],[12],[1,[32,0,["model","name"]]],[13],[2,"\\n "],[10,"p"],[14,0,"role"],[12],[1,[32,0,["roleName"]]],[13],[2,"\\n\\n "],[10,"ul"],[14,0,"external-accounts"],[12],[2,"\\n"],[6,[37,1],[[30,[36,0],[[30,[36,0],[[32,0,["model","accounts"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"external-account-link",[],[["@account"],[[32,1]]],null],[2,"\\n "],[13],[2,"\\n"]],"parameters":[1]}]]],[6,[37,2],[[32,0,["model","url"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[32,0,["model","url"]]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,"title","Website"],[12],[2,"\\n "],[10,"span"],[14,0,"site"],[12],[2,"Web"],[13],[2,"\\n "],[8,"icon-web-globe",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"div"],[14,0,"actions"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button green"]],[["@route","@query"],["contributions.new",[30,[36,3],null,[["contributorId"],[[32,0,["model","id"]]]]]]],[["default"],[{"statements":[[2,"♥ Give kredits"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"actions"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"a"],[15,6,[31,["https://rinkeby.etherscan.io/address/",[32,0,["model","account"]]]]],[14,0,"button small"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"Inspect Ethereum transactions"],[13],[2,"\\n"],[6,[37,2],[[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,"Inspect IPFS profile"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[8,"link-to",[[24,0,"button small"]],[["@route","@model"],["contributors.edit",[32,0,["model"]]]],[["default"],[{"statements":[[2,"Edit profile"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["-track-array","each","if","hash"]}' , meta : { moduleName : "kredits-web/templates/dashboard/contributors/show.hbs" } } )
e . default = t } ) ) , define ( "kredits-web/templates/reimbursements/new" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
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/complete" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "x6riITpS" , 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"],[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/eth-account" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = void 0
var t = Ember . HTMLBars . template ( { id : "7JUuWBL/" , 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,"mg-bottom-md"],[12],[2,"\\n Kredits allow you to take part in project governance, and to earn rewards for\\n your contributions. For both, you will need an Ethereum wallet/account.\\n "],[13],[2,"\\n "],[10,"form"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n Ethereum account:"],[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,["ethAddress"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[10,"button"],[15,"disabled",[32,0,["signupButtonDisabled"]]],[15,"onclick",[30,[36,1],[[32,0],"completeSignup"],null]],[14,4,"button"],[12],[2,"\\n Complete my profile\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","action"]}' , meta : { moduleName : "kredits-web/templates/signup/eth-account.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 )
n . decimals || ( r = parseInt ( r ) . toString ( ) )
return r } } ) ) , 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 )
Ember . isPresent ( o ) ? o . items . push ( e ) : ( o = { property : t , value : r , items : [ e ] } , n . push ( o ) ) } ) )
return n } } ) ) , define ( "kredits-web/utils/is-valid-amount" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var t = parseFloat ( e )
return ! Number . isNaN ( t ) && t > 0 } } ) ) , define ( "kredits-web/utils/process-contribution-data" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var t = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : { } , n = { }
e . confirmedAtBlock && "function" == typeof e . confirmedAtBlock . toNumber ? n . confirmedAt = e . confirmedAtBlock . toNumber ( ) : "undefined" !== e . confirmedAt && ( n . confirmedAt = e . confirmedAt )
var r = [ "id" , "contributorId" , "amount" , "vetoed" , "ipfsHash" , "kind" , "description" , "url" , "date" , "time" , "pendingTx" ]
r . forEach ( ( function ( t ) { n [ t ] = e [ t ] } ) ) , t . includeDetails && ( n . details = e . details )
return n } } ) ) , define ( "kredits-web/utils/process-contributor-data" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var t , n = { balance : e . balanceInt , totalKreditsEarned : e . totalKreditsEarned , contributionsCount : null === ( t = e . contributionsCount ) || void 0 === t ? void 0 : t . toNumber ( ) }
return [ "id" , "account" , "accounts" , "ipfsHash" , "isCore" , "kind" , "name" , "url" , "github_username" , "github_uid" , "wiki_username" , "zoom_display_name" ] . forEach ( ( function ( t ) { n [ t ] = e [ t ] } ) ) , n } } ) ) , define ( "kredits-web/utils/process-reimbursement-data" , [ "exports" ] , ( function ( e ) { Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . default = function ( e ) { var t = { amount : e . amount . toNumber ( ) }
e . confirmedAtBlock && "function" == typeof e . confirmedAtBlock . toNumber ? t . confirmedAt = e . confirmedAtBlock . toNumber ( ) : "undefined" !== e . confirmedAt && ( t . confirmedAt = e . confirmedAt )
return [ "id" , "recipientId" , "token" , "vetoed" , "ipfsHash" , "expenses" , "pendingTx" ] . forEach ( ( function ( n ) { t [ n ] = e [ n ] } ) ) , t } } ) )
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-0+7c8ca45b" } )
//# sourceMappingURL=kredits-web-587629d422f47f105aa3f7b71b55343f.map