(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/jp-verification-literalness/jp-verification-literalness"],{"08d3":function(t,e,n){"use strict";n.r(e);var i=n("5748"),r=n("ba5f");for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a,d=n("f0c5"),s=Object(d["a"])(r["default"],i["b"],i["c"],!1,null,"444677d0",null,!1,i["a"],a);e["default"]=s.exports},5748:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},o=[]},ba5f:function(t,e,n){"use strict";n.r(e);var i=n("f9bb"),r=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},f9bb:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"jp-verification-literalness",props:{securityCode:{type:String,default:""},codeLength:{type:Number,default:4},contentWidth:{type:Number,default:120},contentHeight:{type:Number,default:48},lineLength:{type:Number,default:8},backgroundColor:{type:String,default:"rgb(238,226,224)"},lineColorList:{type:Array,default:function(){return["rgba(238,0,0,.5)","rgba(0, 170, 255,.5)","rgba(0, 170, 0,.5)","rgba(0, 0, 0,.5)","rgba(153, 146, 255,.5)"]}},colorList:{type:Array,default:function(){return["rgb(238,0,0)","rgb(0, 170, 255)","rgb(0, 170, 0)","rgb(0, 0, 0)","rgb(153, 146, 255)"]}}},computed:{canvasId:function(){return"lime-signature".concat(this._uid,"_1")}},data:function(){return{identifyCode:""}},watch:{securityCode:{immediate:!0,deep:!0,handler:function(){var t=this;this.$nextTick((function(){t.drawPic()}))}}},methods:{verification:function(t){return this.identifyCode==t},randomNum:function(t,e){return Math.floor(Math.random()*(e-t)+t)},getcheckCode:function(){for(var t="",e=this.codeLength,n=[1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],i=0;i<e;i++){var r=Math.floor(34*Math.random());t+=n[r]}this.identifyCode=t},drawTap:function(){this.securityCode?this.$emit("getCode"):this.drawPic()},drawPic:function(){this.securityCode?this.identifyCode=this.securityCode:this.getcheckCode();var e=t.createCanvasContext(this.canvasId,this);e.setTextBaseline("bottom"),e.setFillStyle(this.backgroundColor),e.fillRect(0,0,this.contentWidth,this.contentHeight);for(var n=0;n<this.identifyCode.length;n++)this.drawText(e,this.identifyCode[n],n);this.drawLine(e),e.draw()},drawText:function(t,e,n){var i=Math.floor(Math.random()*this.colorList.length);t.setFillStyle(this.colorList[i]);var r=Math.trunc(this.contentWidth/this.identifyCode.length);t.setFontSize(this.randomNum(r,r));var o=n*(this.contentWidth/(this.identifyCode.length+1))+Math.trunc(r/2),a=this.randomNum(r,this.contentHeight-5),d=this.randomNum(-10,10);t.translate(o,a),t.rotate(d*Math.PI/180),t.fillText(e,0,0),t.rotate(-d*Math.PI/180),t.translate(-o,-a)},drawLine:function(t){for(var e=0;e<this.lineLength;e++){var n=Math.floor(Math.random()*this.lineColorList.length);t.setStrokeStyle(this.lineColorList[n]),t.beginPath();var i=this.randomNum(0,this.contentWidth),r=this.randomNum(0,this.contentHeight),o=this.randomNum(0,this.contentWidth),a=this.randomNum(0,this.contentHeight);t.moveTo(i,r),t.lineTo(o,a),t.stroke()}}},mounted:function(){}}}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/jp-verification-literalness/jp-verification-literalness-create-component',
    {
        'components/jp-verification-literalness/jp-verification-literalness-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("08d3"))
        })
    },
    [['components/jp-verification-literalness/jp-verification-literalness-create-component']]
]);
