"use strict";var e=require("@gem-sdk/core"),t=require("../../../../helpers.js"),o=require("./helpers.js");const l=t=>{let l={desktop:"none"};["desktop","mobile","tablet"].forEach(r=>{let p=e.getResponsiveValueByScreen(t?.lineClamp,r),n=e.getResponsiveValueByScreen(t?.hasLineClamp,r),s=n&&p?`${p*o.DESCRIPTION_LINE_HEIGHT_DEFAULT}px`:"none";l={...l,[r]:s}});let r=e.makeStyleResponsive("maxh",l);return r};exports.getDefaultStyleCollectionDes=({setting:t,renderMaxHeight:o})=>{let r=e.composeTypographyStyle(t?.typo,t?.typography);return e.filterTruthyStyles({...e.getStyleShadow({value:t?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:t?.typo?.custom?.hasShadowText}),...e.makeStyleResponsive("ta",t?.textAlign),...e.makeStyle({tt:t?.transform}),...r,...o&&l(t)})},exports.getMaxHeightStyleDefault=l,exports.getStaticCss=()=>{let e=`
    .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;
    }
  `,t=`
      .p-description-wrapper.gp-p-description-text * {
        color: inherit;
        line-height: inherit !important;
      }`;return{gpDescriptionCss:e,textDescriptionCss:t}},exports.getStyleDefaultViewMore=o=>{let l=e.composeTypographyStyle(o?.typo,o?.typography);return{...e.makeStyle({tt:o?.transform}),...e.makeStyleResponsive("jc",o?.textAlign),...l,...e.getGlobalColorStyle(o?.showMoreColor),...t.getDisplayStyle(e=>{let t=o?.hasLineClamp?.[e];return!!o?.hasLineClamp&&void 0!==t&&!t},"inline-flex")}};
