{"version":3,"file":"formatCurrency-CfNQxEpW.js","sources":["../../../app/javascript/shared/utils/formatCurrency.js"],"sourcesContent":["export const formatCurrency = (value) => {\n if (isNaN(value)) return '-'\n return new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: 'USD',\n // show decimals only if needed\n minimumFractionDigits: value % 1 === 0 ? 0 : 2,\n }).format(value)\n}\n"],"names":["formatCurrency","value"],"mappings":"AAAY,MAACA,EAAkBC,GACzB,MAAMA,CAAK,EAAU,IAClB,IAAI,KAAK,aAAa,QAAS,CACpC,MAAO,WACP,SAAU,MAEV,sBAAuBA,EAAQ,IAAM,EAAI,EAAI,CACjD,CAAG,EAAE,OAAOA,CAAK"}