2022-03-04 13:48:44 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								// Copyright 2021-2022 Signal Messenger, LLC
 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								// SPDX-License-Identifier: AGPL-3.0-only
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  React ,  {  useContext  }  from  'react' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  times ,  omit  }  from  'lodash' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import  {  storiesOf  }  from  '@storybook/react' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import  {  action  }  from  '@storybook/addon-actions' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import  {  boolean ,  date ,  select ,  text  }  from  '@storybook/addon-knobs' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  type  {  Row  }  from  './ConversationList' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-26 14:15:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  ConversationList ,  RowType  }  from  './ConversationList' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								import  {  MessageSearchResult  }  from  './conversationList/MessageSearchResult' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-26 14:15:33 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  type  {  PropsData  as  ConversationListItemPropsType  }  from  './conversationList/ConversationListItem' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								import  {  MessageStatuses  }  from  './conversationList/ConversationListItem' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  ContactCheckboxDisabledReason  }  from  './conversationList/ContactCheckbox' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-11 15:29:31 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  getDefaultConversation  }  from  '../test-both/helpers/getDefaultConversation' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-17 20:30:08 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  setupI18n  }  from  '../util/setupI18n' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								import  enMessages  from  '../../_locales/en/messages.json' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-17 15:11:21 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  ThemeType  }  from  '../types/Util' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  StorybookThemeContext  }  from  '../../.storybook/StorybookThemeContext' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-15 14:01:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  UUID  }  from  '../types/UUID' ; 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								import  {  makeFakeLookupConversationWithoutUuid  }  from  '../test-both/helpers/fakeLookupConversationWithoutUuid' ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								const  i18n  =  setupI18n ( 'en' ,  enMessages ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								const  story  =  storiesOf ( 'Components/ConversationList' ,  module ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								const  defaultConversations : Array < ConversationListItemPropsType >  =  [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-07 17:21:10 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  getDefaultConversation ( { 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    id :  'fred-convo' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    title :  'Fred Willard' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-07 17:21:10 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  getDefaultConversation ( { 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    id :  'marc-convo' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    isSelected : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    unreadCount : 12 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    title :  'Marc Barraca' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-12 18:59:08 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 16:43:05 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      text :  'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-12 18:59:08 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-07 17:21:10 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  getDefaultConversation ( { 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    id :  'long-name-convo' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    title : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      'Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-07 17:21:10 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  } ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-11 15:29:31 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  getDefaultConversation ( ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								] ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								const  Wrapper  =  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  rows , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  scrollable , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} :  Readonly < {  rows : ReadonlyArray < Row > ;  scrollable? : boolean  } > )  = >  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  theme  =  useContext ( StorybookThemeContext ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  return  ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < ConversationList 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      dimensions = { { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        width : 300 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        height : 350 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      rowCount = { rows . length } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-17 15:11:21 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      getPreferredBadge = { ( )  = >  undefined } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      getRow = { ( index : number )  = >  rows [ index ] } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      shouldRecomputeRowHeights = { false } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      i18n = { i18n } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      onSelectConversation = { action ( 'onSelectConversation' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      onClickArchiveButton = { action ( 'onClickArchiveButton' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      onClickContactCheckbox = { action ( 'onClickContactCheckbox' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      renderMessageSearchResult = { ( id : string )  = >  ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < MessageSearchResult 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          body = "Lorem ipsum wow" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          bodyRanges = { [ ] } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          conversationId = "marc-convo" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          from = { defaultConversations [ 0 ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-17 15:11:21 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								          getPreferredBadge = { ( )  = >  undefined } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								          i18n = { i18n } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          id = { id } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          openConversationInternal = { action ( 'openConversationInternal' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          sentAt = { 1587358800000 } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          snippet = "Lorem <<left>>ipsum<<right>> wow" 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-17 15:11:21 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								          theme = { ThemeType . light } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								          to = { defaultConversations [ 1 ] } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      scrollable = { scrollable } 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      lookupConversationWithoutUuid = { makeFakeLookupConversationWithoutUuid ( ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      showChooseGroupMembers = { action ( 'showChooseGroupMembers' ) } 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      showUserNotFoundModal = { action ( 'showUserNotFoundModal' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      setIsFetchingUUID = { action ( 'setIsFetchingUUID' ) } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      showConversation = { action ( 'showConversation' ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      theme = { theme } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    / > 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Archive button' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ {  type :  RowType . ArchiveButton ,  archivedConversationsCount : 123  } ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact: note to self' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Contact , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          . . . defaultConversations [ 0 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isMe : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          about :  '🤠 should be ignored' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact: direct' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ {  type :  RowType . Contact ,  contact : defaultConversations [ 0 ]  } ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact: direct with short about' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Contact , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact :  {  . . . defaultConversations [ 0 ] ,  about :  '🤠 yee haw'  } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact: direct with long about' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Contact , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          . . . defaultConversations [ 0 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          about : 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            '🤠 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue.' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact: group' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Contact , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact :  {  . . . defaultConversations [ 0 ] ,  type :  'group'  } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								story . add ( 'Contact checkboxes' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 0 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 1 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          . . . defaultConversations [ 2 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          about :  '😃 Hola' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Contact checkboxes: disabled' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 0 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        disabledReason : ContactCheckboxDisabledReason.MaximumContactsSelected , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 2 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        disabledReason : ContactCheckboxDisabledReason.MaximumContactsSelected , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-11 15:29:31 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ContactCheckbox , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 3 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isChecked : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        disabledReason : ContactCheckboxDisabledReason.AlreadyAdded , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-03-03 14:09:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								{ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  createConversation  =  ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    overrideProps : Partial < ConversationListItemPropsType >  =  { } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) :  ConversationListItemPropsType  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    . . . overrideProps , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    acceptedMessageRequest : boolean ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      'acceptedMessageRequest' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      overrideProps . acceptedMessageRequest  !==  undefined 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        ?  overrideProps . acceptedMessageRequest 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        :  true 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    badges :  [ ] , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    isMe : boolean ( 'isMe' ,  overrideProps . isMe  ||  false ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    avatarPath : text ( 'avatarPath' ,  overrideProps . avatarPath  ||  '' ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    id : overrideProps.id  ||  '' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    isSelected : boolean ( 'isSelected' ,  overrideProps . isSelected  ||  false ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    title : text ( 'title' ,  overrideProps . title  ||  'Some Person' ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    name : overrideProps.name  ||  'Some Person' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    type :  overrideProps . type  ||  'direct' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    markedUnread : boolean ( 'markedUnread' ,  overrideProps . markedUnread  ||  false ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    lastMessage : overrideProps.lastMessage  ||  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      text : text ( 'lastMessage.text' ,  'Hi there!' ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      status : select ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        'status' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        MessageStatuses . reduce ( ( m ,  s )  = >  ( {  . . . m ,  [ s ] :  s  } ) ,  { } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        'read' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    lastUpdated : date ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      'lastUpdated' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      new  Date ( overrideProps . lastUpdated  ||  Date . now ( )  -  5  *  60  *  1000 ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-05-07 17:21:10 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    sharedGroupNames :  [ ] , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  renderConversation  =  ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    overrideProps : Partial < ConversationListItemPropsType >  =  { } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          conversation : createConversation ( overrideProps ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: name' ,  ( )  = >  renderConversation ( ) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: name and avatar' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      avatarPath :  '/fixtures/kitten-1-64-64.jpg' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: with yourself' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  'Just a second' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'read' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      name :  'Myself' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      title :  'Myself' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      isMe : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversations: Message Statuses' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      rows = { MessageStatuses . map ( status  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        conversation : createConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          lastMessage :  {  text : status ,  status ,  deletedForEveryone : false  } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } ) ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Typing Status' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-15 14:01:58 -06:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      typingContactId : UUID.generate ( ) . toString ( ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: With draft' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      shouldShowDraft : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      draftPreview :  "I'm in the middle of typing this..." , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Deleted for everyone' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      lastMessage :  {  deletedForEveryone : true  } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Message Request' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      acceptedMessageRequest : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  'A Message' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'delivered' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversations: unread count' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      rows = { [ 4 ,  10 ,  34 ,  250 ] . map ( unreadCount  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        conversation : createConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            text :  'Hey there!' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            status :  'delivered' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            deletedForEveryone : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          unreadCount , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } ) ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: marked unread' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( {  markedUnread : true  } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Selected' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  'Hey there!' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'read' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      isSelected : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Emoji in Message' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  '🔥' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'read' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Link in Message' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  'Download at http://signal.org' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'read' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: long name' ,  ( )  = >  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    const  name  = 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      'Long contact name. Esquire. The third. And stuff. And more! And more!' ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    return  renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      title : name , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Long Message' ,  ( )  = >  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    const  messages  =  [ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      "Long line. This is a really really really long line. Really really long. Because that's just how it is" , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      ` Many lines. This is a many-line message.
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Line  2  is  really  exciting  but  it  shouldn ' t  be  seen . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Line  three  is  even  better . 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Line  4 ,  well . ` ,
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ] ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    return  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        rows = { messages . map ( messageText  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          conversation : createConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              text : messageText , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              status :  'read' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              deletedForEveryone : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } ) ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversations: Various Times' ,  ( )  = >  { 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    const  pairs : Array < [ number ,  string ] >  =  [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      [ Date . now ( )  -  5  *  60  *  60  *  1000 ,  'Five hours ago' ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      [ Date . now ( )  -  24  *  60  *  60  *  1000 ,  'One day ago' ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      [ Date . now ( )  -  7  *  24  *  60  *  60  *  1000 ,  'One week ago' ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      [ Date . now ( )  -  365  *  24  *  60  *  60  *  1000 ,  'One year ago' ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ] ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    return  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        rows = { pairs . map ( ( [ lastUpdated ,  messageText ] )  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          conversation : createConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            lastUpdated , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              text : messageText , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              status :  'read' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								              deletedForEveryone : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								            } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          } ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } ) ) } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Missing Date' ,  ( )  = >  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    const  row  =  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      type :  RowType . Conversation  as  const , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      conversation : omit ( createConversation ( ) ,  'lastUpdated' ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    return  < Wrapper  rows = { [ row ] }  / > ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Missing Message' ,  ( )  = >  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    const  row  =  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      type :  RowType . Conversation  as  const , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      conversation : omit ( createConversation ( ) ,  'lastMessage' ) , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    return  < Wrapper  rows = { [ row ] }  / > ; 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  } ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Missing Text' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        text :  '' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        status :  'sent' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: Muted Conversation' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      muteExpiresAt : Date.now ( )  +  1000  *  60  *  60 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  story . add ( 'Conversation: At Mention' ,  ( )  = > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    renderConversation ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      title :  'The Rebellion' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      type :  'group' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      lastMessage :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        text :  '@Leia Organa I know' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        status :  'read' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-09-20 14:20:53 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        deletedForEveryone : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    } ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								} 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Headers' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'conversationsHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'messagesHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 17:17:29 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'findByUsernameHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'findByPhoneNumberHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								story . add ( 'Find by phone number' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'findByPhoneNumberHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555 98 76' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+12345559876' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555 98 76' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+12345559876' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+1234555' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : false , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 17:17:29 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								story . add ( 'Find by username' ,  ( )  = >  ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'findByUsernameHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . UsernameSearchResult , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        username :  'jowerty' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetchingUsername : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . UsernameSearchResult , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        username :  'jowerty' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetchingUsername : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								story . add ( 'Search results loading skeleton' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    scrollable = { false } 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      {  type :  RowType . SearchResultsLoadingFakeHeader  } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      . . . times ( 99 ,  ( )  = >  ( { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . SearchResultsLoadingFakeRow  as  const , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } ) ) , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-04-02 17:32:55 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								story . add ( 'Kitchen sink' ,  ( )  = >  ( 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < Wrapper 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    rows = { [ 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-04 17:38:22 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555 98 76' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+12345559876' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555 98 76' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+12345559876' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . StartNewConversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        phoneNumber :  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          isValid : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          userInput :  '+1(234)555 98' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          e164 :  '+123455598' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetching : true , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 17:17:29 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        i18nKey :  'contactsHeader' , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Contact , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        contact : defaultConversations [ 0 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 17:17:29 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'messagesHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Conversation , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        conversation : defaultConversations [ 1 ] , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . MessageSearchResult , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        messageId :  '123' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-11 17:17:29 -08:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . Header , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        i18nKey :  'findByUsernameHeader' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . UsernameSearchResult , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        username :  'jowerty' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        isFetchingUsername : false , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								      { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        type :  RowType . ArchiveButton , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        archivedConversationsCount : 123 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      } , 
							 
						 
					
						
							
								
									
										
										
										
											2021-11-02 18:01:13 -05:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    ] } 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-23 14:34:28 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								) ) ;