"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("styled-components"),n=require("../../utils/index.js");const u=(r,e,d)=>{const t=n.getColorAlias(e),a=n.getColorAlias(d),o=r==="star"?s.css`
          background-image: linear-gradient(
            45deg,
            ${t},
            ${a},
            ${t}
          );
          background-size: 248px 100%;
        `:s.css`
          background-image: linear-gradient(
            90deg,
            ${t},
            ${a},
            ${t}
          );
          background-size: 200px 100%;
        `;return s.css`
    background-color: ${r==="star"?null:t};
    color: ${r==="star"?t:null};
    ${o}
    background-repeat: no-repeat;
  `},i=r=>{let e,d;switch(r.variant){case"box":e="100px";break;case"circle":e="100px",d="100px";break;case"pill":e="40px";break;case"text":e="20px";break;case"star":e="50px",d="50px";break;default:e="40px";break}return s.css`
    height: ${r.height??e};
    width: ${r.width??d??"100%"};
  `},c=r=>{switch(r){case"roundedA":return s.css`
        border-radius: ${e=>e.theme.radius.roundedA};
      `;case"roundedB":return s.css`
        border-radius: ${e=>e.theme.radius.roundedB};
      `;case"roundedC":return s.css`
        border-radius: ${e=>e.theme.radius.roundedC};
      `;case"roundedD":return s.css`
        border-radius: ${e=>e.theme.radius.roundedD};
      `;case"roundedNone":return s.css`
        border-radius: ${e=>e.theme.radius.roundedNone};
      `;default:return null}},l=(r,e)=>{let d=e.radius.roundedA;if(r.variant==="box"){if(r.radius)return c(r.radius);d=e.radius.roundedB}else r.variant==="pill"?d=e.radius.roundedD:r.variant==="circle"&&(d=e.radius.roundedE);return s.css`
    border-radius: ${d};
  `},g=r=>{if(r==="star")return s.css`
      clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
      );
    `};exports.getSkeletonColors=u;exports.getSkeletonDimensions=i;exports.getSkeletonRadius=l;exports.getStar=g;
