{"version":3,"file":"electronicSignature.obs.js","sources":["../../../Framework/Controls/electronicSignature.obs"],"sourcesContent":["\n\n\n\n\n\n"],"names":["signaturePadPromise","loadJavaScriptAsync","window","SignaturePad","store","useStore","signatureData","ref","_props$modelValue$sig","_props$modelValue","props","modelValue","signedByName","_props$modelValue$sig2","_props$modelValue2","signedByEmail","_ref2","_props$modelValue$sig3","_props$modelValue3","_store$state$currentP","state","currentPerson","email","signatureCanvas","signatureCanvasContainer","isSigning","signaturePad","signedByEmailLabel","computed","concat","documentTerm","toLowerCase","resizeSignatureCanvas","_signatureCanvas$valu","value","containerWidth","clientWidth","ratio","width","height","getContext","scale","clear","onClearClick","_signaturePad","onSubmit","_store$state$currentP2","fullName","newValue","emit","watch","_props$modelValue4","_props$modelValue5","_props$modelValue6","_props$modelValue$sig4","_props$modelValue7","_props$modelValue$sig5","_props$modelValue8","_props$modelValue$sig6","_props$modelValue9","isChanged","updateRefValue","_asyncToGenerator","backgroundColor","penColor","addEventListener","_signaturePad$toDataU","_signaturePad2","toDataURL","_signaturePad3","off"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgFI,IAAMA,mBAAmB,GAAGC,mBAAmB,CAAC,iDAAiD,EAAE,MAAM,CAAC,CAACC,MAAM,CAACC,YAAY,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;UAsC/H,IAAMC,KAAK,GAAGC,QAAQ,EAAE,CAAA;UAExB,IAAMC,aAAa,GAAGC,GAAG,CAAA,CAAAC,qBAAA,GAAAC,CAAAA,iBAAA,GAACC,KAAK,CAACC,UAAU,cAAAF,iBAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAhBA,iBAAA,CAAkBH,aAAa,MAAA,IAAA,IAAAE,qBAAA,KAAAA,KAAAA,CAAAA,GAAAA,qBAAA,GAAI,EAAE,C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