"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),s=require("../../../../utils/index.js");function n(t){return t&&t.__esModule?t:{default:t}}var r=n(e);const i=r.default.figure`
  height: ${({imgHeight:t})=>t||"162px"};
  margin: ${s.getSpacing("s00")};
  overflow: hidden;
  position: relative;

  button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
  }
`,c=r.default.img`
  width: 100%;
  height: 100%;

  ${({asHeader:t})=>t&&e.css`
      border-radius: ${({theme:{radius:o}})=>`${o.roundedC} ${o.roundedC} ${o.roundedNone} ${o.roundedNone}`};
    `};

  ${({objectFit:t})=>{switch(t){case"contain":return e.css`
          object-fit: contain;
        `;case"fill":return e.css`
          object-fit: fill;
        `;case"none":return e.css`
          object-fit: none;
        `;case"scale-down":return e.css`
          object-fit: scale-down;
        `;default:return e.css`
          object-fit: cover;
        `}}};

  ${({objectPosition:t})=>{switch(t){case"bottom":return e.css`
          object-position: bottom;
        `;case"inherit":return e.css`
          object-position: inherit;
        `;case"initial":return e.css`
          object-position: initial;
        `;case"left":return e.css`
          object-position: left;
        `;case"revert":return e.css`
          object-position: revert;
        `;case"revert-layer":return e.css`
          object-position: revert-layer;
        `;case"right":return e.css`
          object-position: right;
        `;case"top":return e.css`
          object-position: top;
        `;case"unset":return e.css`
          object-position: unset;
        `;default:return e.css`
          object-position: center;
        `}}}
`;exports.ButtonSheetImageWrapper=i;exports.ImageStyled=c;
