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