(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56fc7d4c"],{"21bd":function(t,e,r){},"61f7":function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return a}));r("ac1f"),r("00b4"),r("d9e2"),r("a9e3"),r("5319");function i(t,e,r){""===e?r(new Error("请输入手机号码")):/^[0-9-]+$/.test(e)?r():r(new Error("手机号码格式不对"))}function n(t){if(t||0===t){if(t.length>0){var e=t.replace(/(^\s*)|(\s*$)/g,"");return e||"--"}return t}return"--"}function a(t){if(!t)return"";var e=new Date(t),r=e.getFullYear(),i=e.getMonth()+1,n=e.getDate(),a=e.getHours(),s=e.getMinutes(),l=e.getSeconds();return r+"-"+o(i)+"-"+o(n)+"\n"+o(a)+":"+o(s)+":"+o(l)}function o(t){return t<10?"0"+t:t}},"658f5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=5)}([function(t,e,r){t.exports=r(6)},function(t,e){function r(t,e,r,i,n,a,o){try{var s=t[a](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}t.exports=function(t){return function(){var e=this,i=arguments;return new Promise((function(n,a){var o=t.apply(e,i);function s(t){r(o,n,a,s,l,"next",t)}function l(t){r(o,n,a,s,l,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return a}));var i=r(4),n=r.n(i);function a(){return n()('!function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=0)}([function(t,e){!function(){var t,e,i,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function o(o,s,n,a){var h,l,u,p,f,c,y=Math.max(2,a),d=new Uint8Array(256),w=new Int32Array(5003),g=new Int32Array(5003),b=0,x=0,v=!1;function P(t,e){d[l++]=t,l>=254&&S(e)}function m(t){B(5003),x=f+2,v=!0,F(f,t)}function B(t){for(var e=0;e0&&(t.writeByte(l),t.writeBytes(d,0,l),l=0)}function T(t){return(1<0?h|=t<=8;)P(255&h,e),h>>=8,b-=8;if((x>u||v)&&(v?(u=T(i=p),v=!1):(++i,u=12==i?4096:T(i))),t==c){for(;b>0;)P(255&h,e),h>>=8,b-=8;S(e)}}this.encode=function(r){r.writeByte(y),t=o*s,e=0,function(t,e){var r,o,s,n,a,h;for(v=!1,u=T(i=p=t),c=(f=1<=0){a=5003-s,0===s&&(a=1);do{if((s-=a)<0&&(s+=5003),w[s]===r){n=g[s];continue t}}while(w[s]>=0)}F(n,e),n=o,x<4096?(g[s]=x++,w[s]=r):m(e)}else n=g[s];F(n,e),F(c,e)}(y+1,r),r.writeByte(0)}}var s;function n(t,e){var i,r,o,s,n;function a(t,e,r,o,s){i[e][0]-=t*(i[e][0]-r)/1024,i[e][1]-=t*(i[e][1]-o)/1024,i[e][2]-=t*(i[e][2]-s)/1024}function h(t,e,r,o,s){for(var a,h,l=Math.abs(e-t),u=Math.min(e+t,256),p=e+1,f=e-1,c=1;pl;)h=n[c++],pl&&((a=i[f--])[0]-=h*(a[0]-r)/(1<<18),a[1]-=h*(a[1]-o)/(1<<18),a[2]-=h*(a[2]-s)/(1<<18))}function l(t,e,r){var n,a,h,l,u,p=~(1<<31),f=p,c=-1,y=c;for(n=0;n<256;n++)a=i[n],(h=Math.abs(a[0]-t)+Math.abs(a[1]-e)+Math.abs(a[2]-r))>12))>10,s[n]-=u,o[n]+=u<<10;return s[c]+=64,o[c]-=65536,y}this.buildColormap=function(){!function(){var t,e;for(i=[],r=new Int32Array(256),o=new Int32Array(256),s=new Int32Array(256),n=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,i[t]=new Float64Array([e,e,e,0]),s[t]=256,o[t]=0}(),function(){var i,r,o,s,u,p,f=t.length,c=30+(e-1)/3,y=f/(3*e),d=~~(y/100),w=1024,g=2048,b=g>>6;for(b<=1&&(b=0),i=0;i=f&&(x-=f),0===d&&(d=1),++i%d==0)for(w-=w/c,(b=(g-=g/30)>>6)<=1&&(b=0),p=0;p>=4,i[t][1]>>=4,i[t][2]>>=4,i[t][3]=t}(),function(){var t,e,o,s,n,a,h=0,l=0;for(t=0;t<256;t++){for(n=t,a=(o=i[t])[1],e=t+1;e<256;e++)(s=i[e])[1]>1,e=h+1;e>1,e=h+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[i[r][3]]=r;for(var o=0,s=0;s<256;s++){var n=e[s];t[o++]=i[n][0],t[o++]=i[n][1],t[o++]=i[n][2]}return t},this.lookupRGB=function(t,e,o){for(var s,n,a,h=1e3,l=-1,u=r[e],p=u-1;u<256||p>=0;)u<256&&((a=(n=i[u])[1]-e)>=h?u=256:(u++,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=0&&((a=e-(n=i[p])[1])>=h?p=-1:(p--,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,i=0;i=0&&(this.dispose=t)},l.prototype.setRepeat=function(t){this.repeat=t},l.prototype.setTransparent=function(t){this.transparent=t},l.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},l.prototype.finish=function(){this.out.writeByte(59)},l.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},l.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},l.prototype.setGlobalPalette=function(t){this.globalPalette=t},l.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},l.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},l.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},l.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var i=0,r=0;r=0&&P+u=0&&m+l>16,(65280&t)>>8,255&t,e)},l.prototype.findClosestRGB=function(t,e,i,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,i);for(var o=0,s=16777216,n=this.colorTab.length,a=0,h=0;a=0&&(e=7&dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},l.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},l.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},l.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},l.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},l.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},l.prototype.stream=function(){return this.out}}()}]);\n',"Worker",void 0,void 0)}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";t.exports=function(t,e,r,i){var n=self||window;try{try{var a;try{a=new n.Blob([t])}catch(e){(a=new(n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||n.MSBlobBuilder)).append(t),a=a.getBlob()}var o=n.URL||n.webkitURL,s=o.createObjectURL(a),l=new n[e](s,r);return o.revokeObjectURL(s),l}catch(i){return new n[e]("data:application/javascript,".concat(encodeURIComponent(t)),r)}}catch(t){if(!i)throw Error("Inline worker is not supported");return new n[e](i,r)}}},function(t,e,r){t.exports=r(7)},function(t,e,r){var i=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var n=e&&e.prototype instanceof c?e:c,a=Object.create(n.prototype),o=new C(i||[]);return a._invoke=function(t,e,r){var i="suspendedStart";return function(n,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===n)throw a;return B()}for(r.method=n,r.arg=a;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=u(t,e,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}(t,r,o),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function c(){}function f(){}function d(){}var p={};p[n]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==e&&r.call(m,n)&&(p=m);var v=d.prototype=c.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;this._invoke=function(n,a){function o(){return new e((function(i,o){!function i(n,a,o,s){var l=u(t[n],t,a);if("throw"!==l.type){var h=l.arg,c=h.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(c).then((function(t){h.value=t,o(h)}),(function(t){return i("throw",t,o,s)}))}s(l.arg)}(n,a,i,o)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var n=i.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function k(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){for(;++i=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},function(t,e,r){"use strict";r.r(e);var i,n=r(1),a=r.n(n),o=r(0),s=r.n(o),l=new Uint8Array(16);function u(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(l)}for(var h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(t){return"string"==typeof t&&h.test(t)},f=[],d=0;d<256;++d)f.push((d+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},g=function(t,e,r){var i=(t=t||{}).random||(t.rng||u)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=i[n];return e}return p(i)};function m(t){return""===t?t:"true"===t||"1"==t}var v=function(t){if(t)return new Promise((function(e,r){if("data"==t.slice(0,4)){var i=new Image;return i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},void(i.src=t)}var n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){e(n)},n.onerror=function(){r("Image load error")},n.src=t}))},y=function(t,e){return new Promise((function(e,r){var i=new XMLHttpRequest;i.responseType="blob",i.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(i.response)},i.open("GET",t),i.send()}))},b=function(t,e,r,i,n,a,o,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):n&&(l=s?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var h=u.render;u.render=function(t,e){return l.call(e),h(t,e)}}else{var c=u.beforeCreate;u.beforeCreate=c?[].concat(c,l):[l]}return{exports:t,options:u}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"}},name:"vue-qr",data:function(){return{uuid:"",AwesomeQRCode:null}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.uuid=g(),this.main()},methods:{main:function(){var t=this;return a()(s.a.mark((function e(){var r,i,n,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=10;break}return e.next=4,y(t.gifBgSrc);case 4:return r=e.sent,e.next=7,v(t.logoSrc);case 7:return i=e.sent,t.render(void 0,i,r),e.abrupt("return");case 10:return e.next=12,v(t.bgSrc);case 12:return n=e.sent,e.next=15,v(t.logoSrc);case 15:a=e.sent,t.render(n,a);case 17:case"end":return e.stop()}}),e)})))()},render:function(t,e,i){var n=this;return a()(s.a.mark((function a(){var o;return s.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(o=n,!n.$isServer){a.next=3;break}return a.abrupt("return");case 3:n.AwesomeQRCode||(n.AwesomeQRCode=r(8).default),(new n.AwesomeQRCode).create({gifBackground:i,text:o.text,size:o.size,margin:o.margin,colorDark:o.colorDark,colorLight:o.colorLight,backgroundColor:o.backgroundColor,backgroundImage:t,backgroundDimming:o.backgroundDimming,logoImage:e,logoScale:o.logoScale,logoBackgroundColor:o.logoBackgroundColor,correctLevel:o.correctLevel,logoMargin:o.logoMargin,logoCornerRadius:o.logoCornerRadius,whiteMargin:m(o.whiteMargin),dotScale:o.dotScale,autoColor:m(o.autoColor),binarize:m(o.binarize),binarizeThreshold:o.binarizeThreshold,callback:function(t){o.callback&&o.callback(t,o.qid)},bindElement:o.bindElement?o.uuid:void 0});case 5:case"end":return a.stop()}}),a)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",this._b({staticStyle:{display:"inline-block"}},"img",{id:this.uuid},!1)):this._e()}),[],!1,null,null,null).exports;b.install=function(t){return t.component(b.name,b)};var w=b,_=[w];"undefined"!=typeof window&&window.Vue&&function(t){_.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=w},function(t,e,r){"use strict";function i(t){this.data=t,this.pos=0}r.r(e),i.prototype.readByte=function(){return this.data[this.pos++]},i.prototype.peekByte=function(){return this.data[this.pos]},i.prototype.readBytes=function(t){for(var e=new Array(t),r=0;r=0;r--)t.push(!!(e&1<=this.raw.frames.length)return null;var r=this.raw.frames[t];if(r.image){var i=r.image.descriptor.width*r.image.descriptor.height,n=function(t,e,r){var i,n,a,o,s,l,u,h,c,f,d,p,g,m,v,y,b=r,w=new Array(r),_=new Array(4096),x=new Array(4096),C=new Array(4097);for(s=1+(n=1<<(p=t)),i=n+2,u=-1,a=(1<<(o=p+1))-1,c=0;c>=o,h-=o,c>i||c==s)break;if(c==n){a=(1<<(o=p+1))-1,i=n+2,u=-1;continue}if(-1==u){C[m++]=x[c],u=c,g=c;continue}for(l=c,c==i&&(C[m++]=g,c=u);c>n;)C[m++]=x[c],c=_[c];g=255&x[c],C[m++]=g,i<4096&&(_[i]=u,x[i]=g,0==(++i&a)&&i<4096&&(o++,a+=i)),u=l}m--,w[y++]=C[m],f++}for(f=y;f0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},C.prototype.on=C.prototype.addListener,C.prototype.once=function(t,e){if(!k(e))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},C.prototype.removeListener=function(t,e){var r,i,n,a;if(!k(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=(r=this._events[t]).length,i=-1,r===e||k(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(B(r)){for(a=n;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){i=a;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},C.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(k(r=this._events[t]))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},C.prototype.listeners=function(t){return this._events&&this._events[t]?k(this._events[t])?[this._events[t]]:this._events[t].slice():[]},C.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(k(e))return 1;if(e)return e.length}return 0},C.listenerCount=function(t,e){return t.listenerCount(e)},b=navigator.userAgent.toLowerCase(),y=navigator.platform.toLowerCase(),v="ie"===(g=b.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(m={name:"version"===g[1]?g[3]:g[1],version:v||parseFloat("opera"===g[1]&&g[4]?g[4]:g[2]),platform:{name:b.match(/ip(?:ad|od|hone)/)?"ios":(b.match(/(?:webos|android)/)||y.match(/mac|win|linux/)||["other"])[0]}})[m.name]=!0,m[m.name+parseInt(m.version,10)]=!0,m.platform[m.platform.name]=!0;var D,S={}.hasOwnProperty,E=[].indexOf||function(t){for(var e=0,r=this.length;ee;0<=e?++t:--t)r.push(null);return r}.call(this),e=this.spawnWorkers(),!0===this.options.globalPalette)this.renderNextFrame();else for(t=0,r=e;0<=r?tr;0<=r?++t:--t)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},a.prototype.abort=function(){for(var t;null!=(t=this.activeWorkers.shift());)this.log("killing active worker"),t.terminate();return this.running=!1,this.emit("abort")},a.prototype.spawnWorkers=function(){var t,e,i,n;return t=Math.min(this.options.workers,this.frames.length),function(){i=[];for(var r=e=this.freeWorkers.length;e<=t?rt;e<=t?r++:r--)i.push(r);return i}.apply(this).forEach((n=this,function(t){var e;n.log("spawning worker "+t);var i=r(2);return(e=new i.default).onmessage=function(t){return n.activeWorkers.splice(n.activeWorkers.indexOf(e),1),n.freeWorkers.push(e),n.frameFinished(t.data)},n.freeWorkers.push(e)})),t},a.prototype.frameFinished=function(t){var e,r;if(this.log("frame "+t.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[t.index]=t,!0===this.options.globalPalette&&(this.options.globalPalette=t.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(e=1,r=this.freeWorkers.length;1<=r?er;1<=r?++e:--e)this.renderNextFrame();return E.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},a.prototype.finishRendering=function(){var t,e,r,i,n,a,o,s,l,u,h,c,f,d,p,g;for(s=0,n=0,l=(d=this.imageParts).length;n=this.frames.length))return t=this.frames[this.nextFrame++],r=this.freeWorkers.shift(),e=this.getTask(t),this.log("starting frame "+(e.index+1)+" of "+this.frames.length),this.activeWorkers.push(r),r.postMessage(e)},a.prototype.getContextData=function(t){return t.getImageData(0,0,this.options.width,this.options.height).data},a.prototype.getImageData=function(t){var e;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(e=this._canvas.getContext("2d")).setFill=this.options.background,e.fillRect(0,0,this.options.width,this.options.height),e.drawImage(t,0,0),this.getContextData(e)},a.prototype.getTask=function(t){var e,r;if(r={index:e=this.frames.indexOf(t),last:e===this.frames.length-1,delay:t.delay,transparent:t.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:"chrome"===m.name},null!=t.data)r.data=t.data;else if(null!=t.context)r.data=this.getContextData(t.context);else{if(null==t.image)throw new Error("Invalid frame");r.data=this.getImageData(t.image)}return r},a.prototype.log=function(){var t;if(t=1<=arguments.length?P.call(arguments,0):[],this.options.debug)return console.log.apply(console,t)},a}(C);function T(t){this.mode=R.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e65536?(i[0]=240|(1835008&n)>>>18,i[1]=128|(258048&n)>>>12,i[2]=128|(4032&n)>>>6,i[3]=128|63&n):n>2048?(i[0]=224|(61440&n)>>>12,i[1]=128|(4032&n)>>>6,i[2]=128|63&n):n>128?(i[0]=192|(1984&n)>>>6,i[1]=128|63&n):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function A(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}T.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=A.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+r][e+i]=0<=r&&r<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var i=H.getLostPoint(this);(0==r||t>i)&&(t=i,e=r)}return e},createMovieClip:function(t,e,r){var i=t.createEmptyMovieClip(e,r);this.make();for(var n=0;n>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(r=0;r<18;r++)i=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,i=H.getBCHTypeInfo(r),n=0;n<15;n++){var a=!t&&1==(i>>n&1);n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(n=0;n<15;n++)a=!t&&1==(i>>n&1),n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,i=this.moduleCount-1,n=7,a=0,o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(var s=0;s<2;s++)if(null==this.modules[i][o-s]){var l=!1;a>>n&1)),H.getMask(e,i,o-s)&&(l=!l),this.modules[i][o-s]=l,-1==--n&&(a++,n=7)}if((i+=r)<0||this.moduleCount<=i){i-=r,r=-r;break}}}},A.PAD0=236,A.PAD1=17,A.createData=function(t,e,r){for(var i=K.getRSBlocks(t,e),n=new X,a=0;a8*s)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+8*s+")");for(n.getLengthInBits()+4<=8*s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*s||(n.put(A.PAD0,8),n.getLengthInBits()>=8*s));)n.put(A.PAD1,8);return A.createBytes(n,i)},A.createBytes=function(t,e){for(var r=0,i=0,n=0,a=new Array(e.length),o=new Array(e.length),s=0;s=0?f.get(d):0}}var p=0;for(h=0;h=0;)e^=H.G15<=0;)e^=H.G18<>>=1;return e},getPatternPosition:function(t){return H.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case N:return(e+r)%2==0;case F:return e%2==0;case O:return r%3==0;case U:return(e+r)%3==0;case $:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case z:return e*r%2+e*r%3==0;case j:return(e*r%2+e*r%3)%2==0;case G:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new W([1],0),r=0;r5&&(r+=3+a-5)}for(i=0;i=256;)t-=255;return q.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Q=0;Q<8;Q++)q.EXP_TABLE[Q]=1<>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var J=function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function e(t,e){var r=this;if(r._fFail=e,r._fSuccess=t,null===r._bSupportDataURI){var i=document.createElement("img"),n=function(){r._bSupportDataURI=!1,r._fFail&&r._fFail.call(r)};return i.onabort=n,i.onerror=n,i.onload=function(){r._bSupportDataURI=!0,r._fSuccess&&r._fSuccess.call(r)},void(i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===r._bSupportDataURI&&r._fSuccess?r._fSuccess.call(r):!1===r._bSupportDataURI&&r._fFail&&r._fFail.call(r)}var r=function(t){this._bIsPainted=!1,this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.size,this._elCanvas.height=t.size,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._bSupportDataURI=null,this._callback=t.callback,this._bindElement=t.bindElement};return r.prototype.draw=function(t){var e=this._elImage,r=document.createElement("canvas"),i=r.getContext("2d"),n=this._htOption,a=t.getModuleCount(),o=n.size,s=n.margin;(s<0||2*s>=o)&&(s=0);var l=Math.ceil(s),u=o-2*s,h=n.whiteMargin,c=n.backgroundDimming,f=Math.ceil(u/a),d=f*a,p=d+2*l,g=void 0,m=void 0;r.width=p,r.height=p;var v=n.dotScale;if(e.style.display="none",this.clear(),v<=0||v>1)throw new Error("Scale should be in range (0, 1).");i.save(),i.translate(l,l);var y=document.createElement("canvas");y.width=p,y.height=p;var b=y.getContext("2d"),_=void 0;if(void 0!==n.gifBackground){var x=new w(n.gifBackground);if(!x.raw.hasImages)throw new Error("An invalid gif has been selected as the background.");if(g=x,m=x.decompressFrames(!0),n.autoColor){for(var C=0,k=0,B=0,L=0,D=0;D200||S[1]>200||S[2]>200||0===S[0]&&0===S[1]&&0===S[2]||(L++,C+=S[0],k+=S[1],B+=S[2])}C=~~(C/L),k=~~(k/L),B=~~(B/L),n.colorDark="rgb("+C+", "+k+", "+B+")"}}else if(void 0!==n.backgroundImage){if(n.autoColor){var E=function(t){var e,r,i,n,a={r:0,g:0,b:0},o=document.createElement("canvas"),s=o.getContext&&o.getContext("2d"),l=-4,u={r:0,g:0,b:0},h=0;if(!s)return a;i=o.height=t.naturalHeight||t.offsetHeight||t.height,r=o.width=t.naturalWidth||t.offsetWidth||t.width,s.drawImage(t,0,0);try{e=s.getImageData(0,0,r,i)}catch(t){return a}for(n=e.data.length;(l+=20)200||e.data[l+1]>200||e.data[l+2]>200||(++h,u.r+=e.data[l],u.g+=e.data[l+1],u.b+=e.data[l+2]);return u.r=~~(u.r/h),u.g=~~(u.g/h),u.b=~~(u.b/h),u}(n.backgroundImage);n.colorDark="rgb("+E.r+", "+E.g+", "+E.b+")"}n.maskedDots?((_=document.createElement("canvas")).width=p,_.height=p,_.getContext("2d").drawImage(n.backgroundImage,0,0,n.backgroundImage.width,n.backgroundImage.height,0,0,p,p),b.rect(0,0,p,p),b.fillStyle="#ffffff",b.fill()):(b.drawImage(n.backgroundImage,0,0,n.backgroundImage.width,n.backgroundImage.height,0,0,p,p),b.rect(0,0,p,p),b.fillStyle=c,b.fill())}else b.rect(0,0,p,p),b.fillStyle=n.backgroundColor,b.fill();n.binarize&&(n.colorDark="#000000",n.colorLight="#FFFFFF");for(var P=H.getPatternPosition(t.typeNumber),T=.5*(1-v),A=0;A=a-8)||R>=a-8&&A<8,F=6===A||6===R||N;for(D=0;D=P[D]-2&&A<=P[D]+2&&R>=P[D]-2&&R<=P[D]+2;var O=R*f+(F?0:T*f),U=A*f+(F?0:T*f);i.strokeStyle=M?n.colorDark:n.colorLight,i.lineWidth=.5,i.fillStyle=M?n.colorDark:n.colorLight||"rgba(255, 255, 255, 0.6)",0===P.length?F||Z(i,O,U,(F?1:v)*f,(F?1:v)*f,_,M):F||R=a-4-5&&A=a-4-5||Z(i,O,U,(F?1:v)*f,(F?1:v)*f,_,M)}var $=n.colorLight;i.fillStyle=$,i.fillRect(0,0,8*f,8*f),i.fillRect(0,(a-8)*f,8*f,8*f),i.fillRect((a-8)*f,0,8*f,8*f),i.fillRect(8*f,6*f,(a-8-8)*f,f),i.fillRect(6*f,8*f,f,(a-8-8)*f);var z=P[P.length-1];for(D=0;D=1)&&(Q=.2),W<0&&(W=0),K<0&&(K=0),i.restore(),i.translate(l,l);var X=d*Q,J=.5*(d-X),rt=J;i.fillStyle=n.logoBackgroundColor,i.save(),V(i,J-W,rt-W,X+2*W,X+2*W,K),i.clip(),i.fill(),i.restore(),i.save(),V(i,J,rt,X,X,K),i.clip(),i.drawImage(n.logoImage,J,rt,X,X),i.restore()}if(void 0===g){if(b.drawImage(r,0,0,p,p),i.drawImage(y,-l,-l,p,p),n.binarize){var it=i.getImageData(0,0,p,p),nt=128;for(parseInt(n.binarizeThreshold)>0&&parseInt(n.binarizeThreshold)<255&&(nt=parseInt(n.binarizeThreshold)),D=0;Dnt?(it.data[D]=255,it.data[D+1]=255,it.data[D+2]=255):(it.data[D]=0,it.data[D+1]=0,it.data[D+2]=0);i.putImageData(it,0,0)}var at=document.createElement("canvas"),ot=at.getContext("2d");if(at.width=o,at.height=o,ot.drawImage(r,0,0,o,o),this._elCanvas=at,this._bIsPainted=!0,void 0!==this._callback&&this._callback(this._elCanvas.toDataURL()),void 0!==this._bindElement)try{var st=document.getElementById(this._bindElement);if("IMG"===st.nodeName)st.src=this._elCanvas.toDataURL();else{var lt=st.style;lt["background-image"]="url("+this._elCanvas.toDataURL()+")",lt["background-size"]="contain",lt["background-repeat"]="no-repeat"}}catch(t){console.error(t)}}else{var ut,ht,ct,ft,dt=document.createElement("canvas"),pt=dt.getContext("2d");if(m.forEach((function(t){void 0===ut&&(ut=new I({workers:4,quality:10,width:o,height:o})),void 0===ht&&(ht=document.createElement("canvas"),ct=ht.getContext("2d"),ht.width=t.dims.width,ht.height=t.dims.height,ct.rect(0,0,ht.width,ht.height),ct.fillStyle="#ffffff",ct.fill()),ft&&t.dims.width===dt.width&&t.dims.height===dt.height||(dt.width=t.dims.width,dt.height=t.dims.height,ft=pt.createImageData(t.dims.width,t.dims.height)),ft.data.set(t.patch),pt.putImageData(ft,0,0),ct.drawImage(dt,t.dims.left,t.dims.top);var e=document.createElement("canvas");e.width=p,e.height=p;var i=e.getContext("2d");i.drawImage(ht,0,0,p,p),i.drawImage(r,0,0,p,p);var n=document.createElement("canvas"),a=n.getContext("2d");n.width=o,n.height=o,a.drawImage(e,0,0,o,o),ut.addFrame(a,{copy:!0,delay:t.delay})})),void 0===ut)throw new Error("No frames.");var gt=this;ut.on("finished",(function(t){var e=new FileReader;e.onload=function(t){var e=t.target.result;if(gt._bIsPainted=!0,void 0!==gt._callback&>._callback(e),void 0!==gt._bindElement)try{var r=document.getElementById(gt._bindElement);if("IMG"===r.nodeName)r.src=e;else{var i=r.style;i["background-image"]="url("+e+")",i["background-size"]="contain",i["background-repeat"]="no-repeat"}}catch(t){console.error(t)}},e.readAsDataURL(t)})),ut.render()}},r.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},r}();function V(t,e,r,i,n,a){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,a),t.arcTo(e+i,r+n,e,r+n,a),t.arcTo(e,r+n,e,r,a),t.arcTo(e,r,e+i,r,a),t.closePath()}function Y(t,e,r){return.3*t+.59*r+.11*r}function Z(t,e,r,i,n,a,o){if(void 0===a)t.fillRect(e,r,i,n);else{t.drawImage(a,e,r,i,n,e,r,i,n);var s=t.fillStyle;t.fillStyle=o?"rgba(0, 0, 0, .5)":"rgba(255, 255, 255, .7)",t.fillRect(e,r,i,n),t.fillStyle=s}}function tt(t,e,r,i,n){t.clearRect((e-2)*i,(r-2)*n,5*i,5*n),t.fillRect((e-2)*i,(r-2)*n,5*i,5*n)}function et(t,e,r,i,n){t.fillRect((e-2)*i,(r-2)*n,i,4*n),t.fillRect((e+2)*i,(r-2+1)*n,i,4*n),t.fillRect((e-2+1)*i,(r-2)*n,4*i,n),t.fillRect((e-2)*i,(r+2)*n,4*i,n),t.fillRect(e*i,r*n,i,n)}(D=function(){}).prototype.create=function(t){if(this._htOption={size:800,margin:20,typeNumber:4,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",logoBackgroundColor:"#ffffff",correctLevel:M.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:6,logoCornerRadius:8,whiteMargin:!0,dotScale:.35,maskedDots:!1,autoColor:!0,binarize:!1,binarizeThreshold:128,gifBackground:void 0,callback:void 0,bindElement:void 0,backgroundColor:"#ffffff"},"string"==typeof t&&(t={text:t}),t)for(var e in t)this._htOption[e]=t[e];this._oQRCode=null,this._oDrawing=new J(this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},D.prototype.makeCode=function(t){this._oQRCode=new A(-1,this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._oDrawing.draw(this._oQRCode),this.makeImage()},D.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&this._oDrawing.makeImage()},D.prototype.clear=function(){this._oDrawing.clear()},D.CorrectLevel=M,e.default=D}])}))},7851:function(t,e,r){},8916:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=r("b775");function n(t){return Object(i["a"])({url:"user-service/log/getLogList",method:"get",params:t})}},c24f:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"d",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return l}));var i=r("b775");function n(t){return Object(i["a"])({url:"user-service/user/getUserList",method:"get",params:t})}function a(t){return Object(i["a"])({url:"user-service/user/getUserByUserName",method:"get",params:t})}function o(t){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/user/saveSysuser",method:"post",data:t})}function s(t){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/user/updateSysuser",method:"post",data:t})}function l(t){var e={userIds:t};return Object(i["a"])({url:"user-service/user/removeSysuser",method:"get",params:e})}},d34c:function(t,e,r){},dbdb:function(t,e,r){"use strict";r("7851")},dbec:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"decorate"}),r("el-container",{staticClass:"logBox"},[r("el-header",{attrs:{height:"160px"}},[r("svg-icon",{attrs:{"icon-class":"touxiang"}}),r("span",{staticClass:"user"},[t._v(t._s(t.listData.userName))]),r("span",[t._v("|")]),r("span",[t._v(t._s(t.listData.nickName))])],1),r("el-container",[r("el-aside",{attrs:{width:"488px"}},[r("div",{staticClass:"title"},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("cabinet.basicInfo")))])]),r("div",{staticClass:"info"},[r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.userName")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.userName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.nickName")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.nickName))]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("nickName")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.phone")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.phone))]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("phone")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("login.password")))]),r("div",{staticClass:"value"},[t._v("******")]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("pwd")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.permissionLevel")))]),t._l(t.permissionList,(function(e,i){return r("div",{key:i,attrs:{label:e.label,value:e.value}},[e.value==t.listData.permissionLevel?r("div",{staticClass:"value"},[t._v(" "+t._s(e.label)+" ")]):t._e()])}))],2),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.userType")))]),r("div",{staticClass:"value"},[t._v(" "+t._s(0==t.listData.userType?t.$t("user.admin"):t.$t("user.superAdmin"))+" ")])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.APP")))]),r("div",{staticClass:"value"}),r("el-popover",{attrs:{placement:"right",width:"175"}},[r("div",{staticClass:"qrname"},[t._v("Android")]),r("VueQr",{ref:"Qrcode",attrs:{text:"http://"+t.hostname+":8701/trajectory-service/uploadFile/HJ-IEMS.apk",size:150,margin:5,logoScale:.22,qid:"testQrId"}}),r("i",{staticClass:"iconfont icon-chakan",staticStyle:{float:"none"},attrs:{slot:"reference"},slot:"reference"})],1)],1)]),r("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("personal.tasks")))])]),r("div",{staticClass:"info"},[r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.completedOrder")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.orderFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.unfinishedOrders")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.orderUnFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.completedPatrol")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.inspectionFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.unfinishedPatrol")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.inspectionUnFinish))])]),r("div",{staticClass:"cir"},[r("PerCircular",{attrs:{width:"5",color:t.color,fontSize:t.fontSize,percentNum:t.percentNum,text:t.$t("personal.rate")}})],1)])]),r("el-main",[r("div",{staticClass:"title"},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("personal.log")))])]),r("div",{staticClass:"table-container"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,fit:"","max-height":"460","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[r("el-table-column",{attrs:{property:"operation",align:"left",label:t.$t("table.operate")}}),r("el-table-column",{attrs:{label:t.$t("personal.time"),align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("switchTimeFormat")(e.row.createDate)))])]}}])})],1)],1)]),r("div",{staticClass:"Technology",on:{click:t.goHJnet}},[t._v(" Technology Provider: "),r("i",{staticClass:"iconfont icon-group"}),t._v(" HJ-Group & "),r("i",{staticClass:"iconfont icon-huijuewangluologo"}),t._v(" HJ-Network ")])],1)],1),r("el-dialog",{staticClass:"logDialog",attrs:{"close-on-click-modal":!1,title:t.$t("table.update"),visible:t.addDialog},on:{"update:visible":function(e){t.addDialog=e}}},[r("el-form",{ref:"form",staticStyle:{"margin-top":"20px"},attrs:{rules:t.rules,"status-icon":"",model:t.form,inline:"","label-width":"200px"}},["phone"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.phone"),prop:"phone"}},[r("el-input",{attrs:{placeholder:t.$t("pEnter")+t.$t("user.phone"),maxlength:"20"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1):t._e(),"nickName"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.nickName"),prop:"nickName"}},[r("el-input",{attrs:{placeholder:t.$t("pEnter")+t.$t("user.nickName"),maxlength:"20"},model:{value:t.form.nickName,callback:function(e){t.$set(t.form,"nickName",e)},expression:"form.nickName"}})],1):t._e(),"pwd"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.password"),prop:"password"}},[r("el-input",{attrs:{type:"password",minlength:"6",maxlength:"8",placeholder:t.$t("validate.pswLimit")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1):t._e(),"pwd"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.pswAgain"),prop:"pswAgain"}},[r("el-input",{attrs:{type:"password",minlength:"6",maxlength:"8",placeholder:t.$t("validate.pswConfirm")},model:{value:t.pswAgain,callback:function(e){t.pswAgain=e},expression:"pswAgain"}})],1):t._e()],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("span",{staticClass:"btn-item long",on:{click:function(e){t.addDialog=!1}}},[t._v(t._s(t.$t("btn.cancel")))]),r("span",{staticClass:"btn-item long",on:{click:function(e){return t.updateData()}}},[t._v(t._s(t.$t("btn.define")))])])],1)],1)},n=[],a=(r("d9e2"),r("c24f")),o=r("b775");function s(t){return Object(o["a"])({url:"trajectory-service/taskStatistics/getPersonTaskInfo",method:"get",params:t})}var l=r("8916"),u=r("658f5"),h=r.n(u),c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"percentloop"},[r("div",{staticClass:"circle-left",style:{backgroundColor:t.color}},[r("div",{ref:"leftcontent"})]),r("div",{staticClass:"circle-right",style:{backgroundColor:t.color}},[r("div",{ref:"rightcontent"})]),r("div",{staticClass:"number",style:{top:t.width+"px",bottom:t.width+"px",left:t.width+"px",right:t.width+"px"}},[r("div",{style:{color:t.color,fontSize:t.fontSize}},[t._v(" "+t._s(t.percent)+"% ")]),r("div",[t._v(t._s(t.text))])])])},f=[],d=(r("a9e3"),{props:{percentNum:{type:[String,Number],default:0},fontSize:{type:String,default:"18px"},speed:{type:[String,Number],default:1},width:{type:[String,Number],default:5},color:{type:String,default:""},text:{type:String,default:"同比"}},data:function(){return{percent:0,initDeg:0,timeId:null,animationing:!1}},beforeDestroy:function(){this.timeId&&clearInterval(this.timeId)},methods:{transformToDeg:function(t){var e=0;return e=isNaN(t)?0:t>=100?360:t<=-100?-360:parseInt(360*t/100),e},transformToPercent:function(t){var e=0;return e=t>=360?100:t<=-360?-100:parseInt(100*t/360),e},rotateLeft:function(t){t<0&&(t=-t),this.$refs.leftcontent.style.transform="rotate("+(t-180)+"deg)"},rotateRight:function(t){t<0&&(t=-t),this.$refs.rightcontent.style.transform="rotate("+t+"deg)"},goRotate:function(t){var e=this;this.animationing=!0,this.timeId=setInterval((function(){t>e.initDeg?(e.initDeg+=Number(e.speed),Math.abs(e.initDeg)>=180?(e.rotateLeft(e.initDeg),e.rotateRight(180)):e.rotateRight(e.initDeg)):(e.initDeg-=Number(e.speed),Math.abs(e.initDeg)>=180?e.rotateLeft(e.initDeg):(e.rotateLeft(180),e.rotateRight(e.initDeg))),e.percent=e.transformToPercent(e.initDeg);var r=Number(t)-e.initDeg;Math.abs(r)180?e.rotateLeft(t):e.rotateRight(t),e.animationFinished())}),10)},animationFinished:function(){this.percent=isNaN(this.percentNum)?0:this.percentNum,this.animationing=!1,clearInterval(this.timeId)}},created:function(){this.goRotate(this.transformToDeg(this.percentNum))},watch:{percentNum:function(t){this.animationing||this.goRotate(this.transformToDeg(t))}}}),p=d,g=(r("f8b8"),r("2877")),m=Object(g["a"])(p,c,f,!1,null,"0972685a",null),v=m.exports,y=r("61f7"),b={components:{PerCircular:v,VueQr:h.a},filters:{switchTimeFormat:function(t){var e=Object(y["b"])(t);return e}},data:function(){var t=this,e=function(e,r,i){""===r?i(new Error(t.$t("pEnter")+t.$t("user.nickName"))):i()},r=function(e,r,i){""===r||t.form.password.length<6||t.form.password.length>8?i(new Error(t.$t("validate.pswLimit"))):i()},i=function(e,r,i){null===t.pswAgain?i(new Error(t.$t("validate.pswConfirm"))):t.pswAgain!==t.form.password?i(new Error(t.$t("validate.pswError"))):i()},n=function(e,r,i){""===r?i(new Error(t.$t("validate.phone"))):i()};return{hostname:window.location.hostname,type:"",color:"#01FFE9",fontSize:"16px",list:[],TaskList:{inspectionFinish:null,inspectionUnFinish:null,orderFinish:null,orderUnFinish:null,totalTask:null},percentNum:null,listData:{userName:null,userType:null,nickName:null,phone:null,permissionLevel:null},form:{userId:null,userName:null,nickName:null,phone:null,password:null},dialogType:"",password:null,pswAgain:null,listLoading:!1,addDialog:!1,permissionList:[{value:1,label:this.$t("type.read")},{value:2,label:this.$t("type.write")},{value:3,label:this.$t("type.dispose")}],rules:{nickName:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,validator:r,trigger:"blur"}],pswAgain:[{required:!0,validator:i,trigger:"blur"}],phone:[{required:!0,validator:n,trigger:"blur"}]}}},created:function(){this.getList(),this.getUser(),this.getPersonTaskInfo()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(l["a"])().then((function(e){t.listLoading=!1,t.list=e.data.list}))},goHJnet:function(){window.open("https://www.hj-net.com/","hj-net")},getUser:function(){var t=this;Object(a["d"])({userName:this.$store.state.user.userName}).then((function(e){t.listData=e.data,t.form.userId=e.data.userId,t.form.userName=e.data.userName}))},getPersonTaskInfo:function(){var t=this;s().then((function(e){t.TaskList=e.data,t.percentNum=(e.data.inspectionFinish+e.data.orderFinish)/e.data.totalTask}))},handleUpdate:function(t){this.dialogType=t,this.form.nickName=this.listData.nickName,this.form.phone=this.listData.phone,"pwd"==t&&(this.form.password=null,this.pswAgain=""),this.type="pwd",this.addDialog=!0},updateData:function(){var t=this;this.$refs.form.validate((function(e){e&&Object(a["c"])(t.form).then((function(e){200==e.status&&(t.addDialog=!1,t.$notify({title:t.$t("title.success"),message:t.$t("title.updateSuccess"),type:"success",duration:3e3}),t.getUser())}))}))}}},w=b,_=(r("dbdb"),r("dccf"),Object(g["a"])(w,i,n,!1,null,"1aef4aa1",null));e["default"]=_.exports},dccf:function(t,e,r){"use strict";r("d34c")},f8b8:function(t,e,r){"use strict";r("21bd")}}]); //# sourceMappingURL=chunk-56fc7d4c.55dd964c.js.map