UNPKG

ll-package

Version:

2 lines (1 loc) 1.46 kB
"use strict";const u=require("../../../../../_virtual/CODE128A.js");require("./CODE128.js");require("./constants.js");const f=require("../../../../../_virtual/constants.js"),a=require("../../../../../_virtual/CODE128.js");Object.defineProperty(u.__exports,"__esModule",{value:!0});var _=function(){function t(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=a.__exports,l=y(c),i=f.__exports;function y(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function v(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var b=function(t){v(e,t);function e(n,r){return O(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i.A_START_CHAR+n,r))}return _(e,[{key:"valid",value:function(){return new RegExp("^"+i.A_CHARS+"+$").test(this.data)}}]),e}(l.default);u.__exports.default=b;