{"version":3,"file":"index-DCcpMpml.js","sources":["../../Client/webkit/validation/rules/email/index.ts"],"sourcesContent":["import { Rule } from '@webkit/validation/value';\r\n\r\nexport const email = (error?: string) =>\r\n ({\r\n id: 'email',\r\n validator: value => !value || /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/.test(value),\r\n error: (name: string) => error || `Please enter a valid ${name}.`,\r\n } as Rule<string>);\r\n"],"names":["email","error","value","name"],"mappings":"AAEa,MAAAA,EAASC,IACjB,CACG,GAAI,QACJ,UAAoBC,GAAA,CAACA,GAAS,mDAAmD,KAAKA,CAAK,EAC3F,MAAQC,GAAiBF,GAAS,wBAAwBE,CAAI,GAClE"}