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