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