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