MSI1010.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. import _MSI3 from './MSI.js'
  3. import _checksums from './checksums.js'
  4. function _classCallCheck(instance, Constructor) {
  5. if (!(instance instanceof Constructor)) {
  6. throw new TypeError("Cannot call a class as a function");
  7. }
  8. }
  9. function _possibleConstructorReturn(self, call) {
  10. if (!self) {
  11. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  12. }
  13. return call && (typeof call === "object" || typeof call === "function") ? call : self;
  14. }
  15. function _inherits(subClass, superClass) {
  16. if (typeof superClass !== "function" && superClass !== null) {
  17. throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
  18. }
  19. subClass.prototype = Object.create(superClass && superClass.prototype, {
  20. constructor: {
  21. value: subClass,
  22. enumerable: false,
  23. writable: true,
  24. configurable: true
  25. }
  26. });
  27. if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ =
  28. superClass;
  29. }
  30. var MSI1010 = function(_MSI) {
  31. _inherits(MSI1010, _MSI);
  32. function MSI1010(data, options) {
  33. _classCallCheck(this, MSI1010);
  34. data += (0, _checksums.mod10)(data);
  35. data += (0, _checksums.mod10)(data);
  36. return _possibleConstructorReturn(this, (MSI1010.__proto__ || Object.getPrototypeOf(MSI1010)).call(this,
  37. data, options));
  38. }
  39. return MSI1010;
  40. }(_MSI3);
  41. export default MSI1010;