@ -20,12 +20,13 @@ 
			
		
	
		
		
			
				
					    < ul  class = "border-t border-slate-300" >     < ul  class = "border-t border-slate-300" >  
			
		
	
		
		
			
				
					      < li  class = "border-b border-slate-300 py-3" >       < li  class = "border-b border-slate-300 py-3" >  
			
		
	
		
		
			
				
					        < h2  class = "text-base flex gap-4 items-center" >         < h2  class = "text-base flex gap-4 items-center" >  
			
		
	
		
		
			
				
					
					          < span  class = "grow italic text-slate-500 " >           < span  class = "grow" >  
			
				
				
			
		
	
		
		
	
		
		
			
				
					            < img             < img  
			
		
	
		
		
			
				
					              src = "../assets/blank-square.svg"               src = "../assets/blank-square.svg"  
			
		
	
		
		
			
				
					
					              class = "mx-auto border border-slate-300 rounded-md mb-1"               width = "32"  
			
				
				
			
		
	
		
		
	
		
		
			
				
					              class = "inline-block align-middle border border-slate-300 rounded-md mr-1"  
			
		
	
		
		
			
				
					            / >             / >  
			
		
	
		
		
			
				
					
					            Anonymous             Anonymous / Unnamed  
			
				
				
			
		
	
		
		
	
		
		
			
				
					          < / span >           < / span >  
			
		
	
		
		
			
				
					          < span  class = "text-right" >           < span  class = "text-right" >  
			
		
	
		
		
			
				
					            < button             < button  
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -44,12 +45,12 @@ 
			
		
	
		
		
			
				
					        class = "border-b border-slate-300 py-3"         class = "border-b border-slate-300 py-3"  
			
		
	
		
		
			
				
					      >       >  
			
		
	
		
		
			
				
					        < h2  class = "text-base flex gap-4 items-center" >         < h2  class = "text-base flex gap-4 items-center" >  
			
		
	
		
		
			
				
					
					          < span  class = "grow font-semibold"           < span  class = "grow font-semibold" >  
			
				
				
			
		
	
		
		
			
				
					
					            > < EntityIcon             < EntityIcon  
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					              : entityId = "contact.did"               : entityId = "contact.did"  
			
		
	
		
		
			
				
					              : iconSize = "32"               : iconSize = "32"  
			
		
	
		
		
			
				
					              class = "inline-block align-middle border border-slate-300 rounded-md mr-1"               class = "inline-block align-middle border border-slate-300 rounded-md mr-1"  
			
		
	
		
		
			
				
					
					            > < / EntityIcon >             / >  
			
				
				
			
		
	
		
		
	
		
		
			
				
					            { {  contact . name  ||  "(no name)"  } }             { {  contact . name  ||  "(no name)"  } }  
			
		
	
		
		
			
				
					          < / span >           < / span >  
			
		
	
		
		
			
				
					          < span  class = "text-right" >           < span  class = "text-right" >  
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -68,7 +69,7 @@ 
			
		
	
		
		
			
				
					    < GiftedDialog     < GiftedDialog  
			
		
	
		
		
			
				
					      ref = "customDialog"       ref = "customDialog"  
			
		
	
		
		
			
				
					      message = "Received from"       message = "Received from"  
			
		
	
		
		
			
				
					
					      showGivenToUser = "true "      : projectId = "projectId " 
			
				
				
			
		
	
		
		
	
		
		
			
				
					    / >     / >  
			
		
	
		
		
			
				
					  < / section >   < / section >  
			
		
	
		
		
			
				
					< / template > < / template >  
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -104,12 +105,40 @@ export default class ContactGiftingView extends Vue { 
			
		
	
		
		
			
				
					  apiServer  =  "" ;   apiServer  =  "" ;  
			
		
	
		
		
			
				
					  accounts :  typeof  AccountsSchema ;   accounts :  typeof  AccountsSchema ;  
			
		
	
		
		
			
				
					  numAccounts  =  0 ;   numAccounts  =  0 ;  
			
		
	
		
		
			
				
					  projectId  =  localStorage . getItem ( "projectId" )  ||  "" ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					  async  beforeCreate ( )  {   async  beforeCreate ( )  {  
			
		
	
		
		
			
				
					    accountsDB . open ( ) ;     accountsDB . open ( ) ;  
			
		
	
		
		
			
				
					    this . numAccounts  =  await  accountsDB . accounts . count ( ) ;     this . numAccounts  =  await  accountsDB . accounts . count ( ) ;  
			
		
	
		
		
			
				
					  }   }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					  async  created ( )  {  
			
		
	
		
		
			
				
					    try  {  
			
		
	
		
		
			
				
					      await  db . open ( ) ;  
			
		
	
		
		
			
				
					      const  settings  =  ( await  db . settings . get ( MASTER_SETTINGS_KEY ) )  as  Settings ;  
			
		
	
		
		
			
				
					      this . apiServer  =  settings ? . apiServer  ||  "" ;  
			
		
	
		
		
			
				
					      this . activeDid  =  settings ? . activeDid  ||  "" ;  
			
		
	
		
		
			
				
					      this . allContacts  =  await  db . contacts . toArray ( ) ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					      localStorage . removeItem ( "projectId" ) ;  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					      / /   e s l i n t - d i s a b l e - n e x t - l i n e   @ t y p e s c r i p t - e s l i n t / n o - e x p l i c i t - a n y  
			
		
	
		
		
			
				
					    }  catch  ( err :  any )  {  
			
		
	
		
		
			
				
					      console . log ( "Error retrieving settings & contacts:" ,  err ) ;  
			
		
	
		
		
			
				
					      this . $notify (  
			
		
	
		
		
			
				
					        {  
			
		
	
		
		
			
				
					          group :  "alert" ,  
			
		
	
		
		
			
				
					          type :  "danger" ,  
			
		
	
		
		
			
				
					          title :  "Error" ,  
			
		
	
		
		
			
				
					          text :  
			
		
	
		
		
			
				
					            err . message  ||  
			
		
	
		
		
			
				
					            "There was an error retrieving your settings and/or contacts." ,  
			
		
	
		
		
			
				
					        } ,  
			
		
	
		
		
			
				
					        - 1 ,  
			
		
	
		
		
			
				
					      ) ;  
			
		
	
		
		
			
				
					    }  
			
		
	
		
		
			
				
					  }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					  public  async  getIdentity ( activeDid :  string )  {   public  async  getIdentity ( activeDid :  string )  {  
			
		
	
		
		
			
				
					    await  accountsDB . open ( ) ;     await  accountsDB . open ( ) ;  
			
		
	
		
		
			
				
					    const  account  =  ( await  accountsDB . accounts     const  account  =  ( await  accountsDB . accounts  
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -135,30 +164,6 @@ export default class ContactGiftingView extends Vue { 
			
		
	
		
		
			
				
					    return  headers ;     return  headers ;  
			
		
	
		
		
			
				
					  }   }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					  async  created ( )  {  
			
		
	
		
		
			
				
					    try  {  
			
		
	
		
		
			
				
					      await  db . open ( ) ;  
			
		
	
		
		
			
				
					      const  settings  =  ( await  db . settings . get ( MASTER_SETTINGS_KEY ) )  as  Settings ;  
			
		
	
		
		
			
				
					      this . apiServer  =  settings ? . apiServer  ||  "" ;  
			
		
	
		
		
			
				
					      this . activeDid  =  settings ? . activeDid  ||  "" ;  
			
		
	
		
		
			
				
					      this . allContacts  =  await  db . contacts . toArray ( ) ;  
			
		
	
		
		
			
				
					      / /   e s l i n t - d i s a b l e - n e x t - l i n e   @ t y p e s c r i p t - e s l i n t / n o - e x p l i c i t - a n y  
			
		
	
		
		
			
				
					    }  catch  ( err :  any )  {  
			
		
	
		
		
			
				
					      console . log ( "Error retrieving settings & contacts:" ,  err ) ;  
			
		
	
		
		
			
				
					      this . $notify (  
			
		
	
		
		
			
				
					        {  
			
		
	
		
		
			
				
					          group :  "alert" ,  
			
		
	
		
		
			
				
					          type :  "danger" ,  
			
		
	
		
		
			
				
					          title :  "Error" ,  
			
		
	
		
		
			
				
					          text :  
			
		
	
		
		
			
				
					            err . message  ||  
			
		
	
		
		
			
				
					            "There was an error retrieving your settings and/or contacts." ,  
			
		
	
		
		
			
				
					        } ,  
			
		
	
		
		
			
				
					        - 1 ,  
			
		
	
		
		
			
				
					      ) ;  
			
		
	
		
		
			
				
					    }  
			
		
	
		
		
			
				
					  }  
			
		
	
		
		
			
				
					
 
			
		
	
		
		
			
				
					  openDialog ( giver :  GiverInputInfo )  {   openDialog ( giver :  GiverInputInfo )  {  
			
		
	
		
		
			
				
					    ( this . $refs . customDialog  as  GiftedDialog ) . open ( giver ) ;     ( this . $refs . customDialog  as  GiftedDialog ) . open ( giver ) ;  
			
		
	
		
		
			
				
					  }   }