{"version":3,"file":"index.mjs","sources":["../../../../src/phoneNumberInput/utils/longestMatchingPrefix/index.ts"],"sourcesContent":["import { Country } from '../../data/countries';\n\nexport const longestMatchingPrefix = (matchingCodes: readonly Country[]) =>\n  matchingCodes.reduce((a, b) => (a.phone.length > b.phone.length ? a : b));\n"],"names":["longestMatchingPrefix","matchingCodes","reduce","a","b","phone","length"],"mappings":"AAEO,MAAMA,qBAAqB,GAAIC,aAAiC,IACrEA,aAAa,CAACC,MAAM,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAMD,CAAC,CAACE,KAAK,CAACC,MAAM,GAAGF,CAAC,CAACC,KAAK,CAACC,MAAM,GAAGH,CAAC,GAAGC,CAAE;;;;"}