var VueSignaturePad=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),a=n(e);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:h[0],e=arguments.length>1?arguments[1]:void 0,n=this.signaturePad,r={isEmpty:!1,data:void 0};if(!l(t)){var a=h.join(", ");throw new Error("The Image type is incorrect! We are support ".concat(a," types."))}return n.isEmpty()?o(o({},r),{},{isEmpty:!0}):(this.signatureData=n.toDataURL(t,e),o(o({},r),{},{data:this.signatureData}))},undoSignature:function(){var t=this.signaturePad,e=t.toData();if(e)return t.fromData(e.slice(0,-1))},mergeImageAndSignature:function(t){return this.signatureData=t,a.default([].concat(c(this.images),c(this.cacheImages),[this.signatureData]))},addImages:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.cacheImages=[].concat(c(this.cacheImages),c(t)),a.default([].concat(c(this.images),c(this.cacheImages),[this.signatureData]))},fromDataURL:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this.signaturePad.fromDataURL(t,e,n)},fromData:function(t){return this.signaturePad.fromData(t)},toData:function(){return this.signaturePad.toData()},lockSignaturePad:function(){return this.signaturePad.off()},openSignaturePad:function(){return this.signaturePad.on()},isEmpty:function(){return this.signaturePad.isEmpty()},getPropImagesAndCacheImages:function(){return this.propsImagesAndCustomImages},clearCacheImages:function(){return this.cacheImages=[],this.cacheImages},clearSignature:function(){return this.signaturePad.clear()}},render:function(t){var e=this.width,n=this.height;return t("div",{style:o({width:e,height:n},this.customStyle)},[t("canvas",{style:{width:e,height:n},ref:"signaturePadCanvas"})])}},undefined,undefined,undefined,!1,void 0,void 0,void 0),b=Object.freeze({__proto__:null,VueSignaturePad:v}),A=function(t){Object.entries(b).forEach((function(e){var n=u(e,2),r=n[0],a=n[1];t.component(r,a)}))},P=Object.freeze({__proto__:null,default:A,VueSignaturePad:v});return Object.entries(P).forEach((function(t){var e=u(t,2),n=e[0],r=e[1];"default"!==n&&(A[n]=r)})),A}(SignaturePad,mergeImages);