text: (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{319:function(e,t,n){},349:function(e,t,n){"use strict";var r=n(319);n.n(r).a},369:function(e,t,n){"use strict";n.r(t);n(9),n(97);var r=n(42),a={components:{QrcodeStream:n(310).c},data:function(){return{camera:"auto",result:null,showScanConfirmation:!1}},methods:{onInit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e;case 3:n.next=8;break;case 5:n.prev=5,n.t0=n.catch(0),console.error(n.t0);case 8:return n.prev=8,t.showScanConfirmation="off"===t.camera,n.finish(8);case 11:case"end":return n.stop()}}),n,null,[[0,5,8,11]])})))()},onDecode:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.result=e,t.pause(),n.next=4,t.timeout(500);case 4:t.unpause();case 5:case"end":return n.stop()}}),n)})))()},unpause:function(){this.camera="auto"},pause:function(){this.camera="off"},timeout:function(e){return new Promise((function(t){window.setTimeout(t,e)}))}}},o=(n(349),n(41)),s=Object(o.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"decode-result"},[e._v("Last result: "),n("b",[e._v(e._s(e.result))])]),e._v(" "),n("qrcode-stream",{attrs:{camera:e.camera},on:{decode:e.onDecode,init:e.onInit}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showScanConfirmation,expression:"showScanConfirmation"}],staticClass:"scan-confirmation"},[n("img",{attrs:{src:e.$withBase("/checkmark.svg"),alt:"Checkmark",width:"128px"}})])])],1)}),[],!1,null,"0d579692",null);t.default=s.exports}}]);