@verdocs/web-sdk 5.0.75 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Datastore-Dn_pL6x4.js → Datastore-CIzsoGWH.js} +7 -6
- package/dist/cjs/Datastore-CIzsoGWH.js.map +1 -0
- package/dist/cjs/index-Be9PlTB7.js +10 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.cjs.js.map +1 -0
- package/dist/cjs/verdocs-button_3.cjs.entry.js +177 -0
- package/dist/cjs/verdocs-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.cjs.js.map +1 -0
- package/dist/cjs/{verdocs-checkbox_6.cjs.entry.js → verdocs-checkbox_5.cjs.entry.js} +3 -91
- package/dist/{verdocs-web-sdk/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.verdocs-text-input.entry.esm.js.map → cjs/verdocs-checkbox_5.cjs.entry.js.map} +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +7 -3
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link.verdocs-envelope-update-recipient.entry.cjs.js.map +1 -0
- package/dist/cjs/{verdocs-envelope-recipient-link.cjs.entry.js → verdocs-envelope-recipient-link_2.cjs.entry.js} +91 -4
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +51 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-radio-button.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.css +2 -2
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +52 -0
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.css +96 -0
- package/dist/collection/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.js +224 -0
- package/dist/collection/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.css +2 -2
- package/dist/collection/utils/Datastore.js +2 -2
- package/dist/collection/utils/Datastore.js.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-CpHTrnj5.js → p-7gATzICg.js} +4 -4
- package/dist/components/{p-CpHTrnj5.js.map → p-7gATzICg.js.map} +1 -1
- package/dist/components/{p-CWHHlD3o.js → p-B3jMBr0M.js} +9 -5
- package/dist/components/p-B3jMBr0M.js.map +1 -0
- package/dist/components/{p-Cn4wVEX4.js → p-B8nK0hJl.js} +4 -4
- package/dist/components/{p-Cn4wVEX4.js.map → p-B8nK0hJl.js.map} +1 -1
- package/dist/components/{p-DgfjnZPa.js → p-BGMd4wA7.js} +4 -4
- package/dist/components/{p-DgfjnZPa.js.map → p-BGMd4wA7.js.map} +1 -1
- package/dist/components/{p-03kDzdlZ.js → p-BHKb3X7a.js} +3 -3
- package/dist/components/{p-03kDzdlZ.js.map → p-BHKb3X7a.js.map} +1 -1
- package/dist/components/{p-CqQzEyUV.js → p-Bb2F00K4.js} +4 -4
- package/dist/components/{p-CqQzEyUV.js.map → p-Bb2F00K4.js.map} +1 -1
- package/dist/components/{p-z0ZD30Bi.js → p-BwIyL1sF.js} +4 -4
- package/dist/components/{p-z0ZD30Bi.js.map → p-BwIyL1sF.js.map} +1 -1
- package/dist/components/{p-Dw5jTBu3.js → p-C2Fb8G6A.js} +4 -4
- package/dist/components/{p-Dw5jTBu3.js.map → p-C2Fb8G6A.js.map} +1 -1
- package/dist/components/{p-IcjPGPO7.js → p-CPRS8f3I.js} +3 -3
- package/dist/components/{p-IcjPGPO7.js.map → p-CPRS8f3I.js.map} +1 -1
- package/dist/components/{p-CNJfehtH.js → p-Crehnwtj.js} +4 -4
- package/dist/components/{p-CNJfehtH.js.map → p-Crehnwtj.js.map} +1 -1
- package/dist/components/{p-B8HdsDVX.js → p-CunjhIft.js} +3 -3
- package/dist/components/{p-B8HdsDVX.js.map → p-CunjhIft.js.map} +1 -1
- package/dist/components/{p-CDTU_UJD.js → p-D3n1gA61.js} +5 -5
- package/dist/components/p-D3n1gA61.js.map +1 -0
- package/dist/components/{p-iwNYe5a0.js → p-DB-CFkUZ.js} +4 -4
- package/dist/components/{p-iwNYe5a0.js.map → p-DB-CFkUZ.js.map} +1 -1
- package/dist/components/{p-Cue-TDgY.js → p-DDAZR40U.js} +3 -3
- package/dist/components/{p-Cue-TDgY.js.map → p-DDAZR40U.js.map} +1 -1
- package/dist/components/{p-Cfx8TNcj.js → p-DGRiUZlM.js} +15 -15
- package/dist/components/{p-Cfx8TNcj.js.map → p-DGRiUZlM.js.map} +1 -1
- package/dist/components/{p-B6IuryK-.js → p-DQh221R1.js} +4 -4
- package/dist/components/{p-B6IuryK-.js.map → p-DQh221R1.js.map} +1 -1
- package/dist/components/{p-BPEZpcEQ.js → p-D_x2HuZp.js} +4 -4
- package/dist/components/{p-BPEZpcEQ.js.map → p-D_x2HuZp.js.map} +1 -1
- package/dist/components/{p-C_IIZj49.js → p-DmsV595e.js} +8 -7
- package/dist/components/p-DmsV595e.js.map +1 -0
- package/dist/components/p-GUGCYQ6F.js +138 -0
- package/dist/components/p-GUGCYQ6F.js.map +1 -0
- package/dist/components/{p-De7UWCgq.js → p-WhDWrMQm.js} +4 -4
- package/dist/components/{p-De7UWCgq.js.map → p-WhDWrMQm.js.map} +1 -1
- package/dist/components/{p-iOb94GB3.js → p-X6ujIO0j.js} +3 -3
- package/dist/components/{p-iOb94GB3.js.map → p-X6ujIO0j.js.map} +1 -1
- package/dist/components/{p-B6hVXdpp.js → p-XHSVTLB0.js} +4 -4
- package/dist/components/{p-B6hVXdpp.js.map → p-XHSVTLB0.js.map} +1 -1
- package/dist/components/{p-C3_yeGdH.js → p-dIi8HYZ5.js} +3 -3
- package/dist/components/{p-C3_yeGdH.js.map → p-dIi8HYZ5.js.map} +1 -1
- package/dist/components/{p-eiHT7SZQ.js → p-kaKbklxN.js} +15 -15
- package/dist/components/{p-eiHT7SZQ.js.map → p-kaKbklxN.js.map} +1 -1
- package/dist/components/{p-BqWxusTA.js → p-ke4RFlpQ.js} +14 -14
- package/dist/components/{p-BqWxusTA.js.map → p-ke4RFlpQ.js.map} +1 -1
- package/dist/components/verdocs-build.js +22 -22
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +65 -8
- package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
- package/dist/components/verdocs-envelope-update-recipient.d.ts +11 -0
- package/dist/components/verdocs-envelope-update-recipient.js +9 -0
- package/dist/components/verdocs-envelope-update-recipient.js.map +1 -0
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +2 -2
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-radio-button.js +1 -1
- package/dist/components/verdocs-radio-button.js.map +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +2 -2
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-build-tabs.js +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +21 -0
- package/dist/esm/{Datastore-C_IIZj49.js → Datastore-DmsV595e.js} +8 -7
- package/dist/esm/Datastore-DmsV595e.js.map +1 -0
- package/dist/esm/index-CF7i8guW.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -0
- package/dist/esm/verdocs-button_3.entry.js +173 -0
- package/dist/esm/verdocs-button_3.entry.js.map +1 -0
- package/dist/esm/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -0
- package/dist/esm/{verdocs-checkbox_6.entry.js → verdocs-checkbox_5.entry.js} +4 -91
- package/dist/esm/verdocs-checkbox_5.entry.js.map +1 -0
- package/dist/esm/verdocs-contact-picker.entry.js +7 -3
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-envelope-recipient-link.verdocs-envelope-update-recipient.entry.js.map +1 -0
- package/dist/esm/{verdocs-envelope-recipient-link.entry.js → verdocs-envelope-recipient-link_2.entry.js} +91 -5
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +52 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +2 -2
- package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog_3.entry.js +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Datastore-DmsV595e.js +2 -0
- package/dist/esm-es5/Datastore-DmsV595e.js.map +1 -0
- package/dist/esm-es5/index-CF7i8guW.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-button_3.entry.js +2 -0
- package/dist/esm-es5/verdocs-button_3.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +2 -0
- package/dist/esm-es5/verdocs-checkbox_5.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link.verdocs-envelope-update-recipient.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +2 -0
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +2 -2
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +3 -1
- package/dist/types/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.d.ts +50 -0
- package/dist/types/components.d.ts +77 -0
- package/dist/types/utils/Datastore.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-a2ba1316.system.entry.js → p-0134d663.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-0134d663.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-5d4a9e54.entry.js → p-1b6bdebc.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-1c66bd2c.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-1c66bd2c.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-3aabadbe.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-0bb8015d.entry.js.map → p-3aabadbe.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-c8369ea0.entry.js → p-45f59906.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-48299322.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-48299322.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-4b2b090e.entry.js → p-49522ebb.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-49522ebb.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-50c4a3da.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-50c4a3da.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-1d0463ad.system.entry.js → p-65a5d2d4.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-69c97fa9.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-69c97fa9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-759b5749.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-759b5749.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-894e2058.entry.js → p-76215a73.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-caf258c9.entry.js → p-791184e5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-832e4346.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-832e4346.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-821becae.system.entry.js → p-8c98a765.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BH-YVoIR.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BXdHDPn2.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BsWaGIkx.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-C2JOLTNG.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CWs7NRzr.system.js.map → p-CC3tLap5.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DZurf5no.system.js.map → p-CYHTkSId.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CmnBGerV.system.js +2 -0
- package/dist/verdocs-web-sdk/p-CmnBGerV.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-Cz3XayQm.system.js.map → p-CzcrfRov.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-DAWcoDTu.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DRzyvgiA.system.js.map → p-DM4F2Fmu.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BZkYMpVF.system.js.map → p-DOuKoKCI.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DKkhksIM.system.js.map → p-DR2NwM3E.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-DmsV595e.js +2 -0
- package/dist/verdocs-web-sdk/p-DmsV595e.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-EQbSTcUE.system.js.map → p-Dvfh_VsU.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-DyIimYwQ.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DjtXr8Iv.system.js.map → p-QrafNGv0.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-e5f90a18.system.entry.js → p-a224a4cc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6d8c780d.system.entry.js → p-a37e8f84.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d16c03d8.system.entry.js → p-ac05c34d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ac60c75d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ac60c75d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-524c1693.system.entry.js → p-bec52dd1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-c16b24c0.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c16b24c0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-bb96a9af.entry.js → p-d8b36d95.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5355587b.entry.js → p-e15b7c92.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a231248c.system.entry.js → p-e63c903a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e8713631.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-e8713631.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-3b68bc50.entry.js → p-f28a1014.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-f28a1014.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-bde78dab.system.entry.js → p-f4a3d054.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-f4a3d054.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-1653b309.system.entry.js → p-f666346f.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-65f4a435.entry.js → p-fb00149a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-fih-g25U.system.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-recipient-link.verdocs-envelope-update-recipient.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-radio-button.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/Datastore-Dn_pL6x4.js.map +0 -1
- package/dist/cjs/verdocs-button.verdocs-help-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/verdocs-button_2.cjs.entry.js +0 -89
- package/dist/cjs/verdocs-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.verdocs-text-input.entry.cjs.js.map +0 -1
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js.map +0 -1
- package/dist/cjs/verdocs-envelope-recipient-link.cjs.entry.js.map +0 -1
- package/dist/cjs/verdocs-envelope-recipient-link.entry.cjs.js.map +0 -1
- package/dist/components/p-CDTU_UJD.js.map +0 -1
- package/dist/components/p-CWHHlD3o.js.map +0 -1
- package/dist/components/p-C_IIZj49.js.map +0 -1
- package/dist/esm/Datastore-C_IIZj49.js.map +0 -1
- package/dist/esm/verdocs-button.verdocs-help-icon.entry.js.map +0 -1
- package/dist/esm/verdocs-button_2.entry.js +0 -86
- package/dist/esm/verdocs-button_2.entry.js.map +0 -1
- package/dist/esm/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.verdocs-text-input.entry.js.map +0 -1
- package/dist/esm/verdocs-checkbox_6.entry.js.map +0 -1
- package/dist/esm/verdocs-envelope-recipient-link.entry.js.map +0 -1
- package/dist/esm-es5/Datastore-C_IIZj49.js +0 -2
- package/dist/esm-es5/Datastore-C_IIZj49.js.map +0 -1
- package/dist/esm-es5/verdocs-button.verdocs-help-icon.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +0 -2
- package/dist/esm-es5/verdocs-button_2.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.verdocs-text-input.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js +0 -2
- package/dist/esm-es5/verdocs-checkbox_6.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link.entry.js +0 -2
- package/dist/esm-es5/verdocs-envelope-recipient-link.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-03c76a24.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-03c76a24.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0bb8015d.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-13c9ac73.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-13c9ac73.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-255c74a9.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-255c74a9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-2a183b90.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-2a183b90.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3b68bc50.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3fc4da27.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3fc4da27.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4b2b090e.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5018b5b8.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-5018b5b8.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-8c9f35ab.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-8c9f35ab.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-Bh0IfLXk.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BhRjT9GK.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-C4Tt0CYc.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CMiFaQiI.system.js +0 -2
- package/dist/verdocs-web-sdk/p-CMiFaQiI.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-C_IIZj49.js +0 -2
- package/dist/verdocs-web-sdk/p-C_IIZj49.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DG0Ibgqe.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-Dgk4ByEW.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-UTpMOeny.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a2ba1316.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-aaf3cb2c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-aaf3cb2c.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-bde78dab.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d0bc16f9.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d0bc16f9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-eb539d8f.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-eb539d8f.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-x6a7ykMn.system.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-button.verdocs-help-icon.entry.esm.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-recipient-link.entry.esm.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-5d4a9e54.entry.js.map → p-1b6bdebc.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c8369ea0.entry.js.map → p-45f59906.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1d0463ad.system.entry.js.map → p-65a5d2d4.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-894e2058.entry.js.map → p-76215a73.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-caf258c9.entry.js.map → p-791184e5.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-821becae.system.entry.js.map → p-8c98a765.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e5f90a18.system.entry.js.map → p-a224a4cc.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6d8c780d.system.entry.js.map → p-a37e8f84.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d16c03d8.system.entry.js.map → p-ac05c34d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-524c1693.system.entry.js.map → p-bec52dd1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-bb96a9af.entry.js.map → p-d8b36d95.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-5355587b.entry.js.map → p-e15b7c92.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a231248c.system.entry.js.map → p-e63c903a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1653b309.system.entry.js.map → p-f666346f.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-65f4a435.entry.js.map → p-fb00149a.entry.js.map} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsEnvelopeRecipientLinkCss","VerdocsEnvelopeRecipientLink","exports","class_1","hostRef","this","envelopeListenerId","endpoint","VerdocsEndpoint","getDefault","envelopeId","roleName","gettingLink","link","loading","envelope","recipient","prototype","componentWillLoad","loadSession","console","log","concat","session","listenToEnvelope","e","_a","sdkError","emit","SDKError","message","_b","response","status","_c","data","disconnectedCallback","unlistenToEnvelope","Store","subscribe","getEnvelope","_this","recipients","find","r","role_name","getLink","store","delListener","handleDone","preventDefault","next","copyLink","navigator","clipboard","writeText","then","VerdocsToast","style","duration","catch","warn","getInPersonLink","envelope_id","render","h","Host","fullName","formatFullName","class","email","phone","size","variant","label","disabled","onClick","verdocsEnvelopeUpdateRecipientCss","VerdocsEnvelopeUpdateRecipient","class_2","originalRecipient","updatedRecipient","__assign","handleSave","action","handleCancel","value","first_name","placeholder","onInput","target","last_name","type","id","name","autocomplete"],"sources":["src/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.scss?tag=verdocs-envelope-recipient-link","src/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.tsx","src/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.scss?tag=verdocs-envelope-update-recipient","src/components/envelopes/verdocs-envelope-update-recipient/verdocs-envelope-update-recipient.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-envelope-recipient-link {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 100000;\n position: fixed;\n align-items: center;\n justify-content: center;\n font-family: $primary-font;\n background-color: #0000007f;\n\n .summary-content {\n width: 600px;\n display: flex;\n max-width: 90%;\n font-size: 18px;\n flex: 0 0 600px;\n border-radius: 6px;\n background: #ffffff;\n flex-direction: column;\n padding: 30px 20px 20px;\n\n .summary-title {\n font-size: 20px;\n font-weight: 700;\n margin: 0 0 10px 0;\n color: $verdocs-dark-blue;\n }\n }\n\n .summary-recipient {\n display: flex;\n color: $verdocs-grey-1;\n margin: 8px 0 24px 0;\n flex-direction: column;\n\n .role-name {\n flex: 1;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n margin: 0 0 8px 0;\n color: $verdocs-grey-0;\n }\n\n .role-details {\n }\n\n .role-info {\n gap: 5px;\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n }\n\n .role-full-name {\n flex: 1;\n height: 34px;\n display: flex;\n font-size: 16px;\n padding: 0 12px;\n border-radius: 4px;\n align-items: center;\n border: 1px solid #cccccc;\n background: rgb(249, 250, 251);\n }\n\n .recipient-link {\n width: 120px;\n padding: 0 16px;\n font-weight: 500;\n margin: 0 0 0 8px;\n text-align: center;\n font-size: 0.875rem;\n border-radius: 100%;\n color: rgb(55, 65, 81);\n line-height: 1.25rem;\n background-color: #d8d8d8;\n border: 2px solid rgb(156, 163, 175);\n }\n\n .link-wrapper {\n gap: 5px;\n display: flex;\n margin: 4px 0 0 0;\n flex-direction: row;\n\n .link {\n flex: 1;\n height: 34px;\n display: flex;\n font-size: 16px;\n padding: 0 12px;\n overflow: hidden;\n margin: 0 6px 0 0;\n border-radius: 4px;\n white-space: nowrap;\n align-items: center;\n text-overflow: ellipsis;\n border: 1px solid #cccccc;\n background: rgb(249, 250, 251);\n }\n }\n }\n\n .buttons {\n display: flex;\n column-gap: 15px;\n margin: 10px 0 0 0;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n verdocs-button {\n flex: 0 0 120px;\n margin-left: 10px;\n white-space: nowrap;\n\n button {\n width: 100%;\n }\n }\n }\n}\n","import {Component, Prop, Host, h, State, Event, EventEmitter} from '@stencil/core';\nimport {formatFullName, getEnvelope, getInPersonLink, IEnvelope, IRecipient, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Displays a single recipient from an envelope, with the opportunity to copy an in-person\n * signing link for that recipient to use.\n */\n@Component({\n tag: 'verdocs-envelope-recipient-link',\n styleUrl: 'verdocs-envelope-recipient-link.scss',\n})\nexport class VerdocsEnvelopeRecipientLink {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to edit.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * The role to load.\n */\n @Prop() roleName: string = '';\n\n /**\n * Event fired when the user clicks Done to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) next: EventEmitter<{envelope: IEnvelope}>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n @State() isOpen: boolean;\n @State() gettingLink = true;\n @State() link = '';\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n @State() recipient: IRecipient | null = null;\n\n async componentWillLoad() {\n try {\n this.endpoint.loadSession();\n\n if (!this.envelopeId) {\n console.log(`[RECIPIENT_LINK] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n if (!this.endpoint.session) {\n console.log('[RECIPIENT_LINK] Unable to start session, must be authenticated');\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[RECIPIENT_LINK] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[RECIPIENT_LINK] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n\n this.recipient = (this.envelope?.recipients || []).find(r => r.role_name === this.roleName);\n this.getLink(this.recipient);\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n handleDone(e: any) {\n e.preventDefault();\n this.next?.emit({envelope: this.envelope});\n }\n\n copyLink(link: string) {\n navigator.clipboard\n .writeText(link)\n .then(() => VerdocsToast('Link copied to clipboard!', {style: 'success', duration: 3000}))\n .catch(e => {\n console.warn('[RECIPIENT_LINK] Error copying to clipboard', e);\n VerdocsToast(`Unable to copy to clipboard: ${e.message}`, {style: 'error'});\n });\n }\n\n getLink(recipient: IRecipient) {\n this.gettingLink = true;\n getInPersonLink(this.endpoint, recipient.envelope_id, recipient.role_name)\n .then(response => {\n this.gettingLink = false;\n this.link = response.link;\n // NOTE: Left here for documentation purposes. We don't auto-copy the link because many browsers now\n // error on that because we aren't the focus/gesture-initiator since we're a new component just being\n // drawn in the DOM. So we let the user click to trigger that.\n // this.copyLink(response.link);\n })\n .catch(e => {\n this.gettingLink = false;\n console.log('[RECIPIENT_LINK] Error getting link', e);\n VerdocsToast('Unable to get link: ' + e.message, {style: 'error'});\n });\n }\n\n render() {\n if (this.loading || !this.recipient) {\n return <Host />;\n }\n\n // const recipientsWithActions = getRecipientsWithActions(this.store.state); const showLinkButton = recipientCanAct(recipient, recipientsWithActions); const link =\n // this.links[recipient.role_name]; const gettingLink = this.gettingLinks[recipient.role_name]; return (\n\n const fullName = formatFullName(this.recipient);\n return (\n <Host>\n <div class=\"summary-content\">\n <h1 class=\"summary-title\">In-Person Signing Link</h1>\n <div class=\"summary-rows\">\n <div class=\"summary-recipient\">\n <div class=\"role-name\">{this.recipient.role_name}</div>\n <div class=\"role-details\">\n <div class=\"role-info\">\n <div class=\"role-full-name\">\n {fullName} ({this.recipient.email || this.recipient.phone})\n </div>\n {!this.link && (\n <verdocs-button\n size=\"small\"\n variant=\"outline\"\n label={this.gettingLink ? 'Loading...' : 'Get Link'}\n disabled={this.gettingLink}\n onClick={() => this.getLink(this.recipient)}\n />\n )}\n </div>\n\n {this.link && (\n <div class=\"link-wrapper\">\n <div class=\"link\">{this.link}</div>\n <verdocs-button size=\"small\" variant=\"outline\" label=\"Copy\" onClick={() => this.copyLink(this.link)} />\n </div>\n )}\n </div>\n </div>\n </div>\n\n <div class=\"buttons\">\n <verdocs-button size=\"small\" label=\"Done\" onClick={e => this.handleDone(e)} />\n </div>\n </div>\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-envelope-update-recipient {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 100000;\n position: fixed;\n align-items: center;\n justify-content: center;\n font-family: $primary-font;\n background-color: #0000007f;\n\n .summary-content {\n width: 600px;\n display: flex;\n max-width: 90%;\n font-size: 18px;\n flex: 0 0 600px;\n border-radius: 6px;\n background: #ffffff;\n flex-direction: column;\n padding: 30px 20px 20px;\n\n .summary-title {\n font-size: 20px;\n font-weight: 700;\n margin: 0 0 10px 0;\n color: $verdocs-dark-blue;\n }\n }\n\n .fields {\n display: flex;\n color: $verdocs-grey-1;\n margin: 8px 0 24px 0;\n flex-direction: column;\n\n .field {\n margin: 2px 0;\n }\n\n .note {\n font-style: italic;\n font-size: 14px;\n }\n\n .fields-row {\n gap: 12px;\n display: flex;\n align-items: center;\n flex-direction: row;\n\n > * {\n flex: 1;\n }\n }\n\n .role-name {\n flex: 1;\n display: flex;\n font-size: 14px;\n font-weight: 600;\n margin: 0 0 8px 0;\n color: $verdocs-grey-0;\n }\n\n textarea {\n width: 100%;\n font-size: 16px;\n padding: 5px 7px;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid $border-color;\n font-family: $verdocs-primary-font;\n }\n }\n\n .buttons {\n display: flex;\n column-gap: 15px;\n margin: 10px 0 0 0;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n verdocs-button {\n flex: 0 0 120px;\n margin-left: 10px;\n white-space: nowrap;\n\n button {\n width: 100%;\n }\n }\n }\n}\n","import {Component, Prop, Host, h, State, Event, EventEmitter} from '@stencil/core';\nimport {getEnvelope, IEnvelope, IRecipient, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Displays a single recipient from an envelope, with the opportunity to copy an in-person\n * signing link for that recipient to use.\n */\n@Component({\n tag: 'verdocs-envelope-update-recipient',\n styleUrl: 'verdocs-envelope-update-recipient.scss',\n})\nexport class VerdocsEnvelopeUpdateRecipient {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to edit.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * The role to load.\n */\n @Prop() roleName: string = '';\n\n /**\n * Event fired when the user clicks Done to proceed. It is up to the host application\n * to save any updates and proceed to the next step.\n */\n @Event({composed: true}) next: EventEmitter<{action: 'cancel' | 'save'; originalRecipient: IRecipient; updatedRecipient: IRecipient}>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n @State() isOpen: boolean;\n @State() gettingLink = true;\n @State() link = '';\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n @State() originalRecipient: IRecipient | null = null;\n @State() updatedRecipient: IRecipient | null = null;\n\n async componentWillLoad() {\n try {\n this.endpoint.loadSession();\n\n if (!this.envelopeId) {\n console.log(`[UPDATE_RECIPIENT] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n if (!this.endpoint.session) {\n console.log('[UPDATE_RECIPIENT] Unable to start session, must be authenticated');\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[UPDATE_RECIPIENT] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[UPDATE_RECIPIENT] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n\n const recipient = (this.envelope?.recipients || []).find(r => r.role_name === this.roleName);\n this.originalRecipient = recipient;\n this.updatedRecipient = {...recipient};\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n handleSave(e: any) {\n e.preventDefault();\n this.next?.emit({action: 'save', originalRecipient: this.originalRecipient, updatedRecipient: this.updatedRecipient});\n }\n\n handleCancel(e: any) {\n e.preventDefault();\n this.next?.emit({action: 'cancel', originalRecipient: this.originalRecipient, updatedRecipient: this.updatedRecipient});\n }\n\n render() {\n if (this.loading || !this.updatedRecipient) {\n return <Host />;\n }\n\n return (\n <Host>\n <div class=\"summary-content\">\n <h1 class=\"summary-title\">Update Recipient</h1>\n <div class=\"summary-rows\">\n <div class=\"fields\">\n <div class=\"role-name\">{this.updatedRecipient.role_name}</div>\n\n <div class=\"field\">\n <div class=\"fields-row\">\n <verdocs-text-input\n value={this.updatedRecipient.first_name}\n placeholder=\"First Name...\"\n onInput={(e: any) => (this.updatedRecipient.first_name = e.target.value)}\n />\n <verdocs-text-input value={this.updatedRecipient.last_name} placeholder=\"Last Name...\" onInput={(e: any) => (this.updatedRecipient.last_name = e.target.value)} />\n </div>\n </div>\n\n <div class=\"field\">\n <verdocs-text-input\n type=\"email\"\n value={this.updatedRecipient.email}\n placeholder=\"Email Address...\"\n onInput={(e: any) => (this.updatedRecipient.email = e.target.value)}\n />\n </div>\n\n <div class=\"field\">\n <verdocs-text-input\n type=\"tel\"\n value={this.updatedRecipient.phone}\n placeholder=\"Phone Number...\"\n onInput={(e: any) => (this.updatedRecipient.phone = e.target.value)}\n />\n </div>\n\n <div class=\"field\">\n <textarea\n id=\"verdocs-contact-picker-message\"\n name=\"verdocs-contact-picker-message\"\n data-lpignore=\"true\"\n autocomplete=\"blocked\"\n placeholder=\"Optional message to include in invitation...\"\n onInput={(e: any) => (this.updatedRecipient.message = e.target.value)}\n >\n {this.updatedRecipient.message}\n </textarea>\n </div>\n\n <div class=\"note\">\n NOTE: If you change the recipient's email address or invite message, they will receive a new invitation to sign the envelope. This will also reset their status if\n they have previously declined to sign.\n </div>\n </div>\n </div>\n\n <div class=\"buttons\">\n <verdocs-button variant=\"outline\" size=\"small\" label=\"Cancel\" onClick={e => this.handleCancel(e)} />\n <verdocs-button size=\"small\" label=\"Save\" onClick={e => this.handleSave(e)} />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"qmEAAA,IAAMA,EAAkC,ghG,ICc3BC,EAA4BC,EAAA,6CAJzC,SAAAC,EAAAC,G,oEAKUC,KAAkBC,mBAAG,KAKrBD,KAAAE,SAA4BC,EAAgBC,aAK5CJ,KAAUK,WAAW,GAKrBL,KAAQM,SAAW,GAelBN,KAAWO,YAAG,KACdP,KAAIQ,KAAG,GAEPR,KAAOS,QAAG,KACVT,KAAQU,SAAqB,KAC7BV,KAASW,UAAsB,IAsIzC,CApIOb,EAAAc,UAAAC,kBAAN,W,+FACE,IACEb,KAAKE,SAASY,cAEd,IAAKd,KAAKK,WAAY,CACpBU,QAAQC,IAAI,iDAAAC,OAAiDjB,KAAKK,aAClE,S,CAGF,IAAKL,KAAKE,SAASgB,QAAS,CAC1BH,QAAQC,IAAI,mEACZ,S,CAGFhB,KAAKmB,kB,CACL,MAAOC,GACPL,QAAQC,IAAI,0CAA2CI,IACvDC,EAAArB,KAAKsB,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,KAAK,IAAIC,EAASJ,EAAEK,SAASC,EAAAN,EAAEO,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,QAAQC,EAAAT,EAAEO,YAAU,MAAAE,SAAA,SAAAA,EAAAC,M,kBAIhFhC,EAAAc,UAAAmB,qBAAA,WACE/B,KAAKgC,oB,EAGDlC,EAAAc,UAAAO,iBAAN,W,gGACEJ,QAAQC,IAAI,oCAAqChB,KAAKK,YACtDL,KAAKgC,qBACLC,EAAMC,UACJ,YACAlC,KAAKK,YACL,WAAM,OAAA8B,EAAYC,EAAKlC,SAAUkC,EAAK/B,WAAhC,GACN,OACA,SAACK,G,MACC0B,EAAK1B,SAAWA,EAChB0B,EAAK3B,QAAU,MAEf2B,EAAKzB,aAAaU,EAAAe,EAAK1B,YAAQ,MAAAW,SAAA,SAAAA,EAAEgB,aAAc,IAAIC,MAAK,SAAAC,GAAK,OAAAA,EAAEC,YAAcJ,EAAK9B,QAArB,IAC7D8B,EAAKK,QAAQL,EAAKzB,UACpB,I,iBAIJb,EAAAc,UAAAoB,mBAAA,WACE,GAAIhC,KAAKC,mBAAoB,CAC3BgC,EAAMS,MAAMC,YAAY3C,KAAKC,oBAC7BD,KAAKC,mBAAqB,I,GAI9BH,EAAAc,UAAAgC,WAAA,SAAWxB,G,MACTA,EAAEyB,kBACFxB,EAAArB,KAAK8C,QAAI,MAAAzB,SAAA,SAAAA,EAAEE,KAAK,CAACb,SAAUV,KAAKU,U,EAGlCZ,EAAAc,UAAAmC,SAAA,SAASvC,GACPwC,UAAUC,UACPC,UAAU1C,GACV2C,MAAK,WAAM,OAAAC,EAAa,4BAA6B,CAACC,MAAO,UAAWC,SAAU,KAAvE,IACXC,OAAM,SAAAnC,GACLL,QAAQyC,KAAK,8CAA+CpC,GAC5DgC,EAAa,gCAAAnC,OAAgCG,EAAEK,SAAW,CAAC4B,MAAO,SACpE,G,EAGJvD,EAAAc,UAAA6B,QAAA,SAAQ9B,GAAR,IAAAyB,EAAApC,KACEA,KAAKO,YAAc,KACnBkD,EAAgBzD,KAAKE,SAAUS,EAAU+C,YAAa/C,EAAU6B,WAC7DW,MAAK,SAAAxB,GACJS,EAAK7B,YAAc,MACnB6B,EAAK5B,KAAOmB,EAASnB,IAKvB,IACC+C,OAAM,SAAAnC,GACLgB,EAAK7B,YAAc,MACnBQ,QAAQC,IAAI,sCAAuCI,GACnDgC,EAAa,uBAAyBhC,EAAEK,QAAS,CAAC4B,MAAO,SAC3D,G,EAGJvD,EAAAc,UAAA+C,OAAA,eAAAvB,EAAApC,KACE,GAAIA,KAAKS,UAAYT,KAAKW,UAAW,CACnC,OAAOiD,EAACC,EAAI,K,CAMd,IAAMC,EAAWC,EAAe/D,KAAKW,WACrC,OACEiD,EAACC,EAAI,KACHD,EAAK,OAAAI,MAAM,mBACTJ,EAAI,MAAAI,MAAM,iBAA2C,0BACrDJ,EAAK,OAAAI,MAAM,gBACTJ,EAAK,OAAAI,MAAM,qBACTJ,EAAK,OAAAI,MAAM,aAAahE,KAAKW,UAAU6B,WACvCoB,EAAK,OAAAI,MAAM,gBACTJ,EAAK,OAAAI,MAAM,aACTJ,EAAK,OAAAI,MAAM,kBACRF,EAAQ,KAAI9D,KAAKW,UAAUsD,OAASjE,KAAKW,UAAUuD,MAChD,MACJlE,KAAKQ,MACLoD,EACE,kBAAAO,KAAK,QACLC,QAAQ,UACRC,MAAOrE,KAAKO,YAAc,aAAe,WACzC+D,SAAUtE,KAAKO,YACfgE,QAAS,WAAM,OAAAnC,EAAKK,QAAQL,EAAKzB,UAAlB,KAKpBX,KAAKQ,MACJoD,EAAK,OAAAI,MAAM,gBACTJ,EAAA,OAAKI,MAAM,QAAQhE,KAAKQ,MACxBoD,EAAA,kBAAgBO,KAAK,QAAQC,QAAQ,UAAUC,MAAM,OAAOE,QAAS,WAAM,OAAAnC,EAAKW,SAASX,EAAK5B,KAAnB,QAOrFoD,EAAK,OAAAI,MAAM,WACTJ,EAAgB,kBAAAO,KAAK,QAAQE,MAAM,OAAOE,QAAS,SAAAnD,GAAK,OAAAgB,EAAKQ,WAAWxB,EAAhB,M,WApK3B,I,UCdzC,IAAMoD,EAAoC,07E,ICa7BC,EAA8B5E,EAAA,+CAJ3C,SAAA6E,EAAA3E,G,oEAKUC,KAAkBC,mBAAG,KAKrBD,KAAAE,SAA4BC,EAAgBC,aAK5CJ,KAAUK,WAAW,GAKrBL,KAAQM,SAAW,GAelBN,KAAWO,YAAG,KACdP,KAAIQ,KAAG,GAEPR,KAAOS,QAAG,KACVT,KAAQU,SAAqB,KAC7BV,KAAiB2E,kBAAsB,KACvC3E,KAAgB4E,iBAAsB,IAqIhD,CAnIOF,EAAA9D,UAAAC,kBAAN,W,+FACE,IACEb,KAAKE,SAASY,cAEd,IAAKd,KAAKK,WAAY,CACpBU,QAAQC,IAAI,mDAAAC,OAAmDjB,KAAKK,aACpE,S,CAGF,IAAKL,KAAKE,SAASgB,QAAS,CAC1BH,QAAQC,IAAI,qEACZ,S,CAGFhB,KAAKmB,kB,CACL,MAAOC,GACPL,QAAQC,IAAI,4CAA6CI,IACzDC,EAAArB,KAAKsB,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,KAAK,IAAIC,EAASJ,EAAEK,SAASC,EAAAN,EAAEO,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,QAAQC,EAAAT,EAAEO,YAAU,MAAAE,SAAA,SAAAA,EAAAC,M,kBAIhF4C,EAAA9D,UAAAmB,qBAAA,WACE/B,KAAKgC,oB,EAGD0C,EAAA9D,UAAAO,iBAAN,W,gGACEJ,QAAQC,IAAI,sCAAuChB,KAAKK,YACxDL,KAAKgC,qBACLC,EAAMC,UACJ,YACAlC,KAAKK,YACL,WAAM,OAAA8B,EAAYC,EAAKlC,SAAUkC,EAAK/B,WAAhC,GACN,OACA,SAACK,G,MACC0B,EAAK1B,SAAWA,EAChB0B,EAAK3B,QAAU,MAEf,IAAME,KAAaU,EAAAe,EAAK1B,YAAU,MAAAW,SAAA,SAAAA,EAAAgB,aAAc,IAAIC,MAAK,SAAAC,GAAK,OAAAA,EAAEC,YAAcJ,EAAK9B,QAArB,IAC9D8B,EAAKuC,kBAAoBhE,EACzByB,EAAKwC,iBAAgBC,SAAA,GAAOlE,EAC9B,I,iBAIJ+D,EAAA9D,UAAAoB,mBAAA,WACE,GAAIhC,KAAKC,mBAAoB,CAC3BgC,EAAMS,MAAMC,YAAY3C,KAAKC,oBAC7BD,KAAKC,mBAAqB,I,GAI9ByE,EAAA9D,UAAAkE,WAAA,SAAW1D,G,MACTA,EAAEyB,kBACFxB,EAAArB,KAAK8C,QAAM,MAAAzB,SAAA,SAAAA,EAAAE,KAAK,CAACwD,OAAQ,OAAQJ,kBAAmB3E,KAAK2E,kBAAmBC,iBAAkB5E,KAAK4E,kB,EAGrGF,EAAA9D,UAAAoE,aAAA,SAAa5D,G,MACXA,EAAEyB,kBACFxB,EAAArB,KAAK8C,QAAM,MAAAzB,SAAA,SAAAA,EAAAE,KAAK,CAACwD,OAAQ,SAAUJ,kBAAmB3E,KAAK2E,kBAAmBC,iBAAkB5E,KAAK4E,kB,EAGvGF,EAAA9D,UAAA+C,OAAA,eAAAvB,EAAApC,KACE,GAAIA,KAAKS,UAAYT,KAAK4E,iBAAkB,CAC1C,OAAOhB,EAACC,EAAI,K,CAGd,OACED,EAACC,EAAI,KACHD,EAAK,OAAAI,MAAM,mBACTJ,EAAI,MAAAI,MAAM,iBAAqC,oBAC/CJ,EAAK,OAAAI,MAAM,gBACTJ,EAAK,OAAAI,MAAM,UACTJ,EAAK,OAAAI,MAAM,aAAahE,KAAK4E,iBAAiBpC,WAE9CoB,EAAK,OAAAI,MAAM,SACTJ,EAAK,OAAAI,MAAM,cACTJ,EAAA,sBACEqB,MAAOjF,KAAK4E,iBAAiBM,WAC7BC,YAAY,gBACZC,QAAS,SAAChE,GAAM,OAAMgB,EAAKwC,iBAAiBM,WAAa9D,EAAEiE,OAAOJ,KAAlD,IAElBrB,EAAA,sBAAoBqB,MAAOjF,KAAK4E,iBAAiBU,UAAWH,YAAY,eAAeC,QAAS,SAAChE,GAAM,OAAMgB,EAAKwC,iBAAiBU,UAAYlE,EAAEiE,OAAOJ,KAAjD,MAI3GrB,EAAK,OAAAI,MAAM,SACTJ,EAAA,sBACE2B,KAAK,QACLN,MAAOjF,KAAK4E,iBAAiBX,MAC7BkB,YAAY,mBACZC,QAAS,SAAChE,GAAM,OAAMgB,EAAKwC,iBAAiBX,MAAQ7C,EAAEiE,OAAOJ,KAA7C,KAIpBrB,EAAK,OAAAI,MAAM,SACTJ,EAAA,sBACE2B,KAAK,MACLN,MAAOjF,KAAK4E,iBAAiBV,MAC7BiB,YAAY,kBACZC,QAAS,SAAChE,GAAM,OAAMgB,EAAKwC,iBAAiBV,MAAQ9C,EAAEiE,OAAOJ,KAA7C,KAIpBrB,EAAK,OAAAI,MAAM,SACTJ,EACE,YAAA4B,GAAG,iCACHC,KAAK,iCAAgC,gBACvB,OACdC,aAAa,UACbP,YAAY,+CACZC,QAAS,SAAChE,GAAM,OAAMgB,EAAKwC,iBAAiBnD,QAAUL,EAAEiE,OAAOJ,KAA/C,GAEfjF,KAAK4E,iBAAiBnD,UAI3BmC,EAAA,OAAKI,MAAM,QAAM,+MAOrBJ,EAAK,OAAAI,MAAM,WACTJ,EAAgB,kBAAAQ,QAAQ,UAAUD,KAAK,QAAQE,MAAM,SAASE,QAAS,SAAAnD,GAAK,OAAAgB,EAAK4C,aAAa5D,EAAlB,IAC5EwC,EAAgB,kBAAAO,KAAK,QAAQE,MAAM,OAAOE,QAAS,SAAAnD,GAAK,OAAAgB,EAAK0C,WAAW1D,EAAhB,M,WApKzB,I","ignoreList":[]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as t,c as i,h as s,F as e,H as r,g as n}from"./p-CF7i8guW.js";import{verifySigner as u,VerdocsEndpoint as o,getEnvelope as h,getDocumentDownloadLink as a,cancelEnvelope as l,userCanCancelEnvelope as d,integerSequence as c}from"@verdocs/js-sdk";import{D as f}from"./p-C_Xku1v2.js";import{V as p}from"./p-CyvDgtoV.js";import{s as v}from"./p-fL0BKEnm.js";import{S as g}from"./p-C1sRVZWv.js";import{S as b}from"./p-C_IIZj49.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";function x(t){return typeof t==="string"||t instanceof String}function m(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function w(t,i){if(Array.isArray(i))return w(t,((t,s)=>i.includes(s)));return Object.entries(t).reduce(((t,s)=>{let[e,r]=s;if(i(r,e))t[e]=r;return t}),{})}const A={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function C(t){switch(t){case A.LEFT:return A.FORCE_LEFT;case A.RIGHT:return A.FORCE_RIGHT;default:return t}}function k(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function F(t,i){if(i===t)return true;const s=Array.isArray(i),e=Array.isArray(t);let r;if(s&&e){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!F(i[r],t[r]))return false;return true}if(s!=e)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const s=i instanceof Date,e=t instanceof Date;if(s&&e)return i.getTime()==t.getTime();if(s!=e)return false;const n=i instanceof RegExp,u=t instanceof RegExp;if(n&&u)return i.toString()==t.toString();if(n!=u)return false;const o=Object.keys(i);for(r=0;r<o.length;r++)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return false;for(r=0;r<o.length;r++)if(!F(t[o[r]],i[o[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class y{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 A.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?A.RIGHT:A.LEFT}}function D(t,i){return new D.InputMask(t,i)}function E(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return D.MaskedRegExp;if(x(t))return D.MaskedPattern;if(t===Date)return D.MaskedDate;if(t===Number)return D.MaskedNumber;if(Array.isArray(t)||t===Array)return D.MaskedDynamic;if(D.Masked&&t.prototype instanceof D.Masked)return t;if(D.Masked&&t instanceof D.Masked)return t.constructor;if(t instanceof Function)return D.MaskedFunction;console.warn("Mask not found for mask",t);return D.Masked}function B(t){if(!t)throw new Error("Options in not defined");if(D.Masked){if(t.prototype instanceof D.Masked)return{mask:t};const{mask:i=undefined,...s}=t instanceof D.Masked?{mask:t}:m(t)&&t.mask instanceof D.Masked?t:{};if(i){const t=i.mask;return{...w(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...s}}}if(!m(t))return{mask:t};return{...t}}function I(t){if(D.Masked&&t instanceof D.Masked)return t;const i=B(t);const s=E(i.mask);if(!s)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===s)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new s(i)}D.createMask=I;class _{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}D.MaskElement=_;const S=90;const V=89;class M extends _{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,s;return(t=(i=(s=this.input).getRootNode)==null?void 0:i.call(s))!=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===S&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===V&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===S&&(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={}}}D.HTMLMaskElement=M;class T extends M{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}D.HTMLMaskElement=M;class R extends M{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s<e){return s}return e}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s>e){return s}return e}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,t);s.setEnd(this.input.lastChild||this.input,i);const e=this.rootElement;const r=e.getSelection&&e.getSelection();if(r){r.removeAllRanges();r.addRange(s)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}D.HTMLContenteditableMaskElement=R;class O{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>O.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}}O.MAX_LENGTH=100;class P{constructor(t,i){this.el=t instanceof _?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new R(t):new T(t);this.masked=I(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new O;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof D.Masked)&&this.masked.constructor===E(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof D.Masked?t:I({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const s=this._listeners[t];if(!s)return;s.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const s=this.masked.value;const e=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==i||this.value!==s||this._rawInputValue!==e;this._unmaskedValue=i;this._value=s;this._rawInputValue=e;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:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...s}=t;const e=!this.maskEquals(i);const r=this.masked.optionsIsChanged(s);if(e)this.mask=i;if(r)this.masked.updateOptions(s);if(e||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,A.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const s=this._listeners[t].indexOf(i);if(s>=0)this._listeners[t].splice(s,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new y({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const s=this.masked.rawInputValue;const e=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const r=s===this.masked.rawInputValue?i.removeDirection:A.NONE;let n=this.masked.nearestInputPos(i.startChangePos+e,r);if(r!==A.NONE)n=this.masked.nearestInputPos(n,A.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}}D.InputMask=P;class z{static normalize(t){return Array.isArray(t)?t:[t,new z]}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}}D.ChangeDetails=z;class N{constructor(t,i,s){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=s}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class j{constructor(t){this._value="";this._update({...j.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new N(this.extractInput(t,i),t)}appendTail(t){if(x(t))t=new N(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new z;this._value+=t;return new z({inserted:t,rawInserted:t})}_appendChar(t,i,s){if(i===void 0){i={}}const e=this.state;let r;[t,r]=this.doPrepareChar(t,i);if(t){r=r.aggregate(this._appendCharRaw(t,i));if(!r.rawInserted&&this.autofix==="pad"){const s=this.state;this.state=e;let n=this.pad(i);const u=this._appendCharRaw(t,i);n=n.aggregate(u);if(u.rawInserted||n.equals(r)){r=n}else{this.state=s}}}if(r.inserted){let t;let n=this.doValidate(i)!==false;if(n&&s!=null){const i=this.state;if(this.overwrite===true){t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.unshift(this.displayValue.length-r.tailShift)}}let e=this.appendTail(s);n=e.rawInserted.length===s.toString().length;if(!(n&&e.inserted)&&this.overwrite==="shift"){this.state=i;t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.shift()}e=this.appendTail(s);n=e.rawInserted.length===s.toString().length}if(n&&e.inserted)this.state=i}if(!n){r=new z;this.state=e;if(s&&t)s.state=t}}return r}_appendPlaceholder(){return new z}_appendEager(){return new z}append(t,i,s){if(!x(t))throw new Error("value should be string");const e=x(s)?new N(String(s)):s;if(i!=null&&i.tail)i._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,i);for(let s=0;s<t.length;++s){const n=this._appendChar(t[s],i,e);if(!n.rawInserted&&!this.doSkipInvalid(t[s],i,e))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){r.aggregate(this._appendEager())}if(e!=null){r.tailShift+=this.appendTail(e).tailShift}return r}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new z}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const s=this.value;const e=t();this.rawInputValue=i;if(this.value&&this.value!==s&&s.indexOf(this.value)===0){this.append(s.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return e}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const s=t(this);this.state=i;delete this._isolated;return s}doSkipInvalid(t,i,s){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return z.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return z.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,s,e,r){if(s===void 0){s=""}if(e===void 0){e=A.NONE}if(r===void 0){r={input:true}}const n=t+i;const u=this.extractTail(n);const o=this.eager===true||this.eager==="remove";let h;if(o){e=C(e);h=this.extractInput(0,n,{raw:true})}let a=t;const l=new z;if(e!==A.NONE){a=this.nearestInputPos(t,i>1&&t!==0&&!o?A.NONE:e);l.tailShift=a-t}l.aggregate(this.remove(a));if(o&&e!==A.NONE&&h===this.rawInputValue){if(e===A.FORCE_LEFT){let t;while(h===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new z({tailShift:-1})).aggregate(this.remove(t-1))}}else if(e===A.FORCE_RIGHT){u.unshift()}}return l.aggregate(this.append(s,r,u))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!F(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||j.EMPTY_VALUES.includes(t)&&j.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new z}}j.DEFAULTS={skipInvalid:true};j.EMPTY_VALUES=[undefined,null,""];D.Masked=j;class L{constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=x(t)?new N(String(t)):t;const i=this.chunks[this.chunks.length-1];const s=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof N){if(s){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof L){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof D.MaskedPattern)){const i=new N(this.toString());return i.appendTo(t)}const i=new z;for(let s=0;s<this.chunks.length;++s){const e=this.chunks[s];const r=t._mapPosToBlock(t.displayValue.length);const n=e.stop;let u;if(n!=null&&(!r||r.index<=n)){if(e instanceof L||t._stops.indexOf(n)>=0){i.aggregate(t._appendPlaceholder(n))}u=e instanceof L&&t._blocks[n]}if(u){const s=u.appendTail(e);i.aggregate(s);const r=e.toString().slice(s.rawInserted.length);if(r)i.aggregate(t.append(r,{tail:true}))}else{i.aggregate(t.append(e.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...s}=t;Object.assign(this,s);this.chunks=i.map((t=>{const i="chunks"in t?new L:new N;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let s=0;while(s<this.chunks.length){const t=this.chunks[s];const e=t.unshift(i);if(t.toString()){if(!e)break;++s}else{this.chunks.splice(s,1)}if(e)return e}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const s=i.shift();if(i.toString()){if(!s)break;--t}else{this.chunks.splice(t,1)}if(s)return s}return""}}class q{constructor(t,i){this.masked=t;this._log=[];const{offset:s,index:e}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s;this.index=e;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,A.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,A.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,A.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,A.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,A.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,A.NONE);return true}))}}class W{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new z}nearestInputPos(t,i){if(i===void 0){i=A.NONE}const s=0;const e=this._value.length;switch(i){case A.LEFT:case A.FORCE_LEFT:return s;case A.NONE:case A.RIGHT:case A.FORCE_RIGHT:default:return e}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(s===void 0){s={}}return s.raw&&this._isRawInput&&this._value.slice(t,i)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new z;const s=this.eager===true||this.eager==="append";const e=this.char===t;const r=e&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!s)&&!i.tail;const n=new z({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new z;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new N("")}appendTail(t){if(x(t))t=new N(String(t));return t.appendTo(this)}append(t,i,s){const e=this._appendChar(t[0],i);if(s!=null){e.tailShift+=this.appendTail(s).tailShift}return e}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 H{constructor(t){const{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u,...o}=t;this.masked=I(o);Object.assign(this,{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u})}reset(){this.isFilled=false;this.masked.reset()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new z}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new z;const s=this.masked.state;let e=this.masked._appendChar(t,this.currentMaskFlags(i));if(e.inserted&&this.doValidate(i)===false){e=new z;this.masked.state=s}if(!e.inserted&&!this.isOptional&&!this.lazy&&!i.input){e.inserted=this.placeholderChar}e.skip=!e.inserted&&!this.isOptional;this.isFilled=Boolean(e.inserted);return e}append(t,i,s){return this.masked.append(t,this.currentMaskFlags(i),s)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new z;this.isFilled=true;return new z({inserted:this.placeholderChar})}_appendEager(){return new z}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,s)}nearestInputPos(t,i){if(i===void 0){i=A.NONE}const s=0;const e=this.value.length;const r=Math.min(Math.max(t,s),e);switch(i){case A.LEFT:case A.FORCE_LEFT:return this.isComplete?r:s;case A.RIGHT:case A.FORCE_RIGHT:return this.isComplete?r:e;case A.NONE:default:return r}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new z}}H.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 Z extends j{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}D.MaskedRegExp=Z;class U extends j{constructor(t){super({...U.DEFAULTS,...t,definitions:Object.assign({},H.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let s=false;let e=false;for(let r=0;r<i.length;++r){if(this.blocks){const t=i.slice(r);const s=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));s.sort(((t,i)=>i.length-t.length));const e=s[0];if(e){const{expose:t,repeat:i,...s}=B(this.blocks[e]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:i,parent:this};const u=i!=null?new D.RepeatBlock(n):I(n);if(u){this._blocks.push(u);if(t)this.exposeBlock=u;if(!this._maskedBlocks[e])this._maskedBlocks[e]=[];this._maskedBlocks[e].push(this._blocks.length-1)}r+=e.length-1;continue}}let n=i[r];let u=n in t;if(n===U.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){s=!s;continue}if(n==="["||n==="]"){e=!e;continue}if(n===U.ESCAPE_CHAR){++r;n=i[r];if(!n)break;u=false}const o=u?new H({isOptional:e,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...B(t[n]),parent:this}):new W({char:n,eager:this.eager,isUnmasking:s});this._blocks.push(o)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...s}=t;this._blocks.forEach(((t,s)=>t.state=i[s]));super.state=s}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new z;let s=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(s==null)return i;if(this._blocks[s].isFilled)++s;for(let t=s;t<this._blocks.length;++t){const s=this._blocks[t]._appendEager();if(!s.inserted)break;i.aggregate(s)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._mapPosToBlock(this.displayValue.length);const e=new z;if(!s)return e;for(let n=s.index,u;u=this._blocks[n];++n){var r;const s=u._appendChar(t,{...i,_beforeTailState:(r=i._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});e.aggregate(s);if(s.consumed)break}return e}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=new L;if(t===i)return s;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{const n=t.extractTail(e,r);n.stop=this._findStopBefore(i);n.from=this._blockStartPos(i);if(n instanceof L)n.blockIndex=i;s.extend(n)}));return s}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(s===void 0){s={}}if(t===i)return"";let e="";this._forEachBlocksInRange(t,i,((t,i,r,n)=>{e+=t.extractInput(r,n,s)}));return e}_findStopBefore(t){let i;for(let s=0;s<this._stops.length;++s){const e=this._stops[s];if(e<=t)i=e;else break}return i}_appendPlaceholder(t){const i=new z;if(this.lazy&&t==null)return i;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return i;const e=s.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(e,r).forEach((s=>{if(!s.lazy||t!=null){var e;i.aggregate(s._appendPlaceholder((e=s._blocks)==null?void 0:e.length))}}));return i}_mapPosToBlock(t){let i="";for(let s=0;s<this._blocks.length;++s){const e=this._blocks[s];const r=i.length;i+=e.displayValue;if(t<=i.length){return{index:s,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,s){if(i===void 0){i=this.displayValue.length}const e=this._mapPosToBlock(t);if(e){const t=this._mapPosToBlock(i);const r=t&&e.index===t.index;const n=e.offset;const u=t&&r?t.offset:this._blocks[e.index].displayValue.length;s(this._blocks[e.index],e.index,n,u);if(t&&!r){for(let i=e.index+1;i<t.index;++i){s(this._blocks[i],i,0,this._blocks[i].displayValue.length)}s(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s.aggregate(t.remove(e,r))}));return s}nearestInputPos(t,i){if(i===void 0){i=A.NONE}if(!this._blocks.length)return 0;const s=new q(this,t);if(i===A.NONE){if(s.pushRightBeforeInput())return s.pos;s.popState();if(s.pushLeftBeforeInput())return s.pos;return this.displayValue.length}if(i===A.LEFT||i===A.FORCE_LEFT){if(i===A.LEFT){s.pushRightBeforeFilled();if(s.ok&&s.pos===t)return t;s.popState()}s.pushLeftBeforeInput();s.pushLeftBeforeRequired();s.pushLeftBeforeFilled();if(i===A.LEFT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.ok&&s.pos<=t)return s.pos;s.popState();if(s.ok&&s.pos<=t)return s.pos;s.popState()}if(s.ok)return s.pos;if(i===A.FORCE_LEFT)return 0;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return 0}if(i===A.RIGHT||i===A.FORCE_RIGHT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.pushRightBeforeFilled())return s.pos;if(i===A.FORCE_RIGHT)return this.displayValue.length;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return this.nearestInputPos(t,A.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let s=0;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s+=t.totalInputPositions(e,r)}));return s}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new z;this._forEachBlocksInRange(0,this.displayValue.length,(s=>i.aggregate(s.pad(t))));return i}}U.DEFAULTS={...j.DEFAULTS,lazy:true,placeholderChar:"_"};U.STOP_CHAR="`";U.ESCAPE_CHAR="\\";U.InputDefinition=H;U.FixedDefinition=W;D.MaskedPattern=U;class Y extends U{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:s=this.from||0,maxLength:e=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=i;this.from=s;this.maxLength=Math.max(String(i).length,e);this.autofix=r;const u=String(this.from).padStart(this.maxLength,"0");const o=String(this.to).padStart(this.maxLength,"0");let h=0;while(h<o.length&&o[h]===u[h])++h;n.mask=o.slice(0,h).replace(/0/g,"\\0")+"0".repeat(this.maxLength-h);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let s="";const[,e,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){i="0".repeat(e.length)+r;s="9".repeat(e.length)+r}i=i.padEnd(this.maxLength,"0");s=s.padEnd(this.maxLength,"9");return[i,s]}doPrepareChar(t,i){if(i===void 0){i={}}let s;[t,s]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)s.skip=!this.isComplete;return[t,s]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const s=String(this.from).padStart(this.maxLength,"0");const e=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(s[this.value.length],i);if(Number(r)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(s[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(e[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const s=i.search(/[^0]/);if(s===-1&&i.length<=this._matchFrom)return true;const[e,r]=this.boundaries(i);return this.from<=Number(r)&&Number(e)<=this.to&&super.doValidate(t)}pad(t){const i=new z;if(this.value.length===this.maxLength)return i;const s=this.value;const e=this.maxLength-this.value.length;if(e){this.reset();for(let s=0;s<e;++s){i.aggregate(super._appendCharRaw("0",t))}s.split("").forEach((t=>this._appendCharRaw(t)))}return i}}D.MaskedRange=Y;const K="d{.}`m{.}`Y";class G extends U{static extractPatternOptions(t){const{mask:i,pattern:s,...e}=t;return{...e,mask:x(i)?i:s}}constructor(t){super(G.extractPatternOptions({...G.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:s,blocks:e,...r}={...G.DEFAULTS,...t};const n=Object.assign({},G.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,e);super._update({...r,mask:x(i)?i:s,blocks:n})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(G.extractPatternOptions(t))}}G.GET_DEFAULT_BLOCKS=()=>({d:{mask:Y,from:1,to:31,maxLength:2},m:{mask:Y,from:1,to:12,maxLength:2},Y:{mask:Y,from:1900,to:9999}});G.DEFAULTS={...U.DEFAULTS,mask:Date,pattern:K,format:(t,i)=>{if(!t)return"";const s=String(t.getDate()).padStart(2,"0");const e=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[s,e,r].join(".")},parse:(t,i)=>{const[s,e,r]=t.split(".").map(Number);return new Date(r,e-1,s)}};D.MaskedDate=G;class $ extends j{constructor(t){super({...$.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...s}=B(t);const e=I({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});if(i)this.exposeMask=e;return e})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._applyDispatch(t,i);if(this.currentMask){s.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return s}_applyDispatch(t,i,s){if(t===void 0){t=""}if(i===void 0){i={}}if(s===void 0){s=""}const e=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const r=this.rawInputValue;const n=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;const u=r.slice(n.length);const o=this.currentMask;const h=new z;const a=o==null?void 0:o.state;this.currentMask=this.doDispatch(t,{...i},s);if(this.currentMask){if(this.currentMask!==o){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});h.tailShift=this.currentMask.value.length-e.length}if(u){h.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(a){this.currentMask.state=a}}return h}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new z;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,s;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((s=t._beforeTailState)==null?void 0:s.currentMask)||t._beforeTailState}}doDispatch(t,i,s){if(i===void 0){i={}}if(s===void 0){s=""}return this.dispatch(t,this,i,s)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepare(t,i);if(this.currentMask){let t;[s,t]=super.doPrepare(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}doPrepareChar(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepareChar(t,i);if(this.currentMask){let t;[s,t]=super.doPrepareChar(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const s=new z;if(this.currentMask){s.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return s}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:s,currentMask:e,...r}=t;if(i)this.compiledMasks.forEach(((t,s)=>t.state=i[s]));if(s!=null){this.currentMask=s;this.currentMask.state=e}super.state=r}extractInput(t,i,s){return this.currentMask?this.currentMask.extractInput(t,i,s):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,s)=>{if(!t[s])return;const{mask:e,...r}=t[s];return F(i,r)&&i.maskEquals(e)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}$.DEFAULTS={...j.DEFAULTS,dispatch:(t,i,s,e)=>{if(!i.compiledMasks.length)return;const r=i.rawInputValue;const n=i.compiledMasks.map(((n,u)=>{const o=i.currentMask===n;const h=o?n.displayValue.length:n.nearestInputPos(n.displayValue.length,A.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!o){n.remove(h)}n.append(t,i.currentMaskFlags(s));n.appendTail(e);return{index:u,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(h,n.nearestInputPos(n.displayValue.length,A.FORCE_LEFT)))}}));n.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[n[0].index]}};D.MaskedDynamic=$;class X extends U{constructor(t){super({...X.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...s}=t;if(i){const t=i.map((t=>t.length));const e=Math.min(...t);const r=Math.max(...t)-e;s.mask="*".repeat(e);if(r)s.mask+="["+"*".repeat(r)+"]";this.enum=i}super._update(s)}_appendCharRaw(t,i){if(i===void 0){i={}}const s=Math.min(this.nearestInputPos(0,A.FORCE_RIGHT),this.value.length);const e=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,s)));if(e.length){if(e.length===1){this._forEachBlocksInRange(0,this.value.length,((t,s)=>{const r=e[0][s];if(s>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,i)}))}const t=super._appendCharRaw(e[0][this.value.length],i);if(e.length===1){e[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new z({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new N("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new z;const s=Math.min(super.nearestInputPos(0,A.FORCE_RIGHT),this.value.length);let e;for(e=t;e>=0;--e){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(s,e),s)));if(t.length>1)break}const r=super.remove(e,i);r.tailShift+=e-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}X.DEFAULTS={...U.DEFAULTS,matchValue:(t,i,s)=>t.indexOf(i,s)===s};D.MaskedEnum=X;class J extends j{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}D.MaskedFunction=J;var Q;class tt extends j{constructor(t){super({...tt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const s=(this.scale?"("+k(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+s);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(k).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(k(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[s,e]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!s)e.skip=true;if(s&&!this.allowPositive&&!this.value&&s!=="-")e.aggregate(this._appendChar("-"));return[s,e]}_separatorsCount(t,i){if(i===void 0){i=false}let s=0;for(let e=0;e<t;++e){if(this._value.indexOf(this.thousandsSeparator,e)===e){++s;if(i)t+=this.thousandsSeparator.length}}return s}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,s))}_appendCharRaw(t,i){if(i===void 0){i={}}const s=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const e=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let u=!isNaN(n);let o=false;if(u){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(tt.UNMASKED_RADIX,this.radix);o||(o=r===this._value&&!i.tail)}else{u=false}}u&&(u=Boolean(this._value.match(this._numberRegExp)))}let h;if(!u){this._value=r;h=new z}else{h=new z({inserted:this._value.slice(r.length),rawInserted:o?"":t,skip:o})}this._value=this._insertThousandsSeparators(this._value);const a=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(a);h.tailShift+=(l-e)*this.thousandsSeparator.length;return h}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const s=this.value.indexOf(this.thousandsSeparator,i);if(s<=t)return s}return-1}_adjustRangeWithSeparators(t,i){const s=this._findSeparatorAround(t);if(s>=0)t=s;const e=this._findSeparatorAround(i);if(e>=0)i=e+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const s=this.value.slice(0,t);const e=this.value.slice(i);const r=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+e));const n=this._separatorsCountFromSlice(s);return new z({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case A.NONE:case A.LEFT:case A.FORCE_LEFT:{const s=this._findSeparatorAround(t-1);if(s>=0){const e=s+this.thousandsSeparator.length;if(t<e||this.value.length<=e||i===A.FORCE_LEFT){return s}}break}case A.RIGHT:case A.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let s=this.value;if(this.normalizeZeros)s=this._normalizeZeros(s);if(this.padFractionalZeros&&this.scale>0)s=this._padFractionalZeros(s);this._value=s}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,s,e)=>i+e));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,s){if(i===void 0){i={}}const e=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===tt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,s)&&!e}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,tt.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(tt.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)||tt.EMPTY_VALUES.includes(t)&&tt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}Q=tt;tt.UNMASKED_RADIX=".";tt.EMPTY_VALUES=[...j.EMPTY_VALUES,0];tt.DEFAULTS={...j.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Q.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})};D.MaskedNumber=tt;const it={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function st(t,i,s){if(i===void 0){i=it.MASKED}if(s===void 0){s=it.MASKED}const e=I(t);return t=>e.runIsolated((e=>{e[i]=t;return e[s]}))}function et(t,i,s,e){return st(i,s,e)(t)}D.PIPE_TYPE=it;D.createPipe=st;D.pipe=et;class rt extends U{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,s,e;const{repeat:r,...n}=B(t);this._blockOpts=Object.assign({},this._blockOpts,n);const u=I(this._blockOpts);this.repeat=(i=(s=r!=null?r:u.repeat)!=null?s:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((e=this._blocks)==null?void 0:e.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(I(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=new z;for(let o=(e=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?e:Math.max(this._blocks.length-1,0),h,a;h=(n=this._blocks[o])!=null?n:a=!a&&this._allocateBlock(o);++o){var e,r,n,u;const l=h._appendChar(t,{...i,_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[o]});if(l.skip&&a){this._blocks.pop();this.mask=this.mask.slice(1);break}s.aggregate(l);if(l.consumed)break}return s}_trimEmptyTail(t,i){var s,e;if(t===void 0){t=0}const r=Math.max(((s=this._mapPosToBlock(t))==null?void 0:s.index)||0,this.repeatFrom,0);let n;if(i!=null)n=(e=this._mapPosToBlock(i))==null?void 0:e.index;if(n==null)n=this._blocks.length-1;let u=0;for(let t=n;r<=t;--t,++u){if(this._blocks[t].unmaskedValue)break}if(u){this._blocks.splice(n-u+1,u);this.mask=this.mask.slice(u)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._trimEmptyTail(t,i);return s}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}D.RepeatBlock=rt;try{globalThis.IMask=D}catch{}const nt='@-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 ut={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 ot=Object.entries(ut).map((([t,i])=>({value:t,label:i})));const ht=`<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 at=class{constructor(s){t(this,s);this.exit=i(this,"exit");this.pinEntered=i(this,"pinEntered");this.next=i(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){D(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var s=t.getMonth()+1;var e=t.getFullYear();if(i<10)i="0"+i;if(s<10)s="0"+s;return[s,i,e].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,n,u,o,h,a,l,d,c,f,p,v,g;if(this.mode==="choice"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ht}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((t=>s("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("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}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("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}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("verdocs-select-input",{options:ot,value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("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}})),s("div",{class:"field"},s("label",null),s("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),s("span",null,"I agree to provide my personal information in order to validate my identity.")),s("div",{class:"buttons"},s("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)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)})))))}return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ht}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};at.style=nt;const lt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-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 dt=`<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 ct=class{constructor(s){t(this,s);this.exit=i(this,"exit");this.next=i(this,"next");this.resendTimeout=null;this.endpoint=f;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{u(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();u(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();u(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 s(r,{key:"e9936d57ff961236f26620800e7f315a715b50a0"},s("div",{key:"1db7981fcf3fde1a8999fbe7bf122cc0169011bc",class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{key:"8ef5993c5bcf1ac08abbcdda589530413c58bbdc",class:"dialog"},s("div",{key:"360f24b0eb2eb4a34d08080f36a1ee5a2aaa4774",class:"heading"},"Verification Required"),s("div",{key:"6d34ca6bf6ad50c39bb813c64b3acb7a4ee81c02",class:"help-box"},s("div",{key:"7b3afd68c4a705bc83f889ed3709ff51dd40758c",class:"help-icon",innerHTML:dt}),s("div",{key:"34a04301351ce588ebf2f4cca678152e1486941a",class:"help-details"},s("div",{key:"bc9c4bc2ca0b6db46485c2f22b329cf25ffb97af",class:"help-title"},"Please verify your email address"),s("div",{key:"a45508806c35bb2d7d44d5a83e289dadb6584c84",class:"help-text"},"Check your email for a one-time code, and enter it below."))),s("div",{key:"8ca152850009203189a9a73c18f320989c97c741",class:"input"},s("label",{key:"4f6f6dcfd0502c69bab6c2fb7f319bcbf84645b6",htmlFor:"verdocs-otp-input"},"Code:"),s("input",{key:"6b859b0e73afe9963d6934d5b7efa921daf1c547",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})),s("div",{key:"0d7f1f45563bd2a1f891efa639addf2eb62d5591",class:"buttons"},s("verdocs-button",{key:"55f8bb22817142e371420e0a5c15f133779fd6c9",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{key:"8ebbcc0fcd384a2600f92aeb8c832d46804185a4",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),s("verdocs-button",{key:"af1bf5d46d21011fd13c0ad2c4af693c11ad2fe0",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};ct.style=lt;const ft='@-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 pt=class{constructor(s){t(this,s);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.another=i(this,"another");this.view=i(this,"view");this.next=i(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,i,s;if(!this.endpoint){this.endpoint=o.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(e){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new g(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();b.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){b.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,s;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;l(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,s,e;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new g(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(e=t.response)===null||e===void 0?void 0:e.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.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 i=await a(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await a(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-all":v(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 s(r,null,s("verdocs-loader",null))}if(this.showLoadError){return s(r,null,s("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 s(r,null,s("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(d(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const u=this.envelope.documents.filter((t=>t.type==="attachment")).length;const o=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||o){i.push({label:""});if(n){i.push({id:"download-attachments",label:u>1?"Download Documents":"Download Document"})}if(o){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&o){i.push({id:"download-all",label:"Download All Files"})}}return s(r,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=c(1,t.pages);return s(e,null,i.map((i=>{var e;const r=((e=t.page_sizes)===null||e===void 0?void 0:e[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return n(this)}};pt.style=ft;export{at as verdocs_kba_dialog,ct as verdocs_otp_dialog,pt as verdocs_view};
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as t,c as i,h as s,F as e,H as r,g as n}from"./p-CF7i8guW.js";import{verifySigner as u,VerdocsEndpoint as o,getEnvelope as h,getDocumentDownloadLink as a,cancelEnvelope as l,userCanCancelEnvelope as d,integerSequence as c}from"@verdocs/js-sdk";import{D as f}from"./p-C_Xku1v2.js";import{V as p}from"./p-CyvDgtoV.js";import{s as v}from"./p-fL0BKEnm.js";import{S as g}from"./p-C1sRVZWv.js";import{S as b}from"./p-DmsV595e.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";function x(t){return typeof t==="string"||t instanceof String}function m(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function w(t,i){if(Array.isArray(i))return w(t,((t,s)=>i.includes(s)));return Object.entries(t).reduce(((t,s)=>{let[e,r]=s;if(i(r,e))t[e]=r;return t}),{})}const A={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function C(t){switch(t){case A.LEFT:return A.FORCE_LEFT;case A.RIGHT:return A.FORCE_RIGHT;default:return t}}function k(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function F(t,i){if(i===t)return true;const s=Array.isArray(i),e=Array.isArray(t);let r;if(s&&e){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!F(i[r],t[r]))return false;return true}if(s!=e)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const s=i instanceof Date,e=t instanceof Date;if(s&&e)return i.getTime()==t.getTime();if(s!=e)return false;const n=i instanceof RegExp,u=t instanceof RegExp;if(n&&u)return i.toString()==t.toString();if(n!=u)return false;const o=Object.keys(i);for(r=0;r<o.length;r++)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return false;for(r=0;r<o.length;r++)if(!F(t[o[r]],i[o[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class y{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 A.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?A.RIGHT:A.LEFT}}function D(t,i){return new D.InputMask(t,i)}function E(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return D.MaskedRegExp;if(x(t))return D.MaskedPattern;if(t===Date)return D.MaskedDate;if(t===Number)return D.MaskedNumber;if(Array.isArray(t)||t===Array)return D.MaskedDynamic;if(D.Masked&&t.prototype instanceof D.Masked)return t;if(D.Masked&&t instanceof D.Masked)return t.constructor;if(t instanceof Function)return D.MaskedFunction;console.warn("Mask not found for mask",t);return D.Masked}function B(t){if(!t)throw new Error("Options in not defined");if(D.Masked){if(t.prototype instanceof D.Masked)return{mask:t};const{mask:i=undefined,...s}=t instanceof D.Masked?{mask:t}:m(t)&&t.mask instanceof D.Masked?t:{};if(i){const t=i.mask;return{...w(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...s}}}if(!m(t))return{mask:t};return{...t}}function I(t){if(D.Masked&&t instanceof D.Masked)return t;const i=B(t);const s=E(i.mask);if(!s)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===s)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new s(i)}D.createMask=I;class _{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}D.MaskElement=_;const S=90;const V=89;class M extends _{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,s;return(t=(i=(s=this.input).getRootNode)==null?void 0:i.call(s))!=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===S&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===V&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===S&&(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={}}}D.HTMLMaskElement=M;class T extends M{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}D.HTMLMaskElement=M;class R extends M{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s<e){return s}return e}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const s=i&&i.anchorOffset;const e=i&&i.focusOffset;if(e==null||s==null||s>e){return s}return e}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,t);s.setEnd(this.input.lastChild||this.input,i);const e=this.rootElement;const r=e.getSelection&&e.getSelection();if(r){r.removeAllRanges();r.addRange(s)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}D.HTMLContenteditableMaskElement=R;class O{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>O.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}}O.MAX_LENGTH=100;class P{constructor(t,i){this.el=t instanceof _?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new R(t):new T(t);this.masked=I(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new O;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof D.Masked)&&this.masked.constructor===E(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof D.Masked?t:I({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const s=this._listeners[t];if(!s)return;s.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const s=this.masked.value;const e=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==i||this.value!==s||this._rawInputValue!==e;this._unmaskedValue=i;this._value=s;this._rawInputValue=e;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:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...s}=t;const e=!this.maskEquals(i);const r=this.masked.optionsIsChanged(s);if(e)this.mask=i;if(r)this.masked.updateOptions(s);if(e||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,A.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const s=this._listeners[t].indexOf(i);if(s>=0)this._listeners[t].splice(s,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new y({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const s=this.masked.rawInputValue;const e=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const r=s===this.masked.rawInputValue?i.removeDirection:A.NONE;let n=this.masked.nearestInputPos(i.startChangePos+e,r);if(r!==A.NONE)n=this.masked.nearestInputPos(n,A.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}}D.InputMask=P;class z{static normalize(t){return Array.isArray(t)?t:[t,new z]}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}}D.ChangeDetails=z;class N{constructor(t,i,s){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=s}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class j{constructor(t){this._value="";this._update({...j.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new N(this.extractInput(t,i),t)}appendTail(t){if(x(t))t=new N(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new z;this._value+=t;return new z({inserted:t,rawInserted:t})}_appendChar(t,i,s){if(i===void 0){i={}}const e=this.state;let r;[t,r]=this.doPrepareChar(t,i);if(t){r=r.aggregate(this._appendCharRaw(t,i));if(!r.rawInserted&&this.autofix==="pad"){const s=this.state;this.state=e;let n=this.pad(i);const u=this._appendCharRaw(t,i);n=n.aggregate(u);if(u.rawInserted||n.equals(r)){r=n}else{this.state=s}}}if(r.inserted){let t;let n=this.doValidate(i)!==false;if(n&&s!=null){const i=this.state;if(this.overwrite===true){t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.unshift(this.displayValue.length-r.tailShift)}}let e=this.appendTail(s);n=e.rawInserted.length===s.toString().length;if(!(n&&e.inserted)&&this.overwrite==="shift"){this.state=i;t=s.state;for(let t=0;t<r.rawInserted.length;++t){s.shift()}e=this.appendTail(s);n=e.rawInserted.length===s.toString().length}if(n&&e.inserted)this.state=i}if(!n){r=new z;this.state=e;if(s&&t)s.state=t}}return r}_appendPlaceholder(){return new z}_appendEager(){return new z}append(t,i,s){if(!x(t))throw new Error("value should be string");const e=x(s)?new N(String(s)):s;if(i!=null&&i.tail)i._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,i);for(let s=0;s<t.length;++s){const n=this._appendChar(t[s],i,e);if(!n.rawInserted&&!this.doSkipInvalid(t[s],i,e))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){r.aggregate(this._appendEager())}if(e!=null){r.tailShift+=this.appendTail(e).tailShift}return r}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new z}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const s=this.value;const e=t();this.rawInputValue=i;if(this.value&&this.value!==s&&s.indexOf(this.value)===0){this.append(s.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return e}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const s=t(this);this.state=i;delete this._isolated;return s}doSkipInvalid(t,i,s){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return z.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return z.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,s,e,r){if(s===void 0){s=""}if(e===void 0){e=A.NONE}if(r===void 0){r={input:true}}const n=t+i;const u=this.extractTail(n);const o=this.eager===true||this.eager==="remove";let h;if(o){e=C(e);h=this.extractInput(0,n,{raw:true})}let a=t;const l=new z;if(e!==A.NONE){a=this.nearestInputPos(t,i>1&&t!==0&&!o?A.NONE:e);l.tailShift=a-t}l.aggregate(this.remove(a));if(o&&e!==A.NONE&&h===this.rawInputValue){if(e===A.FORCE_LEFT){let t;while(h===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new z({tailShift:-1})).aggregate(this.remove(t-1))}}else if(e===A.FORCE_RIGHT){u.unshift()}}return l.aggregate(this.append(s,r,u))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!F(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||j.EMPTY_VALUES.includes(t)&&j.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new z}}j.DEFAULTS={skipInvalid:true};j.EMPTY_VALUES=[undefined,null,""];D.Masked=j;class L{constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=x(t)?new N(String(t)):t;const i=this.chunks[this.chunks.length-1];const s=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof N){if(s){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof L){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof D.MaskedPattern)){const i=new N(this.toString());return i.appendTo(t)}const i=new z;for(let s=0;s<this.chunks.length;++s){const e=this.chunks[s];const r=t._mapPosToBlock(t.displayValue.length);const n=e.stop;let u;if(n!=null&&(!r||r.index<=n)){if(e instanceof L||t._stops.indexOf(n)>=0){i.aggregate(t._appendPlaceholder(n))}u=e instanceof L&&t._blocks[n]}if(u){const s=u.appendTail(e);i.aggregate(s);const r=e.toString().slice(s.rawInserted.length);if(r)i.aggregate(t.append(r,{tail:true}))}else{i.aggregate(t.append(e.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...s}=t;Object.assign(this,s);this.chunks=i.map((t=>{const i="chunks"in t?new L:new N;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let s=0;while(s<this.chunks.length){const t=this.chunks[s];const e=t.unshift(i);if(t.toString()){if(!e)break;++s}else{this.chunks.splice(s,1)}if(e)return e}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const s=i.shift();if(i.toString()){if(!s)break;--t}else{this.chunks.splice(t,1)}if(s)return s}return""}}class q{constructor(t,i){this.masked=t;this._log=[];const{offset:s,index:e}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s;this.index=e;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,A.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,A.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,A.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,A.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,A.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,A.NONE);return true}))}}class W{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new z}nearestInputPos(t,i){if(i===void 0){i=A.NONE}const s=0;const e=this._value.length;switch(i){case A.LEFT:case A.FORCE_LEFT:return s;case A.NONE:case A.RIGHT:case A.FORCE_RIGHT:default:return e}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(s===void 0){s={}}return s.raw&&this._isRawInput&&this._value.slice(t,i)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new z;const s=this.eager===true||this.eager==="append";const e=this.char===t;const r=e&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!s)&&!i.tail;const n=new z({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new z;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new N("")}appendTail(t){if(x(t))t=new N(String(t));return t.appendTo(this)}append(t,i,s){const e=this._appendChar(t[0],i);if(s!=null){e.tailShift+=this.appendTail(s).tailShift}return e}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 H{constructor(t){const{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u,...o}=t;this.masked=I(o);Object.assign(this,{parent:i,isOptional:s,placeholderChar:e,displayChar:r,lazy:n,eager:u})}reset(){this.isFilled=false;this.masked.reset()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new z}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new z;const s=this.masked.state;let e=this.masked._appendChar(t,this.currentMaskFlags(i));if(e.inserted&&this.doValidate(i)===false){e=new z;this.masked.state=s}if(!e.inserted&&!this.isOptional&&!this.lazy&&!i.input){e.inserted=this.placeholderChar}e.skip=!e.inserted&&!this.isOptional;this.isFilled=Boolean(e.inserted);return e}append(t,i,s){return this.masked.append(t,this.currentMaskFlags(i),s)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new z;this.isFilled=true;return new z({inserted:this.placeholderChar})}_appendEager(){return new z}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,s)}nearestInputPos(t,i){if(i===void 0){i=A.NONE}const s=0;const e=this.value.length;const r=Math.min(Math.max(t,s),e);switch(i){case A.LEFT:case A.FORCE_LEFT:return this.isComplete?r:s;case A.RIGHT:case A.FORCE_RIGHT:return this.isComplete?r:e;case A.NONE:default:return r}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new z}}H.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 Z extends j{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}D.MaskedRegExp=Z;class U extends j{constructor(t){super({...U.DEFAULTS,...t,definitions:Object.assign({},H.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let s=false;let e=false;for(let r=0;r<i.length;++r){if(this.blocks){const t=i.slice(r);const s=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));s.sort(((t,i)=>i.length-t.length));const e=s[0];if(e){const{expose:t,repeat:i,...s}=B(this.blocks[e]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:i,parent:this};const u=i!=null?new D.RepeatBlock(n):I(n);if(u){this._blocks.push(u);if(t)this.exposeBlock=u;if(!this._maskedBlocks[e])this._maskedBlocks[e]=[];this._maskedBlocks[e].push(this._blocks.length-1)}r+=e.length-1;continue}}let n=i[r];let u=n in t;if(n===U.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){s=!s;continue}if(n==="["||n==="]"){e=!e;continue}if(n===U.ESCAPE_CHAR){++r;n=i[r];if(!n)break;u=false}const o=u?new H({isOptional:e,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...B(t[n]),parent:this}):new W({char:n,eager:this.eager,isUnmasking:s});this._blocks.push(o)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...s}=t;this._blocks.forEach(((t,s)=>t.state=i[s]));super.state=s}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new z;let s=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(s==null)return i;if(this._blocks[s].isFilled)++s;for(let t=s;t<this._blocks.length;++t){const s=this._blocks[t]._appendEager();if(!s.inserted)break;i.aggregate(s)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._mapPosToBlock(this.displayValue.length);const e=new z;if(!s)return e;for(let n=s.index,u;u=this._blocks[n];++n){var r;const s=u._appendChar(t,{...i,_beforeTailState:(r=i._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});e.aggregate(s);if(s.consumed)break}return e}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=new L;if(t===i)return s;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{const n=t.extractTail(e,r);n.stop=this._findStopBefore(i);n.from=this._blockStartPos(i);if(n instanceof L)n.blockIndex=i;s.extend(n)}));return s}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(s===void 0){s={}}if(t===i)return"";let e="";this._forEachBlocksInRange(t,i,((t,i,r,n)=>{e+=t.extractInput(r,n,s)}));return e}_findStopBefore(t){let i;for(let s=0;s<this._stops.length;++s){const e=this._stops[s];if(e<=t)i=e;else break}return i}_appendPlaceholder(t){const i=new z;if(this.lazy&&t==null)return i;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return i;const e=s.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(e,r).forEach((s=>{if(!s.lazy||t!=null){var e;i.aggregate(s._appendPlaceholder((e=s._blocks)==null?void 0:e.length))}}));return i}_mapPosToBlock(t){let i="";for(let s=0;s<this._blocks.length;++s){const e=this._blocks[s];const r=i.length;i+=e.displayValue;if(t<=i.length){return{index:s,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,s){if(i===void 0){i=this.displayValue.length}const e=this._mapPosToBlock(t);if(e){const t=this._mapPosToBlock(i);const r=t&&e.index===t.index;const n=e.offset;const u=t&&r?t.offset:this._blocks[e.index].displayValue.length;s(this._blocks[e.index],e.index,n,u);if(t&&!r){for(let i=e.index+1;i<t.index;++i){s(this._blocks[i],i,0,this._blocks[i].displayValue.length)}s(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s.aggregate(t.remove(e,r))}));return s}nearestInputPos(t,i){if(i===void 0){i=A.NONE}if(!this._blocks.length)return 0;const s=new q(this,t);if(i===A.NONE){if(s.pushRightBeforeInput())return s.pos;s.popState();if(s.pushLeftBeforeInput())return s.pos;return this.displayValue.length}if(i===A.LEFT||i===A.FORCE_LEFT){if(i===A.LEFT){s.pushRightBeforeFilled();if(s.ok&&s.pos===t)return t;s.popState()}s.pushLeftBeforeInput();s.pushLeftBeforeRequired();s.pushLeftBeforeFilled();if(i===A.LEFT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.ok&&s.pos<=t)return s.pos;s.popState();if(s.ok&&s.pos<=t)return s.pos;s.popState()}if(s.ok)return s.pos;if(i===A.FORCE_LEFT)return 0;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return 0}if(i===A.RIGHT||i===A.FORCE_RIGHT){s.pushRightBeforeInput();s.pushRightBeforeRequired();if(s.pushRightBeforeFilled())return s.pos;if(i===A.FORCE_RIGHT)return this.displayValue.length;s.popState();if(s.ok)return s.pos;s.popState();if(s.ok)return s.pos;return this.nearestInputPos(t,A.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let s=0;this._forEachBlocksInRange(t,i,((t,i,e,r)=>{s+=t.totalInputPositions(e,r)}));return s}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new z;this._forEachBlocksInRange(0,this.displayValue.length,(s=>i.aggregate(s.pad(t))));return i}}U.DEFAULTS={...j.DEFAULTS,lazy:true,placeholderChar:"_"};U.STOP_CHAR="`";U.ESCAPE_CHAR="\\";U.InputDefinition=H;U.FixedDefinition=W;D.MaskedPattern=U;class Y extends U{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:s=this.from||0,maxLength:e=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=i;this.from=s;this.maxLength=Math.max(String(i).length,e);this.autofix=r;const u=String(this.from).padStart(this.maxLength,"0");const o=String(this.to).padStart(this.maxLength,"0");let h=0;while(h<o.length&&o[h]===u[h])++h;n.mask=o.slice(0,h).replace(/0/g,"\\0")+"0".repeat(this.maxLength-h);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let s="";const[,e,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){i="0".repeat(e.length)+r;s="9".repeat(e.length)+r}i=i.padEnd(this.maxLength,"0");s=s.padEnd(this.maxLength,"9");return[i,s]}doPrepareChar(t,i){if(i===void 0){i={}}let s;[t,s]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)s.skip=!this.isComplete;return[t,s]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const s=String(this.from).padStart(this.maxLength,"0");const e=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(s[this.value.length],i);if(Number(r)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(s[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(e[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const s=i.search(/[^0]/);if(s===-1&&i.length<=this._matchFrom)return true;const[e,r]=this.boundaries(i);return this.from<=Number(r)&&Number(e)<=this.to&&super.doValidate(t)}pad(t){const i=new z;if(this.value.length===this.maxLength)return i;const s=this.value;const e=this.maxLength-this.value.length;if(e){this.reset();for(let s=0;s<e;++s){i.aggregate(super._appendCharRaw("0",t))}s.split("").forEach((t=>this._appendCharRaw(t)))}return i}}D.MaskedRange=Y;const K="d{.}`m{.}`Y";class G extends U{static extractPatternOptions(t){const{mask:i,pattern:s,...e}=t;return{...e,mask:x(i)?i:s}}constructor(t){super(G.extractPatternOptions({...G.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:s,blocks:e,...r}={...G.DEFAULTS,...t};const n=Object.assign({},G.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,e);super._update({...r,mask:x(i)?i:s,blocks:n})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(G.extractPatternOptions(t))}}G.GET_DEFAULT_BLOCKS=()=>({d:{mask:Y,from:1,to:31,maxLength:2},m:{mask:Y,from:1,to:12,maxLength:2},Y:{mask:Y,from:1900,to:9999}});G.DEFAULTS={...U.DEFAULTS,mask:Date,pattern:K,format:(t,i)=>{if(!t)return"";const s=String(t.getDate()).padStart(2,"0");const e=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[s,e,r].join(".")},parse:(t,i)=>{const[s,e,r]=t.split(".").map(Number);return new Date(r,e-1,s)}};D.MaskedDate=G;class $ extends j{constructor(t){super({...$.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...s}=B(t);const e=I({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});if(i)this.exposeMask=e;return e})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=this._applyDispatch(t,i);if(this.currentMask){s.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return s}_applyDispatch(t,i,s){if(t===void 0){t=""}if(i===void 0){i={}}if(s===void 0){s=""}const e=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const r=this.rawInputValue;const n=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;const u=r.slice(n.length);const o=this.currentMask;const h=new z;const a=o==null?void 0:o.state;this.currentMask=this.doDispatch(t,{...i},s);if(this.currentMask){if(this.currentMask!==o){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});h.tailShift=this.currentMask.value.length-e.length}if(u){h.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(a){this.currentMask.state=a}}return h}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new z;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,s;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((s=t._beforeTailState)==null?void 0:s.currentMask)||t._beforeTailState}}doDispatch(t,i,s){if(i===void 0){i={}}if(s===void 0){s=""}return this.dispatch(t,this,i,s)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepare(t,i);if(this.currentMask){let t;[s,t]=super.doPrepare(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}doPrepareChar(t,i){if(i===void 0){i={}}let[s,e]=super.doPrepareChar(t,i);if(this.currentMask){let t;[s,t]=super.doPrepareChar(s,this.currentMaskFlags(i));e=e.aggregate(t)}return[s,e]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const s=new z;if(this.currentMask){s.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return s}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:s,currentMask:e,...r}=t;if(i)this.compiledMasks.forEach(((t,s)=>t.state=i[s]));if(s!=null){this.currentMask=s;this.currentMask.state=e}super.state=r}extractInput(t,i,s){return this.currentMask?this.currentMask.extractInput(t,i,s):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,s)=>{if(!t[s])return;const{mask:e,...r}=t[s];return F(i,r)&&i.maskEquals(e)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}$.DEFAULTS={...j.DEFAULTS,dispatch:(t,i,s,e)=>{if(!i.compiledMasks.length)return;const r=i.rawInputValue;const n=i.compiledMasks.map(((n,u)=>{const o=i.currentMask===n;const h=o?n.displayValue.length:n.nearestInputPos(n.displayValue.length,A.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!o){n.remove(h)}n.append(t,i.currentMaskFlags(s));n.appendTail(e);return{index:u,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(h,n.nearestInputPos(n.displayValue.length,A.FORCE_LEFT)))}}));n.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[n[0].index]}};D.MaskedDynamic=$;class X extends U{constructor(t){super({...X.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...s}=t;if(i){const t=i.map((t=>t.length));const e=Math.min(...t);const r=Math.max(...t)-e;s.mask="*".repeat(e);if(r)s.mask+="["+"*".repeat(r)+"]";this.enum=i}super._update(s)}_appendCharRaw(t,i){if(i===void 0){i={}}const s=Math.min(this.nearestInputPos(0,A.FORCE_RIGHT),this.value.length);const e=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,s)));if(e.length){if(e.length===1){this._forEachBlocksInRange(0,this.value.length,((t,s)=>{const r=e[0][s];if(s>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,i)}))}const t=super._appendCharRaw(e[0][this.value.length],i);if(e.length===1){e[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new z({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new N("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new z;const s=Math.min(super.nearestInputPos(0,A.FORCE_RIGHT),this.value.length);let e;for(e=t;e>=0;--e){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(s,e),s)));if(t.length>1)break}const r=super.remove(e,i);r.tailShift+=e-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}X.DEFAULTS={...U.DEFAULTS,matchValue:(t,i,s)=>t.indexOf(i,s)===s};D.MaskedEnum=X;class J extends j{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}D.MaskedFunction=J;var Q;class tt extends j{constructor(t){super({...tt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const s=(this.scale?"("+k(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+s);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(k).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(k(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[s,e]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!s)e.skip=true;if(s&&!this.allowPositive&&!this.value&&s!=="-")e.aggregate(this._appendChar("-"));return[s,e]}_separatorsCount(t,i){if(i===void 0){i=false}let s=0;for(let e=0;e<t;++e){if(this._value.indexOf(this.thousandsSeparator,e)===e){++s;if(i)t+=this.thousandsSeparator.length}}return s}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,s){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,s))}_appendCharRaw(t,i){if(i===void 0){i={}}const s=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const e=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let u=!isNaN(n);let o=false;if(u){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(tt.UNMASKED_RADIX,this.radix);o||(o=r===this._value&&!i.tail)}else{u=false}}u&&(u=Boolean(this._value.match(this._numberRegExp)))}let h;if(!u){this._value=r;h=new z}else{h=new z({inserted:this._value.slice(r.length),rawInserted:o?"":t,skip:o})}this._value=this._insertThousandsSeparators(this._value);const a=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(a);h.tailShift+=(l-e)*this.thousandsSeparator.length;return h}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const s=this.value.indexOf(this.thousandsSeparator,i);if(s<=t)return s}return-1}_adjustRangeWithSeparators(t,i){const s=this._findSeparatorAround(t);if(s>=0)t=s;const e=this._findSeparatorAround(i);if(e>=0)i=e+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const s=this.value.slice(0,t);const e=this.value.slice(i);const r=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+e));const n=this._separatorsCountFromSlice(s);return new z({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case A.NONE:case A.LEFT:case A.FORCE_LEFT:{const s=this._findSeparatorAround(t-1);if(s>=0){const e=s+this.thousandsSeparator.length;if(t<e||this.value.length<=e||i===A.FORCE_LEFT){return s}}break}case A.RIGHT:case A.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let s=this.value;if(this.normalizeZeros)s=this._normalizeZeros(s);if(this.padFractionalZeros&&this.scale>0)s=this._padFractionalZeros(s);this._value=s}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,s,e)=>i+e));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,s){if(i===void 0){i={}}const e=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===tt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,s)&&!e}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,tt.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(tt.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)||tt.EMPTY_VALUES.includes(t)&&tt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}Q=tt;tt.UNMASKED_RADIX=".";tt.EMPTY_VALUES=[...j.EMPTY_VALUES,0];tt.DEFAULTS={...j.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Q.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})};D.MaskedNumber=tt;const it={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function st(t,i,s){if(i===void 0){i=it.MASKED}if(s===void 0){s=it.MASKED}const e=I(t);return t=>e.runIsolated((e=>{e[i]=t;return e[s]}))}function et(t,i,s,e){return st(i,s,e)(t)}D.PIPE_TYPE=it;D.createPipe=st;D.pipe=et;class rt extends U{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,s,e;const{repeat:r,...n}=B(t);this._blockOpts=Object.assign({},this._blockOpts,n);const u=I(this._blockOpts);this.repeat=(i=(s=r!=null?r:u.repeat)!=null?s:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((e=this._blocks)==null?void 0:e.length)||0,this.repeatFrom)),blocks:{m:u},eager:u.eager,overwrite:u.overwrite,skipInvalid:u.skipInvalid,lazy:u.lazy,placeholderChar:u.placeholderChar,displayChar:u.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(I(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const s=new z;for(let o=(e=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?e:Math.max(this._blocks.length-1,0),h,a;h=(n=this._blocks[o])!=null?n:a=!a&&this._allocateBlock(o);++o){var e,r,n,u;const l=h._appendChar(t,{...i,_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[o]});if(l.skip&&a){this._blocks.pop();this.mask=this.mask.slice(1);break}s.aggregate(l);if(l.consumed)break}return s}_trimEmptyTail(t,i){var s,e;if(t===void 0){t=0}const r=Math.max(((s=this._mapPosToBlock(t))==null?void 0:s.index)||0,this.repeatFrom,0);let n;if(i!=null)n=(e=this._mapPosToBlock(i))==null?void 0:e.index;if(n==null)n=this._blocks.length-1;let u=0;for(let t=n;r<=t;--t,++u){if(this._blocks[t].unmaskedValue)break}if(u){this._blocks.splice(n-u+1,u);this.mask=this.mask.slice(u)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const s=super.remove(t,i);this._trimEmptyTail(t,i);return s}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}D.RepeatBlock=rt;try{globalThis.IMask=D}catch{}const nt='@-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 ut={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 ot=Object.entries(ut).map((([t,i])=>({value:t,label:i})));const ht=`<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 at=class{constructor(s){t(this,s);this.exit=i(this,"exit");this.pinEntered=i(this,"pinEntered");this.next=i(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){D(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var s=t.getMonth()+1;var e=t.getFullYear();if(i<10)i="0"+i;if(s<10)s="0"+s;return[s,i,e].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,n,u,o,h,a,l,d,c,f,p,v,g;if(this.mode==="choice"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ht}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((t=>s("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("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}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("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}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("verdocs-select-input",{options:ot,value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("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}})),s("div",{class:"field"},s("label",null),s("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),s("span",null,"I agree to provide my personal information in order to validate my identity.")),s("div",{class:"buttons"},s("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)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)})))))}return s(r,null,s("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(e,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:ht}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};at.style=nt;const lt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-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 dt=`<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 ct=class{constructor(s){t(this,s);this.exit=i(this,"exit");this.next=i(this,"next");this.resendTimeout=null;this.endpoint=f;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{u(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();u(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();u(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 s(r,{key:"e9936d57ff961236f26620800e7f315a715b50a0"},s("div",{key:"1db7981fcf3fde1a8999fbe7bf122cc0169011bc",class:"background-overlay",onClick:t=>this.handleDismiss(t)},s("div",{key:"8ef5993c5bcf1ac08abbcdda589530413c58bbdc",class:"dialog"},s("div",{key:"360f24b0eb2eb4a34d08080f36a1ee5a2aaa4774",class:"heading"},"Verification Required"),s("div",{key:"6d34ca6bf6ad50c39bb813c64b3acb7a4ee81c02",class:"help-box"},s("div",{key:"7b3afd68c4a705bc83f889ed3709ff51dd40758c",class:"help-icon",innerHTML:dt}),s("div",{key:"34a04301351ce588ebf2f4cca678152e1486941a",class:"help-details"},s("div",{key:"bc9c4bc2ca0b6db46485c2f22b329cf25ffb97af",class:"help-title"},"Please verify your email address"),s("div",{key:"a45508806c35bb2d7d44d5a83e289dadb6584c84",class:"help-text"},"Check your email for a one-time code, and enter it below."))),s("div",{key:"8ca152850009203189a9a73c18f320989c97c741",class:"input"},s("label",{key:"4f6f6dcfd0502c69bab6c2fb7f319bcbf84645b6",htmlFor:"verdocs-otp-input"},"Code:"),s("input",{key:"6b859b0e73afe9963d6934d5b7efa921daf1c547",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})),s("div",{key:"0d7f1f45563bd2a1f891efa639addf2eb62d5591",class:"buttons"},s("verdocs-button",{key:"55f8bb22817142e371420e0a5c15f133779fd6c9",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{key:"8ebbcc0fcd384a2600f92aeb8c832d46804185a4",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),s("verdocs-button",{key:"af1bf5d46d21011fd13c0ad2c4af693c11ad2fe0",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};ct.style=lt;const ft='@-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 pt=class{constructor(s){t(this,s);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.another=i(this,"another");this.view=i(this,"view");this.next=i(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,i,s;if(!this.endpoint){this.endpoint=o.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(e){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new g(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();b.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){b.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,s;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;l(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,s,e;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new g(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(e=t.response)===null||e===void 0?void 0:e.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.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 i=await a(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await a(this.endpoint,this.envelopeId,t.id);window.open(i,"_blank")}}break;case"download-all":v(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 s(r,null,s("verdocs-loader",null))}if(this.showLoadError){return s(r,null,s("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 s(r,null,s("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(d(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const u=this.envelope.documents.filter((t=>t.type==="attachment")).length;const o=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||o){i.push({label:""});if(n){i.push({id:"download-attachments",label:u>1?"Download Documents":"Download Document"})}if(o){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&o){i.push({id:"download-all",label:"Download All Files"})}}return s(r,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=c(1,t.pages);return s(e,null,i.map((i=>{var e;const r=((e=t.page_sizes)===null||e===void 0?void 0:e[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return n(this)}};pt.style=ft;export{at as verdocs_kba_dialog,ct as verdocs_otp_dialog,pt as verdocs_view};
|
2
|
+
//# sourceMappingURL=p-d8b36d95.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as e,c as t,h as s,F as i,H as o}from"./p-CF7i8guW.js";import{getRGBA as a}from"@verdocs/js-sdk";import{S as n}from"./p-7LXbcjVz.js";import{S as r}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,c as t,h as s,F as i,H as o}from"./p-CF7i8guW.js";import{getRGBA as a}from"@verdocs/js-sdk";import{S as n}from"./p-7LXbcjVz.js";import{S as r}from"./p-DmsV595e.js";const l='@-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-field-payment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:24px;height:24px;display:block;font-size:11px;position:relative;scroll-margin:20px 0;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment.disabled{opacity:0.5}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment.focused{-webkit-animation:verdocs-field-pulse 0.4s 1;animation:verdocs-field-pulse 0.4s 1}verdocs-field-payment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-payment .settings-icon svg{fill:#707ae5}verdocs-field-payment .settings-icon:hover{opacity:1}@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)}}';const d=class{constructor(s){e(this,s);this.settingsChanged=t(this,"settingsChanged");this.deleted=t(this,"deleted");this.source="template";this.sourceid="";this.fieldname="";this.field=null;this.disabled=false;this.done=false;this.editable=false;this.moveable=false;this.xscale=1;this.yscale=1;this.pagenumber=1;this.showingProperties=false;this.focused=false;this.signed=false;this.signatureUrl="";this.roleindex=0}componentWillLoad(){if(this.recipients&&this.recipients.length>0){const e=this.recipients.find((e=>e.type==="preparer"));console.log("Found preparer",e);if(e){this.preparedMessage=`Prepared by ${e["full_name"]}`}}}async focusField(){this.focused=true;setTimeout((()=>{this.focused=false}),500)}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.showPanel){e.showPanel()}}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.hidePanel){e.hidePanel()}}render(){const{source:e,sourceid:t,fieldname:l,editable:d=false,done:c=false,disabled:p=false,focused:f,xscale:h=1,yscale:g=1}=this;const{index:m,field:b}=r.getField(e,t,l,this.field);const u=a(m);if(!b){return s(i,null)}if(c){return s(o,{class:{done:c}},"$✓")}return s(o,{class:{focused:f,disabled:p},style:{backgroundColor:u}},s("button",{class:{hide:this.signed}},"$"),this.signed?s("div",{class:"frame"}):s("div",{style:{display:"none"}}),s("img",{width:"100%",height:"100%",src:this.signatureUrl,alt:"Payment Icon"}),d&&s(i,null,s("div",{id:`verdocs-settings-panel-trigger-${l}`,style:{transform:`scale(${Math.floor(1/h*1e3)/1e3}, ${Math.floor(1/g*1e3)/1e3})`},class:"settings-icon",innerHTML:n,onClick:e=>{e.stopPropagation();this.showingProperties=!this.showingProperties}}),this.showingProperties&&s("verdocs-portal",{anchor:`verdocs-settings-panel-trigger-${b.name}`,onClickAway:()=>this.showingProperties=false},s("verdocs-template-field-properties",{templateId:t,fieldName:b.name,onClose:()=>this.showingProperties=false,onDelete:()=>{var e;(e=this.deleted)===null||e===void 0?void 0:e.emit({fieldName:l});return this.hideSettingsPanel()},onSettingsChanged:e=>{var t;(t=this.settingsChanged)===null||t===void 0?void 0:t.emit(e.detail);return this.hideSettingsPanel()},helpText:"Check boxes allow the user to select one or more (non-exclusive) options."}))))}};d.style=l;export{d as verdocs_field_payment};
|
2
|
+
//# sourceMappingURL=p-e15b7c92.entry.js.map
|