import{composeTypographyStyle as t,filterTruthyStyles as e,getStyleShadow as o,makeStyleResponsive as l,makeStyle as i,getGlobalColorStyle as n,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{getDisplayStyle as p}from"../../../../helpers.js";import{DESCRIPTION_LINE_HEIGHT_DEFAULT as a}from"./helpers.js";let getMaxHeightStyleDefault=t=>{let e={desktop:"none"},o=["desktop","mobile","tablet"];o.forEach(o=>{let l=r(t?.lineClamp,o),i=r(t?.hasLineClamp,o),n=i&&l?`${l*a}px`:"none";e={...e,[o]:n}});let i=l("maxh",e);return i},getDefaultStyleCollectionDes=({setting:n,renderMaxHeight:r})=>{let p=t(n?.typo,n?.typography);return e({...o({value:n?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:n?.typo?.custom?.hasShadowText}),...l("ta",n?.textAlign),...i({tt:n?.transform}),...p,...r&&getMaxHeightStyleDefault(n)})},getStyleDefaultViewMore=e=>{let o=t(e?.typo,e?.typography),r=()=>p(t=>{let o=e?.hasLineClamp?.[t];return!!e?.hasLineClamp&&void 0!==o&&!o},"inline-flex");return{...i({tt:e?.transform}),...l("jc",e?.textAlign),...o,...n(e?.showMoreColor),...r()}},getStaticCss=()=>{let t=`
    .gp-p-description-text > *:not(ol):not(ul):not(table):not(div):not(style):not(script) {
      display: inline !important;
    }
    .gp-p-description-text > *:not(ol):not(ul):not(table):not(div):not(style):not(script)::after {
      content: "\\A";
      white-space: pre;
    }
    .gp-p-description-text > table {
      box-shadow: none;
    }
  `,e=`
      .p-description-wrapper.gp-p-description-text * {
        color: inherit;
        line-height: inherit !important;
      }`;return{gpDescriptionCss:t,textDescriptionCss:e}};export{getDefaultStyleCollectionDes,getMaxHeightStyleDefault,getStaticCss,getStyleDefaultViewMore};
