'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("../../button/components/Button.liquid.js"),r=require("../settings/configs/translate.js");exports.default=({setting:a,styles:n,builderAttrs:o,builderProps:s,advanced:i,style:u,pageContext:p})=>{let{readMoreType:g,label:c}=a??{},{typoBtn:d,typoText:b,globalSizeText:f,globalSizeBtn:x,textColorTextState:y,alignBtn:m,alignText:q,enableHoverEffectText:v}=n??{};return e.template`
    ${e.RenderIf("text"===g,e.template`<a href="{{article.url}}" target="_blank">
      ${t.default({builderAttrs:o,builderProps:s,advanced:i,styles:{...n,color:y,typo:b,spacing:"0px",align:q,textColor:void 0,enableHoverEffect:v},style:u??{},setting:{...a,text:c,globalSize:f,excludeFlex:!0},pageContext:p,translateSetting:r.ArticleReadMore?.label?.id})}</a>`)}
    ${e.RenderIf("text"!==g,e.template`<a href="{{article.url}}" target="_blank" class="gp-cursor-auto gp-pointer-events-none [&_button]:gp-pointer-events-auto">
      ${l.default({builderAttrs:o,builderProps:s,advanced:i,styles:{...n,typo:d,globalSize:x,align:m},style:u??{},setting:{...a,label:c,htmlType:"button"},translateSetting:r.ArticleReadMore?.label?.id,pageContext:p})}</a>`)}
  `};
