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