{"version":3,"file":"helpers.BCZ68Pop.mjs","names":[],"sources":["https:/framerusercontent.com/modules/gcQA7wjWb7LwrhipAGU1/NyrOd2OlhO3s7KraUBKx/helpers.js"],"sourcesContent":["export function splitAddress(address){if(!address)return{street:\"\",city:\"\"};const match=address.match(/(.*?)(\\d{4}\\s.*)/);if(!match){return{street:address,city:\"\"};}return{street:match[1].trim().replace(/,$/,\"\"),city:match[2].trim()};}export const formatDate=date=>{const formattedDate=new Intl.DateTimeFormat(\"da-DK\",{day:\"2-digit\",month:\"2-digit\",year:\"numeric\"}).format(date);return`${formattedDate}`;};export const formatDateTime=dateString=>{const date=new Date(dateString.replace(\" \",\"T\"));const datePart=new Intl.DateTimeFormat(\"da-DK\",{day:\"2-digit\",month:\"2-digit\",year:\"numeric\"}).format(date);const timePart=new Intl.DateTimeFormat(\"da-DK\",{hour:\"2-digit\",minute:\"2-digit\",hour12:false}).format(date);return`${datePart} \\xb7 ${timePart}`;};export const formatNumber=(number,decimals=2)=>{if(!number)return;return number.toLocaleString(\"da-DK\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals});};\nexport const __FramerMetadata__ = {\"exports\":{\"splitAddress\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatNumber\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatDateTime\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formatDate\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./helpers.map"],"mappings":"oDAAA,SAAgB,EAAa,EAAQ,CAAC,GAAG,CAAC,EAAQ,MAAM,CAAC,OAAO,GAAG,KAAK,GAAG,CAAC,IAAM,EAAM,EAAQ,MAAM,mBAAmB,CAA4C,OAAvC,EAA6C,CAAC,OAAO,EAAM,GAAG,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC,KAAK,EAAM,GAAG,MAAM,CAAC,CAA9F,CAAC,OAAO,EAAQ,KAAK,GAAG,qBAAqF,EAAW,GAA8H,GAAnG,IAAI,KAAK,eAAe,QAAQ,CAAC,IAAI,UAAU,MAAM,UAAU,KAAK,UAAU,CAAC,CAAC,OAAO,EAAK,GAAyC,EAAe,GAAY,CAAC,IAAM,EAAK,IAAI,KAAK,EAAW,QAAQ,IAAI,IAAI,CAAC,CAAyN,MAAM,GAA/M,IAAI,KAAK,eAAe,QAAQ,CAAC,IAAI,UAAU,MAAM,UAAU,KAAK,UAAU,CAAC,CAAC,OAAO,EAAK,CAA+H,QAA/G,IAAI,KAAK,eAAe,QAAQ,CAAC,KAAK,UAAU,OAAO,UAAU,OAAO,GAAM,CAAC,CAAC,OAAO,EAAK,IAAqD,GAAc,EAAO,EAAS,IAAI,CAAK,KAAc,OAAO,EAAO,eAAe,QAAQ,CAAC,sBAAsB,EAAS,sBAAsB,EAAS,CAAC"}