@verdocs/web-sdk 6.5.0-beta.3 → 6.5.0-beta.6
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/{Datastore-CIzsoGWH.js → Datastore-B-sxWSPD.js} +3 -3
- package/dist/{esm/Datastore-DmsV595e.js.map → cjs/Datastore-B-sxWSPD.js.map} +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +13 -9
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +144 -165
- package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-ok-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +153 -111
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-status-indicator.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/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.css +3 -0
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +5 -1
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +58 -72
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.css +14 -18
- package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +5 -5
- package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js.map +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.css +19 -13
- 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-question-dialog/verdocs-question-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.css +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-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +38 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +151 -109
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.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-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js.map +1 -1
- 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/utils/Datastore.js +1 -1
- package/dist/collection/utils/Datastore.js.map +1 -1
- package/dist/components/{p-BU3qvBJL.js → p-BCGLRLXU.js} +10 -10
- package/dist/components/{p-BU3qvBJL.js.map → p-BCGLRLXU.js.map} +1 -1
- package/dist/components/{p-CmUZsES9.js → p-BFzwPAl5.js} +4 -4
- package/dist/components/{p-CmUZsES9.js.map → p-BFzwPAl5.js.map} +1 -1
- package/dist/components/{p-C-9CfxhN.js → p-BGxpdi-a.js} +3 -3
- package/dist/components/{p-C-9CfxhN.js.map → p-BGxpdi-a.js.map} +1 -1
- package/dist/components/{p-COHaJ-jL.js → p-BIJv2m4N.js} +4 -4
- package/dist/components/{p-COHaJ-jL.js.map → p-BIJv2m4N.js.map} +1 -1
- package/dist/components/{p-BgintEvn.js → p-BfYXOQDK.js} +5 -5
- package/dist/components/{p-BgintEvn.js.map → p-BfYXOQDK.js.map} +1 -1
- package/dist/components/{p-B9DM7wD0.js → p-BlXhZtZ-.js} +6 -6
- package/dist/components/{p-B9DM7wD0.js.map → p-BlXhZtZ-.js.map} +1 -1
- package/dist/components/{p-2bF2_rFv.js → p-Bp3M0BBA.js} +4 -4
- package/dist/components/{p-2bF2_rFv.js.map → p-Bp3M0BBA.js.map} +1 -1
- package/dist/components/{p-ATwhsypY.js → p-BrNxQgY3.js} +3 -3
- package/dist/components/{p-ATwhsypY.js.map → p-BrNxQgY3.js.map} +1 -1
- package/dist/components/{p-DzLB0MYu.js → p-BugyzQ9w.js} +20 -20
- package/dist/components/{p-DzLB0MYu.js.map → p-BugyzQ9w.js.map} +1 -1
- package/dist/components/{p-C_fTZqX_.js → p-C1AnR_cD.js} +7 -7
- package/dist/components/{p-C_fTZqX_.js.map → p-C1AnR_cD.js.map} +1 -1
- package/dist/components/{p-C25OmrD6.js → p-C5p7js7x.js} +3 -3
- package/dist/components/p-C5p7js7x.js.map +1 -0
- package/dist/components/{p-C_Lg8FA9.js → p-C6OpJwVg.js} +4 -4
- package/dist/components/{p-C_Lg8FA9.js.map → p-C6OpJwVg.js.map} +1 -1
- package/dist/components/{p-C7xRBNX9.js → p-CFR0KdKs.js} +8 -8
- package/dist/components/{p-C7xRBNX9.js.map → p-CFR0KdKs.js.map} +1 -1
- package/dist/components/{p-DZv79sQs.js → p-CPj9fDi4.js} +19 -19
- package/dist/components/{p-DZv79sQs.js.map → p-CPj9fDi4.js.map} +1 -1
- package/dist/components/{p-a2gHu10Y.js → p-CTninn6T.js} +3 -3
- package/dist/components/{p-a2gHu10Y.js.map → p-CTninn6T.js.map} +1 -1
- package/dist/components/{p-C4QDSG_D.js → p-CUP8Zd4b.js} +3 -3
- package/dist/components/{p-C4QDSG_D.js.map → p-CUP8Zd4b.js.map} +1 -1
- package/dist/components/{p-INlr_V_p.js → p-CWDgjfsa.js} +20 -20
- package/dist/components/{p-INlr_V_p.js.map → p-CWDgjfsa.js.map} +1 -1
- package/dist/components/{p-cJtKU5n1.js → p-CdHCjxER.js} +4 -4
- package/dist/components/{p-cJtKU5n1.js.map → p-CdHCjxER.js.map} +1 -1
- package/dist/components/{p-CuOsqbUL.js → p-Cgy-St4o.js} +3 -3
- package/dist/components/{p-CuOsqbUL.js.map → p-Cgy-St4o.js.map} +1 -1
- package/dist/components/{p-BXwiCpEb.js → p-Cyd79545.js} +3 -3
- package/dist/components/{p-BXwiCpEb.js.map → p-Cyd79545.js.map} +1 -1
- package/dist/components/{p-BJ1x02dk.js → p-CzwawR4S.js} +6 -6
- package/dist/components/p-CzwawR4S.js.map +1 -0
- package/dist/components/{p-0lrmfxFN.js → p-DAJ5vBkQ.js} +146 -167
- package/dist/components/p-DAJ5vBkQ.js.map +1 -0
- package/dist/components/{p-CT33lvBJ.js → p-DEIom9HA.js} +3 -3
- package/dist/components/{p-CT33lvBJ.js.map → p-DEIom9HA.js.map} +1 -1
- package/dist/components/{p-IF2BYQ14.js → p-DEnke3CS.js} +4 -4
- package/dist/components/{p-IF2BYQ14.js.map → p-DEnke3CS.js.map} +1 -1
- package/dist/components/{p-Ce79yI27.js → p-DIoR27z8.js} +3 -3
- package/dist/components/{p-Ce79yI27.js.map → p-DIoR27z8.js.map} +1 -1
- package/dist/components/{p-C-NHtu_d.js → p-DchY14CS.js} +3 -3
- package/dist/components/{p-C-NHtu_d.js.map → p-DchY14CS.js.map} +1 -1
- package/dist/components/{p-DJxcnCni.js → p-DcwOsXCY.js} +4 -4
- package/dist/components/{p-DJxcnCni.js.map → p-DcwOsXCY.js.map} +1 -1
- package/dist/components/{p-BWQH6Cty.js → p-Dh46OTUi.js} +3 -3
- package/dist/components/{p-BWQH6Cty.js.map → p-Dh46OTUi.js.map} +1 -1
- package/dist/components/{p-D8AzOFt_.js → p-DqlEh_mP.js} +3 -3
- package/dist/components/{p-D8AzOFt_.js.map → p-DqlEh_mP.js.map} +1 -1
- package/dist/components/{p-DMNzrP5c.js → p-Ig14zcHS.js} +4 -4
- package/dist/components/{p-DMNzrP5c.js.map → p-Ig14zcHS.js.map} +1 -1
- package/dist/components/{p-DdnddN_K.js → p-MqLDXUUO.js} +4 -4
- package/dist/components/{p-DdnddN_K.js.map → p-MqLDXUUO.js.map} +1 -1
- package/dist/components/{p-Dl45UNf-.js → p-RUwHFHF1.js} +5 -5
- package/dist/components/{p-Dl45UNf-.js.map → p-RUwHFHF1.js.map} +1 -1
- package/dist/components/{p-DCXdeiPc.js → p-Uz11lhZM.js} +9 -5
- package/dist/components/p-Uz11lhZM.js.map +1 -0
- package/dist/components/{p-CCKs9OuD.js → p-VuxxUjj5.js} +4 -4
- package/dist/components/{p-CCKs9OuD.js.map → p-VuxxUjj5.js.map} +1 -1
- package/dist/components/{p-BlMgp5BW.js → p-YNAyciqI.js} +5 -5
- package/dist/components/{p-BlMgp5BW.js.map → p-YNAyciqI.js.map} +1 -1
- package/dist/{esm/Datastore-DmsV595e.js → components/p-bS8INhRF.js} +3 -3
- package/dist/components/p-bS8INhRF.js.map +1 -0
- package/dist/components/p-cKQZefP3.js +63 -0
- package/dist/components/p-cKQZefP3.js.map +1 -0
- package/dist/components/p-eNrds2xy.js +84 -0
- package/dist/components/p-eNrds2xy.js.map +1 -0
- package/dist/components/{p-DFn7OyyI.js → p-ePrUilZO.js} +4 -4
- package/dist/components/{p-DFn7OyyI.js.map → p-ePrUilZO.js.map} +1 -1
- package/dist/components/{p-DpF1OjCe.js → p-f_4iQ-e-.js} +5 -5
- package/dist/components/p-f_4iQ-e-.js.map +1 -0
- package/dist/components/{p-rWeRsA_5.js → p-vk97395M.js} +4 -4
- package/dist/components/{p-rWeRsA_5.js.map → p-vk97395M.js.map} +1 -1
- package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
- package/dist/components/verdocs-build.js +27 -27
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-delegate-dialog.js +1 -1
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-disclosure-dialog.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 +5 -5
- package/dist/components/verdocs-envelope-update-recipient.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +7 -7
- 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 +2 -2
- 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-initial-dialog.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-otp-dialog.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-question-dialog.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign-footer.js +1 -1
- package/dist/components/verdocs-sign.js +166 -124
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-signing-progress.js +1 -1
- package/dist/components/verdocs-status-indicator.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-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 +3 -3
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/{components/p-DmsV595e.js → esm/Datastore-bS8INhRF.js} +3 -3
- package/dist/{esm-es5/Datastore-DmsV595e.js.map → esm/Datastore-bS8INhRF.js.map} +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +13 -9
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +144 -165
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -1
- package/dist/esm/verdocs-envelope-document-page_3.entry.js +4 -4
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +4 -4
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
- package/dist/esm/verdocs-ok-dialog.entry.js.map +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +154 -112
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-status-indicator.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-es5/Datastore-bS8INhRF.js +2 -0
- package/dist/{cjs/Datastore-CIzsoGWH.js.map → esm-es5/Datastore-bS8INhRF.js.map} +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +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-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.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-status-indicator.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/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +5 -6
- package/dist/types/components.d.ts +6 -6
- package/dist/verdocs-web-sdk/{p-ab8ba727.entry.js → p-05595444.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ab8ba727.entry.js.map → p-05595444.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-c726e0d7.entry.js → p-0a000430.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4a19fbe3.system.entry.js → p-0a755490.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-0acdc6e3.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-0acdc6e3.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-c6e9d6fa.entry.js → p-0e615dfa.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-148dd66c.entry.js → p-1b144b5b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aa39fd5b.system.entry.js → p-1d3b1941.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-632431e9.entry.js → p-20fb3050.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0244f789.entry.js → p-2948f7cd.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fb1f1d76.system.entry.js → p-36da59e7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-36efc89a.system.entry.js → p-385ad70e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2898f573.entry.js → p-39e95382.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-489534aa.entry.js → p-4983cf5c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ec6f161e.system.entry.js → p-5cb2ce47.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8fc90e38.entry.js → p-66cacca6.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6c60e0b0.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-6c60e0b0.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-749da21a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-749da21a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d5fc15ee.entry.js → p-76986e09.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-a4b44720.system.entry.js → p-7d498eb3.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ae75565d.entry.js → p-7e851ae1.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a3ed7e19.entry.js → p-7f64b70d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-80e72abc.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-828eaae7.entry.js.map → p-80e72abc.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-c997753e.system.entry.js → p-8535dcb0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ba66ef0e.system.entry.js → p-88c7ffc0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-8f98b783.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-8f98b783.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-0029decb.entry.js → p-91c9fe9c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e6015dfb.system.entry.js → p-9bd8fedf.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-qAU-PJPJ.system.js.map → p-B0W0PGsT.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-B0XOGp0Z.system.js.map → p-BAl_cDmw.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-B0D33bcu.system.js.map → p-BJxbmjxu.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-C8kxZqse.system.js.map → p-BXpz3v6W.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-D-LZAEE-.system.js.map → p-Bm0VE30F.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Cs8nzZkX.system.js.map → p-BmcSX6sZ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-xFl_XV91.system.js.map → p-BndeQeTv.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-B0A6MSE_.system.js.map → p-BwQXhQvO.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-C7iXSC_j.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-Dj3cajbH.system.js.map → p-CNdC8VAw.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CieKSMnx.system.js.map → p-CY9UqVhn.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DZ9tOVBK.system.js.map → p-C_AWqWRH.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-Cc_QQDrW.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-D2-UhZde.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-BDx8jh5x.system.js.map → p-DA1uvkFq.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BBplyI1s.system.js.map → p-DDvdJ21e.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DIXcGfRL.system.js.map → p-DG4e0IXS.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-tODAbh1B.system.js.map → p-DenWgGaD.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-L4wJpGIe.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-XPySISfx.system.js.map → p-UMrzwiST.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-64e896e9.system.entry.js → p-a82f6d6e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7816a3e8.system.entry.js → p-ae79d493.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-84c0b47c.system.entry.js → p-b620b256.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6093e7f5.entry.js → p-b87098c9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DmsV595e.js → p-bS8INhRF.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DmsV595e.js.map → p-bS8INhRF.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ff26d6ca.system.entry.js → p-bb2c8e5b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-bde15580.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-bde15580.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d71a77b4.system.entry.js → p-bec3f943.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-244b7719.entry.js → p-c25a39a3.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-cbe89f86.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-cbe89f86.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-46991fe7.system.entry.js → p-d1d9d737.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-46991fe7.system.entry.js.map → p-d1d9d737.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-daf326e4.system.entry.js → p-d5823282.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0596c4db.entry.js → p-d7868ae6.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0472a40b.system.entry.js → p-de973f2d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8546c8db.entry.js → p-e29fc7e7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-605b48fa.system.entry.js → p-ebccaef7.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-f19f93ec.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-3255c6d0.system.entry.js.map → p-f19f93ec.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-05a1750b.entry.js → p-f9fc9ab8.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5d9229fa.entry.js → p-fc6358aa.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-415fa16f.system.entry.js → p-ff3668fa.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-lEpx1l-p.system.js +2 -0
- package/dist/verdocs-web-sdk/{p-CmnBGerV.system.js.map → p-lEpx1l-p.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DzGaqMQD.system.js.map → p-lwgB42m8.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-kMtS6OkN.system.js.map → p-wP1cqCcu.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DxzUtRjY.system.js.map → p-zsFbq97t.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.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.css +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-0lrmfxFN.js.map +0 -1
- package/dist/components/p-BJ1x02dk.js.map +0 -1
- package/dist/components/p-C25OmrD6.js.map +0 -1
- package/dist/components/p-COHr9dCI.js +0 -84
- package/dist/components/p-COHr9dCI.js.map +0 -1
- package/dist/components/p-DCXdeiPc.js.map +0 -1
- package/dist/components/p-DWDOlfFM.js +0 -63
- package/dist/components/p-DWDOlfFM.js.map +0 -1
- package/dist/components/p-DmsV595e.js.map +0 -1
- package/dist/components/p-DpF1OjCe.js.map +0 -1
- package/dist/custom-elements.json +0 -2422
- package/dist/esm-es5/Datastore-DmsV595e.js +0 -2
- package/dist/verdocs-web-sdk/p-2439e530.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-2439e530.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3255c6d0.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-64d8ea72.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-64d8ea72.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-78e8e398.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-78e8e398.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-828eaae7.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9cdc0980.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-9cdc0980.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BgTW-H9_.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CAlOUHPb.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CmnBGerV.system.js +0 -2
- package/dist/verdocs-web-sdk/p-DA_SuBaQ.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-k2jmkyZp.system.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-c726e0d7.entry.js.map → p-0a000430.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-4a19fbe3.system.entry.js.map → p-0a755490.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c6e9d6fa.entry.js.map → p-0e615dfa.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-148dd66c.entry.js.map → p-1b144b5b.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-aa39fd5b.system.entry.js.map → p-1d3b1941.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-632431e9.entry.js.map → p-20fb3050.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0244f789.entry.js.map → p-2948f7cd.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-fb1f1d76.system.entry.js.map → p-36da59e7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-36efc89a.system.entry.js.map → p-385ad70e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2898f573.entry.js.map → p-39e95382.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-489534aa.entry.js.map → p-4983cf5c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ec6f161e.system.entry.js.map → p-5cb2ce47.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8fc90e38.entry.js.map → p-66cacca6.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d5fc15ee.entry.js.map → p-76986e09.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a4b44720.system.entry.js.map → p-7d498eb3.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ae75565d.entry.js.map → p-7e851ae1.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a3ed7e19.entry.js.map → p-7f64b70d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c997753e.system.entry.js.map → p-8535dcb0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ba66ef0e.system.entry.js.map → p-88c7ffc0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0029decb.entry.js.map → p-91c9fe9c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e6015dfb.system.entry.js.map → p-9bd8fedf.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-64e896e9.system.entry.js.map → p-a82f6d6e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7816a3e8.system.entry.js.map → p-ae79d493.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-84c0b47c.system.entry.js.map → p-b620b256.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6093e7f5.entry.js.map → p-b87098c9.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ff26d6ca.system.entry.js.map → p-bb2c8e5b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d71a77b4.system.entry.js.map → p-bec3f943.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-244b7719.entry.js.map → p-c25a39a3.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-daf326e4.system.entry.js.map → p-d5823282.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0596c4db.entry.js.map → p-d7868ae6.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0472a40b.system.entry.js.map → p-de973f2d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8546c8db.entry.js.map → p-e29fc7e7.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-605b48fa.system.entry.js.map → p-ebccaef7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-05a1750b.entry.js.map → p-f9fc9ab8.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-5d9229fa.entry.js.map → p-fc6358aa.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-415fa16f.system.entry.js.map → p-ff3668fa.system.entry.js.map} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(r,n,e,t){function a(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,o){function i(r){try{c(t.next(r))}catch(r){o(r)}}function u(r){try{c(t["throw"](r))}catch(r){o(r)}}function c(r){r.done?e(r.value):a(r.value).then(i,u)}c((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(r){return function(n){return c([r,n])}}function c(u){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(e=0)),e)try{if(t=1,a&&(o=u[0]&2?a["return"]:u[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;if(a=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;a=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(o=e.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1];o=u;break}if(o&&e.label<o[2]){e.label=o[2];e.ops.push(u);break}if(o[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];a=0}finally{t=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,a=n.length,o;t<a;t++){if(o||!(t in n)){if(!o)o=Array.prototype.slice.call(n,0,t);o[t]=n[t]}}return r.concat(o||Array.prototype.slice.call(n))};import{getEnvelope,getTemplate}from"@verdocs/js-sdk";var getTypeOf=function(r){return typeof r};var EMPTY_STRING="";var STRING=getTypeOf(EMPTY_STRING);var BOOLEAN=getTypeOf(true);var NUMBER=getTypeOf(0);var FUNCTION=getTypeOf(getTypeOf);var TYPE="type";var DEFAULT="default";var LISTENER="Listener";var ADD="add";var HAS="Has";var IDS="Ids";var TABLE="Table";var TABLES=TABLE+"s";var TABLE_IDS=TABLE+IDS;var ROW="Row";var ROW_COUNT=ROW+"Count";var ROW_IDS=ROW+IDS;var CELL="Cell";var CELL_IDS=CELL+IDS;var VALUE="Value";var VALUES=VALUE+"s";var VALUE_IDS=VALUE+IDS;var id=function(r){return EMPTY_STRING+r};var isFiniteNumber=isFinite;var isInstanceOf=function(r,n){return r instanceof n};var isUndefined=function(r){return r==void 0};var ifNotUndefined=function(r,n,e){return isUndefined(r)?e===null||e===void 0?void 0:e():n(r)};var isTypeStringOrBoolean=function(r){return r==STRING||r==BOOLEAN};var isFunction=function(r){return getTypeOf(r)==FUNCTION};var isArray=function(r){return Array.isArray(r)};var slice=function(r,n,e){return r.slice(n,e)};var size=function(r){return r.length};var test=function(r,n){return r.test(n)};var tryCatch=function(r,n,e){return __awaiter(void 0,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,r()];case 1:return[2,t.sent()];case 2:e=t.sent();n===null||n===void 0?void 0:n(e);return[3,3];case 3:return[2]}}))}))};var arrayHas=function(r,n){return r.includes(n)};var arrayEvery=function(r,n){return r.every(n)};var arrayIsEqual=function(r,n){return size(r)===size(n)&&arrayEvery(r,(function(r,e){return n[e]===r}))};var arraySort=function(r,n){return r.sort(n)};var arrayForEach=function(r,n){return r.forEach(n)};var arrayMap=function(r,n){return r.map(n)};var arrayReduce=function(r,n,e){return r.reduce(n,e)};var arrayPush=function(r){var n=[];for(var e=1;e<arguments.length;e++){n[e-1]=arguments[e]}return r.push.apply(r,n)};var arrayShift=function(r){return r.shift()};var getCellOrValueType=function(r){var n=getTypeOf(r);return isTypeStringOrBoolean(n)||n==NUMBER&&isFiniteNumber(r)?n:void 0};var setOrDelCell=function(r,n,e,t,a){return isUndefined(a)?r.delCell(n,e,t,true):r.setCell(n,e,t,a)};var setOrDelValue=function(r,n,e){return isUndefined(e)?r.delValue(n):r.setValue(n,e)};var collSizeN=function(r){return function(n){return arrayReduce(collValues(n),(function(n,e){return n+r(e)}),0)}};var collSize=function(r){var n;return(n=r===null||r===void 0?void 0:r.size)!==null&&n!==void 0?n:0};var collSize2=collSizeN(collSize);var collSize3=collSizeN(collSize2);var collSize4=collSizeN(collSize3);var collHas=function(r,n){var e;return(e=r===null||r===void 0?void 0:r.has(n))!==null&&e!==void 0?e:false};var collIsEmpty=function(r){return isUndefined(r)||collSize(r)==0};var collValues=function(r){var n;return __spreadArray([],(n=r===null||r===void 0?void 0:r.values())!==null&&n!==void 0?n:[],true)};var collClear=function(r){return r.clear()};var collForEach=function(r,n){return r===null||r===void 0?void 0:r.forEach(n)};var collDel=function(r,n){return r===null||r===void 0?void 0:r.delete(n)};var object=Object;var getPrototypeOf=function(r){return object.getPrototypeOf(r)};var objFrozen=object.isFrozen;var objEntries=object.entries;var isObject=function(r){return!isUndefined(r)&&ifNotUndefined(getPrototypeOf(r),(function(r){return r==object.prototype||isUndefined(getPrototypeOf(r))}),(function(){return true}))};var objIds=object.keys;var objFreeze=object.freeze;var objNew=function(r){if(r===void 0){r=[]}return object.fromEntries(r)};var objHas=function(r,n){return n in r};var objDel=function(r,n){delete r[n];return r};var objForEach=function(r,n){return arrayForEach(objEntries(r),(function(r){var e=r[0],t=r[1];return n(t,e)}))};var objToArray=function(r,n){return arrayMap(objEntries(r),(function(r){var e=r[0],t=r[1];return n(t,e)}))};var objMap=function(r,n){return objNew(objToArray(r,(function(r,e){return[e,n(r,e)]})))};var objSize=function(r){return size(objIds(r))};var objIsEmpty=function(r){return isObject(r)&&objSize(r)==0};var objValidate=function(r,n,e,t){if(t===void 0){t=0}if(isUndefined(r)||!isObject(r)||!t&&objIsEmpty(r)||objFrozen(r)){e===null||e===void 0?void 0:e();return false}objForEach(r,(function(e,t){if(!n(e,t)){objDel(r,t)}}));return t?true:!objIsEmpty(r)};var mapNew=function(r){return new Map(r)};var mapKeys=function(r){var n;return __spreadArray([],(n=r===null||r===void 0?void 0:r.keys())!==null&&n!==void 0?n:[],true)};var mapGet=function(r,n){return r===null||r===void 0?void 0:r.get(n)};var mapForEach=function(r,n){return collForEach(r,(function(r,e){return n(e,r)}))};var mapMap=function(r,n){var e;return arrayMap(__spreadArray([],(e=r===null||r===void 0?void 0:r.entries())!==null&&e!==void 0?e:[],true),(function(r){var e=r[0],t=r[1];return n(t,e)}))};var mapSet=function(r,n,e){return isUndefined(e)?(collDel(r,n),r):r===null||r===void 0?void 0:r.set(n,e)};var mapEnsure=function(r,n,e,t){if(!collHas(r,n)){mapSet(r,n,e())}else{t===null||t===void 0?void 0:t(mapGet(r,n))}return mapGet(r,n)};var mapMatch=function(r,n,e,t){if(t===void 0){t=mapSet}objMap(n,(function(n,t){return e(r,t,n)}));mapForEach(r,(function(e){return objHas(n,e)?0:t(r,e)}));return r};var mapToObj=function(r,n,e,t){var a={};collForEach(r,(function(r,o){if(!(e===null||e===void 0?void 0:e(r,o))){var i=n?n(r,o):r;if(!(t===null||t===void 0?void 0:t(i))){a[o]=i}}}));return a};var mapToObj2=function(r,n,e){return mapToObj(r,(function(r){return mapToObj(r,n,e)}),collIsEmpty,objIsEmpty)};var mapToObj3=function(r,n,e){return mapToObj(r,(function(r){return mapToObj2(r,n,e)}),collIsEmpty,objIsEmpty)};var mapClone=function(r,n){var e=mapNew();collForEach(r,(function(r,t){var a;return e.set(t,(a=n===null||n===void 0?void 0:n(r))!==null&&a!==void 0?a:r)}));return e};var mapClone2=function(r){return mapClone(r,mapClone)};var mapClone3=function(r){return mapClone(r,mapClone2)};var visitTree=function(r,n,e,t,a){if(a===void 0){a=0}return ifNotUndefined((e?mapEnsure:mapGet)(r,n[a],a>size(n)-2?e:mapNew),(function(o){if(a>size(n)-2){if(t===null||t===void 0?void 0:t(o)){mapSet(r,n[a])}return o}var i=visitTree(o,n,e,t,a+1);if(collIsEmpty(o)){mapSet(r,n[a])}return i}))};var setNew=function(r){return new Set(isArray(r)||isUndefined(r)?r:[r])};var setAdd=function(r,n){return r===null||r===void 0?void 0:r.add(n)};var INTEGER=/^\d+$/;var getPoolFunctions=function(){var r=[];var n=0;return[function(e){var t;return(t=e?arrayShift(r):null)!==null&&t!==void 0?t:EMPTY_STRING+n++},function(n){if(test(INTEGER,n)&&size(r)<1e3){arrayPush(r,n)}}]};var getWildcardedLeaves=function(r,n){if(n===void 0){n=[EMPTY_STRING]}var e=[];var t=function(r,a){return a==size(n)?arrayPush(e,r):n[a]===null?collForEach(r,(function(r){return t(r,a+1)})):arrayForEach([n[a],null],(function(n){return t(mapGet(r,n),a+1)}))};t(r,0);return e};var getListenerFunctions=function(r){var n;var e=getPoolFunctions(),t=e[0],a=e[1];var o=mapNew();var i=function(e,a,i,u,c){if(u===void 0){u=[]}if(c===void 0){c=function(){return[]}}n!==null&&n!==void 0?n:n=r();var l=t(1);mapSet(o,l,[e,a,i,u,c]);setAdd(visitTree(a,i!==null&&i!==void 0?i:[EMPTY_STRING],setNew),l);return l};var u=function(r,e){var t=[];for(var a=2;a<arguments.length;a++){t[a-2]=arguments[a]}return arrayForEach(getWildcardedLeaves(r,e),(function(r){return collForEach(r,(function(r){var a;return(a=mapGet(o,r))[0].apply(a,__spreadArray(__spreadArray([n],e!==null&&e!==void 0?e:[],false),t,false))}))}))};var c=function(r){return ifNotUndefined(mapGet(o,r),(function(n){var e=n[1],t=n[2];visitTree(e,t!==null&&t!==void 0?t:[EMPTY_STRING],void 0,(function(n){collDel(n,r);return collIsEmpty(n)?1:0}));mapSet(o,r);a(r);return t}))};var l=function(r){return ifNotUndefined(mapGet(o,r),(function(r){var e=r[0],t=r[2],a=t===void 0?[]:t,o=r[3],i=r[4];var u=function(){var r,t;var c=[];for(var l=0;l<arguments.length;l++){c[l]=arguments[l]}var f=size(c);if(f==size(a)){e.apply(void 0,__spreadArray(__spreadArray([n],c,false),i(c),false))}else if(isUndefined(a[f])){arrayForEach((t=(r=o[f])===null||r===void 0?void 0:r.call.apply(r,__spreadArray([o],c,false)))!==null&&t!==void 0?t:[],(function(r){return u.apply(void 0,__spreadArray(__spreadArray([],c,false),[r],false))}))}else{u.apply(void 0,__spreadArray(__spreadArray([],c,false),[a[f]],false))}};u()}))};return[i,u,c,l]};var jsonString=JSON.stringify;var jsonParse=JSON.parse;var jsonStringWithMap=function(r){return jsonString(r,(function(r,n){return isInstanceOf(n,Map)?object.fromEntries(__spreadArray([],n,true)):n}))};var defaultSorter=function(r,n){return(r!==null&&r!==void 0?r:0)<(n!==null&&n!==void 0?n:0)?-1:1};var pairNew=function(r){return[r,r]};var pairCollSize2=function(r,n){if(n===void 0){n=collSize2}return n(r[0])+n(r[1])};var pairNewMap=function(){return[mapNew(),mapNew()]};var pairClone=function(r){return __spreadArray([],r,true)};var pairIsEqual=function(r){var n=r[0],e=r[1];return n===e};var idsChanged=function(r,n,e){return mapSet(r,n,mapGet(r,n)==-e?void 0:e)};var createStore=function(){var r;var n;var e;var t=false;var a=false;var o=0;var i=[];var u=mapNew();var c=mapNew();var l=mapNew();var f=mapNew();var v=mapNew();var s=mapNew();var p=mapNew();var d=mapNew();var m=mapNew();var E=mapNew();var y=mapNew();var S=mapNew();var b=mapNew();var h=mapNew();var T=setNew();var N=mapNew();var w=mapNew();var j=mapNew();var _=mapNew();var I=pairNewMap();var C=pairNewMap();var O=pairNewMap();var g=pairNewMap();var A=pairNewMap();var F=pairNewMap();var G=pairNewMap();var M=pairNewMap();var L=pairNewMap();var U=pairNewMap();var z=pairNewMap();var R=pairNewMap();var V=pairNewMap();var D=pairNewMap();var H=pairNewMap();var P=pairNewMap();var B=pairNewMap();var W=pairNewMap();var J=pairNewMap();var Y=pairNewMap();var q=pairNewMap();var K=pairNewMap();var k=mapNew();var x=pairNewMap();var $=getListenerFunctions((function(){return se})),Q=$[0],X=$[1],Z=$[2],rr=$[3];var nr=function(r){return objValidate(r,(function(r){return objValidate(r,tr)}))};var er=function(r){return objValidate(r,tr)};var tr=function(r){if(!objValidate(r,(function(r,n){return arrayHas([TYPE,DEFAULT],n)}))){return false}var n=r[TYPE];if(!isTypeStringOrBoolean(n)&&n!=NUMBER){return false}if(getCellOrValueType(r[DEFAULT])!=n){objDel(r,DEFAULT)}return true};var ar=isArray;var or=function(r){return objValidate(r,ir,Rr)};var ir=function(r,e){return(!n||collHas(y,e)||Rr(e))&&objValidate(r,(function(r,n){return ur(e,n,r)}),(function(){return Rr(e)}))};var ur=function(r,n,e,t){return objValidate(t?e:vr(e,r,n),(function(t,a){return ifNotUndefined(cr(r,n,a,t),(function(r){e[a]=r;return true}),(function(){return false}))}),(function(){return Rr(r,n)}))};var cr=function(r,e,t,a){return n?ifNotUndefined(mapGet(mapGet(y,r),t),(function(n){return getCellOrValueType(a)!=n[TYPE]?Rr(r,e,t,a,n[DEFAULT]):a}),(function(){return Rr(r,e,t,a)})):isUndefined(getCellOrValueType(a))?Rr(r,e,t,a):a};var lr=function(r,n){return objValidate(n?r:sr(r),(function(n,e){return ifNotUndefined(fr(e,n),(function(n){r[e]=n;return true}),(function(){return false}))}),(function(){return Vr()}))};var fr=function(r,n){return e?ifNotUndefined(mapGet(b,r),(function(e){return getCellOrValueType(n)!=e[TYPE]?Vr(r,n,e[DEFAULT]):n}),(function(){return Vr(r,n)})):isUndefined(getCellOrValueType(n))?Vr(r,n):n};var vr=function(r,n,e){ifNotUndefined(mapGet(S,n),(function(t){var a=t[0],o=t[1];collForEach(a,(function(n,e){if(!objHas(r,e)){r[e]=n}}));collForEach(o,(function(t){if(!objHas(r,t)){Rr(n,e,t)}}))}));return r};var sr=function(r){if(e){collForEach(h,(function(n,e){if(!objHas(r,e)){r[e]=n}}));collForEach(T,(function(n){if(!objHas(r,n)){Vr(n)}}))}return r};var pr=function(r){return mapMatch(y,r,(function(r,n,e){var t=mapNew();var a=setNew();mapMatch(mapEnsure(y,n,mapNew),e,(function(r,n,e){mapSet(r,n,e);ifNotUndefined(e[DEFAULT],(function(r){return mapSet(t,n,r)}),(function(){return setAdd(a,n)}))}));mapSet(S,n,[t,a])}),(function(r,n){mapSet(y,n);mapSet(S,n)}))};var dr=function(r){return mapMatch(b,r,(function(r,n,e){mapSet(b,n,e);ifNotUndefined(e[DEFAULT],(function(r){return mapSet(h,n,r)}),(function(){return setAdd(T,n)}))}),(function(r,n){mapSet(b,n);mapSet(h,n);collDel(T,n)}))};var mr=function(r){return objIsEmpty(r)?Dn():wn(r)};var Er=function(r){var n=r[0],e=r[1];(objIsEmpty(n)?Dn:wn)(n);(objIsEmpty(e)?Wn:gn)(e)};var yr=function(r){return mapMatch(j,r,(function(r,n,e){return Sr(n,e)}),(function(r,n){return Cr(n)}))};var Sr=function(r,n){return mapMatch(mapEnsure(j,r,(function(){Fr(r,1);mapSet(N,r,getPoolFunctions());mapSet(w,r,mapNew());return mapNew()})),n,(function(n,e,t){return br(r,n,e,t)}),(function(n,e){return Or(r,n,e)}))};var br=function(r,n,e,t,a){return mapMatch(mapEnsure(n,e,(function(){Gr(r,e,1);return mapNew()})),t,(function(n,t,a){return hr(r,e,n,t,a)}),(function(t,o){return gr(r,n,e,t,o,a)}))};var hr=function(r,n,e,t,a){if(!collHas(e,t)){Mr(r,n,t,1)}var o=mapGet(e,t);if(a!==o){Lr(r,n,t,o,a);mapSet(e,t,a)}};var Tr=function(r,n,e,t,a){return ifNotUndefined(mapGet(n,e),(function(n){return hr(r,e,n,t,a)}),(function(){var o;return br(r,n,e,vr((o={},o[t]=a,o),r,e))}))};var Nr=function(r){return objIsEmpty(r)?Wn():gn(r)};var wr=function(r){return mapMatch(_,r,(function(r,n,e){return jr(n,e)}),(function(r,n){return Ar(n)}))};var jr=function(r,n){if(!collHas(_,r)){Ur(r,1)}var e=mapGet(_,r);if(n!==e){zr(r,e,n);mapSet(_,r,n)}};var _r=function(r,n){var e=mapGet(N,r)[0];var t;do{t=e(n)}while(collHas(mapGet(j,r),t));return t};var Ir=function(r){var n;return(n=mapGet(j,r))!==null&&n!==void 0?n:Sr(r,{})};var Cr=function(r){return Sr(r,{})};var Or=function(r,n,e){var t=mapGet(N,r),a=t[1];a(e);br(r,n,e,{},true)};var gr=function(r,n,e,t,a,o){var i;var u=mapGet((i=mapGet(S,r))===null||i===void 0?void 0:i[0],a);if(!isUndefined(u)&&!o){return hr(r,e,t,a,u)}var c=function(n){Lr(r,e,n,mapGet(t,n));Mr(r,e,n,-1);mapSet(t,n)};if(isUndefined(u)){c(a)}else{mapForEach(t,c)}if(collIsEmpty(t)){Gr(r,e,-1);if(collIsEmpty(mapSet(n,e))){Fr(r,-1);mapSet(j,r);mapSet(N,r);mapSet(w,r)}}};var Ar=function(r){var n=mapGet(h,r);if(!isUndefined(n)){return jr(r,n)}zr(r,mapGet(_,r));Ur(r,-1);mapSet(_,r)};var Fr=function(r,n){return idsChanged(u,r,n)};var Gr=function(r,n,e){return idsChanged(mapEnsure(f,r,mapNew),n,e)&&mapSet(l,r,mapEnsure(l,r,(function(){return 0}))+e)};var Mr=function(r,n,e,t){var a;var o=mapGet(w,r);var i=(a=mapGet(o,e))!==null&&a!==void 0?a:0;if(i==0&&t==1||i==1&&t==-1){idsChanged(mapEnsure(c,r,mapNew),e,t)}mapSet(o,e,i!=-t?i+t:null);idsChanged(mapEnsure(mapEnsure(v,r,mapNew),n,mapNew),e,t)};var Lr=function(r,n,e,t,a){var o;mapEnsure(mapEnsure(mapEnsure(s,r,mapNew),n,mapNew),e,(function(){return[t,0]}))[1]=a;(o=i[3])===null||o===void 0?void 0:o.call(i,r,n,e,a)};var Ur=function(r,n){return idsChanged(p,r,n)};var zr=function(r,n,e){var t;mapEnsure(d,r,(function(){return[n,0]}))[1]=e;(t=i[4])===null||t===void 0?void 0:t.call(i,r,e)};var Rr=function(r,n,e,t,a){arrayPush(mapEnsure(mapEnsure(mapEnsure(m,r,mapNew),n,mapNew),e,(function(){return[]})),t);return a};var Vr=function(r,n,e){arrayPush(mapEnsure(E,r,(function(){return[]})),n);return e};var Dr=function(r,n,e){return ifNotUndefined(mapGet(mapGet(mapGet(s,r),n),e),(function(r){var n=r[0],e=r[1];return[true,n,e]}),(function(){return __spreadArray([false],pairNew(an(r,n,e)),true)}))};var Hr=function(r){return ifNotUndefined(mapGet(d,r),(function(r){var n=r[0],e=r[1];return[true,n,e]}),(function(){return __spreadArray([false],pairNew(cn(r)),true)}))};var Pr=function(r){return!collIsEmpty(m)&&!collIsEmpty(P[r])?collForEach(r?mapClone3(m):m,(function(n,e){return collForEach(n,(function(n,t){return collForEach(n,(function(n,a){return X(P[r],[e,t,a],n)}))}))})):0};var Br=function(r){return!collIsEmpty(E)&&!collIsEmpty(B[r])?collForEach(r?mapClone(E):E,(function(n,e){return X(B[r],[e],n)})):0};var Wr=function(r,n,e,t){if(!collIsEmpty(r)){X(n,t,(function(){return mapToObj(r)}));mapForEach(r,(function(r,n){return X(e,__spreadArray(__spreadArray([],t!==null&&t!==void 0?t:[],true),[r],false),n==1)}));return 1}};var Jr=function(r){var n=ln();if(n!=t){X(I[r],void 0,n)}var e=collIsEmpty(U[r]);var a=collIsEmpty(V[r])&&collIsEmpty(D[r])&&collIsEmpty(L[r])&&collIsEmpty(z[r])&&collIsEmpty(F[r])&&collIsEmpty(G[r])&&collIsEmpty(M[r])&&e&&collIsEmpty(O[r])&&collIsEmpty(g[r]);var o=collIsEmpty(H[r])&&collIsEmpty(R[r])&&collIsEmpty(A[r])&&collIsEmpty(C[r]);if(!a||!o){var i=r?[mapClone(u),mapClone2(c),mapClone(l),mapClone2(f),mapClone3(v),mapClone3(s)]:[u,c,l,f,v,s];if(!a){Wr(i[0],O[r],g[r]);collForEach(i[1],(function(n,e){return Wr(n,F[r],G[r],[e])}));collForEach(i[2],(function(n,e){if(n!=0){X(M[r],[e],Zr(e))}}));var p=setNew();collForEach(i[3],(function(n,t){if(Wr(n,L[r],z[r],[t])&&!e){X(U[r],[t,null]);setAdd(p,t)}}));if(!e){collForEach(i[5],(function(n,e){if(!collHas(p,e)){var t=setNew();collForEach(n,(function(r){return collForEach(r,(function(n,e){var a=n[0],o=n[1];return o!==a?setAdd(t,e):collDel(r,e)}))}));collForEach(t,(function(n){return X(U[r],[e,n])}))}}))}collForEach(i[4],(function(n,e){return collForEach(n,(function(n,t){return Wr(n,V[r],D[r],[e,t])}))}))}if(!o){var d;collForEach(i[5],(function(n,e){var t;collForEach(n,(function(n,a){var o;collForEach(n,(function(n,i){var u=n[0],c=n[1];if(c!==u){X(H[r],[e,a,i],c,u,Dr);d=t=o=1}}));if(o){X(R[r],[e,a],Dr)}}));if(t){X(A[r],[e],Dr)}}));if(d){X(C[r],void 0,Dr)}}}};var Yr=function(r){var n=dn();if(n!=a){X(W[r],void 0,n)}var e=collIsEmpty(Y[r])&&collIsEmpty(q[r]);var t=collIsEmpty(K[r])&&collIsEmpty(J[r]);if(!e||!t){var o=r?[mapClone(p),mapClone(d)]:[p,d];if(!e){Wr(o[0],Y[r],q[r])}if(!t){var i;collForEach(o[1],(function(n,e){var t=n[0],a=n[1];if(a!==t){X(K[r],[e],a,t,Hr);i=1}}));if(i){X(J[r],void 0,Hr)}}}};var qr=function(r){var n=[];for(var e=1;e<arguments.length;e++){n[e-1]=arguments[e]}kn((function(){return r.apply(void 0,arrayMap(n,id))}));return se};var Kr=function(r,n,e,t,a){var o=nn.apply(void 0,__spreadArray([r,n],e,false));return Q((function(){var a=nn.apply(void 0,__spreadArray([r,n],e,false));if(!arrayIsEqual(a,o)){o=a;t.apply(void 0,__spreadArray(__spreadArray([se,r,n],e,false),[o],false))}}),U[a?1:0],[r,n],[$r])};var kr=function(){return[xr(),on()]};var xr=function(){return mapToObj3(j)};var $r=function(){return mapKeys(j)};var Qr=function(r){return mapToObj2(mapGet(j,id(r)))};var Xr=function(r){return mapKeys(mapGet(w,id(r)))};var Zr=function(r){return collSize(mapGet(j,id(r)))};var rn=function(r){return mapKeys(mapGet(j,id(r)))};var nn=function(r,n,e,t,a){if(t===void 0){t=0}return isObject(r)?nn(r.tableId,r.cellId,r.descending,r.offset,r.limit):arrayMap(slice(arraySort(mapMap(mapGet(j,id(r)),(function(r,e){return[isUndefined(n)?e:mapGet(r,id(n)),e]})),(function(r,n){var t=r[0];var a=n[0];return defaultSorter(t,a)*(e?-1:1)})),t,isUndefined(a)?a:t+a),(function(r){var n=r[1];return n}))};var en=function(r,n){return mapToObj(mapGet(mapGet(j,id(r)),id(n)))};var tn=function(r,n){return mapKeys(mapGet(mapGet(j,id(r)),id(n)))};var an=function(r,n,e){return mapGet(mapGet(mapGet(j,id(r)),id(n)),id(e))};var on=function(){return mapToObj(_)};var un=function(){return mapKeys(_)};var cn=function(r){return mapGet(_,id(r))};var ln=function(){return!collIsEmpty(j)};var fn=function(r){return collHas(j,id(r))};var vn=function(r,n){return collHas(mapGet(w,id(r)),id(n))};var sn=function(r,n){return collHas(mapGet(j,id(r)),id(n))};var pn=function(r,n,e){return collHas(mapGet(mapGet(j,id(r)),id(n)),id(e))};var dn=function(){return!collIsEmpty(_)};var mn=function(r){return collHas(_,id(r))};var En=function(){return jsonStringWithMap(j)};var yn=function(){return jsonStringWithMap(_)};var Sn=function(){return jsonStringWithMap([j,_])};var bn=function(){return jsonStringWithMap(y)};var hn=function(){return jsonStringWithMap(b)};var Tn=function(){return jsonStringWithMap([y,b])};var Nn=function(r){return qr((function(){var n=isFunction(r)?r():r;if(ar(n)){Er(n)}}))};var wn=function(r){return qr((function(){return or(r)?yr(r):0}))};var jn=function(r,n){return qr((function(r){return ir(n,r)?Sr(r,n):0}),r)};var _n=function(r,n,e){return qr((function(r,n){return ur(r,n,e)?br(r,Ir(r),n,e):0}),r,n)};var In=function(r,n,e){if(e===void 0){e=true}return kn((function(){var t=void 0;if(ur(r,t,n)){r=id(r);br(r,Ir(r),t=_r(r,e?1:0),n)}return t}))};var Cn=function(r,n,e){return qr((function(r,n){if(ur(r,n,e,1)){var t=Ir(r);objMap(e,(function(e,a){return Tr(r,t,n,a,e)}))}}),r,n)};var On=function(r,n,e,t){return qr((function(r,n,e){return ifNotUndefined(cr(r,n,e,isFunction(t)?t(an(r,n,e)):t),(function(t){return Tr(r,Ir(r),n,e,t)}))}),r,n,e)};var gn=function(r){return qr((function(){return lr(r)?wr(r):0}))};var An=function(r){return qr((function(){return lr(r,1)?objMap(r,(function(r,n){return jr(n,r)})):0}))};var Fn=function(r,n){return qr((function(r){return ifNotUndefined(fr(r,isFunction(n)?n(cn(r)):n),(function(n){return jr(r,n)}))}),r)};var Gn=function(r){return qr((function(){objMap(r[0],(function(r,n){return isUndefined(r)?Hn(n):objMap(r,(function(r,e){return isUndefined(r)?Pn(n,e):objMap(r,(function(r,t){return setOrDelCell(se,n,e,t,r)}))}))}));objMap(r[1],(function(r,n){return setOrDelValue(se,n,r)}))}))};var Mn=function(r){tryCatch((function(){return mr(jsonParse(r))}));return se};var Ln=function(r){tryCatch((function(){return Nr(jsonParse(r))}));return se};var Un=function(r){return qr((function(){return tryCatch((function(){var n=jsonParse(r),e=n[0],t=n[1];mr(e);Nr(t)}),(function(){return Mn(r)}))}))};var zn=function(r){return qr((function(){if(n=nr(r)){pr(r);if(!collIsEmpty(j)){var e=xr();Dn();wn(e)}}}))};var Rn=function(r){return qr((function(){if(e=er(r)){var n=on();qn();Wn();e=true;dr(r);gn(n)}}))};var Vn=function(r,n){return qr((function(){zn(r);Rn(n)}))};var Dn=function(){return qr((function(){return yr({})}))};var Hn=function(r){return qr((function(r){return collHas(j,r)?Cr(r):0}),r)};var Pn=function(r,n){return qr((function(r,n){return ifNotUndefined(mapGet(j,r),(function(e){return collHas(e,n)?Or(r,e,n):0}))}),r,n)};var Bn=function(r,n,e,t){return qr((function(r,n,e){return ifNotUndefined(mapGet(j,r),(function(a){return ifNotUndefined(mapGet(a,n),(function(o){return collHas(o,e)?gr(r,a,n,o,e,t):0}))}))}),r,n,e)};var Wn=function(){return qr((function(){return wr({})}))};var Jn=function(r){return qr((function(r){return collHas(_,r)?Ar(r):0}),r)};var Yn=function(){return qr((function(){pr({});n=false}))};var qn=function(){return qr((function(){dr({});e=false}))};var Kn=function(){return qr((function(){Yn();qn()}))};var kn=function(r,n){if(o!=-1){xn();var e=r();Xn(n);return e}};var xn=function(){var r;if(o!=-1){o++}if(o==1){(r=i[0])===null||r===void 0?void 0:r.call(i);X(k)}return se};var $n=function(){return[mapToObj(s,(function(r,n){return mapGet(u,n)===-1?void 0:mapToObj(r,(function(r,e){return mapGet(mapGet(f,n),e)===-1?void 0:mapToObj(r,(function(r){var n=r[1];return n}),(function(r){return pairIsEqual(r)}))}),collIsEmpty,objIsEmpty)}),collIsEmpty,objIsEmpty),mapToObj(d,(function(r){var n=r[1];return n}),(function(r){return pairIsEqual(r)})),1]};var Qn=function(){return[!collIsEmpty(s),!collIsEmpty(d),mapToObj3(s,pairClone,pairIsEqual),mapToObj3(m),mapToObj(d,pairClone,pairIsEqual),mapToObj(E),mapToObj(u),mapToObj2(f),mapToObj3(v),mapToObj(p)]};var Xn=function(r){var n,e;if(o>0){o--;if(o==0){o=1;Pr(1);if(!collIsEmpty(s)){Jr(1)}Br(1);if(!collIsEmpty(d)){Yr(1)}if(r===null||r===void 0?void 0:r(se)){collForEach(s,(function(r,n){return collForEach(r,(function(r,e){return collForEach(r,(function(r,t){var a=r[0];return setOrDelCell(se,n,e,t,a)}))}))}));collClear(s);collForEach(d,(function(r,n){var e=r[0];return setOrDelValue(se,n,e)}));collClear(d)}X(x[0],void 0);o=-1;Pr(0);if(!collIsEmpty(s)){Jr(0)}Br(0);if(!collIsEmpty(d)){Yr(0)}(n=i[1])===null||n===void 0?void 0:n.call(i);X(x[1],void 0);(e=i[2])===null||e===void 0?void 0:e.call(i);o=0;t=ln();a=dn();arrayForEach([u,c,l,f,v,s,m,p,d,E],collClear)}}return se};var Zn=function(r){return collForEach(j,(function(n,e){return r(e,(function(r){return collForEach(n,(function(n,e){return r(e,(function(r){return mapForEach(n,r)}))}))}))}))};var re=function(r,n){return mapForEach(mapGet(w,id(r)),n)};var ne=function(r,n){return collForEach(mapGet(j,id(r)),(function(r,e){return n(e,(function(n){return mapForEach(r,n)}))}))};var ee=function(r,n,e){return mapForEach(mapGet(mapGet(j,id(r)),id(n)),e)};var te=function(r){return mapForEach(_,r)};var ae=function(r,n,e,t,a,o,i){var u,c;return isObject(r)?Kr(r.tableId,r.cellId,[(u=r.descending)!==null&&u!==void 0?u:false,(c=r.offset)!==null&&c!==void 0?c:0,r.limit],n,e):Kr(r,n,[e,t,a],o,i)};var oe=function(r){return Q(r,k)};var ie=function(r){return Q(r,x[0])};var ue=function(r){return Q(r,x[1])};var ce=function(r){rr(r);return se};var le=function(r){Z(r);return se};var fe=function(){return{hasTables:pairCollSize2(I),tables:pairCollSize2(C),tableIds:pairCollSize2(O),hasTable:pairCollSize2(g),table:pairCollSize2(A),tableCellIds:pairCollSize2(F),hasTableCell:pairCollSize2(G,collSize3),rowCount:pairCollSize2(M),rowIds:pairCollSize2(L),sortedRowIds:pairCollSize2(U),hasRow:pairCollSize2(z,collSize3),row:pairCollSize2(R,collSize3),cellIds:pairCollSize2(V,collSize3),hasCell:pairCollSize2(D,collSize4),cell:pairCollSize2(H,collSize4),invalidCell:pairCollSize2(P,collSize4),hasValues:pairCollSize2(W),values:pairCollSize2(J),valueIds:pairCollSize2(Y),hasValue:pairCollSize2(q),value:pairCollSize2(K),invalidValue:pairCollSize2(B),transaction:collSize2(k)+pairCollSize2(x)}};var ve=function(r,n,e,t,a){return i=[r,n,e,t,a]};var se={getContent:kr,getTables:xr,getTableIds:$r,getTable:Qr,getTableCellIds:Xr,getRowCount:Zr,getRowIds:rn,getSortedRowIds:nn,getRow:en,getCellIds:tn,getCell:an,getValues:on,getValueIds:un,getValue:cn,hasTables:ln,hasTable:fn,hasTableCell:vn,hasRow:sn,hasCell:pn,hasValues:dn,hasValue:mn,getTablesJson:En,getValuesJson:yn,getJson:Sn,getTablesSchemaJson:bn,getValuesSchemaJson:hn,getSchemaJson:Tn,hasTablesSchema:function(){return n},hasValuesSchema:function(){return e},setContent:Nn,setTables:wn,setTable:jn,setRow:_n,addRow:In,setPartialRow:Cn,setCell:On,setValues:gn,setPartialValues:An,setValue:Fn,applyChanges:Gn,setTablesJson:Mn,setValuesJson:Ln,setJson:Un,setTablesSchema:zn,setValuesSchema:Rn,setSchema:Vn,delTables:Dn,delTable:Hn,delRow:Pn,delCell:Bn,delValues:Wn,delValue:Jn,delTablesSchema:Yn,delValuesSchema:qn,delSchema:Kn,transaction:kn,startTransaction:xn,getTransactionChanges:$n,getTransactionLog:Qn,finishTransaction:Xn,forEachTable:Zn,forEachTableCell:re,forEachRow:ne,forEachCell:ee,forEachValue:te,addSortedRowIdsListener:ae,addStartTransactionListener:oe,addWillFinishTransactionListener:ie,addDidFinishTransactionListener:ue,callListener:ce,delListener:le,getListenerStats:fe,isMergeable:function(){return false},createStore:createStore,addListener:Q,callListeners:X,setInternalListeners:ve};objMap((r={},r[HAS+TABLES]=[0,I,[],function(){return[ln()]}],r[TABLES]=[0,C],r[TABLE_IDS]=[0,O],r[HAS+TABLE]=[1,g,[$r],function(r){return[fn.apply(void 0,r)]}],r[TABLE]=[1,A,[$r]],r[TABLE+CELL_IDS]=[1,F,[$r]],r[HAS+TABLE+CELL]=[2,G,[$r,Xr],function(r){return[vn.apply(void 0,r)]}],r[ROW_COUNT]=[1,M,[$r]],r[ROW_IDS]=[1,L,[$r]],r[HAS+ROW]=[2,z,[$r,rn],function(r){return[sn.apply(void 0,r)]}],r[ROW]=[2,R,[$r,rn]],r[CELL_IDS]=[2,V,[$r,rn]],r[HAS+CELL]=[3,D,[$r,rn,tn],function(r){return[pn.apply(void 0,r)]}],r[CELL]=[3,H,[$r,rn,tn],function(r){return pairNew(an.apply(void 0,r))}],r.InvalidCell=[3,P],r[HAS+VALUES]=[0,W,[],function(){return[dn()]}],r[VALUES]=[0,J],r[VALUE_IDS]=[0,Y],r[HAS+VALUE]=[1,q,[un],function(r){return[mn.apply(void 0,r)]}],r[VALUE]=[1,K,[un],function(r){return pairNew(cn(r[0]))}],r.InvalidValue=[1,B],r),(function(r,n){var e=r[0],t=r[1],a=r[2],o=r[3];se[ADD+n+LISTENER]=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}return Q(r[e],t[r[e+1]?1:0],e>0?slice(r,0,e):void 0,a,o)}}));return objFreeze(se)};var store=createStore();store.delTables();store.delValues();var safeJsonParse=function(r,n){try{return JSON.parse(r)}catch(r){return n||null}};var objectToRow=function(r){var n={};for(var e in r){if(typeof r[e]==="string"||typeof r[e]==="number"||typeof r[e]==="boolean"){n[e]=r[e]}else if(r[e]===null){n["__null__".concat(e)]=""}else if(Array.isArray(r[e])){n["__array__".concat(e)]=JSON.stringify(r[e])}else if(typeof r[e]==="object"){n["__object__".concat(e)]=JSON.stringify(r[e])}}return n};var rowToObject=function(r){var n={};for(var e in r){if(e.startsWith("__null__")){n[e.replace("__null__","")]=null}else if(typeof r[e]==="string"&&e.startsWith("__array__")){n[e.replace("__array__","")]=safeJsonParse(r[e])}else if(typeof r[e]==="string"&&e.startsWith("__object__")){n[e.replace("__object__","")]=safeJsonParse(r[e])}else{n[e]=r[e]}}return n};var Store={store:store,subscribe:function(r,n,e,t,a){if(store.hasRow(r,n)){a(rowToObject(store.getRow(r,n)))}var o=store.addRowListener(r,n,(function(){var e=store.getRow(r,n);a(rowToObject(e))}));if(!store.hasRow(r,n)||t){console.log("[STORE] Loading/reloading",{tableId:r,rowId:n});e().then((function(e){store.setRow(r,n,objectToRow(e))})).catch((function(e){console.error("[STORE] Error getting row",{tableId:r,rowId:n,forceReload:t},e)}))}return o},unsubscribe:function(r){store.delListener(r)},getTemplate:function(r,n){return __awaiter(this,arguments,void 0,(function(r,n,e){var t,a;if(e===void 0){e=false}return __generator(this,(function(o){switch(o.label){case 0:if(!e){if(!store.hasRow("templates",n)){return[2,null]}t=store.getRow("templates",n);return[2,rowToObject(t)]}return[4,getTemplate(r,n)];case 1:a=o.sent();console.log("[STORE] Reloading template",a);store.setRow("templates",n,objectToRow(a));return[2,a]}}))}))},updateTemplate:function(r,n){store.setRow("templates",r,objectToRow(n));return n},getEnvelope:function(r,n){return __awaiter(this,arguments,void 0,(function(r,n,e){var t,a;if(e===void 0){e=false}return __generator(this,(function(o){switch(o.label){case 0:if(!e){if(!store.hasRow("envelopes",n)){return[2,null]}t=store.getRow("envelopes",n);return[2,rowToObject(t)]}return[4,getEnvelope(r,n)];case 1:a=o.sent();store.setRow("envelopes",n,objectToRow(a));return[2,a]}}))}))},updateEnvelope:function(r,n){store.setRow("envelopes",r,objectToRow(n));return n},getField:function(r,n,e,t){if(r==="template"){var a=store.getRow("templates",n);var o=rowToObject(a);var i=(o.fields||[]).find((function(r){return r.name===e}));var u=(o.roles||[]).map((function(r){return r.name}));var c=u.findIndex((function(r){return r===i.role_name}));return{index:Math.max(c,0),field:t||i}}else{var a=store.getRow("envelopes",n);var l=rowToObject(a);var f=(l.fields||[]).find((function(r){return r.name===e}));var u=(l.recipients||[]).map((function(r){return r.role_name}));var c=u.findIndex((function(r){return r===f.role_name}));return{index:c,field:t||f}}}};export{Store as S};
|
|
2
|
-
//# sourceMappingURL=Datastore-DmsV595e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,F as s,H as o,g as r}from"./p-BIRwgFLv.js";import{D as n}from"./p-C_Xku1v2.js";import{DEFAULT_DISCLOSURES as a,verifySigner as l,VerdocsEndpoint as d,getEnvelope as h,getEnvelopesZip as u,getEnvelopeDocumentDownloadLink as c,cancelEnvelope as f,userCanCancelEnvelope as p,integerSequence as g}from"@verdocs/js-sdk";import{V as b}from"./p-CyvDgtoV.js";import{S as v}from"./p-C1sRVZWv.js";import{S as x}from"./p-DmsV595e.js";const 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-adopt-signature-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-adopt-signature-dialog verdocs-dialog{border-radius:4px}verdocs-adopt-signature-dialog .heading{color:#201f1e;font-weight:400;padding-bottom:0;border-bottom:none}verdocs-adopt-signature-dialog .content{display:-ms-flexbox;display:flex;padding-top:12px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog verdocs-text-input .input-label{color:#242424;font-size:13px;font-weight:400}verdocs-adopt-signature-dialog verdocs-text-input .input-element{border:1px solid #e0e0e0}verdocs-adopt-signature-dialog verdocs-radio-button{-webkit-transform:scale(0.9);transform:scale(0.9)}verdocs-adopt-signature-dialog canvas{width:100%;height:79px;margin:10px 0;border-radius:4px;background:#fafafa;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d1d1d1}verdocs-adopt-signature-dialog .disclaimer{padding:8px 0;font-size:11px;line-height:14px;text-align:justify;color:rgba(0, 0, 0, 0.54)}verdocs-adopt-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:-20px -20px 0 -20px;border-bottom:1px solid #eeeeee}verdocs-adopt-signature-dialog .tabs .tab{-ms-flex:1;flex:1;gap:4px;display:-ms-flexbox;display:flex;cursor:pointer;font-size:12px;font-weight:500;padding:6px 10px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-adopt-signature-dialog .tabs .tab.active{background:#f9f5fe;border-bottom:2px solid #707ae5}verdocs-adopt-signature-dialog .tabs .tab:hover{color:#55bc81}verdocs-adopt-signature-dialog .tabs .tab .icon{width:16px;height:16px}verdocs-adopt-signature-dialog .type{display:none;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .type.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .draw.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw .draw-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .draw canvas{cursor:crosshair;-ms-touch-action:none;touch-action:none}verdocs-adopt-signature-dialog .draw .draw-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-top:12px}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:6px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .upload.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .upload .upload-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .upload .upload-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:12px;margin-top:8px}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button{border:1px solid var(--verdocs-primary-color, #1a73e8);background-color:var(--verdocs-primary-color, #1a73e8);color:#ffffff;padding:8px 20px;font-size:13px;cursor:pointer;border-radius:var(--verdocs-button-radius, 4px);-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button:hover{-webkit-filter:brightness(0.9);filter:brightness(0.9)}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:8px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload .upload-filename{font-size:12px;color:rgba(0, 0, 0, 0.6);text-align:center;margin-top:8px;font-style:italic}verdocs-adopt-signature-dialog{}verdocs-adopt-signature-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-adopt-signature-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;font-size:14px;font-weight:500;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:var(--verdocs-button-radius, 6px);-ms-flex-pack:center;justify-content:center;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .buttons button.cancel{background-color:transparent;border:1px solid #d1d5db;color:#374151}verdocs-adopt-signature-dialog .buttons button.cancel:hover{background-color:#f9fafb}verdocs-adopt-signature-dialog .buttons button.proceed{background-color:var(--verdocs-primary-color, #1a73e8);border:1px solid transparent;color:#ffffff}verdocs-adopt-signature-dialog .buttons button.proceed:hover{background-color:#1557b0}verdocs-adopt-signature-dialog .buttons button:disabled{background-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}';const w=class{constructor(e){t(this,e);this.next=i(this,"next");this.exit=i(this,"exit");this.name="";this.fontLoaded=false;this.enteredName="";this.enteredInitials="";this.mode="type";this.isDrawing=false;this.hasDrawnSignature=false;this.currentSigStroke=[];this.allSigStrokes=[];this.lastSigPoint=null;this.currentInitialsStroke=[];this.allInitialsStrokes=[];this.lastInitialsPoint=null;this.handleSigPointerDown=t=>{t.preventDefault();if(!this.signatureElement||!this.sigDrawingContext){return}this.isDrawing=true;this.hasDrawnSignature=true;const i=this.getSigCanvasCoordinates(t);this.currentSigStroke=[i];this.lastSigPoint=i;this.sigDrawingContext.beginPath();this.sigDrawingContext.moveTo(i.x,i.y);this.signatureElement.setPointerCapture(t.pointerId)};this.handleSigPointerMove=t=>{t.preventDefault();if(!this.isDrawing||!this.sigDrawingContext||!this.lastSigPoint){return}const i=this.getSigCanvasCoordinates(t);this.currentSigStroke.push(i);const e={x:(this.lastSigPoint.x+i.x)/2,y:(this.lastSigPoint.y+i.y)/2};this.sigDrawingContext.quadraticCurveTo(this.lastSigPoint.x,this.lastSigPoint.y,e.x,e.y);this.sigDrawingContext.stroke();this.lastSigPoint=i};this.handleSigPointerUp=t=>{t.preventDefault();if(!this.isDrawing||!this.sigDrawingContext){return}if(this.lastSigPoint&&this.currentSigStroke.length>0){this.sigDrawingContext.lineTo(this.lastSigPoint.x,this.lastSigPoint.y);this.sigDrawingContext.stroke()}if(this.currentSigStroke.length>0){this.allSigStrokes.push([...this.currentSigStroke])}this.isDrawing=false;this.currentSigStroke=[];this.lastSigPoint=null;if(this.signatureElement){this.signatureElement.releasePointerCapture(t.pointerId)}};this.handleSigPointerCancel=t=>{this.isDrawing=false;this.currentSigStroke=[];this.lastSigPoint=null;if(this.signatureElement){this.signatureElement.releasePointerCapture(t.pointerId)}};this.handleInitialsPointerDown=t=>{t.preventDefault();if(!this.initialsElement||!this.initialsDrawingContext){return}this.isDrawing=true;this.hasDrawnSignature=true;const i=this.getInitialsCanvasCoordinates(t);this.currentInitialsStroke=[i];this.lastInitialsPoint=i;this.initialsDrawingContext.beginPath();this.initialsDrawingContext.moveTo(i.x,i.y);this.initialsElement.setPointerCapture(t.pointerId)};this.handleInitialsPointerMove=t=>{t.preventDefault();if(!this.isDrawing||!this.initialsDrawingContext||!this.lastInitialsPoint){return}const i=this.getInitialsCanvasCoordinates(t);this.currentInitialsStroke.push(i);const e={x:(this.lastInitialsPoint.x+i.x)/2,y:(this.lastInitialsPoint.y+i.y)/2};this.initialsDrawingContext.quadraticCurveTo(this.lastInitialsPoint.x,this.lastInitialsPoint.y,e.x,e.y);this.initialsDrawingContext.stroke();this.lastInitialsPoint=i};this.handleInitialsPointerUp=t=>{t.preventDefault();if(!this.isDrawing||!this.initialsDrawingContext){return}if(this.lastInitialsPoint&&this.currentInitialsStroke.length>0){this.initialsDrawingContext.lineTo(this.lastInitialsPoint.x,this.lastInitialsPoint.y);this.initialsDrawingContext.stroke()}if(this.currentInitialsStroke.length>0){this.allInitialsStrokes.push([...this.currentInitialsStroke])}this.isDrawing=false;this.currentInitialsStroke=[];this.lastInitialsPoint=null;if(this.initialsElement){this.initialsElement.releasePointerCapture(t.pointerId)}};this.handleInitialsPointerCancel=t=>{this.isDrawing=false;this.currentInitialsStroke=[];this.lastInitialsPoint=null;if(this.initialsElement){this.initialsElement.releasePointerCapture(t.pointerId)}}}componentWillLoad(){this.enteredName=this.name;this.computeEnteredInitials(this.name);const t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((t=>{document.fonts.add(t);this.fontLoaded=true}))}componentDidLoad(){this.drawSignatureText();this.drawInitialsText();this.setupSignatureCanvas();this.setupInitialsCanvas()}componentDidUpdate(){this.drawSignatureText();this.drawInitialsText();this.setupSignatureCanvas();this.setupInitialsCanvas();if(this.mode==="draw"&&this.allSigStrokes.length>0){this.redrawDrawnSignature()}if(this.mode==="draw"&&this.allInitialsStrokes.length>0){this.redrawDrawnInitials()}}drawSignatureText(){if(!this.signatureElement||this.mode!=="type"){return}const t=this.signatureElement.width;const i=this.signatureElement.height;const e=this.signatureElement.getContext("2d");e.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);let s=100;let o=e.measureText(this.enteredName);do{s-=2;e.font=`${s}px Dancing Script`;o=e.measureText(this.enteredName)}while(o.width>t-24||o.actualBoundingBoxAscent+o.actualBoundingBoxDescent+24>i);e.textAlign="center";e.textBaseline="middle";e.font=`${s}px Dancing Script`;e.fillText(this.enteredName,this.signatureElement.width/2,this.signatureElement.height/2)}drawInitialsText(){if(!this.initialsElement||this.mode!=="type"){return}const t=this.initialsElement.width;const i=this.initialsElement.height;const e=this.initialsElement.getContext("2d");e.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);let s=100;let o=e.measureText(this.enteredInitials);do{s-=2;e.font=`${s}px Dancing Script`;o=e.measureText(this.enteredInitials)}while(o.width>t-24||o.actualBoundingBoxAscent+o.actualBoundingBoxDescent+24>i);e.textAlign="center";e.textBaseline="middle";e.font=`${s}px Dancing Script`;e.fillText(this.enteredInitials,this.initialsElement.width/2,this.initialsElement.height/2)}redrawDrawnSignature(){if(!this.signatureElement||!this.sigDrawingContext||this.allSigStrokes.length===0){return}this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);for(const t of this.allSigStrokes){if(t.length===0){continue}this.sigDrawingContext.beginPath();this.sigDrawingContext.moveTo(t[0].x,t[0].y);for(let i=1;i<t.length;i++){const e=t[i];const s=t[i-1];const o={x:(s.x+e.x)/2,y:(s.y+e.y)/2};this.sigDrawingContext.quadraticCurveTo(s.x,s.y,o.x,o.y)}if(t.length>1){const i=t[t.length-1];this.sigDrawingContext.lineTo(i.x,i.y)}this.sigDrawingContext.stroke()}}redrawDrawnInitials(){if(!this.initialsElement||!this.initialsDrawingContext||this.allInitialsStrokes.length===0){return}this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);for(const t of this.allInitialsStrokes){if(t.length===0){continue}this.initialsDrawingContext.beginPath();this.initialsDrawingContext.moveTo(t[0].x,t[0].y);for(let i=1;i<t.length;i++){const e=t[i];const s=t[i-1];const o={x:(s.x+e.x)/2,y:(s.y+e.y)/2};this.initialsDrawingContext.quadraticCurveTo(s.x,s.y,o.x,o.y)}if(t.length>1){const i=t[t.length-1];this.initialsDrawingContext.lineTo(i.x,i.y)}this.initialsDrawingContext.stroke()}}handleNameChange(t){this.enteredName=t.target.value;this.computeEnteredInitials(t.target.value)}computeEnteredInitials(t){const i=t.trim().split(" ").filter((t=>t.length>0));this.enteredInitials=i.length>1?i.map((t=>t.charAt(0).toUpperCase())).join(""):i[0].toUpperCase()}handleCancel(t){t.stopPropagation();t.preventDefault();this.exit.emit()}handleAdopt(t){t.stopPropagation();t.preventDefault();const i=this.signatureElement.toDataURL("image/png");const e=this.initialsElement.toDataURL("image/png");this.next.emit({signature:i,initials:e})}isAdoptButtonDisabled(){switch(this.mode){case"type":return!this.enteredName||this.enteredName.trim().length===0;case"draw":return!this.hasDrawnSignature||this.allSigStrokes.length===0||this.allInitialsStrokes.length===0;default:return true}}setupSignatureCanvas(){if(!this.signatureElement){return}if(this.mode==="draw"){const t=this.signatureElement.getContext("2d");if(t&&t!==this.sigDrawingContext){this.sigDrawingContext=t;this.sigDrawingContext.strokeStyle="#000000";this.sigDrawingContext.lineWidth=2;this.sigDrawingContext.lineCap="round";this.sigDrawingContext.lineJoin="round";if(this.allSigStrokes.length===0){this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height)}}}if(this.mode!=="draw"&&this.sigDrawingContext){this.sigDrawingContext=null;this.currentSigStroke=[];this.lastSigPoint=null}}setupInitialsCanvas(){if(!this.initialsElement){return}if(this.mode==="draw"){const t=this.initialsElement.getContext("2d");if(t&&t!==this.initialsDrawingContext){this.initialsDrawingContext=t;this.initialsDrawingContext.strokeStyle="#000000";this.initialsDrawingContext.lineWidth=2;this.initialsDrawingContext.lineCap="round";this.initialsDrawingContext.lineJoin="round";if(this.allInitialsStrokes.length===0){this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height)}}}if(this.mode!=="draw"&&this.initialsDrawingContext){this.initialsDrawingContext=null;this.currentInitialsStroke=[];this.lastInitialsPoint=null}}clearSignatureCanvas(){if(!this.signatureElement||!this.sigDrawingContext){return}this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);this.currentSigStroke=[];this.allSigStrokes=[];this.lastSigPoint=null;this.hasDrawnSignature=false}clearInitialsCanvas(){if(!this.initialsElement||!this.initialsDrawingContext){return}this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);this.currentInitialsStroke=[];this.allInitialsStrokes=[];this.lastInitialsPoint=null;this.hasDrawnSignature=false}handleClearDrawing(t){t.stopPropagation();t.preventDefault();this.clearSignatureCanvas();this.clearInitialsCanvas()}getSigCanvasCoordinates(t){if(!this.signatureElement){return{x:0,y:0}}const i=this.signatureElement.getBoundingClientRect();const e=this.signatureElement.width/i.width;const s=this.signatureElement.height/i.height;return{x:(t.clientX-i.left)*e,y:(t.clientY-i.top)*s}}getInitialsCanvasCoordinates(t){if(!this.initialsElement){return{x:0,y:0}}const i=this.initialsElement.getBoundingClientRect();const e=this.initialsElement.width/i.width;const s=this.initialsElement.height/i.height;return{x:(t.clientX-i.left)*e,y:(t.clientY-i.top)*s}}render(){return e("verdocs-dialog",{key:"cd7e4e12870c3e5c6e3ecae99ca18a2e517cc5d7"},e("div",{key:"e0361f91ecde016a44a9df467989e59b9c7dac78",slot:"heading",class:"heading"},"Adopt Your Signature"),e("div",{key:"871467dcc778eea921fc9f7c43a6f4f00020a716",slot:"content",class:"content"},e("div",{key:"bfa75ff9630b434b3498dd4b5858a48f4c5d34b1",style:{fontWeight:"300",color:"#242424",fontSize:"13px"}},"Confirm your name, initials, and signature."),e("div",{key:"1c35c5deb3062f9d15c12601fcfdf1b2c141cf40",class:{type:true,active:this.mode==="type"}},e("verdocs-text-input",{key:"52ab06b5039e3b01bb778380282a2f9209ce2c09",label:"Full Name",value:this.enteredName,onInput:t=>this.handleNameChange(t),onClick:t=>t.stopPropagation()})),e("div",{key:"2ca4dd8dbf1a15f37fc1d746d660601ba0e7744a",style:{fontWeight:"400",color:"#242424",fontSize:"13px"}},"Select a signature style"),e("div",{key:"028510ba0e54e67d8c0e0580b2c39ad741be66b3",style:{display:"flex",flexDirection:"row",gap:"10px",marginBottom:"6px",alignItems:"center",fontSize:"13px"}},e("verdocs-radio-button",{key:"aae39fd918af8f4d3c6938507d8acfca0a50cad7",checked:this.mode==="type",value:"type",name:"mode",onClick:()=>this.mode="type"}),e("label",{key:"3ef1416e35982cb0741aba43f531373235688cb8"},"Typed with a keyboard")),e("div",{key:"1b858ad50908df8f52cd46257fa62d5f6238b46a",style:{display:"flex",flexDirection:"row",gap:"10px",marginBottom:"6px",alignItems:"center",fontSize:"13px"}},e("verdocs-radio-button",{key:"b28fd02ddba1e50d95e71daebadcbe4692cc07bf",checked:this.mode==="draw",value:"draw",name:"mode",onClick:()=>this.mode="draw"}),e("label",{key:"f1ec506edace3f839be3e60a833a7078388511c6"},"Drawn with touch, mouse, or stylus")),e("div",{key:"7ba7b888718f4d36cb6c3dff4766c7d4a4aa8588",class:"draw-actions"},e("button",{key:"5aa570c6bd0a7919df717f57cd126ce693901614",class:"clear-button",onClick:t=>this.handleClearDrawing(t),disabled:!this.hasDrawnSignature},"Clear")),e("div",{key:"da02332f59f07b62abd19d424ee2026594614681",style:{fontSize:"13px",fontWeight:"400",marginTop:"8px"}},"Signature Preview"),e("canvas",{key:"f06947bf19e21ca9d55242616ff6203f1511f035",ref:t=>this.signatureElement=t,width:"300",height:"79",onPointerDown:this.handleSigPointerDown,onPointerMove:this.handleSigPointerMove,onPointerUp:this.handleSigPointerUp,onPointerCancel:this.handleSigPointerCancel,style:{touchAction:"none",cursor:"crosshair"}}),e("div",{key:"e4253e4a1b0ae0ae2dbe12cbf5044ea19a55ffd1",style:{fontSize:"13px",fontWeight:"400",marginTop:"8px"}},"Initials Preview"),e("canvas",{key:"b5ffe09caca8e36d3b7645baaa9c49ac534ae2ab",ref:t=>this.initialsElement=t,width:"300",height:"79",onPointerDown:this.handleInitialsPointerDown,onPointerMove:this.handleInitialsPointerMove,onPointerUp:this.handleInitialsPointerUp,onPointerCancel:this.handleInitialsPointerCancel,style:{touchAction:"none",cursor:"crosshair"}}),e("div",{key:"2794cb9a0e09956c421436bf7d07b7ff5b05b877",class:"disclaimer"},"By clicking «Adopt Signature», I agree that the signature and initials above will be the electronic representation of my signature and initials for all purposes when I use them to sign documents. Applying them to a document is legally equivalent to signing with a pen on paper.")),e("div",{key:"c162a5d0fb4e827097d386be1598f5687a1f0f9d",class:"footer",slot:"footer"},e("div",{key:"784cabdfd41901b0082ed995f8da6f9d929d5bd6",class:"buttons"},e("button",{key:"e7a853d282ca868c6ad8f16c32a5295b91ad0027",class:"cancel",onClick:t=>this.handleCancel(t)},"Cancel"),e("button",{key:"5db215d9fbca44bd0b8b864cb34b9e9cb89e7cef",class:"proceed",onClick:t=>this.handleAdopt(t),disabled:this.isAdoptButtonDisabled()},"Adopt & Sign"))))}};w.style=m;const C='@-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 .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{}verdocs-delegate-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-delegate-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-delegate-dialog .buttons button.cancel{background-color:#654dcb}verdocs-delegate-dialog .buttons button.proceed{background-color:#55bc81}verdocs-delegate-dialog .buttons button:disabled{background-color:#6c727f}';const k=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.next=i(this,"next");this.endpoint=n;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDelegate(){this.next.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message})}render(){return e("verdocs-dialog",{key:"39860dabffeb4922c0ab466408e6a4ccf9ab136d"},e("div",{key:"c66abcbd720eebc64d37c0761fb43dfa847de344",slot:"heading",class:"heading"},e("div",{key:"85b8f329483579a6f462ca3a1701c1dc2f072c8b",class:"icon"},e("svg",{key:"4ea0b7e46c2cc13eccad3f46055c296b45224b40",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"e60c4c7e7b3dd88a084ba513b1ccb151ccd9a288","clip-path":"url(#clip0_34208_4881)"},e("path",{key:"a0a39b40f24b3908d0d4dce22b2fbfd1215d3619",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",{key:"ac70a28a3eb04fa375a9c78f5fbee09eca4712bf"},e("clipPath",{key:"6a8bc61fc2b37b783e2e50ee6ee806492c1ef0d9",id:"clip0_34208_4881"},e("path",{key:"f6145b87c93bba79f72bce64aa76062428af6979",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{key:"af3930af2329a4d82a3ebcd4074c4d637441c01c",class:"title"},'Delegate "',this.envelope.name,'"')),e("div",{key:"db31ad033d13a146d93695e9967b8a274678e690",slot:"content",class:"content"},e("div",{key:"23890389b11bd30af2a29863edafddbc512117e1",class:"input names"},e("label",{key:"e81c456ea0dc713dfa484806356a87a9d8556cbc",htmlFor:"verdocs-delegate-email"},"New Recipient:"),e("input",{key:"1d2c6428642bead152ab8d9c937a8b8abbdac57a",type:"text",id:"verdocs-delegate-first",name:"verdocs-delegate-first",autocomplete:"blocked",placeholder:"First name...",value:this.first_name,onInput:t=>this.first_name=t.target.value}),e("input",{key:"08ee990ab418bacde6029cc5647d78cd7e82ad7a",type:"text",id:"verdocs-delegate-last",name:"verdocs-delegate-last",autocomplete:"blocked",placeholder:"Last name...",value:this.last_name,onInput:t=>this.last_name=t.target.value})),e("div",{key:"6ce32e8f414e2a95932c062e8d7c81f025223e99",class:"input"},e("label",{key:"87086794a6f81830ab2ceff64acaa1cd2b623119",htmlFor:"verdocs-delegate-email"},"Email Address:"),e("input",{key:"7ecb46016341e60818c5e128a7fa7b66d4cf00e0",type:"text",id:"verdocs-delegate-email",name:"verdocs-delegate-email",autocomplete:"blocked",placeholder:"New recipient email address...",value:this.email,onInput:t=>this.email=t.target.value})),e("div",{key:"5e656d76ab2d8ffd8b7d6c6f1f1874753c9e318c",class:"input"},e("label",{key:"9af237c08cbe45d284a2df99751ae2cb5f12c5f0",htmlFor:"verdocs-delegate-phone"},"Phone:"),e("input",{key:"29836ba455ce5f8ace555261d353146bccf4d9ab",type:"text",id:"verdocs-delegate-phone",name:"verdocs-delegate-phone",autocomplete:"blocked",placeholder:"Optional phone number...",value:this.phone,onInput:t=>this.phone=t.target.value})),e("div",{key:"ff342c3974099945f8c537467959b68eb22217c5",class:"input"},e("label",{key:"dd32b5183fcb6520d1a46da597c4f034d7ea61a0",htmlFor:"verdocs-delegate-email"},"Message:"),e("textarea",{key:"1b9a78c0859d2fe46439e5ffef2edbc3fa60ef2f",id:"verdocs-delegate-message",name:"verdocs-delegate-message",rows:3,autocomplete:"blocked",placeholder:"Optional message to include in the invitation...",onInput:t=>this.message=t.target.value},this.message))),e("div",{key:"1aa10dfacbf308af0d4ed124d20fb716795866c2",class:"footer",slot:"footer"},e("div",{key:"988a3dc6b6608f5382c508a381f46d7acd182369",class:"buttons"},e("button",{key:"50dac298ad7e99dbddbe5f9f3803c8c2a4d1e6b5",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),e("button",{key:"e61b9dcb6edd54e4beb45f21ce866ffff017dcff",class:"proceed",onClick:()=>this.handleDelegate(),disabled:!this.first_name||!this.last_name||!this.email},"Proceed"))))}};k.style=C;const y="@-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-disclosure-dialog{}verdocs-disclosure-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;-ms-flex-align:center;align-items:center}verdocs-disclosure-dialog .heading .close-button{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:4px;border-radius:50%;color:#6b7280;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-disclosure-dialog .heading .close-button:hover{background-color:#f3f4f6;color:#111827}verdocs-disclosure-dialog .heading .close-button svg{stroke:currentColor}verdocs-disclosure-dialog .content ul{list-style:none;padding:0;margin:0 0 16px 0}verdocs-disclosure-dialog .content ul li{position:relative;padding-left:34px;margin-bottom:12px;font-size:14px;line-height:20px}verdocs-disclosure-dialog .content ul li::before{content:\"\";position:absolute;left:0;top:-2px;width:24px;height:24px;background-color:var(--verdocs-bullet-color, #707070);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.53033 12.9697C4.23744 12.6768 3.76256 12.6768 3.46967 12.9697C3.17678 13.2626 3.17678 13.7374 3.46967 14.0303L7.96967 18.5303C8.26256 18.8232 8.73744 18.8232 9.03033 18.5303L20.0303 7.53033C20.3232 7.23744 20.3232 6.76256 20.0303 6.46967C19.7374 6.17678 19.2626 6.17678 18.9697 6.46967L8.5 16.9393L4.53033 12.9697Z' fill='%23707070'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.53033 12.9697C4.23744 12.6768 3.76256 12.6768 3.46967 12.9697C3.17678 13.2626 3.17678 13.7374 3.46967 14.0303L7.96967 18.5303C8.26256 18.8232 8.73744 18.8232 9.03033 18.5303L20.0303 7.53033C20.3232 7.23744 20.3232 6.76256 20.0303 6.46967C19.7374 6.17678 19.2626 6.17678 18.9697 6.46967L8.5 16.9393L4.53033 12.9697Z' fill='%23707070'/%3E%3C/svg%3E\");mask-size:contain;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}verdocs-disclosure-dialog .accept{margin:0;color:var(--verdocs-dialog-content-color, #424242)}verdocs-disclosure-dialog .accept verdocs-checkbox{font-size:14px;line-height:20px}verdocs-disclosure-dialog .accept verdocs-checkbox label>input[type=checkbox]+*{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}verdocs-disclosure-dialog .accept verdocs-checkbox label>input[type=checkbox]+*::before{width:16px;height:16px;line-height:16px;margin-right:12px;-ms-flex-negative:0;flex-shrink:0;margin-top:2px}verdocs-disclosure-dialog a{color:#4c56cb}verdocs-disclosure-dialog .buttons{gap:12px;display:-ms-flexbox;display:flex;margin-top:0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-disclosure-dialog .buttons button{padding:8px 16px;height:40px;display:-ms-flexbox;display:flex;font-size:14px;font-weight:400;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:4px;-ms-flex-pack:center;justify-content:center;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-disclosure-dialog .buttons button.decline{background-color:transparent;border:1px solid #d1d5db;color:#374151}verdocs-disclosure-dialog .buttons button.decline:hover{background-color:#f9fafb}verdocs-disclosure-dialog .buttons button.delegate{background-color:transparent;border:1px solid #d1d5db;color:#374151;margin-right:auto;}verdocs-disclosure-dialog .buttons button.proceed{background-color:var(--verdocs-primary-color, #55bc81);border:1px solid transparent;color:#ffffff}verdocs-disclosure-dialog .buttons button.proceed:hover{background-color:var(--verdocs-primary-color-hover, #2b995b);}verdocs-disclosure-dialog .buttons button:disabled{background-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}";const A=class{constructor(e){t(this,e);this.decline=i(this,"decline");this.delegate=i(this,"delegate");this.accept=i(this,"accept");this.disclosures=a;this.delegator=false;this.accepted=false}render(){return e("verdocs-dialog",{key:"c9950557b09437ba6c65abc0a078b23db859e08e"},e("div",{key:"4cd170500d8d2a4dca85a6865939aa47a8ef5ea1",slot:"heading",class:"heading"},e("div",{key:"2df9e1555535f28e963fb6d120be3604990941c1",class:"title"},"e-Signature Disclosures"),e("div",{key:"101aa1743689add9ceb021ff993a8399a32aeabd",class:"close-button"},e("svg",{key:"da044448ef914c8107d8e4715ee82d57581a14c2",width:"24",height:"28",viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"01fa0bf817ae580b5a28c66fc5878d932c423879",d:"M4.39705 8.55379L4.46967 8.46967C4.73594 8.2034 5.1526 8.1792 5.44621 8.39705L5.53033 8.46967L12 14.939L18.4697 8.46967C18.7626 8.17678 19.2374 8.17678 19.5303 8.46967C19.8232 8.76256 19.8232 9.23744 19.5303 9.53033L13.061 16L19.5303 22.4697C19.7966 22.7359 19.8208 23.1526 19.6029 23.4462L19.5303 23.5303C19.2641 23.7966 18.8474 23.8208 18.5538 23.6029L18.4697 23.5303L12 17.061L5.53033 23.5303C5.23744 23.8232 4.76256 23.8232 4.46967 23.5303C4.17678 23.2374 4.17678 22.7626 4.46967 22.4697L10.939 16L4.46967 9.53033C4.2034 9.26406 4.1792 8.8474 4.39705 8.55379L4.46967 8.46967L4.39705 8.55379Z",fill:"#424242"})))),e("div",{key:"81ea7a09bb84a9246d7a048cc81d793ef931a412",slot:"content",class:"content"},e("div",{key:"71fd8a18035100166ecb32143ff4714f8697b229",innerHTML:this.disclosures}),e("div",{key:"b21b2a53dd81a1027628998ab0585328be653d3f",class:"accept"},e("verdocs-checkbox",{key:"454f1db7749ad9bcae2ee99629ecbb45445a6bd5",label:"I accept the electronic signature disclosures and agree to proceed with digital signing.",checked:this.accepted,onInput:()=>this.accepted=!this.accepted}))),e("div",{key:"847ea43d651d56842fbb94e5dc9a1a4a6d2e6b36",class:"footer",slot:"footer"},this.delegator?e(s,null,e("div",{class:"buttons"},e("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")),e("div",{class:"buttons"},e("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),e("button",{class:"delegate",onClick:()=>this.delegate.emit()},"Delegate"))):e(s,null,e("div",{class:"buttons"},e("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),e("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")))))}};A.style=y;function F(t){return typeof t==="string"||t instanceof String}function D(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function B(t,i){if(Array.isArray(i))return B(t,((t,e)=>i.includes(e)));return Object.entries(t).reduce(((t,e)=>{let[s,o]=e;if(i(o,s))t[s]=o;return t}),{})}const E={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function L(t){switch(t){case E.LEFT:return E.FORCE_LEFT;case E.RIGHT:return E.FORCE_RIGHT;default:return t}}function I(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function _(t,i){if(i===t)return true;const e=Array.isArray(i),s=Array.isArray(t);let o;if(e&&s){if(i.length!=t.length)return false;for(o=0;o<i.length;o++)if(!_(i[o],t[o]))return false;return true}if(e!=s)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const e=i instanceof Date,s=t instanceof Date;if(e&&s)return i.getTime()==t.getTime();if(e!=s)return false;const r=i instanceof RegExp,n=t instanceof RegExp;if(r&&n)return i.toString()==t.toString();if(r!=n)return false;const a=Object.keys(i);for(o=0;o<a.length;o++)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return false;for(o=0;o<a.length;o++)if(!_(t[a[o]],i[a[o]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class S{constructor(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}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return E.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?E.RIGHT:E.LEFT}}function V(t,i){return new V.InputMask(t,i)}function M(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return V.MaskedRegExp;if(F(t))return V.MaskedPattern;if(t===Date)return V.MaskedDate;if(t===Number)return V.MaskedNumber;if(Array.isArray(t)||t===Array)return V.MaskedDynamic;if(V.Masked&&t.prototype instanceof V.Masked)return t;if(V.Masked&&t instanceof V.Masked)return t.constructor;if(t instanceof Function)return V.MaskedFunction;console.warn("Mask not found for mask",t);return V.Masked}function z(t){if(!t)throw new Error("Options in not defined");if(V.Masked){if(t.prototype instanceof V.Masked)return{mask:t};const{mask:i=undefined,...e}=t instanceof V.Masked?{mask:t}:D(t)&&t.mask instanceof V.Masked?t:{};if(i){const t=i.mask;return{...B(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...e}}}if(!D(t))return{mask:t};return{...t}}function P(t){if(V.Masked&&t instanceof V.Masked)return t;const i=z(t);const e=M(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)}V.createMask=P;class T{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}V.MaskElement=T;const H=90;const R=89;class O extends T{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,e;return(t=(i=(e=this.input).getRootNode)==null?void 0:i.call(e))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(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}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===H&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===R&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===H&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(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)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){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={}}}V.HTMLMaskElement=O;class N extends O{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}V.HTMLMaskElement=O;class j extends O{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const e=i&&i.anchorOffset;const s=i&&i.focusOffset;if(s==null||e==null||e<s){return e}return s}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const e=i&&i.anchorOffset;const s=i&&i.focusOffset;if(s==null||e==null||e>s){return e}return s}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const e=this.rootElement.createRange();e.setStart(this.input.firstChild||this.input,t);e.setEnd(this.input.lastChild||this.input,i);const s=this.rootElement;const o=s.getSelection&&s.getSelection();if(o){o.removeAllRanges();o.addRange(e)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}V.HTMLContenteditableMaskElement=j;class Z{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>Z.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0;this.currentIndex=0}}Z.MAX_LENGTH=100;class W{constructor(t,i){this.el=t instanceof T?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new j(t):new N(t);this.masked=P(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new Z;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()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof V.Masked)&&this.masked.constructor===M(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof V.Masked?t:P({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){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})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const e=this._listeners[t];if(!e)return;e.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){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}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const e=this.masked.value;const s=this.masked.rawInputValue;const o=this.displayValue;const r=this.unmaskedValue!==i||this.value!==e||this._rawInputValue!==s;this._unmaskedValue=i;this._value=e;this._rawInputValue=s;if(this.el.value!==o)this.el.value=o;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(r)this._fireChangeEvents();if(!this._historyChanging&&(r||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...e}=t;const s=!this.maskEquals(i);const o=this.masked.optionsIsChanged(e);if(s)this.mask=i;if(o)this.masked.updateOptions(e);if(s||o)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,E.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const e=this._listeners[t].indexOf(i);if(e>=0)this._listeners[t].splice(e,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new S({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const e=this.masked.rawInputValue;const s=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const o=e===this.masked.rawInputValue?i.removeDirection:E.NONE;let r=this.masked.nearestInputPos(i.startChangePos+s,o);if(o!==E.NONE)r=this.masked.nearestInputPos(r,E.NONE);this.updateControl(r);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(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}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}V.InputMask=W;class q{static normalize(t){return Array.isArray(t)?t:[t,new q]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}V.ChangeDetails=q;class U{constructor(t,i,e){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=e}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class Y{constructor(t){this._value="";this._update({...Y.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new U(this.extractInput(t,i),t)}appendTail(t){if(F(t))t=new U(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new q;this._value+=t;return new q({inserted:t,rawInserted:t})}_appendChar(t,i,e){if(i===void 0){i={}}const s=this.state;let o;[t,o]=this.doPrepareChar(t,i);if(t){o=o.aggregate(this._appendCharRaw(t,i));if(!o.rawInserted&&this.autofix==="pad"){const e=this.state;this.state=s;let r=this.pad(i);const n=this._appendCharRaw(t,i);r=r.aggregate(n);if(n.rawInserted||r.equals(o)){o=r}else{this.state=e}}}if(o.inserted){let t;let r=this.doValidate(i)!==false;if(r&&e!=null){const i=this.state;if(this.overwrite===true){t=e.state;for(let t=0;t<o.rawInserted.length;++t){e.unshift(this.displayValue.length-o.tailShift)}}let s=this.appendTail(e);r=s.rawInserted.length===e.toString().length;if(!(r&&s.inserted)&&this.overwrite==="shift"){this.state=i;t=e.state;for(let t=0;t<o.rawInserted.length;++t){e.shift()}s=this.appendTail(e);r=s.rawInserted.length===e.toString().length}if(r&&s.inserted)this.state=i}if(!r){o=new q;this.state=s;if(e&&t)e.state=t}}return o}_appendPlaceholder(){return new q}_appendEager(){return new q}append(t,i,e){if(!F(t))throw new Error("value should be string");const s=F(e)?new U(String(e)):e;if(i!=null&&i.tail)i._beforeTailState=this.state;let o;[t,o]=this.doPrepare(t,i);for(let e=0;e<t.length;++e){const r=this._appendChar(t[e],i,s);if(!r.rawInserted&&!this.doSkipInvalid(t[e],i,s))break;o.aggregate(r)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){o.aggregate(this._appendEager())}if(s!=null){o.tailShift+=this.appendTail(s).tailShift}return o}remove(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 q}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const e=this.value;const s=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 s}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const e=t(this);this.state=i;delete this._isolated;return e}doSkipInvalid(t,i,e){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return q.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return q.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,e,s,o){if(e===void 0){e=""}if(s===void 0){s=E.NONE}if(o===void 0){o={input:true}}const r=t+i;const n=this.extractTail(r);const a=this.eager===true||this.eager==="remove";let l;if(a){s=L(s);l=this.extractInput(0,r,{raw:true})}let d=t;const h=new q;if(s!==E.NONE){d=this.nearestInputPos(t,i>1&&t!==0&&!a?E.NONE:s);h.tailShift=d-t}h.aggregate(this.remove(d));if(a&&s!==E.NONE&&l===this.rawInputValue){if(s===E.FORCE_LEFT){let t;while(l===this.rawInputValue&&(t=this.displayValue.length)){h.aggregate(new q({tailShift:-1})).aggregate(this.remove(t-1))}}else if(s===E.FORCE_RIGHT){n.unshift()}}return h.aggregate(this.append(e,o,n))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!_(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||Y.EMPTY_VALUES.includes(t)&&Y.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new q}}Y.DEFAULTS={skipInvalid:true};Y.EMPTY_VALUES=[undefined,null,""];V.Masked=Y;class ${constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=F(t)?new U(String(t)):t;const i=this.chunks[this.chunks.length-1];const e=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof U){if(e){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof $){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof V.MaskedPattern)){const i=new U(this.toString());return i.appendTo(t)}const i=new q;for(let e=0;e<this.chunks.length;++e){const s=this.chunks[e];const o=t._mapPosToBlock(t.displayValue.length);const r=s.stop;let n;if(r!=null&&(!o||o.index<=r)){if(s instanceof $||t._stops.indexOf(r)>=0){i.aggregate(t._appendPlaceholder(r))}n=s instanceof $&&t._blocks[r]}if(n){const e=n.appendTail(s);i.aggregate(e);const o=s.toString().slice(e.rawInserted.length);if(o)i.aggregate(t.append(o,{tail:true}))}else{i.aggregate(t.append(s.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...e}=t;Object.assign(this,e);this.chunks=i.map((t=>{const i="chunks"in t?new $:new U;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let e=0;while(e<this.chunks.length){const t=this.chunks[e];const s=t.unshift(i);if(t.toString()){if(!s)break;++e}else{this.chunks.splice(e,1)}if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const e=i.shift();if(i.toString()){if(!e)break;--t}else{this.chunks.splice(t,1)}if(e)return e}return""}}class K{constructor(t,i){this.masked=t;this._log=[];const{offset:e,index:s}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=e;this.index=s;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){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}}_pushLeft(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}_pushRight(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}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,E.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,E.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,E.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,E.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,E.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,E.NONE);return true}))}}class G{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(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 q}nearestInputPos(t,i){if(i===void 0){i=E.NONE}const e=0;const s=this._value.length;switch(i){case E.LEFT:case E.FORCE_LEFT:return e;case E.NONE:case E.RIGHT:case E.FORCE_RIGHT:default:return s}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(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)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new q;const e=this.eager===true||this.eager==="append";const s=this.char===t;const o=s&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!e)&&!i.tail;const r=new q({inserted:this.char,rawInserted:o?this.char:""});this._value=this.char;this._isRawInput=o&&(i.raw||i.input);return r}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new q;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new U("")}appendTail(t){if(F(t))t=new U(String(t));return t.appendTo(this)}append(t,i,e){const s=this._appendChar(t[0],i);if(e!=null){s.tailShift+=this.appendTail(e).tailShift}return s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class X{constructor(t){const{parent:i,isOptional:e,placeholderChar:s,displayChar:o,lazy:r,eager:n,...a}=t;this.masked=P(a);Object.assign(this,{parent:i,isOptional:e,placeholderChar:s,displayChar:o,lazy:r,eager:n})}reset(){this.isFilled=false;this.masked.reset()}remove(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 q}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new q;const e=this.masked.state;let s=this.masked._appendChar(t,this.currentMaskFlags(i));if(s.inserted&&this.doValidate(i)===false){s=new q;this.masked.state=e}if(!s.inserted&&!this.isOptional&&!this.lazy&&!i.input){s.inserted=this.placeholderChar}s.skip=!s.inserted&&!this.isOptional;this.isFilled=Boolean(s.inserted);return s}append(t,i,e){return this.masked.append(t,this.currentMaskFlags(i),e)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new q;this.isFilled=true;return new q({inserted:this.placeholderChar})}_appendEager(){return new q}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,e)}nearestInputPos(t,i){if(i===void 0){i=E.NONE}const e=0;const s=this.value.length;const o=Math.min(Math.max(t,e),s);switch(i){case E.LEFT:case E.FORCE_LEFT:return this.isComplete?o:e;case E.RIGHT:case E.FORCE_RIGHT:return this.isComplete?o:s;case E.NONE:default:return o}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new q}}X.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]/,"*":/./};class J extends Y{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}V.MaskedRegExp=J;class Q extends Y{constructor(t){super({...Q.DEFAULTS,...t,definitions:Object.assign({},X.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let e=false;let s=false;for(let o=0;o<i.length;++o){if(this.blocks){const t=i.slice(o);const e=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));e.sort(((t,i)=>i.length-t.length));const s=e[0];if(s){const{expose:t,repeat:i,...e}=z(this.blocks[s]);const r={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...e,repeat:i,parent:this};const n=i!=null?new V.RepeatBlock(r):P(r);if(n){this._blocks.push(n);if(t)this.exposeBlock=n;if(!this._maskedBlocks[s])this._maskedBlocks[s]=[];this._maskedBlocks[s].push(this._blocks.length-1)}o+=s.length-1;continue}}let r=i[o];let n=r in t;if(r===Q.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(r==="{"||r==="}"){e=!e;continue}if(r==="["||r==="]"){s=!s;continue}if(r===Q.ESCAPE_CHAR){++o;r=i[o];if(!r)break;n=false}const a=n?new X({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...z(t[r]),parent:this}):new G({char:r,eager:this.eager,isUnmasking:e});this._blocks.push(a)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...e}=t;this._blocks.forEach(((t,e)=>t.state=i[e]));super.state=e}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new q;let e=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(e==null)return i;if(this._blocks[e].isFilled)++e;for(let t=e;t<this._blocks.length;++t){const e=this._blocks[t]._appendEager();if(!e.inserted)break;i.aggregate(e)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const e=this._mapPosToBlock(this.displayValue.length);const s=new q;if(!e)return s;for(let r=e.index,n;n=this._blocks[r];++r){var o;const e=n._appendChar(t,{...i,_beforeTailState:(o=i._beforeTailState)==null||(o=o._blocks)==null?void 0:o[r]});s.aggregate(e);if(e.consumed)break}return s}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=new $;if(t===i)return e;this._forEachBlocksInRange(t,i,((t,i,s,o)=>{const r=t.extractTail(s,o);r.stop=this._findStopBefore(i);r.from=this._blockStartPos(i);if(r instanceof $)r.blockIndex=i;e.extend(r)}));return e}extractInput(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"";let s="";this._forEachBlocksInRange(t,i,((t,i,o,r)=>{s+=t.extractInput(o,r,e)}));return s}_findStopBefore(t){let i;for(let e=0;e<this._stops.length;++e){const s=this._stops[e];if(s<=t)i=s;else break}return i}_appendPlaceholder(t){const i=new q;if(this.lazy&&t==null)return i;const e=this._mapPosToBlock(this.displayValue.length);if(!e)return i;const s=e.index;const o=t!=null?t:this._blocks.length;this._blocks.slice(s,o).forEach((e=>{if(!e.lazy||t!=null){var s;i.aggregate(e._appendPlaceholder((s=e._blocks)==null?void 0:s.length))}}));return i}_mapPosToBlock(t){let i="";for(let e=0;e<this._blocks.length;++e){const s=this._blocks[e];const o=i.length;i+=s.displayValue;if(t<=i.length){return{index:e,offset:t-o}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,e){if(i===void 0){i=this.displayValue.length}const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(i);const o=t&&s.index===t.index;const r=s.offset;const n=t&&o?t.offset:this._blocks[s.index].displayValue.length;e(this._blocks[s.index],s.index,r,n);if(t&&!o){for(let i=s.index+1;i<t.index;++i){e(this._blocks[i],i,0,this._blocks[i].displayValue.length)}e(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,s,o)=>{e.aggregate(t.remove(s,o))}));return e}nearestInputPos(t,i){if(i===void 0){i=E.NONE}if(!this._blocks.length)return 0;const e=new K(this,t);if(i===E.NONE){if(e.pushRightBeforeInput())return e.pos;e.popState();if(e.pushLeftBeforeInput())return e.pos;return this.displayValue.length}if(i===E.LEFT||i===E.FORCE_LEFT){if(i===E.LEFT){e.pushRightBeforeFilled();if(e.ok&&e.pos===t)return t;e.popState()}e.pushLeftBeforeInput();e.pushLeftBeforeRequired();e.pushLeftBeforeFilled();if(i===E.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===E.FORCE_LEFT)return 0;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return 0}if(i===E.RIGHT||i===E.FORCE_RIGHT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.pushRightBeforeFilled())return e.pos;if(i===E.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,E.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let e=0;this._forEachBlocksInRange(t,i,((t,i,s,o)=>{e+=t.totalInputPositions(s,o)}));return e}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new q;this._forEachBlocksInRange(0,this.displayValue.length,(e=>i.aggregate(e.pad(t))));return i}}Q.DEFAULTS={...Y.DEFAULTS,lazy:true,placeholderChar:"_"};Q.STOP_CHAR="`";Q.ESCAPE_CHAR="\\";Q.InputDefinition=X;Q.FixedDefinition=G;V.MaskedPattern=Q;class tt extends Q{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:e=this.from||0,maxLength:s=this.maxLength||0,autofix:o=this.autofix,...r}=t;this.to=i;this.from=e;this.maxLength=Math.max(String(i).length,s);this.autofix=o;const n=String(this.from).padStart(this.maxLength,"0");const a=String(this.to).padStart(this.maxLength,"0");let l=0;while(l<a.length&&a[l]===n[l])++l;r.mask=a.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l);super._update(r)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let e="";const[,s,o]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(o){i="0".repeat(s.length)+o;e="9".repeat(s.length)+o}i=i.padEnd(this.maxLength,"0");e=e.padEnd(this.maxLength,"9");return[i,e]}doPrepareChar(t,i){if(i===void 0){i={}}let e;[t,e]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)e.skip=!this.isComplete;return[t,e]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const e=String(this.from).padStart(this.maxLength,"0");const s=String(this.to).padStart(this.maxLength,"0");const[o,r]=this.boundaries(this.value+t);if(Number(r)<this.from)return super._appendCharRaw(e[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(e[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(s[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const e=i.search(/[^0]/);if(e===-1&&i.length<=this._matchFrom)return true;const[s,o]=this.boundaries(i);return this.from<=Number(o)&&Number(s)<=this.to&&super.doValidate(t)}pad(t){const i=new q;if(this.value.length===this.maxLength)return i;const e=this.value;const s=this.maxLength-this.value.length;if(s){this.reset();for(let e=0;e<s;++e){i.aggregate(super._appendCharRaw("0",t))}e.split("").forEach((t=>this._appendCharRaw(t)))}return i}}V.MaskedRange=tt;const it="d{.}`m{.}`Y";class et extends Q{static extractPatternOptions(t){const{mask:i,pattern:e,...s}=t;return{...s,mask:F(i)?i:e}}constructor(t){super(et.extractPatternOptions({...et.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:e,blocks:s,...o}={...et.DEFAULTS,...t};const r=Object.assign({},et.GET_DEFAULT_BLOCKS());if(t.min)r.Y.from=t.min.getFullYear();if(t.max)r.Y.to=t.max.getFullYear();if(t.min&&t.max&&r.Y.from===r.Y.to){r.m.from=t.min.getMonth()+1;r.m.to=t.max.getMonth()+1;if(r.m.from===r.m.to){r.d.from=t.min.getDate();r.d.to=t.max.getDate()}}Object.assign(r,this.blocks,s);super._update({...o,mask:F(i)?i:e,blocks:r})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(et.extractPatternOptions(t))}}et.GET_DEFAULT_BLOCKS=()=>({d:{mask:tt,from:1,to:31,maxLength:2},m:{mask:tt,from:1,to:12,maxLength:2},Y:{mask:tt,from:1900,to:9999}});et.DEFAULTS={...Q.DEFAULTS,mask:Date,pattern:it,format:(t,i)=>{if(!t)return"";const e=String(t.getDate()).padStart(2,"0");const s=String(t.getMonth()+1).padStart(2,"0");const o=t.getFullYear();return[e,s,o].join(".")},parse:(t,i)=>{const[e,s,o]=t.split(".").map(Number);return new Date(o,s-1,e)}};V.MaskedDate=et;class st extends Y{constructor(t){super({...st.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...e}=z(t);const s=P({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...e});if(i)this.exposeMask=s;return s})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const e=this._applyDispatch(t,i);if(this.currentMask){e.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return e}_applyDispatch(t,i,e){if(t===void 0){t=""}if(i===void 0){i={}}if(e===void 0){e=""}const s=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const o=this.rawInputValue;const r=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:o;const n=o.slice(r.length);const a=this.currentMask;const l=new q;const d=a==null?void 0:a.state;this.currentMask=this.doDispatch(t,{...i},e);if(this.currentMask){if(this.currentMask!==a){this.currentMask.reset();if(r){this.currentMask.append(r,{raw:true});l.tailShift=this.currentMask.value.length-s.length}if(n){l.tailShift+=this.currentMask.append(n,{raw:true,tail:true}).tailShift}}else if(d){this.currentMask.state=d}}return l}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new q;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,e;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((e=t._beforeTailState)==null?void 0:e.currentMask)||t._beforeTailState}}doDispatch(t,i,e){if(i===void 0){i={}}if(e===void 0){e=""}return this.dispatch(t,this,i,e)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[e,s]=super.doPrepare(t,i);if(this.currentMask){let t;[e,t]=super.doPrepare(e,this.currentMaskFlags(i));s=s.aggregate(t)}return[e,s]}doPrepareChar(t,i){if(i===void 0){i={}}let[e,s]=super.doPrepareChar(t,i);if(this.currentMask){let t;[e,t]=super.doPrepareChar(e,this.currentMaskFlags(i));s=s.aggregate(t)}return[e,s]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const e=new q;if(this.currentMask){e.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return e}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:e,currentMask:s,...o}=t;if(i)this.compiledMasks.forEach(((t,e)=>t.state=i[e]));if(e!=null){this.currentMask=e;this.currentMask.state=s}super.state=o}extractInput(t,i,e){return this.currentMask?this.currentMask.extractInput(t,i,e):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,e)=>{if(!t[e])return;const{mask:s,...o}=t[e];return _(i,o)&&i.maskEquals(s)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}st.DEFAULTS={...Y.DEFAULTS,dispatch:(t,i,e,s)=>{if(!i.compiledMasks.length)return;const o=i.rawInputValue;const r=i.compiledMasks.map(((r,n)=>{const a=i.currentMask===r;const l=a?r.displayValue.length:r.nearestInputPos(r.displayValue.length,E.FORCE_LEFT);if(r.rawInputValue!==o){r.reset();r.append(o,{raw:true})}else if(!a){r.remove(l)}r.append(t,i.currentMaskFlags(e));r.appendTail(s);return{index:n,weight:r.rawInputValue.length,totalInputPositions:r.totalInputPositions(0,Math.max(l,r.nearestInputPos(r.displayValue.length,E.FORCE_LEFT)))}}));r.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[r[0].index]}};V.MaskedDynamic=st;class ot extends Q{constructor(t){super({...ot.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...e}=t;if(i){const t=i.map((t=>t.length));const s=Math.min(...t);const o=Math.max(...t)-s;e.mask="*".repeat(s);if(o)e.mask+="["+"*".repeat(o)+"]";this.enum=i}super._update(e)}_appendCharRaw(t,i){if(i===void 0){i={}}const e=Math.min(this.nearestInputPos(0,E.FORCE_RIGHT),this.value.length);const s=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,e)));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,((t,e)=>{const o=s[0][e];if(e>=this.value.length||o===t.value)return;t.reset();t._appendChar(o,i)}))}const t=super._appendCharRaw(s[0][this.value.length],i);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new q({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new U("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new q;const e=Math.min(super.nearestInputPos(0,E.FORCE_RIGHT),this.value.length);let s;for(s=t;s>=0;--s){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(e,s),e)));if(t.length>1)break}const o=super.remove(s,i);o.tailShift+=s-t;return o}get isComplete(){return this.enum.indexOf(this.value)>=0}}ot.DEFAULTS={...Q.DEFAULTS,matchValue:(t,i,e)=>t.indexOf(i,e)===e};V.MaskedEnum=ot;class rt extends Y{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}V.MaskedFunction=rt;var nt;class at extends Y{constructor(t){super({...at.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const e=(this.scale?"("+I(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+e);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(I).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(I(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[e,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!e)s.skip=true;if(e&&!this.allowPositive&&!this.value&&e!=="-")s.aggregate(this._appendChar("-"));return[e,s]}_separatorsCount(t,i){if(i===void 0){i=false}let e=0;for(let s=0;s<t;++s){if(this._value.indexOf(this.thousandsSeparator,s)===s){++e;if(i)t+=this.thousandsSeparator.length}}return e}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,e))}_appendCharRaw(t,i){if(i===void 0){i={}}const e=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const s=this._separatorsCountFromSlice(e);this._value=this._removeThousandsSeparators(this.value);const o=this._value;this._value+=t;const r=this.number;let n=!isNaN(r);let a=false;if(n){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(at.UNMASKED_RADIX,this.radix);a||(a=o===this._value&&!i.tail)}else{n=false}}n&&(n=Boolean(this._value.match(this._numberRegExp)))}let l;if(!n){this._value=o;l=new q}else{l=new q({inserted:this._value.slice(o.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);const d=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const h=this._separatorsCountFromSlice(d);l.tailShift+=(h-s)*this.thousandsSeparator.length;return l}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const e=this.value.indexOf(this.thousandsSeparator,i);if(e<=t)return e}return-1}_adjustRangeWithSeparators(t,i){const e=this._findSeparatorAround(t);if(e>=0)t=e;const s=this._findSeparatorAround(i);if(s>=0)i=s+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const e=this.value.slice(0,t);const s=this.value.slice(i);const o=this._separatorsCount(e.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(e+s));const r=this._separatorsCountFromSlice(e);return new q({tailShift:(r-o)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case E.NONE:case E.LEFT:case E.FORCE_LEFT:{const e=this._findSeparatorAround(t-1);if(e>=0){const s=e+this.thousandsSeparator.length;if(t<s||this.value.length<=s||i===E.FORCE_LEFT){return e}}break}case E.RIGHT:case E.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let e=this.value;if(this.normalizeZeros)e=this._normalizeZeros(e);if(this.padFractionalZeros&&this.scale>0)e=this._padFractionalZeros(e);this._value=e}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,e,s)=>i+s));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))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,e){if(i===void 0){i={}}const s=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===at.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,e)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,at.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(at.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||at.EMPTY_VALUES.includes(t)&&at.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}nt=at;at.UNMASKED_RADIX=".";at.EMPTY_VALUES=[...Y.EMPTY_VALUES,0];at.DEFAULTS={...Y.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:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};V.MaskedNumber=at;const lt={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function dt(t,i,e){if(i===void 0){i=lt.MASKED}if(e===void 0){e=lt.MASKED}const s=P(t);return t=>s.runIsolated((s=>{s[i]=t;return s[e]}))}function ht(t,i,e,s){return dt(i,e,s)(t)}V.PIPE_TYPE=lt;V.createPipe=dt;V.pipe=ht;class ut extends Q{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,e,s;const{repeat:o,...r}=z(t);this._blockOpts=Object.assign({},this._blockOpts,r);const n=P(this._blockOpts);this.repeat=(i=(e=o!=null?o:n.repeat)!=null?e:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:n},eager:n.eager,overwrite:n.overwrite,skipInvalid:n.skipInvalid,lazy:n.lazy,placeholderChar:n.placeholderChar,displayChar:n.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(P(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const e=new q;for(let a=(s=(o=this._mapPosToBlock(this.displayValue.length))==null?void 0:o.index)!=null?s:Math.max(this._blocks.length-1,0),l,d;l=(r=this._blocks[a])!=null?r:d=!d&&this._allocateBlock(a);++a){var s,o,r,n;const h=l._appendChar(t,{...i,_beforeTailState:(n=i._beforeTailState)==null||(n=n._blocks)==null?void 0:n[a]});if(h.skip&&d){this._blocks.pop();this.mask=this.mask.slice(1);break}e.aggregate(h);if(h.consumed)break}return e}_trimEmptyTail(t,i){var e,s;if(t===void 0){t=0}const o=Math.max(((e=this._mapPosToBlock(t))==null?void 0:e.index)||0,this.repeatFrom,0);let r;if(i!=null)r=(s=this._mapPosToBlock(i))==null?void 0:s.index;if(r==null)r=this._blocks.length-1;let n=0;for(let t=r;o<=t;--t,++n){if(this._blocks[t].unmaskedValue)break}if(n){this._blocks.splice(r-n+1,n);this.mask=this.mask.slice(n)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=super.remove(t,i);this._trimEmptyTail(t,i);return e}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}V.RepeatBlock=ut;try{globalThis.IMask=V}catch{}const ct='@-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 .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;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;margin:0 0 4px 0}verdocs-kba-dialog .field verdocs-text-input{width:100%;margin-bottom:0}verdocs-kba-dialog .field verdocs-select-input{width:100%;margin-bottom:0}verdocs-kba-dialog .field input.date-input{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-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-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.agree span{margin-top:8px;font-size:12px;line-height:14px;font-style:italic}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin: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}';const ft={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"};const pt=Object.entries(ft).map((([t,i])=>({value:t,label:i})));const gt=`<svg width="40" height="40" viewBox="0 0 40 40" 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>`;const bt=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.pinEntered=i(this,"pinEntered");this.next=i(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-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){V(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(Date.now()-86400*18*365*1e3),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var e=t.getMonth()+1;var s=t.getFullYear();if(i<10)i="0"+i;if(e<10)e="0"+e;return[e,i,s].join("/")},parse:function(t){const i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,o,r,n,a,l,d,h,u,c,f,p,g;if(this.mode==="choice"){return e("verdocs-dialog",null,e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{slot:"content",class:"content"},!!this.helptitle&&e("div",{class:"help-box"},e("div",{class:"help-icon",innerHTML:gt}),e("div",{class:"help-details"},e("div",{class:"help-title"},this.helptitle),e("div",{class:"help-text"},this.helptext))),e("div",{class:"choices"},this.choices.map((t=>e("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t))))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response}))))}if(this.mode==="identity"){return e("verdocs-dialog",null,e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null)),e("div",{slot:"content",class:"content"},e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-first"},"Your Name:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value},onClick:t=>t.stopPropagation()}),e("verdocs-text-input",{placeholder:"Last name...",value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-address"},"Address:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"Address...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-city"},"City:"),e("verdocs-text-input",{placeholder:"City...",value:(r=this.updatedRecipient)===null||r===void 0?void 0:r.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-state"},"State:"),e("verdocs-select-input",{options:pt,value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",e("span",{class:"required"},"*")),e("verdocs-text-input",{required:true,placeholder:"Zip Code...",value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:this.dobContainerId},"Date of Birth:",e("span",{class:"required"},"*")),e("input",{type:"text",class:"date-input",value:((d=this.updatedRecipient)===null||d===void 0?void 0:d.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>{t.stopPropagation()},onBlur:t=>{this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}}})),e("div",{class:"field agree"},e("label",null),e("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),e("span",null,"I agree to provide my personal information in order to validate my identity."))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!this.agreed||!((h=this.updatedRecipient)===null||h===void 0?void 0:h.first_name)||!((u=this.updatedRecipient)===null||u===void 0?void 0:u.last_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.address)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.zip)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)}))))}return e("verdocs-dialog",null,e("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null)),e("div",{slot:"content",class:"content"},!!this.helptitle&&e("div",{class:"help-box"},e("div",{class:"help-icon",innerHTML:gt}),e("div",{class:"help-details"},e("div",{class:"help-title"},this.helptitle),e("div",{class:"help-text"},this.helptext))),e("div",{class:"input"},e("label",{htmlFor:"verdocs-kba-input"},this.label),e("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value}))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};bt.style=ct;const 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}';const xt=`<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>`;const mt=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.next=i(this,"next");this.resendTimeout=null;this.endpoint=n;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{l(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response=""})).catch((t=>console.log("Error resending code",t)))}),1e3)}disconnectedCallback(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}startResendTimeout(){this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((()=>{this.resendDisabled=false}),3e4)}handleResend(){this.startResendTimeout();l(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response="";b("A new code has been sent.")})).catch((t=>console.log("Error resending code",t)))}handleSubmit(){this.startResendTimeout();l(this.endpoint,{auth_method:this.method,code:this.response}).then((t=>{console.log("Verification completed",t);this.next.emit({response:t});b("Thank you. Your verification was successful.")})).catch((t=>{b("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""}render(){return e(o,{key:"e62d4cd7473b3e461e78c80ea0f40a56d2f54872"},e("div",{key:"ca25ed4e28a1c85ef3cb6b2d6d8e7b68aa5ae545",class:"background-overlay",onClick:t=>this.handleDismiss(t)},e("div",{key:"8283aca65d548dd4dbeb9994188330859582e023",class:"dialog"},e("div",{key:"df6e19738c43aa1f25974a159068fbe3f372dae1",class:"heading"},"Verification Required"),e("div",{key:"eca8c01b60342006a2d9dc802cdd23d83c53347f",class:"help-box"},e("div",{key:"647d41dd77c8841892c84afee3ce14f1bad17d21",class:"help-icon",innerHTML:xt}),e("div",{key:"4902433fc1685d616fcf75e31553080eadba55c5",class:"help-details"},e("div",{key:"260c544b5a61c8035709d0baceb3dd1ab0913886",class:"help-title"},"Please verify your email address"),e("div",{key:"82de4fe84ebab4cecc9af6ee4d16bcff5b4f3a58",class:"help-text"},"Check your email for a one-time code, and enter it below."))),e("div",{key:"e5500ef8cadb8f921f4b42cd6e54caeb37d69d45",class:"input"},e("label",{key:"b6b449c1ac874ed9aa76bcb5723acbbe4275ce92",htmlFor:"verdocs-otp-input"},"Code:"),e("input",{key:"0901b026b0b619852d3a1589dd4a818bfc7158ef",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:t=>this.response=t.target.value})),e("div",{key:"1bfa951127b63338d296e56f940db73670987148",class:"buttons"},e("verdocs-button",{key:"0af33c1f0f68fc10a0ab5712a90a92858c573b01",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{key:"49f4af9c10ded43c780533798fdad2cb9b2e445c",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),e("verdocs-button",{key:"803cf294033cbdf4a6854b0d72eac94184c03bb5",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};mt.style=vt;const wt='@-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-signing-progress{position:fixed;top:64px;left:20px;z-index:900;display:block;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}@media (max-width: 768px){verdocs-signing-progress{display:none}}verdocs-signing-progress .card{background:white;padding:16px;border-radius:8px;-webkit-box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);width:240px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}verdocs-signing-progress .header{font-size:14px;color:#111827}verdocs-signing-progress .header-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:14px;font-weight:500;color:#111827}verdocs-signing-progress .description{font-size:12px;line-height:16px;color:#374151}verdocs-signing-progress .field-label{font-family:var(--verdocs-primary-font, var(--verdocs-primary-font, "Inter", "Barlow", sans-serif));font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .field-completed{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;font-size:0.75rem;line-height:1rem;font-weight:400;color:var(--verdocs-body-color, #242424)}verdocs-signing-progress .field-completed .text{position:relative;top:-2px}verdocs-signing-progress .separator{height:1px;background-color:#e5e7eb;width:100%}verdocs-signing-progress .btn{width:100%;height:32px;border-radius:4px;font-weight:600;font-size:0.75rem;line-height:1rem;cursor:pointer;border:1px solid transparent;-webkit-transition:all 0.2s;transition:all 0.2s;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-signing-progress .btn:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .btn.start,verdocs-signing-progress .btn.submit,verdocs-signing-progress .btn.next{background-color:var(--verdocs-primary-color, #55bc81);color:white}verdocs-signing-progress .btn.start:hover:not(:disabled),verdocs-signing-progress .btn.submit:hover:not(:disabled),verdocs-signing-progress .btn.next:hover:not(:disabled){background-color:var(--verdocs-primary-color-hover, #2b995b)}verdocs-signing-progress .btn.start:disabled,verdocs-signing-progress .btn.submit:disabled,verdocs-signing-progress .btn.next:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .btn.prev,verdocs-signing-progress .btn.previous{background-color:#f3f4f6;color:#374151}verdocs-signing-progress .btn.prev:hover:not(:disabled),verdocs-signing-progress .btn.previous:hover:not(:disabled){background-color:#e5e7eb}verdocs-signing-progress .btn.prev:disabled,verdocs-signing-progress .btn.previous:disabled{background-color:#f0f0f0;border:1px solid #e0e0e0;color:#bdbdbd;cursor:not-allowed;opacity:1}verdocs-signing-progress .nav-buttons{display:-ms-flexbox;display:flex;gap:12px;width:100%}verdocs-signing-progress .nav-buttons .btn{-ms-flex:1;flex:1}';const Ct=class{constructor(e){t(this,e);this.started=i(this,"started");this.next=i(this,"next");this.previous=i(this,"previous");this.exit=i(this,"exit");this.current=0;this.total=0;this.mode="start";this.fieldLabel="";this.fieldCompleted=false}renderSuccessIcon(){return e("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z",fill:"#107C10"}))}renderContent(){if(this.mode==="start"){return e("div",{class:"field-label"},this.fieldLabel)}if(this.fieldCompleted){return e("div",{class:"field-completed"},e("div",{class:"icon"},this.renderSuccessIcon()),e("span",{class:"text"},"Successfully signed!"))}return e("div",{class:"field-label"},this.fieldLabel)}renderFooter(){if(this.mode==="start"){return e("button",{class:"btn start",onClick:()=>this.started.emit()},"Start")}return e("div",{class:"nav-buttons"},e("button",{class:"btn previous",disabled:this.current<=1,onClick:()=>this.previous.emit()},"Previous"),e("button",{class:"btn next",disabled:this.current>=this.total,onClick:()=>this.next.emit()},"Next"))}renderCompleted(){return e("div",{class:"card completed"},e("div",{class:"header-completed"},e("div",{class:"icon"},this.renderSuccessIcon()),"Completed"),e("div",{class:"description"},"You have entered all requested signatures. Select Submit to complete the signing process."),e("div",{class:"separator"}),e("button",{class:"btn submit",onClick:()=>this.exit.emit()},"Submit"))}render(){if(this.mode==="completed"){return this.renderCompleted()}return e("div",{class:"card"},e("div",{class:"header"},this.current," of ",this.total," fields"),e("div",{class:"body"},this.renderContent()),e("div",{class:"separator"}),this.renderFooter())}};Ct.style=wt;const kt='@-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:var(--verdocs-primary-font, "Inter", "Barlow", 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}';const yt=class{constructor(e){t(this,e);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.another=i(this,"another");this.view=i(this,"view");this.next=i(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}async componentWillLoad(){var t,i,e;if(!this.endpoint){this.endpoint=d.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}await this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(s){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new v(s.message,(i=s.response)===null||i===void 0?void 0:i.status,(e=s.response)===null||e===void 0?void 0:e.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[VIEW] Loading envelope",this.envelopeId);this.unlistenToEnvelope();x.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){x.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,e,s,o;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;f(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,e,s;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new v(t.message,(e=t.response)===null||e===void 0?void 0:e.status,(s=t.response)===null||s===void 0?void 0:s.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":try{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const i=await c(this.endpoint,t.id);window.open(i,"_blank")}}catch(t){console.log("Unable to download document",t);b(((o=(s=t.response)===null||s===void 0?void 0:s.data)===null||o===void 0?void 0:o.error)||"Unable to download document. Please try again later.",{style:"error"})}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await c(this.endpoint,t.id);window.open(i,"_blank")}}break;case"download-all":u(this.endpoint,[this.envelope.id]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return e(o,null,e("verdocs-loader",null))}if(this.showLoadError){return e(o,null,e("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return e(o,null,e("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"}))}const i=[{id:"print",label:"Print"}];if(p(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const r=p(this.endpoint.profile,this.envelope);const n=this.envelope.documents.length>0;const a=this.envelope.documents.filter((t=>t.type==="attachment")).length;const l=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||l){i.push({label:""});if(n){i.push({id:"download-attachments",label:a>1?"Download Documents":"Download Document"})}if(l){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&l){i.push({id:"download-all",label:"Download All Files"})}}return e(o,null,e("div",{id:"verdocs-view-header"},e("div",{class:"inner"},e("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),e("div",{class:"title"},this.envelope.name),e("div",{style:{flex:"1"}}),e("div",{style:{marginLeft:"10px"}}),e("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),e("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=g(1,t.pages);return e(s,null,i.map((i=>{var s;const o=((s=t.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return e("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&e("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&e("div",{class:"loading-indicator"},e("verdocs-loader",null)),!r&&e("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:true,onAskQuestion:()=>{},onDecline:()=>{},onFinishLater:()=>{}}))}get component(){return r(this)}};yt.style=kt;export{w as verdocs_adopt_signature_dialog,k as verdocs_delegate_dialog,A as verdocs_disclosure_dialog,bt as verdocs_kba_dialog,mt as verdocs_otp_dialog,Ct as verdocs_signing_progress,yt as verdocs_view};
|
|
2
|
-
//# sourceMappingURL=p-2439e530.entry.js.map
|