{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = isMACAddress;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    default: obj\n  };\n}\n\nvar macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\nvar macAddressNoColons = /^([0-9a-fA-F]){12}$/;\n\nfunction isMACAddress(str, options) {\n  (0, _assertString.default)(str);\n\n  if (options && options.no_colons) {\n    return macAddressNoColons.test(str);\n  }\n\n  return macAddress.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;","map":{"version":3,"sources":["C:/PoC/restaurant_sidechain/web/node_modules/validator/lib/isMACAddress.js"],"names":["Object","defineProperty","exports","value","default","isMACAddress","_assertString","_interopRequireDefault","require","obj","__esModule","macAddress","macAddressNoColons","str","options","no_colons","test","module"],"mappings":"AAAA;;AAEAA,MAAM,CAACC,cAAP,CAAsBC,OAAtB,EAA+B,YAA/B,EAA6C;AAC3CC,EAAAA,KAAK,EAAE;AADoC,CAA7C;AAGAD,OAAO,CAACE,OAAR,GAAkBC,YAAlB;;AAEA,IAAIC,aAAa,GAAGC,sBAAsB,CAACC,OAAO,CAAC,qBAAD,CAAR,CAA1C;;AAEA,SAASD,sBAAT,CAAgCE,GAAhC,EAAqC;AAAE,SAAOA,GAAG,IAAIA,GAAG,CAACC,UAAX,GAAwBD,GAAxB,GAA8B;AAAEL,IAAAA,OAAO,EAAEK;AAAX,GAArC;AAAwD;;AAE/F,IAAIE,UAAU,GAAG,wDAAjB;AACA,IAAIC,kBAAkB,GAAG,qBAAzB;;AAEA,SAASP,YAAT,CAAsBQ,GAAtB,EAA2BC,OAA3B,EAAoC;AAClC,GAAC,GAAGR,aAAa,CAACF,OAAlB,EAA2BS,GAA3B;;AAEA,MAAIC,OAAO,IAAIA,OAAO,CAACC,SAAvB,EAAkC;AAChC,WAAOH,kBAAkB,CAACI,IAAnB,CAAwBH,GAAxB,CAAP;AACD;;AAED,SAAOF,UAAU,CAACK,IAAX,CAAgBH,GAAhB,CAAP;AACD;;AAEDI,MAAM,CAACf,OAAP,GAAiBA,OAAO,CAACE,OAAzB;AACAa,MAAM,CAACf,OAAP,CAAeE,OAAf,GAAyBF,OAAO,CAACE,OAAjC","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = isMACAddress;\n\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\nvar macAddressNoColons = /^([0-9a-fA-F]){12}$/;\n\nfunction isMACAddress(str, options) {\n  (0, _assertString.default)(str);\n\n  if (options && options.no_colons) {\n    return macAddressNoColons.test(str);\n  }\n\n  return macAddress.test(str);\n}\n\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;"]},"metadata":{},"sourceType":"script"}