{"version":3,"file":"DateModifier.DlpZHtbc.mjs","names":[],"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":"oGAA2C,SAAgB,EAAW,EAAU,CAAC,MAAO,IAAO,CAC/F,GAAK,CAAC,QAAM,EAC0B,GAAG,sBAAU,KAAK,CAAI,EAAE,CAAC,IAAM,EAAK,IAAI,KAAK,CAAI,EACjF,EAAc,IAAI,KAAK,eAAe,QAAQ,CADoD,IAAI,UAAU,MAAM,OAAO,KAAK,SAC9E,CAAC,CAAC,CAAC,OAAO,CAAI,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,CAAa,CAAC,CAAE,CAC5I,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,CAAE,CAAE,iBAJP"}