芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/erp.digitalhubbd.com/public/js/bundle/barcode.8c074ad4fafc5fde.js
(self.webpackChunk=self.webpackChunk||[]).push([[5669],{93764:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(76314),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".input-with-icon{align-items:center;display:flex}.scan-icon{cursor:pointer;height:50px;margin-right:8px;width:50px}",""]);const i=o},86129:(t,e,r)=>{"use strict";var n=d(r(59368)),o=d(r(91490)),i=d(r(98165)),a=d(r(73623)),s=d(r(18179)),u=d(r(69796)),c=d(r(4205)),l=r(28157),f=d(r(55099));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,s.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 _ in h.getModule=function(t){return n.default[t]},n.default)n.default.hasOwnProperty(_)&&b(n.default,_);function b(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,u.default)(a);var s=t[e],c=y(r,s,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 s=0;s
{"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}},53651:(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=s.SWAP[i];void 0!==a?o=e.next(t,r+1,a):(n!==s.SET_A&&n!==s.SET_B||i!==s.SHIFT||(t[0]=n===s.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 u=i*r;return{result:e.getBar(i)+o.result,checksum:u+o.checksum}}}]),e}(a.default);e.default=u},43804:(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(53651)),o=i(r(74802));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 s=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=s},74802:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(62700),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 s(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)+u(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)+s(t.substring(i.length),!e)}function u(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)+s(t,n)}e.default=function(t){var e=void 0;if(a(t).length>=2)e=n.C_START_CHAR+u(t);else{var r=o(t)>i(t);e=(r?n.A_START_CHAR:n.B_START_CHAR)+s(t,r)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},62700:(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,s=(e.SHIFT=98,e.START_A=103),u=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(n(r={},s,o),n(r,u,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]},71509:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var n=s(r(24845)),o=s(r(43804)),i=s(r(73541)),a=s(r(5798));function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=n.default,e.CODE128A=o.default,e.CODE128B=i.default,e.CODE128C=a.default},61428:(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(72444)).default);e.default=s},44250:(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]==s(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(72444)).default);function s(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},3781:(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,s=0;s
{"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"]},16350:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(96575);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(44250)),o=c(r(18784)),i=c(r(38075)),a=c(r(7570)),s=c(r(17960)),u=c(r(3781));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=s.default,e.UPCE=u.default},1886:(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"]},5070:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var n=i(r(50739)),o=i(r(8122));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=n.default,e.ITF14=o.default},33551:(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(33551),i=(n=o)&&n.__esModule?n:{default:n},a=r(16320);var s=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=s},23:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(33551),i=(n=o)&&n.__esModule?n:{default:n},a=r(16320);var s=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=s},96065:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(33551),i=(n=o)&&n.__esModule?n:{default:n},a=r(16320);var s=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=s},27052:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(33551),i=(n=o)&&n.__esModule?n:{default:n},a=r(16320);var s=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=s},16320:(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=u(r(33551)),o=u(r(76338)),i=u(r(96065)),a=u(r(23)),s=u(r(27052));function u(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=s.default},21133:(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(61428),o=r(71509),i=r(55726),a=r(5070),s=r(48248),u=r(42889),c=r(21133),l=r(1886);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:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:u.pharmacode,codabar:c.codabar,GenericBarcode:l.GenericBarcode}},42889:(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},4205:(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(){function t(e,o){r(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=e,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return o(t,Error),t}(),a=function(){function t(){r(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="InvalidElementException",e.message="Not supported type to render on",e}return o(t,Error),t}(),s=function(){function t(){r(this,t);var e=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.name="NoElementException",e.message="No element to render on.",e}return o(t,Error),t}();e.InvalidInputException=i,e.InvalidElementException=a,e.NoElementException=s},73623:(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}},892:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(r(69796)),o=i(r(55099));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)}},18179:(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=s(r(892)),i=s(r(82727)),a=r(28157);function s(t){return t&&t.__esModule?t:{default:t}}function u(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}},55099:(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},11687:(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=u},82727:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(r(11687)),o=a(r(35965)),i=a(r(13528));function a(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:n.default,SVGRenderer:o.default,ObjectRenderer:i.default}},13528:(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(91490),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 s(t,e,r){if(r.displayValue&&e
e&&(e=t[r].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=s,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(u,"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",u),r.setAttribute("version","1.1"),r.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(t,e,r){var n=this.document.createElementNS(u,"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(u,"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},470:(t,e,r)=>{var n=r(86129),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},26110:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>y});var n=r(470),o=r.n(n),i=r(5947),a=r.n(i),s=r(95353);function u(t){return u="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},u(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"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e: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,show_price:!0,products_added:[],pages:[],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)},generatePages:function(){var t=[];for(this.products_added.forEach((function(e){for(var r=0;r
0;)this.pages.push(t.splice(0,this.sheets))},showBarcode:function(){this.generatePages(),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()}};var d=r(85072),p=r.n(d),h=r(93764),_={insert:"head",singleton:!1};p()(h.A,_);h.A.locals;var b=(0,r(14486).A)(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-modal",{attrs:{"hide-footer":"",id:"open_scan",size:"md",title:"Barcode Scanner"}},[e("qrcode-scanner",{staticStyle:{width:"100%",height:"calc(100vh - 56px)"},attrs:{qrbox:250,fps:10},on:{result:t.onScan}})],1),t._v(" "),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("div",{staticClass:"input-with-icon"},[e("img",{staticClass:"scan-icon",attrs:{src:"/assets_setup/scan.png",alt:"Scan"},on:{click:t.showModal}}),t._v(" "),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("th",{staticClass:"text-center",attrs:{scope:"col"}},[e("i",{staticClass:"fa fa-trash"})])])]),t._v(" "),e("tbody",[0===t.products_added.length?e("tr",[e("td",{attrs:{colspan:"4"}},[t._v(t._s(t.$t("NodataAvailable")))])]):t._e(),t._v(" "),t._l(t.products_added,(function(r){return e("tr",{key:r.code},[e("td",[t._v(t._s(r.name))]),t._v(" "),e("td",[t._v(t._s(r.code))]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model.number",value:r.qte,expression:"product.qte",modifiers:{number:!0}}],staticClass:"form-control w-50 h-25",attrs:{id:"qte",type:"number",name:"qte"},domProps:{value:r.qte},on:{input:function(e){e.target.composing||t.$set(r,"qte",t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),e("td",[e("i",{staticClass:"i-Close-Window text-25 text-danger",on:{click:function(e){return t.delete_Product(r.code)}}})])])}))],2)])])]),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"},{label:"Stickers",value:"customstyle"}]},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",{staticClass:"mt-4",attrs:{md:"6"}},[e("label",{staticClass:"checkbox checkbox-primary mb-3"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.show_price,expression:"show_price"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.show_price)?t._i(t.show_price,null)>-1:t.show_price},on:{change:function(e){var r=t.show_price,n=e.target,o=!!n.checked;if(Array.isArray(r)){var i=t._i(r,null);n.checked?i<0&&(t.show_price=r.concat([null])):i>-1&&(t.show_price=r.slice(0,i).concat(r.slice(i+1)))}else t.show_price=o}}}),e("h5",[t._v("Display Price ")]),e("span",{staticClass:"checkmark"})])]),t._v(" "),e("b-col",{staticClass:"mt-4",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.pages,(function(r,n){return e("div",{key:n},[e("div",{class:t.class_type_page},t._l(r,(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","font-size":"10px"}},[e("span",{staticClass:"barcode-name"},[t._v(t._s(r.name))]),t._v(" "),t.show_price?e("span",{staticClass:"barcode-price"},[t._v(t._s(t.currentUser.currency)+" "+t._s(r.Net_price))]):t._e()]),t._v(" "),e("barcode",{staticClass:"barcode",attrs:{format:r.Type_barcode,value:r.barcode,textmargin:"0",fontoptions:"bold",fontSize:"15",height:"25",width:"1"}})],1)})),0)])})),0):t._e()])],1)],1)}),[],!1,null,null,null);const y=b.exports}}]);