{"version":3,"file":"index-kDIn5RSy.js","sources":["../../Client/webkit/validation/rules/integer/index.ts"],"sourcesContent":["import { Rule } from '@webkit/validation/value';\r\n\r\nexport const integer = (error?: string) =>\r\n    ({\r\n        id: 'integer',\r\n        validator: value => !value || /^-?\\d+$/.test(value.toString().replace(/,/g, '').toString()),\r\n        error: (name: string) => error || `Please enter a number for ${name}.`,\r\n    } as Rule<string | number>);\r\n"],"names":["integer","error","value","name"],"mappings":"AAEa,MAAAA,EAAWC,IACnB,CACG,GAAI,UACJ,UAAWC,GAAS,CAACA,GAAS,UAAU,KAAKA,EAAM,SAAS,EAAE,QAAQ,KAAM,EAAE,EAAE,UAAU,EAC1F,MAAQC,GAAiBF,GAAS,6BAA6BE,CAAI,GACvE"}