'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");const ArticleTag=({setting:e,builderProps:t,styles:r})=>{let i=core.useArticleStore(e=>e.article),{isPreviewSharePageMode:s}=core.useRenderMode(),l=i?.tags?.map(e=>e?.name).join(", "),d=s?null:jsxRuntime.jsx("div",{children:jsxRuntime.jsx("p",{className:"gp-bg-light-100 gp-border-dashed gp-border-[1px] gp-border-text-light-100 gp-text-text-light-500 gp-rounded-lg gp-px-2 gp-py-1 gp-text-12 gp-leading-5",children:"No article tag"})});return jsxRuntime.jsx("div",{id:`shopify-text-element-${t?.uid}`,"data-article-id":i?.baseID?.replace("gid://shopify/OnlineStoreArticle/",""),children:i?.tags?.length?jsxRuntime.jsx(Text.default,{builderProps:t,styles:r,setting:{...e,text:l,excludeFlex:!0}}):d})};exports.default=ArticleTag;
