"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("styled-components"),e=require("../../utils/index.js");function g(t){return t&&t.__esModule?t:{default:t}}var i=g(l);const a=i.default.li.withConfig({shouldForwardProp:e.convertToTransientProps(["prefixWidth","dividerStartsFromText","divider"])})`
  cursor: ${t=>t.disabled?"not-allowed":t.onClick?"pointer":"default"};
  display: flex;
  position: relative;
  width: 100%;
  min-height: ${e.getSpacing("s08")};
  padding: ${e.getSpacing("s02")};
  background-color: ${e.getColorAlias("containerDefault")};
  color: ${t=>t.state==="unavailable"||t.disabled?e.getColorAlias("contentDisabled"):e.getColorAlias("contentDefault")};
  list-style-type: none;

  span {
    color: ${t=>t.disabled&&e.getColorAlias("contentDisabled")};
  }

  ${t=>t.state==="default"&&l.css`
      &:hover {
        background-color: ${e.getDarkenColor("hover01","containerDefault")};
      }
    `}
  svg {
    fill: ${t=>t.state==="unavailable"||t.disabled?e.getColorAlias("contentDisabled"):e.getColorAlias("contentDefault")};
  }

  ${({divider:t,theme:r,prefixWidth:c,dividerStartsFromText:d})=>t&&l.css`
      &::before {
        content: '';
        ${d?l.css`
              width: calc(100% - ${c}px - ${e.getSpacing("s04")});
            `:l.css`
              width: 100%;
            `};
        height: 1px;
        background-color: ${e.getColorAlias("borderDefault",r)};
        position: absolute;
        right: 0;
        bottom: 0;
      }
    `}
`,f=i.default(a)`
  min-height: ${e.getSpacing("s07")};
`,p=i.default(a)`
  min-height: ${e.getSpacing("s09")};
`,u=i.default.div`
  display: flex;
  flex-flow: row nowrap;
  align-items: ${({variant:t})=>t==="multi-line"?"flex-start":"center"};
  flex: 1;
`;i.default.div.withConfig({shouldForwardProp:e.convertToTransientProps(["type"])})`
  height: 100%;
  padding-inline: ${e.getSpacing("s02")};
  display: flex;
  align-items: ${t=>t.type==="action"?"baseline":"center"};
  justify-content: center;

  div {
    margin: 0;
  }

  svg {
    ${e.getFontSize("size20")};
    fill: ${e.getColorAlias("interactivePrimary")};
  }

  img {
    ${t=>t.type==="thumbnail"?l.css`
            height: ${e.getSpacing("s09")};
            width: ${e.getSpacing("s09")};
          `:l.css`
            height: ${e.getSpacing("s07")};
            width: ${e.getSpacing("s07")};
          `}
    object-fit: cover;
    ${t=>t.type==="avatar"&&l.css`
        clip-path: circle();
      `}
  }
`;i.default.div`
  padding-inline: ${e.getSpacing("s02")};
  flex: 1 2 60%;
  flex-direction: column;
`;const o=i.default.p`
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  text-overflow: ellipsis;
  overflow: hidden;
`,n=i.default(o)`
  ${e.getFontSize("size14")};
  color: ${e.getColorAlias("contentSubdued")};
  -webkit-line-clamp: 2;
`,s=l.css`
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
`;i.default(n)`
  ${e.getFontSize("size14")};
  ${s}
  align-self: baseline;
`;i.default.div`
  ${s}
  flex-basis: 25%;
  svg {
    ${e.getFontSize("size24")};
    fill: ${e.getColorAlias("interactivePrimary")};
  }
`;exports.CompactListItemWrapper=f;exports.DefaultListItemWrapper=a;exports.ListItemFlexContainer=u;exports.ListItemPrimaryText=o;exports.ListItemSecondaryText=n;exports.MultiLineListItemWrapper=p;
