{"version":3,"file":"DateModifier.CF2ZqXCw.mjs","names":["__esmMin","init_jsx_runtime","c","formatDate","props","text","date","formattedDate","Component","init_DateModifier"],"sources":["https:/framerusercontent.com/modules/qxzWkI78TrFxDktH5B3Z/XBXvHc28Uy0DgtOJKsUL/DateModifier.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function formatDate(Component){return props=>{// Extract the date from props\nconst{text}=props;// Check if the text is a valid date in the format 'YYYY-MM-DD'\nconst dateRegex=/^\\d{4}-\\d{2}-\\d{2}$/;if(dateRegex.test(text)){const date=new Date(text);const options={day:\"numeric\",month:\"long\",year:\"numeric\"};// Format the date to 'DD Month YYYY'\nconst formattedDate=new Intl.DateTimeFormat(\"en-GB\",options).format(date);return /*#__PURE__*/_jsx(Component,{...props,text:formattedDate});}// If not a valid date, render the original text\nreturn /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"formatDate\":{\"type\":\"reactHoc\",\"name\":\"formatDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DateModifier.map"],"mappings":"A,oGAA2C,SAAgBG,EAAW,EAAU,CAAC,MAAO,IAAO,CAC/F,GAAK,CAAC,QAAMC,EAC0B,GAAG,sBAAU,KAAKC,CAAI,EAAE,CAAC,IAAMC,EAAK,IAAI,KAAKD,CAAI,EACjFE,EAAc,IAAI,KAAK,eAAe,QAAQ,CADoD,IAAI,UAAU,MAAM,OAAO,KAAK,SAC9E,CAAC,CAAC,CAAC,OAAOD,CAAI,EAAE,MAAoB,gBAAKE,EAAU,CAAC,GAAGJ,EAAM,KAAKG,CAAa,CAAC,CAAE,CAC5I,MAAoB,gBAAKC,EAAU,CAAC,GAAGJ,CAAK,CAAC,CAAE,CAAE,C"}