{"version":3,"file":"DateModifier.CBxSWTll.mjs","names":[],"sources":["https:/framerusercontent.com/modules/iJElrvgKVbKsPsR1fjo0/OIEnjwaS278b6KsqAJAP/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,GAAtB,sBAAmC,KAAK,EAAK,CAAC,CAAC,IAAM,EAAK,IAAI,KAAK,EAAK,CAClF,EAAc,IAAI,KAAK,eAAe,QAD2D,CAAC,IAAI,UAAU,MAAM,OAAO,KAAK,UAAU,CACtF,CAAC,OAAO,EAAK,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAc,CAAC,CAC3I,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,mBAJH"}