芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/panoramawholesale.com/public/js/bundle/barcode.26cd4ed245889bc4.js
(self.webpackChunk=self.webpackChunk||[]).push([[5499],{55961:(t,e,r)=>{"use strict";var n=d(r(82289)),o=d(r(62276)),i=d(r(25443)),a=d(r(87044)),u=d(r(49972)),s=d(r(75065)),c=d(r(88532)),l=r(82362),f=d(r(66025));function d(t){return t&&t.__esModule?t:{default:t}}var p=function(){},h=function(t,e,r){var n=new p;if(void 0===t)throw Error("No element to render on was provided.");return n._renderProperties=(0,u.default)(t),n._encodings=[],n._options=f.default,n._errorHandler=new c.default(n),void 0!==e&&((r=r||{}).format||(r.format=v()),n.options(r)[r.format](e,r).render()),n};for(var b in h.getModule=function(t){return n.default[t]},n.default)n.default.hasOwnProperty(b)&&_(n.default,b);function _(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(r,n){var i=this;return i._errorHandler.wrapBarcodeCall((function(){n.text=void 0===n.text?void 0:""+n.text;var a=(0,o.default)(i._options,n);a=(0,s.default)(a);var u=t[e],c=y(r,u,a);return i._encodings.push(c),i}))}}function y(t,e,r){var n=new e(t=""+t,r);if(!n.valid())throw new l.InvalidInputException(n.constructor.name,t);var a=n.encode();a=(0,i.default)(a);for(var u=0;u
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=r.text||e,this.options=r}},92089:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
=200){i=t.shift()-105;var a=u.SWAP[i];void 0!==a?o=e.next(t,r+1,a):(n!==u.SET_A&&n!==u.SET_B||i!==u.SHIFT||(t[0]=n===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,r+1,n))}else i=e.correctIndex(t,n),o=e.next(t,r+1,n);var s=i*r;return{result:e.getBar(i)+o.result,checksum:s+o.checksum}}}]),e}(a.default);e.default=s},98238:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(r(92089)),o=i(r(37293));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(t,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,o.default)(t),r));else n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return a(n)}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),e}(n.default);e.default=u},37293:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(14602),o=function(t){return t.match(new RegExp("^"+n.A_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+n.B_CHARS+"*"))[0].length},a=function(t){return t.match(new RegExp("^"+n.C_CHARS+"*"))[0]};function u(t,e){var r=e?n.A_CHARS:n.B_CHARS,o=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+s(t.substring(o[1].length));var i=t.match(new RegExp("^"+r+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+u(t.substring(i.length),!e)}function s(t){var e=a(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var n=o(t)>=i(t);return e+String.fromCharCode(n?206:205)+u(t,n)}e.default=function(t){var e=void 0;if(a(t).length>=2)e=n.C_START_CHAR+s(t);else{var r=o(t)>i(t);e=(r?n.A_START_CHAR:n.B_START_CHAR)+u(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},14602:(t,e)=>{"use strict";var r;function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0});var o=e.SET_A=0,i=e.SET_B=1,a=e.SET_C=2,u=(e.SHIFT=98,e.START_A=103),s=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(n(r={},u,o),n(r,s,i),n(r,c,a),r),e.SWAP={101:o,100:i,99:a},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},74935:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var n=u(r(88845)),o=u(r(98238)),i=u(r(21180)),a=u(r(20944));function u(t){return t&&t.__esModule?t:{default:t}}e.CODE128=n.default,e.CODE128A=o.default,e.CODE128B=i.default,e.CODE128C=a.default},93361:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r
10*r.width?10*r.width:r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),n(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:o.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:o.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:o.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),e}(a(r(28012)).default);e.default=u},20023:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r
10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==u(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,o.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,o.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,o.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,o.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,o.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(i(r(28012)).default);function u(t){var e,r=0;for(e=1;e<11;e+=2)r+=parseInt(t[e]);for(e=0;e<11;e+=2)r+=3*parseInt(t[e]);return(10-r%10)%10}e.default=a},60930:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r
10*r.width?n.fontSize=10*r.width:n.fontSize=r.fontSize,n.guardHeight=r.height+n.fontSize/2+r.textMargin,n}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),n(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],r=l[parseInt(e)][parseInt(t)];return(0,o.default)(this.middleDigits,r)}}]),e}(i.default);function d(t,e){for(var r=parseInt(t[t.length-1]),n=c[r],o="",i=0,u=0;u
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},75532:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(51239);e.default=function(t,e,r){var o=t.split("").map((function(t,r){return n.BINARIES[e[r]]})).map((function(e,r){return e?e[t[r]]:""}));if(r){var i=t.length-1;o=o.map((function(t,e){return e
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var n=c(r(20023)),o=c(r(45218)),i=c(r(59668)),a=c(r(76552)),u=c(r(45314)),s=c(r(60930));function c(t){return t&&t.__esModule?t:{default:t}}e.EAN13=n.default,e.EAN8=o.default,e.EAN5=i.default,e.EAN2=a.default,e.UPC=u.default,e.UPCE=s.default},6447:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},35984:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var n=i(r(23074)),o=i(r(6972));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=n.default,e.ITF14=o.default},22582:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(22582),i=(n=o)&&n.__esModule?n:{default:n},a=r(4348);var u=function(t){function e(t,r){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod10)(t),r))}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),e}(i.default);e.default=u},98035:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(22582),i=(n=o)&&n.__esModule?n:{default:n},a=r(4348);var u=function(t){function e(t,r){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod10)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),e}(i.default);e.default=u},5883:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(22582),i=(n=o)&&n.__esModule?n:{default:n},a=r(4348);var u=function(t){function e(t,r){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,a.mod11)(t),r))}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),e}(i.default);e.default=u},96287:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(22582),i=(n=o)&&n.__esModule?n:{default:n},a=r(4348);var u=function(t){function e(t,r){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,a.mod11)(t),t+=(0,a.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r))}return function(t,e){if("function"!=typeof e&&null!==e)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)}(e,t),e}(i.default);e.default=u},4348:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var n=s(r(22582)),o=s(r(97839)),i=s(r(5883)),a=s(r(98035)),u=s(r(96287));function s(t){return t&&t.__esModule?t:{default:t}}e.MSI=n.default,e.MSI10=o.default,e.MSI11=i.default,e.MSI1010=a.default,e.MSI1110=u.default},40123:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var n,o=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(93361),o=r(74935),i=r(15321),a=r(35984),u=r(28458),s=r(23840),c=r(40123),l=r(6447);e.default={CODE39:n.CODE39,CODE128:o.CODE128,CODE128A:o.CODE128A,CODE128B:o.CODE128B,CODE128C:o.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:a.ITF14,ITF:a.ITF,MSI:u.MSI,MSI10:u.MSI10,MSI11:u.MSI11,MSI1010:u.MSI1010,MSI1110:u.MSI1110,pharmacode:s.pharmacode,codabar:c.codabar,GenericBarcode:l.GenericBarcode}},23840:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var n,o=function(){function t(t,e){for(var r=0;r
=3&&this.number<=131070}}]),e}(((n=i)&&n.__esModule?n:{default:n}).default);e.pharmacode=a},88532:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var r=0;r
{"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)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)}Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(t,o){r(this,e);var i=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return o(e,Error),e}(),a=function(t){function e(){r(this,e);var t=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return o(e,Error),e}(),u=function(t){function e(){r(this,e);var t=n(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return o(e,Error),e}();e.InvalidInputException=i,e.InvalidElementException=a,e.NoElementException=u},87044:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},43898:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(r(75065)),o=i(r(66025));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var r in o.default)o.default.hasOwnProperty(r)&&(t.hasAttribute("jsbarcode-"+r.toLowerCase())&&(e[r]=t.getAttribute("jsbarcode-"+r.toLowerCase())),t.hasAttribute("data-"+r.toLowerCase())&&(e[r]=t.getAttribute("data-"+r.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,n.default)(e)}},49972:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=u(r(43898)),i=u(r(32804)),a=r(82362);function u(t){return t&&t.__esModule?t:{default:t}}function s(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var r=[],n=0;n
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(r){if(Array.isArray(r))for(var n=0;n
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in e)e.hasOwnProperty(r)&&"string"==typeof t[r=e[r]]&&(t[r]=parseInt(t[r],10));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},66025:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};e.default=r},98204:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
0?(r=0,o.textAlign="left"):"right"==t.textAlign?(r=e.width-1,o.textAlign="right"):(r=e.width/2,o.textAlign="center"),o.fillText(e.text,r,n))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=s},32804:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(r(98204)),o=a(r(36917)),i=a(r(98652));function a(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:n.default,SVGRenderer:o.default,ObjectRenderer:i.default}},98652:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var r=0;r
{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var n,o=r(62276),i=(n=o)&&n.__esModule?n:{default:n};function a(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function u(t,e,r){if(r.displayValue&&e
e&&(e=t[r].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,r){for(var n=0;n
{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var r=0;r
0&&(this.drawRect(a-e.width*i,n,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),n,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,r){var n,o,i=this.document.createElementNS(s,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fontSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||r.barcodePadding>0?(n=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(n=r.width-1,i.setAttribute("text-anchor","end")):(n=r.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",n),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(r.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var r=this.svg;r.setAttribute("width",t+"px"),r.setAttribute("height",e+"px"),r.setAttribute("x","0px"),r.setAttribute("y","0px"),r.setAttribute("viewBox","0 0 "+t+" "+e),r.setAttribute("xmlns",s),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,r){var n=this.document.createElementNS(s,"g");return n.setAttribute("transform","translate("+t+", "+e+")"),r.appendChild(n),n}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"+e.lineColor+";")}},{key:"drawRect",value:function(t,e,r,n,o){var i=this.document.createElementNS(s,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",r),i.setAttribute("height",n),o.appendChild(i),i}}]),t}();e.default=c},7174:(t,e,r)=>{var n=r(55961),o={render:function(t){return t("div",[t(this.elementTag,{style:{display:this.valid?void 0:"none"},class:["vue-barcode-element"]}),t("div",{style:{display:this.valid?"none":void 0}},this.$slots.default)])},props:{value:[String,Number],format:[String],width:[String,Number],height:[String,Number],displayValue:{type:[String,Boolean],default:!0},text:[String,Number],fontOptions:[String],font:[String],textAlign:[String],textPosition:[String],textMargin:[String,Number],fontSize:[String,Number],background:[String],lineColor:[String],margin:[String,Number],marginTop:[String,Number],marginBottom:[String,Number],marginLeft:[String,Number],marginRight:[String,Number],flat:[Boolean],ean128:[String,Boolean],elementTag:{type:String,default:"svg",validator:function(t){return-1!==["canvas","svg","img"].indexOf(t)}}},mounted:function(){this.$watch("$props",i,{deep:!0,immediate:!0}),i.call(this)},data:function(){return{valid:!0}}};function i(){var t=this,e={format:this.format,width:this.width,height:this.height,displayValue:this.displayValue,text:this.text,fontOptions:this.fontOptions,font:this.font,textAlign:this.textAlign,textPosition:this.textPosition,textMargin:this.textMargin,fontSize:this.fontSize,background:this.background,lineColor:this.lineColor,margin:this.margin,marginTop:this.marginTop,marginBottom:this.marginBottom,marginLeft:this.marginLeft,marginRight:this.marginRight,flat:this.flat,ean128:this.ean128,valid:function(e){t.valid=e},elementTag:this.elementTag};!function(t){for(var e in t)t.hasOwnProperty(e)&&void 0===t[e]&&delete t[e]}(e),n(this.$el.querySelector(".vue-barcode-element"),String(this.value),e)}t.exports=o},21774:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>d});var n=r(7174),o=r.n(n),i=r(74865),a=r.n(i),u=r(20629);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const f={components:{barcode:o()},data:function(){return{focused:!1,timer:null,search_input:"",product_filter:[],isLoading:!0,ShowCard:!1,barcode:{product_id:"",warehouse_id:"",qte:10},count:"",paper_size:"",sheets:"",total_a4:"",class_sheet:"",class_type_page:"",rest:"",warehouses:[],submitStatus:null,products:[],product:{name:"",code:"",Type_barcode:"",barcode:"",Net_price:""}}},computed:function(t){for(var e=1;e
'),e.document.write(""),e.document.write(t),e.document.write(""),e.document.close(),setTimeout((function(){e.print()}),1e3)},showBarcode:function(){this.Per_Page(),this.count=this.barcode.qte,this.ShowCard=!0},Selected_Warehouse:function(t){this.search_input="",this.product_filter=[],this.Get_Products_By_Warehouse(t)},Get_Elements:function(){var t=this;axios.get("barcode_create_page").then((function(e){t.warehouses=e.data.warehouses,t.isLoading=!1})).catch((function(e){setTimeout((function(){t.isLoading=!1}),500)}))},reset:function(){this.ShowCard=!1,this.products=[],this.product.name="",this.product.code="",this.product.Net_price="",this.barcode.qte=10,this.count=10,this.barcode.warehouse_id="",this.search_input="",this.$refs.product_autocomplete.value="",this.product_filter=[]}},created:function(){this.Get_Elements()}};const d=(0,r(51900).Z)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-content"},[e("breadcumb",{attrs:{page:t.$t("Printbarcode"),folder:t.$t("Products")}}),t._v(" "),t.isLoading?e("div",{staticClass:"loading_page spinner spinner-primary mr-3"}):t._e(),t._v(" "),t.isLoading?t._e():e("b-row",[e("b-col",{staticClass:"mb-3",attrs:{md:"6"}},[e("validation-observer",{ref:"show_Barcode"},[e("validation-provider",{attrs:{name:"warehouse",rules:{required:!0}},scopedSlots:t._u([{key:"default",fn:function(r){var n=r.valid,o=r.errors;return e("b-form-group",{attrs:{label:t.$t("warehouse")+" *"}},[e("v-select",{class:{"is-invalid":!!o.length},attrs:{state:!o[0]&&(!!n||null),reduce:function(t){return t.value},placeholder:t.$t("Choose_Warehouse"),options:t.warehouses.map((function(t){return{label:t.name,value:t.id}}))},on:{input:t.Selected_Warehouse},model:{value:t.barcode.warehouse_id,callback:function(e){t.$set(t.barcode,"warehouse_id",e)},expression:"barcode.warehouse_id"}}),t._v(" "),e("b-form-invalid-feedback",[t._v(t._s(o[0]))])],1)}}],null,!1,399681630)})],1)],1),t._v(" "),e("b-col",{staticClass:"mb-5",attrs:{md:"12"}},[e("h6",[t._v(t._s(t.$t("ProductName")))]),t._v(" "),e("div",{staticClass:"autocomplete",attrs:{id:"autocomplete"}},[e("input",{ref:"product_autocomplete",staticClass:"autocomplete-input",attrs:{placeholder:t.$t("Scan_Search_Product_by_Code_Name")},on:{input:function(e){return t.search_input=e.target.value},keyup:function(e){return t.search(t.search_input)},focus:t.handleFocus,blur:t.handleBlur}}),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.focused,expression:"focused"}],staticClass:"autocomplete-result-list"},t._l(t.product_filter,(function(r){return e("li",{staticClass:"autocomplete-result",on:{mousedown:function(e){return t.SearchProduct(r)}}},[t._v(t._s(t.getResultValue(r)))])})),0)])]),t._v(" "),e("b-col",{attrs:{md:"12"}},[e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover table-md"},[e("thead",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("ProductName")))]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("CodeProduct")))]),t._v(" "),e("th",{attrs:{scope:"col"}},[t._v(t._s(t.$t("Quantity")))])])]),t._v(" "),e("tbody",[""===t.product.code?e("tr",[e("td",{attrs:{colspan:"3"}},[t._v(t._s(t.$t("NodataAvailable")))])]):e("tr",[e("td",[t._v(t._s(t.product.name))]),t._v(" "),e("td",[t._v(t._s(t.product.code))]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model.number",value:t.barcode.qte,expression:"barcode.qte",modifiers:{number:!0}}],staticClass:"form-control w-50 h-25",attrs:{id:"qte",type:"number",name:"qte"},domProps:{value:t.barcode.qte},on:{input:function(e){e.target.composing||t.$set(t.barcode,"qte",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])])])])])]),t._v(" "),e("b-col",{attrs:{md:"12"}},[e("b-form-group",{attrs:{label:t.$t("Paper_size")}},[e("v-select",{attrs:{reduce:function(t){return t.value},placeholder:t.$t("Paper_size"),options:[{label:"40 per sheet (a4) (1.799 * 1.003)",value:"style40"},{label:"30 per sheet (2.625 * 1)",value:"style30"},{label:"24 per sheet (a4) (2.48 * 1.334)",value:"style24"},{label:"20 per sheet (4 * 1)",value:"style20"},{label:"18 per sheet (a4) (2.5 * 1.835)",value:"style18"},{label:"14 per sheet (4 * 1.33)",value:"style14"},{label:"12 per sheet (a4) (2.5 * 2.834)",value:"style12"},{label:"10 per sheet (4 * 2)",value:"style10"}]},on:{input:t.Selected_Paper_size},model:{value:t.paper_size,callback:function(e){t.paper_size=e},expression:"paper_size"}})],1)],1),t._v(" "),e("b-col",{attrs:{md:"12"}},[e("button",{staticClass:"btn btn-primary btn-sm m-1",attrs:{type:"submit"},on:{click:function(e){return t.submit()}}},[e("i",{staticClass:"i-Edit"}),t._v("\n "+t._s(t.$t("Updat"))+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-danger btn-sm m-1",attrs:{type:"submit"},on:{click:function(e){return t.reset()}}},[e("i",{staticClass:"i-Power-2"}),t._v("\n "+t._s(t.$t("Reset"))+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-light btn-sm pull-right m-1",attrs:{value:"Print",type:"submit"},on:{click:function(e){return t.print_all_Barcode()}}},[e("i",{staticClass:"i-Billing"}),t._v("\n "+t._s(t.$t("print"))+"\n ")])]),t._v(" "),e("b-col",{attrs:{md:"12"}},[t.ShowCard?e("div",{staticClass:"barcode-row",attrs:{id:"print_barcode_label"}},[t._l(t.total_a4,(function(r,n){return e("div",{key:n,class:t.class_type_page},t._l(t.sheets,(function(r,n){return e("div",{key:n,staticClass:"barcode-item",class:t.class_sheet},[e("div",{staticClass:"head_barcode text-left",staticStyle:{"padding-left":"10px","font-weight":"bold"}},[e("span",{staticClass:"barcode-name"},[t._v(t._s(t.product.name))]),t._v(" "),e("span",{staticClass:"barcode-price"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.product.Net_price))])]),t._v(" "),e("barcode",{staticClass:"barcode",attrs:{format:t.product.Type_barcode,value:t.product.barcode,textmargin:"0",fontoptions:"bold",fontSize:"15",height:"25",width:"1"}})],1)})),0)})),t._v(" "),t.rest>0?e("div",{class:t.class_type_page},t._l(t.rest,(function(r,n){return e("div",{key:n,staticClass:"barcode-item",class:t.class_sheet},[e("div",{staticClass:"head_barcode text-left",staticStyle:{"padding-left":"10px","font-weight":"bold"}},[e("span",{staticClass:"barcode-name"},[t._v(t._s(t.product.name))]),t._v(" "),e("span",{staticClass:"barcode-price"},[t._v(t._s(t.currentUser.currency)+" "+t._s(t.product.Net_price))])]),t._v(" "),e("barcode",{staticClass:"barcode",attrs:{fontSize:"15",format:t.product.Type_barcode,value:t.product.barcode,textmargin:"0",fontoptions:"bold",height:"25",width:"1"}})],1)})),0):t._e()],2):t._e()])],1)],1)}),[],!1,null,null,null).exports}}]);