"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.jsTileStyles = exports.jsStyles = exports.jsRowStyles = void 0;var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteralLoose"));var _Emotion = require("../../../lib/theming/Emotion");var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56;


var styles = {
  root: function root() {
    return (0, _Emotion.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: 100%;\n      height: inherit;\n    "])));



  },

  content: function content() {
    return (0, _Emotion.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteralLoose2.default)(["\n      display: flex;\n      width: 100%;\n      align-items: baseline;\n    "])));




  },

  error: function error(t) {
    return (0, _Emotion.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n    "])),
    t.fileUploaderBorderColorError);

  },

  validationTextError: function validationTextError(t) {
    return (0, _Emotion.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n    "])),
    t.fileUploaderErrorTextColor);

  },

  validationTextWarning: function validationTextWarning(t) {
    return (0, _Emotion.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n    "])),
    t.fileUploaderWarningTextColor);

  },

  nameBlock: function nameBlock() {
    return (0, _Emotion.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteralLoose2.default)(["\n      display: flex;\n      flex-wrap: wrap;\n      flex: 1 1 100%;\n      width: 100%;\n    "])));





  },

  size: function size(t) {
    return (0, _Emotion.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-left: ", ";\n      flex: 1 0 auto;\n    "])),
    t.fileUploaderFileSizeMarginLeft);


  },

  sizeSmall: function sizeSmall(t) {
    return (0, _Emotion.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      margin-right: ", ";\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFileSizeWidthSmall,
    t.fileUploaderFileSizeMarginSmall,
    t.fileUploaderFontSizeSmall,
    t.fileUploaderLineHeightSmall);

  },

  sizeMedium: function sizeMedium(t) {
    return (0, _Emotion.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      margin-right: ", ";\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFileSizeWidthMedium,
    t.fileUploaderFileSizeMarginMedium,
    t.fileUploaderFontSizeMedium,
    t.fileUploaderLineHeightMedium);

  },

  sizeLarge: function sizeLarge(t) {
    return (0, _Emotion.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      margin-right: ", ";\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFileSizeWidthLarge,
    t.fileUploaderFileSizeMarginLarge,
    t.fileUploaderFontSizeLarge,
    t.fileUploaderLineHeightLarge);

  },

  icon: function icon(t) {
    return (0, _Emotion.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      flex: 1 0 auto;\n      cursor: pointer;\n      text-align: right;\n      outline: none;\n    "])),
    t.fileUploaderTileIconSizeSmall);





  },

  icon5_5: function icon5_5(t) {
    return (0, _Emotion.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteralLoose2.default)(["\n      text-align: center;\n      border-radius: ", ";\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      position: absolute;\n      top: ", ";\n      right: ", ";\n\n      &:hover {\n        background: ", ";\n      }\n      &:active {\n        background: ", ";\n      }\n    "])),

    t.fileUploaderBorderRadius,




    t.fileUploaderIconGapSmall,
    t.fileUploaderIconGapSmall,


    t.fileUploaderHoveredBg,


    t.fileUploaderActiveBg);


  },

  iconMultiple: function iconMultiple() {
    return (0, _Emotion.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteralLoose2.default)(["\n      position: static;\n    "])));


  },

  disabledFileTypeIconSvg: function disabledFileTypeIconSvg(t) {
    return (0, _Emotion.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteralLoose2.default)(["\n      svg {\n        fill: ", " !important;\n      }\n    "])),

    t.fileUploaderDisabledFileTypeIcon);


  },

  fileTypeIconMultiple: function fileTypeIconMultiple() {
    return (0, _Emotion.css)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-left: 0;\n    "])));


  },

  contentSmall: function contentSmall(t) {
    return (0, _Emotion.css)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteralLoose2.default)(["\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFontSizeSmall,
    t.fileUploaderLineHeightSmall);

  },

  contentMedium: function contentMedium(t) {
    return (0, _Emotion.css)(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteralLoose2.default)(["\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFontSizeMedium,
    t.fileUploaderLineHeightMedium);

  },

  contentLarge: function contentLarge(t) {
    return (0, _Emotion.css)(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteralLoose2.default)(["\n      font-size: ", ";\n      line-height: ", ";\n    "])),
    t.fileUploaderFontSizeLarge,
    t.fileUploaderLineHeightLarge);

  }
};

var rowStyles = {
  content: function content() {
    return (0, _Emotion.css)(_templateObject19 || (_templateObject19 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex-direction: row;\n    "])));


  },

  contentSmall: function contentSmall(t) {
    return (0, _Emotion.css)(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderFileIconSizeSmall);

  },

  contentMedium: function contentMedium(t) {
    return (0, _Emotion.css)(_templateObject21 || (_templateObject21 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderFileIconSizeMedium);

  },

  contentLarge: function contentLarge(t) {
    return (0, _Emotion.css)(_templateObject22 || (_templateObject22 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderFileIconSizeMedium);

  },

  iconSmall: function iconSmall(t) {
    return (0, _Emotion.css)(_templateObject23 || (_templateObject23 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n      width: ", ";\n    "])),
    t.fileUploaderFileIconSizeSmall,
    t.fileUploaderFileIconSizeSmall);

  },

  iconMedium: function iconMedium(t) {
    return (0, _Emotion.css)(_templateObject24 || (_templateObject24 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n      width: ", ";\n    "])),
    t.fileUploaderFileIconSizeMedium,
    t.fileUploaderFileIconSizeMedium);

  },

  iconLarge: function iconLarge(t) {
    return (0, _Emotion.css)(_templateObject25 || (_templateObject25 = (0, _taggedTemplateLiteralLoose2.default)(["\n      height: ", ";\n      width: ", ";\n    "])),
    t.fileUploaderFileIconSizeLarge,
    t.fileUploaderFileIconSizeLarge);

  },

  fileTypeIconSmall: function fileTypeIconSmall(t) {
    return (0, _Emotion.css)(_templateObject26 || (_templateObject26 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderIconGapSmall);

  },

  fileTypeIconMedium: function fileTypeIconMedium(t) {
    return (0, _Emotion.css)(_templateObject27 || (_templateObject27 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderIconGapMedium);

  },

  fileTypeIconLarge: function fileTypeIconLarge(t) {
    return (0, _Emotion.css)(_templateObject28 || (_templateObject28 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-right: ", ";\n    "])),
    t.fileUploaderIconGapLarge);

  },

  iconColor: function iconColor(t) {
    return (0, _Emotion.css)(_templateObject29 || (_templateObject29 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n      &:hover {\n        color: ", ";\n      }\n    "])),
    t.fileUploaderIconColor,

    t.fileUploaderIconHoverColor);


  },

  size: function size(t) {
    return (0, _Emotion.css)(_templateObject30 || (_templateObject30 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-left: ", ";\n      color: ", ";\n    "])),
    t.fileUploaderIconGapSmall,
    t.fileUploaderDisabledColor);

  },

  name: function name() {
    return (0, _Emotion.css)(_templateObject31 || (_templateObject31 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex: 1 1 100%;\n      overflow: hidden;\n    "])));



  },

  nameBlock: function nameBlock() {
    return (0, _Emotion.css)(_templateObject32 || (_templateObject32 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex: 1 1 100%;\n    "])));


  },

  disabled: function disabled(t) {
    return (0, _Emotion.css)(_templateObject33 || (_templateObject33 = (0, _taggedTemplateLiteralLoose2.default)(["\n      cursor: default;\n      color: ", ";\n    "])),

    t.fileUploaderDisabledTextColor);

  }
};

var tileStyles = {
  content: function content() {
    return (0, _Emotion.css)(_templateObject34 || (_templateObject34 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex-direction: column;\n      align-items: center;\n      height: inherit;\n    "])));




  },

  iconAction: function iconAction(t) {
    return (0, _Emotion.css)(_templateObject35 || (_templateObject35 = (0, _taggedTemplateLiteralLoose2.default)(["\n      border-radius: ", ";\n      opacity: 0;\n      background: ", ";\n\n      &:hover {\n        background: ", ";\n      }\n\n      &:active {\n        background: ", ";\n      }\n    "])),
    t.fileUploaderBorderRadius,

    t.fileUploaderTileIconColorBg,


    t.fileUploaderTileIconHoverColorBg,



    t.fileUploaderTileIconActiveColorBg);


  },

  iconActionShow: function iconActionShow() {
    return (0, _Emotion.css)(_templateObject36 || (_templateObject36 = (0, _taggedTemplateLiteralLoose2.default)(["\n      opacity: 1;\n    "])));


  },

  iconSmall: function iconSmall(t) {
    return (0, _Emotion.css)(_templateObject37 || (_templateObject37 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      height: ", ";\n      padding: ", ";\n      top: ", ";\n      right: ", ";\n    "])),
    t.fileUploaderTileIconSizeSmall,
    t.fileUploaderTileIconSizeSmall,
    t.fileUploaderTileIconActionPaddingSmall,
    t.fileUploaderTileIconActionPositionSmall,
    t.fileUploaderTileIconActionPositionSmall);

  },

  iconMedium: function iconMedium(t) {
    return (0, _Emotion.css)(_templateObject38 || (_templateObject38 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      height: ", ";\n      padding: ", ";\n      top: ", ";\n      right: ", ";\n    "])),
    t.fileUploaderTileIconSizeMedium,
    t.fileUploaderTileIconSizeMedium,
    t.fileUploaderTileIconActionPaddingMedium,
    t.fileUploaderTileIconActionPositionMedium,
    t.fileUploaderTileIconActionPositionMedium);

  },

  iconLarge: function iconLarge(t) {
    return (0, _Emotion.css)(_templateObject39 || (_templateObject39 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: ", ";\n      height: ", ";\n      padding: ", ";\n      top: ", ";\n      right: ", ";\n    "])),
    t.fileUploaderTileIconSizeLarge,
    t.fileUploaderTileIconSizeLarge,
    t.fileUploaderTileIconActionPaddingLarge,
    t.fileUploaderTileIconActionPositionLarge,
    t.fileUploaderTileIconActionPositionLarge);

  },

  fileTypeIcon: function fileTypeIcon(t) {
    return (0, _Emotion.css)(_templateObject40 || (_templateObject40 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: 100%;\n      border: 1px solid ", ";\n      border-radius: ", ";\n      box-sizing: border-box;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n    "])),

    t.fileUploaderDisabledBorderColor,
    t.fileUploaderBorderRadius);





  },

  fileTypeIconPreview: function fileTypeIconPreview() {
    return (0, _Emotion.css)(_templateObject41 || (_templateObject41 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background-position: top;\n      background-size: cover;\n      background-repeat: no-repeat;\n    "])));




  },

  fileTypeIconSmall: function fileTypeIconSmall(t) {
    return (0, _Emotion.css)(_templateObject42 || (_templateObject42 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-bottom: ", ";\n      height: ", ";\n    "])),
    t.fileUploaderIconGapSmall,
    t.fileUploaderTileTypeIconHeightSmall);

  },

  fileTypeIconMedium: function fileTypeIconMedium(t) {
    return (0, _Emotion.css)(_templateObject43 || (_templateObject43 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-bottom: ", ";\n      height: ", ";\n    "])),
    t.fileUploaderIconGapMedium,
    t.fileUploaderTileTypeIconHeightMedium);

  },

  fileTypeIconLarge: function fileTypeIconLarge(t) {
    return (0, _Emotion.css)(_templateObject44 || (_templateObject44 = (0, _taggedTemplateLiteralLoose2.default)(["\n      margin-bottom: ", ";\n      height: ", ";\n    "])),
    t.fileUploaderIconGapLarge,
    t.fileUploaderTileTypeIconHeightLarge);

  },

  disabledFileTypeIcon: function disabledFileTypeIcon(t) {
    return (0, _Emotion.css)(_templateObject45 || (_templateObject45 = (0, _taggedTemplateLiteralLoose2.default)(["\n      box-shadow: none;\n      background: ", ";\n    "])),

    t.fileUploaderDisabledBg);

  },

  sizeDisabled: function sizeDisabled(t) {
    return (0, _Emotion.css)(_templateObject46 || (_templateObject46 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n    "])),
    t.fileUploaderDisabledIconColor);

  },

  errorFileTypeIcon: function errorFileTypeIcon(t) {
    return (0, _Emotion.css)(_templateObject47 || (_templateObject47 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background: ", ";\n      border: 1px solid ", ";\n    "])),
    t.fileUploaderErrorBgColor,
    t.fileUploaderErrorBgColor);

  },

  warningFileTypeIcon: function warningFileTypeIcon(t) {
    return (0, _Emotion.css)(_templateObject48 || (_templateObject48 = (0, _taggedTemplateLiteralLoose2.default)(["\n      background: ", ";\n      border: 1px solid ", ";\n    "])),
    t.fileUploaderWarningBgColor,
    t.fileUploaderWarningBgColor);

  },

  iconColor: function iconColor(t) {
    return (0, _Emotion.css)(_templateObject49 || (_templateObject49 = (0, _taggedTemplateLiteralLoose2.default)(["\n      color: ", ";\n      &:hover {\n        color: ", ";\n      }\n    "])),
    t.fileUploaderTileIconColor,

    t.fileUploaderTileIconHoverColor);


  },

  size: function size(t) {
    return (0, _Emotion.css)(_templateObject50 || (_templateObject50 = (0, _taggedTemplateLiteralLoose2.default)(["\n      width: 100%;\n      margin: ", " 0 0;\n      overflow: hidden;\n      text-align: center;\n      color: ", ";\n    "])),

    t.fileUploaderIconGapSmall,


    t.clearCrossIconColor);

  },

  name: function name() {
    return (0, _Emotion.css)(_templateObject51 || (_templateObject51 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex: 1 1 100%;\n      word-break: break-all;\n      height: 100%;\n\n      span {\n        word-break: break-word;\n      }\n    "])));








  },

  nameBlock: function nameBlock() {
    return (0, _Emotion.css)(_templateObject52 || (_templateObject52 = (0, _taggedTemplateLiteralLoose2.default)(["\n      flex: 0;\n      text-align: center;\n    "])));



  },

  contentSmall: function contentSmall(t) {
    var maxHeight = parseInt(t.fileUploaderLineHeightSmall) * 2;
    return (0, _Emotion.css)(_templateObject53 || (_templateObject53 = (0, _taggedTemplateLiteralLoose2.default)(["\n      max-height: ", "px;\n    "])),
    maxHeight);

  },

  contentMedium: function contentMedium(t) {
    var maxHeight = parseInt(t.fileUploaderLineHeightMedium) * 2;
    return (0, _Emotion.css)(_templateObject54 || (_templateObject54 = (0, _taggedTemplateLiteralLoose2.default)(["\n      max-height: ", "px;\n    "])),
    maxHeight);

  },

  contentLarge: function contentLarge(t) {
    var maxHeight = parseInt(t.fileUploaderLineHeightLarge) * 2;
    return (0, _Emotion.css)(_templateObject55 || (_templateObject55 = (0, _taggedTemplateLiteralLoose2.default)(["\n      max-height: ", "px;\n    "])),
    maxHeight);

  },

  disabled: function disabled(t) {
    return (0, _Emotion.css)(_templateObject56 || (_templateObject56 = (0, _taggedTemplateLiteralLoose2.default)(["\n      cursor: default;\n      color: ", ";\n    "])),

    t.fileUploaderDisabledIconColor);

  }
};

var jsStyles = exports.jsStyles = (0, _Emotion.memoizeStyle)(styles);
var jsRowStyles = exports.jsRowStyles = (0, _Emotion.memoizeStyle)(rowStyles);
var jsTileStyles = exports.jsTileStyles = (0, _Emotion.memoizeStyle)(tileStyles);