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