'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../helpers.js"),a=require("../common/helpers.js");exports.default=({styles:r,builderProps:s})=>{let o=e.composeTypographyClassName(r?.typo,r?.typography),l=e.composeTypographyStyle(r?.typo,r?.typography),p={...e.makeStyleResponsive("ta",r?.textAlign),...e.getGlobalColorStateStyle("c",r?.color),...e.makeStyle({tt:r?.transform}),...l},i={...p,...e.makeStyleResponsive("line-clamp",e.makeLineClamp(r?.lineClamp,r?.hasLineClamp)),...e.getStyleShadow({value:r?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:r?.typo?.custom?.hasShadowText})};return e.template`
<gp-article-content data-id="${s?.uid}" >
  <div
      class="${e.cls("gp-relative gp-p-description-text gp-content-text-override gp-break-words safari:[&_p]:gp-inline safari:[&_p]:after:gp-whitespace-pre",o,e.getGlobalColorStateClass("text",r?.color),"data-[browser=safari]:after:gp-content-[' '] data-[browser=safari]:after:gp-absolute data-[browser=safari]:after:gp-left-0 data-[browser=safari]:after:gp-right-0 data-[browser=safari]:after:gp-bottom-0 data-[browser=safari]:after:gp-w-full data-[browser=safari]:after:gp-h-1/2 data-[browser=safari]:after:gp-bg-gradient-to-t data-[browser=safari]:after:gp-from-white")}"
      style="${i}"
    >
    {{article.content}}
  </div>
  {% style %}
    .gp-p-description-text * {
      color: inherit
    }
    ${a.styleOverride}
  {% endstyle %}
</gp-article-content>
${e.RenderIf(e.isLocalEnv,`<script ${t.getSettingPreloadData('class="gps-link" delay',"src")}="{{ 'gp-article-content-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${t.getSettingPreloadData('class="gps-link" delay',"src")}="${e.baseAssetURL}/assets-v2/gp-article-content-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
  `};
