'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../text/components/Text.js"),r=require("../../button/components/Button.js"),l=require("@gem-sdk/core");exports.default=({setting:i,builderAttrs:s,builderProps:o,styles:n,style:a,advanced:u})=>{let d=l.useArticleStore(e=>e.article),{readMoreType:c,label:x}=i??{},{typoBtn:p,typoText:b,globalSizeText:g,globalSizeBtn:y,textColorTextState:f,alignBtn:j,alignText:m,enableHoverEffectText:v}=n??{};return e.jsx("div",{id:`shopify-text-element-${o?.uid}`,"data-article-id":d?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:"text"===c?e.jsx(t.default,{styles:{...n,color:f,typo:b,spacing:"0px",align:m,textColor:void 0,enableHoverEffect:v},setting:{...i,text:x,globalSize:g,excludeFlex:!0}}):e.jsx(r.default,{builderAttrs:s,builderProps:o,setting:{...i,label:x,htmlType:"button"},styles:{...n,typo:p,globalSize:y,align:j},style:a,advanced:u})})};
