(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42e21be7"],{"1fe8":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.list?e("div",[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"product-item"},[t.showName?e("span",{staticClass:"product-name"},[t._v(t._s(t.list.name))]):t._e(),e("barcode",{attrs:{value:t.list.code,format:t.barcodeFormat,height:t.barcodeHeight,width:t.barcodeWidth,displayValue:t.showCodeBarcode}})],1)])])]):t._e()])},o=[],i=n("0d5e"),a=n("f579"),c=n.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,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return s(l,"_invoke",function(n,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(e,n){return i=e,c=0,u=t,d.n=n,a}};function h(n,r){for(c=n,u=r,e=0;!f&&s&&!o&&e<l.length;e++){var o,i=l[e],h=d.p,p=i[2];n>3?(o=p===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=n<2&&h<i[1])?(c=0,d.v=r,d.n=i[1]):h<p&&(o=n<3||i[0]>r||r>p)&&(i[4]=n,i[5]=r,d.n=p,c=0))}if(o||n>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;(e=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"),e=i[o]){if(!(e=e.call(i,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(e){i=t,c=1,u=e}finally{s=1}}return{value:e,done:f}}}(n,o,i),!0),l}var a={};function c(){}function l(){}function f(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(s(e={},r,(function(){return this})),e),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,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,e,n,r){function i(e,n){s(t,e,(function(t){return this._invoke(e,n,t)}))}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},s(t,e,n,r)}function l(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void n(t)}c.done?e(u):Promise.resolve(u).then(r,o)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);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 e(){return u().w((function(e){while(1)switch(e.n){case 0:return e.n=1,t.getDataFromURL();case 1:return e.a(2)}}),e)})))()},methods:{getDataFromURL:function(){var t=this;return f(u().m((function e(){return u().w((function(e){while(1)switch(e.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)){e.n=2;break}return e.n=1,t.getList();case 1:e.n=3;break;case 2:t.loading=!1;case 3:return e.a(2)}}),e)})))()},getList:function(){var t=this;return f(u().m((function e(){var n,r;return u().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,i["a"].get("/product/goods");case 1:n=e.v,console.log(n),t.list=n.data.product.find((function(e){return e.id==t.id})),e.n=3;break;case 2:e.p=2,r=e.v,console.error("Error fetching data:",r);case 3:return e.p=3,t.loading=!1,setTimeout(f(u().m((function e(){return u().w((function(e){while(1)switch(e.n){case 0:return e.n=1,t.print();case 1:return e.a(2)}}),e)}))),1500),e.f(3);case 4:return e.a(2)}}),e,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=(n("ac0d"),n("2877")),w=Object(p["a"])(h,r,o,!1,null,null,null);e["default"]=w.exports},ac0d:function(t,e,n){"use strict";n("f36e")},f36e:function(t,e,n){}}]);