'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),Text_liquid=require("../../text/components/Text.liquid.js"),helpers=require("../../helpers.js"),system=require("@gem-sdk/system");const ArticleTitle=({setting:e,styles:t,advanced:l,builderProps:i})=>{let r=e?.openNewTab?"_blank":"_self";return core.template`
    ${system.If(e?.enableLink,core.template`
          <a href="${helpers.getLinkArticle(e?.linkArticle,e?.customURL)}" target="${r}" title="{{article.title}}">
          ${Text_liquid.default({styles:t,setting:{...e,text:"{{article.title}}",excludeFlex:!0,isForceValue:!0},advanced:l,builderAttrs:{"data-id":i?.uid}})}
          </a>
        `,core.template`${Text_liquid.default({styles:t,setting:{...e,text:"{{article.title}}",excludeFlex:!0,isForceValue:!0},advanced:l,builderAttrs:{"data-id":i?.uid}})}`)}
  `};exports.default=ArticleTitle;
