'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),Text=require("../../text/components/Text.js"),core=require("@gem-sdk/core"),React=require("react");const ArticleAuthor=({setting:e,builderProps:t,styles:r,advanced:i})=>{let{prefix:s}=e??{},u=core.useArticleStore(e=>e.article),c=React.useMemo(()=>`${s??""} ${u?.author||"Unknown"}`,[u?.author,s]);return jsxRuntime.jsx("div",{id:`shopify-text-element-${t?.uid}`,"data-article-id":u?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:jsxRuntime.jsx(Text.default,{builderProps:t,styles:r,advanced:i,setting:{...e,text:c,excludeFlex:!0}})})};exports.default=ArticleAuthor;
