'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"),translate=require("../settings/configs/translate.js");const ArticleReadMore=({setting:e,styles:t,builderAttrs:l,builderProps:r,advanced:o,style:a})=>{let{readMoreType:i,label:n}=e??{},{typoBtn:s,typoText:u,globalSizeText:c,globalSizeBtn:d,textColorTextState:p,alignBtn:g,alignText:x,enableHoverEffectText:b}=t??{};return core.template`
    ${core.RenderIf("text"===i,Text_liquid.default({builderAttrs:l,builderProps:r,advanced:o,styles:{...t,color:p,typo:u,spacing:"0px",align:x,textColor:void 0,enableHoverEffect:b},style:a??{},setting:{...e,text:n,globalSize:c,excludeFlex:!0},translateSetting:translate.ArticleReadMore?.label?.id}))}
    ${core.RenderIf("text"!==i,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:l,builderProps:r,advanced:o,styles:{...t,typo:s,globalSize:d,align:g},style:a??{},setting:{...e,label:n,htmlType:"button"},translateSetting:translate.ArticleReadMore?.label?.id})}</a>`)}
  `};exports.default=ArticleReadMore;
