@verdocs/web-sdk 5.3.4 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-Be9PlTB7.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.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 +3 -3
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-ok-dialog.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 +4 -5
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +21 -82
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +2 -3
- 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 +5 -2
- package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +19 -4
- 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.js +1 -1
- package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -5
- 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-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/components/{p-BUkor2Zh.js → p-2WUcCzQq.js} +3 -3
- package/dist/components/{p-BUkor2Zh.js.map → p-2WUcCzQq.js.map} +1 -1
- package/dist/components/{p-BjJWKf-L.js → p-6dn6bTF-.js} +10 -10
- package/dist/components/{p-BjJWKf-L.js.map → p-6dn6bTF-.js.map} +1 -1
- package/dist/components/{p-CZ5JrIih.js → p-8M6wbefU.js} +3 -3
- package/dist/components/{p-CZ5JrIih.js.map → p-8M6wbefU.js.map} +1 -1
- package/dist/components/{p-CYuh1ogw.js → p-BDAu6Qdg.js} +3 -3
- package/dist/components/{p-CYuh1ogw.js.map → p-BDAu6Qdg.js.map} +1 -1
- package/dist/components/p-BnMAPkKT.js +82 -0
- package/dist/components/p-BnMAPkKT.js.map +1 -0
- package/dist/components/{p-OzwT6cW-.js → p-BsAgsmZb.js} +3 -3
- package/dist/components/{p-OzwT6cW-.js.map → p-BsAgsmZb.js.map} +1 -1
- package/dist/components/{p-q-sbO54X.js → p-C1sOQyoW.js} +4 -4
- package/dist/components/{p-q-sbO54X.js.map → p-C1sOQyoW.js.map} +1 -1
- package/dist/components/{p-CFK7G7AR.js → p-CZcjG946.js} +9 -9
- package/dist/components/{p-CFK7G7AR.js.map → p-CZcjG946.js.map} +1 -1
- package/dist/components/{p-B1oNdOdb.js → p-Cbg7a3HQ.js} +3 -3
- package/dist/components/{p-B1oNdOdb.js.map → p-Cbg7a3HQ.js.map} +1 -1
- package/dist/components/{p-CGQDpB88.js → p-CcCYvQR-.js} +9 -9
- package/dist/components/{p-CGQDpB88.js.map → p-CcCYvQR-.js.map} +1 -1
- package/dist/components/{p-Dt1l1CiO.js → p-ChSgKUKi.js} +3 -3
- package/dist/components/{p-Dt1l1CiO.js.map → p-ChSgKUKi.js.map} +1 -1
- package/dist/components/{p-BzoreaCJ.js → p-Cswo_Apj.js} +4 -4
- package/dist/components/{p-BzoreaCJ.js.map → p-Cswo_Apj.js.map} +1 -1
- package/dist/components/{p-B-sC03p7.js → p-DBxWj2lt.js} +6 -5
- package/dist/components/p-DBxWj2lt.js.map +1 -0
- package/dist/components/{p-BdW7a50T.js → p-DHl4c1oa.js} +3 -3
- package/dist/components/{p-BdW7a50T.js.map → p-DHl4c1oa.js.map} +1 -1
- package/dist/components/{p-NepfaUbg.js → p-DN1cBTs0.js} +3 -3
- package/dist/components/{p-NepfaUbg.js.map → p-DN1cBTs0.js.map} +1 -1
- package/dist/components/{p-DjgJTYmV.js → p-DZ3TxFzS.js} +4 -4
- package/dist/components/{p-DjgJTYmV.js.map → p-DZ3TxFzS.js.map} +1 -1
- package/dist/components/{p-CFYTe0HU.js → p-DbwkPoha.js} +3 -3
- package/dist/components/{p-CFYTe0HU.js.map → p-DbwkPoha.js.map} +1 -1
- package/dist/components/{p-NtCZcfeU.js → p-Dp0dNizc.js} +3 -3
- package/dist/components/{p-NtCZcfeU.js.map → p-Dp0dNizc.js.map} +1 -1
- package/dist/components/{p-DmVSUzvg.js → p-IPJtUL3R.js} +4 -4
- package/dist/components/{p-DmVSUzvg.js.map → p-IPJtUL3R.js.map} +1 -1
- package/dist/components/{p-B_qZwg8S.js → p-I_twwI6N.js} +10 -10
- package/dist/components/{p-B_qZwg8S.js.map → p-I_twwI6N.js.map} +1 -1
- package/dist/components/{p-DQDtYaYV.js → p-nazpDdZn.js} +3 -3
- package/dist/components/{p-DQDtYaYV.js.map → p-nazpDdZn.js.map} +1 -1
- package/dist/components/verdocs-build.js +13 -13
- 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-sidebar.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-initial.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-initial-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-quick-functions.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-sign.js +12 -13
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.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-card.js +1 -1
- package/dist/components/verdocs-template-document-page.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-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +2 -2
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/esm/index-CF7i8guW.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
- package/dist/esm/verdocs-delegate-dialog_5.entry.js +7 -7
- package/dist/esm/verdocs-delegate-dialog_5.entry.js.map +1 -1
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-menu-panel_2.entry.js +7 -7
- package/dist/esm/verdocs-ok-dialog.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 +4 -5
- 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-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-CF7i8guW.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.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-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.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-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.d.ts +13 -3
- package/dist/types/components.d.ts +11 -6
- package/dist/verdocs-web-sdk/{p-48366bb6.system.entry.js → p-27965f3b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c0ec2636.system.entry.js → p-30c6df44.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-863df983.system.entry.js → p-452fb893.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7acbd898.entry.js → p-4827f3af.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-79f5ee74.entry.js → p-48ea586f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e6fd14d5.entry.js → p-5631b76d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-5e92e1ed.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-5e92e1ed.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-cc9e6049.system.entry.js → p-637da951.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6f06bc8e.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-6f06bc8e.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-0cde3e63.system.entry.js → p-7e909e4d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-7e909e4d.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-1c4b4425.entry.js → p-8a931007.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0a1dc128.entry.js → p-8c6b9758.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DAZ_KnJG.system.js.map → p-BIcMEuoc.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-rPgqdDgT.system.js.map → p-BMTuIIDz.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CAPHli3W.system.js.map → p-C2U1AIgQ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CBcFsA_E.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CZ0N9seS.system.js.map → p-CWdALVSJ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Dx9QGjeG.system.js.map → p-CXF7FJKi.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-F6cjv9kE.system.js.map → p-CiSQubo3.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DXKG6_cs.system.js.map → p-ClClPWj-.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CvTJQ0Hb.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-BAthDv8w.system.js.map → p-DANgXHoV.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ynZKIneZ.system.js.map → p-DT5SgITS.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BMQPYgf_.system.js.map → p-Dchsv9SZ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-D6pYq1ZB.system.js.map → p-ZoT3tV_N.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-d907fa45.system.entry.js → p-a0f35935.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f66b18e0.entry.js → p-aa84e0ae.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f46b9924.system.entry.js → p-b2a5b79a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b9d72eab.entry.js → p-b30ca40c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-427eaf21.system.entry.js → p-b8d56777.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7966d40d.system.entry.js → p-bb1e1ca1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ba3df500.entry.js → p-bcdf5197.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a95c074c.system.entry.js → p-bf7c7011.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DPRVGzF_.system.js.map → p-bjoD8Mtb.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-14467744.entry.js → p-c4f79857.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c1c4603e.system.entry.js → p-c9ffef4b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e801f4ac.entry.js → p-cc89f8e4.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a36fb1dd.entry.js → p-d7109021.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-d7109021.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-f5677a98.entry.js → p-e26ff4f2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2dab79c8.entry.js → p-e4a44f27.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-bf90e30b.system.entry.js → p-e7540c7b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b7da67bb.system.entry.js → p-ece1678b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-B-sC03p7.js.map +0 -1
- package/dist/components/p-BpUKXYCJ.js +0 -83
- package/dist/components/p-BpUKXYCJ.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0cde3e63.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4704cf14.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-4704cf14.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-Bo8r8IOt.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DTWK43fd.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a36fb1dd.entry.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-48366bb6.system.entry.js.map → p-27965f3b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c0ec2636.system.entry.js.map → p-30c6df44.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-863df983.system.entry.js.map → p-452fb893.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7acbd898.entry.js.map → p-4827f3af.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-79f5ee74.entry.js.map → p-48ea586f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e6fd14d5.entry.js.map → p-5631b76d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-cc9e6049.system.entry.js.map → p-637da951.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1c4b4425.entry.js.map → p-8a931007.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0a1dc128.entry.js.map → p-8c6b9758.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d907fa45.system.entry.js.map → p-a0f35935.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f66b18e0.entry.js.map → p-aa84e0ae.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f46b9924.system.entry.js.map → p-b2a5b79a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b9d72eab.entry.js.map → p-b30ca40c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-427eaf21.system.entry.js.map → p-b8d56777.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7966d40d.system.entry.js.map → p-bb1e1ca1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ba3df500.entry.js.map → p-bcdf5197.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a95c074c.system.entry.js.map → p-bf7c7011.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-14467744.entry.js.map → p-c4f79857.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c1c4603e.system.entry.js.map → p-c9ffef4b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e801f4ac.entry.js.map → p-cc89f8e4.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f5677a98.entry.js.map → p-e26ff4f2.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2dab79c8.entry.js.map → p-e4a44f27.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-bf90e30b.system.entry.js.map → p-e7540c7b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b7da67bb.system.entry.js.map → p-ece1678b.system.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as e,h as a,H as
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,h as a,H as o}from"./p-CF7i8guW.js";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-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';const t=`<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>`;const s=`<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>`;const l=`<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>`;const r=`<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>`;const d=class{constructor(a){e(this,a)}render(){var e,c,d,i;return a(o,{key:"492bba812509255e401190ec90b7418c12ad8e7f"},a("span",{key:"50a1b01a85acc94e352a677efc0606156c4519bb",class:"name"},this.template.name),a("span",{key:"9c480362f86c69ebba80eaa753618e318a7d103d",class:"org-name"},((e=this.template.organization)===null||e===void 0?void 0:e.name)||"Public"),a("hr",{key:"9d18af5c25ee6b27b314fe1a8b206bae07682344"}),a("div",{key:"e20cfea03dafd1a19aaed089a77680e4e5e0463a",class:"controls"},a("div",{key:"ca8a3afd754051a154da0067461a849b19963f0f",class:"control"},a("span",{key:"56399b446ce3d80e57e2c17fdb448249768e4da6",class:"icon",innerHTML:r}),a("span",{key:"9a6894bfeab5bba79ebda2cc6ab417e612a457bb",class:"value"},this.template.star_counter)),a("div",{key:"759b727c9483c36826a550f361fe880a9aef0707",class:"control secondary"},a("span",{key:"d87edd99d79c9cb849c9d1b78aface0f85de9632",class:"icon",innerHTML:l}),a("span",{key:"01293f6b3f89cd45bf0eed96eb3f9dce84fcd7d9",class:"value"},((i=(d=(c=this.template)===null||c===void 0?void 0:c.documents)===null||d===void 0?void 0:d[0])===null||i===void 0?void 0:i.pages)||1)),a("div",{key:"b0f3d59f905eab4b16eac7d6dc9cb934c45e5f0d",class:"control secondary"},a("span",{key:"0e910da6469121b5d2cf93236848f8b035a56313",class:"icon",innerHTML:s}),a("span",{key:"e51492a79d878cf7ad6ab4d68289a7b738430a9d",class:"value"},this.template.counter)),a("span",{key:"6cb03de0c6b00978c0da211a2d268bf6daae706f",class:"additional-controls",innerHTML:t})))}};d.style=c;export{d as verdocs_template_card};
|
2
|
+
//# sourceMappingURL=p-4827f3af.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as e,c as t,h as s,H as i}from"./p-CF7i8guW.js";import{VerdocsEndpoint as o,getTemplate as r,updateTemplateRole as l,deleteTemplateRole as a,isValidEmail as d}from"@verdocs/js-sdk";import{S as c}from"./p-C1sRVZWv.js";import{S as n}from"./p-DmsV595e.js";const p='@-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-menu-panel-overlay{top:0;left:0;width:100%;height:100%;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.4980392157)}#verdocs-menu-panel{opacity:0;z-index:10001;position:fixed;overflow-y:scroll;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-animation:showVerdocsMenuPanel 0.35s;-webkit-animation-fill-mode:forwards}@-webkit-keyframes showVerdocsMenuPanel{0%{opacity:0;right:-300px}100%{right:0;opacity:1}}';const h=class{constructor(s){e(this,s);this.close=t(this,"close");this.moved=false;this.overlayId=`verdocs-menu-panel-overlay`;this.panelId=`verdocs-menu-panel`;this.side="right";this.overlay=true;this.width=300}handleClick(e){var t;if(!this.element.contains(e.target)){this.hide();(t=this.close)===null||t===void 0?void 0:t.emit()}}componentWillLoad(){this.hide();if(this.overlay){this.portal=document.createElement("div");this.portal.setAttribute("id",this.overlayId);document.body.append(this.portal)}this.portal=document.createElement("div");this.portal.setAttribute("id",this.panelId);this.portal.style.top=`0px`;this.portal.style.bottom=`0px`;this.portal.style.width=`${this.width}px`;if(this.side==="left"){this.portal.style.left=`0px`}else{this.portal.style.right=`0px`}document.body.append(this.portal)}componentDidLoad(){this.portal.appendChild(this.element)}disconnectedCallback(){this.moved?this.portal.remove():this.moved=true}hide(){var e,t;(e=document.getElementById(this.overlayId))===null||e===void 0?void 0:e.remove();(t=document.getElementById(this.panelId))===null||t===void 0?void 0:t.remove()}render(){return s(i,{key:"433d003e79f33ac91e6535b34a7857520eba52a9",ref:e=>this.element=e},s("slot",{key:"349bf90ff34df330916d1aad0a40c79cce1c32bc"}))}};h.style=p;const f='@-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-template-role-properties{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form{gap:15px;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-role-properties form .instructions{margin:7px 0 0 0;font-size:12px;font-style:italic}verdocs-template-role-properties form .input-label{display:block;font-size:14px;-ms-flex:0 0 100px;flex:0 0 100px;font-weight:700;margin:0 0 4px 0;color:#555570}verdocs-template-role-properties form .first-last{gap:15px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form verdocs-help-icon{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-role-properties verdocs-select-input label{display:block}verdocs-template-role-properties verdocs-text-input{margin:0}verdocs-template-role-properties verdocs-text-input label{display:block}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const b=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>`;const u=class{constructor(s){e(this,s);this.close=t(this,"close");this.delete=t(this,"delete");this.sdkError=t(this,"sdkError");this.templateListenerId=null;this.endpoint=o.getDefault();this.templateId="";this.roleName="";this.dirty=false;this.saving=false;this.name="";this.type="signer";this.first_name="";this.last_name="";this.email="";this.phone="";this.delegator=false;this.loading=true;this.template=null}async componentWillLoad(){var e,t,s;try{this.endpoint.loadSession();if(!this.templateId){console.log(`[ROLES] Missing required template ID ${this.templateId}`);return}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return}this.listenToTemplate()}catch(i){console.log("[ROLES Error with preview session",i);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(i.message,(t=i.response)===null||t===void 0?void 0:t.status,(s=i.response)===null||s===void 0?void 0:s.data))}}disconnectedCallback(){this.unlistenToTemplate()}async listenToTemplate(){console.log("[ROLES] Loading tempate",this.templateId);this.unlistenToTemplate();n.subscribe("templates",this.templateId,(()=>r(this.endpoint,this.templateId)),false,(e=>{var t;console.log("[BUILD] Template Updated",e);this.template=e;this.loading=false;const s=(t=this.template)===null||t===void 0?void 0:t.roles.find((e=>e.name===this.roleName));if(s){this.name=s.name;this.type=s.type;this.first_name=s.first_name;this.last_name=s.last_name;this.email=s.email;this.phone=s.phone;this.delegator=s.delegator;console.log("[ROLES] Editing role",s)}}))}unlistenToTemplate(){if(this.templateListenerId){n.store.delListener(this.templateListenerId);this.templateListenerId=null}}handleCancel(e){var t,s;e.stopPropagation();const i=(t=this.template)===null||t===void 0?void 0:t.roles.find((e=>e.name===this.roleName));if(i){this.name=i.name;this.type=i.type;this.first_name=i.first_name;this.last_name=i.last_name;this.email=i.email;this.phone=i.phone;this.delegator=i.delegator}this.dirty=false;(s=this.close)===null||s===void 0?void 0:s.emit()}async handleSave(e){e.stopPropagation();this.saving=true;l(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLES] Update result",e);this.saving=false;this.dirty=false;const s=JSON.parse(JSON.stringify(this.template));const i=s.roles.findIndex((e=>e.name===this.roleName));if(i>-1){s.roles[i]=e}n.updateTemplate(this.templateId,s);(t=this.close)===null||t===void 0?void 0:t.emit()})).catch((e=>{console.log("[ROLES Update error",e);this.saving=false}))}async handleDelete(e){e.stopPropagation();if(window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")){a(this.endpoint,this.templateId,this.roleName).then((()=>{var e,t;const s=JSON.parse(JSON.stringify(this.template));s.roles=s.roles.filter((e=>e.name!==this.roleName));n.getTemplate(this.endpoint,this.templateId,true);(e=this.delete)===null||e===void 0?void 0:e.emit({templateId:this.templateId,roleName:this.roleName});(t=this.close)===null||t===void 0?void 0:t.emit()})).catch((e=>{console.log("[ROLES Deletion error",e)}))}}render(){var e;const t=(((e=this.template)===null||e===void 0?void 0:e.fields)||[]).some((e=>e.role_name===this.roleName));const o=!this.email&&!this.first_name&&!this.last_name||d(this.email)&&!!this.first_name&&!!this.last_name;return s(i,{key:"bcd42a969b8c8bc1e26230ee030fe3ecce41d19c"},s("form",{key:"c76c7ec1f28ecd3c5def9fd9909f623c8af54331",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},s("div",{key:"bfa5a347218860bd3a84c1a8b56f73b144c77635"},s("verdocs-text-input",{key:"c3be39c7b598497b508deca0524aebb483290fec",id:"verdocs-role-name",label:"Role Name (Must be unique)",value:this.name,autocomplete:"off",disabled:t,placeholder:"Role Name...",onInput:e=>{this.name=e.target.value;this.dirty=true}}),t&&s("div",{key:"ffeef355eea5b39554c33f3921601ac052c17946",class:"instructions"},"This role has fields assigned and can no longer be renamed.")),s("div",{key:"a6da7e387291e2dec0a8d4a53e914f2288280635"},s("div",{key:"83a6ce83779b2598d698dfa975fcb6264fb66fbe",class:"input-label"},"Type:"),s("verdocs-select-input",{key:"bf16d0f3886c28e83c55051e2d1ef89f3ac7472b",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value;this.dirty=true}})),s("div",{key:"9f584a0f03b9f60ccb514d8a36df58b89d80dadd"},s("div",{key:"24b0faf2816414d12da2d70199896ab878173197",class:"input-label"},"Default Contact Info:"),s("div",{key:"f37d35e63c2e80316db4d89e5b2a36cf900790e6",class:"first-last"},s("verdocs-text-input",{key:"e467a1abdd69b5873acf97a4752567f798d93429",id:"verdocs-recipient-first",value:this.first_name,autocomplete:"off",placeholder:"First...",onInput:e=>{this.first_name=e.target.value;this.dirty=true}}),s("verdocs-text-input",{key:"6a29956cfaa7094718bbc668d8818edaf83ed7db",id:"verdocs-recipient-first",value:this.last_name,autocomplete:"off",placeholder:"Last...",onInput:e=>{this.last_name=e.target.value;this.dirty=true}}))),s("div",{key:"023b95f0efb19db5e1663f63275f3fe1cf66cafa"},s("verdocs-text-input",{key:"57f2a9693e3b7f010ec361c558610689583da297",id:"verdocs-recipient-email",value:this.email,autocomplete:"off",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value;this.dirty=true}}),s("div",{key:"3f4884d843f4363ea4d462a651b9bd2fcebc62f7",style:{height:"15px"}}),s("div",{key:"b57692a25f3516a8b3b32e167dffe165ed61bbc7"},s("verdocs-text-input",{key:"cbe17684a4cca331e9816306e7a8302572baad2d",id:"verdocs-recipient-phone",value:this.phone,autocomplete:"off",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value;this.dirty=true}}))),s("div",{key:"a23f985d88ab9d119762e65949987be75249a08b",class:"buttons"},s("button",{key:"d3c10128fcc3dce49c0c2103313e5b153008b5de",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:b}),s("div",{key:"677a3157abb085ae08f5af0dbf9ed9ed8baa9b55",style:{flex:"1"}}),s("verdocs-button",{key:"2fe045a4b83f78aa271d520026f0cf0d1ef37851",size:"small",label:"Save",disabled:!this.dirty||!o,onClick:e=>this.handleSave(e)}))))}};u.style=f;export{h as verdocs_menu_panel,u as verdocs_template_role_properties};
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,c as t,h as s,H as i}from"./p-CF7i8guW.js";import{VerdocsEndpoint as o,getTemplate as r,updateTemplateRole as l,deleteTemplateRole as a,isValidEmail as d}from"@verdocs/js-sdk";import{S as c}from"./p-C1sRVZWv.js";import{S as n}from"./p-DmsV595e.js";const p='@-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-menu-panel-overlay{top:0;left:0;width:100%;height:100%;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.4980392157)}#verdocs-menu-panel{opacity:0;z-index:10001;position:fixed;overflow-y:scroll;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-animation:showVerdocsMenuPanel 0.35s;-webkit-animation-fill-mode:forwards}@-webkit-keyframes showVerdocsMenuPanel{0%{opacity:0;right:-300px}100%{right:0;opacity:1}}';const h=class{constructor(s){e(this,s);this.close=t(this,"close");this.moved=false;this.overlayId=`verdocs-menu-panel-overlay`;this.panelId=`verdocs-menu-panel`;this.side="right";this.overlay=true;this.width=300}handleClick(e){var t;if(!this.element.contains(e.target)){this.hide();(t=this.close)===null||t===void 0?void 0:t.emit()}}componentWillLoad(){this.hide();if(this.overlay){this.portal=document.createElement("div");this.portal.setAttribute("id",this.overlayId);document.body.append(this.portal)}this.portal=document.createElement("div");this.portal.setAttribute("id",this.panelId);this.portal.style.top=`0px`;this.portal.style.bottom=`0px`;this.portal.style.width=`${this.width}px`;if(this.side==="left"){this.portal.style.left=`0px`}else{this.portal.style.right=`0px`}document.body.append(this.portal)}componentDidLoad(){this.portal.appendChild(this.element)}disconnectedCallback(){this.moved?this.portal.remove():this.moved=true}hide(){var e,t;(e=document.getElementById(this.overlayId))===null||e===void 0?void 0:e.remove();(t=document.getElementById(this.panelId))===null||t===void 0?void 0:t.remove()}render(){return s(i,{key:"433d003e79f33ac91e6535b34a7857520eba52a9",ref:e=>this.element=e},s("slot",{key:"349bf90ff34df330916d1aad0a40c79cce1c32bc"}))}};h.style=p;const f='@-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-template-role-properties{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form{gap:15px;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-role-properties form .instructions{margin:7px 0 0 0;font-size:12px;font-style:italic}verdocs-template-role-properties form .input-label{display:block;font-size:14px;-ms-flex:0 0 100px;flex:0 0 100px;font-weight:700;margin:0 0 4px 0;color:#555570}verdocs-template-role-properties form .first-last{gap:15px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form verdocs-help-icon{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-role-properties verdocs-select-input label{display:block}verdocs-template-role-properties verdocs-text-input{margin:0}verdocs-template-role-properties verdocs-text-input label{display:block}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const b=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>`;const u=class{constructor(s){e(this,s);this.close=t(this,"close");this.delete=t(this,"delete");this.sdkError=t(this,"sdkError");this.templateListenerId=null;this.endpoint=o.getDefault();this.templateId="";this.roleName="";this.dirty=false;this.saving=false;this.name="";this.type="signer";this.first_name="";this.last_name="";this.email="";this.phone="";this.delegator=false;this.loading=true;this.template=null}async componentWillLoad(){var e,t,s;try{this.endpoint.loadSession();if(!this.templateId){console.log(`[ROLES] Missing required template ID ${this.templateId}`);return}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return}this.listenToTemplate()}catch(i){console.log("[ROLES Error with preview session",i);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(i.message,(t=i.response)===null||t===void 0?void 0:t.status,(s=i.response)===null||s===void 0?void 0:s.data))}}disconnectedCallback(){this.unlistenToTemplate()}async listenToTemplate(){console.log("[ROLES] Loading tempate",this.templateId);this.unlistenToTemplate();n.subscribe("templates",this.templateId,(()=>r(this.endpoint,this.templateId)),false,(e=>{var t;console.log("[BUILD] Template Updated",e);this.template=e;this.loading=false;const s=(t=this.template)===null||t===void 0?void 0:t.roles.find((e=>e.name===this.roleName));if(s){this.name=s.name;this.type=s.type;this.first_name=s.first_name;this.last_name=s.last_name;this.email=s.email;this.phone=s.phone;this.delegator=s.delegator;console.log("[ROLES] Editing role",s)}}))}unlistenToTemplate(){if(this.templateListenerId){n.store.delListener(this.templateListenerId);this.templateListenerId=null}}handleCancel(e){var t,s;e.stopPropagation();const i=(t=this.template)===null||t===void 0?void 0:t.roles.find((e=>e.name===this.roleName));if(i){this.name=i.name;this.type=i.type;this.first_name=i.first_name;this.last_name=i.last_name;this.email=i.email;this.phone=i.phone;this.delegator=i.delegator}this.dirty=false;(s=this.close)===null||s===void 0?void 0:s.emit()}async handleSave(e){e.stopPropagation();this.saving=true;l(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLES] Update result",e);this.saving=false;this.dirty=false;const s=JSON.parse(JSON.stringify(this.template));const i=s.roles.findIndex((e=>e.name===this.roleName));if(i>-1){s.roles[i]=e}n.updateTemplate(this.templateId,s);(t=this.close)===null||t===void 0?void 0:t.emit()})).catch((e=>{console.log("[ROLES Update error",e);this.saving=false}))}async handleDelete(e){e.stopPropagation();if(window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")){a(this.endpoint,this.templateId,this.roleName).then((()=>{var e,t;const s=JSON.parse(JSON.stringify(this.template));s.roles=s.roles.filter((e=>e.name!==this.roleName));n.getTemplate(this.endpoint,this.templateId,true);(e=this.delete)===null||e===void 0?void 0:e.emit({templateId:this.templateId,roleName:this.roleName});(t=this.close)===null||t===void 0?void 0:t.emit()})).catch((e=>{console.log("[ROLES Deletion error",e)}))}}render(){var e;const t=(((e=this.template)===null||e===void 0?void 0:e.fields)||[]).some((e=>e.role_name===this.roleName));const o=!this.email&&!this.first_name&&!this.last_name||d(this.email)&&!!this.first_name&&!!this.last_name;return s(i,{key:"d53a7b8a4b5fcd186c1c15f795014f54a68f0735"},s("form",{key:"782177f1f4008ddd294a385e514b0ab186d27f7b",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},s("div",{key:"72de86449db654c1b8cba0165389e17ec299d5ba"},s("verdocs-text-input",{key:"7c4fccec573691b2b8a47b16e2e505a73fd477e1",id:"verdocs-role-name",label:"Role Name (Must be unique)",value:this.name,autocomplete:"off",disabled:t,placeholder:"Role Name...",onInput:e=>{this.name=e.target.value;this.dirty=true}}),t&&s("div",{key:"ebc5e1b04ae8e1c3fbaef32bfa900481f619d6b5",class:"instructions"},"This role has fields assigned and can no longer be renamed.")),s("div",{key:"35e64a14483e9c23991ff441d91d4b2c26c0efde"},s("div",{key:"9c94b96aa7b0673e014859b99d500b23e0e374ef",class:"input-label"},"Type:"),s("verdocs-select-input",{key:"a076cc288bff57800bef9662f1e68ec4d20848a3",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value;this.dirty=true}})),s("div",{key:"f89053c8cc7f3b4d0fa37619763588b5f1cc03ba"},s("div",{key:"2e4b21bba996500f0a5d0d84516723e60dc885a6",class:"input-label"},"Default Contact Info:"),s("div",{key:"09496f13651f309efdecee76ee606290c47d2de1",class:"first-last"},s("verdocs-text-input",{key:"af4d812e6aef5995214798c2ac0f1c4c0a02cc69",id:"verdocs-recipient-first",value:this.first_name,autocomplete:"off",placeholder:"First...",onInput:e=>{this.first_name=e.target.value;this.dirty=true}}),s("verdocs-text-input",{key:"db98adc3a4d20c5c522fc4b22cb6755fdae14032",id:"verdocs-recipient-first",value:this.last_name,autocomplete:"off",placeholder:"Last...",onInput:e=>{this.last_name=e.target.value;this.dirty=true}}))),s("div",{key:"2cdc9df0e1c818adaf0199d4958f00a9bc33935d"},s("verdocs-text-input",{key:"bbae39be367309f8c6e28bd846d14507576fbe21",id:"verdocs-recipient-email",value:this.email,autocomplete:"off",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value;this.dirty=true}}),s("div",{key:"ea2c416544223ecc29a3a05f98715a59afa37c6f",style:{height:"15px"}}),s("div",{key:"ece75bcf68a91a6678f97d4db865dac3721b3279"},s("verdocs-text-input",{key:"6a8b4954e7553a0e54a54f0250a93e23f0c48f29",id:"verdocs-recipient-phone",value:this.phone,autocomplete:"off",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value;this.dirty=true}}))),s("div",{key:"d6a93cdd48d5621545474b514106c5996bdfb52f",class:"buttons"},s("button",{key:"f5743fa9cf13d35e25327529872da94b99ffd7d2",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:b}),s("div",{key:"7134249e6e3c94d0e5610ac8e085422011a306a5",style:{flex:"1"}}),s("verdocs-button",{key:"ba1f0f28bba763316963631791e49cfb21348030",size:"small",label:"Save",disabled:!this.dirty||!o,onClick:e=>this.handleSave(e)}))))}};u.style=f;export{h as verdocs_menu_panel,u as verdocs_template_role_properties};
|
2
|
+
//# sourceMappingURL=p-48ea586f.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as e,c as s,h as i,H as l}from"./p-CF7i8guW.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-fL0BKEnm.js";import{V as v}from"./p-CyvDgtoV.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";const x='@-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-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const u=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>`;const b=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const m=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const g=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const w=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"cbb6106629de750aade6c39f705ecb9f9d103031"},i("div",{key:"73d522c9cfa87930dcba2aeb543634580c1e76d9",class:"header"},i("div",{key:"ac4f7014544ec81be9bae96bb07fdbf7495ca705",class:"filter"},i("verdocs-text-input",{key:"5b1df9e9aac89391d555eed621efb355e6bac6ce",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"ca081aa3b0a548620d66f49935d08430714bcd90",label:"View",value:this.view,options:b,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"1b956dfc0c28df1b990aa695c0df8d114c6fe1b5",label:"Status",value:this.status,options:m,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"ea43244641ff51676c8e59346af1843582865b82",label:"Sort By",value:this.sort,options:g,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"d04c29615a3e9886d9eee78eb76ad4f30ccf8cb4",mode:"dark",size:24}),i("div",{key:"8ff362b83507cf75ac48787c67b2728d7980ec59",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"f786131801b4476edd8260dac6213c0bfeaaead6",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:u,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,": ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"4624707aa6e7a1dfda1859ac051889354ad580c1",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"2fe7ad29dc24785c0c3985c415965855262be746",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};w.style=x;export{w as verdocs_envelopes_list};
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,c as s,h as i,H as l}from"./p-CF7i8guW.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-fL0BKEnm.js";import{V as v}from"./p-CyvDgtoV.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";const x='@-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-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const b=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>`;const u=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const m=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const g=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const w=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"03db3e7632a6cc053cfe8bc265d417a249da57c3"},i("div",{key:"de8c658f087db66edf2d8794e3841fbb24e617b6",class:"header"},i("div",{key:"5781fc1bb782de28c90390ee64c64b0de424d956",class:"filter"},i("verdocs-text-input",{key:"ed0b65c9c16c8a357d867296a8407d1ddfc69235",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"8de9a090f86cfb2f24c164817206dada09b3e1e4",label:"View",value:this.view,options:u,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"f92625d34caa11274e26eab6f60b0bf22d7da1f3",label:"Status",value:this.status,options:m,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"6f414329f0b0895fb23ea479995a190873a7f678",label:"Sort By",value:this.sort,options:g,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"10f2c5da4be2b8cc69483f08cbc9e9232f9353c1",mode:"dark",size:24}),i("div",{key:"b513ca3b4cc84b94eb2adb3e33dd520f73234c2c",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"33414fd667a2c614e9f97f47069ff7c35650b942",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:b,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,": ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"ddd2040e44efe0f183a087c96637c0f94aadf97a",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"19b8b1700b16781b36d4f8986653ca9ab55fff4a",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};w.style=x;export{w as verdocs_envelopes_list};
|
2
|
+
//# sourceMappingURL=p-5631b76d.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,c as e,h as i,F as s,H as r,g as n}from"./p-CF7i8guW.js";import{D as o}from"./p-C_Xku1v2.js";import{verifySigner as a,VerdocsEndpoint as u,getEnvelope as h,getDocumentDownloadLink as l,cancelEnvelope as d,userCanCancelEnvelope as c,integerSequence as f}from"@verdocs/js-sdk";import{V as p}from"./p-CyvDgtoV.js";import{s as b}from"./p-fL0BKEnm.js";import{S as g}from"./p-C1sRVZWv.js";import{S as v}from"./p-DmsV595e.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";const x='@-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 .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 m=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.endpoint=o;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}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 i("verdocs-dialog",{key:"c8b2b8b55b6f0aa0ce22b232ada78eb65d839e5d"},i("div",{key:"a232d72b90086b7dd21246567b4ab7db80ba9855",slot:"heading",class:"heading"},i("div",{key:"bade50c544129ed54a43d76c475f8dc378d46ffd",class:"icon"},i("svg",{key:"72299a219d60e292ce32f63d25b647d448f24add",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"f6b2269e403530b00d16c545e3681236ca335650","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"4184d176c8fbe132a217b869ca5e742d38b5f3cd",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"})),i("defs",{key:"4aa388d7b0c799d426c7da94de93ab1be61ccbf0"},i("clipPath",{key:"0260929f251a0c3ad8bfc1f9e1bc9687cb3b60f6",id:"clip0_34208_4881"},i("path",{key:"64c42049336d37be15cb53adc91fe232955768d4",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"f9111aedb3a8e09a5898e560603592cdd972539b",class:"title"},'Delegate "',this.envelope.name,'"')),i("div",{key:"cee68483e20d610fa6f27f91bc31782717b89326",slot:"content",class:"content"},i("div",{key:"7316f1efd0cec724711236179efb949980e2fce1",class:"input names"},i("label",{key:"f26c2b853c322858a6376ee124f008adc807cc01",htmlFor:"verdocs-delegate-email"},"New Recipient:"),i("input",{key:"0c8e5895ff3bedb18112a29952402b4b0b6594c3",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}),i("input",{key:"1c103e348495c708313f0d5d8718f0b16bfe51a8",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})),i("div",{key:"2d1371968cc1e39566f5442b8f1d1d7cad99bd16",class:"input"},i("label",{key:"4288dba409f55402f2dde44697cf4e5282b812b8",htmlFor:"verdocs-delegate-email"},"Email Address:"),i("input",{key:"db7e71075d6024a8207cd0fbcb9bd1461a526378",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})),i("div",{key:"ec28591dc85cc862779023cb2987a71c5c13c66e",class:"input"},i("label",{key:"7b17786a3511eaeaf4c45997a632f2533071d6f9",htmlFor:"verdocs-delegate-phone"},"Phone:"),i("input",{key:"0a3ba95551a66756c77f4ccd9c5269aaa20f5d6f",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})),i("div",{key:"2e94fd83e0d58ba0ad37f97be2e09971ad8a80c4",class:"input"},i("label",{key:"ec0c5fb1d5c3e4985ee57bbb7d1722aa55b7a2b3",htmlFor:"verdocs-delegate-email"},"Message:"),i("textarea",{key:"9962c1d2dc7f61fea639204766bd0eb0b030c90b",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))),i("div",{key:"67062f5d1ecca5fd8206149067351a93d717282f",class:"footer",slot:"footer"},i("div",{key:"c05f381f9be5a54ad71e98233999aa69fbf57d61",class:"buttons"},i("button",{key:"cc64ad9c6d68f4136227aa8e18a65aadb4f788a8",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),i("button",{key:"41750cc0bd2e3234053ca015c59febaee914d5c3",class:"proceed",onClick:()=>this.handleDelegate(),disabled:!this.first_name||!this.last_name||!this.email},"Proceed"))))}};m.style=x;const k="@-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 .footer .accept{margin:0 0 28px 28px}verdocs-disclosure-dialog a{color:#4c56cb}verdocs-disclosure-dialog verdocs-checkbox{font-size:14px;line-height:20px}verdocs-disclosure-dialog verdocs-checkbox label>input[type=checkbox]+*::before{width:16px;height:16px;line-height:16px;margin-left:-28px;vertical-align:middle}verdocs-disclosure-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-disclosure-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-disclosure-dialog .buttons button.decline{background-color:#654dcb}verdocs-disclosure-dialog .buttons button.delegate{background-color:#55bc81}verdocs-disclosure-dialog .buttons button.proceed{background-color:#55bc81}verdocs-disclosure-dialog .buttons button:disabled{background-color:#6c727f}";const w=class{constructor(i){t(this,i);this.decline=e(this,"decline");this.delegate=e(this,"delegate");this.accept=e(this,"accept");this.disclosures=null;this.accepted=false}render(){return i("verdocs-dialog",{key:"30e510e20c1752813749e922bf97d413f3a7bae0"},i("div",{key:"67f3e91c99ea3a176d43d9be119f6480d449ee00",slot:"heading",class:"heading"},i("div",{key:"74d5127e9b80a34c91af7b9b7cbc6b76e486852e",class:"icon"},i("svg",{key:"ad47e30d4021438597325bc8a9b4252c613ccb76",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"9737c11b271aa61aa168726f0cf57062db56ea07","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"440e47ee0555b3f21a67e19601f4b6896d3be2f5",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"})),i("defs",{key:"5d3f835998da20367a0bdbd64aca6a32013c9710"},i("clipPath",{key:"511dbd41b549a19c4b5d96d573320d0cfd7acc22",id:"clip0_34208_4881"},i("path",{key:"6fd60d0706e5ff3e662c12a435072fa05741a034",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"6aa4a3a8b121ac6552f08e8696a5f79975d196e6",class:"title"},"e-Signature Disclosures")),i("div",{key:"256dc60fe4e0fd3852b13cb0f025b3fe9b98a332",slot:"content",class:"content",innerHTML:this.disclosures}),i("div",{key:"5d11d7ab00c372d3cc82ab7e268064111be25d9c",class:"footer",slot:"footer"},i("div",{key:"79cbb5da1cca426247b8513cf18b7a090351237a",class:"accept"},i("verdocs-checkbox",{key:"0aaa0d0f77951b511c2bf647ddd85e415b97a95d",label:"I accept the electronic signature disclosures and agree to proceed with digital signing.",checked:this.accepted,onInput:()=>this.accepted=!this.accepted})),i("div",{key:"e05388dffb103f83b76e1cf90467fa670b039928",class:"buttons"},i("button",{key:"b0e0535c0295b0f2fb211735e531673837df7e6c",class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")),i("div",{key:"56893a36e6c3a351785d9de9f39e63a66438e9ed",class:"buttons"},i("button",{key:"76cb126311d4bdf0ab8afa047f78943105188ab2",class:"decline",onClick:()=>this.decline.emit()},"Decline"),i("button",{key:"54370597e2eafeb5762e213b8652bfdc2823e45c",class:"delegate",onClick:()=>this.delegate.emit()},"Delegate"))))}};w.style=k;function C(t){return typeof t==="string"||t instanceof String}function A(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function y(t,e){if(Array.isArray(e))return y(t,((t,i)=>e.includes(i)));return Object.entries(t).reduce(((t,i)=>{let[s,r]=i;if(e(r,s))t[s]=r;return t}),{})}const F={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function D(t){switch(t){case F.LEFT:return F.FORCE_LEFT;case F.RIGHT:return F.FORCE_RIGHT;default:return t}}function B(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function E(t,e){if(e===t)return true;const i=Array.isArray(e),s=Array.isArray(t);let r;if(i&&s){if(e.length!=t.length)return false;for(r=0;r<e.length;r++)if(!E(e[r],t[r]))return false;return true}if(i!=s)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){const i=e instanceof Date,s=t instanceof Date;if(i&&s)return e.getTime()==t.getTime();if(i!=s)return false;const n=e instanceof RegExp,o=t instanceof RegExp;if(n&&o)return e.toString()==t.toString();if(n!=o)return false;const a=Object.keys(e);for(r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return false;for(r=0;r<a.length;r++)if(!E(t[a[r]],e[a[r]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}class _{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 F.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?F.RIGHT:F.LEFT}}function I(t,e){return new I.InputMask(t,e)}function V(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return I.MaskedRegExp;if(C(t))return I.MaskedPattern;if(t===Date)return I.MaskedDate;if(t===Number)return I.MaskedNumber;if(Array.isArray(t)||t===Array)return I.MaskedDynamic;if(I.Masked&&t.prototype instanceof I.Masked)return t;if(I.Masked&&t instanceof I.Masked)return t.constructor;if(t instanceof Function)return I.MaskedFunction;console.warn("Mask not found for mask",t);return I.Masked}function S(t){if(!t)throw new Error("Options in not defined");if(I.Masked){if(t.prototype instanceof I.Masked)return{mask:t};const{mask:e=undefined,...i}=t instanceof I.Masked?{mask:t}:A(t)&&t.mask instanceof I.Masked?t:{};if(e){const t=e.mask;return{...y(e,((t,e)=>!e.startsWith("_"))),mask:e.constructor,_mask:t,...i}}}if(!A(t))return{mask:t};return{...t}}function M(t){if(I.Masked&&t instanceof I.Masked)return t;const e=S(t);const i=V(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}I.createMask=M;class L{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,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch{}}get isActive(){return false}}I.MaskElement=L;const z=90;const T=89;class R extends L{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,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=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===z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===T&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_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={}}}I.HTMLMaskElement=R;class O extends R{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,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}}I.HTMLMaskElement=R;class P extends R{get _unsafeSelectionStart(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i<s){return i}return s}get _unsafeSelectionEnd(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i>s){return i}return s}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;const i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);const s=this.rootElement;const r=s.getSelection&&s.getSelection();if(r){r.removeAllRanges();r.addRange(i)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}I.HTMLContenteditableMaskElement=P;class N{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>N.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}}N.MAX_LENGTH=100;class j{constructor(t,e){this.el=t instanceof L?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new P(t):new O(t);this.masked=M(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new N;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 e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof I.Masked)&&this.masked.constructor===V(t)){this.masked.updateOptions({mask:t});return}const e=t instanceof I.Masked?t:M({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e}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,e){const i=this._listeners[t];if(!i)return;i.forEach((t=>t(e)))}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 e=this.masked.unmaskedValue;const i=this.masked.value;const s=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==s;this._unmaskedValue=e;this._value=i;this._rawInputValue=s;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:e,...i}=t;const s=!this.maskEquals(e);const r=this.masked.optionsIsChanged(i);if(s)this.mask=e;if(r)this.masked.updateOptions(i);if(s||r)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,F.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this}off(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}const i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const e=new _({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const i=this.masked.rawInputValue;const s=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;const r=i===this.masked.rawInputValue?e.removeDirection:F.NONE;let n=this.masked.nearestInputPos(e.startChangePos+s,r);if(r!==F.NONE)n=this.masked.nearestInputPos(n,F.NONE);this.updateControl(n);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}}I.InputMask=j;class H{static normalize(t){return Array.isArray(t)?t:[t,new H]}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}}I.ChangeDetails=H;class Z{constructor(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}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 e=this.value[0];this.value=this.value.slice(1);return e}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class q{constructor(t){this._value="";this._update({...q.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,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");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,e){return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new Z(this.extractInput(t,e),t)}appendTail(t){if(C(t))t=new Z(String(t));return t.appendTo(this)}_appendCharRaw(t,e){if(!t)return new H;this._value+=t;return new H({inserted:t,rawInserted:t})}_appendChar(t,e,i){if(e===void 0){e={}}const s=this.state;let r;[t,r]=this.doPrepareChar(t,e);if(t){r=r.aggregate(this._appendCharRaw(t,e));if(!r.rawInserted&&this.autofix==="pad"){const i=this.state;this.state=s;let n=this.pad(e);const o=this._appendCharRaw(t,e);n=n.aggregate(o);if(o.rawInserted||n.equals(r)){r=n}else{this.state=i}}}if(r.inserted){let t;let n=this.doValidate(e)!==false;if(n&&i!=null){const e=this.state;if(this.overwrite===true){t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.unshift(this.displayValue.length-r.tailShift)}}let s=this.appendTail(i);n=s.rawInserted.length===i.toString().length;if(!(n&&s.inserted)&&this.overwrite==="shift"){this.state=e;t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.shift()}s=this.appendTail(i);n=s.rawInserted.length===i.toString().length}if(n&&s.inserted)this.state=e}if(!n){r=new H;this.state=s;if(i&&t)i.state=t}}return r}_appendPlaceholder(){return new H}_appendEager(){return new H}append(t,e,i){if(!C(t))throw new Error("value should be string");const s=C(i)?new Z(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,e);for(let i=0;i<t.length;++i){const n=this._appendChar(t[i],e,s);if(!n.rawInserted&&!this.doSkipInvalid(t[i],e,s))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){r.aggregate(this._appendEager())}if(s!=null){r.tailShift+=this.appendTail(s).tailShift}return r}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new H}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const e=this.rawInputValue;const i=this.value;const s=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.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 e=this.state;const i=t(this);this.state=e;delete this._isolated;return i}doSkipInvalid(t,e,i){return Boolean(this.skipInvalid)}doPrepare(t,e){if(e===void 0){e={}}return H.normalize(this.prepare?this.prepare(t,this,e):t)}doPrepareChar(t,e){if(e===void 0){e={}}return H.normalize(this.prepareChar?this.prepareChar(t,this,e):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,e,i,s,r){if(i===void 0){i=""}if(s===void 0){s=F.NONE}if(r===void 0){r={input:true}}const n=t+e;const o=this.extractTail(n);const a=this.eager===true||this.eager==="remove";let u;if(a){s=D(s);u=this.extractInput(0,n,{raw:true})}let h=t;const l=new H;if(s!==F.NONE){h=this.nearestInputPos(t,e>1&&t!==0&&!a?F.NONE:s);l.tailShift=h-t}l.aggregate(this.remove(h));if(a&&s!==F.NONE&&u===this.rawInputValue){if(s===F.FORCE_LEFT){let t;while(u===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new H({tailShift:-1})).aggregate(this.remove(t-1))}}else if(s===F.FORCE_RIGHT){o.unshift()}}return l.aggregate(this.append(i,r,o))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!E(this,t)}typedValueEquals(t){const e=this.typedValue;return t===e||q.EMPTY_VALUES.includes(t)&&q.EMPTY_VALUES.includes(e)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new H}}q.DEFAULTS={skipInvalid:true};q.EMPTY_VALUES=[undefined,null,""];I.Masked=q;class W{constructor(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=C(t)?new Z(String(t)):t;const e=this.chunks[this.chunks.length-1];const i=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof Z){if(i){e.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof W){if(t.stop==null){let e;while(t.chunks.length&&t.chunks[0].stop==null){e=t.chunks.shift();e.from+=t.from;this.extend(e)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof I.MaskedPattern)){const e=new Z(this.toString());return e.appendTo(t)}const e=new H;for(let i=0;i<this.chunks.length;++i){const s=this.chunks[i];const r=t._mapPosToBlock(t.displayValue.length);const n=s.stop;let o;if(n!=null&&(!r||r.index<=n)){if(s instanceof W||t._stops.indexOf(n)>=0){e.aggregate(t._appendPlaceholder(n))}o=s instanceof W&&t._blocks[n]}if(o){const i=o.appendTail(s);e.aggregate(i);const r=s.toString().slice(i.rawInserted.length);if(r)e.aggregate(t.append(r,{tail:true}))}else{e.aggregate(t.append(s.toString(),{tail:true}))}}return e}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:e,...i}=t;Object.assign(this,i);this.chunks=e.map((t=>{const e="chunks"in t?new W:new Z;e.state=t;return e}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const e=t!=null?t-this.from:t;let i=0;while(i<this.chunks.length){const t=this.chunks[i];const s=t.unshift(e);if(t.toString()){if(!s)break;++i}else{this.chunks.splice(i,1)}if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const e=this.chunks[t];const i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""}}class U{constructor(t,e){this.masked=t;this._log=[];const{offset:i,index:s}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=i;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=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;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,F.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,F.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,F.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.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,F.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,F.NONE);return true}))}}class Y{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,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new H}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return i;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return s}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,e){if(e===void 0){e={}}if(this.isFilled)return new H;const i=this.eager===true||this.eager==="append";const s=this.char===t;const r=s&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;const n=new H({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(e.raw||e.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new H;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new Z("")}appendTail(t){if(C(t))t=new Z(String(t));return t.appendTo(this)}append(t,e,i){const s=this._appendChar(t[0],e);if(i!=null){s.tailShift+=this.appendTail(i).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 K{constructor(t){const{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o,...a}=t;this.masked=M(a);Object.assign(this,{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o})}reset(){this.isFilled=false;this.masked.reset()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new H}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,e){if(e===void 0){e={}}if(this.isFilled)return new H;const i=this.masked.state;let s=this.masked._appendChar(t,this.currentMaskFlags(e));if(s.inserted&&this.doValidate(e)===false){s=new H;this.masked.state=i}if(!s.inserted&&!this.isOptional&&!this.lazy&&!e.input){s.inserted=this.placeholderChar}s.skip=!s.inserted&&!this.isOptional;this.isFilled=Boolean(s.inserted);return s}append(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new H;this.isFilled=true;return new H({inserted:this.placeholderChar})}_appendEager(){return new H}extractTail(t,e){return this.masked.extractTail(t,e)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this.value.length;const r=Math.min(Math.max(t,i),s);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?r:i;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?r:s;case F.NONE:default:return r}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).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 e;return{...t,_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new H}}K.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 G extends q{updateOptions(t){super.updateOptions(t)}_update(t){const e=t.mask;if(e)t.validate=t=>t.search(e)>=0;super._update(t)}}I.MaskedRegExp=G;class $ extends q{constructor(t){super({...$.DEFAULTS,...t,definitions:Object.assign({},K.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 e=this.mask;if(!e||!t)return;let i=false;let s=false;for(let r=0;r<e.length;++r){if(this.blocks){const t=e.slice(r);const i=Object.keys(this.blocks).filter((e=>t.indexOf(e)===0));i.sort(((t,e)=>e.length-t.length));const s=i[0];if(s){const{expose:t,repeat:e,...i}=S(this.blocks[s]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...i,repeat:e,parent:this};const o=e!=null?new I.RepeatBlock(n):M(n);if(o){this._blocks.push(o);if(t)this.exposeBlock=o;if(!this._maskedBlocks[s])this._maskedBlocks[s]=[];this._maskedBlocks[s].push(this._blocks.length-1)}r+=s.length-1;continue}}let n=e[r];let o=n in t;if(n===$.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){i=!i;continue}if(n==="["||n==="]"){s=!s;continue}if(n===$.ESCAPE_CHAR){++r;n=e[r];if(!n)break;o=false}const a=o?new K({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...S(t[n]),parent:this}):new Y({char:n,eager:this.eager,isUnmasking:i});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:e,...i}=t;this._blocks.forEach(((t,i)=>t.state=e[i]));super.state=i}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,e)=>t+=e.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(e);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,e)=>t+=e.value),"")}set value(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(e);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(e);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,e)=>t+=e.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const e=new H;let i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(let t=i;t<this._blocks.length;++t){const i=this._blocks[t]._appendEager();if(!i.inserted)break;e.aggregate(i)}return e}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._mapPosToBlock(this.displayValue.length);const s=new H;if(!i)return s;for(let n=i.index,o;o=this._blocks[n];++n){var r;const i=o._appendChar(t,{...e,_beforeTailState:(r=e._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});s.aggregate(i);if(i.consumed)break}return s}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=new W;if(t===e)return i;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{const n=t.extractTail(s,r);n.stop=this._findStopBefore(e);n.from=this._blockStartPos(e);if(n instanceof W)n.blockIndex=e;i.extend(n)}));return i}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";let s="";this._forEachBlocksInRange(t,e,((t,e,r,n)=>{s+=t.extractInput(r,n,i)}));return s}_findStopBefore(t){let e;for(let i=0;i<this._stops.length;++i){const s=this._stops[i];if(s<=t)e=s;else break}return e}_appendPlaceholder(t){const e=new H;if(this.lazy&&t==null)return e;const i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;const s=i.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(s,r).forEach((i=>{if(!i.lazy||t!=null){var s;e.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}));return e}_mapPosToBlock(t){let e="";for(let i=0;i<this._blocks.length;++i){const s=this._blocks[i];const r=e.length;e+=s.displayValue;if(t<=e.length){return{index:i,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,e)=>t+=e.displayValue.length),0)}_forEachBlocksInRange(t,e,i){if(e===void 0){e=this.displayValue.length}const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(e);const r=t&&s.index===t.index;const n=s.offset;const o=t&&r?t.offset:this._blocks[s.index].displayValue.length;i(this._blocks[s.index],s.index,n,o);if(t&&!r){for(let e=s.index+1;e<t.index;++e){i(this._blocks[e],e,0,this._blocks[e].displayValue.length)}i(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i.aggregate(t.remove(s,r))}));return i}nearestInputPos(t,e){if(e===void 0){e=F.NONE}if(!this._blocks.length)return 0;const i=new U(this,t);if(e===F.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===F.LEFT||e===F.FORCE_LEFT){if(e===F.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===F.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===F.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===F.RIGHT||e===F.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===F.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,F.LEFT)}return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}let i=0;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i+=t.totalInputPositions(s,r)}));return i}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const e=this._maskedBlocks[t];if(!e)return[];return e.map((t=>this._blocks[t]))}pad(t){const e=new H;this._forEachBlocksInRange(0,this.displayValue.length,(i=>e.aggregate(i.pad(t))));return e}}$.DEFAULTS={...q.DEFAULTS,lazy:true,placeholderChar:"_"};$.STOP_CHAR="`";$.ESCAPE_CHAR="\\";$.InputDefinition=K;$.FixedDefinition=Y;I.MaskedPattern=$;class X extends ${get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:e=this.to||0,from:i=this.from||0,maxLength:s=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=e;this.from=i;this.maxLength=Math.max(String(e).length,s);this.autofix=r;const o=String(this.from).padStart(this.maxLength,"0");const a=String(this.to).padStart(this.maxLength,"0");let u=0;while(u<a.length&&a[u]===o[u])++u;n.mask=a.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let e="";let i="";const[,s,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){e="0".repeat(s.length)+r;i="9".repeat(s.length)+r}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]}doPrepareChar(t,e){if(e===void 0){e={}}let i;[t,i]=super.doPrepareChar(t.replace(/\D/g,""),e);if(!t)i.skip=!this.isComplete;return[t,i]}_appendCharRaw(t,e){if(e===void 0){e={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,e);const i=String(this.from).padStart(this.maxLength,"0");const s=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(i[this.value.length],e);if(Number(r)>this.to){if(!e.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(i[this.value.length],e).aggregate(this._appendCharRaw(t,e))}return super._appendCharRaw(s[this.value.length],e)}return super._appendCharRaw(t,e)}doValidate(t){const e=this.value;const i=e.search(/[^0]/);if(i===-1&&e.length<=this._matchFrom)return true;const[s,r]=this.boundaries(e);return this.from<=Number(r)&&Number(s)<=this.to&&super.doValidate(t)}pad(t){const e=new H;if(this.value.length===this.maxLength)return e;const i=this.value;const s=this.maxLength-this.value.length;if(s){this.reset();for(let i=0;i<s;++i){e.aggregate(super._appendCharRaw("0",t))}i.split("").forEach((t=>this._appendCharRaw(t)))}return e}}I.MaskedRange=X;const J="d{.}`m{.}`Y";class Q extends ${static extractPatternOptions(t){const{mask:e,pattern:i,...s}=t;return{...s,mask:C(e)?e:i}}constructor(t){super(Q.extractPatternOptions({...Q.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:e,pattern:i,blocks:s,...r}={...Q.DEFAULTS,...t};const n=Object.assign({},Q.GET_DEFAULT_BLOCKS());if(t.min)n.Y.from=t.min.getFullYear();if(t.max)n.Y.to=t.max.getFullYear();if(t.min&&t.max&&n.Y.from===n.Y.to){n.m.from=t.min.getMonth()+1;n.m.to=t.max.getMonth()+1;if(n.m.from===n.m.to){n.d.from=t.min.getDate();n.d.to=t.max.getDate()}}Object.assign(n,this.blocks,s);super._update({...r,mask:C(e)?e:i,blocks:n})}doValidate(t){const e=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=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(Q.extractPatternOptions(t))}}Q.GET_DEFAULT_BLOCKS=()=>({d:{mask:X,from:1,to:31,maxLength:2},m:{mask:X,from:1,to:12,maxLength:2},Y:{mask:X,from:1900,to:9999}});Q.DEFAULTS={...$.DEFAULTS,mask:Date,pattern:J,format:(t,e)=>{if(!t)return"";const i=String(t.getDate()).padStart(2,"0");const s=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[i,s,r].join(".")},parse:(t,e)=>{const[i,s,r]=t.split(".").map(Number);return new Date(r,s-1,i)}};I.MaskedDate=Q;class tt extends q{constructor(t){super({...tt.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:e,...i}=S(t);const s=M({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});if(e)this.exposeMask=s;return s})):[]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i}_applyDispatch(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}const s=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;const r=this.rawInputValue;const n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:r;const o=r.slice(n.length);const a=this.currentMask;const u=new H;const h=a==null?void 0:a.state;this.currentMask=this.doDispatch(t,{...e},i);if(this.currentMask){if(this.currentMask!==a){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});u.tailShift=this.currentMask.value.length-s.length}if(o){u.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(h){this.currentMask.state=h}}return u}_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 e=new H;if(t)e.aggregate(this._applyDispatch("",{},t));return e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,i;return{...t,_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState}}doDispatch(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepare(t,e);if(this.currentMask){let t;[i,t]=super.doPrepare(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,s]}doPrepareChar(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepareChar(t,e);if(this.currentMask){let t;[i,t]=super.doPrepareChar(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,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 e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e}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,e){const i=new H;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i}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:e,currentMaskRef:i,currentMask:s,...r}=t;if(e)this.compiledMasks.forEach(((t,i)=>t.state=e[i]));if(i!=null){this.currentMask=i;this.currentMask.state=s}super.state=r}extractInput(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""}extractTail(t,e){return this.currentMask?this.currentMask.extractTail(t,e):super.extractTail(t,e)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,e){return this.currentMask?this.currentMask.nearestInputPos(t,e):super.nearestInputPos(t,e)}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(((e,i)=>{if(!t[i])return;const{mask:s,...r}=t[i];return E(e,r)&&e.maskEquals(s)})):super.maskEquals(t)}typedValueEquals(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))}}tt.DEFAULTS={...q.DEFAULTS,dispatch:(t,e,i,s)=>{if(!e.compiledMasks.length)return;const r=e.rawInputValue;const n=e.compiledMasks.map(((n,o)=>{const a=e.currentMask===n;const u=a?n.displayValue.length:n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!a){n.remove(u)}n.append(t,e.currentMaskFlags(i));n.appendTail(s);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(u,n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT)))}}));n.sort(((t,e)=>e.weight-t.weight||e.totalInputPositions-t.totalInputPositions));return e.compiledMasks[n[0].index]}};I.MaskedDynamic=tt;class et extends ${constructor(t){super({...et.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:e,...i}=t;if(e){const t=e.map((t=>t.length));const s=Math.min(...t);const r=Math.max(...t)-s;i.mask="*".repeat(s);if(r)i.mask+="["+"*".repeat(r)+"]";this.enum=e}super._update(i)}_appendCharRaw(t,e){if(e===void 0){e={}}const i=Math.min(this.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);const s=this.enum.filter((e=>this.matchValue(e,this.unmaskedValue+t,i)));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,((t,i)=>{const r=s[0][i];if(i>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,e)}))}const t=super._appendCharRaw(s[0][this.value.length],e);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((e=>t.aggregate(super._appendCharRaw(e))))}return t}return new H({skip:!this.isComplete})}extractTail(t,e){if(t===void 0){t=0}return new Z("",t)}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(t===e)return new H;const i=Math.min(super.nearestInputPos(0,F.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(i,s),i)));if(t.length>1)break}const r=super.remove(s,e);r.tailShift+=s-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}et.DEFAULTS={...$.DEFAULTS,matchValue:(t,e,i)=>t.indexOf(e,i)===i};I.MaskedEnum=et;class it extends q{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}I.MaskedFunction=it;var st;class rt extends q{constructor(t){super({...rt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const e="\\d*";const i=(this.scale?"("+B(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(B).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(B(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)}doPrepareChar(t,e){if(e===void 0){e={}}const[i,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),e);if(t&&!i)s.skip=true;if(i&&!this.allowPositive&&!this.value&&i!=="-")s.aggregate(this._appendChar("-"));return[i,s]}_separatorsCount(t,e){if(e===void 0){e=false}let i=0;for(let s=0;s<t;++s){if(this._value.indexOf(this.thousandsSeparator,s)===s){++i;if(e)t+=this.thousandsSeparator.length}}return i}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);return this._removeThousandsSeparators(super.extractInput(t,e,i))}_appendCharRaw(t,e){if(e===void 0){e={}}const i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let o=!isNaN(n);let a=false;if(o){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(rt.UNMASKED_RADIX,this.radix);a||(a=r===this._value&&!e.tail)}else{o=false}}o&&(o=Boolean(this._value.match(this._numberRegExp)))}let u;if(!o){this._value=r;u=new H}else{u=new H({inserted:this._value.slice(r.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);const h=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(h);u.tailShift+=(l-s)*this.thousandsSeparator.length;return u}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1;const i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1}_adjustRangeWithSeparators(t,e){const i=this._findSeparatorAround(t);if(i>=0)t=i;const s=this._findSeparatorAround(e);if(s>=0)e=s+this.thousandsSeparator.length;return[t,e]}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);const i=this.value.slice(0,t);const s=this.value.slice(e);const r=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));const n=this._separatorsCountFromSlice(i);return new H({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:{const i=this._findSeparatorAround(t-1);if(i>=0){const s=i+this.thousandsSeparator.length;if(t<s||this.value.length<=s||e===F.FORCE_LEFT){return i}}break}case F.RIGHT:case F.FORCE_RIGHT:{const e=this._findSeparatorAround(t);if(e>=0){return e+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let e=t;if(this.min!=null)e=Math.max(e,this.min);if(this.max!=null)e=Math.min(e,this.max);if(e!==t)this.unmaskedValue=this.format(e,this);let i=this.value;if(this.normalizeZeros)i=this._normalizeZeros(i);if(this.padFractionalZeros&&this.scale>0)i=this._padFractionalZeros(i);this._value=i}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,((t,e,i,s)=>e+s));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)}doSkipInvalid(t,e,i){if(e===void 0){e={}}const s=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===rt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,i)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rt.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(rt.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)||rt.EMPTY_VALUES.includes(t)&&rt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}st=rt;rt.UNMASKED_RADIX=".";rt.EMPTY_VALUES=[...q.EMPTY_VALUES,0];rt.DEFAULTS={...q.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[st.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})};I.MaskedNumber=rt;const nt={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function ot(t,e,i){if(e===void 0){e=nt.MASKED}if(i===void 0){i=nt.MASKED}const s=M(t);return t=>s.runIsolated((s=>{s[e]=t;return s[i]}))}function at(t,e,i,s){return ot(e,i,s)(t)}I.PIPE_TYPE=nt;I.createPipe=ot;I.pipe=at;class ut extends ${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 e,i,s;const{repeat:r,...n}=S(t);this._blockOpts=Object.assign({},this._blockOpts,n);const o=M(this._blockOpts);this.repeat=(e=(i=r!=null?r:o.repeat)!=null?i:this.repeat)!=null?e:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=new H;for(let a=(s=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?s:Math.max(this._blocks.length-1,0),u,h;u=(n=this._blocks[a])!=null?n:h=!h&&this._allocateBlock(a);++a){var s,r,n,o;const l=u._appendChar(t,{...e,_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]});if(l.skip&&h){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(l);if(l.consumed)break}return i}_trimEmptyTail(t,e){var i,s;if(t===void 0){t=0}const r=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);let n;if(e!=null)n=(s=this._mapPosToBlock(e))==null?void 0:s.index;if(n==null)n=this._blocks.length-1;let o=0;for(let t=n;r<=t;--t,++o){if(this._blocks[t].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}}reset(){super.reset();this._trimEmptyTail()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._trimEmptyTail(t,e);return i}totalInputPositions(t,e){if(t===void 0){t=0}if(e==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,e)}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}}I.RepeatBlock=ut;try{globalThis.IMask=I}catch{}const ht='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{margin-top:4px;-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';const lt={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 dt=Object.entries(lt).map((([t,e])=>({value:t,label:e})));const ct=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const ft=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.pinEntered=e(this,"pinEntered");this.next=e(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){I(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var e=t.getDate();var i=t.getMonth()+1;var s=t.getFullYear();if(e<10)e="0"+e;if(i<10)i="0"+i;return[i,e,s].join("/")},parse:function(t){var e=t.split("/");return new Date(e[2],e[0]-1,e[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,e,n,o,a,u,h,l,d,c,f,p,b,g;if(this.mode==="choice"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"choices"},this.choices.map((t=>i("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity"),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-first"},"Your Name:",i("span",{class:"required"},"*")),i("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",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}}),i("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-address"},"Address:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-city"},"City:"),i("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-state"},"State:"),i("verdocs-select-input",{options:dt,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:this.dobContainerId},"Date of Birth:",i("span",{class:"required"},"*")),i("input",{type:"text",value:((l=this.updatedRecipient)===null||l===void 0?void 0:l.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}})),i("div",{class:"field"},i("label",null),i("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),i("span",null,"I agree to provide my personal information in order to validate my identity.")),i("div",{class:"buttons"},i("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!this.agreed||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.first_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.last_name)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.address)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.zip)||!((b=this.updatedRecipient)===null||b===void 0?void 0:b.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)})))))}return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"input"},i("label",{htmlFor:"verdocs-kba-input"},this.label),i("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};ft.style=ht;const pt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-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 bt=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const gt=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.resendTimeout=null;this.endpoint=o;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{a(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();a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response="";p("A new code has been sent.")})).catch((t=>console.log("Error resending code",t)))}handleSubmit(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:this.response}).then((t=>{console.log("Verification completed",t);this.next.emit({response:t});p("Thank you. Your verification was successful.")})).catch((t=>{p("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""}render(){return i(r,{key:"9f1935421bb0ea4b88167cd2a1186ac3b1f47062"},i("div",{key:"ab3e1dc823e8aafcfd1b369f5cdf3268d1fe972f",class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{key:"5981911bb1f78770944c55afdd9253f341f9a048",class:"dialog"},i("div",{key:"b3631db6c8273c22a0b8d036136b5ddedfcc60c8",class:"heading"},"Verification Required"),i("div",{key:"b818168fa6b629f85e0fb394896c116b3ff1a82d",class:"help-box"},i("div",{key:"77afb262ab40c6fa24c7ebd7c97dd03172094c17",class:"help-icon",innerHTML:bt}),i("div",{key:"1c5fa955c64c5e45aafe878bfb09ec0b07f1be5d",class:"help-details"},i("div",{key:"ce49977cf35db59885e693e85df7e16f1f0560a1",class:"help-title"},"Please verify your email address"),i("div",{key:"113e71aa6a19e08679a7c33dbba53d65e24c3558",class:"help-text"},"Check your email for a one-time code, and enter it below."))),i("div",{key:"4400197de7c6557391f6927d8c72eb8a73c644da",class:"input"},i("label",{key:"93b6f99099f1651ca9f36fd1603e8d62ac4c78f2",htmlFor:"verdocs-otp-input"},"Code:"),i("input",{key:"64f6bd57ef1cc3e8e9d1a6f47d0407a06190be00",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})),i("div",{key:"f813d932be01b5329b496642ec832c16f2b0941b",class:"buttons"},i("verdocs-button",{key:"9b43a3511a2a35018a4135c46a966a6226155a3e",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{key:"bf762d2218254fbdbee2ae810cf74a153e2f10a5",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),i("verdocs-button",{key:"2d4d18b76d4979ef6bb720c4f4ab7123a96925fb",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};gt.style=pt;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-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const xt=class{constructor(i){t(this,i);this.sdkError=e(this,"sdkError");this.envelopeUpdated=e(this,"envelopeUpdated");this.another=e(this,"another");this.view=e(this,"view");this.next=e(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,e,i;if(!this.endpoint){this.endpoint=u.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}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 g(s.message,(e=s.response)===null||e===void 0?void 0:e.status,(i=s.response)===null||i===void 0?void 0:i.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const e=document.getElementById("verdocs-view-header");if(t&&e){console.log("[VIEW] Moving header");e.remove();t.append(e)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();v.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){v.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var e,i;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;d(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 e,i,s;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new g(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}));this.showCancelDone=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const e=await l(this.endpoint,this.envelopeId,t.id);window.open(e,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const e=await l(this.endpoint,this.envelopeId,t.id);window.open(e,"_blank")}}break;case"download-all":b(this.endpoint,[this.envelope]).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 i(r,null,i("verdocs-loader",null))}if(this.showLoadError){return i(r,null,i("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 i(r,null,i("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 e=[{id:"print",label:"Print"}];if(c(this.endpoint.profile,this.envelope)){e.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const o=this.envelope.documents.filter((t=>t.type==="attachment")).length;const a=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||a){e.push({label:""});if(n){e.push({id:"download-attachments",label:o>1?"Download Documents":"Download Document"})}if(a){e.push({id:"download-certificate",label:"Download Certificate"})}if(n&&a){e.push({id:"download-all",label:"Download All Files"})}}return i(r,null,i("div",{id:"verdocs-view-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}}),i("div",{style:{marginLeft:"10px"}}),i("verdocs-dropdown",{options:e,onOptionSelected:t=>this.handleOptionSelected(t)}))),i("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 e=f(1,t.pages);return i(s,null,e.map((e=>{var s;const r=((s=t.page_sizes)===null||s===void 0?void 0:s[e])||{width:612,height:792};return i("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:e,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&i("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}get component(){return n(this)}};xt.style=vt;export{m as verdocs_delegate_dialog,w as verdocs_disclosure_dialog,ft as verdocs_kba_dialog,gt as verdocs_otp_dialog,xt as verdocs_view};
|
2
|
+
//# sourceMappingURL=p-5e92e1ed.entry.js.map
|