text: "use strict";
  
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.MessageTextStyle = exports.MessageQuoteStyle = exports.MessageFileStyle = exports.MessageStyle = exports.FormStyle = exports.ChatStyle = void 0;
  
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
  
  var _utils = require("../utils");
  
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17;
  
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
  
  var MessageTextStyle = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref) {
    var theme = _ref.theme;
    return (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n    display: flex;\n    flex-direction: column;\n    .sender {\n      font-size: 0.875rem;\n      color: ", ";\n      margin-bottom: 0.5rem;\n    }\n    p {\n      word-wrap: break-word;\n      word-break: break-all;\n      max-width: 100%;\n      margin: 0;\n    }\n    .text {\n      padding: 1rem;\n      border-radius: 0.5rem;\n    }\n  "])), theme.chatMessageSenderTextColor);
  });
  
  exports.MessageTextStyle = MessageTextStyle;
  
  var MessageFileStyle = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref2) {
    var theme = _ref2.theme;
    return (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n    display: flex;\n    flex-direction: column;\n    a {\n      color: ", ";\n        background: ", ";\n      font-size: 4rem;\n      text-align: center;\n      border: 1px solid ", ";\n      width: 10rem;\n      height: 10rem;\n      overflow: hidden;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      flex-shrink: 0;\n      border-radius: 0.5rem;\n      &:hover,\n      &:focus {\n        text-decoration: none;\n        color: ", ";\n      }\n      div {\n        background-size: cover;\n        width: 100%;\n        height: 100%;\n      }\n    }\n    ", " {\n      display: block;\n      margin-bottom: 0.5rem;\n    }\n    .message-content-group {\n      display: flex;\n      flex-direction: row;\n      justify-content: flex-end;\n      flex-wrap: wrap;\n      a {\n        margin-", ": 1rem;\n        margin-bottom: 1rem;\n        width: 5rem;\n        height: 5rem;\n      }\n    }\n  "])), theme.chatMessageFileTextColor, theme.chatMessageFileBackgroundColor, theme.chatMessageFileTextColor, theme.chatMessageFileTextColor, MessageTextStyle, theme.dir === 'rtl' ? 'left' : 'right');
  });
  
  exports.MessageFileStyle = MessageFileStyle;
  
  var MessageQuoteStyle = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref3) {
    var theme = _ref3.theme;
    return (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n    p.quote {\n      font-style: italic;\n      font-size: 0.875rem;\n      background: ", ";\n      color: ", ";\n      padding: 1rem;\n      border-radius: 0.5rem;\n      margin-bottom: 0.5rem;\n    }\n    .sender {\n      font-size: 0.875rem;\n      color: ", ";\n      margin-bottom: 0.5rem;\n    }\n  "])), theme.chatMessageQuoteBackgroundColor, theme.chatMessageQuoteTextColor, theme.chatMessageSenderTextColor);
  });
  
  exports.MessageQuoteStyle = MessageQuoteStyle;
  
  var MessageStyle = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref4) {
    var theme = _ref4.theme,
        reply = _ref4.reply;
    return (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n    margin-bottom: 1.5rem;\n    display: flex;\n    flex-direction: row;\n    .message {\n      flex: 1;\n    }\n    .avatar {\n      border-radius: 50%;\n      flex-shrink: 0;\n      background: ", ";\n      background-size: 3.4rem 2.6rem;\n      background: no-repeat center;\n      width: 2.5rem;\n      height: 2.5rem;\n      text-align: center;\n      line-height: 2.5rem;\n      font-size: 0.875rem;\n      color: white;\n    }\n    ", "\n  "])), theme.chatMessageAvatarBackgroundColor, reply ? (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n      flex-direction: row-reverse;\n      .message {\n        margin-", ": 0.5rem;\n        margin-", ": 3rem;\n      }\n      ", " {\n        align-items: flex-end;\n        .sender {\n          text-align: ", ";\n        }\n        .text {\n          border-top-", "-radius: 0;\n          background: ", ";\n          color: ", ";\n        }\n      }\n      ", " {\n        align-items: flex-start;\n      }\n    "])), theme.dir === 'rtl' ? 'left' : 'right', theme.dir === 'rtl' ? 'right' : 'left', MessageTextStyle, theme.dir === 'rtl' ? 'left' : 'right', theme.dir === 'rtl' ? 'left' : 'right', theme.chatMessageReplyBackgroundColor, theme.chatMessageReplyTextColor, MessageFileStyle) : (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n      .message {\n        margin-", ": 0.5rem;\n        margin-", ": 3rem;\n      }\n      ", " {\n        align-items: flex-start;\n        .text {\n          border-top-", "-radius: 0;\n          background: ", ";\n          color: ", ";\n        }\n      }\n      ", " {\n        align-items: flex-start;\n      }\n    "])), theme.dir === 'rtl' ? 'right' : 'left', theme.dir === 'rtl' ? 'left' : 'right', MessageTextStyle, theme.dir === 'rtl' ? 'right' : 'left', theme.chatMessageBackground, theme.chatMessageTextColor, MessageFileStyle));
  });
  
  exports.MessageStyle = MessageStyle;
  
  var FormStyle = _styledComponents["default"].div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref5) {
    var theme = _ref5.theme,
        showButton = _ref5.showButton,
        buttonIcon = _ref5.buttonIcon;
    return (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n    display: flex;\n    flex-direction: column;\n    padding: ", ";\n    border-top: ", " ", " ", ";\n    .message-row {\n      flex-direction: row;\n      display: flex;\n    }\n    input {\n      flex: 1;\n      padding: 1.25rem 1.5rem;\n      border-radius: 2rem;\n      outline: none;\n      box-sizing: border-box;\n      ", "\n    }\n\n    .send-button {\n      border-radius: 3rem;\n      border-top-", "-radius: 0;\n      border-bottom-", "-radius: 0;\n\n      ", "\n    }\n\n    .dropped-files {\n      display: flex;\n      flex-direction: row;\n      margin-bottom: 0.5rem;\n      flex-wrap: wrap;\n\n      div {\n        background-size: cover;\n        width: 3rem;\n        height: 3rem;\n        border-radius: 0.5rem;\n        margin-", ": 0.5rem;\n        margin-bottom: 0.5rem;\n        text-align: center;\n        line-height: 3rem;\n        font-size: 2rem;\n        position: relative;\n\n        .remove {\n          position: absolute;\n          right: -0.5rem;\n          top: -0.875rem;\n          font-size: 0.875rem;\n          line-height: 1;\n          cursor: pointer;\n        }\n      }\n    }\n  "])), theme.chatPadding, theme.chatDividerWidth, theme.chatDividerStyle, theme.chatDividerColor, showButton && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n        border-top-", "-radius: 0;\n        border-bottom-", "-radius: 0;\n      "])), theme.dir === 'rtl' ? 'left' : 'right', theme.dir === 'rtl' ? 'left' : 'right'), theme.dir === 'rtl' ? 'right' : 'left', theme.dir === 'rtl' ? 'right' : 'left', buttonIcon && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n          font-size: 3rem;\n        "]))), theme.dir === 'rtl' ? 'left' : 'right');
  });
  
  exports.FormStyle = FormStyle;
  
  var ChatStyle = _styledComponents["default"].div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n  ", "\n"])), function (_ref6) {
    var theme = _ref6.theme,
        size = _ref6.size,
        status = _ref6.status;
    return (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n    background-color: ", ";\n    border: ", ";\n    border-radius: ", ";\n    box-shadow: ", ";\n    color: ", ";\n    font-family: ", ";\n    font-size: ", ";\n    font-weight: ", ";\n    line-height: ", ";\n    display: flex;\n    flex-direction: column;\n    position: relative;\n    height: 100%;\n    header {\n      border-bottom: ", " ", " ", ";\n      border-top-left-radius: ", ";\n      border-top-right-radius: ", ";\n      padding: ", ";\n      font-family: ", ";\n      font-size: ", ";\n      font-weight: ", ";\n      line-height: ", ";\n    }\n\n    .scrollable {\n      overflow: auto;\n      flex: 1;\n      ", "\n    }\n\n    .messages {\n      padding: ", ";\n      overflow-y: auto;\n      overflow-x: hidden;\n      display: flex;\n      flex-shrink: 0;\n      flex-direction: column;\n    }\n\n    .no-messages {\n      text-align: center;\n    }\n\n    ", "\n    ", "\n  "])), theme.chatBackgroundColor, theme.chatBorder, theme.chatBorderRadius, theme.chatShadow, theme.chatTextColor, theme.chatTextFontFamily, theme.chatTextFontSize, theme.chatTextFontWeight, theme.chatTextLineHeight, theme.chatDividerWidth, theme.chatDividerStyle, theme.chatDividerColor, theme.chatBorderRadius, theme.chatBorderRadius, theme.chatPadding, theme.chatHeaderTextFontFamily, theme.chatHeaderTextFontSize, theme.chatHeaderTextFontWeight, theme.chatHeaderTextLineHeight, (0, _utils.scrollbars)(theme.chatScrollbarColor, theme.chatScrollbarBackgroundColor, theme.chatScrollbarWidth), theme.chatPadding, size && "height: ".concat(theme["chat".concat(size, "Height")], ";"), status && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n      header {\n        background-color: ", ";\n        color: ", ";\n      }\n    "])), theme["chat".concat(status, "BackgroundColor")], theme["chat".concat(status, "TextColor")]));
  });
  
  exports.ChatStyle = ChatStyle;