(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-045b6979"],{"9cca":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ibps-signature-outer"},[!t.disabled||t.showPlaceholder?a("div",{staticClass:"ibps-signature-header"},[t.placeholder?a("div",{staticClass:"ibps-signature-label"},[t._v(t._s(t.placeholder))]):t._e(),t.disabled?t._e():a("div",{staticClass:"ibps-signature-toolbar"},[a("a",{attrs:{href:"javascript:void(0);","data-toggle":"signature-clear"},on:{click:t.onClear}},[t._v(t._s(t.$t("business.platform.form.formbuilder.clear")))])])]):t._e(),a("signature",{key:t.key,ref:"signature",attrs:{"sig-options":t.sigOptions,width:t.width,height:t.height,disabled:t.disabled},on:{input:t.onInput,change:t.onChange},model:{value:t.data,callback:function(e){t.data=e},expression:"data"}})],1)},i=[],s=(a("a9e3"),a("86c2")),r={components:{Signature:s["default"]},props:{showPlaceholder:{type:Boolean,default:!1},value:{type:String},sigOptions:{type:Object,default:function(){return{backgroundColor:"rgb(255,255,255)",penColor:"rgb(0, 0, 0)"}}},placeholder:{type:String,default:function(){return this.$t("business.platform.form.formrender.dynamic-form.components.signature.index.here-input-your-sign")}},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"150px"},disabled:{type:Boolean,default:!1}},data:function(){return{key:0,data:this.transformData(this.value)}},watch:{value:{handler:function(t,e){this.data=this.transformData(t)},immediate:!0},data:{handler:function(t){this.onInput(t)},deep:!0}},mounted:function(){this.key++},beforeDestroy:function(){this.key=0,this.data=null},methods:{onInput:function(t){this.$emit("input",this.transformData(t))},onChange:function(t){this.$emit("change",this.transformData(t))},transformData:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.$utils.isEmpty(t)?"":e?t.indexOf("data:")>-1?t:"data:"+t:t.indexOf("data:")>-1?t.substring(5):t},onClear:function(){var t=this;this.$refs.signature.clear(),this.$nextTick((function(){t.onInput(""),t.onChange("")}))}}},o=r,u=(a("d6e5"),a("2877")),d=Object(u["a"])(o,n,i,!1,null,"f0b55d26",null);e["default"]=d.exports},a616:function(t,e,a){},d6e5:function(t,e,a){"use strict";a("a616")}}]);