(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6dac610a"],{"59d0":function(t,n,e){"use strict";e("cb3c")},b1ca:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t._self._c;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.list?n("div",[n("div",{staticClass:"container"},[n("div",{staticClass:"row"},[n("div",{staticClass:"product-item"},[t.showName?n("span",{staticClass:"product-name"},[t._v(t._s(t.list.name))]):t._e(),n("barcode",{attrs:{value:t.list.code,format:t.barcodeFormat,height:t.barcodeHeight,width:t.barcodeWidth,displayValue:t.showCodeBarcode}})],1)])])]):t._e()])},o=[],i=e("0d5e"),a=e("f579"),c=e.n(a);function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function i(e,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return s(l,"_invoke",function(e,r,o){var i,c,u,s=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(n,e){return i=n,c=0,u=t,d.n=e,a}};function h(e,r){for(c=e,u=r,n=0;!f&&s&&!o&&n<l.length;n++){var o,i=l[n],h=d.p,p=i[2];e>3?(o=p===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=e<2&&h<i[1])?(c=0,d.v=r,d.n=i[1]):h<p&&(o=e<3||i[0]>r||r>p)&&(i[4]=e,i[5]=r,d.n=p,c=0))}if(o||e>1)return a;throw f=!0,r}return function(o,l,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),c=l,u=p;(n=c<2?t:u)||!f;){i||(c?c<3?(c>1&&(d.n=-1),h(c,u)):d.n=u:d.v=u);try{if(s=2,i){if(c||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,c<2&&(c=0)}else 1===c&&(n=i.return)&&n.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((n=(f=d.n<0)?u:e.call(r,d))!==a)break}catch(n){i=t,c=1,u=n}finally{s=1}}return{value:n,done:f}}}(e,o,i),!0),l}var a={};function c(){}function l(){}function f(){}n=Object.getPrototypeOf;var d=[][r]?n(n([][r]())):(s(n={},r,(function(){return this})),n),h=f.prototype=c.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=f,s(h,"constructor",f),s(f,"constructor",l),l.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(h),s(h,o,"Generator"),s(h,r,(function(){return this})),s(h,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:i,m:p}})()}function s(t,n,e,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,n,e,r){function i(n,e){s(t,n,(function(t){return this._invoke(n,e,t)}))}n?o?o(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e:(i("next",0),i("throw",1),i("return",2))},s(t,n,e,r)}function l(t,n,e,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?n(u):Promise.resolve(u).then(r,o)}function f(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){l(i,r,o,a,c,"next",t)}function c(t){l(i,r,o,a,c,"throw",t)}a(void 0)}))}}var d={components:{Barcode:c.a},data:function(){return{loading:!0,list:null,id:null,kolom:null,baris:null,barcodeFormat:"CODE128",barcodeHeight:25,barcodeWidth:1}},created:function(){var t=this;return f(u().m((function n(){return u().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.getDataFromURL();case 1:return n.a(2)}}),n)})))()},methods:{getDataFromURL:function(){var t=this;return f(u().m((function n(){return u().w((function(n){while(1)switch(n.n){case 0:if(t.id=t.$route.query.id,t.kolom=t.$route.query.kolom,t.baris=t.$route.query.baris,t.showName="false"!==t.$route.query.showName,t.showCodeBarcode="false"!==t.$route.query.showCodeBarcode,console.log(t.showName),console.log(t.showCodeBarcode),!(t.id&&t.kolom&&t.baris)){n.n=2;break}return n.n=1,t.getList();case 1:n.n=3;break;case 2:t.loading=!1;case 3:return n.a(2)}}),n)})))()},getList:function(){var t=this;return f(u().m((function n(){var e,r;return u().w((function(n){while(1)switch(n.p=n.n){case 0:return n.p=0,n.n=1,i["a"].get("/product/goods");case 1:e=n.v,console.log(e),t.list=e.data.product.find((function(n){return n.id==t.id})),n.n=3;break;case 2:n.p=2,r=n.v,console.error("Error fetching data:",r);case 3:return n.p=3,t.loading=!1,setTimeout(f(u().m((function n(){return u().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.print();case 1:return n.a(2)}}),n)}))),1500),n.f(3);case 4:return n.a(2)}}),n,null,[[0,2,3,4]])})))()},print:function(){return f(u().m((function t(){return u().w((function(t){while(1)switch(t.n){case 0:return t.n=1,window.print();case 1:setTimeout((function(){window.close()}),5e3);case 2:return t.a(2)}}),t)})))()}}},h=d,p=(e("59d0"),e("2877")),w=Object(p["a"])(h,r,o,!1,null,null,null);n["default"]=w.exports},cb3c:function(t,n,e){}}]);