monkey-front-core 0.0.617 → 0.0.619

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -236,6 +236,7 @@ var CountryMasks;
236
236
  CountryMasks["RUT2"] = "00000000-A";
237
237
  CountryMasks["RFC1"] = "AAAA000000AA0";
238
238
  CountryMasks["RFC2"] = "AAA000000AA0";
239
+ CountryMasks["EIN"] = "00-0000000";
239
240
  })(CountryMasks || (CountryMasks = {}));
240
241
 
241
242
  var statics = /*#__PURE__*/Object.freeze({
@@ -281,6 +282,11 @@ class MonkeyEcxUtils {
281
282
  CPF: CountryMasks.RFC1,
282
283
  CNPJ: CountryMasks.RFC2,
283
284
  '': `${CountryMasks.RFC1}||${CountryMasks.RFC2}`
285
+ },
286
+ US: {
287
+ CPF: CountryMasks.EIN,
288
+ CNPJ: CountryMasks.EIN,
289
+ '': CountryMasks.EIN
284
290
  }
285
291
  }[country.toUpperCase()]?.[type];
286
292
  }
@@ -297,6 +303,10 @@ class MonkeyEcxUtils {
297
303
  MX: {
298
304
  CPF: CountryMasks.RFC1,
299
305
  CNPJ: CountryMasks.RFC2
306
+ },
307
+ US: {
308
+ CPF: CountryMasks.EIN,
309
+ CNPJ: CountryMasks.EIN
300
310
  }
301
311
  }[country.toUpperCase()]?.[type];
302
312
  }