"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Wrapper = exports.UserName = exports.ThreadContainer = exports.StyledLoaderWrapper = exports.SendButtonText = exports.SendButton = exports.RemoveButtonText = exports.RemoveButton = exports.Overlay = exports.OrDelimiterText = exports.OrDelimiter = exports.NonRoomChat = exports.MessagesScroll = exports.MessagesList = exports.MessageTimestamp = exports.MessageText = exports.MessageInput = exports.MessageFooter = exports.Message = exports.Line = exports.InputContainer = exports.InitialsText = exports.IconButton = exports.FileInput = exports.CustomSystemMessage = exports.CustomMessageText = exports.ChatContainerHeaderLabel = exports.ChatContainerHeaderInfo = exports.ChatContainerHeaderBoxInfo = exports.ChatContainerHeader = exports.ChatContainer = exports.CenterContainer = exports.AvatarImage = exports.AvatarCircle = exports.AlsoContainer = exports.AlsoCheckbox = void 0;
var _native = _interopRequireDefault(require("styled-components/native"));
var _reactNative = require("react-native");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/** @format */

const {
  width,
  height
} = _reactNative.Dimensions.get('window');

// General Containers
const ChatContainer = exports.ChatContainer = _native.default.View`
  position: relative;
  flex-direction: column;
  flex: 1;
  width: 100%;
  background-color: #ffffff;
`;
const ThreadContainer = exports.ThreadContainer = _native.default.View`
  flex-direction: col;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  background-color: #ffffff;
`;
const ChatContainerHeader = exports.ChatContainerHeader = _native.default.View`
  flex-direction: row;
  padding: 12px 16px;
  background-color: #ffffff;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1px;
  border-bottom-color: #e5e7eb;
  border-style: solid;
  z-index: 1000;
`;
const CenterContainer = exports.CenterContainer = _native.default.View`
  align-items: center;
  justify-content: center;
  width: ${({
  rightSpace,
  leftSpace
}) => rightSpace && !leftSpace ? '100%' : rightSpace || !leftSpace ? '90%' : '70%'};
  padding-right: ${({
  rightSpace
}) => rightSpace ? '16' : '0'}px;
  padding-left: ${({
  leftSpace
}) => leftSpace ? '16' : '0'}px;
`;
const ChatContainerHeaderBoxInfo = exports.ChatContainerHeaderBoxInfo = _native.default.TouchableOpacity`
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 90%;
  gap: 16px;
  flex: 1;
`;
const ChatContainerHeaderInfo = exports.ChatContainerHeaderInfo = _native.default.View`
  flex: 1;
  gap: 2px;
  align-items: left;
  justify-content: center;
  overflow: hidden;
  text-align: left;
  flex-direction: column;
  gap: 2px;
`;
const ChatContainerHeaderLabel = exports.ChatContainerHeaderLabel = _native.default.Text`
  color: #141414;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  overflow: hidden;
  max-width: 100%;
`;

// Messages
const NonRoomChat = exports.NonRoomChat = _native.default.View`
  flex: 1;
  width: 100%;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  flex-direction: column;
  gap: 16px;
`;
const MessagesScroll = exports.MessagesScroll = _native.default.ScrollView`
  flex: 1;
  background-color: #f3f6fc;
  padding: 0px 16px;
`;
const MessagesList = exports.MessagesList = _native.default.View`
  width: 100%;
  min-height: 20px;
  position: relative;
`;
const MessageTimestamp = exports.MessageTimestamp = _native.default.Text`
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
`;
const Message = exports.Message = _native.default.View`
  background-color: ${props => props.isUser ? '#e8eafd' : '#f3f6fc'};
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  max-width: 60%;
  flex-direction: row;
  align-self: ${props => props.isUser ? 'flex-end' : 'flex-start'};
`;
const MessageText = exports.MessageText = _native.default.Text`
  margin: 0;
  color: #141414;
`;
const UserName = exports.UserName = _native.default.Text`
  font-weight: bold;
  color: #141414;
`;

// Input Components
const InputContainer = exports.InputContainer = _native.default.View`
  background-color: #ffffff;
  flex-direction: row;
  gap: 5px;
  padding: 8px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
`;
const MessageInput = exports.MessageInput = _native.default.TextInput`
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background-color: #f5f7f9;
  color: #141414;
`;
const IconButton = exports.IconButton = _native.default.TouchableOpacity`
  justify-content: center;
  align-items: center;
`;
const SendButton = exports.SendButton = _native.default.TouchableOpacity`
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #007bff;
  box-shadow: 1px -1px 10px rgba(0, 0, 0, 0.25);
  justify-content: center;
  align-items: center;
`;
const SendButtonText = exports.SendButtonText = _native.default.Text`
  color: white;
`;

// Avatar and Utility Components
const AvatarCircle = exports.AvatarCircle = _native.default.TouchableOpacity`
  width: ${({
  size
}) => `${size}px` || '64px'};
  height: ${({
  size
}) => `${size}px` || '64px'};
  border-radius: 60px;
  background-color: ${({
  bgColor
}) => bgColor};
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
`;
const AvatarImage = exports.AvatarImage = _native.default.Image`
  width: 100%;
  height: 100%;
  border-radius: 50px;
  object-fit: cover;
`;
const RemoveButton = exports.RemoveButton = _native.default.TouchableOpacity`
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  justify-content: center;
  align-items: center;
`;
const RemoveButtonText = exports.RemoveButtonText = _native.default.Text`
  color: #fff;
  font-size: 12px;
  font-weight: bold;
`;
const InitialsText = exports.InitialsText = _native.default.Text`
  font-size: ${({
  size
}) => size && size >= 64 ? '24px' : '18px'};
  color: ${({
  color
}) => color ? color : '#fff'};
  font-weight: bold;
`;
const Overlay = exports.Overlay = _native.default.View`
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
`;
const CustomMessageText = exports.CustomMessageText = _native.default.Text`
  margin: 0px;
  color: ${({
  color,
  isUser,
  colorUser
}) => isUser ? colorUser || '#000' : color || '#000'};
`;
const FileInput = exports.FileInput = _native.default.TextInput`
  display: none;
`;
const StyledLoaderWrapper = exports.StyledLoaderWrapper = _native.default.View`
  width: ${width}px;
  height: ${height}px;
  justify-content: center;
  align-items: center;
`;
const OrDelimiter = exports.OrDelimiter = _native.default.Text`
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
`;
const OrDelimiterText = exports.OrDelimiterText = _native.default.Text`
  font-size: 14px;
  color: #999;
`;
const Line = exports.Line = _native.default.View`
  width: 100%;
  height: 1px;
  background-color: #0052cd0d;
`;
const AlsoCheckbox = exports.AlsoCheckbox = _native.default.View`
  width: 16px;
  height: 16px;
  background-color: ${props => props.accentColor};
  border-radius: 4px;
`;
const AlsoContainer = exports.AlsoContainer = _native.default.TouchableOpacity`
  align-items: center;
  flex-direction: row;
  gap: 8px;
  background-color: #0052cd0d;
  font-size: 14px;
  padding: 10px 28px;
  text-align: start;
`;
const Wrapper = exports.Wrapper = _native.default.View`
  width: ${({
  size
}) => `${size}px` || '64px'};
  height: ${({
  size
}) => `${size}px` || '64px'};
  margin: 8px 0 8px 8px;
  border-radius: 60px;
  background-color: ${({
  bgColor
}) => bgColor};
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
`;
const CustomSystemMessage = exports.CustomSystemMessage = _native.default.View`
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: transparent;
  gap: 16px;
  margin: 8px;
`;
const MessageFooter = exports.MessageFooter = _native.default.View`
  flex-direction: row;
  justify-content: flex-start;
  position: absolute;
  gap: 6px;
  bottom: -25px;
  left: ${props => !props.isUser ? '10px' : 'auto'};
  right: ${props => props.isUser ? '10px' : 'auto'};

  @media (max-width: 675px) {
    font-size: 12px;
    bottom: -24px;
  }
`;
//# sourceMappingURL=StyledComponents.js.map