'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var styled = require('styled-components');
var index = require('../../../../utils/index.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);

const HeaderWrapper = styled__default['default'].div.withConfig({
    shouldForwardProp: index.convertToTransientProps([
        'hasPullTab',
        'pinnedHeader',
    ]),
}) `
  --pull-tab-height: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: ${({ theme: { radius } }) => `${radius.roundedC} ${radius.roundedC} ${radius.roundedNone} ${radius.roundedNone}`};

  padding: ${index.getSpacing('s04', 's03')};

  ${({ hasPullTab }) => hasPullTab &&
    styled.css `
      padding-top: calc(${index.getSpacing('s04')} + var(--pull-tab-height));
    `}

  ${({ pinnedHeader }) => pinnedHeader &&
    styled.css `
      box-shadow: rgb(0 0 0 / 20%) 0px 5px 9px 3px;
    `}
`;
const HeaderInnerWrapper = styled__default['default'].div `
  display: flex;
  justify-content: space-between;
  width: 100%;
`;
const IconTitleWrapper = styled__default['default'].div.withConfig({
    shouldForwardProp: index.convertToTransientProps([
        'headerControlsModifiers',
    ]),
}) `
  display: flex;
  align-items: center;
  height: 35px;
  position: relative;

  width: ${({ headerControlsModifiers }) => headerControlsModifiers === 'close' ? 'calc(100% - 32px)' : '100%'};

  h3 {
    margin: 0;
    ${index.getFontSize('size20')};
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
  }

  svg {
    margin-right: ${index.getSpacing('s04')};
    min-width: 20px;
  }
`;

exports.HeaderInnerWrapper = HeaderInnerWrapper;
exports.HeaderWrapper = HeaderWrapper;
exports.IconTitleWrapper = IconTitleWrapper;
