@ -20,12 +20,13 @@ 
			
		
	
		
			
				
					    < ul  class = "border-t border-slate-300" >  
			
		
	
		
			
				
					      < li  class = "border-b border-slate-300 py-3" >  
			
		
	
		
			
				
					        < h2  class = "text-base flex gap-4 items-center" >  
			
		
	
		
			
				
					          < span  class = "grow italic text-slate-500 " >  
			
		
	
		
			
				
					          < span  class = "grow" >  
			
		
	
		
			
				
					            < img  
			
		
	
		
			
				
					              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  class = "text-right" >  
			
		
	
		
			
				
					            < button  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -44,12 +45,12 @@ 
			
		
	
		
			
				
					        class = "border-b border-slate-300 py-3"  
			
		
	
		
			
				
					      >  
			
		
	
		
			
				
					        < h2  class = "text-base flex gap-4 items-center" >  
			
		
	
		
			
				
					          < span  class = "grow font-semibold"  
			
		
	
		
			
				
					            > < EntityIcon  
			
		
	
		
			
				
					          < span  class = "grow font-semibold" >  
			
		
	
		
			
				
					            < EntityIcon  
			
		
	
		
			
				
					              : entityId = "contact.did"  
			
		
	
		
			
				
					              : iconSize = "32"  
			
		
	
		
			
				
					              class = "inline-block align-middle border border-slate-300 rounded-md mr-1"  
			
		
	
		
			
				
					            > < / EntityIcon >  
			
		
	
		
			
				
					            / >  
			
		
	
		
			
				
					            { {  contact . name  ||  "(no name)"  } }  
			
		
	
		
			
				
					          < / span >  
			
		
	
		
			
				
					          < span  class = "text-right" >  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -68,7 +69,7 @@ 
			
		
	
		
			
				
					    < GiftedDialog  
			
		
	
		
			
				
					      ref = "customDialog"  
			
		
	
		
			
				
					      message = "Received from"  
			
		
	
		
			
				
					      showGivenToUser = "true " 
			
		
	
		
			
				
					      : projectId = "projectId " 
			
		
	
		
			
				
					    / >  
			
		
	
		
			
				
					  < / section >  
			
		
	
		
			
				
					< / template >  
			
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
				@ -104,12 +105,40 @@ export default class ContactGiftingView extends Vue { 
			
		
	
		
			
				
					  apiServer  =  "" ;  
			
		
	
		
			
				
					  accounts :  typeof  AccountsSchema ;  
			
		
	
		
			
				
					  numAccounts  =  0 ;  
			
		
	
		
			
				
					  projectId  =  localStorage . getItem ( "projectId" )  ||  "" ;  
			
		
	
		
			
				
					
 
			
		
	
		
			
				
					  async  beforeCreate ( )  {  
			
		
	
		
			
				
					    accountsDB . open ( ) ;  
			
		
	
		
			
				
					    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 )  {  
			
		
	
		
			
				
					    await  accountsDB . open ( ) ;  
			
		
	
		
			
				
					    const  account  =  ( await  accountsDB . accounts  
			
		
	
	
		
			
				
					
						
						
						
							
								 
						
					 
				
				@ -135,30 +164,6 @@ export default class ContactGiftingView extends Vue { 
			
		
	
		
			
				
					    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 )  {  
			
		
	
		
			
				
					    ( this . $refs . customDialog  as  GiftedDialog ) . open ( giver ) ;  
			
		
	
		
			
				
					  }