'use client';
import{template as e}from"@gem-sdk/core";import t from"../../text/components/Text.liquid.js";import{getLinkArticle as l}from"../../helpers.js";import{If as i}from"@gem-sdk/system";let ArticleTitle=({setting:r,styles:a,advanced:s,builderProps:d})=>{let o=r?.openNewTab?"_blank":"_self";return e`
    ${i(r?.enableLink,e`
          <a href="${l(r?.linkArticle,r?.customURL)}" target="${o}" title="{{article.title}}">
          ${t({styles:a,setting:{...r,text:"{{article.title}}",excludeFlex:!0,isForceValue:!0},advanced:s,builderAttrs:{"data-id":d?.uid}})}
          </a>
        `,e`${t({styles:a,setting:{...r,text:"{{article.title}}",excludeFlex:!0,isForceValue:!0},advanced:s,builderAttrs:{"data-id":d?.uid}})}`)}
  `};export{ArticleTitle as default};
