@verdocs/web-sdk 5.3.1 → 5.3.2
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/dist/cjs/index-Be9PlTB7.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +5 -3
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
- package/dist/cjs/{verdocs-kba-dialog_3.cjs.entry.js → verdocs-delegate-dialog_4.cjs.entry.js} +53 -4
- package/dist/cjs/verdocs-delegate-dialog_4.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +37 -4
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
- package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
- package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
- package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
- package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +177 -0
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +154 -0
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +3 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -4
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +4 -2
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-Bb2F00K4.js → p--hL4T8Ae.js} +11 -11
- package/dist/components/{p-Bb2F00K4.js.map → p--hL4T8Ae.js.map} +1 -1
- package/dist/components/{p-im6p8eaY.js → p-9HvXJwEq.js} +3 -3
- package/dist/components/{p-im6p8eaY.js.map → p-9HvXJwEq.js.map} +1 -1
- package/dist/components/{p-IIsukGEV.js → p-B7buybCz.js} +3 -3
- package/dist/components/{p-IIsukGEV.js.map → p-B7buybCz.js.map} +1 -1
- package/dist/components/{p-DkRVY3iu.js → p-BBJxuJAR.js} +6 -6
- package/dist/components/{p-DkRVY3iu.js.map → p-BBJxuJAR.js.map} +1 -1
- package/dist/components/{p-C0nK1qtH.js → p-BCfTxJfb.js} +3 -3
- package/dist/components/{p-C0nK1qtH.js.map → p-BCfTxJfb.js.map} +1 -1
- package/dist/components/{p-BgLJVBaB.js → p-BDDzkCIR.js} +4 -4
- package/dist/components/{p-BgLJVBaB.js.map → p-BDDzkCIR.js.map} +1 -1
- package/dist/components/{p-CgbZe6eM.js → p-BDmKp20X.js} +7 -7
- package/dist/components/{p-CgbZe6eM.js.map → p-BDmKp20X.js.map} +1 -1
- package/dist/components/{p-DzDX8A_h.js → p-BHu8qhRh.js} +3 -3
- package/dist/components/{p-DzDX8A_h.js.map → p-BHu8qhRh.js.map} +1 -1
- package/dist/components/{p-X6ujIO0j.js → p-BMXdvy4u.js} +8 -8
- package/dist/components/{p-X6ujIO0j.js.map → p-BMXdvy4u.js.map} +1 -1
- package/dist/components/{p-DQh221R1.js → p-BN5wpJih.js} +12 -12
- package/dist/components/{p-DQh221R1.js.map → p-BN5wpJih.js.map} +1 -1
- package/dist/components/{p-ke4RFlpQ.js → p-BP9TCpZ6.js} +25 -25
- package/dist/components/{p-ke4RFlpQ.js.map → p-BP9TCpZ6.js.map} +1 -1
- package/dist/components/{p-BHKb3X7a.js → p-BRC3PsLk.js} +9 -9
- package/dist/components/{p-BHKb3X7a.js.map → p-BRC3PsLk.js.map} +1 -1
- package/dist/components/{p-BPaxQrtW.js → p-BakshEO1.js} +3 -3
- package/dist/components/{p-BPaxQrtW.js.map → p-BakshEO1.js.map} +1 -1
- package/dist/components/p-BpUKXYCJ.js +83 -0
- package/dist/components/p-BpUKXYCJ.js.map +1 -0
- package/dist/components/{p-B8nK0hJl.js → p-Bswg8Fe8.js} +11 -11
- package/dist/components/{p-B8nK0hJl.js.map → p-Bswg8Fe8.js.map} +1 -1
- package/dist/components/{p-dIi8HYZ5.js → p-CEXKKH9Z.js} +9 -9
- package/dist/components/{p-dIi8HYZ5.js.map → p-CEXKKH9Z.js.map} +1 -1
- package/dist/components/{p-WhDWrMQm.js → p-CFBQG_2F.js} +11 -11
- package/dist/components/{p-WhDWrMQm.js.map → p-CFBQG_2F.js.map} +1 -1
- package/dist/components/{p-D_x2HuZp.js → p-CJIN0YXw.js} +11 -11
- package/dist/components/{p-D_x2HuZp.js.map → p-CJIN0YXw.js.map} +1 -1
- package/dist/components/{p-kaKbklxN.js → p-CSFCBy3P.js} +27 -27
- package/dist/components/{p-kaKbklxN.js.map → p-CSFCBy3P.js.map} +1 -1
- package/dist/components/{p-BcXBFK4l.js → p-CUlK6Rs_.js} +5 -5
- package/dist/components/{p-BcXBFK4l.js.map → p-CUlK6Rs_.js.map} +1 -1
- package/dist/components/{p-Cn6fa00B.js → p-CVkbflKM.js} +3 -3
- package/dist/components/{p-Cn6fa00B.js.map → p-CVkbflKM.js.map} +1 -1
- package/dist/components/{p-BV_wbVq4.js → p-Cexe1-Oo.js} +3 -3
- package/dist/components/{p-BV_wbVq4.js.map → p-Cexe1-Oo.js.map} +1 -1
- package/dist/components/{p-CLHwiJsu.js → p-Cf1Xpjup.js} +3 -3
- package/dist/components/{p-CLHwiJsu.js.map → p-Cf1Xpjup.js.map} +1 -1
- package/dist/components/{p-D38Lnu3J.js → p-CfqdAcYb.js} +3 -3
- package/dist/components/{p-D38Lnu3J.js.map → p-CfqdAcYb.js.map} +1 -1
- package/dist/components/{p-Crehnwtj.js → p-Ck25a52V.js} +10 -10
- package/dist/components/{p-Crehnwtj.js.map → p-Ck25a52V.js.map} +1 -1
- package/dist/components/{p-DDAZR40U.js → p-Cry7waUN.js} +6 -6
- package/dist/components/{p-DDAZR40U.js.map → p-Cry7waUN.js.map} +1 -1
- package/dist/components/{p-DBr1-dfD.js → p-D0rJh5my.js} +3 -3
- package/dist/components/{p-DBr1-dfD.js.map → p-D0rJh5my.js.map} +1 -1
- package/dist/components/{p-Bs52WSYR.js → p-D13UCp1m.js} +6 -6
- package/dist/components/{p-Bs52WSYR.js.map → p-D13UCp1m.js.map} +1 -1
- package/dist/components/{p-CunjhIft.js → p-D8_fPEOD.js} +8 -8
- package/dist/components/{p-CunjhIft.js.map → p-D8_fPEOD.js.map} +1 -1
- package/dist/components/{p-GUGCYQ6F.js → p-DAGrOW1D.js} +5 -5
- package/dist/components/{p-GUGCYQ6F.js.map → p-DAGrOW1D.js.map} +1 -1
- package/dist/components/{p-DD5pf8Tj.js → p-DAelmHnU.js} +5 -5
- package/dist/components/{p-DD5pf8Tj.js.map → p-DAelmHnU.js.map} +1 -1
- package/dist/components/{p-C2Fb8G6A.js → p-DCy6nwED.js} +12 -12
- package/dist/components/{p-C2Fb8G6A.js.map → p-DCy6nwED.js.map} +1 -1
- package/dist/components/{p-D3n1gA61.js → p-DGdQtEJc.js} +11 -11
- package/dist/components/{p-D3n1gA61.js.map → p-DGdQtEJc.js.map} +1 -1
- package/dist/components/{p-XHSVTLB0.js → p-DMYs4VZa.js} +3 -3
- package/dist/components/{p-XHSVTLB0.js.map → p-DMYs4VZa.js.map} +1 -1
- package/dist/components/{p-CPRS8f3I.js → p-DNOYDWfH.js} +13 -13
- package/dist/components/{p-CPRS8f3I.js.map → p-DNOYDWfH.js.map} +1 -1
- package/dist/components/{p-CDFzZQgR.js → p-DSuGln_n.js} +4 -4
- package/dist/components/{p-CDFzZQgR.js.map → p-DSuGln_n.js.map} +1 -1
- package/dist/components/{p-B3jMBr0M.js → p-Dq3ca8_9.js} +10 -8
- package/dist/components/p-Dq3ca8_9.js.map +1 -0
- package/dist/components/{p-D5OLYsa3.js → p-Dsw72vlR.js} +4 -4
- package/dist/components/{p-D5OLYsa3.js.map → p-Dsw72vlR.js.map} +1 -1
- package/dist/components/{p-CUMKIsSw.js → p-Dt-0j6pv.js} +3 -3
- package/dist/components/{p-CUMKIsSw.js.map → p-Dt-0j6pv.js.map} +1 -1
- package/dist/components/{p-B86IoqG1.js → p-IhdX5vVL.js} +3 -3
- package/dist/components/{p-B86IoqG1.js.map → p-IhdX5vVL.js.map} +1 -1
- package/dist/components/{p-C8toWnqC.js → p-K9Q7whri.js} +4 -4
- package/dist/components/{p-C8toWnqC.js.map → p-K9Q7whri.js.map} +1 -1
- package/dist/components/{p-DGRiUZlM.js → p-LNfVhsoj.js} +26 -26
- package/dist/components/{p-DGRiUZlM.js.map → p-LNfVhsoj.js.map} +1 -1
- package/dist/components/{p-DxZzj3bW.js → p-_nUQ5iEk.js} +3 -3
- package/dist/components/{p-DxZzj3bW.js.map → p-_nUQ5iEk.js.map} +1 -1
- package/dist/components/{p-BodfySqq.js → p-b88NoejR.js} +4 -4
- package/dist/components/{p-BodfySqq.js.map → p-b88NoejR.js.map} +1 -1
- package/dist/components/{p-DmSZqyDY.js → p-dDTMckyL.js} +3 -3
- package/dist/components/{p-DmSZqyDY.js.map → p-dDTMckyL.js.map} +1 -1
- package/dist/components/{p-B79DYGjE.js → p-gCXTKxs5.js} +3 -3
- package/dist/components/{p-B79DYGjE.js.map → p-gCXTKxs5.js.map} +1 -1
- package/dist/components/{p-DGiDigbo.js → p-gJ8vsaSU.js} +9 -9
- package/dist/components/{p-DGiDigbo.js.map → p-gJ8vsaSU.js.map} +1 -1
- package/dist/components/{p-TyROYR6-.js → p-pXqgg9BU.js} +4 -4
- package/dist/components/{p-TyROYR6-.js.map → p-pXqgg9BU.js.map} +1 -1
- package/dist/components/{p-BwIyL1sF.js → p-r7qm8EsM.js} +11 -11
- package/dist/components/{p-BwIyL1sF.js.map → p-r7qm8EsM.js.map} +1 -1
- package/dist/components/{p-BGMd4wA7.js → p-uNT6jl98.js} +13 -13
- package/dist/components/{p-BGMd4wA7.js.map → p-uNT6jl98.js.map} +1 -1
- package/dist/components/{p-DB-CFkUZ.js → p-vZUBjvdn.js} +11 -11
- package/dist/components/{p-DB-CFkUZ.js.map → p-vZUBjvdn.js.map} +1 -1
- package/dist/components/{p-Blv4Px1q.js → p-xbfIS4ny.js} +4 -4
- package/dist/components/{p-Blv4Px1q.js.map → p-xbfIS4ny.js.map} +1 -1
- package/dist/components/{p-BQjKN6Ez.js → p-zOGAwuLP.js} +3 -3
- package/dist/components/{p-BQjKN6Ez.js.map → p-zOGAwuLP.js.map} +1 -1
- package/dist/components/verdocs-auth.js +3 -3
- package/dist/components/verdocs-build.js +41 -41
- package/dist/components/verdocs-button-panel.js +1 -1
- package/dist/components/verdocs-button.js +1 -1
- package/dist/components/verdocs-checkbox.js +1 -1
- package/dist/components/verdocs-component-error.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-date-input.js +3 -3
- package/dist/components/verdocs-delegate-dialog.d.ts +11 -0
- package/dist/components/verdocs-delegate-dialog.js +9 -0
- package/dist/components/verdocs-delegate-dialog.js.map +1 -0
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-dropdown.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +10 -10
- package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
- package/dist/components/verdocs-envelope-update-recipient.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +16 -16
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +9 -9
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-file-chooser.js +1 -1
- package/dist/components/verdocs-help-icon.js +1 -1
- package/dist/components/verdocs-initial-dialog.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-loader.js +1 -1
- package/dist/components/verdocs-menu-panel.js +1 -1
- package/dist/components/verdocs-multiselect.js +2 -2
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-organization-card.js +2 -2
- package/dist/components/verdocs-otp-dialog.js +1 -1
- package/dist/components/verdocs-pagination.js +1 -1
- package/dist/components/verdocs-portal.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-progress-bar.js +1 -1
- package/dist/components/verdocs-quick-filter.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-radio-button.js +1 -1
- package/dist/components/verdocs-search-box.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-select-input.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +61 -19
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-spinner.js +1 -1
- package/dist/components/verdocs-status-indicator.js +1 -1
- package/dist/components/verdocs-switch.js +1 -1
- package/dist/components/verdocs-table.js +2 -2
- package/dist/components/verdocs-tabs.js +1 -1
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-build-tabs.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-create.js +4 -4
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-template-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +17 -17
- package/dist/components/verdocs-text-input.js +1 -1
- package/dist/components/verdocs-toggle-button.js +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-toolbar-icon.js +1 -1
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +17 -0
- package/dist/esm/index-CF7i8guW.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
- package/dist/esm/verdocs-button_3.entry.js +6 -6
- package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
- package/dist/esm/verdocs-contact-picker.entry.js +5 -3
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-date-input.entry.js +2 -2
- package/dist/esm/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
- package/dist/esm/{verdocs-kba-dialog_3.entry.js → verdocs-delegate-dialog_4.entry.js} +54 -6
- package/dist/esm/verdocs-delegate-dialog_4.entry.js.map +1 -0
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
- package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
- package/dist/esm/verdocs-multiselect.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-box.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +38 -5
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-spinner.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-switch.entry.js +2 -2
- package/dist/esm/verdocs-table.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +7 -7
- package/dist/esm/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-CF7i8guW.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-delegate-dialog_4.entry.js +2 -0
- package/dist/{esm/verdocs-kba-dialog_3.entry.js.map → esm-es5/verdocs-delegate-dialog_4.entry.js.map} +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-switch.entry.js +1 -1
- package/dist/esm-es5/verdocs-table.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.d.ts +38 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -0
- package/dist/types/components.d.ts +65 -0
- package/dist/verdocs-web-sdk/{p-f28a1014.entry.js → p-001f340b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js → p-034eb84e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b720bffc.entry.js → p-0359f32e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js → p-127c5b10.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cb428e80.entry.js → p-1d72e3ab.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js → p-204afc1e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js → p-2514da1e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js → p-2a087f29.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-48299322.entry.js → p-327e38bf.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-33691e24.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-33691e24.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js → p-352ab9b7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-32d77c26.entry.js → p-356af98a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js → p-3a0cc47f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js → p-3ab1625e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js → p-42939fbd.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-484341d0.entry.js → p-43971b64.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js → p-4a0dc414.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js → p-4c5bb9d1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js → p-4d563225.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js → p-4e28a33a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-df954c57.entry.js → p-4e9d67fe.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js → p-596326ba.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-59723c89.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-1718b823.entry.js.map → p-59723c89.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js → p-5f8f5f48.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js → p-6013eb3f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-76215a73.entry.js → p-655c3035.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aa18533b.entry.js → p-672b6b7b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js → p-6845c12e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fb00149a.entry.js → p-68b11f68.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js → p-6a5c1de9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6f6a0c7a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js → p-72c996d0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js → p-72e9198d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js.map → p-72e9198d.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js → p-767c93e8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js → p-76a86430.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9f4c393c.system.entry.js → p-76aed8e2.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-76aed8e2.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-49522ebb.entry.js → p-784daaf3.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js → p-7f085b76.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-832e4346.entry.js → p-80f0dfbc.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-80f0dfbc.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-e8713631.entry.js → p-86e18c44.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-e8713631.entry.js.map → p-86e18c44.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-43326217.entry.js → p-8be6c2b0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-71793bb2.entry.js → p-92d45701.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js → p-931bf9ec.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js → p-963208c6.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js → p-99f4f945.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-BQeD2Uzl.system.js.map → p-B8hJTIPP.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CgaVlmPG.system.js.map → p-BDGgiBJR.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Dt57R1T4.system.js.map → p-BK8oE7he.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CzcrfRov.system.js.map → p-BOuTTVR2.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Bf4B0vsS.system.js.map → p-BPt7ZeYN.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BQneONkc.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DR2NwM3E.system.js.map → p-B_BNAU2R.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Bv035E2W.system.js.map → p-Bbn-DzjB.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BfaNlwpr.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-BH-YVoIR.system.js.map → p-BtN2tR0_.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DnhrroGp.system.js.map → p-C28cwiJN.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Dt0S5N8D.system.js.map → p-C3pXyYu2.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BqV2sLyM.system.js.map → p-C4wFtWGl.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-B9makh4c.system.js.map → p-CB78zeGU.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BEa6VFpF.system.js.map → p-CD2Fdeq7.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-fih-g25U.system.js.map → p-CHZu9FwY.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DAWcoDTu.system.js.map → p-CflLDny-.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DqMEkp6a.system.js.map → p-CqnaEr0M.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DwPw01KR.system.js.map → p-Ctlx9aRK.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-DtqpEcJn.system.js.map → p-CxebBOfo.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CMjFvlqO.system.js.map → p-CyniDtbb.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BXdHDPn2.system.js.map → p-D2By4ZeB.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DFOpAjqC.system.js.map → p-DdgLD7ev.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p--x2D_CxE.system.js.map → p-Dmi3C21y.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CJHhU-q9.system.js.map → p-DpJ6fOKq.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CqlWk1GQ.system.js.map → p-Ds5wL-Co.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DHGQrIAb.system.js.map → p-DsSM-GM5.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-D3kzqvo2.system.js.map → p-L5sYoH8b.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CNuYIT4Z.system.js.map → p-LIkyGpz6.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-C6DpDki6.system.js.map → p-U0rW0Gqv.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-07a175f6.entry.js → p-a1e4b631.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js → p-a279bb92.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-a734eed0.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-0613e287.entry.js → p-b980a35c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js → p-be6db7c0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js → p-bee95303.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js → p-c48624a8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js → p-c5b23884.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-BsWaGIkx.system.js.map → p-cI4bagwT.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-720ceced.entry.js → p-cc823255.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js → p-cd56307c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js → p-cd60348a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js → p-ce2336aa.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a3354a48.entry.js → p-d1e99a40.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js → p-d2a4aedb.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js → p-dbb8413d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e3414fba.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e3414fba.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js → p-e8c146fc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js → p-ed194be6.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js → p-efc459f7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js → p-fb9bc98b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js → p-fe22a117.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-C99h0Uet.system.js.map → p-jcVDqxOd.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CtQG0G-c.system.js.map → p-luuB7PWr.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
- package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js.map +0 -1
- package/dist/components/p-B3jMBr0M.js.map +0 -1
- package/dist/esm/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +0 -2
- package/dist/esm-es5/verdocs-kba-dialog_3.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1718b823.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1ad8c20c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-33edf6a4.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3aabadbe.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3aabadbe.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-832e4346.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-C2JOLTNG.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CC3tLap5.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DM4F2Fmu.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d8b36d95.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d8b36d95.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-f28a1014.entry.js.map → p-001f340b.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js.map → p-034eb84e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b720bffc.entry.js.map → p-0359f32e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js.map → p-127c5b10.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-cb428e80.entry.js.map → p-1d72e3ab.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js.map → p-204afc1e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js.map → p-2514da1e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js.map → p-2a087f29.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-48299322.entry.js.map → p-327e38bf.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js.map → p-352ab9b7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-32d77c26.entry.js.map → p-356af98a.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js.map → p-3a0cc47f.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js.map → p-3ab1625e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js.map → p-42939fbd.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-484341d0.entry.js.map → p-43971b64.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js.map → p-4a0dc414.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js.map → p-4c5bb9d1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js.map → p-4d563225.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js.map → p-4e28a33a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-df954c57.entry.js.map → p-4e9d67fe.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js.map → p-596326ba.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js.map → p-5f8f5f48.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js.map → p-6013eb3f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-76215a73.entry.js.map → p-655c3035.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-aa18533b.entry.js.map → p-672b6b7b.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js.map → p-6845c12e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-fb00149a.entry.js.map → p-68b11f68.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js.map → p-6a5c1de9.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-33edf6a4.system.entry.js.map → p-6f6a0c7a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js.map → p-72c996d0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js.map → p-767c93e8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js.map → p-76a86430.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-49522ebb.entry.js.map → p-784daaf3.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js.map → p-7f085b76.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-43326217.entry.js.map → p-8be6c2b0.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-71793bb2.entry.js.map → p-92d45701.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js.map → p-931bf9ec.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js.map → p-963208c6.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js.map → p-99f4f945.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-07a175f6.entry.js.map → p-a1e4b631.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js.map → p-a279bb92.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1ad8c20c.entry.js.map → p-a734eed0.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0613e287.entry.js.map → p-b980a35c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js.map → p-be6db7c0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js.map → p-bee95303.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js.map → p-c48624a8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js.map → p-c5b23884.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-720ceced.entry.js.map → p-cc823255.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js.map → p-cd56307c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js.map → p-cd60348a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js.map → p-ce2336aa.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a3354a48.entry.js.map → p-d1e99a40.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js.map → p-d2a4aedb.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js.map → p-dbb8413d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js.map → p-e8c146fc.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js.map → p-ed194be6.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js.map → p-efc459f7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js.map → p-fb9bc98b.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js.map → p-fe22a117.system.entry.js.map} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsSignCss","DEFAULT_DISCLOSURE","inProgressMenuOptions","id","label","doneMenuOptions","VerdocsSign","exports","class_1","hostRef","this","endpoint","DefaultEndpoint","envelopeId","roleId","inviteCode","headerTargetId","recipient","hasSignature","nextButtonLabel","nextSubmits","fatalErrorHeader","fatalErrorMessage","focusedField","disclosure","submitting","submitted","isDone","showDone","showLoadError","finishLater","showFinishLater","agreed","documentsSingularPlural","authStep","authMethodStates","kbaQuestions","showSpinner","declining","delegating","delegated","kbaChoices","loading","envelope","prototype","componentWillLoad","console","log","VerdocsEndpoint","sessionType","componentDidLoad","_a","sdkError","emit","SDKError","_b","_c","concat","startSigningSession","response","_g","sent","processAuthResponse","e_1","_d","message","_e","status","_f","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","auth_step","organization","disclaimer","delegated_to","Store","updateEnvelope","documents","length","auth_method_states","kba_questions","Object","values","includes","checkRecipientFields","envelopeLoaded","handleClickAgree","_this","envelopeRecipientAgree","then","envelopeUpdated","event","catch","e","handleOptionSelected","detail","VerdocsToast","envelopeRecipientDecline","declineResult","_h","window","print","firstDoc","find","doc","type","saveAttachment","updateRecipientFieldValue","fieldName","updateResult","getRecipientFields","forEach","oldField","name","value","settings","updateDocumentFieldValue","saveFieldChange","fields","updateEnvelopeField","error","handleFieldChange","field","target","checked","prepared","String","fetch","_j","blob","initialsBlob","createInitials","newInitials","__awaiter","updateEnvelopeFieldInitials","signatureBlob","createSignature","newSignature","updateEnvelopeFieldSignature","warn","formattedDate","ts","getAttribute","isFieldFilled","validator","isValidEmail","isValidPhone","trim","group","filter","f","some","isFieldValid","required","getSortedFillableFields","recipientFields","sortFields","handleNext","envelopeRecipientSubmit","result","getEnvelope","e_2","emptyFields","focusedIndex","findIndex","nextFocusedIndex","nextRequiredField","skips","getFieldId","el","scrollIntoView","behavior","focusField","role_name","invalidFields","map","attachFieldAttributes","pageInfo","setAttribute","addEventListener","finally","uploadEnvelopeFieldAttachment","newEl","renderDocumentField","disabled","editable","draggable","done","e_3","style","deleteEnvelopeFieldAttachment","e_4","template_id","pageNumber","xScale","yScale","fullName","formatFullName","fullNameToInitials","handlePageRendered","tabIndex","page","Array","isArray","recipients","r","handleAuthenticateSigner","params","verifySigner","render","h","Host","heading","buttonLabel","onNext","location","reload","class","onSdkError","preventDefault","stopPropagation","onExit","delegateRecipient","showCancel","src","alt","paddingTop","width","height","boxShadow","marginTop","onInput","innerHTML","variant","onClick","delegator","mode","step","steps","placeholder","helptitle","helptext","auth_method","code","method","kba","recipDetails","first_name","last_name","address","city","state","zip","dob","questionNumber","kbaQuestion","prompt","choices","answer","__spreadArray","responses","q","i","flex","size","marginLeft","options","onOptionSelected","envelopeDocument","pageNumbers","integerSequence","pages","Fragment","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/embeds/verdocs-sign/verdocs-sign.scss?tag=verdocs-sign","src/components/embeds/verdocs-sign/verdocs-sign.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-sign {\n display: flex;\n overflow: hidden;\n position: relative;\n min-height: 600px;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div {\n display: block;\n box-sizing: border-box;\n }\n\n input {\n vertical-align: top;\n }\n\n //.intro {\n // width: 100%;\n // display: flex;\n // flex: 0 0 60px;\n // color: #111111;\n // font-size: 18px;\n // font-weight: 500;\n // line-height: 28px;\n // flex-direction: row;\n // background: #ffffff;\n //\n // .inner {\n // width: 100%;\n // display: flex;\n // margin: 0 auto;\n // padding: 0 20px;\n // max-width: 1200px;\n // flex-direction: row;\n // align-items: center;\n // }\n //}\n\n > .document {\n flex: 1;\n width: 100%;\n height: 100%;\n align-self: center;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n max-width: 1200px;\n min-height: 200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .cover {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 5000;\n position: absolute;\n padding-top: 100px;\n align-items: center;\n flex-direction: column;\n background: rgba(0, 0, 0, 0.5);\n }\n\n .agree {\n flex: 0;\n width: 600px;\n display: flex;\n max-width: 90%;\n padding: 30px 15px;\n flex-direction: column;\n background-color: #ffffff;\n\n .header {\n flex: 0 0 56px;\n }\n\n li {\n margin: 0.5em 0;\n }\n }\n\n verdocs-ok-dialog .background-overlay {\n align-items: flex-start;\n padding-top: 100px;\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n\n .fatal-error {\n position: absolute;\n z-index: 100;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #4a4a4a;\n display: flex;\n align-items: center;\n justify-content: center;\n\n .placeholder {\n position: absolute;\n opacity: 0.1;\n z-index: -1;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 612px;\n height: 792px;\n box-shadow: 0 0 10px 5px #0000000f;\n margin-top: 15px;\n }\n\n .message {\n max-width: 360px;\n width: 50%;\n font-size: 16px;\n background: white;\n box-shadow: 3px 3px 9px -1px #0000003f;\n }\n\n .header {\n color: white;\n font-size: 18px;\n font-weight: 500;\n padding: 5px 10px;\n margin: 0 0 10px 0;\n background: $verdocs-purple-shade;\n }\n\n p {\n margin: 1rem;\n font-size: 14px;\n font-weight: 400;\n padding: 0 10px;\n }\n }\n\n .disclosure-buttons {\n verdocs-button {\n margin: 0 12px 0 0;\n }\n }\n}\n\n@media print {\n verdocs-sign .header {\n display: none;\n }\n}\n\n#verdocs-sign-header {\n color: #fff;\n width: 100%;\n display: flex;\n z-index: 1000;\n flex: 0 0 46px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 12px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n padding: 0 10px 0 0;\n text-overflow: ellipsis;\n }\n}\n\n.spinner-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n}\n","import {updateEnvelopeField, sortFields, IKBAQuestion, ISignerTokenResponse, delegateRecipient} from '@verdocs/js-sdk';\nimport {Event, EventEmitter, Host, Fragment, Component, Prop, State, h} from '@stencil/core';\nimport {verifySigner, IEnvelope, IEnvelopeField, IRecipient, TAuthenticateRecipientRequest} from '@verdocs/js-sdk';\nimport {getEnvelope, integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials} from '@verdocs/js-sdk';\nimport {fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, formatFullName} from '@verdocs/js-sdk';\nimport {updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, TRecipientAuthMethod} from '@verdocs/js-sdk';\nimport {createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit} from '@verdocs/js-sdk';\nimport {getFieldId, renderDocumentField, saveAttachment, updateDocumentFieldValue} from '../../../utils/utils';\nimport {DefaultEndpoint} from '../../../utils/Environment';\nimport {IDocumentPageInfo} from '../../../utils/Types';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst DEFAULT_DISCLOSURE = `\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>`;\n\nconst inProgressMenuOptions = [\n {id: 'later', label: 'Finish Later'}, //\n // {id: 'claim', label: 'Claim the Document', disabled: true},\n {id: 'decline', label: 'Decline to Sign'},\n {id: 'print', label: 'Print Without Signing'},\n {id: 'download', label: 'Download'},\n];\n\nconst doneMenuOptions = [\n {id: 'print', label: 'Print'},\n {id: 'download', label: 'Download'},\n];\n\n/**\n * Display an envelope signing experience. This will display the envelope's attached\n * documents with signing fields overlaid on each page.\n *\n * The component will attempt to initiate a signing session and load the specified\n * envelope. If successful, the recipient's fields will be enabled and the user will\n * be able to sign the envelope's attached documents. If not, an `sdkError` will be\n * thrown and the component will be blank/empty. To provide the best user experience,\n * applications should capture and handle this error to provide the user with\n * instructions/options for next steps based on the application's design and workflow.\n *\n * Unlike other components, this will always create its own endpoint to manage the\n * session session. This endpoint will be included in event callbacks for the\n * convenience of host applications that may wish to make server calls using the\n * signer's credentials once signing is complete (e.g. to obtain copies of\n * the signed attachments.)\n *\n * ```ts\n * <verdocs-sign\n * envelopeId={ENVELOPE_ID}\n * roleId={ROLE_ID}\n * inviteCode={INVITE_CODE}\n * envelopeUpdated={({ detail }) => console.log('Envelope updated state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-sign',\n styleUrl: 'verdocs-sign.scss',\n shadow: false,\n})\nexport class VerdocsSign {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop({mutable: true}) endpoint: VerdocsEndpoint = DefaultEndpoint;\n\n /**\n * The ID of the envelope to sign.\n */\n @Prop({reflect: true}) envelopeId: string | null = null;\n\n /**\n * The ID of the role that will be signing e.g. 'Recipient 1'\n */\n @Prop({reflect: true}) roleId: string | null = null;\n\n /**\n * The invite code for the signer.\n */\n @Prop({reflect: true}) inviteCode: string | null = null;\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is loaded for the first time.\n */\n @Event({composed: true}) envelopeLoaded: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the envelope is updated in any way.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n // @State() roleNames: string[] = [];\n // @State() sortedRecipients: IRecipient[] = [];\n @State() recipient: IRecipient | null = null;\n @State() hasSignature = false;\n @State() nextButtonLabel = 'Start';\n @State() nextSubmits = false;\n @State() fatalErrorHeader = '';\n @State() fatalErrorMessage = '';\n @State() focusedField = '';\n @State() disclosure = DEFAULT_DISCLOSURE;\n @State() submitting = false;\n @State() submitted = false;\n @State() isDone = false;\n @State() showDone = false;\n @State() showLoadError = false;\n @State() finishLater = false;\n @State() showFinishLater = false;\n @State() agreed = false;\n @State() documentsSingularPlural = 'document';\n @State() authStep: string | null = null;\n @State() authMethodStates: Partial<Record<TRecipientAuthMethod, string>> = {};\n @State() kbaQuestions: IKBAQuestion[] | null = null;\n @State() showSpinner = false;\n @State() declining = false;\n @State() delegating = false;\n @State() delegated = false;\n @State() kbaChoices = [];\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n // recipientIndex: number = -1;\n\n componentWillLoad() {\n if (!this.endpoint) {\n console.log('[SIGN] Creating signing endpoint');\n this.endpoint = new VerdocsEndpoint({sessionType: 'signing'});\n }\n }\n\n async componentDidLoad() {\n if (!this.envelopeId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required envelopId', 500, ''));\n return;\n }\n\n if (!this.roleId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required roleId', 500, ''));\n return;\n }\n\n if (!this.inviteCode) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required inviteCode', 500, ''));\n return;\n }\n\n try {\n console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);\n\n // NOTE: We don't listen to the store here because we are often an independent\n // session and might have a different \"view\" of the envelope.\n const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);\n console.log('[SIGN] Authentication successful', response);\n this.processAuthResponse(response);\n } catch (e) {\n console.log('[SIGN] Error with signing session', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n this.showLoadError = true;\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-sign-header');\n if (headerTarget && headerEl) {\n console.log('[SIGN] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n processAuthResponse(response: ISignerTokenResponse) {\n const {envelope, recipient} = response;\n const {auth_step} = recipient;\n this.recipient = recipient;\n this.envelope = envelope;\n this.disclosure = this.envelope?.organization?.disclaimer || DEFAULT_DISCLOSURE;\n this.authStep = auth_step;\n this.delegated = !!recipient.delegated_to;\n this.agreed = recipient.agreed;\n this.submitted = recipient.status === 'submitted';\n this.isDone = this.submitted;\n this.showDone = this.submitted;\n Store.updateEnvelope(this.envelopeId, envelope);\n\n if (this.envelope.documents.length > 0) {\n this.documentsSingularPlural = 'document(s)';\n }\n\n this.authMethodStates = recipient.auth_method_states || ({} as Record<TRecipientAuthMethod, string>);\n this.kbaQuestions = recipient.kba_questions;\n if (Object.values(this.authMethodStates).includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n }\n\n // TODO: Envelope \"complete\" | \"declined\" | \"canceled\"\n // TODO: Recipient \"canceled\"\n\n if (this.envelope.status === 'canceled') {\n this.fatalErrorHeader = 'Unable to Start Signing Session';\n this.fatalErrorMessage = 'This envelope has been canceled. The sender has been notified.';\n } else if (recipient.status === 'declined') {\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';\n } else if (this.agreed) {\n this.nextButtonLabel = 'Next';\n }\n\n this.checkRecipientFields();\n this.envelopeLoaded?.emit({endpoint: this.endpoint, envelope: this.envelope});\n }\n\n handleClickAgree() {\n this.submitting = true;\n envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, true, this.disclosure)\n .then(() => {\n this.nextButtonLabel = 'Next';\n this.recipient.agreed = true;\n this.submitting = false;\n this.agreed = true; // The server returns a recipient object but it's not \"deep\" so we track this locally\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'agreed'});\n })\n .catch(e => {\n console.log('[SIGN] Update failure', e);\n this.submitting = false;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'later':\n this.finishLater = true;\n this.showFinishLater = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'later'});\n break;\n\n case 'claim':\n VerdocsToast('This feature will be available in an upcoming release.');\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'claimed'});\n break;\n\n case 'decline':\n {\n this.submitting = true;\n const declineResult = await envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Decline result', declineResult);\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'declined'});\n this.submitting = false;\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download':\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n saveAttachment(this.endpoint, this.envelope, firstDoc.id).catch(e => {\n console.log('[SIGN] Error downloading PDF', e);\n });\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n }\n }\n break;\n }\n }\n\n updateRecipientFieldValue(fieldName: string, updateResult: any) {\n console.log('[SIGN] updateRecipientFieldValue', fieldName, updateResult);\n this.getRecipientFields().forEach(oldField => {\n if (oldField.name === fieldName) {\n oldField.value = updateResult.value;\n // TODO: Keeping this while attachments still rely on it\n oldField.settings = updateResult.settings;\n updateDocumentFieldValue(oldField);\n this.checkRecipientFields();\n }\n });\n }\n\n saveFieldChange(fieldName: string, fields: Record<string, any>) {\n console.log('[SIGN] saveFieldChange', fieldName, fields);\n updateEnvelopeField(this.endpoint, this.envelopeId, fieldName, fields) //\n .then(updateResult => this.updateRecipientFieldValue(fieldName, updateResult))\n .catch(e => {\n if (e.response?.status === 401 && e.response?.data?.error === 'jwt expired') {\n console.log('[SIGN] Signing session expired');\n this.fatalErrorHeader = 'Signing Session Expired';\n this.fatalErrorMessage = 'Please reload your browser to continue.';\n } else {\n console.log('[SIGN] Server error', e);\n }\n\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleFieldChange(field: IEnvelopeField, e: any) {\n const {value, checked} = e.target;\n\n switch (field.type as any) {\n // TODO: Remove legacy type when no longer needed\n case 'textarea':\n case 'textbox':\n return this.saveFieldChange(field.name, {prepared: false, value});\n\n case 'checkbox': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'radio': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'dropdown':\n // TODO: Set prepared to false server-side.\n console.log('Saving dropdown', field.name, e.detail);\n return this.saveFieldChange(field.name, {prepared: false, value: e.detail});\n\n case 'initial':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const initialsBlob = await (await fetch(e.detail)).blob();\n return createInitials(this.endpoint, 'initial', initialsBlob) //\n .then(async newInitials => {\n const updateResult = await updateEnvelopeFieldInitials(this.endpoint, this.envelopeId, field.name, newInitials.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.log('Error updating initials', e);\n this.showSpinner = false;\n });\n\n case 'signature':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const signatureBlob = await (await fetch(e.detail)).blob();\n return createSignature(this.endpoint, 'signature', signatureBlob) //\n .then(async newSignature => {\n console.log('Signature update result', newSignature);\n const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.warn('[SIGN] Error updating signature', e);\n this.showSpinner = false;\n });\n\n case 'date':\n const {formattedDate} = e.detail;\n if (formattedDate) {\n return this.saveFieldChange(field.name, {prepared: false, value: formattedDate});\n }\n break;\n\n case 'timestamp':\n console.log('[SIGN] Updating timestamp', {value, ts: e.target.getAttribute('timestamp')});\n break;\n\n default:\n console.log('[SIGN] Unhandled field update', {value, checked}, field);\n break;\n }\n }\n\n isFieldFilled(field: IEnvelopeField) {\n const {value = ''} = field;\n switch (field.type as any) {\n case 'textarea':\n case 'textbox':\n switch (field.validator || '') {\n case 'email':\n return isValidEmail(value);\n case 'phone':\n return isValidPhone(value);\n default:\n return (value || '').trim() !== '';\n }\n\n case 'signature':\n return value === 'signed';\n\n case 'initial':\n return value === 'initialed';\n\n // Timestamp fields get automatically filled when the envelope is submitted.\n case 'timestamp':\n return true;\n\n case 'date':\n return !!value;\n\n case 'attachment':\n return value === 'attached';\n\n case 'dropdown':\n return value !== '';\n\n case 'checkbox':\n return value === 'true';\n\n case 'radio':\n if (!!field.group) {\n return this.getRecipientFields()\n .filter(f => f.group === field.group)\n .some(field => field.value === 'true');\n }\n\n return field.value === 'true';\n\n default:\n return false;\n }\n }\n\n isFieldValid(field: IEnvelopeField) {\n return !field.required || this.isFieldFilled(field);\n }\n\n getSortedFillableFields() {\n const recipientFields = this.getRecipientFields().filter(field => field.type !== 'timestamp');\n sortFields(recipientFields);\n return recipientFields;\n }\n\n async handleNext() {\n if (this.nextSubmits) {\n try {\n // Patches the date picker to be forcibly removed if still showing during submission\n document.getElementById('air-datepicker-global-container')?.remove();\n\n this.submitting = true;\n const result = await envelopeRecipientSubmit(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Submitted successfully', result);\n this.recipient.status = 'submitted';\n this.showDone = true;\n console.log('[SIGN] Reloading envelope');\n getEnvelope(this.endpoint, this.envelopeId)\n .then(envelope => {\n this.envelope = envelope;\n // The show-done dialog does this\n // this.isDone = true;\n this.submitting = false;\n })\n .catch(e => {\n // this.isDone = true;\n console.log('[SIGN] Error reloading envelope', e);\n this.submitting = false;\n });\n } catch (e) {\n console.log('[SIGN] Error submitting', e);\n }\n\n return;\n }\n\n // Find and focus the next incomplete field (that is fillable)\n const emptyFields = this.getSortedFillableFields().filter(field => field.required && !this.isFieldFilled(field));\n sortFields(emptyFields);\n\n const focusedIndex = emptyFields.findIndex(field => field.name === this.focusedField);\n let nextFocusedIndex = focusedIndex + 1;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n\n let nextRequiredField = emptyFields[nextFocusedIndex];\n // console.log('Next field', nextRequiredField, emptyFields);\n\n // Skip signature and initial fields that are already filled in. We have to count our \"skips\" just in case, to avoid infinite loops.\n let skips = 0;\n if (skips < emptyFields.length && ['signature', 'initial'].includes(nextRequiredField.type) && ['initialed', 'signed'].includes(nextRequiredField.value)) {\n skips++;\n nextFocusedIndex++;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n nextRequiredField = emptyFields[nextFocusedIndex];\n }\n\n if (skips >= emptyFields.length) {\n nextRequiredField = null;\n }\n\n if (nextRequiredField) {\n const id = getFieldId(nextRequiredField);\n const el = document.getElementById(id) as any;\n el?.scrollIntoView({behavior: 'smooth'});\n el?.focusField();\n this.focusedField = nextRequiredField.name;\n }\n }\n\n getRecipientFields() {\n return this.envelope.fields.filter(field => field.role_name === this.recipient.role_name);\n }\n\n // See if everything that \"needs to be\" filled in is, and all \"fillable fields\" are valid\n checkRecipientFields() {\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n if (invalidFields.length < 1) {\n this.nextButtonLabel = 'Finish';\n if (!this.nextSubmits) {\n this.nextSubmits = true;\n }\n } else {\n console.log(\n '[SIGN] Invalid fields remaining',\n invalidFields.map(field => field.name),\n );\n this.nextButtonLabel = 'Next';\n this.nextSubmits = false;\n }\n }\n\n attachFieldAttributes(pageInfo, field, el) {\n // We can get called multiple times as rendering completes and it's hard to avoid that\n // because it's a ton of work for the callers to know it's been done already. But we\n // don't want to attach multiple event listeners or we get dupe event handling, like\n // calling the server twice on every field update. Since JS has no removeAllEventListeners()\n // option, using removeEventListener() isn't reliable the way Stencil binds local function\n // contexts, and cloneNode messes up the rest of the rendering, we just track it with a flag.\n if (el.getAttribute('attached') === '1') {\n return;\n }\n el.setAttribute('attached', '1');\n\n el.addEventListener('input', (e: any) => {\n // console.log('[SIGN] onfieldInput', e.detail, e.target.value);\n // These field types don't emit fieldChange. Should we standardize on that? We don't tap \"input\" for fields like\n // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.\n if (e.target.type === 'radio' || e.target.type === 'checkbox') {\n // if (e.target.type === 'radio' || e.target.name.includes('date') || e.target.name.includes('checkbox')) {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n } else {\n this.checkRecipientFields();\n }\n });\n el.addEventListener('attached', async (e: any) => {\n console.log('[SIGN] onAttached', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name, e.detail);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('deleted', async (e: any) => {\n console.log('[SIGN] onDeleted', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await deleteEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name);\n console.log('[SIGN] Deleted attachment', updateResult);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('focusout', e => {\n // These field types trigger focusout as they're used, even without a value change\n if (field.type !== 'dropdown' && field.type !== 'attachment') {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n }\n });\n el.addEventListener('fieldChange', e => {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n });\n\n el.setAttribute('templateid', this.envelope.template_id);\n el.setAttribute('fieldname', field.name);\n el.setAttribute('page', pageInfo.pageNumber);\n el.setAttribute('xScale', pageInfo.xScale);\n el.setAttribute('yScale', pageInfo.yScale);\n\n const fullName = formatFullName(this.recipient);\n el.setAttribute('initials', fullNameToInitials(fullName));\n el.setAttribute('name', fullName);\n }\n\n handlePageRendered(e: any) {\n const pageInfo = e.detail as IDocumentPageInfo;\n\n // NOTE: We don't filter on pageNumber here because we need the position in the\n // entire list to set the tabIndex.\n const recipientFields = this.getSortedFillableFields();\n console.log('[SIGN] Rendering fields for page', pageInfo.pageNumber, recipientFields);\n\n // First render the fields for the signer\n recipientFields.forEach((field, tabIndex) => {\n if (field.page !== pageInfo.pageNumber) {\n return;\n }\n\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone}, tabIndex);\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n\n // Now render the fields for other signers who have yet to act\n this.envelope.recipients\n .filter(r => r.role_name !== this.recipient.role_name && (r.status === 'invited' || r.status === 'opened' || r.status === 'pending'))\n .forEach(() => {\n this.getRecipientFields()\n .filter(field => field.page === pageInfo.pageNumber)\n .forEach(field => {\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: true, editable: false, draggable: false, done: this.isDone});\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n });\n\n this.checkRecipientFields();\n }\n\n handleAuthenticateSigner(params: TAuthenticateRecipientRequest) {\n console.log('[SIGN] Submitting authentication step', params);\n verifySigner(this.endpoint, params)\n .then(r => {\n console.log('[SIGN] Verification successful', r);\n this.processAuthResponse(r);\n })\n .catch(e => {\n console.log('[SIGN] Error submitting authentication step', e);\n if (e.response?.data?.error?.includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n } else {\n VerdocsToast(e.response?.data?.error || 'Unable to verify your identity. Please try again.', {style: 'error'});\n }\n });\n }\n\n render() {\n console.log('[SIGN] Rendering', {authStep: this.authStep});\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to Start Signing\"\n message={`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`}\n buttonLabel=\"OK\"\n onNext={() => {\n window.location.reload();\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.fatalErrorMessage) {\n return (\n <Host class={{agreed: this.agreed}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">{this.fatalErrorHeader}</div>\n <p>{this.fatalErrorMessage}</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.delegated) {\n return (\n <Host class={{agreed: false}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">Delegated Signing Request</div>\n <p>You have delegated signing to another recipient. You will not be able to sign this request again.</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.isDone) {\n return (\n <Host class={{agreed: this.agreed}}>\n <verdocs-view endpoint={this.endpoint} envelopeId={this.envelopeId} onSdkError={e => this.sdkError?.emit(e.detail)} />\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={(e: any) => {\n e.preventDefault();\n e.stopPropagation();\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n\n if (this.delegating) {\n return (\n <verdocs-delegate-dialog\n endpoint={this.endpoint}\n envelope={this.envelope}\n onExit={() => (this.delegating = false)}\n onNext={(e: any) => {\n delegateRecipient(this.endpoint, this.envelopeId, this.roleId, e.detail)\n .then(r => {\n VerdocsToast('Delegation request submitted.', {style: 'success'});\n console.log('[SIGN] Delegated successfully', r);\n this.delegated = true;\n this.delegating = false;\n })\n .catch(e => {\n console.log('[SIGN] Error delegating request', e);\n VerdocsToast('Unable to process delegation request. Please try again later.', {style: 'error'});\n });\n }}\n />\n );\n }\n\n if (this.declining) {\n return (\n <verdocs-ok-dialog\n heading=\"Decline Signing Request\"\n message={`If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.`}\n buttonLabel=\"OK\"\n showCancel={true}\n onExit={() => (this.declining = false)}\n onNext={() => {\n envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId)\n .then(r => {\n console.log('[SIGN] Decline result', r);\n window.location.reload();\n })\n .catch(e => console.warn('[SIGN] Error declining signing session', e));\n }}\n />\n );\n }\n\n if (!this.agreed) {\n return (\n <Host class=\"agreed\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"agree\">\n <verdocs-checkbox name=\"agree\" label=\"By checking this box, you:\" onInput={() => this.handleClickAgree()} />\n <div innerHTML={this.disclosure} />\n\n <div class=\"disclosure-buttons\">\n <h5>Other Options:</h5>\n <verdocs-button variant=\"outline\" label=\"Decline\" onClick={() => (this.declining = true)} />\n {this.recipient?.delegator && <verdocs-button variant=\"outline\" label=\"Delegate\" onClick={() => (this.delegating = true)} />}\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'passcode') {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"text\"\n step={1}\n steps={1}\n placeholder=\"Enter your passcode...\"\n helptitle=\"Document is protected by a Passcode\"\n helptext=\"Please enter your Passcode to proceed. If you do not have one, please contact the sender.\"\n label=\"Passcode\"\n onNext={e => this.handleAuthenticateSigner({auth_method: 'passcode', code: e.detail as string})}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'email') {\n return (\n <verdocs-otp-dialog\n endpoint={this.endpoint}\n method=\"email\"\n onNext={async e => {\n this.processAuthResponse(e.detail.response);\n }}\n />\n );\n }\n\n if (this.authStep === 'kba' && !this.authMethodStates.kba) {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"identity\"\n helptitle=\"Document requires identity verification\"\n helptext=\"Please complete your contact details to proceed.\"\n recipient={this.recipient}\n onNext={async e => {\n const recipDetails = e.detail as IRecipient;\n this.handleAuthenticateSigner({\n auth_method: 'kba',\n first_name: recipDetails.first_name,\n last_name: recipDetails.last_name,\n address: recipDetails.address,\n city: recipDetails.city,\n state: recipDetails.state,\n zip: recipDetails.zip,\n dob: recipDetails.dob,\n });\n }}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'kba' && this.authMethodStates.kba === 'questions') {\n const questionNumber = this.kbaChoices.length;\n const kbaQuestion = this.kbaQuestions[questionNumber];\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n {this.kbaChoices.length >= this.kbaQuestions.length ? (\n <verdocs-spinner />\n ) : (\n <verdocs-kba-dialog\n mode=\"choice\"\n helptitle=\"Your identity requires additional verification\"\n helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}\n choices={kbaQuestion?.answer || ['Skip Question']}\n step={questionNumber + 1}\n steps={this.kbaQuestions.length}\n onNext={async (e: any) => {\n const answer = e.detail as string;\n this.kbaChoices = [...this.kbaChoices, answer];\n if (this.kbaChoices.length >= this.kbaQuestions.length) {\n const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));\n console.log('Submitting KBA responses', this.kbaChoices, responses);\n this.handleAuthenticateSigner({auth_method: 'kba', responses});\n }\n }}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n\n {!this.finishLater && <verdocs-button size=\"xsmall\" label={this.nextButtonLabel} disabled={!this.agreed || this.submitting} onClick={() => this.handleNext()} />}\n\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={!this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n {(this.envelope.documents || []).map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n // In signing mode we show the original template page with all the recipient fields so we can show source formatting and\n // where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or\n // future signers still need to act. Once we're \"done\" we flip to showing the envelope's documents which have the final\n // field vales (so far) stamped into them.\n // TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure\n // we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.\n // console.log('tp', templatePage, page);\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n type=\"filled\"\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n\n {this.showFinishLater && (\n <verdocs-ok-dialog\n heading=\"You've saved your document to finish later.\"\n message={`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`}\n onNext={() => (this.showFinishLater = false)}\n />\n )}\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={() => {\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting ||\n (this.showSpinner && (\n <verdocs-portal>\n <div class=\"spinner-overlay\">\n <verdocs-spinner />\n </div>\n </verdocs-portal>\n ))}\n </Host>\n );\n }\n}\n"],"mappings":"6uFAAA,IAAMA,EAAiB,wjICcvB,IAAMC,EAAqB,6hBAgB3B,IAAMC,EAAwB,CAC5B,CAACC,GAAI,QAASC,MAAO,gBAErB,CAACD,GAAI,UAAWC,MAAO,mBACvB,CAACD,GAAI,QAASC,MAAO,yBACrB,CAACD,GAAI,WAAYC,MAAO,aAG1B,IAAMC,EAAkB,CACtB,CAACF,GAAI,QAASC,MAAO,SACrB,CAACD,GAAI,WAAYC,MAAO,a,IAmCbE,EAAWC,EAAA,0BALxB,SAAAC,EAAAC,G,uIASyBC,KAAQC,SAAoBC,EAK5BF,KAAUG,WAAkB,KAK5BH,KAAMI,OAAkB,KAKxBJ,KAAUK,WAAkB,KAW3CL,KAAcM,eAAkB,KAoB/BN,KAASO,UAAsB,KAC/BP,KAAYQ,aAAG,MACfR,KAAeS,gBAAG,QAClBT,KAAWU,YA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C,OACxBnC,WAAYA,EACZqF,eAAgB,SAAAzL,GAAK,OAAAN,EAAKgH,mBAAmB1G,EAAxB,EACrBY,KAAK,SACL8K,OAAQ,CACN,CAACtK,KAAM,OAAQR,KAAM,UACrB,CAACQ,KAAM,WAAYR,KAAM,S,IAOvC,KAGDrG,KAAKqB,iBACJyL,EACE,qBAAAE,QAAQ,8CACRzJ,QAAS,mBAAAR,OAAmB/C,KAAKuB,wBAAuB,qGACxD2L,OAAQ,kBAAO/H,EAAK9D,gBAAkB,KAA9B,IAIXrB,KAAKkB,UACJ4L,EAAA,qBACEE,QAAQ,eACRzJ,QAAS,sBAAAR,OAAsB/C,KAAKuB,wBAAuB,gNAC3D2L,OAAQ,WACN/H,EAAKjE,SAAW,MAChBiE,EAAKlE,OAAS,IAChB,IAIHjB,KAAKe,YACHf,KAAK2B,aACJmL,EAAA,sBACEA,EAAK,OAAAO,MAAM,mBACTP,EAAA,0B,WAz/BQ,I","ignoreList":[]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{a(n.next(t))}catch(t){s(t)}}function o(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(u,o)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(i){return a([t,i])}}function a(o){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,i){var e={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0)e[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++){if(i.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r]))e[n[r]]=t[n[r]]}return e};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-gAi_FRvp.system.js","./p-C9y1KCYV.system.js","@verdocs/js-sdk","./p-CrzDCQEM.system.js","./p-CD5uiThi.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js","./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","./p-80p0Fzir.system.js"],(function(t){"use strict";var i,e,n,r,s,u,o,a,l,h,f,c,d,v,b,g,p,x;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.H;s=t.F;u=t.g},function(t){o=t.D},function(t){a=t.verifySigner;l=t.VerdocsEndpoint;h=t.getEnvelope;f=t.getDocumentDownloadLink;c=t.cancelEnvelope;d=t.userCanCancelEnvelope;v=t.integerSequence},function(t){b=t.V},function(t){g=t.s},function(t){p=t.S},function(t){x=t.S},null,null,null],execute:function(){var m='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-delegate-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-delegate-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-delegate-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-delegate-dialog .step{margin-left:6px;color:#666}verdocs-delegate-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-delegate-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-delegate-dialog .help-icon{width:40px;height:40px}verdocs-delegate-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-delegate-dialog .help-text{font-weight:400}verdocs-delegate-dialog .input{gap:10px;margin:5px 0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-delegate-dialog .input label{margin:8px 0 0 0;-ms-flex:0 0 100px;flex:0 0 100px;font-size:13px;font-weight:500;line-height:10px;white-space:nowrap}verdocs-delegate-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc}verdocs-delegate-dialog .input textarea{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc;font-family:"Inter", "Barlow", sans-serif}verdocs-delegate-dialog .input.names input{width:80px}verdocs-delegate-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-delegate-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-delegate-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-delegate-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-delegate-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-delegate-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-delegate-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-delegate-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-delegate-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-delegate-dialog .buttons verdocs-button{margin-left:16px}';var w='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>';var k=t("verdocs_delegate_dialog",function(){function t(t){i(this,t);this.exit=e(this,"exit");this.next=e(this,"next");this.endpoint=o;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}t.prototype.handleCancel=function(){this.exit.emit()};t.prototype.handleDismiss=function(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleDelegate=function(){this.next.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message})};t.prototype.render=function(){var t=this;return n(r,{key:"1b273825b9e7829da0e4c2f1e0dd198b99e22778"},n("div",{key:"ee6933619eccc3bd070a39cfe203db31f9e49360",class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{key:"a5dd9c14107423563cd9f125ada09e093a2f339a",class:"dialog"},n("div",{key:"9de61c918546d1c07e6910bf510a86a7b02b3ec4",class:"heading"},'Delegate "',this.envelope.name,'"'),n("div",{key:"4a18099b2af26a5ffacfef8316224ff46d0e6130",class:"help-box"},n("div",{key:"1edddc209d05847359e5899c635a434b84df5cbf",class:"help-icon",innerHTML:w}),n("div",{key:"3b88b1a8fe4432a76ecdd7c890af1c62f6e37e15",class:"help-details"},n("div",{key:"c912b3030e38e44f6e99708c70dc914bb8c16d7b",class:"help-title"},"Please verify your email address"),n("div",{key:"743843ee38ee599147c38428794f75433418ad8f",class:"help-text"},"Check your email for a one-time code, and enter it below."))),n("div",{key:"a1c76355c3085882a3a85b2e9d92e7e6fdb52ae0",class:"input names"},n("label",{key:"a67cddd940d0b12e85eb4e838a4ea74763b8114b",htmlFor:"verdocs-delegate-email"},"New Recipient:"),n("input",{key:"119c0d496eed6721e0a75f83f1419a9d5f491bd7",type:"text",id:"verdocs-delegate-first",name:"verdocs-delegate-first",autocomplete:"blocked",placeholder:"First name...",value:this.first_name,onInput:function(i){return t.first_name=i.target.value}}),n("input",{key:"6a63aaf105137ca0e1dac6cf7a19f4b82d8c47d6",type:"text",id:"verdocs-delegate-last",name:"verdocs-delegate-last",autocomplete:"blocked",placeholder:"Last name...",value:this.last_name,onInput:function(i){return t.last_name=i.target.value}})),n("div",{key:"347e2279573063eb892c0b813468d5c09408531a",class:"input"},n("label",{key:"825073c57fd16fbf3e310280f308c43be821965d",htmlFor:"verdocs-delegate-email"},"Email Address:"),n("input",{key:"56838680257dee66d68c0e725caf836ea40ff295",type:"text",id:"verdocs-delegate-email",name:"verdocs-delegate-email",autocomplete:"blocked",placeholder:"New recipient email address...",value:this.email,onInput:function(i){return t.email=i.target.value}})),n("div",{key:"063226a4aed54f801b830c79d8bd09c27538454e",class:"input"},n("label",{key:"19a7c63649de25be50d55441e1c27e80bea5ca0a",htmlFor:"verdocs-delegate-phone"},"Phone:"),n("input",{key:"433ad74b6599db5c29d52948fdd373c3dbe62736",type:"text",id:"verdocs-delegate-phone",name:"verdocs-delegate-phone",autocomplete:"blocked",placeholder:"Optional phone number...",value:this.phone,onInput:function(i){return t.phone=i.target.value}})),n("div",{key:"07a2f3a2f4ba17bd89104f1d0d113650c7415dbd",class:"input"},n("label",{key:"eab9f7cde38d80e75c35b731cb3e1bc8a0f41bab",htmlFor:"verdocs-delegate-email"},"Message:"),n("textarea",{key:"4aceddbcca0ef4b30a7d04fd15509588fabe9732",id:"verdocs-delegate-message",name:"verdocs-delegate-message",rows:3,autocomplete:"blocked",placeholder:"Optional message to include in the invitation...",onInput:function(i){return t.message=i.target.value}},this.message)),n("div",{key:"6c24b31253ca9146f93b6ae17deb984ce4aa5c5a",class:"buttons"},n("verdocs-button",{key:"d17fe7c1c699a49c7fe923ed528b18c8d780ddbb",label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{key:"260a127ef6c7c8a6703ad46136233302ed4d0437",label:"Delegate",onClick:function(){return t.handleDelegate()},disabled:!this.first_name||!this.last_name||!this.email})))))};return t}());k.style=m;function A(t){return typeof t==="string"||t instanceof String}function y(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function C(t,i){if(Array.isArray(i))return C(t,(function(t,e){return i.includes(e)}));return Object.entries(t).reduce((function(t,e){var n=e[0],r=e[1];if(i(r,n))t[n]=r;return t}),{})}var _={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function F(t){switch(t){case _.LEFT:return _.FORCE_LEFT;case _.RIGHT:return _.FORCE_RIGHT;default:return t}}function D(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function B(t,i){if(i===t)return true;var e=Array.isArray(i),n=Array.isArray(t);var r;if(e&&n){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!B(i[r],t[r]))return false;return true}if(e!=n)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){var s=i instanceof Date,u=t instanceof Date;if(s&&u)return i.getTime()==t.getTime();if(s!=u)return false;var o=i instanceof RegExp,a=t instanceof RegExp;if(o&&a)return i.toString()==t.toString();if(o!=a)return false;var l=Object.keys(i);for(r=0;r<l.length;r++)if(!Object.prototype.hasOwnProperty.call(t,l[r]))return false;for(r=0;r<l.length;r++)if(!B(t[l[r]],i[l[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}var E=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return _.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?_.RIGHT:_.LEFT},enumerable:false,configurable:true});return t}();function O(t,i){return new O.InputMask(t,i)}function j(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return O.MaskedRegExp;if(A(t))return O.MaskedPattern;if(t===Date)return O.MaskedDate;if(t===Number)return O.MaskedNumber;if(Array.isArray(t)||t===Array)return O.MaskedDynamic;if(O.Masked&&t.prototype instanceof O.Masked)return t;if(O.Masked&&t instanceof O.Masked)return t.constructor;if(t instanceof Function)return O.MaskedFunction;console.warn("Mask not found for mask",t);return O.Masked}function I(t){if(!t)throw new Error("Options in not defined");if(O.Masked){if(t.prototype instanceof O.Masked)return{mask:t};var i=t instanceof O.Masked?{mask:t}:y(t)&&t.mask instanceof O.Masked?t:{},e=i.mask,n=e===void 0?undefined:e,r=__rest(i,["mask"]);if(n){var s=n.mask;return __assign(__assign(__assign({},C(n,(function(t,i){return!i.startsWith("_")}))),{mask:n.constructor,_mask:s}),r)}}if(!y(t))return{mask:t};return __assign({},t)}function M(t){if(O.Masked&&t instanceof O.Masked)return t;var i=I(t);var e=j(i.mask);if(!e)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===e)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new e(i)}O.createMask=M;var S=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();O.MaskElement=S;var z=90;var V=89;var N=function(t){__extends(i,t);function i(i){var e=t.call(this)||this;e.input=i;e._onKeydown=e._onKeydown.bind(e);e._onInput=e._onInput.bind(e);e._onBeforeinput=e._onBeforeinput.bind(e);e._onCompositionEnd=e._onCompositionEnd.bind(e);return e}Object.defineProperty(i.prototype,"rootElement",{get:function(){var t,i,e;return(t=(i=(e=this.input).getRootNode)==null?void 0:i.call(e))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});i.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};i.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===V&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};i.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};i.prototype._onCompositionEnd=function(t){this._handlers.input(t)};i.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};i.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return i}(S);O.HTMLMaskElement=N;var T=function(t){__extends(i,t);function i(i){var e=t.call(this,i)||this;e.input=i;return e}Object.defineProperty(i.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});i.prototype._unsafeSelect=function(t,i){this.input.setSelectionRange(t,i)};Object.defineProperty(i.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return i}(N);O.HTMLMaskElement=N;var R=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var i=t.getSelection&&t.getSelection();var e=i&&i.anchorOffset;var n=i&&i.focusOffset;if(n==null||e==null||e<n){return e}return n},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var i=t.getSelection&&t.getSelection();var e=i&&i.anchorOffset;var n=i&&i.focusOffset;if(n==null||e==null||e>n){return e}return n},enumerable:false,configurable:true});i.prototype._unsafeSelect=function(t,i){if(!this.rootElement.createRange)return;var e=this.rootElement.createRange();e.setStart(this.input.firstChild||this.input,t);e.setEnd(this.input.lastChild||this.input,i);var n=this.rootElement;var r=n.getSelection&&n.getSelection();if(r){r.removeAllRanges();r.addRange(e)}};Object.defineProperty(i.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return i}(N);O.HTMLContenteditableMaskElement=R;var L=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(i){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(i);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();L.MAX_LENGTH=100;var P=function(){function t(t,i){this.el=t instanceof S?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new R(t):new T(t);this.masked=M(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new L;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}t.prototype.maskEquals=function(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof O.Masked)&&this.masked.constructor===j(t)){this.masked.updateOptions({mask:t});return}var i=t instanceof O.Masked?t:M({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,i){var e=this._listeners[t];if(!e)return;e.forEach((function(t){return t(i)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var i=this.masked.unmaskedValue;var e=this.masked.value;var n=this.masked.rawInputValue;var r=this.displayValue;var s=this.unmaskedValue!==i||this.value!==e||this._rawInputValue!==n;this._unmaskedValue=i;this._value=e;this._rawInputValue=n;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(s)this._fireChangeEvents();if(!this._historyChanging&&(s||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var i=t.mask,e=__rest(t,["mask"]);var n=!this.maskEquals(i);var r=this.masked.optionsIsChanged(e);if(n)this.mask=i;if(r)this.masked.updateOptions(e);if(n||r)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var i=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!i.el)return;i.cursorPos=i._changingCursorPos;i._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,_.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this};t.prototype.off=function(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}var e=this._listeners[t].indexOf(i);if(e>=0)this._listeners[t].splice(e,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var i=new E({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var e=this.masked.rawInputValue;var n=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;var r=e===this.masked.rawInputValue?i.removeDirection:_.NONE;var s=this.masked.nearestInputPos(i.startChangePos+n,r);if(r!==_.NONE)s=this.masked.nearestInputPos(s,_.NONE);this.updateControl(s);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();O.InputMask=P;var H=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(i){return Array.isArray(i)?i:[i,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();O.ChangeDetails=H;var Z=function(){function t(t,i,e){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=e}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var i=this.value[0];this.value=this.value.slice(1);return i};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var W=function(){function t(i){this._value="";this._update(__assign(__assign({},t.DEFAULTS),i));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,i){return t};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)};t.prototype.extractTail=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new Z(this.extractInput(t,i),t)};t.prototype.appendTail=function(t){if(A(t))t=new Z(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,i){if(!t)return new H;this._value+=t;return new H({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,i,e){var n;if(i===void 0){i={}}var r=this.state;var s;n=this.doPrepareChar(t,i),t=n[0],s=n[1];if(t){s=s.aggregate(this._appendCharRaw(t,i));if(!s.rawInserted&&this.autofix==="pad"){var u=this.state;this.state=r;var o=this.pad(i);var a=this._appendCharRaw(t,i);o=o.aggregate(a);if(a.rawInserted||o.equals(s)){s=o}else{this.state=u}}}if(s.inserted){var l=void 0;var h=this.doValidate(i)!==false;if(h&&e!=null){var f=this.state;if(this.overwrite===true){l=e.state;for(var c=0;c<s.rawInserted.length;++c){e.unshift(this.displayValue.length-s.tailShift)}}var d=this.appendTail(e);h=d.rawInserted.length===e.toString().length;if(!(h&&d.inserted)&&this.overwrite==="shift"){this.state=f;l=e.state;for(var c=0;c<s.rawInserted.length;++c){e.shift()}d=this.appendTail(e);h=d.rawInserted.length===e.toString().length}if(h&&d.inserted)this.state=f}if(!h){s=new H;this.state=r;if(e&&l)e.state=l}}return s};t.prototype._appendPlaceholder=function(){return new H};t.prototype._appendEager=function(){return new H};t.prototype.append=function(t,i,e){var n;if(!A(t))throw new Error("value should be string");var r=A(e)?new Z(String(e)):e;if(i!=null&&i.tail)i._beforeTailState=this.state;var s;n=this.doPrepare(t,i),t=n[0],s=n[1];for(var u=0;u<t.length;++u){var o=this._appendChar(t[u],i,r);if(!o.rawInserted&&!this.doSkipInvalid(t[u],i,r))break;s.aggregate(o)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){s.aggregate(this._appendEager())}if(r!=null){s.tailShift+=this.appendTail(r).tailShift}return s};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new H};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var i=this.rawInputValue;var e=this.value;var n=t();this.rawInputValue=i;if(this.value&&this.value!==e&&e.indexOf(this.value)===0){this.append(e.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return n};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var i=this.state;var e=t(this);this.state=i;delete this._isolated;return e};t.prototype.doSkipInvalid=function(t,i,e){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,i){if(i===void 0){i={}}return H.normalize(this.prepare?this.prepare(t,this,i):t)};t.prototype.doPrepareChar=function(t,i){if(i===void 0){i={}}return H.normalize(this.prepareChar?this.prepareChar(t,this,i):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,i,e,n,r){if(e===void 0){e=""}if(n===void 0){n=_.NONE}if(r===void 0){r={input:true}}var s=t+i;var u=this.extractTail(s);var o=this.eager===true||this.eager==="remove";var a;if(o){n=F(n);a=this.extractInput(0,s,{raw:true})}var l=t;var h=new H;if(n!==_.NONE){l=this.nearestInputPos(t,i>1&&t!==0&&!o?_.NONE:n);h.tailShift=l-t}h.aggregate(this.remove(l));if(o&&n!==_.NONE&&a===this.rawInputValue){if(n===_.FORCE_LEFT){var f=void 0;while(a===this.rawInputValue&&(f=this.displayValue.length)){h.aggregate(new H({tailShift:-1})).aggregate(this.remove(f-1))}}else if(n===_.FORCE_RIGHT){u.unshift()}}return h.aggregate(this.append(e,r,u))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!B(this,t)};t.prototype.typedValueEquals=function(i){var e=this.typedValue;return i===e||t.EMPTY_VALUES.includes(i)&&t.EMPTY_VALUES.includes(e)||(this.format?this.format(i,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new H};return t}();W.DEFAULTS={skipInvalid:true};W.EMPTY_VALUES=[undefined,null,""];O.Masked=W;var q=function(){function t(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(i){if(!String(i))return;i=A(i)?new Z(String(i)):i;var e=this.chunks[this.chunks.length-1];var n=e&&(e.stop===i.stop||i.stop==null)&&i.from===e.from+e.toString().length;if(i instanceof Z){if(n){e.extend(i.toString())}else{this.chunks.push(i)}}else if(i instanceof t){if(i.stop==null){var r=void 0;while(i.chunks.length&&i.chunks[0].stop==null){r=i.chunks.shift();r.from+=i.from;this.extend(r)}}if(i.toString()){i.stop=i.blockIndex;this.chunks.push(i)}}};t.prototype.appendTo=function(i){if(!(i instanceof O.MaskedPattern)){var e=new Z(this.toString());return e.appendTo(i)}var n=new H;for(var r=0;r<this.chunks.length;++r){var s=this.chunks[r];var u=i._mapPosToBlock(i.displayValue.length);var o=s.stop;var a=void 0;if(o!=null&&(!u||u.index<=o)){if(s instanceof t||i._stops.indexOf(o)>=0){n.aggregate(i._appendPlaceholder(o))}a=s instanceof t&&i._blocks[o]}if(a){var l=a.appendTail(s);n.aggregate(l);var h=s.toString().slice(l.rawInserted.length);if(h)n.aggregate(i.append(h,{tail:true}))}else{n.aggregate(i.append(s.toString(),{tail:true}))}}return n};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(i){var e=i.chunks,n=__rest(i,["chunks"]);Object.assign(this,n);this.chunks=e.map((function(i){var e="chunks"in i?new t:new Z;e.state=i;return e}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var i=t!=null?t-this.from:t;var e=0;while(e<this.chunks.length){var n=this.chunks[e];var r=n.unshift(i);if(n.toString()){if(!r)break;++e}else{this.chunks.splice(e,1)}if(r)return r}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var i=this.chunks[t];var e=i.shift();if(i.toString()){if(!e)break;--t}else{this.chunks.splice(t,1)}if(e)return e}return""};return t}();var G=function(){function t(t,i){this.masked=t;this._log=[];var e=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),n=e.offset,r=e.index;this.offset=n;this.index=r;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,_.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,_.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.NONE);return true}))};return t}();var Y=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new H};t.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}var e=0;var n=this._value.length;switch(i){case _.LEFT:case _.FORCE_LEFT:return e;case _.NONE:case _.RIGHT:case _.FORCE_RIGHT:default:return n}};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(e===void 0){e={}}return e.raw&&this._isRawInput&&this._value.slice(t,i)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,i){if(i===void 0){i={}}if(this.isFilled)return new H;var e=this.eager===true||this.eager==="append";var n=this.char===t;var r=n&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!e)&&!i.tail;var s=new H({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return s};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new H;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new Z("")};t.prototype.appendTail=function(t){if(A(t))t=new Z(String(t));return t.appendTo(this)};t.prototype.append=function(t,i,e){var n=this._appendChar(t[0],i);if(e!=null){n.tailShift+=this.appendTail(e).tailShift}return n};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var U=function(){function t(t){var i=t.parent,e=t.isOptional,n=t.placeholderChar,r=t.displayChar,s=t.lazy,u=t.eager,o=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=M(o);Object.assign(this,{parent:i,isOptional:e,placeholderChar:n,displayChar:r,lazy:s,eager:u})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new H};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,i){if(i===void 0){i={}}if(this.isFilled)return new H;var e=this.masked.state;var n=this.masked._appendChar(t,this.currentMaskFlags(i));if(n.inserted&&this.doValidate(i)===false){n=new H;this.masked.state=e}if(!n.inserted&&!this.isOptional&&!this.lazy&&!i.input){n.inserted=this.placeholderChar}n.skip=!n.inserted&&!this.isOptional;this.isFilled=Boolean(n.inserted);return n};t.prototype.append=function(t,i,e){return this.masked.append(t,this.currentMaskFlags(i),e)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new H;this.isFilled=true;return new H({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new H};t.prototype.extractTail=function(t,i){return this.masked.extractTail(t,i)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,e)};t.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}var e=0;var n=this.value.length;var r=Math.min(Math.max(t,e),n);switch(i){case _.LEFT:case _.FORCE_LEFT:return this.isComplete?r:e;case _.RIGHT:case _.FORCE_RIGHT:return this.isComplete?r:n;case _.NONE:default:return r}};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var i;return __assign(__assign({},t),{_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new H};return t}();U.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var K=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.mask;if(e)i.validate=function(t){return t.search(e)>=0};t.prototype._update.call(this,i)};return i}(W);O.MaskedRegExp=K;var $=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign(__assign({},i.DEFAULTS),e),{definitions:Object.assign({},U.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)}))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){i.definitions=Object.assign({},this.definitions,i.definitions);t.prototype._update.call(this,i);this._rebuildMask()};i.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var e=this.mask;if(!e||!t)return;var n=false;var r=false;var s=function(s){if(u.blocks){var a=e.slice(s);var l=Object.keys(u.blocks).filter((function(t){return a.indexOf(t)===0}));l.sort((function(t,i){return i.length-t.length}));var h=l[0];if(h){var f=I(u.blocks[h]),c=f.expose,d=f.repeat,v=__rest(f,["expose","repeat"]);var b=__assign(__assign({lazy:u.lazy,eager:u.eager,placeholderChar:u.placeholderChar,displayChar:u.displayChar,overwrite:u.overwrite,autofix:u.autofix},v),{repeat:d,parent:u});var g=d!=null?new O.RepeatBlock(b):M(b);if(g){u._blocks.push(g);if(c)u.exposeBlock=g;if(!u._maskedBlocks[h])u._maskedBlocks[h]=[];u._maskedBlocks[h].push(u._blocks.length-1)}s+=h.length-1;return o=s,"continue"}}var p=e[s];var x=p in t;if(p===i.STOP_CHAR){u._stops.push(u._blocks.length);return o=s,"continue"}if(p==="{"||p==="}"){n=!n;return o=s,"continue"}if(p==="["||p==="]"){r=!r;return o=s,"continue"}if(p===i.ESCAPE_CHAR){++s;p=e[s];if(!p)return o=s,"break";x=false}var m=x?new U(__assign(__assign({isOptional:r,lazy:u.lazy,eager:u.eager,placeholderChar:u.placeholderChar,displayChar:u.displayChar},I(t[p])),{parent:u})):new Y({char:p,eager:u.eager,isUnmasking:n});u._blocks.push(m);o=s};var u=this,o;for(var a=0;a<e.length;++a){var l=s(a);a=o;if(l==="break")break}};Object.defineProperty(i.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(i){if(!i){this.reset();return}var e=i._blocks,n=__rest(i,["_blocks"]);this._blocks.forEach((function(t,i){return t.state=e[i]}));t.prototype.state=n},enumerable:false,configurable:true});i.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(i.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});i.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,i){return t+=i.unmaskedValue}),"")},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=i;this.appendTail(e);this.doCommit()}else t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,i){return t+=i.value}),"")},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=i;this.appendTail(e);this.doCommit()}else t.prototype.value=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=i;this.appendTail(e);this.doCommit()}else t.prototype.typedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,i){return t+=i.displayValue}),"")},enumerable:false,configurable:true});i.prototype.appendTail=function(i){return t.prototype.appendTail.call(this,i).aggregate(this._appendPlaceholder())};i.prototype._appendEager=function(){var t;var i=new H;var e=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(e==null)return i;if(this._blocks[e].isFilled)++e;for(var n=e;n<this._blocks.length;++n){var r=this._blocks[n]._appendEager();if(!r.inserted)break;i.aggregate(r)}return i};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=this._mapPosToBlock(this.displayValue.length);var n=new H;if(!e)return n;for(var r=e.index,s=void 0;s=this._blocks[r];++r){var u;var o=s._appendChar(t,__assign(__assign({},i),{_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));n.aggregate(o);if(o.consumed)break}return n};i.prototype.extractTail=function(t,i){var e=this;if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}var n=new q;if(t===i)return n;this._forEachBlocksInRange(t,i,(function(t,i,r,s){var u=t.extractTail(r,s);u.stop=e._findStopBefore(i);u.from=e._blockStartPos(i);if(u instanceof q)u.blockIndex=i;n.extend(u)}));return n};i.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(e===void 0){e={}}if(t===i)return"";var n="";this._forEachBlocksInRange(t,i,(function(t,i,r,s){n+=t.extractInput(r,s,e)}));return n};i.prototype._findStopBefore=function(t){var i;for(var e=0;e<this._stops.length;++e){var n=this._stops[e];if(n<=t)i=n;else break}return i};i.prototype._appendPlaceholder=function(t){var i=new H;if(this.lazy&&t==null)return i;var e=this._mapPosToBlock(this.displayValue.length);if(!e)return i;var n=e.index;var r=t!=null?t:this._blocks.length;this._blocks.slice(n,r).forEach((function(e){if(!e.lazy||t!=null){var n;i.aggregate(e._appendPlaceholder((n=e._blocks)==null?void 0:n.length))}}));return i};i.prototype._mapPosToBlock=function(t){var i="";for(var e=0;e<this._blocks.length;++e){var n=this._blocks[e];var r=i.length;i+=n.displayValue;if(t<=i.length){return{index:e,offset:t-r}}}};i.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,i){return t+=i.displayValue.length}),0)};i.prototype._forEachBlocksInRange=function(t,i,e){if(i===void 0){i=this.displayValue.length}var n=this._mapPosToBlock(t);if(n){var r=this._mapPosToBlock(i);var s=r&&n.index===r.index;var u=n.offset;var o=r&&s?r.offset:this._blocks[n.index].displayValue.length;e(this._blocks[n.index],n.index,u,o);if(r&&!s){for(var a=n.index+1;a<r.index;++a){e(this._blocks[a],a,0,this._blocks[a].displayValue.length)}e(this._blocks[r.index],r.index,0,r.offset)}}};i.prototype.remove=function(i,e){if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}var n=t.prototype.remove.call(this,i,e);this._forEachBlocksInRange(i,e,(function(t,i,e,r){n.aggregate(t.remove(e,r))}));return n};i.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}if(!this._blocks.length)return 0;var e=new G(this,t);if(i===_.NONE){if(e.pushRightBeforeInput())return e.pos;e.popState();if(e.pushLeftBeforeInput())return e.pos;return this.displayValue.length}if(i===_.LEFT||i===_.FORCE_LEFT){if(i===_.LEFT){e.pushRightBeforeFilled();if(e.ok&&e.pos===t)return t;e.popState()}e.pushLeftBeforeInput();e.pushLeftBeforeRequired();e.pushLeftBeforeFilled();if(i===_.LEFT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.ok&&e.pos<=t)return e.pos;e.popState();if(e.ok&&e.pos<=t)return e.pos;e.popState()}if(e.ok)return e.pos;if(i===_.FORCE_LEFT)return 0;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return 0}if(i===_.RIGHT||i===_.FORCE_RIGHT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.pushRightBeforeFilled())return e.pos;if(i===_.FORCE_RIGHT)return this.displayValue.length;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return this.nearestInputPos(t,_.LEFT)}return t};i.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}var e=0;this._forEachBlocksInRange(t,i,(function(t,i,n,r){e+=t.totalInputPositions(n,r)}));return e};i.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};i.prototype.maskedBlocks=function(t){var i=this;var e=this._maskedBlocks[t];if(!e)return[];return e.map((function(t){return i._blocks[t]}))};i.prototype.pad=function(t){var i=new H;this._forEachBlocksInRange(0,this.displayValue.length,(function(e){return i.aggregate(e.pad(t))}));return i};return i}(W);$.DEFAULTS=__assign(__assign({},W.DEFAULTS),{lazy:true,placeholderChar:"_"});$.STOP_CHAR="`";$.ESCAPE_CHAR="\\";$.InputDefinition=U;$.FixedDefinition=Y;O.MaskedPattern=$;var J=function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.to,n=e===void 0?this.to||0:e,r=i.from,s=r===void 0?this.from||0:r,u=i.maxLength,o=u===void 0?this.maxLength||0:u,a=i.autofix,l=a===void 0?this.autofix:a,h=__rest(i,["to","from","maxLength","autofix"]);this.to=n;this.from=s;this.maxLength=Math.max(String(n).length,o);this.autofix=l;var f=String(this.from).padStart(this.maxLength,"0");var c=String(this.to).padStart(this.maxLength,"0");var d=0;while(d<c.length&&c[d]===f[d])++d;h.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d);t.prototype._update.call(this,h)};Object.defineProperty(i.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});i.prototype.boundaries=function(t){var i="";var e="";var n=t.match(/^(\D*)(\d*)(\D*)/)||[],r=n[1],s=n[2];if(s){i="0".repeat(r.length)+s;e="9".repeat(r.length)+s}i=i.padEnd(this.maxLength,"0");e=e.padEnd(this.maxLength,"9");return[i,e]};i.prototype.doPrepareChar=function(i,e){var n;if(e===void 0){e={}}var r;n=t.prototype.doPrepareChar.call(this,i.replace(/\D/g,""),e),i=n[0],r=n[1];if(!i)r.skip=!this.isComplete;return[i,r]};i.prototype._appendCharRaw=function(i,e){if(e===void 0){e={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,i,e);var n=String(this.from).padStart(this.maxLength,"0");var r=String(this.to).padStart(this.maxLength,"0");var s=this.boundaries(this.value+i),u=s[0],o=s[1];if(Number(o)<this.from)return t.prototype._appendCharRaw.call(this,n[this.value.length],e);if(Number(u)>this.to){if(!e.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,n[this.value.length],e).aggregate(this._appendCharRaw(i,e))}return t.prototype._appendCharRaw.call(this,r[this.value.length],e)}return t.prototype._appendCharRaw.call(this,i,e)};i.prototype.doValidate=function(i){var e=this.value;var n=e.search(/[^0]/);if(n===-1&&e.length<=this._matchFrom)return true;var r=this.boundaries(e),s=r[0],u=r[1];return this.from<=Number(u)&&Number(s)<=this.to&&t.prototype.doValidate.call(this,i)};i.prototype.pad=function(i){var e=this;var n=new H;if(this.value.length===this.maxLength)return n;var r=this.value;var s=this.maxLength-this.value.length;if(s){this.reset();for(var u=0;u<s;++u){n.aggregate(t.prototype._appendCharRaw.call(this,"0",i))}r.split("").forEach((function(t){return e._appendCharRaw(t)}))}return n};return i}($);O.MaskedRange=J;var X="d{.}`m{.}`Y";var Q=function(t){__extends(i,t);function i(e){return t.call(this,i.extractPatternOptions(__assign(__assign({},i.DEFAULTS),e)))||this}i.extractPatternOptions=function(t){var i=t.mask,e=t.pattern,n=__rest(t,["mask","pattern"]);return __assign(__assign({},n),{mask:A(i)?i:e})};i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(e){var n=__assign(__assign({},i.DEFAULTS),e),r=n.mask,s=n.pattern,u=n.blocks,o=__rest(n,["mask","pattern","blocks"]);var a=Object.assign({},i.GET_DEFAULT_BLOCKS());if(e.min)a.Y.from=e.min.getFullYear();if(e.max)a.Y.to=e.max.getFullYear();if(e.min&&e.max&&a.Y.from===a.Y.to){a.m.from=e.min.getMonth()+1;a.m.to=e.max.getMonth()+1;if(a.m.from===a.m.to){a.d.from=e.min.getDate();a.d.to=e.max.getDate()}}Object.assign(a,this.blocks,u);t.prototype._update.call(this,__assign(__assign({},o),{mask:A(r)?r:s,blocks:a}))};i.prototype.doValidate=function(i){var e=this.date;return t.prototype.doValidate.call(this,i)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=this.max))};i.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(i.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(i){t.prototype.typedValue=i},enumerable:false,configurable:true});i.prototype.maskEquals=function(i){return i===Date||t.prototype.maskEquals.call(this,i)};i.prototype.optionsIsChanged=function(e){return t.prototype.optionsIsChanged.call(this,i.extractPatternOptions(e))};return i}($);Q.GET_DEFAULT_BLOCKS=function(){return{d:{mask:J,from:1,to:31,maxLength:2},m:{mask:J,from:1,to:12,maxLength:2},Y:{mask:J,from:1900,to:9999}}};Q.DEFAULTS=__assign(__assign({},$.DEFAULTS),{mask:Date,pattern:X,format:function(t,i){if(!t)return"";var e=String(t.getDate()).padStart(2,"0");var n=String(t.getMonth()+1).padStart(2,"0");var r=t.getFullYear();return[e,n,r].join(".")},parse:function(t,i){var e=t.split(".").map(Number),n=e[0],r=e[1],s=e[2];return new Date(s,r-1,n)}});O.MaskedDate=Q;var tt=function(t){__extends(i,t);function i(e){var n=t.call(this,__assign(__assign({},i.DEFAULTS),e))||this;n.currentMask=undefined;return n}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=this;t.prototype._update.call(this,i);if("mask"in i){this.exposeMask=undefined;this.compiledMasks=Array.isArray(i.mask)?i.mask.map((function(t){var i=I(t),n=i.expose,r=__rest(i,["expose"]);var s=M(__assign({overwrite:e._overwrite,eager:e._eager,skipInvalid:e._skipInvalid},r));if(n)e.exposeMask=s;return s})):[]}};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=this._applyDispatch(t,i);if(this.currentMask){e.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return e};i.prototype._applyDispatch=function(t,i,e){if(t===void 0){t=""}if(i===void 0){i={}}if(e===void 0){e=""}var n=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;var r=this.rawInputValue;var s=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;var u=r.slice(s.length);var o=this.currentMask;var a=new H;var l=o==null?void 0:o.state;this.currentMask=this.doDispatch(t,__assign({},i),e);if(this.currentMask){if(this.currentMask!==o){this.currentMask.reset();if(s){this.currentMask.append(s,{raw:true});a.tailShift=this.currentMask.value.length-n.length}if(u){a.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(l){this.currentMask.state=l}}return a};i.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};i.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};i.prototype.appendTail=function(i){var e=new H;if(i)e.aggregate(this._applyDispatch("",{},i));return e.aggregate(this.currentMask?this.currentMask.appendTail(i):t.prototype.appendTail.call(this,i))};i.prototype.currentMaskFlags=function(t){var i,e;return __assign(__assign({},t),{_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((e=t._beforeTailState)==null?void 0:e.currentMask)||t._beforeTailState})};i.prototype.doDispatch=function(t,i,e){if(i===void 0){i={}}if(e===void 0){e=""}return this.dispatch(t,this,i,e)};i.prototype.doValidate=function(i){return t.prototype.doValidate.call(this,i)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(i)))};i.prototype.doPrepare=function(i,e){var n;if(e===void 0){e={}}var r=t.prototype.doPrepare.call(this,i,e),s=r[0],u=r[1];if(this.currentMask){var o=void 0;n=t.prototype.doPrepare.call(this,s,this.currentMaskFlags(e)),s=n[0],o=n[1];u=u.aggregate(o)}return[s,u]};i.prototype.doPrepareChar=function(i,e){var n;if(e===void 0){e={}}var r=t.prototype.doPrepareChar.call(this,i,e),s=r[0],u=r[1];if(this.currentMask){var o=void 0;n=t.prototype.doPrepareChar.call(this,s,this.currentMaskFlags(e)),s=n[0],o=n[1];u=u.aggregate(o)}return[s,u]};i.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(i.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(i){if(this.exposeMask){this.exposeMask.value=i;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(i){if(this.exposeMask){this.exposeMask.unmaskedValue=i;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});i.prototype.remove=function(t,i){var e=new H;if(this.currentMask){e.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return e};Object.defineProperty(i.prototype,"state",{get:function(){var i;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(i=this.currentMask)==null?void 0:i.state})},set:function(i){var e=i.compiledMasks,n=i.currentMaskRef,r=i.currentMask,s=__rest(i,["compiledMasks","currentMaskRef","currentMask"]);if(e)this.compiledMasks.forEach((function(t,i){return t.state=e[i]}));if(n!=null){this.currentMask=n;this.currentMask.state=r}t.prototype.state=s},enumerable:false,configurable:true});i.prototype.extractInput=function(t,i,e){return this.currentMask?this.currentMask.extractInput(t,i,e):""};i.prototype.extractTail=function(i,e){return this.currentMask?this.currentMask.extractTail(i,e):t.prototype.extractTail.call(this,i,e)};i.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};i.prototype.nearestInputPos=function(i,e){return this.currentMask?this.currentMask.nearestInputPos(i,e):t.prototype.nearestInputPos.call(this,i,e)};Object.defineProperty(i.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});i.prototype.maskEquals=function(i){return Array.isArray(i)?this.compiledMasks.every((function(t,e){if(!i[e])return;var n=i[e],r=n.mask,s=__rest(n,["mask"]);return B(t,s)&&t.maskEquals(r)})):t.prototype.maskEquals.call(this,i)};i.prototype.typedValueEquals=function(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))};return i}(W);tt.DEFAULTS=__assign(__assign({},W.DEFAULTS),{dispatch:function(t,i,e,n){if(!i.compiledMasks.length)return;var r=i.rawInputValue;var s=i.compiledMasks.map((function(s,u){var o=i.currentMask===s;var a=o?s.displayValue.length:s.nearestInputPos(s.displayValue.length,_.FORCE_LEFT);if(s.rawInputValue!==r){s.reset();s.append(r,{raw:true})}else if(!o){s.remove(a)}s.append(t,i.currentMaskFlags(e));s.appendTail(n);return{index:u,weight:s.rawInputValue.length,totalInputPositions:s.totalInputPositions(0,Math.max(a,s.nearestInputPos(s.displayValue.length,_.FORCE_LEFT)))}}));s.sort((function(t,i){return i.weight-t.weight||i.totalInputPositions-t.totalInputPositions}));return i.compiledMasks[s[0].index]}});O.MaskedDynamic=tt;var it=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign({},i.DEFAULTS),e))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.enum,n=__rest(i,["enum"]);if(e){var r=e.map((function(t){return t.length}));var s=Math.min.apply(Math,r);var u=Math.max.apply(Math,r)-s;n.mask="*".repeat(s);if(u)n.mask+="["+"*".repeat(u)+"]";this.enum=e}t.prototype._update.call(this,n)};i.prototype._appendCharRaw=function(i,e){var n=this;if(e===void 0){e={}}var r=Math.min(this.nearestInputPos(0,_.FORCE_RIGHT),this.value.length);var s=this.enum.filter((function(t){return n.matchValue(t,n.unmaskedValue+i,r)}));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,i){var r=s[0][i];if(i>=n.value.length||r===t.value)return;t.reset();t._appendChar(r,e)}))}var u=t.prototype._appendCharRaw.call(this,s[0][this.value.length],e);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((function(i){return u.aggregate(t.prototype._appendCharRaw.call(n,i))}))}return u}return new H({skip:!this.isComplete})};i.prototype.extractTail=function(t,i){if(t===void 0){t=0}return new Z("",t)};i.prototype.remove=function(i,e){var n=this;if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}if(i===e)return new H;var r=Math.min(t.prototype.nearestInputPos.call(this,0,_.FORCE_RIGHT),this.value.length);var s;for(s=i;s>=0;--s){var u=this.enum.filter((function(t){return n.matchValue(t,n.value.slice(r,s),r)}));if(u.length>1)break}var o=t.prototype.remove.call(this,s,e);o.tailShift+=s-i;return o};Object.defineProperty(i.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return i}($);it.DEFAULTS=__assign(__assign({},$.DEFAULTS),{matchValue:function(t,i,e){return t.indexOf(i,e)===e}});O.MaskedEnum=it;var et=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){t.prototype._update.call(this,__assign(__assign({},i),{validate:i.mask}))};return i}(W);O.MaskedFunction=et;var nt;var rt=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign({},i.DEFAULTS),e))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){t.prototype._update.call(this,i);this._updateRegExps()};i.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var i="\\d*";var e=(this.scale?"("+D(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+e);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(D).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(D(this.thousandsSeparator),"g")};i.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};i.prototype._insertThousandsSeparators=function(t){var i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)};i.prototype.doPrepareChar=function(i,e){if(e===void 0){e={}}var n=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?i.replace(this._mapToRadixRegExp,this.radix):i),e),r=n[0],s=n[1];if(i&&!r)s.skip=true;if(r&&!this.allowPositive&&!this.value&&r!=="-")s.aggregate(this._appendChar("-"));return[r,s]};i.prototype._separatorsCount=function(t,i){if(i===void 0){i=false}var e=0;for(var n=0;n<t;++n){if(this._value.indexOf(this.thousandsSeparator,n)===n){++e;if(i)t+=this.thousandsSeparator.length}}return e};i.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};i.prototype.extractInput=function(i,e,n){var r;if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}r=this._adjustRangeWithSeparators(i,e),i=r[0],e=r[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,i,e,n))};i.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var n=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;var r=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);var s=this._value;this._value+=t;var u=this.number;var o=!isNaN(u);var a=false;if(o){var l=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)l=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)l=this.max;if(l!=null){if(this.autofix){this._value=this.format(l,this).replace(i.UNMASKED_RADIX,this.radix);a||(a=s===this._value&&!e.tail)}else{o=false}}o&&(o=Boolean(this._value.match(this._numberRegExp)))}var h;if(!o){this._value=s;h=new H}else{h=new H({inserted:this._value.slice(s.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);var f=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;var c=this._separatorsCountFromSlice(f);h.tailShift+=(c-r)*this.thousandsSeparator.length;return h};i.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var i=t-this.thousandsSeparator.length+1;var e=this.value.indexOf(this.thousandsSeparator,i);if(e<=t)return e}return-1};i.prototype._adjustRangeWithSeparators=function(t,i){var e=this._findSeparatorAround(t);if(e>=0)t=e;var n=this._findSeparatorAround(i);if(n>=0)i=n+this.thousandsSeparator.length;return[t,i]};i.prototype.remove=function(t,i){var e;if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}e=this._adjustRangeWithSeparators(t,i),t=e[0],i=e[1];var n=this.value.slice(0,t);var r=this.value.slice(i);var s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+r));var u=this._separatorsCountFromSlice(n);return new H({tailShift:(u-s)*this.thousandsSeparator.length})};i.prototype.nearestInputPos=function(t,i){if(!this.thousandsSeparator)return t;switch(i){case _.NONE:case _.LEFT:case _.FORCE_LEFT:{var e=this._findSeparatorAround(t-1);if(e>=0){var n=e+this.thousandsSeparator.length;if(t<n||this.value.length<=n||i===_.FORCE_LEFT){return e}}break}case _.RIGHT:case _.FORCE_RIGHT:{var r=this._findSeparatorAround(t);if(r>=0){return r+this.thousandsSeparator.length}}}return t};i.prototype.doCommit=function(){if(this.value){var i=this.number;var e=i;if(this.min!=null)e=Math.max(e,this.min);if(this.max!=null)e=Math.min(e,this.max);if(e!==i)this.unmaskedValue=this.format(e,this);var n=this.value;if(this.normalizeZeros)n=this._normalizeZeros(n);if(this.padFractionalZeros&&this.scale>0)n=this._padFractionalZeros(n);this._value=n}t.prototype.doCommit.call(this)};i.prototype._normalizeZeros=function(t){var i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,(function(t,i,e,n){return i+n}));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))};i.prototype._padFractionalZeros=function(t){if(!t)return t;var i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)};i.prototype.doSkipInvalid=function(e,n,r){if(n===void 0){n={}}var s=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===i.UNMASKED_RADIX||this.mapToRadix.includes(e));return t.prototype.doSkipInvalid.call(this,e,n,r)&&!s};Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,i.UNMASKED_RADIX)},set:function(i){t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(i.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});i.prototype.typedValueEquals=function(e){return(t.prototype.typedValueEquals.call(this,e)||i.EMPTY_VALUES.includes(e)&&i.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")};return i}(W);nt=rt;rt.UNMASKED_RADIX=".";rt.EMPTY_VALUES=__spreadArray(__spreadArray([],W.EMPTY_VALUES,true),[0],false);rt.DEFAULTS=__assign(__assign({},W.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[nt.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});O.MaskedNumber=rt;var st={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function ut(t,i,e){if(i===void 0){i=st.MASKED}if(e===void 0){e=st.MASKED}var n=M(t);return function(t){return n.runIsolated((function(n){n[i]=t;return n[e]}))}}function ot(t,i,e,n){return ut(i,e,n)(t)}O.PIPE_TYPE=st;O.createPipe=ut;O.pipe=ot;var at=function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e,n,r;var s=I(i),u=s.repeat,o=__rest(s,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,o);var a=M(this._blockOpts);this.repeat=(e=(n=u!=null?u:a.repeat)!=null?n:this.repeat)!=null?e:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((r=this._blocks)==null?void 0:r.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})};i.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=new H;for(var n=(u=(o=this._mapPosToBlock(this.displayValue.length))==null?void 0:o.index)!=null?u:Math.max(this._blocks.length-1,0),r=void 0,s=void 0;r=(a=this._blocks[n])!=null?a:s=!s&&this._allocateBlock(n);++n){var u,o,a,l;var h=r._appendChar(t,__assign(__assign({},i),{_beforeTailState:(l=i._beforeTailState)==null||(l=l._blocks)==null?void 0:l[n]}));if(h.skip&&s){this._blocks.pop();this.mask=this.mask.slice(1);break}e.aggregate(h);if(h.consumed)break}return e};i.prototype._trimEmptyTail=function(t,i){var e,n;if(t===void 0){t=0}var r=Math.max(((e=this._mapPosToBlock(t))==null?void 0:e.index)||0,this.repeatFrom,0);var s;if(i!=null)s=(n=this._mapPosToBlock(i))==null?void 0:n.index;if(s==null)s=this._blocks.length-1;var u=0;for(var o=s;r<=o;--o,++u){if(this._blocks[o].unmaskedValue)break}if(u){this._blocks.splice(s-u+1,u);this.mask=this.mask.slice(u)}};i.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};i.prototype.remove=function(i,e){if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}var n=t.prototype.remove.call(this,i,e);this._trimEmptyTail(i,e);return n};i.prototype.totalInputPositions=function(i,e){if(i===void 0){i=0}if(e==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,i,e)};Object.defineProperty(i.prototype,"state",{get:function(){return t.prototype.state},set:function(i){this._blocks.length=i._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=i},enumerable:false,configurable:true});return i}($);O.RepeatBlock=at;try{globalThis.IMask=O}catch(t){}var lt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{margin-top:4px;-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';var ht={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};var ft=Object.entries(ht).map((function(t){var i=t[0],e=t[1];return{value:i,label:e}}));var ct='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>';var dt=t("verdocs_kba_dialog",function(){function t(t){i(this,t);this.exit=e(this,"exit");this.pinEntered=e(this,"pinEntered");this.next=e(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId="verdocs-date-input-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentWillLoad=function(){this.updatedRecipient=__assign({},this.recipient||{})};t.prototype.componentDidRender=function(){O(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var e=t.getMonth()+1;var n=t.getFullYear();if(i<10)i="0"+i;if(e<10)e="0"+e;return[e,i,n].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})};t.prototype.handleCancel=function(){this.exit.emit()};t.prototype.handleDismiss=function(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleDone=function(){this.next.emit(this.response);this.response=""};t.prototype.handleConfirmID=function(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)};t.prototype.render=function(){var t=this;var i,e,u,o,a,l,h,f,c,d,v,b,g,p;if(this.mode==="choice"){return n(r,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(s,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:ct}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"choices"},this.choices.map((function(i){return n("div",{class:"choice ".concat(i===t.response?"selected":""),onClick:function(){console.log("Selected",i);t.response=i}},i)}))),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:function(){return t.handleDone()},disabled:!this.response})))))}if(this.mode==="identity"){return n(r,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity"),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-first"},"Your Name:",n("span",{class:"required"},"*")),n("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.first_name,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{first_name:i.target.value})}}),n("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.last_name,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{last_name:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-address"},"Address:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.address,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{address:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-city"},"City:"),n("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.city,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{city:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-state"},"State:"),n("verdocs-select-input",{options:ft,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{state:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.zip,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{zip:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.ssn_last_4,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{ssn_last_4:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:this.dobContainerId},"Date of Birth:",n("span",{class:"required"},"*")),n("input",{type:"text",value:((f=this.updatedRecipient)===null||f===void 0?void 0:f.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{dob:i.target.value})}})),n("div",{class:"field"},n("label",null),n("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:function(i){return t.agreed=i.target.checked}}),n("span",null,"I agree to provide my personal information in order to validate my identity.")),n("div",{class:"buttons"},n("verdocs-button",{label:"Submit",onClick:function(){return t.handleConfirmID()},disabled:!this.agreed||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.first_name)||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.last_name)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.address)||!((b=this.updatedRecipient)===null||b===void 0?void 0:b.zip)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.ssn_last_4)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.dob)})))))}return n(r,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(s,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:ct}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"input"},n("label",{htmlFor:"verdocs-kba-input"},this.label),n("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:function(i){return t.response=i.target.value}})),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{label:"Submit",onClick:function(){return t.handleDone()},disabled:!this.response})))))};return t}());dt.style=lt;var vt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-otp-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-otp-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-otp-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-otp-dialog .step{margin-left:6px;color:#666}verdocs-otp-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-otp-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-otp-dialog .help-icon{width:40px;height:40px}verdocs-otp-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-otp-dialog .help-text{font-weight:400}verdocs-otp-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-otp-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-otp-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-otp-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-otp-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-otp-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-otp-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-otp-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-otp-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-otp-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-otp-dialog .buttons verdocs-button{margin-left:16px}';var bt='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>';var gt=t("verdocs_otp_dialog",function(){function t(t){i(this,t);this.exit=e(this,"exit");this.next=e(this,"next");this.resendTimeout=null;this.endpoint=o;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}t.prototype.componentDidLoad=function(){var t=this;this.startResendTimeout();setTimeout((function(){a(t.endpoint,{auth_method:t.method,code:"",resend:true}).then((function(i){console.log("Resend result",i);t.response=""})).catch((function(t){return console.log("Error resending code",t)}))}),1e3)};t.prototype.disconnectedCallback=function(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}};t.prototype.handleCancel=function(){this.exit.emit()};t.prototype.handleDismiss=function(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.startResendTimeout=function(){var t=this;this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((function(){t.resendDisabled=false}),3e4)};t.prototype.handleResend=function(){var t=this;this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((function(i){console.log("Resend result",i);t.response="";b("A new code has been sent.")})).catch((function(t){return console.log("Error resending code",t)}))};t.prototype.handleSubmit=function(){var t=this;this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:this.response}).then((function(i){console.log("Verification completed",i);t.next.emit({response:i});b("Thank you. Your verification was successful.")})).catch((function(t){b("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""};t.prototype.render=function(){var t=this;return n(r,{key:"10cd6b556024b97acda5e4877322565e0118fea1"},n("div",{key:"9ea09e34c90f9cdde76ad5bbb0540d85c6db5de3",class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{key:"c1c0bd65f7373e21b112ff3b416c609464fb866f",class:"dialog"},n("div",{key:"c980fcd8174ff297d1c7c80e79efe3e126b575c7",class:"heading"},"Verification Required"),n("div",{key:"adf2d302da78555ef92a7e387051cc3676ddd2a2",class:"help-box"},n("div",{key:"2686e866a16c681937c55747a4ae9d9a4a74b4c0",class:"help-icon",innerHTML:bt}),n("div",{key:"76d39d4f57a29c2cff014b3075d25cc67baf1c0d",class:"help-details"},n("div",{key:"45b0d03ab588dd1288c0fbf830cf58d9f83e0e51",class:"help-title"},"Please verify your email address"),n("div",{key:"486a563a055f1cfe36cc1b9ee26e113fdec804f7",class:"help-text"},"Check your email for a one-time code, and enter it below."))),n("div",{key:"83f2aa38ce0172d50982212baefe0dd74524fbca",class:"input"},n("label",{key:"f4e780dbd58eb873bd2dd42664e176e090695137",htmlFor:"verdocs-otp-input"},"Code:"),n("input",{key:"667d1344b55e619e114329d5c09bf6b740266010",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:function(i){return t.response=i.target.value}})),n("div",{key:"7359603409454e4327d4fbb69d19a9c28bfa0225",class:"buttons"},n("verdocs-button",{key:"8951da68dbca16f671b51c1437f219237963b9d6",label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{key:"12b7bfa6c49e1db77c96c6972cc1aa96493ea2bb",label:"Resend",onClick:function(){return t.handleResend()},disabled:this.resendDisabled}),n("verdocs-button",{key:"7a10bebcf57ab4f1a5cf741860156f81a08f1def",label:"Submit",onClick:function(){return t.handleSubmit()},disabled:!this.response})))))};return t}());gt.style=vt;var pt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';var xt=t("verdocs_view",function(){function t(t){i(this,t);this.sdkError=e(this,"sdkError");this.envelopeUpdated=e(this,"envelopeUpdated");this.another=e(this,"another");this.view=e(this,"view");this.next=e(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e,n,r;return __generator(this,(function(s){switch(s.label){case 0:if(!this.endpoint){this.endpoint=l.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error("[VIEW] Missing required envelopeId");return[2]}this.listenToEnvelope();if(!!this.envelope)return[3,4];s.label=1;case 1:s.trys.push([1,3,,4]);console.log("[VIEW] Loading envelope...");n=this;return[4,h(this.endpoint,this.envelopeId)];case 2:n.envelope=s.sent();console.log("[VIEW] Loaded envelope",this.envelope);return[3,4];case 3:r=s.sent();this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new p(r.message,(i=r.response)===null||i===void 0?void 0:i.status,(e=r.response)===null||e===void 0?void 0:e.data));return[3,4];case 4:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this.headerTargetId?document.getElementById(this.headerTargetId):null;var i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}};t.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};t.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();x.subscribe("envelopes",this.envelopeId,(function(){return h(t.endpoint,t.envelopeId)}),true,(function(i){t.envelope=i;t.loading=false}));return[2]}))}))};t.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){x.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};t.prototype.handlePageRendered=function(t){};t.prototype.handleOptionSelected=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e,n,r,s,u,s;var o=this;return __generator(this,(function(a){switch(a.label){case 0:n=t.detail.id;switch(n){case"cancel":return[3,1];case"print":return[3,2];case"download-attachments":return[3,3];case"download-certificate":return[3,6];case"download-all":return[3,9]}return[3,10];case 1:if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;c(this.endpoint,this.envelopeId).then((function(t){o.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(o.endpoint,o.envelopeId)})).then((function(t){console.log("[VIEW] Loaded new envelope details",t);o.envelope=t})).catch((function(t){var i,e,n;o.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=o.sdkError)===null||i===void 0?void 0:i.emit(new p(t.message,(e=t.response)===null||e===void 0?void 0:e.status,(n=t.response)===null||n===void 0?void 0:n.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}return[3,10];case 2:window.print();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,10];case 3:r=this.envelope.documents.find((function(t){return t.type==="attachment"}));if(!r)return[3,5];return[4,f(this.endpoint,this.envelopeId,r.id)];case 4:s=a.sent();window.open(s,"_blank");a.label=5;case 5:return[3,10];case 6:u=this.envelope.documents.find((function(t){return t.type==="certificate"}));if(!u)return[3,8];return[4,f(this.endpoint,this.envelopeId,u.id)];case 7:s=a.sent();window.open(s,"_blank");a.label=8;case 8:return[3,10];case 9:g(this.endpoint,[this.envelope]).then((function(){var t;(t=o.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:o.endpoint,envelope:o.envelope,event:"downloaded"})})).catch((function(t){console.log("Error downloading Zip",t)}));return[3,10];case 10:return[2]}}))}))};t.prototype.render=function(){var t=this;var i;if(this.loading){return n(r,null,n("verdocs-loader",null))}if(this.showLoadError){return n(r,null,n("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:"Sorry, that envelope is not valid.",buttonLabel:"OK",onNext:function(){t.showLoadError=false}}))}if(!this.envelope){return n(r,null,n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}var e=[{id:"print",label:"Print"}];if(d(this.endpoint.profile,this.envelope)){e.push({id:"cancel",label:"Cancel"})}var u=this.envelope.documents.length>0;var o=this.envelope.documents.filter((function(t){return t.type==="attachment"})).length;var a=this.envelope.documents.find((function(t){return t.type==="certificate"}))!==undefined;if(u||a){e.push({label:""});if(u){e.push({id:"download-attachments",label:o>1?"Download Documents":"Download Document"})}if(a){e.push({id:"download-certificate",label:"Download Certificate"})}if(u&&a){e.push({id:"download-all",label:"Download All Files"})}}return n(r,null,n("div",{id:"verdocs-view-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:e,onOptionSelected:function(i){return t.handleOptionSelected(i)}}))),n("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((i=this.envelope)===null||i===void 0?void 0:i.documents)||[]).filter((function(t){return t.type!=="certificate"})).map((function(i){var e=v(1,i.pages);return n(s,null,e.map((function(e){var r;var s=((r=i.page_sizes)===null||r===void 0?void 0:r[e])||{width:612,height:792};return n("verdocs-envelope-document-page",{envelopeId:t.envelopeId,documentId:i.id,endpoint:t.endpoint,type:"filled",virtualWidth:s.width,virtualHeight:s.height,pageNumber:e,onPageRendered:function(i){return t.handlePageRendered(i)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&n("verdocs-ok-dialog",{heading:"Cancelled",message:"This envelope has been cancelled successfully.",onNext:function(){t.showCancelDone=false}}),this.canceling&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))};Object.defineProperty(t.prototype,"component",{get:function(){return u(this)},enumerable:false,configurable:true});return t}());xt.style=pt}}}));
|
2
|
+
//# sourceMappingURL=p-33ce9472.system.entry.js.map
|