'use client';
import{template as e}from"@gem-sdk/core";import t from"../../text/components/Text.liquid.js";let FORMAT_MAP={'{"locales":"en-US","options":{"month":"short","day":"2-digit","year":"numeric"}}':"%b %d, %Y",'{"locales":"en-US","options":{"month":"long","day":"2-digit","year":"numeric"}}':"%B %d, %Y",'{"locales":"en-GB","options":{"month":"long","day":"2-digit","year":"numeric"}}':"%d %B %Y",'{"locales":"en-GB","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}':"%d/%m/%Y",'{"locales":"en-US","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}':"%m/%d/%Y",'{"locales":"ja-JP","options":{"month":"2-digit","day":"2-digit","year":"numeric"}}':"%Y/%m/%d"},ArticleDate=({setting:i,styles:o,advanced:d,builderProps:a})=>{let{dateFormat:n}=i??{};return e`
    ${t({styles:o,setting:{...i,text:`{{ article.published_at | date: '${FORMAT_MAP[n??'{"locales":"en-US","options":{"month":"short","day":"2-digit","year":"numeric"}}']}' }}`,excludeFlex:!0,isForceValue:!0},advanced:d,builderAttrs:{"data-id":a?.uid}})}
  `};export{ArticleDate as default};
