import{composeTypographyStyle as t,filterTruthyStyles as e,makeStyle as o,makeStyleResponsive as n,getStyleShadow as l,getGlobalColorStyle as r,getResponsiveValueByScreen as p}from"@gem-sdk/core";import{getDisplayStyle as i}from"../../../../helpers.js";import{DESCRIPTION_LINE_HEIGHT_DEFAULT as a}from"./helpers.js";let s=t=>{let e={desktop:"none"};["desktop","mobile","tablet"].forEach(o=>{let n=p(t?.lineClamp,o),l=p(t?.hasLineClamp,o),r=l&&n?`${n*a}px`:"none";e={...e,[o]:r}});let o=n("maxh",e);return o},h=({setting:r,renderMaxHeight:p})=>{let i=t(r?.typo,r?.typography);return e({...l({value:r?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.typo?.custom?.hasShadowText}),...n("ta",r?.textAlign),...o({tt:r?.transform}),...i,...p&&s(r)})},m=e=>{let l=t(e?.typo,e?.typography);return{...o({tt:e?.transform}),...n("jc",e?.textAlign),...l,...r(e?.showMoreColor),...i(t=>{let o=e?.hasLineClamp?.[t];return!!e?.hasLineClamp&&void 0!==o&&!o},"inline-flex")}},d=()=>{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{h as getDefaultStyleCollectionDes,s as getMaxHeightStyleDefault,d as getStaticCss,m as getStyleDefaultViewMore};
