@formio/esignature 1.0.0-rc.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esignature.js CHANGED
@@ -1 +1 @@
1
- !function(_0xd11631,_0x3dcf4a){'object'==typeof exports&&'object'==typeof module?module['exports']=_0x3dcf4a():'function'==typeof define&&define['amd']?define([],_0x3dcf4a):'object'==typeof exports?exports['esignature']=_0x3dcf4a():_0xd11631['esignature']=_0x3dcf4a();}(self,function(){return(function(){var _0x342b49={0x295:function(_0x21a8c8,_0x49044a,_0x285920){'use strict';Object['defineProperty'](_0x49044a,'__esModule',{'value':!0x0});const _0x272246=_0x285920(0x44),_0x14a9df=_0x272246['Components']['components']['component'],_0x43bb5f=_0x272246['Utils']['_'],_0x5edf9f=_0x14a9df['prototype']['init'];_0x14a9df['prototype']['init']=function(){var _0x3bd7d3,_0x349b8f,_0x4a99a7;this['builderMode']||(null===(_0x3bd7d3=this['options'])||void 0x0===_0x3bd7d3?void 0x0:_0x3bd7d3['building'])||(null===(_0x349b8f=this['options'])||void 0x0===_0x349b8f?void 0x0:_0x349b8f['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x4a99a7=this['options'])||void 0x0===_0x4a99a7?void 0x0:_0x4a99a7['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x5edf9f['call'](this);},_0x14a9df['prototype']['getEsignConfig']=function(){const _0x4fc309=this['esign']['signatures']||[];return _0x43bb5f['find'](_0x4fc309,_0x3d86e3=>_0x3d86e3['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x14a9df['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x151c82;return(null===(_0x151c82=this['root'])||void 0x0===_0x151c82?void 0x0:_0x151c82['esign'])||{};}}),Object['defineProperty'](_0x14a9df['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x43bb5f['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x14a9df['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x43bb5f['replace'](this['path'],this['_parentPath'],'');}}),_0x14a9df['prototype']['attachESignTooltip']=function(_0x4efd16){(_0x4efd16=_0x4efd16||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x4efd16,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x43bb5f['map'](this['refs']['esignTooltip']||[],_0x3647b7=>this['createTooltip'](_0x3647b7,{'theme':'formioEsign'}))));};const _0x34ea54=_0x14a9df['prototype']['attach'];_0x14a9df['prototype']['attach']=function(_0x7f6d2c){const _0x40a047=_0x34ea54['call'](this,_0x7f6d2c);return this['attachESignTooltip'](_0x7f6d2c),this['attachESignatureValidation'](),_0x40a047;},_0x14a9df['prototype']['setESignature']=function(_0x23f53b,_0x18263d){var _0x1c22e7;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x23f53b&&_0x18263d['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x2e59ce=!_0x43bb5f['isEqual'](this['eSignature'],_0x23f53b);this['eSignature']=_0x23f53b,this['attachESignatureValidation'](),_0x2e59ce&&(this['eSignature']&&!0x0!==(null===(_0x1c22e7=this['eSignature'])||void 0x0===_0x1c22e7?void 0x0:_0x1c22e7['valid'])&&this['resetValue'](),this['redraw']());},_0x14a9df['prototype']['attachESignatureValidation']=function(){var _0x59bc9f;!_0x43bb5f['isEmpty'](this['esignConfig'])&&(null===(_0x59bc9f=this['eSignature'])||void 0x0===_0x59bc9f?void 0x0:_0x59bc9f['valid'])&&this['on']('signedValueChanged',_0x573208=>{var _0x5bcb03;if(!(null===(_0x5bcb03=this['eSignature'])||void 0x0===_0x5bcb03?void 0x0:_0x5bcb03['valid'])||!_0x573208)return;const {valuePath:_0x553983,compPath:_0x535b30,parent:_0x3627ac,customProps:_0x55d1cf}=_0x573208;_0x55d1cf&&this['invalidateESignature'](),_0x553983===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x535b30,_0x3627ac)&&this['invalidateESignature']();});},_0x14a9df['prototype']['invalidateESignature']=function(_0x39b8df){this['eSignature']['valid']='The\x20data\x20has\x20changed',_0x39b8df||this['resetValue'](),this['redraw']();},_0x14a9df['prototype']['isESignatureDataPath']=function(_0x53ded5,_0x53474e){if(!_0x53ded5)return!0x1;const {signAll:_0x94ce7d,signedData:_0x5c53bc=[]}=this['esignConfig']||{};return _0x94ce7d||_0x43bb5f['some'](_0x5c53bc,_0x1bbc48=>_0x53474e&&_0x43bb5f['startsWith'](_0x1bbc48,_0x53ded5+'.')||_0x1bbc48===_0x53ded5||_0x43bb5f['startsWith'](_0x53ded5,_0x1bbc48+'.'));},_0x14a9df['prototype']['formatEsignTooltip']=function(_0x3d2c3f=''){const _0x5137ce=_0x3d2c3f['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x5137ce);},_0x14a9df['prototype']['renderESignature']=function(_0x195360){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x195360,'eSignStamp':this['renderEsignStamp']()}):_0x195360;};const _0x3c156e=_0x14a9df['prototype']['render'];_0x14a9df['prototype']['render']=function(_0x2774cc='Unknown\x20component:\x20'+this['component']['type'],_0x2eef4e=!0x1){return _0x2774cc=this['renderESignature'](_0x2774cc),_0x3c156e['call'](this,_0x2774cc,_0x2eef4e);},_0x14a9df['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x2a6099}=this['esign'],_0x5bab2b={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x328ac7=_0x2a6099?this['renderString'](_0x2a6099,_0x5bab2b):this['renderTemplate']('esignTooltip',_0x5bab2b);return this['formatEsignTooltip'](_0x328ac7);};const _0x2885f=_0x14a9df['prototype']['renderModalPreview'];_0x14a9df['prototype']['renderModalPreview']=function(_0x451723){return this['renderESignature'](_0x2885f['call'](this,_0x451723));},_0x14a9df['prototype']['getInvalidESigntureMessage']=function(_0x123b02){if(!0x0===this['eSignature']['valid'])return'';if(_0x123b02)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']}):'';const _0x32f16a=this['t']('Invalid\x20eSignature.');return'pdf'===this['options']['display']?_0x32f16a:_0x32f16a+'\x20'+this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']});},_0x14a9df['prototype']['renderEsignStamp']=function(){const _0x5a4804=this['renderEsignTooltip'](),_0xab4772={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x5a4804,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x558c25}=this['esign'];return _0x558c25?this['renderString'](_0x558c25,_0xab4772):this['renderTemplate']('esignStamp',_0xab4772);},_0x14a9df['prototype']['destroyESignTooltip']=function(){_0x43bb5f['each'](this['esignTooltip']||[],_0xc27220=>{var _0x2acab2;_0xc27220&&!(null===(_0x2acab2=_0xc27220['state'])||void 0x0===_0x2acab2?void 0x0:_0x2acab2['isDestroyed'])&&_0xc27220['destroy']&&_0xc27220['destroy']();});};const _0x2438bf=_0x14a9df['prototype']['removeEventListeners'];_0x14a9df['prototype']['removeEventListeners']=function(){_0x2438bf['call'](this),this['destroyESignTooltip']();};const _0x20af15=Object['getOwnPropertyDescriptor'](_0x14a9df['prototype'],'disabled');Object['defineProperty'](_0x14a9df['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x378df0;return _0x20af15['get']['call'](this)||(null===(_0x378df0=this['parent'])||void 0x0===_0x378df0?void 0x0:_0x378df0['disabled'])||this['shouldDisableSignedData']();}}),_0x14a9df['prototype']['shouldDisableSignedData']=function(){return _0x43bb5f['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x14a9df['prototype']['isValueSigned']=function(){var _0x1b0854,_0x51937f;if(!0x0===(null===(_0x1b0854=this['eSignature'])||void 0x0===_0x1b0854?void 0x0:_0x1b0854['valid']))return!0x0;const _0x2a5f07=(null===(_0x51937f=this['root'])||void 0x0===_0x51937f?void 0x0:_0x51937f['signedComponentsInfo'])||{};if(null==_0x2a5f07?void 0x0:_0x2a5f07['all'])return!0x0;const _0x16dfb8=this['jsonPathInLocalRoot'];return _0x43bb5f['some']((null==_0x2a5f07?void 0x0:_0x2a5f07['components'])||[],_0x5dd459=>_0x16dfb8===_0x5dd459||_0x43bb5f['startsWith'](_0x16dfb8,_0x5dd459+'.'));};const _0x43ed1a=_0x14a9df['prototype']['checkData'];_0x14a9df['prototype']['checkData']=function(_0x4df5f8,_0x5d44b4,_0x2c8e27){const _0x58268c=_0x43ed1a['call'](this,_0x4df5f8,_0x5d44b4,_0x2c8e27);return(null==_0x5d44b4?void 0x0:_0x5d44b4['fromSubmission'])||this['validateSignedValue'](),_0x58268c;},_0x14a9df['prototype']['checkSignedDataChange']=function(_0x499b63={}){return this['hasSignedValueChanged'](_0x499b63);},_0x14a9df['prototype']['validateSignedValue']=function(){var _0x4700ae;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x4700ae=this['root'])||void 0x0===_0x4700ae?void 0x0:_0x4700ae['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x14a9df['prototype']['emitSignedValueChange']=function(_0x3cca0b){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x3cca0b});},_0x14a9df['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x9b1e0a,_0x5d68f2=this;for(;_0x5d68f2&&_0x5d68f2['row']&&!_0x9b1e0a;)_0x5d68f2=_0x5d68f2['parent'],'tagpad'===_0x5d68f2['type']&&(_0x9b1e0a=_0x5d68f2);if(_0x9b1e0a){const _0x1a2cd7=_0x43bb5f['split'](this['pathInLocalRoot'],new RegExp('^'+_0x9b1e0a['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x43bb5f['split'](this['pathInLocalRoot'],_0x1a2cd7)[0x0]+'.data'+_0x1a2cd7;}}return this['pathInLocalRoot'];},_0x14a9df['prototype']['compareSignedValue']=function(_0x6ed0b0){return!this['isEqual'](_0x43bb5f['isNil'](_0x6ed0b0)?this['emptyValue']:_0x6ed0b0,_0x43bb5f['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x14a9df['prototype']['hasSignedValueChanged']=function(_0x317fb9={}){var _0xbf5b93,_0x7aba77;const {checkAll:_0x2667b6,signedData:_0xe0dbd6}=_0x317fb9,_0x522463=_0x2667b6||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x522463)return!0x1;const _0x1fa5ea=_0xe0dbd6||(null===(_0x7aba77=null===(_0xbf5b93=this['root'])||void 0x0===_0xbf5b93?void 0x0:_0xbf5b93['signedSubmission'])||void 0x0===_0x7aba77?void 0x0:_0x7aba77['data']);if(!_0x1fa5ea)return!0x1;const _0x17ce2a=_0x43bb5f['get'](_0x1fa5ea,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x17ce2a);},_0x14a9df['prototype']['hasSignedChildren']=_0x5f0095=>!0x1,_0x49044a['default']=_0x14a9df;},0x2bb:function(_0x3408a9,_0x2c9e23,_0x405cdc){'use strict';Object['defineProperty'](_0x2c9e23,'__esModule',{'value':!0x0});const _0x150de1=_0x405cdc(0x44)['Components']['components']['componentmodal'],_0x4aa454=_0x150de1['prototype']['setOpenEventListener'];_0x150de1['prototype']['setOpenEventListener']=function(){_0x4aa454['call'](this),this['component']['attachESignTooltip']();},_0x2c9e23['default']=_0x150de1;},0x2bf:function(_0x4da0e7,_0x12de5d,_0x40e196){'use strict';Object['defineProperty'](_0x12de5d,'__esModule',{'value':!0x0});const _0x4775e9=_0x40e196(0x44),_0x28a5ab=_0x4775e9['Components']['components']['form'],_0x3a4907=(_0x4775e9['Utils']['_'],_0x28a5ab['prototype']['onSetSubFormValue']);_0x28a5ab['prototype']['onSetSubFormValue']=function(_0xfac7a2,_0x4ef21e){const _0x40223e=(null==_0x4ef21e?void 0x0:_0x4ef21e['fromSubmission'])&&this['subForm'];_0x40223e&&this['subForm']['setSignedSubmission'](_0xfac7a2),_0x3a4907['call'](this,_0xfac7a2,_0x4ef21e),_0x40223e&&this['subForm']['setESignatures'](_0xfac7a2);};const _0x23ca04=_0x28a5ab['prototype']['getSubOptions'];_0x28a5ab['prototype']['getSubOptions']=function(_0x5ac33d={}){return _0x5ac33d['parentPath']=this['path']+'.data.',_0x23ca04['call'](this,_0x5ac33d);},_0x28a5ab['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x28a5ab['prototype']['compareSignedValue']=function(_0x499d85){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x499d85});};const _0x5e7da9=_0x28a5ab['prototype']['isInternalEvent'];_0x28a5ab['prototype']['isInternalEvent']=function(_0x11fec7){return _0x5e7da9['call'](this,_0x11fec7)||'signedValueChanged'===_0x11fec7;},_0x12de5d['default']=_0x28a5ab;},0x2bd:function(_0x2f062b,_0x2ea48e,_0x2237af){'use strict';Object['defineProperty'](_0x2ea48e,'__esModule',{'value':!0x0});const _0xd1ecc9=_0x2237af(0x44),_0xfa5b26=_0xd1ecc9['Components']['components']['nested'],_0x233da1=_0xd1ecc9['Utils']['_'];_0xfa5b26['prototype']['hasSignedValueChanged']=()=>!0x1,_0xfa5b26['prototype']['checkSignedDataChange']=function(_0x5168c2={}){const {checkAll:_0x572b2c}=_0x5168c2;return!(!_0x572b2c&&!this['hasSignedChildren']())&&_0x233da1['some'](this['getComponents']()||[],_0x3a828d=>_0x3a828d['checkSignedDataChange'](_0x5168c2));},_0xfa5b26['prototype']['hasSignedChildren']=function(){var _0x33c3b8;const _0x2cf2ba=(null===(_0x33c3b8=this['root'])||void 0x0===_0x33c3b8?void 0x0:_0x33c3b8['signedComponentsInfo'])||{};if(null==_0x2cf2ba?void 0x0:_0x2cf2ba['all'])return!0x0;const _0x10bcf4=this['jsonPathInLocalRoot'];return _0x233da1['some']((null==_0x2cf2ba?void 0x0:_0x2cf2ba['components'])||[],_0x31f265=>_0x10bcf4===_0x31f265||_0x233da1['startsWith'](_0x10bcf4,_0x31f265+'.'||_0x233da1['startsWith'](_0x31f265,_0x10bcf4+'.')));},_0x2ea48e['default']=_0xfa5b26;},0x2c1:function(_0x28b85c,_0x3fbe7c,_0x1b61db){'use strict';Object['defineProperty'](_0x3fbe7c,'__esModule',{'value':!0x0});const _0x3d084b=_0x1b61db(0x44),_0x52491a=_0x3d084b['Components']['components']['nestedarray'],_0x360191=_0x3d084b['Utils']['_'];_0x52491a['prototype']['hasSignedValueChanged']=function(_0x2fe926={}){var _0x2a5d7d,_0x4c1b3b;const {checkAll:_0x215231,signedData:_0x4cff68}=_0x2fe926;if(_0x215231||this['hasSignedChildren']()){const _0x11e737=_0x360191['get'](_0x4cff68||(null===(_0x4c1b3b=null===(_0x2a5d7d=this['root'])||void 0x0===_0x2a5d7d?void 0x0:_0x2a5d7d['signedSubmission'])||void 0x0===_0x4c1b3b?void 0x0:_0x4c1b3b['data']),this['getValuePathInSignedData']());if(_0x360191['keys'](this['dataValue'])['length']!==_0x360191['keys'](_0x11e737)['length'])return!0x0;}return!0x1;},_0x3fbe7c['default']=_0x52491a;},0x15e:function(_0x2b9b71,_0x20d16e,_0x4142d4){'use strict';Object['defineProperty'](_0x20d16e,'__esModule',{'value':!0x0});const _0x5aabb6=_0x4142d4(0x295),_0x23b060=_0x4142d4(0x2bd),_0x14ec78=_0x4142d4(0x2c1),_0x5c2e6d=_0x4142d4(0x2bf),_0x29ec8b=_0x4142d4(0x2bb);_0x20d16e['default']={'component':_0x5aabb6['default'],'nested':_0x23b060['default'],'nestedarray':_0x14ec78['default'],'form':_0x5c2e6d['default'],'componentmodal':_0x29ec8b['default']};},0x14e:function(_0x5bf84c,_0x446397,_0x4ac592){'use strict';Object['defineProperty'](_0x446397,'__esModule',{'value':!0x0});const _0x41108b=_0x4ac592(0x44),_0x1ddeee=_0x41108b['Displays']['getDisplay']('webform'),_0xa70c4d=_0x41108b['Utils']['_'];Object['defineProperty'](_0x1ddeee['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x561873,_0xc7b81c;return!_0xa70c4d['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0xa70c4d['some'](null===(_0x561873=this['_submission'])||void 0x0===_0x561873?void 0x0:_0x561873['eSignatures'],_0x2771a1=>!0x0===_0x2771a1['valid'])&&!!(null===(_0xc7b81c=this['esign']['signatures'])||void 0x0===_0xc7b81c?void 0x0:_0xc7b81c['length']);}}),Object['defineProperty'](_0x1ddeee['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x33c265;return(null===(_0x33c265=this['form'])||void 0x0===_0x33c265?void 0x0:_0x33c265['esign'])||{};}}),Object['defineProperty'](_0x1ddeee['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x310795=_0xa70c4d['filter'](_0xa70c4d['get'](this['submission'],'eSignatures',[]),_0x1dc406=>!0x0===_0x1dc406['valid']),_0x2dcdef=this['esign']['signatures']||[],_0x56a661={'all':!0x1,'components':[]};return _0xa70c4d['isEmpty'](_0x310795||_0xa70c4d['isEmpty'](_0x2dcdef))||(_0xa70c4d['each'](_0x310795,_0x169ae4=>{if(_0x56a661['all'])return;const {compPath:_0x4d68a}=_0x169ae4['signature']||{},_0x36b34e=_0xa70c4d['find'](_0x2dcdef,_0x580953=>_0x580953['component']===_0x4d68a);_0x36b34e['signAll']&&(_0x56a661['all']=!0x0,_0x56a661['components']=[]),_0x56a661['components']=_0xa70c4d['concat'](_0x56a661['components'],_0x36b34e['signedData']||[]);}),_0x56a661['components']['length']&&(_0x56a661['components']=_0xa70c4d['uniq'](_0x56a661['components']))),_0x56a661;}});const _0x3e0af9=_0x1ddeee['prototype']['setSubmission'];_0x1ddeee['prototype']['setSubmission']=function(_0x4d83a0,_0x39a8a7){return this['setSignedSubmission'](_0x4d83a0),_0x3e0af9['call'](this,_0x4d83a0,_0x39a8a7);},_0x1ddeee['prototype']['setSignedSubmission']=function(_0x1a5dac){var _0x2a32f8;if((null===(_0x2a32f8=this['esign']['signatures'])||void 0x0===_0x2a32f8?void 0x0:_0x2a32f8['length'])&&_0xa70c4d['some'](_0xa70c4d['get'](_0x1a5dac,'eSignatures',[]),_0x41be08=>!0x0===_0x41be08['valid'])){const _0x315ed0=_0xa70c4d['omit'](_0x1a5dac,['eSignatures']);this['signedSubmission']=_0x41108b['Utils']['fastCloneDeep'](_0x315ed0);}else this['signedSubmission']=null;};const _0x37835b=_0x1ddeee['prototype']['onSetSubmission'];_0x1ddeee['prototype']['onSetSubmission']=function(_0x560af3,_0x2fa84f={}){_0x37835b['call'](this,_0x560af3,_0x2fa84f),this['setESignatures'](_0x560af3,_0x2fa84f);},_0x1ddeee['prototype']['setESignatures']=function(_0x4989e8={},_0x5d5b86={}){const _0x18c374=this['esign']['signatures']||[];if(!_0x18c374['length'])return;const _0x1639e2=_0xa70c4d['groupBy'](_0xa70c4d['get'](_0x4989e8,'eSignatures',[]),'signature.valuePath');_0xa70c4d['each'](_0x18c374,_0x41da3c=>{if(_0x41da3c['component']){let _0x4d5123=this['getComponent'](_0x41da3c['component'])||[];_0x4d5123=_0xa70c4d['isArray'](_0x4d5123)?_0x4d5123:[_0x4d5123],_0xa70c4d['each'](_0x4d5123,_0x46e633=>{_0x46e633['setESignature'](_0xa70c4d['get'](_0x1639e2[_0x46e633['jsonPathInLocalRoot']],'[0]',null),_0x5d5b86);});}}),_0x5d5b86['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0xa70c4d['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x56c8f8=_0x1ddeee['prototype']['checkData'];_0x1ddeee['prototype']['checkData']=function(_0xf5f0e8,_0xf8c84e){const _0x48d557=_0x56c8f8['call'](this,_0xf5f0e8,_0xf8c84e);return(null==_0xf8c84e?void 0x0:_0xf8c84e['fromSubmission'])||this['validateESignatureCustomProps'](),_0x48d557;},_0x1ddeee['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x7aa4e=''}=this['esign'];if(!_0x7aa4e||!this['shouldValidateESignatures']())return;const _0x4e6d4f={},_0x5b014d={},_0x2ed5c3=_0xa70c4d['chain'](_0x7aa4e)['split'](',')['map'](_0x34ad7c=>_0xa70c4d['trim'](_0x34ad7c))['value']();_0xa70c4d['each'](_0x2ed5c3||[],_0x8f0ee8=>{_0xa70c4d['set'](_0x4e6d4f,_0x8f0ee8,_0xa70c4d['get'](this['signedSubmission'],_0x8f0ee8)),_0xa70c4d['set'](_0x5b014d,_0x8f0ee8,_0xa70c4d['get'](this['submission'],_0x8f0ee8));}),_0xa70c4d['isEqual'](_0x4e6d4f,_0x5b014d)||this['emitSignedValueChange'](!0x0);},_0x1ddeee['prototype']['shouldValidateESignatures']=function(){var _0x269fd7,_0x1799c0,_0x4d56ac;return!(_0xa70c4d['isEmpty'](_0xa70c4d['filter']((null===(_0x269fd7=this['submission'])||void 0x0===_0x269fd7?void 0x0:_0x269fd7['eSignatures'])||[],_0x170bce=>!0x0===(null==_0x170bce?void 0x0:_0x170bce['valid'])))||_0xa70c4d['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x1799c0=this['submission'])||void 0x0===_0x1799c0?void 0x0:_0x1799c0['_id'])!==(null===(_0x4d56ac=this['signedSubmission'])||void 0x0===_0x4d56ac?void 0x0:_0x4d56ac['_id']));},_0x446397['default']=_0x1ddeee;},0x2f5:function(_0x301e97,_0x4626f8,_0x3606a3){'use strict';Object['defineProperty'](_0x4626f8,'__esModule',{'value':!0x0});const _0x5ca1ee=_0x3606a3(0x14e);_0x4626f8['default']={'webform':_0x5ca1ee['default']};},0x34a:function(_0x5ec828,_0x320424){Object['defineProperty'](_0x320424,'__esModule',{'value':!0x0}),_0x320424['default']=function(_0x48f79d){var _0x15f7f1,_0x341b06='';return Array['prototype']['join'],_0x48f79d['esign']&&(_0x341b06+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x15f7f1=!0x0===_0x48f79d['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x15f7f1)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x15f7f1=_0x48f79d['esignTooltip'])?'':_0x15f7f1)+'\x22\x20class=\x27'+(null==(_0x15f7f1=_0x48f79d['esignIconClass'])?'':_0x15f7f1)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x48f79d['esign']['valid']||_0x48f79d['pdfForm']||(_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x15f7f1=_0x48f79d['esign']?.['signature']?.['user']?.['data']||_0x48f79d['esign']?.['signature']?.['user']?.['_id'])?'':_0x15f7f1)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x48f79d['esign']?.['created']&&(_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x15f7f1=new Date(_0x48f79d['esign']['created'])['toLocaleString']())?'':_0x15f7f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x48f79d['esign']['valid']&&_0x48f79d['pdfForm']&&(_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x15f7f1=_0x48f79d['t']('Signed'))?'':_0x15f7f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x48f79d['esign']['valid']&&(_0x341b06+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x15f7f1=_0x48f79d['esignInvalidMessage'])?'':_0x15f7f1)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x341b06+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x341b06+'\x0a';};},0x3e0:function(_0x52442e,_0x20b411,_0x233935){'use strict';Object['defineProperty'](_0x20b411,'__esModule',{'value':!0x0});const _0x2af09d=_0x233935(0x34a);_0x20b411['default']={'form':_0x2af09d['default']};},0x26e:function(_0x355bdc,_0x57370a){Object['defineProperty'](_0x57370a,'__esModule',{'value':!0x0}),_0x57370a['default']=function(_0x5dc0b1){var _0x1cdce7,_0x29ce13='';return Array['prototype']['join'],_0x29ce13+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x1cdce7=!0x0!==_0x5dc0b1['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x1cdce7)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x1cdce7=_0x5dc0b1['t']('eSignature'))?'':_0x1cdce7)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x1cdce7=_0x5dc0b1['t'](!0x0!==_0x5dc0b1['esign']['valid']?'invalid':'verified'))?'':_0x1cdce7)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x5dc0b1['pdfForm']&&!0x0!==_0x5dc0b1['esign']['valid']&&(_0x29ce13+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x1cdce7=_0x5dc0b1['esignInvalidMessage'])?'':_0x1cdce7)+'</div>\x0a\x20\x20\x20\x20'),_0x29ce13+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x5dc0b1['pdfForm']&&(_0x29ce13+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('Signed\x20by'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['signature']?.['user']?.['data']||_0x5dc0b1['esign']?.['signature']?.['user']?.['_id'])?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('Signed\x20on'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=new Date(_0x5dc0b1['esign']?.['created'])['toLocaleString']())?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x29ce13+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('ID'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['_id']||'-')?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('Path'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['signature']?.['valuePath']||'-')?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('Submission\x20Rev.'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('Form\x20Rev.'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x1cdce7=_0x5dc0b1['t']('User\x20ID'))?'':_0x1cdce7)+':</span><span>'+(null==(_0x1cdce7=_0x5dc0b1['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x1cdce7)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x36c:function(_0x8cbfb,_0x475594,_0x59575e){'use strict';Object['defineProperty'](_0x475594,'__esModule',{'value':!0x0});const _0x171bf3=_0x59575e(0x26e);_0x475594['default']={'form':_0x171bf3['default']};},0x0:function(_0xb59467,_0x1dda2b){Object['defineProperty'](_0x1dda2b,'__esModule',{'value':!0x0}),_0x1dda2b['default']=function(_0x5da8f8){var _0x3d3a31;return''+((null==(_0x3d3a31=_0x5da8f8['children'])?'':_0x3d3a31)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x3d3a31=_0x5da8f8['eSignStamp'])?'':_0x3d3a31)+'</div>\x0a';};},0x356:function(_0x4c3adc,_0x2253ef,_0x51e7c6){'use strict';Object['defineProperty'](_0x2253ef,'__esModule',{'value':!0x0});const _0xa6d058=_0x51e7c6(0x0);_0x2253ef['default']={'form':_0xa6d058['default']};},0x268:function(_0x20d9fc,_0xc2462a,_0x26d830){'use strict';Object['defineProperty'](_0xc2462a,'__esModule',{'value':!0x0});const _0x438955=_0x26d830(0x356),_0x48f014=_0x26d830(0x3e0),_0x5c311b=_0x26d830(0x36c);_0xc2462a['default']={'esignature':_0x438955['default'],'esignStamp':_0x48f014['default'],'esignTooltip':_0x5c311b['default']};},0x27f:function(_0x5f6769,_0x4154e7){Object['defineProperty'](_0x4154e7,'__esModule',{'value':!0x0}),_0x4154e7['default']=function(_0x1b31e7){var _0x221c6f,_0x139c66='';return Array['prototype']['join'],_0x1b31e7['esign']&&(_0x139c66+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x221c6f=!0x0===_0x1b31e7['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x221c6f)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x221c6f=_0x1b31e7['esignTooltip'])?'':_0x221c6f)+'\x22\x20class=\x27'+(null==(_0x221c6f=_0x1b31e7['iconClass'](!0x0!==_0x1b31e7['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x221c6f)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x1b31e7['esign']['valid']||_0x1b31e7['pdfForm']||(_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x221c6f=_0x1b31e7['esign']?.['signature']?.['user']?.['data']||_0x1b31e7['esign']?.['signature']?.['user']?.['_id'])?'':_0x221c6f)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1b31e7['esign']?.['created']&&(_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x221c6f=new Date(_0x1b31e7['esign']['created'])['toLocaleString']())?'':_0x221c6f)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x1b31e7['esign']['valid']&&_0x1b31e7['pdfForm']&&(_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x221c6f=_0x1b31e7['t']('Signed'))?'':_0x221c6f)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x1b31e7['esign']['valid']&&(_0x139c66+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x221c6f=_0x1b31e7['esignInvalidMessage'])?'':_0x221c6f)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x139c66+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x139c66+'\x0a';};},0x197:function(_0x585187,_0x86037d,_0x368c33){'use strict';Object['defineProperty'](_0x86037d,'__esModule',{'value':!0x0});const _0x361879=_0x368c33(0x27f);_0x86037d['default']={'form':_0x361879['default']};},0x1ab:function(_0x193b59,_0x10ae33){Object['defineProperty'](_0x10ae33,'__esModule',{'value':!0x0}),_0x10ae33['default']=function(_0x76dece){var _0x144ac6,_0x3fffd1='';return Array['prototype']['join'],_0x3fffd1+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x144ac6=!0x0!==_0x76dece['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x144ac6)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x144ac6=_0x76dece['t']('eSignature'))?'':_0x144ac6)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x144ac6=_0x76dece['t'](!0x0!==_0x76dece['esign']['valid']?'invalid':'verified'))?'':_0x144ac6)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x76dece['pdfForm']&&!0x0!==_0x76dece['esign']['valid']&&(_0x3fffd1+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x144ac6=_0x76dece['esignInvalidMessage'])?'':_0x144ac6)+'</div>\x0a\x20\x20\x20\x20'),_0x3fffd1+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x76dece['pdfForm']&&(_0x3fffd1+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('Signed\x20by'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['signature']?.['user']?.['data']||_0x76dece['esign']?.['signature']?.['user']?.['_id'])?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('Signed\x20on'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=new Date(_0x76dece['esign']?.['created'])['toLocaleString']())?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x3fffd1+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('ID'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['_id']||'-')?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('Path'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['signature']?.['valuePath']||'-')?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('Submission\x20Rev.'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('Form\x20Rev.'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x144ac6=_0x76dece['t']('User\x20ID'))?'':_0x144ac6)+':</span><span>'+(null==(_0x144ac6=_0x76dece['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x144ac6)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x193:function(_0x52fbd3,_0x559cf1,_0x36e741){'use strict';Object['defineProperty'](_0x559cf1,'__esModule',{'value':!0x0});const _0x35433a=_0x36e741(0x1ab);_0x559cf1['default']={'form':_0x35433a['default']};},0x2ed:function(_0xa97c92,_0x3aa5d7){Object['defineProperty'](_0x3aa5d7,'__esModule',{'value':!0x0}),_0x3aa5d7['default']=function(_0x2e949c){var _0x329b7f;return''+((null==(_0x329b7f=_0x2e949c['children'])?'':_0x329b7f)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x329b7f=_0x2e949c['eSignStamp'])?'':_0x329b7f)+'</div>\x0a';};},0x39d:function(_0x2143be,_0x390c7f,_0x2ad100){'use strict';Object['defineProperty'](_0x390c7f,'__esModule',{'value':!0x0});const _0x25de8e=_0x2ad100(0x2ed);_0x390c7f['default']={'form':_0x25de8e['default']};},0x339:function(_0x50dafd,_0x523b5e,_0x41b2b2){'use strict';Object['defineProperty'](_0x523b5e,'__esModule',{'value':!0x0});const _0x39d2cb=_0x41b2b2(0x39d),_0x5ac937=_0x41b2b2(0x197),_0x1c34cf=_0x41b2b2(0x193);_0x523b5e['default']={'esignature':_0x39d2cb['default'],'esignStamp':_0x5ac937['default'],'esignTooltip':_0x1c34cf['default']};},0x3c9:function(_0x57a9c0,_0x4917f9,_0x429a5a){'use strict';Object['defineProperty'](_0x4917f9,'__esModule',{'value':!0x0});const _0x3a5727=_0x429a5a(0x268),_0x1fdf8b=_0x429a5a(0x339);_0x4917f9['default']={'bootstrap':_0x3a5727['default'],'bootstrap3':_0x1fdf8b['default'],'bootstrap4':_0x3a5727['default'],'bootstrap5':_0x3a5727['default']};},0x203:function(_0xe7a93f,_0x570c87){'use strict';Object['defineProperty'](_0x570c87,'__esModule',{'value':!0x0}),_0x570c87['default']='esignature';},0x44:function(_0x55ada1){'use strict';_0x55ada1['exports']=require('@formio/js');}},_0x5dacf4={};function _0x300e5f(_0x10141e){var _0x3c916f=_0x5dacf4[_0x10141e];if(void 0x0!==_0x3c916f)return _0x3c916f['exports'];var _0x2c76e0=_0x5dacf4[_0x10141e]={'exports':{}};return _0x342b49[_0x10141e](_0x2c76e0,_0x2c76e0['exports'],_0x300e5f),_0x2c76e0['exports'];}var _0xd5aff1={};return(function(){'use strict';var _0x26f0e4=_0xd5aff1;const _0x124dca=_0x300e5f(0x15e),_0x44f5d3=_0x300e5f(0x3c9),_0x16963d=_0x300e5f(0x203),_0x4af1d2=_0x300e5f(0x2f5);_0x26f0e4['default']={'components':_0x124dca['default'],'templates':_0x44f5d3['default'],'library':_0x16963d['default'],'displays':_0x4af1d2['default']};}()),_0xd5aff1['default'];}());});
1
+ !function(_0x3ee28c,_0xdd45b5){'object'==typeof exports&&'object'==typeof module?module['exports']=_0xdd45b5():'function'==typeof define&&define['amd']?define([],_0xdd45b5):'object'==typeof exports?exports['esignature']=_0xdd45b5():_0x3ee28c['esignature']=_0xdd45b5();}(self,function(){return(function(){var _0x4eec19={0x0:function(_0x1c0e4e,_0x1ec5bc){Object['defineProperty'](_0x1ec5bc,'__esModule',{'value':!0x0}),_0x1ec5bc['default']=function(_0xcf4f51){var _0x349689;return''+((null==(_0x349689=_0xcf4f51['children'])?'':_0x349689)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x349689=_0xcf4f51['eSignStamp'])?'':_0x349689)+'</div>\x0a';};},0x14e:function(_0x44d5e3,_0x531ac7,_0x4fe574){'use strict';Object['defineProperty'](_0x531ac7,'__esModule',{'value':!0x0});const _0x38367d=_0x4fe574(0x170),_0xd39720=_0x38367d['Displays']['getDisplay']('webform'),_0x21153a=_0x38367d['Utils']['_'];Object['defineProperty'](_0xd39720['prototype'],'disableSignedData',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x48dd1c,_0x935211;return!_0x21153a['get'](this,'form.esign.notDisableSignedData',!0x1)&&_0x21153a['some'](null===(_0x48dd1c=this['_submission'])||void 0x0===_0x48dd1c?void 0x0:_0x48dd1c['eSignatures'],_0x4e9dd8=>!0x0===_0x4e9dd8['valid'])&&!!(null===(_0x935211=this['esign']['signatures'])||void 0x0===_0x935211?void 0x0:_0x935211['length']);}}),Object['defineProperty'](_0xd39720['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x62f9e;return(null===(_0x62f9e=this['form'])||void 0x0===_0x62f9e?void 0x0:_0x62f9e['esign'])||{};}}),Object['defineProperty'](_0xd39720['prototype'],'signedComponentsInfo',{'enumerable':!0x0,'configurable':!0x0,'get'(){const _0x16bee7=_0x21153a['filter'](_0x21153a['get'](this['submission'],'eSignatures',[]),_0x4c0ac8=>!0x0===_0x4c0ac8['valid']),_0x646582=this['esign']['signatures']||[],_0xdfc8a3={'all':!0x1,'components':[]};return _0x21153a['isEmpty'](_0x16bee7||_0x21153a['isEmpty'](_0x646582))||(_0x21153a['each'](_0x16bee7,_0x2451e1=>{if(_0xdfc8a3['all'])return;const {compPath:_0x5174c8}=_0x2451e1['signature']||{},_0x48940f=_0x21153a['find'](_0x646582,_0x3c31b0=>_0x3c31b0['component']===_0x5174c8);_0x48940f['signAll']&&(_0xdfc8a3['all']=!0x0,_0xdfc8a3['components']=[]),_0xdfc8a3['components']=_0x21153a['concat'](_0xdfc8a3['components'],_0x48940f['signedData']||[]);}),_0xdfc8a3['components']['length']&&(_0xdfc8a3['components']=_0x21153a['uniq'](_0xdfc8a3['components']))),_0xdfc8a3;}});const _0x1548b3=_0xd39720['prototype']['setSubmission'];_0xd39720['prototype']['setSubmission']=function(_0x542c56,_0x356752){return this['setSignedSubmission'](_0x542c56),_0x1548b3['call'](this,_0x542c56,_0x356752);},_0xd39720['prototype']['setSignedSubmission']=function(_0x2c56f8){var _0x4e404a;if((null===(_0x4e404a=this['esign']['signatures'])||void 0x0===_0x4e404a?void 0x0:_0x4e404a['length'])&&_0x21153a['some'](_0x21153a['get'](_0x2c56f8,'eSignatures',[]),_0x4cbc00=>!0x0===_0x4cbc00['valid'])){const _0x26b1b6=_0x21153a['omit'](_0x2c56f8,['eSignatures']);this['signedSubmission']=_0x38367d['Utils']['fastCloneDeep'](_0x26b1b6);}else this['signedSubmission']=null;};const _0x277086=_0xd39720['prototype']['onSetSubmission'];_0xd39720['prototype']['onSetSubmission']=function(_0x3bfa6b,_0x3e5bb0={}){_0x277086['call'](this,_0x3bfa6b,_0x3e5bb0),this['setESignatures'](_0x3bfa6b,_0x3e5bb0);},_0xd39720['prototype']['setESignatures']=function(_0x9d36f6={},_0x35c09e={}){const _0x592c1a=this['esign']['signatures']||[];if(!_0x592c1a['length'])return;const _0x578ef5=_0x21153a['groupBy'](_0x21153a['get'](_0x9d36f6,'eSignatures',[]),'signature.valuePath');_0x21153a['each'](_0x592c1a,_0x4681c1=>{if(_0x4681c1['component']){let _0x4134cf=this['getComponent'](_0x4681c1['component'])||[];_0x4134cf=_0x21153a['isArray'](_0x4134cf)?_0x4134cf:[_0x4134cf],_0x21153a['each'](_0x4134cf,_0xf047a5=>{_0xf047a5['setESignature'](_0x21153a['get'](_0x578ef5[_0xf047a5['jsonPathInLocalRoot']],'[0]',null),_0x35c09e);});}}),_0x35c09e['fromSubmission']&&this['options']['cleanESignOnSetSubmission']&&_0x21153a['set'](this['_submission'],'eSignatures',[]),this['disableSignedData']&&this['redraw']();};const _0x422394=_0xd39720['prototype']['checkData'];_0xd39720['prototype']['checkData']=function(_0x4b65db,_0x25d981){const _0x563683=_0x422394['call'](this,_0x4b65db,_0x25d981);return(null==_0x25d981?void 0x0:_0x25d981['fromSubmission'])||this['validateESignatureCustomProps'](),_0x563683;},_0xd39720['prototype']['validateESignatureCustomProps']=function(){const {submissionProps:_0x5eb2bd=''}=this['esign'];if(!_0x5eb2bd||!this['shouldValidateESignatures']())return;const _0x69792b={},_0x5e31f2={},_0x58bea5=_0x21153a['chain'](_0x5eb2bd)['split'](',')['map'](_0x19a138=>_0x21153a['trim'](_0x19a138))['value']();_0x21153a['each'](_0x58bea5||[],_0x1b4344=>{_0x21153a['set'](_0x69792b,_0x1b4344,_0x21153a['get'](this['signedSubmission'],_0x1b4344)),_0x21153a['set'](_0x5e31f2,_0x1b4344,_0x21153a['get'](this['submission'],_0x1b4344));}),_0x21153a['isEqual'](_0x69792b,_0x5e31f2)||this['emitSignedValueChange'](!0x0);},_0xd39720['prototype']['shouldValidateESignatures']=function(){var _0x3796c6,_0x35e9fb,_0x56293b;return!(_0x21153a['isEmpty'](_0x21153a['filter']((null===(_0x3796c6=this['submission'])||void 0x0===_0x3796c6?void 0x0:_0x3796c6['eSignatures'])||[],_0x452270=>!0x0===(null==_0x452270?void 0x0:_0x452270['valid'])))||_0x21153a['isEmpty'](this['esign']['signatures'])||!this['signedSubmission']||(null===(_0x35e9fb=this['submission'])||void 0x0===_0x35e9fb?void 0x0:_0x35e9fb['_id'])!==(null===(_0x56293b=this['signedSubmission'])||void 0x0===_0x56293b?void 0x0:_0x56293b['_id']));},_0x531ac7['default']=_0xd39720;},0x15e:function(_0x522403,_0x2fd1ed,_0x5c5ff6){'use strict';Object['defineProperty'](_0x2fd1ed,'__esModule',{'value':!0x0});const _0x22398e=_0x5c5ff6(0x295),_0x2c3c34=_0x5c5ff6(0x2bd),_0x32e371=_0x5c5ff6(0x2c1),_0x3734fa=_0x5c5ff6(0x2bf),_0x1334e9=_0x5c5ff6(0x2bb);_0x2fd1ed['default']={'component':_0x22398e['default'],'nested':_0x2c3c34['default'],'nestedarray':_0x32e371['default'],'form':_0x3734fa['default'],'componentmodal':_0x1334e9['default']};},0x170:function(_0x5a7cc0){'use strict';_0x5a7cc0['exports']=window['Formio'];},0x193:function(_0x2a9c5e,_0xbff014,_0x41cd1c){'use strict';Object['defineProperty'](_0xbff014,'__esModule',{'value':!0x0});const _0x372629=_0x41cd1c(0x1ab);_0xbff014['default']={'form':_0x372629['default']};},0x197:function(_0x40fa73,_0x2cab8b,_0xc8eb15){'use strict';Object['defineProperty'](_0x2cab8b,'__esModule',{'value':!0x0});const _0x54c5cf=_0xc8eb15(0x27f);_0x2cab8b['default']={'form':_0x54c5cf['default']};},0x1ab:function(_0x304596,_0x59e777){Object['defineProperty'](_0x59e777,'__esModule',{'value':!0x0}),_0x59e777['default']=function(_0x4e2678){var _0xaffbf9,_0x36090e='';return Array['prototype']['join'],_0x36090e+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0xaffbf9=!0x0!==_0x4e2678['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0xaffbf9)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0xaffbf9=_0x4e2678['t']('eSignature'))?'':_0xaffbf9)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0xaffbf9=_0x4e2678['t'](!0x0!==_0x4e2678['esign']['valid']?'invalid':'verified'))?'':_0xaffbf9)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x4e2678['pdfForm']&&!0x0!==_0x4e2678['esign']['valid']&&(_0x36090e+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0xaffbf9=_0x4e2678['esignInvalidMessage'])?'':_0xaffbf9)+'</div>\x0a\x20\x20\x20\x20'),_0x36090e+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x4e2678['pdfForm']&&(_0x36090e+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('Signed\x20by'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['signature']?.['user']?.['data']||_0x4e2678['esign']?.['signature']?.['user']?.['_id'])?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('Signed\x20on'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=new Date(_0x4e2678['esign']?.['created'])['toLocaleString']())?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x36090e+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('ID'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['_id']||'-')?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('Path'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['signature']?.['valuePath']||'-')?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('Submission\x20Rev.'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('Form\x20Rev.'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0xaffbf9=_0x4e2678['t']('User\x20ID'))?'':_0xaffbf9)+':</span><span>'+(null==(_0xaffbf9=_0x4e2678['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0xaffbf9)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x203:function(_0x4f6b5b,_0xf5d8de){'use strict';Object['defineProperty'](_0xf5d8de,'__esModule',{'value':!0x0}),_0xf5d8de['default']='esignature';},0x268:function(_0x3cb848,_0x28ddfe,_0x4e0b8f){'use strict';Object['defineProperty'](_0x28ddfe,'__esModule',{'value':!0x0});const _0x465834=_0x4e0b8f(0x356),_0x36633b=_0x4e0b8f(0x3e0),_0x1b1ce4=_0x4e0b8f(0x36c);_0x28ddfe['default']={'esignature':_0x465834['default'],'esignStamp':_0x36633b['default'],'esignTooltip':_0x1b1ce4['default']};},0x26e:function(_0x293374,_0x38092e){Object['defineProperty'](_0x38092e,'__esModule',{'value':!0x0}),_0x38092e['default']=function(_0x37915e){var _0x581ea1,_0x4bd7be='';return Array['prototype']['join'],_0x4bd7be+='<div\x20class=\x22formio-esign-tooltip\x22>\x0a\x20\x20\x20\x20<span\x20class=\x22'+(null==(_0x581ea1=!0x0!==_0x37915e['esign']['valid']?'formio-esign-tooltip-header-invalid':'')?'':_0x581ea1)+'\x20formio-esign-tooltip-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20>'+(null==(_0x581ea1=_0x37915e['t']('eSignature'))?'':_0x581ea1)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22formio-esign-tooltip-status\x22\x20>'+(null==(_0x581ea1=_0x37915e['t'](!0x0!==_0x37915e['esign']['valid']?'invalid':'verified'))?'':_0x581ea1)+'</span>\x0a\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20',_0x37915e['pdfForm']&&!0x0!==_0x37915e['esign']['valid']&&(_0x4bd7be+='\x0a\x20\x20\x20\x20<div\x20class=\x22formio-esign-tooltip-invalid-msg\x22>'+(null==(_0x581ea1=_0x37915e['esignInvalidMessage'])?'':_0x581ea1)+'</div>\x0a\x20\x20\x20\x20'),_0x4bd7be+='\x0a\x20\x20\x20\x20<ul\x20class=\x22formio-esign-tooltip-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',_0x37915e['pdfForm']&&(_0x4bd7be+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('Signed\x20by'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['signature']?.['user']?.['data']||_0x37915e['esign']?.['signature']?.['user']?.['_id'])?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('Signed\x20on'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=new Date(_0x37915e['esign']?.['created'])['toLocaleString']())?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x4bd7be+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('ID'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['_id']||'-')?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('Path'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['signature']?.['valuePath']||'-')?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('Submission\x20Rev.'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['signature']?.['submission']?.['_id']||'-')?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('Form\x20Rev.'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['signature']?.['submission']?.['_fvid'])?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22formio-esign-tooltip-info-item\x22><span\x20class=\x22formio-esign-tooltip-info-item-title\x22>'+(null==(_0x581ea1=_0x37915e['t']('User\x20ID'))?'':_0x581ea1)+':</span><span>'+(null==(_0x581ea1=_0x37915e['esign']?.['signature']?.['user']?.['_id']||'-')?'':_0x581ea1)+'</span></li>\x0a\x20\x20\x20\x20</ul>\x0a<div>\x0a';};},0x27f:function(_0x5182fd,_0x39cd92){Object['defineProperty'](_0x39cd92,'__esModule',{'value':!0x0}),_0x39cd92['default']=function(_0x4d6588){var _0x3059ab,_0x52468f='';return Array['prototype']['join'],_0x4d6588['esign']&&(_0x52468f+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x3059ab=!0x0===_0x4d6588['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x3059ab)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x3059ab=_0x4d6588['esignTooltip'])?'':_0x3059ab)+'\x22\x20class=\x27'+(null==(_0x3059ab=_0x4d6588['iconClass'](!0x0!==_0x4d6588['esign']['valid']?'remove-sign':'ok-sign',!0x1))?'':_0x3059ab)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x4d6588['esign']['valid']||_0x4d6588['pdfForm']||(_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x3059ab=_0x4d6588['esign']?.['signature']?.['user']?.['data']||_0x4d6588['esign']?.['signature']?.['user']?.['_id'])?'':_0x3059ab)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4d6588['esign']?.['created']&&(_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x3059ab=new Date(_0x4d6588['esign']['created'])['toLocaleString']())?'':_0x3059ab)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x4d6588['esign']['valid']&&_0x4d6588['pdfForm']&&(_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x3059ab=_0x4d6588['t']('Signed'))?'':_0x3059ab)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x4d6588['esign']['valid']&&(_0x52468f+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x3059ab=_0x4d6588['esignInvalidMessage'])?'':_0x3059ab)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x52468f+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x52468f+'\x0a';};},0x295:function(_0x3fff44,_0x3e09af,_0x295c4a){'use strict';Object['defineProperty'](_0x3e09af,'__esModule',{'value':!0x0});const _0x2ac51f=_0x295c4a(0x170),_0x4c1cdf=_0x2ac51f['Components']['components']['component'],_0x3efb07=_0x2ac51f['Utils']['_'],_0x358b50=_0x4c1cdf['prototype']['init'];_0x4c1cdf['prototype']['init']=function(){var _0x523085,_0x2876b6,_0x46f039;this['builderMode']||(null===(_0x523085=this['options'])||void 0x0===_0x523085?void 0x0:_0x523085['building'])||(null===(_0x2876b6=this['options'])||void 0x0===_0x2876b6?void 0x0:_0x2876b6['inFormBuilder'])||!this['options']['root']||(this['_parentPath']=(null===(_0x46f039=this['options'])||void 0x0===_0x46f039?void 0x0:_0x46f039['parentPath'])||'',this['esignConfig']=this['getEsignConfig']()),_0x358b50['call'](this);},_0x4c1cdf['prototype']['getEsignConfig']=function(){const _0x2f8816=this['esign']['signatures']||[];return _0x3efb07['find'](_0x2f8816,_0x3c8ee6=>_0x3c8ee6['component']===this['jsonPathInLocalRoot']);},Object['defineProperty'](_0x4c1cdf['prototype'],'esign',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x185f90;return(null===(_0x185f90=this['root'])||void 0x0===_0x185f90?void 0x0:_0x185f90['esign'])||{};}}),Object['defineProperty'](_0x4c1cdf['prototype'],'jsonPathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x3efb07['replace'](this['pathInLocalRoot']||'',new RegExp('\x5c[[0-9]*\x5c]','g'),'');}}),Object['defineProperty'](_0x4c1cdf['prototype'],'pathInLocalRoot',{'enumerable':!0x0,'configurable':!0x0,'get'(){return _0x3efb07['replace'](this['path'],this['_parentPath'],'');}}),_0x4c1cdf['prototype']['attachESignTooltip']=function(_0x1a9c57){(_0x1a9c57=_0x1a9c57||this['element'])&&(this['destroyESignTooltip'](),this['loadRefs'](_0x1a9c57,{'esignTooltip':'multiple'}),this['refs']['esignTooltip']&&(this['esignTooltip']=_0x3efb07['map'](this['refs']['esignTooltip']||[],_0x23ab91=>this['createTooltip'](_0x23ab91,{'theme':'formioEsign'}))));};const _0x1bd7db=_0x4c1cdf['prototype']['attach'];_0x4c1cdf['prototype']['attach']=function(_0x4279bf){const _0x26b273=_0x1bd7db['call'](this,_0x4279bf);return this['attachESignTooltip'](_0x4279bf),this['attachESignatureValidation'](),_0x26b273;},_0x4c1cdf['prototype']['setESignature']=function(_0x3812b1,_0x3db321){var _0x11dbf7;if(!this['esignConfig'])return void(this['eSignature']&&(this['eSignature']=null));if(_0x3812b1&&_0x3db321['fromSubmission']&&this['options']['cleanESignOnSetSubmission'])return this['eSignature']=null,this['resetValue'](),void this['redraw']();const _0x46d1e7=!_0x3efb07['isEqual'](this['eSignature'],_0x3812b1);this['eSignature']=_0x3812b1,this['attachESignatureValidation'](),_0x46d1e7&&(this['eSignature']&&!0x0!==(null===(_0x11dbf7=this['eSignature'])||void 0x0===_0x11dbf7?void 0x0:_0x11dbf7['valid'])&&this['resetValue'](),this['redraw']());},_0x4c1cdf['prototype']['attachESignatureValidation']=function(){var _0x396286;!_0x3efb07['isEmpty'](this['esignConfig'])&&(null===(_0x396286=this['eSignature'])||void 0x0===_0x396286?void 0x0:_0x396286['valid'])&&this['on']('signedValueChanged',_0xc9410c=>{var _0x51994e;if(!(null===(_0x51994e=this['eSignature'])||void 0x0===_0x51994e?void 0x0:_0x51994e['valid'])||!_0xc9410c)return;const {valuePath:_0x210713,compPath:_0x2bc3bb,parent:_0x1b087a,customProps:_0x34ac7e}=_0xc9410c;_0x34ac7e&&this['invalidateESignature'](),_0x210713===this['pathInLocalRoot']&&this['invalidateESignature'](!0x0),this['isESignatureDataPath'](_0x2bc3bb,_0x1b087a)&&this['invalidateESignature']();});},_0x4c1cdf['prototype']['invalidateESignature']=function(_0x77760){this['eSignature']['valid']='The\x20data\x20has\x20changed',_0x77760||this['resetValue'](),this['redraw']();},_0x4c1cdf['prototype']['isESignatureDataPath']=function(_0x4d0a33,_0x579551){if(!_0x4d0a33)return!0x1;const {signAll:_0x3f9676,signedData:_0x4ea47f=[]}=this['esignConfig']||{};return _0x3f9676||_0x3efb07['some'](_0x4ea47f,_0x3f2fa2=>_0x579551&&_0x3efb07['startsWith'](_0x3f2fa2,_0x4d0a33+'.')||_0x3f2fa2===_0x4d0a33||_0x3efb07['startsWith'](_0x4d0a33,_0x3f2fa2+'.'));},_0x4c1cdf['prototype']['formatEsignTooltip']=function(_0x4b7d7d=''){const _0x51da98=_0x4b7d7d['replace'](/(?:\r\n|\r|\n)/g,'');return this['getFormattedAttribute'](_0x51da98);},_0x4c1cdf['prototype']['renderESignature']=function(_0x2ed9b5){return this['eSignature']&&this['getEsignConfig']?this['renderTemplate']('esignature',{'children':_0x2ed9b5,'eSignStamp':this['renderEsignStamp']()}):_0x2ed9b5;};const _0x4edbee=_0x4c1cdf['prototype']['render'];_0x4c1cdf['prototype']['render']=function(_0x28d703='Unknown\x20component:\x20'+this['component']['type'],_0x1078ff=!0x1){return _0x28d703=this['renderESignature'](_0x28d703),_0x4edbee['call'](this,_0x28d703,_0x1078ff);},_0x4c1cdf['prototype']['renderEsignTooltip']=function(){const {tooltipTemplate:_0x19c8c8}=this['esign'],_0x2013a5={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignInvalidMessage':this['getInvalidESigntureMessage'](!0x0)},_0x1562e3=_0x19c8c8?this['renderString'](_0x19c8c8,_0x2013a5):this['renderTemplate']('esignTooltip',_0x2013a5);return this['formatEsignTooltip'](_0x1562e3);};const _0x49a972=_0x4c1cdf['prototype']['renderModalPreview'];_0x4c1cdf['prototype']['renderModalPreview']=function(_0x39b0b9){return this['renderESignature'](_0x49a972['call'](this,_0x39b0b9));},_0x4c1cdf['prototype']['getInvalidESigntureMessage']=function(_0x3a7915){if(!0x0===this['eSignature']['valid'])return'';if(_0x3a7915)return'pdf'===this['options']['display']?this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']}):'';const _0x56548a=this['t']('Invalid\x20eSignature.');return'pdf'===this['options']['display']?_0x56548a:_0x56548a+'\x20'+this['t']('{{reason}}.\x20Please\x20sign\x20again.',{'reason':this['eSignature']['valid']});},_0x4c1cdf['prototype']['renderEsignStamp']=function(){const _0x3d59ac=this['renderEsignTooltip'](),_0x388c94={'pdfForm':'pdf'===this['options']['display'],'esign':this['eSignature'],'esignTooltip':_0x3d59ac,'esignIconClass':this['iconClass'](!0x0!==this['eSignature']['valid']?'times-circle':'check-circle',!0x1),'esignInvalidMessage':this['getInvalidESigntureMessage']()},{stampTemplate:_0x3d70b4}=this['esign'];return _0x3d70b4?this['renderString'](_0x3d70b4,_0x388c94):this['renderTemplate']('esignStamp',_0x388c94);},_0x4c1cdf['prototype']['destroyESignTooltip']=function(){_0x3efb07['each'](this['esignTooltip']||[],_0x1e769c=>{var _0x12e128;_0x1e769c&&!(null===(_0x12e128=_0x1e769c['state'])||void 0x0===_0x12e128?void 0x0:_0x12e128['isDestroyed'])&&_0x1e769c['destroy']&&_0x1e769c['destroy']();});};const _0x3ef497=_0x4c1cdf['prototype']['removeEventListeners'];_0x4c1cdf['prototype']['removeEventListeners']=function(){_0x3ef497['call'](this),this['destroyESignTooltip']();};const _0x53cfb7=Object['getOwnPropertyDescriptor'](_0x4c1cdf['prototype'],'disabled');Object['defineProperty'](_0x4c1cdf['prototype'],'disabled',{'enumerable':!0x0,'configurable':!0x0,'get'(){var _0x2562e9;return _0x53cfb7['get']['call'](this)||(null===(_0x2562e9=this['parent'])||void 0x0===_0x2562e9?void 0x0:_0x2562e9['disabled'])||this['shouldDisableSignedData']();}}),_0x4c1cdf['prototype']['shouldDisableSignedData']=function(){return _0x3efb07['get'](this,'root.disableSignedData',!0x1)&&this['isValueSigned']();},_0x4c1cdf['prototype']['isValueSigned']=function(){var _0x15e586,_0x2e51b2;if(!0x0===(null===(_0x15e586=this['eSignature'])||void 0x0===_0x15e586?void 0x0:_0x15e586['valid']))return!0x0;const _0x101fbc=(null===(_0x2e51b2=this['root'])||void 0x0===_0x2e51b2?void 0x0:_0x2e51b2['signedComponentsInfo'])||{};if(null==_0x101fbc?void 0x0:_0x101fbc['all'])return!0x0;const _0x1502d6=this['jsonPathInLocalRoot'];return _0x3efb07['some']((null==_0x101fbc?void 0x0:_0x101fbc['components'])||[],_0x307f24=>_0x1502d6===_0x307f24||_0x3efb07['startsWith'](_0x1502d6,_0x307f24+'.'));};const _0x39eed0=_0x4c1cdf['prototype']['checkData'];_0x4c1cdf['prototype']['checkData']=function(_0x3e90b4,_0x401200,_0x4fc988){const _0x44b0cb=_0x39eed0['call'](this,_0x3e90b4,_0x401200,_0x4fc988);return(null==_0x401200?void 0x0:_0x401200['fromSubmission'])||this['validateSignedValue'](),_0x44b0cb;},_0x4c1cdf['prototype']['checkSignedDataChange']=function(_0x495c52={}){return this['hasSignedValueChanged'](_0x495c52);},_0x4c1cdf['prototype']['validateSignedValue']=function(){var _0x1539d5;!this['options']['inFormBuilder']&&!this['builderMode']&&!this['options']['building']&&this['options']['root']&&(null===(_0x1539d5=this['root'])||void 0x0===_0x1539d5?void 0x0:_0x1539d5['shouldValidateESignatures']())&&this['hasSignedValueChanged']()&&this['emitSignedValueChange']();},_0x4c1cdf['prototype']['emitSignedValueChange']=function(_0x3a14dc){this['emit']('signedValueChanged',{'valuePath':this['pathInLocalRoot'],'compPath':this['jsonPathInLocalRoot'],'parent':this['hasSignedChildren'](),'customProps':_0x3a14dc});},_0x4c1cdf['prototype']['getValuePathInSignedData']=function(){if(this['row']){let _0x105814,_0x16f9d8=this;for(;_0x16f9d8&&_0x16f9d8['row']&&!_0x105814;)_0x16f9d8=_0x16f9d8['parent'],'tagpad'===_0x16f9d8['type']&&(_0x105814=_0x16f9d8);if(_0x105814){const _0x33ebd6=_0x3efb07['split'](this['pathInLocalRoot'],new RegExp('^'+_0x105814['pathInLocalRoot']+'\x5c[[0-9]*\x5c]','g'))[0x1];return _0x3efb07['split'](this['pathInLocalRoot'],_0x33ebd6)[0x0]+'.data'+_0x33ebd6;}}return this['pathInLocalRoot'];},_0x4c1cdf['prototype']['compareSignedValue']=function(_0x11aab7){return!this['isEqual'](_0x3efb07['isNil'](_0x11aab7)?this['emptyValue']:_0x11aab7,_0x3efb07['isNil'](this['dataValue'])?this['emptyValue']:this['dataValue']);},_0x4c1cdf['prototype']['hasSignedValueChanged']=function(_0x562d14={}){var _0xa9b048,_0x1871fb;const {checkAll:_0x18a1f0,signedData:_0x13bc8e}=_0x562d14,_0x4878a6=_0x18a1f0||this['isValueSigned']();if(!this['component']['input']||!0x0!==this['component']['persistent']||!_0x4878a6)return!0x1;const _0x53e5c6=_0x13bc8e||(null===(_0x1871fb=null===(_0xa9b048=this['root'])||void 0x0===_0xa9b048?void 0x0:_0xa9b048['signedSubmission'])||void 0x0===_0x1871fb?void 0x0:_0x1871fb['data']);if(!_0x53e5c6)return!0x1;const _0x605224=_0x3efb07['get'](_0x53e5c6,this['getValuePathInSignedData']());return this['compareSignedValue'](_0x605224);},_0x4c1cdf['prototype']['hasSignedChildren']=_0x38dce6=>!0x1,_0x3e09af['default']=_0x4c1cdf;},0x2bb:function(_0x4c2e7f,_0x4bdbc0,_0x4236c0){'use strict';Object['defineProperty'](_0x4bdbc0,'__esModule',{'value':!0x0});const _0x28bfc6=_0x4236c0(0x170)['Components']['components']['componentmodal'],_0x4889be=_0x28bfc6['prototype']['setOpenEventListener'];_0x28bfc6['prototype']['setOpenEventListener']=function(){_0x4889be['call'](this),this['component']['attachESignTooltip']();},_0x4bdbc0['default']=_0x28bfc6;},0x2bd:function(_0xd0602,_0xe865c7,_0x4b32e1){'use strict';Object['defineProperty'](_0xe865c7,'__esModule',{'value':!0x0});const _0x46a323=_0x4b32e1(0x170),_0xb754ae=_0x46a323['Components']['components']['nested'],_0x55e984=_0x46a323['Utils']['_'];_0xb754ae['prototype']['hasSignedValueChanged']=()=>!0x1,_0xb754ae['prototype']['checkSignedDataChange']=function(_0x4732c7={}){const {checkAll:_0x4b150d}=_0x4732c7;return!(!_0x4b150d&&!this['hasSignedChildren']())&&_0x55e984['some'](this['getComponents']()||[],_0x2a3b6f=>_0x2a3b6f['checkSignedDataChange'](_0x4732c7));},_0xb754ae['prototype']['hasSignedChildren']=function(){var _0x3856a8;const _0x1b8454=(null===(_0x3856a8=this['root'])||void 0x0===_0x3856a8?void 0x0:_0x3856a8['signedComponentsInfo'])||{};if(null==_0x1b8454?void 0x0:_0x1b8454['all'])return!0x0;const _0x2bd7eb=this['jsonPathInLocalRoot'];return _0x55e984['some']((null==_0x1b8454?void 0x0:_0x1b8454['components'])||[],_0xf50334=>_0x2bd7eb===_0xf50334||_0x55e984['startsWith'](_0x2bd7eb,_0xf50334+'.'||_0x55e984['startsWith'](_0xf50334,_0x2bd7eb+'.')));},_0xe865c7['default']=_0xb754ae;},0x2bf:function(_0x57d034,_0x3c6c1c,_0x345362){'use strict';Object['defineProperty'](_0x3c6c1c,'__esModule',{'value':!0x0});const _0x2e3a71=_0x345362(0x170),_0x154dfb=_0x2e3a71['Components']['components']['form'],_0x4afb57=(_0x2e3a71['Utils']['_'],_0x154dfb['prototype']['onSetSubFormValue']);_0x154dfb['prototype']['onSetSubFormValue']=function(_0x788887,_0x37e81d){const _0x247e20=(null==_0x37e81d?void 0x0:_0x37e81d['fromSubmission'])&&this['subForm'];_0x247e20&&this['subForm']['setSignedSubmission'](_0x788887),_0x4afb57['call'](this,_0x788887,_0x37e81d),_0x247e20&&this['subForm']['setESignatures'](_0x788887);};const _0x13810e=_0x154dfb['prototype']['getSubOptions'];_0x154dfb['prototype']['getSubOptions']=function(_0x281687={}){return _0x281687['parentPath']=this['path']+'.data.',_0x13810e['call'](this,_0x281687);},_0x154dfb['prototype']['getValuePathInSignedData']=function(){return this['pathInLocalRoot']+'.data';},_0x154dfb['prototype']['compareSignedValue']=function(_0x27fb9a){return!!this['subForm']&&this['subForm']['checkSignedDataChange']({'checkAll':!0x0,'signedData':_0x27fb9a});};const _0x36ea53=_0x154dfb['prototype']['isInternalEvent'];_0x154dfb['prototype']['isInternalEvent']=function(_0x4ae431){return _0x36ea53['call'](this,_0x4ae431)||'signedValueChanged'===_0x4ae431;},_0x3c6c1c['default']=_0x154dfb;},0x2c1:function(_0x52e642,_0x1999f2,_0x3abeb2){'use strict';Object['defineProperty'](_0x1999f2,'__esModule',{'value':!0x0});const _0x32c38c=_0x3abeb2(0x170),_0x1d7159=_0x32c38c['Components']['components']['nestedarray'],_0x970798=_0x32c38c['Utils']['_'];_0x1d7159['prototype']['hasSignedValueChanged']=function(_0x31c9e2={}){var _0x8ce7d9,_0x35aa99;const {checkAll:_0x5d5dbf,signedData:_0x1fdccd}=_0x31c9e2;if(_0x5d5dbf||this['hasSignedChildren']()){const _0xbe63b7=_0x970798['get'](_0x1fdccd||(null===(_0x35aa99=null===(_0x8ce7d9=this['root'])||void 0x0===_0x8ce7d9?void 0x0:_0x8ce7d9['signedSubmission'])||void 0x0===_0x35aa99?void 0x0:_0x35aa99['data']),this['getValuePathInSignedData']());if(_0x970798['keys'](this['dataValue'])['length']!==_0x970798['keys'](_0xbe63b7)['length'])return!0x0;}return!0x1;},_0x1999f2['default']=_0x1d7159;},0x2ed:function(_0x4619f9,_0x59c39b){Object['defineProperty'](_0x59c39b,'__esModule',{'value':!0x0}),_0x59c39b['default']=function(_0x14a4cb){var _0x884e6d;return''+((null==(_0x884e6d=_0x14a4cb['children'])?'':_0x884e6d)+'\x0a<div\x20ref=\x22esignContainer\x22>')+(null==(_0x884e6d=_0x14a4cb['eSignStamp'])?'':_0x884e6d)+'</div>\x0a';};},0x2f5:function(_0x29efb3,_0x1c4e44,_0x3a29a0){'use strict';Object['defineProperty'](_0x1c4e44,'__esModule',{'value':!0x0});const _0x161453=_0x3a29a0(0x14e);_0x1c4e44['default']={'webform':_0x161453['default']};},0x339:function(_0x1e2c41,_0x34ee8f,_0x2bc81e){'use strict';Object['defineProperty'](_0x34ee8f,'__esModule',{'value':!0x0});const _0x2f6d67=_0x2bc81e(0x39d),_0x3f5894=_0x2bc81e(0x197),_0x4f3508=_0x2bc81e(0x193);_0x34ee8f['default']={'esignature':_0x2f6d67['default'],'esignStamp':_0x3f5894['default'],'esignTooltip':_0x4f3508['default']};},0x34a:function(_0x535537,_0x19a00e){Object['defineProperty'](_0x19a00e,'__esModule',{'value':!0x0}),_0x19a00e['default']=function(_0x3245df){var _0x2b7f5e,_0x29ade4='';return Array['prototype']['join'],_0x3245df['esign']&&(_0x29ade4+='\x0a<span\x20class=\x22formio-esign-stamp\x20\x20'+(null==(_0x2b7f5e=!0x0===_0x3245df['esign']['valid']?'':'formio-esign-stamp-invalid')?'':_0x2b7f5e)+'\x22>\x0a\x20\x20\x20\x20<i\x20ref=\x22esignTooltip\x22\x20style=\x22cursor:pointer\x22\x20data-tooltip=\x22'+(null==(_0x2b7f5e=_0x3245df['esignTooltip'])?'':_0x2b7f5e)+'\x22\x20class=\x27'+(null==(_0x2b7f5e=_0x3245df['esignIconClass'])?'':_0x2b7f5e)+'\x27\x20aria-hidden=\x27true\x27></i>\x20\x0a\x20\x20\x20\x20<span\x20class=\x22formio-esign-stamp-description\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x3245df['esign']['valid']||_0x3245df['pdfForm']||(_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Signed\x20by\x20'+(null==(_0x2b7f5e=_0x3245df['esign']?.['signature']?.['user']?.['data']||_0x3245df['esign']?.['signature']?.['user']?.['_id'])?'':_0x2b7f5e)+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x3245df['esign']?.['created']&&(_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20on\x20'+(null==(_0x2b7f5e=new Date(_0x3245df['esign']['created'])['toLocaleString']())?'':_0x2b7f5e)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'),_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0===_0x3245df['esign']['valid']&&_0x3245df['pdfForm']&&(_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2b7f5e=_0x3245df['t']('Signed'))?'':_0x2b7f5e)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20',!0x0!==_0x3245df['esign']['valid']&&(_0x29ade4+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(null==(_0x2b7f5e=_0x3245df['esignInvalidMessage'])?'':_0x2b7f5e)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'),_0x29ade4+='\x0a\x20\x20\x20\x20</span>\x0a</span>\x0a'),_0x29ade4+'\x0a';};},0x356:function(_0xca0d44,_0x45d76f,_0x509659){'use strict';Object['defineProperty'](_0x45d76f,'__esModule',{'value':!0x0});const _0x2c2d28=_0x509659(0x0);_0x45d76f['default']={'form':_0x2c2d28['default']};},0x36c:function(_0x62e7fa,_0x1a77a8,_0x3fbc11){'use strict';Object['defineProperty'](_0x1a77a8,'__esModule',{'value':!0x0});const _0x41aa9d=_0x3fbc11(0x26e);_0x1a77a8['default']={'form':_0x41aa9d['default']};},0x39d:function(_0x414a75,_0x5ee3af,_0x1d9da5){'use strict';Object['defineProperty'](_0x5ee3af,'__esModule',{'value':!0x0});const _0x59b958=_0x1d9da5(0x2ed);_0x5ee3af['default']={'form':_0x59b958['default']};},0x3c9:function(_0x131edf,_0x135aeb,_0x21dea8){'use strict';Object['defineProperty'](_0x135aeb,'__esModule',{'value':!0x0});const _0x195a12=_0x21dea8(0x268),_0x220748=_0x21dea8(0x339);_0x135aeb['default']={'bootstrap':_0x195a12['default'],'bootstrap3':_0x220748['default'],'bootstrap4':_0x195a12['default'],'bootstrap5':_0x195a12['default']};},0x3e0:function(_0x5d9da1,_0x563d30,_0x97df5){'use strict';Object['defineProperty'](_0x563d30,'__esModule',{'value':!0x0});const _0x5c6ddd=_0x97df5(0x34a);_0x563d30['default']={'form':_0x5c6ddd['default']};}},_0x38216b={};function _0x2ff385(_0x2a558b){var _0x763bf9=_0x38216b[_0x2a558b];if(void 0x0!==_0x763bf9)return _0x763bf9['exports'];var _0xfc9ee0=_0x38216b[_0x2a558b]={'exports':{}};return _0x4eec19[_0x2a558b](_0xfc9ee0,_0xfc9ee0['exports'],_0x2ff385),_0xfc9ee0['exports'];}var _0x47f590={};return(function(){'use strict';var _0x176890=_0x47f590;const _0x45e520=_0x2ff385(0x15e),_0x3cbbe5=_0x2ff385(0x3c9),_0x48f2c7=_0x2ff385(0x203),_0x3935f2=_0x2ff385(0x2f5);_0x176890['default']={'components':_0x45e520['default'],'templates':_0x3cbbe5['default'],'library':_0x48f2c7['default'],'displays':_0x3935f2['default']};}()),_0x47f590['default'];}());});
@@ -0,0 +1 @@
1
+ {"title":"E SIGNATURE SETTINGS","name":"eSignatureSettings","path":"esignaturesettings","type":"form","display":"form","components":[{"label":"eSignatures","hideLabel":true,"tableView":false,"templates":{"header":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '9' : '3'}} fw-bold font-weight-bold\">{{ t(component.label) }}</div>\n {% } %}\n {% }) %}\n </div>","row":"<div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n <div class=\"col-sm-{{component.key === 'component' ? '8' : '2'}}\">\n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : ''}}\n </div>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class=\"col-sm-3\">\n <div class=\"btn-group pull-right\">\n <button class=\"btn btn-default btn-light btn-sm editRow\"><i class=\"{{ iconClass('edit') }}\"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>"},"addAnother":"Add eSignature","rowDrafts":false,"key":"signatures","type":"editgrid","displayAsTable":false,"reorder":false,"addAnotherPosition":"bottom","layoutFixed":false,"enableRowGroups":false,"initEmpty":false,"input":true,"components":[{"label":"eSignature Component","widget":"choicesjs","tooltip":"Select the form component that will be used as the signature.","tableView":true,"dataSrc":"custom","data":{"custom":"const compOptions = []\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\n if (_.includes(['button', 'form', 'datasource'], comp.type)) {\r\n return;\r\n }\r\n const compClass = Formio.Components.components[comp.type];\r\n const compFullSchema = compClass ? compClass.schema(comp) : null;\r\n const nestedDataComp = Formio.Components.components.nesteddata;\r\n const excludeComp = !comp.input || !compFullSchema.persistent || compFullSchema.tree || (compClass && nestedDataComp && compClass.prototype instanceof nestedDataComp);\r\n if (!excludeComp || _.includes(['address'], comp.type)) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n }\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"component","type":"select","input":true},{"label":"eSignature Data","widget":"choicesjs","tooltip":"Select the components those values must be confirmed by this eSignature. Changing the value of these components will invalidate the eSignature.","tableView":false,"multiple":true,"dataSrc":"custom","data":{"custom":"const compOptions = [];\r\nutils.eachComponent(instance.options?.esignForm?.components || [], (comp, path) => {\r\nif (comp.input) {\r\n compOptions.push({\r\n label: comp.label + ' (' + path + ')',\r\n value: path,\r\n });\r\n}\r\n}, true);\r\nvalues = compOptions;"},"valueProperty":"value","validate":{"required":true},"key":"signedData","customConditional":"show = !row.signAll;","type":"select","input":true},{"label":"Include all form data in eSignature","tooltip":"When checked, the eSignature will be responsible for all form data. If some value of the form components is changed, the eSignature will be invalid.","tableView":false,"defaultValue":false,"key":"signAll","type":"checkbox","input":true}]},{"label":"Submission properties to include in eSignature","placeholder":"e.g. metadata.timezone","tooltip":"Add a comma separated paths to the data inside the submission object that must be used for the eSignature verification. Submission data is verified by default.","applyMaskOn":"change","tableView":true,"key":"submissionProps","type":"textfield","input":true},{"label":"Do not disable signed data","tooltip":"When enabled, the form fields confirmed by eSignature will not be disabled in the UI.","tableView":false,"defaultValue":false,"key":"notDisableSignedData","type":"checkbox","input":true},{"title":"Templates","collapsible":true,"key":"templates","type":"panel","label":"Panel","input":false,"tableView":false,"components":[{"title":"Available variables","collapsible":true,"key":"availableVariables","type":"panel","label":"Panel","collapsed":true,"input":false,"tableView":false,"components":[{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"<p>The following variables are available for templates:</p>\n<table class=\"table table-bordered table-condensed table-striped\">\n <tr><th>esign</th><td>The form.io eSignature object</td></tr>\n <tr><th>esignTooltip</th><td>The markup of the eSignature tooltip represented as a string (available only for the stamp template).</td></tr>\n <tr><th>esignInvalidMessage</th><td>The default message for invalid eSignature (available only for the stamp template).</td></tr>\n <tr><th>esignIconClass</th><td>The class of the eSignature default stamp icon (available only for the stamp template).</td></tr>\n <tr><th>pdfForm</th><td>Indicates whether the current form has a PDF display type.</td></tr>\n <tr><th>form</th><td>The complete form JSON object</td></tr>\n <tr><th>submission</th><td>The complete submission object.</td></tr>\n <tr><th>data</th><td>The complete submission data object.</td></tr>\n <tr><th>row</th><td>Contextual \"row\" data, used within DataGrid, EditGrid, and Container components</td></tr>\n <tr><th>component</th><td>The current component JSON</td></tr>\n <tr><th>instance</th><td>The current component instance.</td></tr>\n <tr><th>value</th><td>The current value of the component.</td></tr>\n <tr><th>moment</th><td>The moment.js library for date manipulation.</td></tr><tr>\n <th>_</th><td>An instance of <a href=\"https://lodash.com/docs/\" target=\"_blank\" rel=\"noopener noreferrer\">Lodash</a>.</td></tr>\n <tr><th>utils</th><td>An instance of the <a href=\"http://formio.github.io/formio.js/docs/identifiers.html#utils\" target=\"_blank\" rel=\"noopener noreferrer\">FormioUtils</a> object.</td></tr>\n <tr><th>util</th><td>An alias for \"utils\".</td></tr>\n</table>","refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false}]},{"label":"eSignature stamp template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n{% if (esign.valid === true) { %}\n</br>\n&lt;span class=\"formio-esign-stamp\"&gt;\n</br>\n&nbsp;&nbsp;&lt;i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'&gt;&lt;/i&gt;\n</br>\n&nbsp;&nbsp;&lt;span class=\"formio-esign-stamp-description\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;Signed on {{new Date(esign.created).toLocaleString()}}\n</br>\n&nbsp;&nbsp;&lt;/span&gt;\n</br>\n&lt;/span&gt;\n</br>\n{% } %}\n</br>\n{% if (esign.valid !== true) { %}\n</br>\n&lt;span class=\"formio-esign-stamp formio-esign-stamp-invalid formio-esign-stamp-description\"&gt;\n</br>\n&nbsp;&nbsp;&lt;i ref=\"esignTooltip\" style=\"cursor:pointer\" data-tooltip=\"{{esignTooltip}}\" class='{{esignIconClass}}' aria-hidden='true'&gt;&lt;/i&gt; \n</br>\n&nbsp;&nbsp;Invalid eSignature\n</br>\n&lt;/span&gt;\n</br>\n{% } %}\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> that will be used to render eSignature stamp instead of form.io default stamp template.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"stampTemplate","type":"textarea","as":"html","input":true},{"label":"eSignature tooltip template","placeholder":"/*** Lodash Template Code ***/","description":"Example:\n</br>\n<code>\n&lt;div class=\"formio-esign-tooltip\"&gt;\n</br>\n&nbsp;&nbsp;&lt;span class=\"{{esign.valid !== true ? 'formio-esign-tooltip-header-invalid' : ''}} formio-esign-tooltip-header\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&gt;eSignature&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;span class=\"formio-esign-tooltip-status\" &gt;{{esign.valid !== true ? 'invalid' : 'verified'}}&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&lt;/span&gt;\n</br>\n&nbsp;&nbsp;&lt;ul class=\"formio-esign-tooltip-info\"&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=\"formio-esign-tooltip-info-item\"&gt;&lt;span class=\"formio-esign-tooltip-info-item-title\"&gt;ID:&lt;/span&gt;<&lt;span&gt;{{esign?._id || '-'}}&lt;/span&gt;&lt;/li&gt;\n</br>\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=\"formio-esign-tooltip-info-item\"&gt;&lt;span class=\"formio-esign-tooltip-info-item-title\"&gt;Path:&lt;/span&gt;&lt;span&gt;{{esign?.signature?.valuePath || '-'}}&lt;/span&gt;&lt;/li&gt;\n</br>\n&nbsp;&nbsp;&lt;/ul&gt;\n</br>\n&lt;/div&gt;\n</br>\n</code>\n</br>","tooltip":"Add your <a href='https://lodash.com/docs#template'>Lodash Template</a> for eSignature stamp tooltip. This template overrides the default eSignature tooltip.","applyMaskOn":"change","editor":"ace","autoExpand":false,"tableView":true,"key":"tooltipTemplate","type":"textarea","as":"html","input":true}],"collapsed":true}]}
package/package.json CHANGED
@@ -1 +1,75 @@
1
- {"name":"@formio/esignature","version":"1.0.0-rc.7","description":"eSignature components for form.io","main":"esignature.js","types":"lib/index.d.ts","scripts":{"watch":"tsc -w","build:style":"sass ./src/sass/esignature.scss ./dist/esignature.css","build:dist":"rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && yarn build:style","build:dev":"rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.dev.js && yarn build:style","build:portal":"rm -rf lib && rm -rf build && tsc && gulp templates && gulp esignature-config-template && webpack --config=config/webpack.portal.js && sass ./src/sass/esignature.scss ./build/esignature.css","build":"yarn build:portal && yarn build:dist","lint":"tslint -p .","release":"yarn build && yarn publish ./dist --access public","test":"rm -rf lib && tsc && gulp templates && mocha test/*.spec.ts"},"pre-commit":["lint","test"],"files":["*"],"repository":{"type":"git","url":"git+https://github.com/formio/esignature"},"keywords":["Form.io","components"],"license":"UNLICENSED","bugs":{"url":"https://github.com/formio/esignature/issues"},"configVersion":3,"homepage":"https://github.com/formio/esignature#readme","devDependencies":{"@formio/js":"^5.1.0-rc.3","@types/mocha":"^10.0.1","@types/node":"^20.1.5","chai":"^4.3.7","copy-webpack-plugin":"^9.0.1","ejsify":"^1.0.0","esm":"^3.2.25","sass":"^1.77.8","gulp":"^4.0.2","gulp-insert":"^0.5.0","gulp-rename":"^2.0.0","gulp-template":"^5.0.0","javascript-obfuscator":"^4.0.2","jsdom":"^24.0.0","jsdom-global":"^3.0.2","mocha":"^10.4.0","nyc":"^15.1.0","pre-commit":"^1.2.2","request":"^2.88.2","ts-node":"^10.9.1","ts-sinon":"^2.0.2","tslint":"^6.1.2","typescript":"5.1.6","webpack":"^5.88.1","webpack-cli":"^4.9.2","webpack-node-externals":"^3.0.0","webpack-obfuscator":"^3.5.1"},"peerDependencies":{"@formio/js":"^5.0.0"},"dependencies":{}}
1
+ {
2
+ "name": "@formio/esignature",
3
+ "version": "1.0.0",
4
+ "description": "eSignature components for form.io",
5
+ "main": "esignature.js",
6
+ "types": "lib/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "directory": "dist"
10
+ },
11
+ "pre-commit": [
12
+ "lint",
13
+ "test"
14
+ ],
15
+ "files": [
16
+ "*"
17
+ ],
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/formio/esignature"
21
+ },
22
+ "keywords": [
23
+ "Form.io",
24
+ "components"
25
+ ],
26
+ "license": "UNLICENSED",
27
+ "bugs": {
28
+ "url": "https://github.com/formio/esignature/issues"
29
+ },
30
+ "configVersion": 3,
31
+ "homepage": "https://github.com/formio/esignature#readme",
32
+ "devDependencies": {
33
+ "@formio/js": "^5.2.3",
34
+ "@types/mocha": "^10.0.1",
35
+ "@types/node": "^20.1.5",
36
+ "chai": "^4.3.7",
37
+ "copy-webpack-plugin": "^9.0.1",
38
+ "ejsify": "^1.0.0",
39
+ "esm": "^3.2.25",
40
+ "sass": "^1.77.8",
41
+ "gulp": "^4.0.2",
42
+ "gulp-insert": "^0.5.0",
43
+ "gulp-rename": "^2.0.0",
44
+ "gulp-template": "^5.0.0",
45
+ "javascript-obfuscator": "^4.0.2",
46
+ "jsdom": "^24.0.0",
47
+ "jsdom-global": "^3.0.2",
48
+ "mocha": "^10.4.0",
49
+ "nyc": "^15.1.0",
50
+ "pre-commit": "^1.2.2",
51
+ "request": "^2.88.2",
52
+ "ts-node": "^10.9.1",
53
+ "ts-sinon": "^2.0.2",
54
+ "tslint": "^6.1.2",
55
+ "typescript": "5.1.6",
56
+ "webpack": "^5.88.1",
57
+ "webpack-cli": "^4.9.2",
58
+ "webpack-node-externals": "^3.0.0",
59
+ "webpack-obfuscator": "^3.5.1"
60
+ },
61
+ "peerDependencies": {
62
+ "@formio/js": "^5.2.3"
63
+ },
64
+ "dependencies": {},
65
+ "scripts": {
66
+ "watch": "tsc -w",
67
+ "build:style": "sass ./src/sass/esignature.scss ./dist/esignature.css",
68
+ "build:dist": "rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && npm run build:style",
69
+ "build:dev": "rm -rf lib && rm -rf dist && tsc && gulp templates && webpack --config=config/webpack.dev.js && npm run build:style",
70
+ "build:portal": "rm -rf lib && rm -rf build && tsc && gulp templates && gulp esignature-config-template && webpack --config=config/webpack.portal.js && sass ./src/sass/esignature.scss ./build/esignature.css",
71
+ "build": "npm run build:portal && npm run build:dist",
72
+ "lint": "tslint -p .",
73
+ "test": "rm -rf lib && tsc && gulp templates && mocha test/*.spec.ts"
74
+ }
75
+ }