@verdocs/web-sdk 6.2.1 → 6.2.4

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.
Files changed (631) hide show
  1. package/dist/cjs/{index-DftYQmBd.js → index-BSi_QTIT.js} +7 -4
  2. package/dist/cjs/{index-DftYQmBd.js.map → index-BSi_QTIT.js.map} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -10
  5. package/dist/cjs/verdocs-auth.entry.cjs.js.map +1 -1
  6. package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-button_3.cjs.entry.js +10 -6
  10. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +127 -58
  12. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  13. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +4 -4
  15. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +3 -3
  16. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  22. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +280 -154
  23. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  26. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  31. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  34. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -3
  37. package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -2
  40. package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  42. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  43. package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
  44. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +2 -2
  46. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  48. package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
  49. package/dist/collection/collection-manifest.json +2 -2
  50. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +8 -3
  51. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +28 -4
  52. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js.map +1 -1
  53. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  54. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  55. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
  56. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  57. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +1 -1
  58. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  59. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  60. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  61. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +163 -47
  62. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +282 -152
  63. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js.map +1 -1
  64. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  65. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  66. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  67. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +0 -9
  68. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  69. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  70. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  71. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  72. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  73. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  74. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  75. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  76. package/dist/components/index.js +1 -1
  77. package/dist/components/{p-DD7puHOD.js → p-6s2A2xbN.js} +29 -29
  78. package/dist/components/{p-DD7puHOD.js.map → p-6s2A2xbN.js.map} +1 -1
  79. package/dist/components/{p-DcWPdEq3.js → p-9Csbf-tN.js} +7 -7
  80. package/dist/components/{p-DcWPdEq3.js.map → p-9Csbf-tN.js.map} +1 -1
  81. package/dist/components/{p-Clw7inRP.js → p-9up2BmHp.js} +7 -4
  82. package/dist/components/p-9up2BmHp.js.map +1 -0
  83. package/dist/components/{p-DqU6EOrq.js → p-AVxZpgsX.js} +132 -63
  84. package/dist/components/p-AVxZpgsX.js.map +1 -0
  85. package/dist/components/{p-ZnrDtTZt.js → p-B0MvlQO2.js} +13 -13
  86. package/dist/components/{p-ZnrDtTZt.js.map → p-B0MvlQO2.js.map} +1 -1
  87. package/dist/components/{p-DpEBcKDj.js → p-B4UtR_2c.js} +12 -12
  88. package/dist/components/{p-DpEBcKDj.js.map → p-B4UtR_2c.js.map} +1 -1
  89. package/dist/components/{p-C4FQgN27.js → p-BL3Ul9SN.js} +3 -3
  90. package/dist/components/{p-C4FQgN27.js.map → p-BL3Ul9SN.js.map} +1 -1
  91. package/dist/components/{p-CQCFJea3.js → p-BUDGHfvB.js} +5 -5
  92. package/dist/components/{p-CQCFJea3.js.map → p-BUDGHfvB.js.map} +1 -1
  93. package/dist/components/{p-H5nk-La8.js → p-BVuTqQTL.js} +12 -12
  94. package/dist/components/{p-H5nk-La8.js.map → p-BVuTqQTL.js.map} +1 -1
  95. package/dist/components/{p-B7K8lTsJ.js → p-BW3GsUj9.js} +4 -4
  96. package/dist/components/{p-B7K8lTsJ.js.map → p-BW3GsUj9.js.map} +1 -1
  97. package/dist/components/{p-D3et9AL5.js → p-BXFf3Lpk.js} +12 -12
  98. package/dist/components/{p-D3et9AL5.js.map → p-BXFf3Lpk.js.map} +1 -1
  99. package/dist/components/{p-EPmbbAEf.js → p-Bba-t7GY.js} +5 -5
  100. package/dist/components/{p-EPmbbAEf.js.map → p-Bba-t7GY.js.map} +1 -1
  101. package/dist/components/{p-CRwSFWzI.js → p-Bf5ceLBh.js} +4 -4
  102. package/dist/components/{p-CRwSFWzI.js.map → p-Bf5ceLBh.js.map} +1 -1
  103. package/dist/components/{p-BuubyFAZ.js → p-BhqIuhDg.js} +3 -3
  104. package/dist/components/{p-BuubyFAZ.js.map → p-BhqIuhDg.js.map} +1 -1
  105. package/dist/components/{p-BdJ3dzrK.js → p-Bq8xEv_t.js} +10 -10
  106. package/dist/components/{p-BdJ3dzrK.js.map → p-Bq8xEv_t.js.map} +1 -1
  107. package/dist/components/{p-B9Ea7YKs.js → p-BvDqCFDj.js} +14 -9
  108. package/dist/components/p-BvDqCFDj.js.map +1 -0
  109. package/dist/components/{p-KBnlWGyn.js → p-C2Dmo84A.js} +3 -3
  110. package/dist/components/{p-KBnlWGyn.js.map → p-C2Dmo84A.js.map} +1 -1
  111. package/dist/components/{p-CQobV491.js → p-C2cseLAY.js} +3 -3
  112. package/dist/components/{p-CQobV491.js.map → p-C2cseLAY.js.map} +1 -1
  113. package/dist/components/{p-ChYa_oDl.js → p-C3iwT41e.js} +3 -3
  114. package/dist/components/{p-ChYa_oDl.js.map → p-C3iwT41e.js.map} +1 -1
  115. package/dist/components/{p-Bsj4gHYP.js → p-C4lOZS20.js} +12 -12
  116. package/dist/components/{p-Bsj4gHYP.js.map → p-C4lOZS20.js.map} +1 -1
  117. package/dist/components/{p-B5eQd9Mt.js → p-CBRYaKLM.js} +4 -4
  118. package/dist/components/{p-B5eQd9Mt.js.map → p-CBRYaKLM.js.map} +1 -1
  119. package/dist/components/{p-WzOFvlsv.js → p-CBfSBOmz.js} +7 -7
  120. package/dist/components/{p-WzOFvlsv.js.map → p-CBfSBOmz.js.map} +1 -1
  121. package/dist/components/{p-DIPvUaAv.js → p-CDYnBmu_.js} +14 -14
  122. package/dist/components/{p-DIPvUaAv.js.map → p-CDYnBmu_.js.map} +1 -1
  123. package/dist/components/{p-DMzzevWO.js → p-CPvyHpp6.js} +4 -4
  124. package/dist/components/{p-DMzzevWO.js.map → p-CPvyHpp6.js.map} +1 -1
  125. package/dist/components/{p-BRPzK8Xw.js → p-CcIaiNEM.js} +15 -15
  126. package/dist/components/{p-BRPzK8Xw.js.map → p-CcIaiNEM.js.map} +1 -1
  127. package/dist/components/{p-DLmnuCRM.js → p-CkxqbZql.js} +11 -11
  128. package/dist/components/{p-DLmnuCRM.js.map → p-CkxqbZql.js.map} +1 -1
  129. package/dist/components/{p-Driek-y5.js → p-Cm3Ns2TB.js} +4 -4
  130. package/dist/components/{p-Driek-y5.js.map → p-Cm3Ns2TB.js.map} +1 -1
  131. package/dist/components/{p-65TlZcx6.js → p-CrZquwr4.js} +6 -6
  132. package/dist/components/{p-65TlZcx6.js.map → p-CrZquwr4.js.map} +1 -1
  133. package/dist/components/{p-BaE2j0VJ.js → p-CtbvYEGE.js} +12 -12
  134. package/dist/components/{p-BaE2j0VJ.js.map → p-CtbvYEGE.js.map} +1 -1
  135. package/dist/components/{p-BLj6y0dz.js → p-Ctqad2FQ.js} +3 -3
  136. package/dist/components/{p-BLj6y0dz.js.map → p-Ctqad2FQ.js.map} +1 -1
  137. package/dist/components/{p-BoCrjpQu.js → p-CwgpN7A7.js} +6 -6
  138. package/dist/components/{p-BoCrjpQu.js.map → p-CwgpN7A7.js.map} +1 -1
  139. package/dist/components/{p-DvtzYG5e.js → p-DDxQuWAZ.js} +10 -10
  140. package/dist/components/{p-DvtzYG5e.js.map → p-DDxQuWAZ.js.map} +1 -1
  141. package/dist/components/{p-C-4fLUhc.js → p-DGJlf5J_.js} +3 -3
  142. package/dist/components/{p-C-4fLUhc.js.map → p-DGJlf5J_.js.map} +1 -1
  143. package/dist/components/{p-CO6oIgzX.js → p-DIl7zlTd.js} +3 -3
  144. package/dist/components/{p-CO6oIgzX.js.map → p-DIl7zlTd.js.map} +1 -1
  145. package/dist/components/{p-CKVx4yr2.js → p-DK8_N2Na.js} +28 -28
  146. package/dist/components/{p-CKVx4yr2.js.map → p-DK8_N2Na.js.map} +1 -1
  147. package/dist/components/{p-Bbme0kV0.js → p-DPBSrcaG.js} +7 -7
  148. package/dist/components/{p-Bbme0kV0.js.map → p-DPBSrcaG.js.map} +1 -1
  149. package/dist/components/{p-DlAdADTD.js → p-DSO1_d48.js} +12 -12
  150. package/dist/components/{p-DlAdADTD.js.map → p-DSO1_d48.js.map} +1 -1
  151. package/dist/components/{p-DnaGcy-V.js → p-D_QT5uZk.js} +3 -3
  152. package/dist/components/{p-DnaGcy-V.js.map → p-D_QT5uZk.js.map} +1 -1
  153. package/dist/components/{p-DesdkBUb.js → p-DaDjn3gR.js} +5 -5
  154. package/dist/components/{p-DesdkBUb.js.map → p-DaDjn3gR.js.map} +1 -1
  155. package/dist/components/{p-CI5cVahE.js → p-DfTz53m-.js} +12 -12
  156. package/dist/components/{p-CI5cVahE.js.map → p-DfTz53m-.js.map} +1 -1
  157. package/dist/components/{p-wBFmVUNi.js → p-Dwu1JL0y.js} +9 -9
  158. package/dist/components/{p-wBFmVUNi.js.map → p-Dwu1JL0y.js.map} +1 -1
  159. package/dist/components/{p-8YJmijSd.js → p-KqTfG8Kf.js} +3 -3
  160. package/dist/components/{p-8YJmijSd.js.map → p-KqTfG8Kf.js.map} +1 -1
  161. package/dist/components/{p-CXSpP5Gm.js → p-L3HpKTaM.js} +22 -16
  162. package/dist/components/p-L3HpKTaM.js.map +1 -0
  163. package/dist/components/p-LeCnrgBv.js +398 -0
  164. package/dist/components/p-LeCnrgBv.js.map +1 -0
  165. package/dist/components/{p-De55cjKE.js → p-Opf3i5hz.js} +3 -3
  166. package/dist/components/{p-De55cjKE.js.map → p-Opf3i5hz.js.map} +1 -1
  167. package/dist/components/{p-B9v-iqos.js → p-Q6w_Yld9.js} +10 -10
  168. package/dist/components/{p-B9v-iqos.js.map → p-Q6w_Yld9.js.map} +1 -1
  169. package/dist/components/{p-BEuU1xX4.js → p-RQJ9uyyW.js} +3 -3
  170. package/dist/components/{p-BEuU1xX4.js.map → p-RQJ9uyyW.js.map} +1 -1
  171. package/dist/components/{p-18h9UMkx.js → p-TkHAxPB_.js} +10 -10
  172. package/dist/components/{p-18h9UMkx.js.map → p-TkHAxPB_.js.map} +1 -1
  173. package/dist/components/{p-B7mqZJ5f.js → p-_BQ9q2MT.js} +4 -4
  174. package/dist/components/{p-B7mqZJ5f.js.map → p-_BQ9q2MT.js.map} +1 -1
  175. package/dist/components/{p-FVg7B0fh.js → p-fnInzV73.js} +4 -4
  176. package/dist/components/{p-FVg7B0fh.js.map → p-fnInzV73.js.map} +1 -1
  177. package/dist/components/{p-BD-wJn_A.js → p-icGdbhUU.js} +3 -3
  178. package/dist/components/{p-BD-wJn_A.js.map → p-icGdbhUU.js.map} +1 -1
  179. package/dist/components/{p-Clx6y9zn.js → p-kvTSiSQ0.js} +3 -3
  180. package/dist/components/{p-Clx6y9zn.js.map → p-kvTSiSQ0.js.map} +1 -1
  181. package/dist/components/{p-BUjb-w39.js → p-mjn4Ftey.js} +27 -27
  182. package/dist/components/{p-BUjb-w39.js.map → p-mjn4Ftey.js.map} +1 -1
  183. package/dist/components/{p-CzXYz3XY.js → p-mrJQukV3.js} +5 -5
  184. package/dist/components/{p-CzXYz3XY.js.map → p-mrJQukV3.js.map} +1 -1
  185. package/dist/components/{p-DU0M0izE.js → p-tGg7lt4q.js} +6 -6
  186. package/dist/components/{p-DU0M0izE.js.map → p-tGg7lt4q.js.map} +1 -1
  187. package/dist/components/{p-BTA1be7y.js → p-wj1u5UNC.js} +3 -3
  188. package/dist/components/{p-BTA1be7y.js.map → p-wj1u5UNC.js.map} +1 -1
  189. package/dist/components/verdocs-auth.js +4 -13
  190. package/dist/components/verdocs-auth.js.map +1 -1
  191. package/dist/components/verdocs-build.js +43 -43
  192. package/dist/components/verdocs-button-panel.js +1 -1
  193. package/dist/components/verdocs-button.js +1 -1
  194. package/dist/components/verdocs-checkbox.js +1 -1
  195. package/dist/components/verdocs-component-error.js +1 -1
  196. package/dist/components/verdocs-contact-picker.js +1 -1
  197. package/dist/components/verdocs-date-input.js +2 -2
  198. package/dist/components/verdocs-delegate-dialog.js +1 -1
  199. package/dist/components/verdocs-dialog.js +1 -1
  200. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  201. package/dist/components/verdocs-dropdown.js +1 -1
  202. package/dist/components/verdocs-envelope-document-page.js +1 -1
  203. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  204. package/dist/components/verdocs-envelope-recipient-summary.js +2 -2
  205. package/dist/components/verdocs-envelope-sidebar.js +11 -11
  206. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  207. package/dist/components/verdocs-envelopes-list.js +17 -17
  208. package/dist/components/verdocs-field-attachment.js +1 -1
  209. package/dist/components/verdocs-field-checkbox.js +1 -1
  210. package/dist/components/verdocs-field-date.js +1 -1
  211. package/dist/components/verdocs-field-dropdown.js +1 -1
  212. package/dist/components/verdocs-field-initial.js +1 -1
  213. package/dist/components/verdocs-field-payment.js +10 -10
  214. package/dist/components/verdocs-field-radio.js +1 -1
  215. package/dist/components/verdocs-field-signature.js +1 -1
  216. package/dist/components/verdocs-field-textarea.js +1 -1
  217. package/dist/components/verdocs-field-textbox.js +1 -1
  218. package/dist/components/verdocs-field-timestamp.js +1 -1
  219. package/dist/components/verdocs-file-chooser.js +1 -1
  220. package/dist/components/verdocs-help-icon.js +1 -1
  221. package/dist/components/verdocs-initial-dialog.js +1 -1
  222. package/dist/components/verdocs-kba-dialog.js +1 -1
  223. package/dist/components/verdocs-loader.js +1 -1
  224. package/dist/components/verdocs-menu-panel.js +1 -1
  225. package/dist/components/verdocs-multiselect.js +2 -2
  226. package/dist/components/verdocs-ok-dialog.js +1 -1
  227. package/dist/components/verdocs-organization-card.js +2 -2
  228. package/dist/components/verdocs-otp-dialog.js +1 -1
  229. package/dist/components/verdocs-pagination.js +1 -1
  230. package/dist/components/verdocs-portal.js +1 -1
  231. package/dist/components/verdocs-preview.js +1 -1
  232. package/dist/components/verdocs-progress-bar.js +1 -1
  233. package/dist/components/verdocs-quick-filter.js +1 -1
  234. package/dist/components/verdocs-quick-functions.js +2 -2
  235. package/dist/components/verdocs-radio-button.js +1 -1
  236. package/dist/components/verdocs-search-box.js +1 -1
  237. package/dist/components/verdocs-search-tabs.js +2 -2
  238. package/dist/components/verdocs-select-input.js +1 -1
  239. package/dist/components/verdocs-send.js +1 -1
  240. package/dist/components/verdocs-sign.js +16 -16
  241. package/dist/components/verdocs-signature-dialog.js +1 -1
  242. package/dist/components/verdocs-spinner.js +1 -1
  243. package/dist/components/verdocs-status-indicator.js +1 -1
  244. package/dist/components/verdocs-switch.js +1 -1
  245. package/dist/components/verdocs-table.js +1 -1
  246. package/dist/components/verdocs-tabs.js +1 -1
  247. package/dist/components/verdocs-template-attachments.js +1 -1
  248. package/dist/components/verdocs-template-build-tabs.js +1 -1
  249. package/dist/components/verdocs-template-card.js +2 -2
  250. package/dist/components/verdocs-template-create.js +5 -5
  251. package/dist/components/verdocs-template-document-page.js +1 -1
  252. package/dist/components/verdocs-template-field-properties.js +1 -1
  253. package/dist/components/verdocs-template-fields.js +1 -1
  254. package/dist/components/verdocs-template-role-properties.js +1 -1
  255. package/dist/components/verdocs-template-roles.js +1 -1
  256. package/dist/components/verdocs-template-settings.js +1 -1
  257. package/dist/components/verdocs-template-star.js +1 -1
  258. package/dist/components/verdocs-template-tags.js +2 -2
  259. package/dist/components/verdocs-templates-list.js +11 -11
  260. package/dist/components/verdocs-text-input.js +1 -1
  261. package/dist/components/verdocs-toggle-button.js +2 -2
  262. package/dist/components/verdocs-toggle.js +1 -1
  263. package/dist/components/verdocs-toolbar-icon.js +1 -1
  264. package/dist/components/verdocs-upload-dialog.js +1 -1
  265. package/dist/components/verdocs-view.js +1 -1
  266. package/dist/custom-elements.json +2302 -0
  267. package/dist/esm/{index-C05sDUVN.js → index-DjAHH4ih.js} +7 -4
  268. package/dist/{esm-es5/index-C05sDUVN.js.map → esm/index-DjAHH4ih.js.map} +1 -1
  269. package/dist/esm/loader.js +3 -3
  270. package/dist/esm/verdocs-auth.entry.js +1 -10
  271. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  272. package/dist/esm/verdocs-build.entry.js +1 -1
  273. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  274. package/dist/esm/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
  275. package/dist/esm/verdocs-button_3.entry.js +10 -6
  276. package/dist/esm/verdocs-checkbox_5.entry.js +1 -1
  277. package/dist/esm/verdocs-contact-picker.entry.js +127 -58
  278. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  279. package/dist/esm/verdocs-date-input.entry.js +1 -1
  280. package/dist/esm/verdocs-delegate-dialog_5.entry.js +4 -4
  281. package/dist/esm/verdocs-dialog_2.entry.js +3 -3
  282. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  283. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  284. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  285. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
  286. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  287. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  288. package/dist/esm/verdocs-field-attachment_13.entry.js +280 -154
  289. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  290. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  291. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  292. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  293. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  294. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  295. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  296. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  297. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  298. package/dist/esm/verdocs-search-box.entry.js +1 -1
  299. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  300. package/dist/esm/verdocs-sign.entry.js +1 -1
  301. package/dist/esm/verdocs-spinner.entry.js +1 -1
  302. package/dist/esm/verdocs-status-indicator.entry.js +3 -3
  303. package/dist/esm/verdocs-switch.entry.js +1 -1
  304. package/dist/esm/verdocs-table.entry.js +1 -1
  305. package/dist/esm/verdocs-template-card.entry.js +2 -2
  306. package/dist/esm/verdocs-template-create.entry.js +1 -1
  307. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  308. package/dist/esm/verdocs-template-star.entry.js +2 -2
  309. package/dist/esm/verdocs-template-tags.entry.js +2 -2
  310. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  311. package/dist/esm/verdocs-toggle-button.entry.js +2 -2
  312. package/dist/esm/verdocs-toggle.entry.js +1 -1
  313. package/dist/esm/verdocs-web-sdk.js +4 -4
  314. package/dist/esm/verdocs-web-sdk.js.map +1 -1
  315. package/dist/esm-es5/index-DjAHH4ih.js +2 -0
  316. package/dist/{esm/index-C05sDUVN.js.map → esm-es5/index-DjAHH4ih.js.map} +1 -1
  317. package/dist/esm-es5/loader.js +1 -1
  318. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  319. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  320. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  321. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  322. package/dist/esm-es5/verdocs-button-panel_2.entry.js.map +1 -1
  323. package/dist/esm-es5/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
  324. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  325. package/dist/esm-es5/verdocs-button_3.entry.js.map +1 -1
  326. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  327. package/dist/esm-es5/verdocs-checkbox_5.entry.js.map +1 -1
  328. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  329. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  330. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  331. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
  332. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
  333. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  334. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  336. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  337. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js.map +1 -1
  338. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  339. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  340. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  341. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  342. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  343. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-menu-panel_2.entry.js.map +1 -1
  347. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
  352. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  361. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-template-create.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-template-document-page_2.entry.js.map +1 -1
  365. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  371. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  372. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +4 -0
  373. package/dist/types/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.d.ts +27 -0
  374. package/dist/types/components.d.ts +10 -0
  375. package/dist/types/stencil-public-runtime.d.ts +20 -10
  376. package/dist/verdocs-web-sdk/{p-0426bfc1.system.entry.js → p-03a6ee37.system.entry.js} +2 -2
  377. package/dist/verdocs-web-sdk/p-05b5f6a8.system.entry.js +2 -0
  378. package/dist/verdocs-web-sdk/{p-d4d86106.system.entry.js.map → p-05b5f6a8.system.entry.js.map} +1 -1
  379. package/dist/verdocs-web-sdk/p-072cf3bf.system.entry.js +4 -0
  380. package/dist/verdocs-web-sdk/p-072cf3bf.system.entry.js.map +1 -0
  381. package/dist/verdocs-web-sdk/{p-1ff272f6.entry.js → p-095f01ea.entry.js} +2 -2
  382. package/dist/verdocs-web-sdk/p-0c2b17b8.system.entry.js +2 -0
  383. package/dist/verdocs-web-sdk/{p-52c5c5eb.system.entry.js.map → p-0c2b17b8.system.entry.js.map} +1 -1
  384. package/dist/verdocs-web-sdk/{p-cf8ee113.entry.js → p-0c895013.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-08e3aed6.system.entry.js → p-0d3060d5.system.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-b2df2093.entry.js → p-10496565.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/p-16c12330.system.entry.js +2 -0
  388. package/dist/verdocs-web-sdk/{p-b5df6697.system.entry.js.map → p-16c12330.system.entry.js.map} +1 -1
  389. package/dist/verdocs-web-sdk/{p-ff032e47.entry.js → p-198505d1.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/p-1Cwi_bnK.system.js.map +1 -0
  391. package/dist/verdocs-web-sdk/{p-ab95e032.entry.js → p-1b86055f.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-5889c99f.entry.js → p-1bc8a67b.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-513e5b8a.system.entry.js → p-2083a0b5.system.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-9a109fed.entry.js → p-22d7fd99.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/p-24a5020f.system.entry.js +2 -0
  396. package/dist/verdocs-web-sdk/{p-f6b28e39.system.entry.js.map → p-24a5020f.system.entry.js.map} +1 -1
  397. package/dist/verdocs-web-sdk/{p-851bd188.entry.js → p-262e6ed3.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/p-296df8e6.system.entry.js +2 -0
  399. package/dist/verdocs-web-sdk/{p-61310d21.system.entry.js.map → p-296df8e6.system.entry.js.map} +1 -1
  400. package/dist/verdocs-web-sdk/{p-3c6db111.entry.js → p-2ab55e7e.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/p-2ab55e7e.entry.js.map +1 -0
  402. package/dist/verdocs-web-sdk/{p-76f93877.entry.js → p-331b0a01.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/p-3f18c552.system.entry.js +2 -0
  404. package/dist/verdocs-web-sdk/{p-f60868c7.system.entry.js.map → p-3f18c552.system.entry.js.map} +1 -1
  405. package/dist/verdocs-web-sdk/{p-b0d3e996.entry.js → p-408204b5.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-c9f807d7.system.entry.js → p-424acea6.system.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-5f01fbeb.system.entry.js → p-4251e17b.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/p-474ac411.entry.js +3 -0
  409. package/dist/verdocs-web-sdk/p-474ac411.entry.js.map +1 -0
  410. package/dist/verdocs-web-sdk/p-54089f3f.system.entry.js +2 -0
  411. package/dist/verdocs-web-sdk/{p-4ce49ea8.system.entry.js.map → p-54089f3f.system.entry.js.map} +1 -1
  412. package/dist/verdocs-web-sdk/{p-771f2a9e.entry.js → p-56cd489c.entry.js} +2 -2
  413. package/dist/verdocs-web-sdk/p-5808c4ab.system.entry.js +2 -0
  414. package/dist/verdocs-web-sdk/{p-c70f32bc.system.entry.js.map → p-5808c4ab.system.entry.js.map} +1 -1
  415. package/dist/verdocs-web-sdk/{p-dec943d5.entry.js → p-68dc5809.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-a5d53c9f.system.entry.js → p-6ec49614.system.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/p-6ec9a626.system.entry.js +2 -0
  418. package/dist/verdocs-web-sdk/{p-dbd65627.system.entry.js.map → p-6ec9a626.system.entry.js.map} +1 -1
  419. package/dist/verdocs-web-sdk/{p-a2f95711.entry.js → p-7032e5ee.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-759f13e2.entry.js → p-74f1369b.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/{p-5b7212dc.entry.js → p-74f5a0bd.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/p-75154f85.system.entry.js +2 -0
  423. package/dist/verdocs-web-sdk/{p-e6836f65.system.entry.js.map → p-75154f85.system.entry.js.map} +1 -1
  424. package/dist/verdocs-web-sdk/{p-74b6c738.system.entry.js → p-7787a0e4.system.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-9086941d.entry.js → p-778aa621.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/p-778aa621.entry.js.map +1 -0
  427. package/dist/verdocs-web-sdk/{p-381bb0d2.system.entry.js → p-77a495cb.system.entry.js} +2 -2
  428. package/dist/verdocs-web-sdk/{p-55ee046d.system.entry.js → p-79a57db4.system.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/{p-879c16ae.entry.js → p-7c552800.entry.js} +2 -2
  430. package/dist/verdocs-web-sdk/p-7e1ae321.system.entry.js +2 -0
  431. package/dist/verdocs-web-sdk/{p-14f07a32.system.entry.js.map → p-7e1ae321.system.entry.js.map} +1 -1
  432. package/dist/verdocs-web-sdk/{p-0d45a7bb.entry.js → p-83057e79.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/{p-305de09c.entry.js → p-84ef045b.entry.js} +2 -2
  434. package/dist/verdocs-web-sdk/{p-f8104621.system.entry.js → p-85a01930.system.entry.js} +2 -2
  435. package/dist/verdocs-web-sdk/{p-e08baa24.system.entry.js → p-8697ea44.system.entry.js} +2 -2
  436. package/dist/verdocs-web-sdk/p-8697ea44.system.entry.js.map +1 -0
  437. package/dist/verdocs-web-sdk/{p-217db764.system.entry.js → p-89675355.system.entry.js} +2 -2
  438. package/dist/verdocs-web-sdk/{p-f215d74d.system.entry.js → p-899a183a.system.entry.js} +2 -2
  439. package/dist/verdocs-web-sdk/{p-715b1538.entry.js → p-8ae75311.entry.js} +2 -2
  440. package/dist/verdocs-web-sdk/{p-fae894d6.system.entry.js → p-8daa82ec.system.entry.js} +2 -2
  441. package/dist/verdocs-web-sdk/{p-4040ff25.entry.js → p-8f615cf8.entry.js} +2 -2
  442. package/dist/verdocs-web-sdk/{p-36b211e9.system.entry.js → p-91455dc1.system.entry.js} +2 -2
  443. package/dist/verdocs-web-sdk/p-94805e3a.system.entry.js +2 -0
  444. package/dist/verdocs-web-sdk/{p-221da740.system.entry.js.map → p-94805e3a.system.entry.js.map} +1 -1
  445. package/dist/verdocs-web-sdk/{p-83369b59.entry.js → p-95098523.entry.js} +2 -2
  446. package/dist/verdocs-web-sdk/{p-0361b7f5.entry.js → p-9a614582.entry.js} +2 -2
  447. package/dist/verdocs-web-sdk/{p-Diy5Q9-6.system.js.map → p-B6BNgFvR.system.js.map} +1 -1
  448. package/dist/verdocs-web-sdk/{p-B6Yr6dLH.system.js.map → p-BAjoE0hn.system.js.map} +1 -1
  449. package/dist/verdocs-web-sdk/{p-DQiE2MRY.system.js.map → p-BDfCyBqE.system.js.map} +1 -1
  450. package/dist/verdocs-web-sdk/{p-DVZN96Di.system.js.map → p-BFiBadxx.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/{p-BvruBF8p.system.js.map → p-BLUIpLYQ.system.js.map} +1 -1
  452. package/dist/verdocs-web-sdk/{p-BteDuaoR.system.js.map → p-BR93bjYo.system.js.map} +1 -1
  453. package/dist/verdocs-web-sdk/p-BSxnvcXp.system.js +2 -0
  454. package/dist/verdocs-web-sdk/{p-B2ZTJRF1.system.js.map → p-BSxnvcXp.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/{p-BT4iau8_.system.js.map → p-BTH3kXDy.system.js.map} +1 -1
  456. package/dist/verdocs-web-sdk/{p-Di6KD3hm.system.js.map → p-BYcAVzPM.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/{p-BwAcNrO8.system.js.map → p-Bf1JxkHa.system.js.map} +1 -1
  458. package/dist/verdocs-web-sdk/{p-DjDnOHB1.system.js.map → p-Bfjmk6kM.system.js.map} +1 -1
  459. package/dist/verdocs-web-sdk/{p-CYdphBFp.system.js.map → p-C-KROPlf.system.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-DpwXyQ7Z.system.js.map → p-C-Q0RpYH.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-DoFYKh5S.system.js.map → p-CJgSdGDZ.system.js.map} +1 -1
  462. package/dist/verdocs-web-sdk/{p-BP6QzunY.system.js.map → p-Cdv-0jBY.system.js.map} +1 -1
  463. package/dist/verdocs-web-sdk/{p-Cp0lpB6k.system.js.map → p-CgYIryaO.system.js.map} +1 -1
  464. package/dist/verdocs-web-sdk/{p-BVgRWHdx.system.js.map → p-CoMELZur.system.js.map} +1 -1
  465. package/dist/verdocs-web-sdk/{p-BpVWw6cq.system.js.map → p-CqY4YwuC.system.js.map} +1 -1
  466. package/dist/verdocs-web-sdk/p-Cs7NUoKG.system.js.map +1 -0
  467. package/dist/verdocs-web-sdk/{p-B4Jok9g8.system.js.map → p-CuZVPC43.system.js.map} +1 -1
  468. package/dist/verdocs-web-sdk/{p-BswU_7jl.system.js.map → p-Cw8YN0pQ.system.js.map} +1 -1
  469. package/dist/verdocs-web-sdk/{p-TeE_49wp.system.js.map → p-D-jNdMbp.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/{p-4OWnEogw.system.js.map → p-D2J4BqZ5.system.js.map} +1 -1
  471. package/dist/verdocs-web-sdk/{p-D8jwiOjp.system.js.map → p-D5jBjbqb.system.js.map} +1 -1
  472. package/dist/verdocs-web-sdk/{p-qSIndqRC.system.js.map → p-D6lkIXxV.system.js.map} +1 -1
  473. package/dist/verdocs-web-sdk/{p-CEj4NLjk.system.js.map → p-DC4mn44e.system.js.map} +1 -1
  474. package/dist/verdocs-web-sdk/{p-CLugYiKe.system.js.map → p-DIFMCsR8.system.js.map} +1 -1
  475. package/dist/verdocs-web-sdk/{p-C3FrKBlJ.system.js.map → p-DN26hbJo.system.js.map} +1 -1
  476. package/dist/verdocs-web-sdk/{p-C05sDUVN.js → p-DjAHH4ih.js} +3 -3
  477. package/dist/verdocs-web-sdk/{p-C05sDUVN.js.map → p-DjAHH4ih.js.map} +1 -1
  478. package/dist/verdocs-web-sdk/{p-CJgSjfS3.system.js.map → p-DjReAtE4.system.js.map} +1 -1
  479. package/dist/verdocs-web-sdk/{p-BwvJ8lkq.system.js.map → p-DmidtinD.system.js.map} +1 -1
  480. package/dist/verdocs-web-sdk/{p-iOk-QRhr.system.js.map → p-DnpXTA0c.system.js.map} +1 -1
  481. package/dist/verdocs-web-sdk/p-DpcvJtUM.system.js.map +1 -0
  482. package/dist/verdocs-web-sdk/{p-BZ9rCFg-.system.js.map → p-DqN8pWd6.system.js.map} +1 -1
  483. package/dist/verdocs-web-sdk/{p-CxfpQzDf.system.js.map → p-DrJsQShN.system.js.map} +1 -1
  484. package/dist/verdocs-web-sdk/{p-gMXuliDq.system.js → p-IELtlxxf.system.js} +3 -3
  485. package/dist/verdocs-web-sdk/{p-gMXuliDq.system.js.map → p-IELtlxxf.system.js.map} +1 -1
  486. package/dist/verdocs-web-sdk/{p-BRiHRj-G.system.js.map → p-WL8pZ5_5.system.js.map} +1 -1
  487. package/dist/verdocs-web-sdk/{p-DRLUgxAz.system.js.map → p-YdG8FzTN.system.js.map} +1 -1
  488. package/dist/verdocs-web-sdk/p-a4af0218.system.entry.js +8 -0
  489. package/dist/verdocs-web-sdk/{p-ab3fcfa6.system.entry.js.map → p-a4af0218.system.entry.js.map} +1 -1
  490. package/dist/verdocs-web-sdk/p-a4b4356a.entry.js +2 -0
  491. package/dist/verdocs-web-sdk/p-a4b4356a.entry.js.map +1 -0
  492. package/dist/verdocs-web-sdk/p-a5c1783e.system.entry.js +2 -0
  493. package/dist/verdocs-web-sdk/p-a5c1783e.system.entry.js.map +1 -0
  494. package/dist/verdocs-web-sdk/{p-b35f630c.entry.js → p-a7b796c9.entry.js} +2 -2
  495. package/dist/verdocs-web-sdk/{p-7627b523.entry.js → p-a8ccb0e1.entry.js} +2 -2
  496. package/dist/verdocs-web-sdk/p-b0e8639b.system.entry.js +2 -0
  497. package/dist/verdocs-web-sdk/{p-9c719a1e.system.entry.js.map → p-b0e8639b.system.entry.js.map} +1 -1
  498. package/dist/verdocs-web-sdk/{p-dca0ee01.system.entry.js → p-b2598797.system.entry.js} +2 -2
  499. package/dist/verdocs-web-sdk/p-b2d5d57c.system.entry.js +2 -0
  500. package/dist/verdocs-web-sdk/{p-d28f8173.system.entry.js.map → p-b2d5d57c.system.entry.js.map} +1 -1
  501. package/dist/verdocs-web-sdk/{p-4fc7fb57.entry.js → p-b81c87a9.entry.js} +2 -2
  502. package/dist/verdocs-web-sdk/p-b954399f.system.entry.js +2 -0
  503. package/dist/verdocs-web-sdk/{p-66a34894.system.entry.js.map → p-b954399f.system.entry.js.map} +1 -1
  504. package/dist/verdocs-web-sdk/{p-af444549.system.entry.js → p-ba37926e.system.entry.js} +2 -2
  505. package/dist/verdocs-web-sdk/p-bcad2169.system.entry.js +2 -0
  506. package/dist/verdocs-web-sdk/{p-2642cf9a.system.entry.js.map → p-bcad2169.system.entry.js.map} +1 -1
  507. package/dist/verdocs-web-sdk/{p-29b12c84.entry.js → p-c137b66c.entry.js} +2 -2
  508. package/dist/verdocs-web-sdk/{p-0eab8901.entry.js → p-c636caf4.entry.js} +2 -2
  509. package/dist/verdocs-web-sdk/{p-8dfd4098.entry.js → p-d0cdb769.entry.js} +2 -2
  510. package/dist/verdocs-web-sdk/{p-3c4ae778.entry.js → p-d68d286d.entry.js} +2 -2
  511. package/dist/verdocs-web-sdk/{p-6c0c5157.entry.js → p-d995bf66.entry.js} +2 -2
  512. package/dist/verdocs-web-sdk/{p-f35d0bb1.system.entry.js → p-dc64588a.system.entry.js} +2 -2
  513. package/dist/verdocs-web-sdk/p-df9a63c8.system.entry.js +2 -0
  514. package/dist/verdocs-web-sdk/{p-c53bba5b.system.entry.js.map → p-df9a63c8.system.entry.js.map} +1 -1
  515. package/dist/verdocs-web-sdk/{p-fd41f58d.entry.js → p-e1010b5e.entry.js} +2 -2
  516. package/dist/verdocs-web-sdk/{p-ce79c107.entry.js → p-e251a7f7.entry.js} +2 -2
  517. package/dist/verdocs-web-sdk/{p-1563ebea.entry.js → p-e612587a.entry.js} +2 -2
  518. package/dist/verdocs-web-sdk/p-e6c86704.system.entry.js +2 -0
  519. package/dist/verdocs-web-sdk/{p-f45dd2e7.system.entry.js.map → p-e6c86704.system.entry.js.map} +1 -1
  520. package/dist/verdocs-web-sdk/{p-2d879f01.entry.js → p-e9be55a9.entry.js} +2 -2
  521. package/dist/verdocs-web-sdk/{p-bcff9d82.entry.js → p-f4d573b8.entry.js} +2 -2
  522. package/dist/verdocs-web-sdk/p-f706a680.system.entry.js +2 -0
  523. package/dist/verdocs-web-sdk/{p-0e597594.system.entry.js.map → p-f706a680.system.entry.js.map} +1 -1
  524. package/dist/verdocs-web-sdk/{p-dcf8f80f.entry.js → p-fbb5d382.entry.js} +2 -2
  525. package/dist/verdocs-web-sdk/{p-CDc0NxA9.system.js.map → p-jGm3fIdS.system.js.map} +1 -1
  526. package/dist/verdocs-web-sdk/{p-eTl5b3_e.system.js.map → p-mV1PT3tZ.system.js.map} +1 -1
  527. package/dist/verdocs-web-sdk/{p-DyL8qWVe.system.js.map → p-pcmVRVX-.system.js.map} +1 -1
  528. package/dist/verdocs-web-sdk/{p-BlMT1vy_.system.js.map → p-qmFLckgf.system.js.map} +1 -1
  529. package/dist/verdocs-web-sdk/{p-X4iTgaqa.system.js.map → p-tlNLqVnV.system.js.map} +1 -1
  530. package/dist/verdocs-web-sdk/verdocs-auth.entry.esm.js.map +1 -1
  531. package/dist/verdocs-web-sdk/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.esm.js.map +1 -1
  532. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  533. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  534. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  535. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  536. package/package.json +5 -5
  537. package/dist/components/p-B9Ea7YKs.js.map +0 -1
  538. package/dist/components/p-CXSpP5Gm.js.map +0 -1
  539. package/dist/components/p-Clw7inRP.js.map +0 -1
  540. package/dist/components/p-D5p6S1bi.js +0 -268
  541. package/dist/components/p-D5p6S1bi.js.map +0 -1
  542. package/dist/components/p-DqU6EOrq.js.map +0 -1
  543. package/dist/esm-es5/index-C05sDUVN.js +0 -2
  544. package/dist/verdocs-web-sdk/p-0e597594.system.entry.js +0 -2
  545. package/dist/verdocs-web-sdk/p-14f07a32.system.entry.js +0 -2
  546. package/dist/verdocs-web-sdk/p-221da740.system.entry.js +0 -2
  547. package/dist/verdocs-web-sdk/p-2642cf9a.system.entry.js +0 -2
  548. package/dist/verdocs-web-sdk/p-3c6db111.entry.js.map +0 -1
  549. package/dist/verdocs-web-sdk/p-4ce49ea8.system.entry.js +0 -2
  550. package/dist/verdocs-web-sdk/p-52c5c5eb.system.entry.js +0 -2
  551. package/dist/verdocs-web-sdk/p-61310d21.system.entry.js +0 -2
  552. package/dist/verdocs-web-sdk/p-66a34894.system.entry.js +0 -2
  553. package/dist/verdocs-web-sdk/p-87b0aa15.entry.js +0 -2
  554. package/dist/verdocs-web-sdk/p-87b0aa15.entry.js.map +0 -1
  555. package/dist/verdocs-web-sdk/p-9086941d.entry.js.map +0 -1
  556. package/dist/verdocs-web-sdk/p-929c6dcb.system.entry.js +0 -4
  557. package/dist/verdocs-web-sdk/p-929c6dcb.system.entry.js.map +0 -1
  558. package/dist/verdocs-web-sdk/p-9c719a1e.system.entry.js +0 -2
  559. package/dist/verdocs-web-sdk/p-B2ZTJRF1.system.js +0 -2
  560. package/dist/verdocs-web-sdk/p-BDT8VDnV.system.js.map +0 -1
  561. package/dist/verdocs-web-sdk/p-BVYtr8jX.system.js.map +0 -1
  562. package/dist/verdocs-web-sdk/p-Gi6iS8bX.system.js.map +0 -1
  563. package/dist/verdocs-web-sdk/p-ab3fcfa6.system.entry.js +0 -8
  564. package/dist/verdocs-web-sdk/p-b5df6697.system.entry.js +0 -2
  565. package/dist/verdocs-web-sdk/p-c53bba5b.system.entry.js +0 -2
  566. package/dist/verdocs-web-sdk/p-c70f32bc.system.entry.js +0 -2
  567. package/dist/verdocs-web-sdk/p-d28f8173.system.entry.js +0 -2
  568. package/dist/verdocs-web-sdk/p-d4d86106.system.entry.js +0 -2
  569. package/dist/verdocs-web-sdk/p-d65600c4.entry.js +0 -3
  570. package/dist/verdocs-web-sdk/p-d65600c4.entry.js.map +0 -1
  571. package/dist/verdocs-web-sdk/p-dbd65627.system.entry.js +0 -2
  572. package/dist/verdocs-web-sdk/p-e08baa24.system.entry.js.map +0 -1
  573. package/dist/verdocs-web-sdk/p-e6836f65.system.entry.js +0 -2
  574. package/dist/verdocs-web-sdk/p-f45dd2e7.system.entry.js +0 -2
  575. package/dist/verdocs-web-sdk/p-f6016dfb.system.entry.js +0 -2
  576. package/dist/verdocs-web-sdk/p-f6016dfb.system.entry.js.map +0 -1
  577. package/dist/verdocs-web-sdk/p-f60868c7.system.entry.js +0 -2
  578. package/dist/verdocs-web-sdk/p-f6b28e39.system.entry.js +0 -2
  579. /package/dist/verdocs-web-sdk/{p-0426bfc1.system.entry.js.map → p-03a6ee37.system.entry.js.map} +0 -0
  580. /package/dist/verdocs-web-sdk/{p-1ff272f6.entry.js.map → p-095f01ea.entry.js.map} +0 -0
  581. /package/dist/verdocs-web-sdk/{p-cf8ee113.entry.js.map → p-0c895013.entry.js.map} +0 -0
  582. /package/dist/verdocs-web-sdk/{p-08e3aed6.system.entry.js.map → p-0d3060d5.system.entry.js.map} +0 -0
  583. /package/dist/verdocs-web-sdk/{p-b2df2093.entry.js.map → p-10496565.entry.js.map} +0 -0
  584. /package/dist/verdocs-web-sdk/{p-ff032e47.entry.js.map → p-198505d1.entry.js.map} +0 -0
  585. /package/dist/verdocs-web-sdk/{p-ab95e032.entry.js.map → p-1b86055f.entry.js.map} +0 -0
  586. /package/dist/verdocs-web-sdk/{p-5889c99f.entry.js.map → p-1bc8a67b.entry.js.map} +0 -0
  587. /package/dist/verdocs-web-sdk/{p-513e5b8a.system.entry.js.map → p-2083a0b5.system.entry.js.map} +0 -0
  588. /package/dist/verdocs-web-sdk/{p-9a109fed.entry.js.map → p-22d7fd99.entry.js.map} +0 -0
  589. /package/dist/verdocs-web-sdk/{p-851bd188.entry.js.map → p-262e6ed3.entry.js.map} +0 -0
  590. /package/dist/verdocs-web-sdk/{p-76f93877.entry.js.map → p-331b0a01.entry.js.map} +0 -0
  591. /package/dist/verdocs-web-sdk/{p-b0d3e996.entry.js.map → p-408204b5.entry.js.map} +0 -0
  592. /package/dist/verdocs-web-sdk/{p-c9f807d7.system.entry.js.map → p-424acea6.system.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-5f01fbeb.system.entry.js.map → p-4251e17b.system.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-771f2a9e.entry.js.map → p-56cd489c.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-dec943d5.entry.js.map → p-68dc5809.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-a5d53c9f.system.entry.js.map → p-6ec49614.system.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-a2f95711.entry.js.map → p-7032e5ee.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-759f13e2.entry.js.map → p-74f1369b.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-5b7212dc.entry.js.map → p-74f5a0bd.entry.js.map} +0 -0
  600. /package/dist/verdocs-web-sdk/{p-74b6c738.system.entry.js.map → p-7787a0e4.system.entry.js.map} +0 -0
  601. /package/dist/verdocs-web-sdk/{p-381bb0d2.system.entry.js.map → p-77a495cb.system.entry.js.map} +0 -0
  602. /package/dist/verdocs-web-sdk/{p-55ee046d.system.entry.js.map → p-79a57db4.system.entry.js.map} +0 -0
  603. /package/dist/verdocs-web-sdk/{p-879c16ae.entry.js.map → p-7c552800.entry.js.map} +0 -0
  604. /package/dist/verdocs-web-sdk/{p-0d45a7bb.entry.js.map → p-83057e79.entry.js.map} +0 -0
  605. /package/dist/verdocs-web-sdk/{p-305de09c.entry.js.map → p-84ef045b.entry.js.map} +0 -0
  606. /package/dist/verdocs-web-sdk/{p-f8104621.system.entry.js.map → p-85a01930.system.entry.js.map} +0 -0
  607. /package/dist/verdocs-web-sdk/{p-217db764.system.entry.js.map → p-89675355.system.entry.js.map} +0 -0
  608. /package/dist/verdocs-web-sdk/{p-f215d74d.system.entry.js.map → p-899a183a.system.entry.js.map} +0 -0
  609. /package/dist/verdocs-web-sdk/{p-715b1538.entry.js.map → p-8ae75311.entry.js.map} +0 -0
  610. /package/dist/verdocs-web-sdk/{p-fae894d6.system.entry.js.map → p-8daa82ec.system.entry.js.map} +0 -0
  611. /package/dist/verdocs-web-sdk/{p-4040ff25.entry.js.map → p-8f615cf8.entry.js.map} +0 -0
  612. /package/dist/verdocs-web-sdk/{p-36b211e9.system.entry.js.map → p-91455dc1.system.entry.js.map} +0 -0
  613. /package/dist/verdocs-web-sdk/{p-83369b59.entry.js.map → p-95098523.entry.js.map} +0 -0
  614. /package/dist/verdocs-web-sdk/{p-0361b7f5.entry.js.map → p-9a614582.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-b35f630c.entry.js.map → p-a7b796c9.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-7627b523.entry.js.map → p-a8ccb0e1.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-dca0ee01.system.entry.js.map → p-b2598797.system.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-4fc7fb57.entry.js.map → p-b81c87a9.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-af444549.system.entry.js.map → p-ba37926e.system.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-29b12c84.entry.js.map → p-c137b66c.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-0eab8901.entry.js.map → p-c636caf4.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-8dfd4098.entry.js.map → p-d0cdb769.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-3c4ae778.entry.js.map → p-d68d286d.entry.js.map} +0 -0
  624. /package/dist/verdocs-web-sdk/{p-6c0c5157.entry.js.map → p-d995bf66.entry.js.map} +0 -0
  625. /package/dist/verdocs-web-sdk/{p-f35d0bb1.system.entry.js.map → p-dc64588a.system.entry.js.map} +0 -0
  626. /package/dist/verdocs-web-sdk/{p-fd41f58d.entry.js.map → p-e1010b5e.entry.js.map} +0 -0
  627. /package/dist/verdocs-web-sdk/{p-ce79c107.entry.js.map → p-e251a7f7.entry.js.map} +0 -0
  628. /package/dist/verdocs-web-sdk/{p-1563ebea.entry.js.map → p-e612587a.entry.js.map} +0 -0
  629. /package/dist/verdocs-web-sdk/{p-2d879f01.entry.js.map → p-e9be55a9.entry.js.map} +0 -0
  630. /package/dist/verdocs-web-sdk/{p-bcff9d82.entry.js.map → p-f4d573b8.entry.js.map} +0 -0
  631. /package/dist/verdocs-web-sdk/{p-dcf8f80f.entry.js.map → p-fbb5d382.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as i,F as s,H as r,g as n}from"./p-C05sDUVN.js";import{D as o}from"./p-C_Xku1v2.js";import{verifySigner as a,VerdocsEndpoint as u,getEnvelope as h,getEnvelopesZip as l,getEnvelopeDocumentDownloadLink as d,cancelEnvelope as c,userCanCancelEnvelope as f,integerSequence as p}from"@verdocs/js-sdk";import{V as b}from"./p-CyvDgtoV.js";import{S as g}from"./p-C1sRVZWv.js";import{S as v}from"./p-DmsV595e.js";const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-delegate-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .input{gap:10px;margin:5px 0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-delegate-dialog .input label{margin:8px 0 0 0;-ms-flex:0 0 100px;flex:0 0 100px;font-size:13px;font-weight:500;line-height:10px;white-space:nowrap}verdocs-delegate-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc}verdocs-delegate-dialog .input textarea{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc;font-family:"Inter", "Barlow", sans-serif}verdocs-delegate-dialog .input.names input{width:80px}verdocs-delegate-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-delegate-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-delegate-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-delegate-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-delegate-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-delegate-dialog{}verdocs-delegate-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-delegate-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-delegate-dialog .buttons button.cancel{background-color:#654dcb}verdocs-delegate-dialog .buttons button.proceed{background-color:#55bc81}verdocs-delegate-dialog .buttons button:disabled{background-color:#6c727f}';const m=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.endpoint=o;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDelegate(){this.next.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message})}render(){return i("verdocs-dialog",{key:"c8b2b8b55b6f0aa0ce22b232ada78eb65d839e5d"},i("div",{key:"a232d72b90086b7dd21246567b4ab7db80ba9855",slot:"heading",class:"heading"},i("div",{key:"bade50c544129ed54a43d76c475f8dc378d46ffd",class:"icon"},i("svg",{key:"72299a219d60e292ce32f63d25b647d448f24add",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"f6b2269e403530b00d16c545e3681236ca335650","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"4184d176c8fbe132a217b869ca5e742d38b5f3cd",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),i("defs",{key:"4aa388d7b0c799d426c7da94de93ab1be61ccbf0"},i("clipPath",{key:"0260929f251a0c3ad8bfc1f9e1bc9687cb3b60f6",id:"clip0_34208_4881"},i("path",{key:"64c42049336d37be15cb53adc91fe232955768d4",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"f9111aedb3a8e09a5898e560603592cdd972539b",class:"title"},'Delegate "',this.envelope.name,'"')),i("div",{key:"cee68483e20d610fa6f27f91bc31782717b89326",slot:"content",class:"content"},i("div",{key:"7316f1efd0cec724711236179efb949980e2fce1",class:"input names"},i("label",{key:"f26c2b853c322858a6376ee124f008adc807cc01",htmlFor:"verdocs-delegate-email"},"New Recipient:"),i("input",{key:"0c8e5895ff3bedb18112a29952402b4b0b6594c3",type:"text",id:"verdocs-delegate-first",name:"verdocs-delegate-first",autocomplete:"blocked",placeholder:"First name...",value:this.first_name,onInput:t=>this.first_name=t.target.value}),i("input",{key:"1c103e348495c708313f0d5d8718f0b16bfe51a8",type:"text",id:"verdocs-delegate-last",name:"verdocs-delegate-last",autocomplete:"blocked",placeholder:"Last name...",value:this.last_name,onInput:t=>this.last_name=t.target.value})),i("div",{key:"2d1371968cc1e39566f5442b8f1d1d7cad99bd16",class:"input"},i("label",{key:"4288dba409f55402f2dde44697cf4e5282b812b8",htmlFor:"verdocs-delegate-email"},"Email Address:"),i("input",{key:"db7e71075d6024a8207cd0fbcb9bd1461a526378",type:"text",id:"verdocs-delegate-email",name:"verdocs-delegate-email",autocomplete:"blocked",placeholder:"New recipient email address...",value:this.email,onInput:t=>this.email=t.target.value})),i("div",{key:"ec28591dc85cc862779023cb2987a71c5c13c66e",class:"input"},i("label",{key:"7b17786a3511eaeaf4c45997a632f2533071d6f9",htmlFor:"verdocs-delegate-phone"},"Phone:"),i("input",{key:"0a3ba95551a66756c77f4ccd9c5269aaa20f5d6f",type:"text",id:"verdocs-delegate-phone",name:"verdocs-delegate-phone",autocomplete:"blocked",placeholder:"Optional phone number...",value:this.phone,onInput:t=>this.phone=t.target.value})),i("div",{key:"2e94fd83e0d58ba0ad37f97be2e09971ad8a80c4",class:"input"},i("label",{key:"ec0c5fb1d5c3e4985ee57bbb7d1722aa55b7a2b3",htmlFor:"verdocs-delegate-email"},"Message:"),i("textarea",{key:"9962c1d2dc7f61fea639204766bd0eb0b030c90b",id:"verdocs-delegate-message",name:"verdocs-delegate-message",rows:3,autocomplete:"blocked",placeholder:"Optional message to include in the invitation...",onInput:t=>this.message=t.target.value},this.message))),i("div",{key:"67062f5d1ecca5fd8206149067351a93d717282f",class:"footer",slot:"footer"},i("div",{key:"c05f381f9be5a54ad71e98233999aa69fbf57d61",class:"buttons"},i("button",{key:"cc64ad9c6d68f4136227aa8e18a65aadb4f788a8",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),i("button",{key:"41750cc0bd2e3234053ca015c59febaee914d5c3",class:"proceed",onClick:()=>this.handleDelegate(),disabled:!this.first_name||!this.last_name||!this.email},"Proceed"))))}};m.style=x;const k="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-disclosure-dialog .footer .accept{margin:0 0 28px 28px;color:#374151}verdocs-disclosure-dialog a{color:#4c56cb}verdocs-disclosure-dialog verdocs-checkbox{font-size:14px;line-height:20px}verdocs-disclosure-dialog verdocs-checkbox label>input[type=checkbox]+*::before{width:16px;height:16px;line-height:16px;margin-left:-28px;vertical-align:middle}verdocs-disclosure-dialog{}verdocs-disclosure-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-disclosure-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-disclosure-dialog .buttons button.decline{background-color:#654dcb}verdocs-disclosure-dialog .buttons button.delegate{background-color:#55bc81}verdocs-disclosure-dialog .buttons button.proceed{background-color:#55bc81}verdocs-disclosure-dialog .buttons button:disabled{background-color:#6c727f}";const C=class{constructor(i){t(this,i);this.decline=e(this,"decline");this.delegate=e(this,"delegate");this.accept=e(this,"accept");this.disclosures=null;this.delegator=false;this.accepted=false}render(){return i("verdocs-dialog",{key:"c4cc7a16c4293cf80429231086ae63cc69884f17"},i("div",{key:"edf08816777ef7e9a97cfbcbb088b637213508a3",slot:"heading",class:"heading"},i("div",{key:"27ecefd189609ec0ea6e05c7560792620b1af357",class:"icon"},i("svg",{key:"040d5c7490bf25e6aa46c0ce695bb4cf83efc52a",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"7869413e61c79e166c80e442e03f8214af64760f","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"063960d72cbaccbc974687e6409c984a0d817f77",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),i("defs",{key:"f0e56dc0f1b0cb6b9f9c5b4974173be204736506"},i("clipPath",{key:"a43f3c6956cca9a70b1f9bce60623eab9dc903ed",id:"clip0_34208_4881"},i("path",{key:"ee474432664d47540a6960723643ecf37a076366",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"4496d3e2c91796e2687912b9c65d1d886081df75",class:"title"},"e-Signature Disclosures")),i("div",{key:"250ea6d11bf3e286ef58f0b5a02a26bb48b952db",slot:"content",class:"content",innerHTML:this.disclosures}),i("div",{key:"1f7d6812c05dda23c952a06cac30e9aaeb830219",class:"footer",slot:"footer"},i("div",{key:"ee1e7bbab76c4269b214700272bc7acc73d4081b",class:"accept"},i("verdocs-checkbox",{key:"02e0e888aad7eee1a2b270381d28f2dc95ef0da0",label:"I accept the electronic signature disclosures and agree to proceed with digital signing.",checked:this.accepted,onInput:()=>this.accepted=!this.accepted})),this.delegator?i(s,null,i("div",{class:"buttons"},i("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")),i("div",{class:"buttons"},i("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),i("button",{class:"delegate",onClick:()=>this.delegate.emit()},"Delegate"))):i(s,null,i("div",{class:"buttons"},i("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),i("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")))))}};C.style=k;function w(t){return typeof t==="string"||t instanceof String}function A(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function y(t,e){if(Array.isArray(e))return y(t,((t,i)=>e.includes(i)));return Object.entries(t).reduce(((t,i)=>{let[s,r]=i;if(e(r,s))t[s]=r;return t}),{})}const F={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function D(t){switch(t){case F.LEFT:return F.FORCE_LEFT;case F.RIGHT:return F.FORCE_RIGHT;default:return t}}function B(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function E(t,e){if(e===t)return true;const i=Array.isArray(e),s=Array.isArray(t);let r;if(i&&s){if(e.length!=t.length)return false;for(r=0;r<e.length;r++)if(!E(e[r],t[r]))return false;return true}if(i!=s)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){const i=e instanceof Date,s=t instanceof Date;if(i&&s)return e.getTime()==t.getTime();if(i!=s)return false;const n=e instanceof RegExp,o=t instanceof RegExp;if(n&&o)return e.toString()==t.toString();if(n!=o)return false;const a=Object.keys(e);for(r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return false;for(r=0;r<a.length;r++)if(!E(t[a[r]],e[a[r]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}class _{constructor(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return F.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?F.RIGHT:F.LEFT}}function I(t,e){return new I.InputMask(t,e)}function V(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return I.MaskedRegExp;if(w(t))return I.MaskedPattern;if(t===Date)return I.MaskedDate;if(t===Number)return I.MaskedNumber;if(Array.isArray(t)||t===Array)return I.MaskedDynamic;if(I.Masked&&t.prototype instanceof I.Masked)return t;if(I.Masked&&t instanceof I.Masked)return t.constructor;if(t instanceof Function)return I.MaskedFunction;console.warn("Mask not found for mask",t);return I.Masked}function S(t){if(!t)throw new Error("Options in not defined");if(I.Masked){if(t.prototype instanceof I.Masked)return{mask:t};const{mask:e=undefined,...i}=t instanceof I.Masked?{mask:t}:A(t)&&t.mask instanceof I.Masked?t:{};if(e){const t=e.mask;return{...y(e,((t,e)=>!e.startsWith("_"))),mask:e.constructor,_mask:t,...i}}}if(!A(t))return{mask:t};return{...t}}function M(t){if(I.Masked&&t instanceof I.Masked)return t;const e=S(t);const i=V(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}I.createMask=M;class L{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch{}}get isActive(){return false}}I.MaskElement=L;const z=90;const T=89;class R extends L{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===T&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}}}I.HTMLMaskElement=R;class O extends R{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}}I.HTMLMaskElement=R;class P extends R{get _unsafeSelectionStart(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i<s){return i}return s}get _unsafeSelectionEnd(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i>s){return i}return s}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;const i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);const s=this.rootElement;const r=s.getSelection&&s.getSelection();if(r){r.removeAllRanges();r.addRange(i)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}I.HTMLContenteditableMaskElement=P;class N{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>N.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0;this.currentIndex=0}}N.MAX_LENGTH=100;class H{constructor(t,e){this.el=t instanceof L?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new P(t):new O(t);this.masked=M(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new N;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof I.Masked)&&this.masked.constructor===V(t)){this.masked.updateOptions({mask:t});return}const e=t instanceof I.Masked?t:M({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,e){const i=this._listeners[t];if(!i)return;i.forEach((t=>t(e)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const e=this.masked.unmaskedValue;const i=this.masked.value;const s=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==s;this._unmaskedValue=e;this._value=i;this._rawInputValue=s;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:e,...i}=t;const s=!this.maskEquals(e);const r=this.masked.optionsIsChanged(i);if(s)this.mask=e;if(r)this.masked.updateOptions(i);if(s||r)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,F.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this}off(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}const i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const e=new _({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const i=this.masked.rawInputValue;const s=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;const r=i===this.masked.rawInputValue?e.removeDirection:F.NONE;let n=this.masked.nearestInputPos(e.startChangePos+s,r);if(r!==F.NONE)n=this.masked.nearestInputPos(n,F.NONE);this.updateControl(n);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}I.InputMask=H;class j{static normalize(t){return Array.isArray(t)?t:[t,new j]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}I.ChangeDetails=j;class Z{constructor(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const e=this.value[0];this.value=this.value.slice(1);return e}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class q{constructor(t){this._value="";this._update({...q.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new Z(this.extractInput(t,e),t)}appendTail(t){if(w(t))t=new Z(String(t));return t.appendTo(this)}_appendCharRaw(t,e){if(!t)return new j;this._value+=t;return new j({inserted:t,rawInserted:t})}_appendChar(t,e,i){if(e===void 0){e={}}const s=this.state;let r;[t,r]=this.doPrepareChar(t,e);if(t){r=r.aggregate(this._appendCharRaw(t,e));if(!r.rawInserted&&this.autofix==="pad"){const i=this.state;this.state=s;let n=this.pad(e);const o=this._appendCharRaw(t,e);n=n.aggregate(o);if(o.rawInserted||n.equals(r)){r=n}else{this.state=i}}}if(r.inserted){let t;let n=this.doValidate(e)!==false;if(n&&i!=null){const e=this.state;if(this.overwrite===true){t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.unshift(this.displayValue.length-r.tailShift)}}let s=this.appendTail(i);n=s.rawInserted.length===i.toString().length;if(!(n&&s.inserted)&&this.overwrite==="shift"){this.state=e;t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.shift()}s=this.appendTail(i);n=s.rawInserted.length===i.toString().length}if(n&&s.inserted)this.state=e}if(!n){r=new j;this.state=s;if(i&&t)i.state=t}}return r}_appendPlaceholder(){return new j}_appendEager(){return new j}append(t,e,i){if(!w(t))throw new Error("value should be string");const s=w(i)?new Z(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,e);for(let i=0;i<t.length;++i){const n=this._appendChar(t[i],e,s);if(!n.rawInserted&&!this.doSkipInvalid(t[i],e,s))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){r.aggregate(this._appendEager())}if(s!=null){r.tailShift+=this.appendTail(s).tailShift}return r}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new j}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const e=this.rawInputValue;const i=this.value;const s=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return s}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const e=this.state;const i=t(this);this.state=e;delete this._isolated;return i}doSkipInvalid(t,e,i){return Boolean(this.skipInvalid)}doPrepare(t,e){if(e===void 0){e={}}return j.normalize(this.prepare?this.prepare(t,this,e):t)}doPrepareChar(t,e){if(e===void 0){e={}}return j.normalize(this.prepareChar?this.prepareChar(t,this,e):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,e,i,s,r){if(i===void 0){i=""}if(s===void 0){s=F.NONE}if(r===void 0){r={input:true}}const n=t+e;const o=this.extractTail(n);const a=this.eager===true||this.eager==="remove";let u;if(a){s=D(s);u=this.extractInput(0,n,{raw:true})}let h=t;const l=new j;if(s!==F.NONE){h=this.nearestInputPos(t,e>1&&t!==0&&!a?F.NONE:s);l.tailShift=h-t}l.aggregate(this.remove(h));if(a&&s!==F.NONE&&u===this.rawInputValue){if(s===F.FORCE_LEFT){let t;while(u===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new j({tailShift:-1})).aggregate(this.remove(t-1))}}else if(s===F.FORCE_RIGHT){o.unshift()}}return l.aggregate(this.append(i,r,o))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!E(this,t)}typedValueEquals(t){const e=this.typedValue;return t===e||q.EMPTY_VALUES.includes(t)&&q.EMPTY_VALUES.includes(e)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new j}}q.DEFAULTS={skipInvalid:true};q.EMPTY_VALUES=[undefined,null,""];I.Masked=q;class W{constructor(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=w(t)?new Z(String(t)):t;const e=this.chunks[this.chunks.length-1];const i=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof Z){if(i){e.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof W){if(t.stop==null){let e;while(t.chunks.length&&t.chunks[0].stop==null){e=t.chunks.shift();e.from+=t.from;this.extend(e)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof I.MaskedPattern)){const e=new Z(this.toString());return e.appendTo(t)}const e=new j;for(let i=0;i<this.chunks.length;++i){const s=this.chunks[i];const r=t._mapPosToBlock(t.displayValue.length);const n=s.stop;let o;if(n!=null&&(!r||r.index<=n)){if(s instanceof W||t._stops.indexOf(n)>=0){e.aggregate(t._appendPlaceholder(n))}o=s instanceof W&&t._blocks[n]}if(o){const i=o.appendTail(s);e.aggregate(i);const r=s.toString().slice(i.rawInserted.length);if(r)e.aggregate(t.append(r,{tail:true}))}else{e.aggregate(t.append(s.toString(),{tail:true}))}}return e}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:e,...i}=t;Object.assign(this,i);this.chunks=e.map((t=>{const e="chunks"in t?new W:new Z;e.state=t;return e}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const e=t!=null?t-this.from:t;let i=0;while(i<this.chunks.length){const t=this.chunks[i];const s=t.unshift(e);if(t.toString()){if(!s)break;++i}else{this.chunks.splice(i,1)}if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const e=this.chunks[t];const i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""}}class U{constructor(t,e){this.masked=t;this._log=[];const{offset:i,index:s}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=i;this.index=s;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,F.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,F.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.NONE);return true}))}}class Y{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new j}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return i;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return s}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,e){if(e===void 0){e={}}if(this.isFilled)return new j;const i=this.eager===true||this.eager==="append";const s=this.char===t;const r=s&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;const n=new j({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(e.raw||e.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new j;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new Z("")}appendTail(t){if(w(t))t=new Z(String(t));return t.appendTo(this)}append(t,e,i){const s=this._appendChar(t[0],e);if(i!=null){s.tailShift+=this.appendTail(i).tailShift}return s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class K{constructor(t){const{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o,...a}=t;this.masked=M(a);Object.assign(this,{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o})}reset(){this.isFilled=false;this.masked.reset()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new j}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,e){if(e===void 0){e={}}if(this.isFilled)return new j;const i=this.masked.state;let s=this.masked._appendChar(t,this.currentMaskFlags(e));if(s.inserted&&this.doValidate(e)===false){s=new j;this.masked.state=i}if(!s.inserted&&!this.isOptional&&!this.lazy&&!e.input){s.inserted=this.placeholderChar}s.skip=!s.inserted&&!this.isOptional;this.isFilled=Boolean(s.inserted);return s}append(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new j;this.isFilled=true;return new j({inserted:this.placeholderChar})}_appendEager(){return new j}extractTail(t,e){return this.masked.extractTail(t,e)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this.value.length;const r=Math.min(Math.max(t,i),s);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?r:i;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?r:s;case F.NONE:default:return r}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var e;return{...t,_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new j}}K.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class G extends q{updateOptions(t){super.updateOptions(t)}_update(t){const e=t.mask;if(e)t.validate=t=>t.search(e)>=0;super._update(t)}}I.MaskedRegExp=G;class $ extends q{constructor(t){super({...$.DEFAULTS,...t,definitions:Object.assign({},K.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const e=this.mask;if(!e||!t)return;let i=false;let s=false;for(let r=0;r<e.length;++r){if(this.blocks){const t=e.slice(r);const i=Object.keys(this.blocks).filter((e=>t.indexOf(e)===0));i.sort(((t,e)=>e.length-t.length));const s=i[0];if(s){const{expose:t,repeat:e,...i}=S(this.blocks[s]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...i,repeat:e,parent:this};const o=e!=null?new I.RepeatBlock(n):M(n);if(o){this._blocks.push(o);if(t)this.exposeBlock=o;if(!this._maskedBlocks[s])this._maskedBlocks[s]=[];this._maskedBlocks[s].push(this._blocks.length-1)}r+=s.length-1;continue}}let n=e[r];let o=n in t;if(n===$.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){i=!i;continue}if(n==="["||n==="]"){s=!s;continue}if(n===$.ESCAPE_CHAR){++r;n=e[r];if(!n)break;o=false}const a=o?new K({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...S(t[n]),parent:this}):new Y({char:n,eager:this.eager,isUnmasking:i});this._blocks.push(a)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:e,...i}=t;this._blocks.forEach(((t,i)=>t.state=e[i]));super.state=i}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,e)=>t+=e.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(e);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,e)=>t+=e.value),"")}set value(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(e);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(e);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,e)=>t+=e.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const e=new j;let i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(let t=i;t<this._blocks.length;++t){const i=this._blocks[t]._appendEager();if(!i.inserted)break;e.aggregate(i)}return e}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._mapPosToBlock(this.displayValue.length);const s=new j;if(!i)return s;for(let n=i.index,o;o=this._blocks[n];++n){var r;const i=o._appendChar(t,{...e,_beforeTailState:(r=e._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});s.aggregate(i);if(i.consumed)break}return s}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=new W;if(t===e)return i;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{const n=t.extractTail(s,r);n.stop=this._findStopBefore(e);n.from=this._blockStartPos(e);if(n instanceof W)n.blockIndex=e;i.extend(n)}));return i}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";let s="";this._forEachBlocksInRange(t,e,((t,e,r,n)=>{s+=t.extractInput(r,n,i)}));return s}_findStopBefore(t){let e;for(let i=0;i<this._stops.length;++i){const s=this._stops[i];if(s<=t)e=s;else break}return e}_appendPlaceholder(t){const e=new j;if(this.lazy&&t==null)return e;const i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;const s=i.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(s,r).forEach((i=>{if(!i.lazy||t!=null){var s;e.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}));return e}_mapPosToBlock(t){let e="";for(let i=0;i<this._blocks.length;++i){const s=this._blocks[i];const r=e.length;e+=s.displayValue;if(t<=e.length){return{index:i,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,e)=>t+=e.displayValue.length),0)}_forEachBlocksInRange(t,e,i){if(e===void 0){e=this.displayValue.length}const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(e);const r=t&&s.index===t.index;const n=s.offset;const o=t&&r?t.offset:this._blocks[s.index].displayValue.length;i(this._blocks[s.index],s.index,n,o);if(t&&!r){for(let e=s.index+1;e<t.index;++e){i(this._blocks[e],e,0,this._blocks[e].displayValue.length)}i(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i.aggregate(t.remove(s,r))}));return i}nearestInputPos(t,e){if(e===void 0){e=F.NONE}if(!this._blocks.length)return 0;const i=new U(this,t);if(e===F.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===F.LEFT||e===F.FORCE_LEFT){if(e===F.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===F.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===F.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===F.RIGHT||e===F.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===F.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,F.LEFT)}return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}let i=0;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i+=t.totalInputPositions(s,r)}));return i}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const e=this._maskedBlocks[t];if(!e)return[];return e.map((t=>this._blocks[t]))}pad(t){const e=new j;this._forEachBlocksInRange(0,this.displayValue.length,(i=>e.aggregate(i.pad(t))));return e}}$.DEFAULTS={...q.DEFAULTS,lazy:true,placeholderChar:"_"};$.STOP_CHAR="`";$.ESCAPE_CHAR="\\";$.InputDefinition=K;$.FixedDefinition=Y;I.MaskedPattern=$;class X extends ${get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:e=this.to||0,from:i=this.from||0,maxLength:s=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=e;this.from=i;this.maxLength=Math.max(String(e).length,s);this.autofix=r;const o=String(this.from).padStart(this.maxLength,"0");const a=String(this.to).padStart(this.maxLength,"0");let u=0;while(u<a.length&&a[u]===o[u])++u;n.mask=a.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let e="";let i="";const[,s,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){e="0".repeat(s.length)+r;i="9".repeat(s.length)+r}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]}doPrepareChar(t,e){if(e===void 0){e={}}let i;[t,i]=super.doPrepareChar(t.replace(/\D/g,""),e);if(!t)i.skip=!this.isComplete;return[t,i]}_appendCharRaw(t,e){if(e===void 0){e={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,e);const i=String(this.from).padStart(this.maxLength,"0");const s=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(i[this.value.length],e);if(Number(r)>this.to){if(!e.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(i[this.value.length],e).aggregate(this._appendCharRaw(t,e))}return super._appendCharRaw(s[this.value.length],e)}return super._appendCharRaw(t,e)}doValidate(t){const e=this.value;const i=e.search(/[^0]/);if(i===-1&&e.length<=this._matchFrom)return true;const[s,r]=this.boundaries(e);return this.from<=Number(r)&&Number(s)<=this.to&&super.doValidate(t)}pad(t){const e=new j;if(this.value.length===this.maxLength)return e;const i=this.value;const s=this.maxLength-this.value.length;if(s){this.reset();for(let i=0;i<s;++i){e.aggregate(super._appendCharRaw("0",t))}i.split("").forEach((t=>this._appendCharRaw(t)))}return e}}I.MaskedRange=X;const J="d{.}`m{.}`Y";class Q extends ${static extractPatternOptions(t){const{mask:e,pattern:i,...s}=t;return{...s,mask:w(e)?e:i}}constructor(t){super(Q.extractPatternOptions({...Q.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:e,pattern:i,blocks:s,...r}={...Q.DEFAULTS,...t};const n=Object.assign({},Q.GET_DEFAULT_BLOCKS());if(t.min)n.Y.from=t.min.getFullYear();if(t.max)n.Y.to=t.max.getFullYear();if(t.min&&t.max&&n.Y.from===n.Y.to){n.m.from=t.min.getMonth()+1;n.m.to=t.max.getMonth()+1;if(n.m.from===n.m.to){n.d.from=t.min.getDate();n.d.to=t.max.getDate()}}Object.assign(n,this.blocks,s);super._update({...r,mask:w(e)?e:i,blocks:n})}doValidate(t){const e=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(Q.extractPatternOptions(t))}}Q.GET_DEFAULT_BLOCKS=()=>({d:{mask:X,from:1,to:31,maxLength:2},m:{mask:X,from:1,to:12,maxLength:2},Y:{mask:X,from:1900,to:9999}});Q.DEFAULTS={...$.DEFAULTS,mask:Date,pattern:J,format:(t,e)=>{if(!t)return"";const i=String(t.getDate()).padStart(2,"0");const s=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[i,s,r].join(".")},parse:(t,e)=>{const[i,s,r]=t.split(".").map(Number);return new Date(r,s-1,i)}};I.MaskedDate=Q;class tt extends q{constructor(t){super({...tt.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:e,...i}=S(t);const s=M({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});if(e)this.exposeMask=s;return s})):[]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i}_applyDispatch(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}const s=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;const r=this.rawInputValue;const n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:r;const o=r.slice(n.length);const a=this.currentMask;const u=new j;const h=a==null?void 0:a.state;this.currentMask=this.doDispatch(t,{...e},i);if(this.currentMask){if(this.currentMask!==a){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});u.tailShift=this.currentMask.value.length-s.length}if(o){u.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(h){this.currentMask.state=h}}return u}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const e=new j;if(t)e.aggregate(this._applyDispatch("",{},t));return e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,i;return{...t,_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState}}doDispatch(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepare(t,e);if(this.currentMask){let t;[i,t]=super.doPrepare(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,s]}doPrepareChar(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepareChar(t,e);if(this.currentMask){let t;[i,t]=super.doPrepareChar(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,s]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,e){const i=new j;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:e,currentMaskRef:i,currentMask:s,...r}=t;if(e)this.compiledMasks.forEach(((t,i)=>t.state=e[i]));if(i!=null){this.currentMask=i;this.currentMask.state=s}super.state=r}extractInput(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""}extractTail(t,e){return this.currentMask?this.currentMask.extractTail(t,e):super.extractTail(t,e)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,e){return this.currentMask?this.currentMask.nearestInputPos(t,e):super.nearestInputPos(t,e)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((e,i)=>{if(!t[i])return;const{mask:s,...r}=t[i];return E(e,r)&&e.maskEquals(s)})):super.maskEquals(t)}typedValueEquals(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))}}tt.DEFAULTS={...q.DEFAULTS,dispatch:(t,e,i,s)=>{if(!e.compiledMasks.length)return;const r=e.rawInputValue;const n=e.compiledMasks.map(((n,o)=>{const a=e.currentMask===n;const u=a?n.displayValue.length:n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!a){n.remove(u)}n.append(t,e.currentMaskFlags(i));n.appendTail(s);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(u,n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT)))}}));n.sort(((t,e)=>e.weight-t.weight||e.totalInputPositions-t.totalInputPositions));return e.compiledMasks[n[0].index]}};I.MaskedDynamic=tt;class et extends ${constructor(t){super({...et.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:e,...i}=t;if(e){const t=e.map((t=>t.length));const s=Math.min(...t);const r=Math.max(...t)-s;i.mask="*".repeat(s);if(r)i.mask+="["+"*".repeat(r)+"]";this.enum=e}super._update(i)}_appendCharRaw(t,e){if(e===void 0){e={}}const i=Math.min(this.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);const s=this.enum.filter((e=>this.matchValue(e,this.unmaskedValue+t,i)));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,((t,i)=>{const r=s[0][i];if(i>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,e)}))}const t=super._appendCharRaw(s[0][this.value.length],e);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((e=>t.aggregate(super._appendCharRaw(e))))}return t}return new j({skip:!this.isComplete})}extractTail(t,e){if(t===void 0){t=0}return new Z("",t)}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(t===e)return new j;const i=Math.min(super.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);let s;for(s=t;s>=0;--s){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(i,s),i)));if(t.length>1)break}const r=super.remove(s,e);r.tailShift+=s-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}et.DEFAULTS={...$.DEFAULTS,matchValue:(t,e,i)=>t.indexOf(e,i)===i};I.MaskedEnum=et;class it extends q{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}I.MaskedFunction=it;var st;class rt extends q{constructor(t){super({...rt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const e="\\d*";const i=(this.scale?"("+B(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(B).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(B(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)}doPrepareChar(t,e){if(e===void 0){e={}}const[i,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),e);if(t&&!i)s.skip=true;if(i&&!this.allowPositive&&!this.value&&i!=="-")s.aggregate(this._appendChar("-"));return[i,s]}_separatorsCount(t,e){if(e===void 0){e=false}let i=0;for(let s=0;s<t;++s){if(this._value.indexOf(this.thousandsSeparator,s)===s){++i;if(e)t+=this.thousandsSeparator.length}}return i}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);return this._removeThousandsSeparators(super.extractInput(t,e,i))}_appendCharRaw(t,e){if(e===void 0){e={}}const i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let o=!isNaN(n);let a=false;if(o){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(rt.UNMASKED_RADIX,this.radix);a||(a=r===this._value&&!e.tail)}else{o=false}}o&&(o=Boolean(this._value.match(this._numberRegExp)))}let u;if(!o){this._value=r;u=new j}else{u=new j({inserted:this._value.slice(r.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);const h=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(h);u.tailShift+=(l-s)*this.thousandsSeparator.length;return u}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1;const i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1}_adjustRangeWithSeparators(t,e){const i=this._findSeparatorAround(t);if(i>=0)t=i;const s=this._findSeparatorAround(e);if(s>=0)e=s+this.thousandsSeparator.length;return[t,e]}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);const i=this.value.slice(0,t);const s=this.value.slice(e);const r=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));const n=this._separatorsCountFromSlice(i);return new j({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:{const i=this._findSeparatorAround(t-1);if(i>=0){const s=i+this.thousandsSeparator.length;if(t<s||this.value.length<=s||e===F.FORCE_LEFT){return i}}break}case F.RIGHT:case F.FORCE_RIGHT:{const e=this._findSeparatorAround(t);if(e>=0){return e+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let e=t;if(this.min!=null)e=Math.max(e,this.min);if(this.max!=null)e=Math.min(e,this.max);if(e!==t)this.unmaskedValue=this.format(e,this);let i=this.value;if(this.normalizeZeros)i=this._normalizeZeros(i);if(this.padFractionalZeros&&this.scale>0)i=this._padFractionalZeros(i);this._value=i}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,((t,e,i,s)=>e+s));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)}doSkipInvalid(t,e,i){if(e===void 0){e={}}const s=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===rt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,i)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rt.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(rt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||rt.EMPTY_VALUES.includes(t)&&rt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}st=rt;rt.UNMASKED_RADIX=".";rt.EMPTY_VALUES=[...q.EMPTY_VALUES,0];rt.DEFAULTS={...q.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[st.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};I.MaskedNumber=rt;const nt={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function ot(t,e,i){if(e===void 0){e=nt.MASKED}if(i===void 0){i=nt.MASKED}const s=M(t);return t=>s.runIsolated((s=>{s[e]=t;return s[i]}))}function at(t,e,i,s){return ot(e,i,s)(t)}I.PIPE_TYPE=nt;I.createPipe=ot;I.pipe=at;class ut extends ${get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var e,i,s;const{repeat:r,...n}=S(t);this._blockOpts=Object.assign({},this._blockOpts,n);const o=M(this._blockOpts);this.repeat=(e=(i=r!=null?r:o.repeat)!=null?i:this.repeat)!=null?e:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=new j;for(let a=(s=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?s:Math.max(this._blocks.length-1,0),u,h;u=(n=this._blocks[a])!=null?n:h=!h&&this._allocateBlock(a);++a){var s,r,n,o;const l=u._appendChar(t,{...e,_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]});if(l.skip&&h){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(l);if(l.consumed)break}return i}_trimEmptyTail(t,e){var i,s;if(t===void 0){t=0}const r=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);let n;if(e!=null)n=(s=this._mapPosToBlock(e))==null?void 0:s.index;if(n==null)n=this._blocks.length-1;let o=0;for(let t=n;r<=t;--t,++o){if(this._blocks[t].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}}reset(){super.reset();this._trimEmptyTail()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._trimEmptyTail(t,e);return i}totalInputPositions(t,e){if(t===void 0){t=0}if(e==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,e)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}I.RepeatBlock=ut;try{globalThis.IMask=I}catch{}const ht='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{margin-top:4px;-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';const lt={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};const dt=Object.entries(lt).map((([t,e])=>({value:t,label:e})));const ct=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const ft=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.pinEntered=e(this,"pinEntered");this.next=e(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){I(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var e=t.getDate();var i=t.getMonth()+1;var s=t.getFullYear();if(e<10)e="0"+e;if(i<10)i="0"+i;return[i,e,s].join("/")},parse:function(t){var e=t.split("/");return new Date(e[2],e[0]-1,e[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,e,n,o,a,u,h,l,d,c,f,p,b,g;if(this.mode==="choice"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"choices"},this.choices.map((t=>i("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity"),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-first"},"Your Name:",i("span",{class:"required"},"*")),i("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value}}),i("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-address"},"Address:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-city"},"City:"),i("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-state"},"State:"),i("verdocs-select-input",{options:dt,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:this.dobContainerId},"Date of Birth:",i("span",{class:"required"},"*")),i("input",{type:"text",value:((l=this.updatedRecipient)===null||l===void 0?void 0:l.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}})),i("div",{class:"field"},i("label",null),i("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),i("span",null,"I agree to provide my personal information in order to validate my identity.")),i("div",{class:"buttons"},i("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!this.agreed||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.first_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.last_name)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.address)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.zip)||!((b=this.updatedRecipient)===null||b===void 0?void 0:b.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)})))))}return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"input"},i("label",{htmlFor:"verdocs-kba-input"},this.label),i("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};ft.style=ht;const pt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-otp-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-otp-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-otp-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-otp-dialog .step{margin-left:6px;color:#666}verdocs-otp-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-otp-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-otp-dialog .help-icon{width:40px;height:40px}verdocs-otp-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-otp-dialog .help-text{font-weight:400}verdocs-otp-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-otp-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-otp-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-otp-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-otp-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-otp-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-otp-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-otp-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-otp-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-otp-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-otp-dialog .buttons verdocs-button{margin-left:16px}';const bt=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const gt=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.resendTimeout=null;this.endpoint=o;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response=""})).catch((t=>console.log("Error resending code",t)))}),1e3)}disconnectedCallback(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}startResendTimeout(){this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((()=>{this.resendDisabled=false}),3e4)}handleResend(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response="";b("A new code has been sent.")})).catch((t=>console.log("Error resending code",t)))}handleSubmit(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:this.response}).then((t=>{console.log("Verification completed",t);this.next.emit({response:t});b("Thank you. Your verification was successful.")})).catch((t=>{b("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""}render(){return i(r,{key:"09de0f0a2b9ea033015df659dc895294191eec1f"},i("div",{key:"9dcd8ec1a69112f987c65bf005343d0aa1e92762",class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{key:"9439753f7c33b3d3316ce2be193beb6e942486c3",class:"dialog"},i("div",{key:"e4c9d1623ae43ecb73b0beba8476b8814a77bf21",class:"heading"},"Verification Required"),i("div",{key:"4d0db169d6dc13442211d51ff25c2dbacb06e324",class:"help-box"},i("div",{key:"680a7555654c0fb0fef0ec92a52f9f855c59ed30",class:"help-icon",innerHTML:bt}),i("div",{key:"b4017fcac2057b479be299a460e9fbf830554998",class:"help-details"},i("div",{key:"a92c2987721de5b2ccd47f9d6ed207b9c47f3815",class:"help-title"},"Please verify your email address"),i("div",{key:"a515d46a0be39a874d45a454d85933f8b87e6e5e",class:"help-text"},"Check your email for a one-time code, and enter it below."))),i("div",{key:"aeb05ff5cf9ffb11581ebbebbc79b7d4f2180d76",class:"input"},i("label",{key:"a120deeba33e465da4af63f557ec9804e5e3c4ef",htmlFor:"verdocs-otp-input"},"Code:"),i("input",{key:"3a54ac0a2d41bcf20c7fed828ae7d923e6eb3f2d",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:t=>this.response=t.target.value})),i("div",{key:"30c9d9f6a9c0b0443246d44ac89e087616b6ebf8",class:"buttons"},i("verdocs-button",{key:"4082e2410098b2c33f56375d5bef50acfc8db188",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{key:"7d3fd049f06ba8101375d5acfe58feb74622dca3",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),i("verdocs-button",{key:"da8b815441904ce1e97d9a3c1cc18d91cf13f92d",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};gt.style=pt;const vt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const xt=class{constructor(i){t(this,i);this.sdkError=e(this,"sdkError");this.envelopeUpdated=e(this,"envelopeUpdated");this.another=e(this,"another");this.view=e(this,"view");this.next=e(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,e,i;if(!this.endpoint){this.endpoint=u.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(s){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new g(s.message,(e=s.response)===null||e===void 0?void 0:e.status,(i=s.response)===null||i===void 0?void 0:i.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const e=document.getElementById("verdocs-view-header");if(t&&e){console.log("[VIEW] Moving header");e.remove();t.append(e)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();v.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){v.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var e,i;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;c(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var e,i,s;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new g(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}));this.showCancelDone=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const e=await d(this.endpoint,t.id);window.open(e,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const e=await d(this.endpoint,t.id);window.open(e,"_blank")}}break;case"download-all":l(this.endpoint,[this.envelope.id]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return i(r,null,i("verdocs-loader",null))}if(this.showLoadError){return i(r,null,i("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return i(r,null,i("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const e=[{id:"print",label:"Print"}];if(f(this.endpoint.profile,this.envelope)){e.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const o=this.envelope.documents.filter((t=>t.type==="attachment")).length;const a=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||a){e.push({label:""});if(n){e.push({id:"download-attachments",label:o>1?"Download Documents":"Download Document"})}if(a){e.push({id:"download-certificate",label:"Download Certificate"})}if(n&&a){e.push({id:"download-all",label:"Download All Files"})}}return i(r,null,i("div",{id:"verdocs-view-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}}),i("div",{style:{marginLeft:"10px"}}),i("verdocs-dropdown",{options:e,onOptionSelected:t=>this.handleOptionSelected(t)}))),i("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const e=p(1,t.pages);return i(s,null,e.map((e=>{var s;const r=((s=t.page_sizes)===null||s===void 0?void 0:s[e])||{width:612,height:792};return i("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:e,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&i("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}get component(){return n(this)}};xt.style=vt;export{m as verdocs_delegate_dialog,C as verdocs_disclosure_dialog,ft as verdocs_kba_dialog,gt as verdocs_otp_dialog,xt as verdocs_view};
2
- //# sourceMappingURL=p-b35f630c.entry.js.map
1
+ import{r as t,c as e,h as i,F as s,H as r,g as n}from"./p-DjAHH4ih.js";import{D as o}from"./p-C_Xku1v2.js";import{verifySigner as a,VerdocsEndpoint as u,getEnvelope as h,getEnvelopesZip as l,getEnvelopeDocumentDownloadLink as d,cancelEnvelope as c,userCanCancelEnvelope as f,integerSequence as p}from"@verdocs/js-sdk";import{V as b}from"./p-CyvDgtoV.js";import{S as g}from"./p-C1sRVZWv.js";import{S as v}from"./p-DmsV595e.js";const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-delegate-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .input{gap:10px;margin:5px 0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-delegate-dialog .input label{margin:8px 0 0 0;-ms-flex:0 0 100px;flex:0 0 100px;font-size:13px;font-weight:500;line-height:10px;white-space:nowrap}verdocs-delegate-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc}verdocs-delegate-dialog .input textarea{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc;font-family:"Inter", "Barlow", sans-serif}verdocs-delegate-dialog .input.names input{width:80px}verdocs-delegate-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-delegate-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-delegate-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-delegate-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-delegate-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-delegate-dialog{}verdocs-delegate-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-delegate-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-delegate-dialog .buttons button.cancel{background-color:#654dcb}verdocs-delegate-dialog .buttons button.proceed{background-color:#55bc81}verdocs-delegate-dialog .buttons button:disabled{background-color:#6c727f}';const m=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.endpoint=o;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDelegate(){this.next.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message})}render(){return i("verdocs-dialog",{key:"e7d2e18522508c33fdcd2d8ffd2596d7ef0f4703"},i("div",{key:"6e6d4438e8d36dc50e150d0cf67826cf12b3c181",slot:"heading",class:"heading"},i("div",{key:"15b9ffde2bb3d31b054b3f5b8818d50360080035",class:"icon"},i("svg",{key:"ae9862f069d3157bf56683c39762d043203098df",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"93460d7cf7ac57c11c89f9eaf0e67b148af5ff3f","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"156bf323b132a3d1cc3831e3f59142072caabc6b",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),i("defs",{key:"4e8e0ed7b87613084f85264f5100793bdadc9682"},i("clipPath",{key:"8441dd4b8f3fd32e43a1389c93d1e4676b1207d0",id:"clip0_34208_4881"},i("path",{key:"fc50b4dd2d8e138ed025a1c5f90756fcdbb9e96e",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"444700955fb177f60fd0d5ac32b976c238073664",class:"title"},'Delegate "',this.envelope.name,'"')),i("div",{key:"926abc297800db8d18945a4f1b3a54eec1bb35f0",slot:"content",class:"content"},i("div",{key:"93ea4eaa76ecefeec198741295c16e34eb6e00b5",class:"input names"},i("label",{key:"1f01beb189bb336cf3e632eaada5690832424a26",htmlFor:"verdocs-delegate-email"},"New Recipient:"),i("input",{key:"0828c4548d08d771e0396d0a5b1473165d9eb3c4",type:"text",id:"verdocs-delegate-first",name:"verdocs-delegate-first",autocomplete:"blocked",placeholder:"First name...",value:this.first_name,onInput:t=>this.first_name=t.target.value}),i("input",{key:"ca438ec4a4f95a7b331b118923ca1eff0e59e010",type:"text",id:"verdocs-delegate-last",name:"verdocs-delegate-last",autocomplete:"blocked",placeholder:"Last name...",value:this.last_name,onInput:t=>this.last_name=t.target.value})),i("div",{key:"f59c0091cc6551354136402b759ef57051abd63b",class:"input"},i("label",{key:"1c56dfa95af9c42ac80a2c5cbe1e3a7c16f68d8a",htmlFor:"verdocs-delegate-email"},"Email Address:"),i("input",{key:"21d98764ba0183a2cb5aee91ff6a1fc53af48f7c",type:"text",id:"verdocs-delegate-email",name:"verdocs-delegate-email",autocomplete:"blocked",placeholder:"New recipient email address...",value:this.email,onInput:t=>this.email=t.target.value})),i("div",{key:"da6021b3bd86de0fd8f83a36afd7e9386cbd611f",class:"input"},i("label",{key:"5b08bd78b0efdbc2c0e313d73483c5c724f12271",htmlFor:"verdocs-delegate-phone"},"Phone:"),i("input",{key:"236eaf54d27c25969960d87f4ba90e2b36d4cd77",type:"text",id:"verdocs-delegate-phone",name:"verdocs-delegate-phone",autocomplete:"blocked",placeholder:"Optional phone number...",value:this.phone,onInput:t=>this.phone=t.target.value})),i("div",{key:"bdad60ac6cafb9d4685b4c64d1caafdfbbd5ba6d",class:"input"},i("label",{key:"39d2e6eab4dc1eab225e47eeae6faf56e9c26091",htmlFor:"verdocs-delegate-email"},"Message:"),i("textarea",{key:"595ca9034a51ba18bedf275278c9b9b8f4a69e8f",id:"verdocs-delegate-message",name:"verdocs-delegate-message",rows:3,autocomplete:"blocked",placeholder:"Optional message to include in the invitation...",onInput:t=>this.message=t.target.value},this.message))),i("div",{key:"15734a676c249b4e25ad0fb609bd64ba6b86fde8",class:"footer",slot:"footer"},i("div",{key:"5abb8a2d42122e509dec55ff3ec8b8b42d2f4585",class:"buttons"},i("button",{key:"8bd30ede37fc0c9aab85833d92f1067ffaafa250",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),i("button",{key:"6a08b2646a66a8324dd3b19b36dd10142f0a40c0",class:"proceed",onClick:()=>this.handleDelegate(),disabled:!this.first_name||!this.last_name||!this.email},"Proceed"))))}};m.style=x;const k="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-disclosure-dialog .footer .accept{margin:0 0 28px 28px;color:#374151}verdocs-disclosure-dialog a{color:#4c56cb}verdocs-disclosure-dialog verdocs-checkbox{font-size:14px;line-height:20px}verdocs-disclosure-dialog verdocs-checkbox label>input[type=checkbox]+*::before{width:16px;height:16px;line-height:16px;margin-left:-28px;vertical-align:middle}verdocs-disclosure-dialog{}verdocs-disclosure-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-disclosure-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-disclosure-dialog .buttons button.decline{background-color:#654dcb}verdocs-disclosure-dialog .buttons button.delegate{background-color:#55bc81}verdocs-disclosure-dialog .buttons button.proceed{background-color:#55bc81}verdocs-disclosure-dialog .buttons button:disabled{background-color:#6c727f}";const w=class{constructor(i){t(this,i);this.decline=e(this,"decline");this.delegate=e(this,"delegate");this.accept=e(this,"accept");this.disclosures=null;this.delegator=false;this.accepted=false}render(){return i("verdocs-dialog",{key:"122a68106b3d95695405790f086547a4f9dc6969"},i("div",{key:"6ad6a488b6072e343e8f0f8653e522bd84d45d73",slot:"heading",class:"heading"},i("div",{key:"549409f2d18c981fce6eaf9c4cbf44d40fa94c0a",class:"icon"},i("svg",{key:"f75ef46e48eab3b6050deed19c3942f365e7429d",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("g",{key:"ee8500d5cfc88fa73bebd512da1b2a6ffcb2b390","clip-path":"url(#clip0_34208_4881)"},i("path",{key:"85da8f4218f49595b828bcf40ec56b78e9134fb8",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),i("defs",{key:"392f7e5e60c301a580c57263abb81030fb1c0f91"},i("clipPath",{key:"089bf133d88c7f1a7daebe727c7d7f9c66f10578",id:"clip0_34208_4881"},i("path",{key:"f749457882bb275f9c4b59b2c8a7addb0b00c32d",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),i("div",{key:"94cc6fe7130459c77aa563b3a0a2778bfb27ff9f",class:"title"},"e-Signature Disclosures")),i("div",{key:"3d623c8532531e56d76c12fb6299d8a052a49d76",slot:"content",class:"content",innerHTML:this.disclosures}),i("div",{key:"2e57136cb24e3848d7b3720696999e7ee8f2f1ea",class:"footer",slot:"footer"},i("div",{key:"1c48b41358e34757a5aaa8ad231436a135a6f2d6",class:"accept"},i("verdocs-checkbox",{key:"38160bb04d3b6baea4b4d04e62c9ec406d4d4a47",label:"I accept the electronic signature disclosures and agree to proceed with digital signing.",checked:this.accepted,onInput:()=>this.accepted=!this.accepted})),this.delegator?i(s,null,i("div",{class:"buttons"},i("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")),i("div",{class:"buttons"},i("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),i("button",{class:"delegate",onClick:()=>this.delegate.emit()},"Delegate"))):i(s,null,i("div",{class:"buttons"},i("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),i("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")))))}};w.style=k;function C(t){return typeof t==="string"||t instanceof String}function A(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function y(t,e){if(Array.isArray(e))return y(t,((t,i)=>e.includes(i)));return Object.entries(t).reduce(((t,i)=>{let[s,r]=i;if(e(r,s))t[s]=r;return t}),{})}const F={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function D(t){switch(t){case F.LEFT:return F.FORCE_LEFT;case F.RIGHT:return F.FORCE_RIGHT;default:return t}}function B(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function E(t,e){if(e===t)return true;const i=Array.isArray(e),s=Array.isArray(t);let r;if(i&&s){if(e.length!=t.length)return false;for(r=0;r<e.length;r++)if(!E(e[r],t[r]))return false;return true}if(i!=s)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){const i=e instanceof Date,s=t instanceof Date;if(i&&s)return e.getTime()==t.getTime();if(i!=s)return false;const n=e instanceof RegExp,o=t instanceof RegExp;if(n&&o)return e.toString()==t.toString();if(n!=o)return false;const a=Object.keys(e);for(r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(t,a[r]))return false;for(r=0;r<a.length;r++)if(!E(t[a[r]],e[a[r]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}class _{constructor(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return F.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?F.RIGHT:F.LEFT}}function I(t,e){return new I.InputMask(t,e)}function V(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return I.MaskedRegExp;if(C(t))return I.MaskedPattern;if(t===Date)return I.MaskedDate;if(t===Number)return I.MaskedNumber;if(Array.isArray(t)||t===Array)return I.MaskedDynamic;if(I.Masked&&t.prototype instanceof I.Masked)return t;if(I.Masked&&t instanceof I.Masked)return t.constructor;if(t instanceof Function)return I.MaskedFunction;console.warn("Mask not found for mask",t);return I.Masked}function S(t){if(!t)throw new Error("Options in not defined");if(I.Masked){if(t.prototype instanceof I.Masked)return{mask:t};const{mask:e=undefined,...i}=t instanceof I.Masked?{mask:t}:A(t)&&t.mask instanceof I.Masked?t:{};if(e){const t=e.mask;return{...y(e,((t,e)=>!e.startsWith("_"))),mask:e.constructor,_mask:t,...i}}}if(!A(t))return{mask:t};return{...t}}function M(t){if(I.Masked&&t instanceof I.Masked)return t;const e=S(t);const i=V(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}I.createMask=M;class L{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch{}}get isActive(){return false}}I.MaskElement=L;const z=90;const T=89;class R extends L{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===z&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===T&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===z&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}}}I.HTMLMaskElement=R;class O extends R{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}}I.HTMLMaskElement=R;class P extends R{get _unsafeSelectionStart(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i<s){return i}return s}get _unsafeSelectionEnd(){const t=this.rootElement;const e=t.getSelection&&t.getSelection();const i=e&&e.anchorOffset;const s=e&&e.focusOffset;if(s==null||i==null||i>s){return i}return s}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;const i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);const s=this.rootElement;const r=s.getSelection&&s.getSelection();if(r){r.removeAllRanges();r.addRange(i)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}I.HTMLContenteditableMaskElement=P;class N{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>N.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0;this.currentIndex=0}}N.MAX_LENGTH=100;class H{constructor(t,e){this.el=t instanceof L?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new P(t):new O(t);this.masked=M(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new N;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof I.Masked)&&this.masked.constructor===V(t)){this.masked.updateOptions({mask:t});return}const e=t instanceof I.Masked?t:M({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,e){const i=this._listeners[t];if(!i)return;i.forEach((t=>t(e)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const e=this.masked.unmaskedValue;const i=this.masked.value;const s=this.masked.rawInputValue;const r=this.displayValue;const n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==s;this._unmaskedValue=e;this._value=i;this._rawInputValue=s;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:e,...i}=t;const s=!this.maskEquals(e);const r=this.masked.optionsIsChanged(i);if(s)this.mask=e;if(r)this.masked.updateOptions(i);if(s||r)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,F.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this}off(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}const i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const e=new _({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const i=this.masked.rawInputValue;const s=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;const r=i===this.masked.rawInputValue?e.removeDirection:F.NONE;let n=this.masked.nearestInputPos(e.startChangePos+s,r);if(r!==F.NONE)n=this.masked.nearestInputPos(n,F.NONE);this.updateControl(n);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}I.InputMask=H;class j{static normalize(t){return Array.isArray(t)?t:[t,new j]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}I.ChangeDetails=j;class Z{constructor(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const e=this.value[0];this.value=this.value.slice(1);return e}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class q{constructor(t){this._value="";this._update({...q.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new Z(this.extractInput(t,e),t)}appendTail(t){if(C(t))t=new Z(String(t));return t.appendTo(this)}_appendCharRaw(t,e){if(!t)return new j;this._value+=t;return new j({inserted:t,rawInserted:t})}_appendChar(t,e,i){if(e===void 0){e={}}const s=this.state;let r;[t,r]=this.doPrepareChar(t,e);if(t){r=r.aggregate(this._appendCharRaw(t,e));if(!r.rawInserted&&this.autofix==="pad"){const i=this.state;this.state=s;let n=this.pad(e);const o=this._appendCharRaw(t,e);n=n.aggregate(o);if(o.rawInserted||n.equals(r)){r=n}else{this.state=i}}}if(r.inserted){let t;let n=this.doValidate(e)!==false;if(n&&i!=null){const e=this.state;if(this.overwrite===true){t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.unshift(this.displayValue.length-r.tailShift)}}let s=this.appendTail(i);n=s.rawInserted.length===i.toString().length;if(!(n&&s.inserted)&&this.overwrite==="shift"){this.state=e;t=i.state;for(let t=0;t<r.rawInserted.length;++t){i.shift()}s=this.appendTail(i);n=s.rawInserted.length===i.toString().length}if(n&&s.inserted)this.state=e}if(!n){r=new j;this.state=s;if(i&&t)i.state=t}}return r}_appendPlaceholder(){return new j}_appendEager(){return new j}append(t,e,i){if(!C(t))throw new Error("value should be string");const s=C(i)?new Z(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;let r;[t,r]=this.doPrepare(t,e);for(let i=0;i<t.length;++i){const n=this._appendChar(t[i],e,s);if(!n.rawInserted&&!this.doSkipInvalid(t[i],e,s))break;r.aggregate(n)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){r.aggregate(this._appendEager())}if(s!=null){r.tailShift+=this.appendTail(s).tailShift}return r}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new j}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const e=this.rawInputValue;const i=this.value;const s=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return s}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const e=this.state;const i=t(this);this.state=e;delete this._isolated;return i}doSkipInvalid(t,e,i){return Boolean(this.skipInvalid)}doPrepare(t,e){if(e===void 0){e={}}return j.normalize(this.prepare?this.prepare(t,this,e):t)}doPrepareChar(t,e){if(e===void 0){e={}}return j.normalize(this.prepareChar?this.prepareChar(t,this,e):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,e,i,s,r){if(i===void 0){i=""}if(s===void 0){s=F.NONE}if(r===void 0){r={input:true}}const n=t+e;const o=this.extractTail(n);const a=this.eager===true||this.eager==="remove";let u;if(a){s=D(s);u=this.extractInput(0,n,{raw:true})}let h=t;const l=new j;if(s!==F.NONE){h=this.nearestInputPos(t,e>1&&t!==0&&!a?F.NONE:s);l.tailShift=h-t}l.aggregate(this.remove(h));if(a&&s!==F.NONE&&u===this.rawInputValue){if(s===F.FORCE_LEFT){let t;while(u===this.rawInputValue&&(t=this.displayValue.length)){l.aggregate(new j({tailShift:-1})).aggregate(this.remove(t-1))}}else if(s===F.FORCE_RIGHT){o.unshift()}}return l.aggregate(this.append(i,r,o))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!E(this,t)}typedValueEquals(t){const e=this.typedValue;return t===e||q.EMPTY_VALUES.includes(t)&&q.EMPTY_VALUES.includes(e)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new j}}q.DEFAULTS={skipInvalid:true};q.EMPTY_VALUES=[undefined,null,""];I.Masked=q;class W{constructor(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=C(t)?new Z(String(t)):t;const e=this.chunks[this.chunks.length-1];const i=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof Z){if(i){e.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof W){if(t.stop==null){let e;while(t.chunks.length&&t.chunks[0].stop==null){e=t.chunks.shift();e.from+=t.from;this.extend(e)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof I.MaskedPattern)){const e=new Z(this.toString());return e.appendTo(t)}const e=new j;for(let i=0;i<this.chunks.length;++i){const s=this.chunks[i];const r=t._mapPosToBlock(t.displayValue.length);const n=s.stop;let o;if(n!=null&&(!r||r.index<=n)){if(s instanceof W||t._stops.indexOf(n)>=0){e.aggregate(t._appendPlaceholder(n))}o=s instanceof W&&t._blocks[n]}if(o){const i=o.appendTail(s);e.aggregate(i);const r=s.toString().slice(i.rawInserted.length);if(r)e.aggregate(t.append(r,{tail:true}))}else{e.aggregate(t.append(s.toString(),{tail:true}))}}return e}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:e,...i}=t;Object.assign(this,i);this.chunks=e.map((t=>{const e="chunks"in t?new W:new Z;e.state=t;return e}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const e=t!=null?t-this.from:t;let i=0;while(i<this.chunks.length){const t=this.chunks[i];const s=t.unshift(e);if(t.toString()){if(!s)break;++i}else{this.chunks.splice(i,1)}if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const e=this.chunks[t];const i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""}}class U{constructor(t,e){this.masked=t;this._log=[];const{offset:i,index:s}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=i;this.index=s;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,F.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,F.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,F.NONE);return true}))}}class Y{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new j}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return i;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return s}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,e){if(e===void 0){e={}}if(this.isFilled)return new j;const i=this.eager===true||this.eager==="append";const s=this.char===t;const r=s&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;const n=new j({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(e.raw||e.input);return n}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new j;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new Z("")}appendTail(t){if(C(t))t=new Z(String(t));return t.appendTo(this)}append(t,e,i){const s=this._appendChar(t[0],e);if(i!=null){s.tailShift+=this.appendTail(i).tailShift}return s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class K{constructor(t){const{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o,...a}=t;this.masked=M(a);Object.assign(this,{parent:e,isOptional:i,placeholderChar:s,displayChar:r,lazy:n,eager:o})}reset(){this.isFilled=false;this.masked.reset()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new j}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,e){if(e===void 0){e={}}if(this.isFilled)return new j;const i=this.masked.state;let s=this.masked._appendChar(t,this.currentMaskFlags(e));if(s.inserted&&this.doValidate(e)===false){s=new j;this.masked.state=i}if(!s.inserted&&!this.isOptional&&!this.lazy&&!e.input){s.inserted=this.placeholderChar}s.skip=!s.inserted&&!this.isOptional;this.isFilled=Boolean(s.inserted);return s}append(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new j;this.isFilled=true;return new j({inserted:this.placeholderChar})}_appendEager(){return new j}extractTail(t,e){return this.masked.extractTail(t,e)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)}nearestInputPos(t,e){if(e===void 0){e=F.NONE}const i=0;const s=this.value.length;const r=Math.min(Math.max(t,i),s);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?r:i;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?r:s;case F.NONE:default:return r}}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var e;return{...t,_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new j}}K.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class G extends q{updateOptions(t){super.updateOptions(t)}_update(t){const e=t.mask;if(e)t.validate=t=>t.search(e)>=0;super._update(t)}}I.MaskedRegExp=G;class $ extends q{constructor(t){super({...$.DEFAULTS,...t,definitions:Object.assign({},K.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const e=this.mask;if(!e||!t)return;let i=false;let s=false;for(let r=0;r<e.length;++r){if(this.blocks){const t=e.slice(r);const i=Object.keys(this.blocks).filter((e=>t.indexOf(e)===0));i.sort(((t,e)=>e.length-t.length));const s=i[0];if(s){const{expose:t,repeat:e,...i}=S(this.blocks[s]);const n={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...i,repeat:e,parent:this};const o=e!=null?new I.RepeatBlock(n):M(n);if(o){this._blocks.push(o);if(t)this.exposeBlock=o;if(!this._maskedBlocks[s])this._maskedBlocks[s]=[];this._maskedBlocks[s].push(this._blocks.length-1)}r+=s.length-1;continue}}let n=e[r];let o=n in t;if(n===$.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(n==="{"||n==="}"){i=!i;continue}if(n==="["||n==="]"){s=!s;continue}if(n===$.ESCAPE_CHAR){++r;n=e[r];if(!n)break;o=false}const a=o?new K({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...S(t[n]),parent:this}):new Y({char:n,eager:this.eager,isUnmasking:i});this._blocks.push(a)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:e,...i}=t;this._blocks.forEach(((t,i)=>t.state=e[i]));super.state=i}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,e)=>t+=e.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(e);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,e)=>t+=e.value),"")}set value(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(e);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(e);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,e)=>t+=e.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const e=new j;let i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(let t=i;t<this._blocks.length;++t){const i=this._blocks[t]._appendEager();if(!i.inserted)break;e.aggregate(i)}return e}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._mapPosToBlock(this.displayValue.length);const s=new j;if(!i)return s;for(let n=i.index,o;o=this._blocks[n];++n){var r;const i=o._appendChar(t,{...e,_beforeTailState:(r=e._beforeTailState)==null||(r=r._blocks)==null?void 0:r[n]});s.aggregate(i);if(i.consumed)break}return s}extractTail(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=new W;if(t===e)return i;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{const n=t.extractTail(s,r);n.stop=this._findStopBefore(e);n.from=this._blockStartPos(e);if(n instanceof W)n.blockIndex=e;i.extend(n)}));return i}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";let s="";this._forEachBlocksInRange(t,e,((t,e,r,n)=>{s+=t.extractInput(r,n,i)}));return s}_findStopBefore(t){let e;for(let i=0;i<this._stops.length;++i){const s=this._stops[i];if(s<=t)e=s;else break}return e}_appendPlaceholder(t){const e=new j;if(this.lazy&&t==null)return e;const i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;const s=i.index;const r=t!=null?t:this._blocks.length;this._blocks.slice(s,r).forEach((i=>{if(!i.lazy||t!=null){var s;e.aggregate(i._appendPlaceholder((s=i._blocks)==null?void 0:s.length))}}));return e}_mapPosToBlock(t){let e="";for(let i=0;i<this._blocks.length;++i){const s=this._blocks[i];const r=e.length;e+=s.displayValue;if(t<=e.length){return{index:i,offset:t-r}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,e)=>t+=e.displayValue.length),0)}_forEachBlocksInRange(t,e,i){if(e===void 0){e=this.displayValue.length}const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(e);const r=t&&s.index===t.index;const n=s.offset;const o=t&&r?t.offset:this._blocks[s.index].displayValue.length;i(this._blocks[s.index],s.index,n,o);if(t&&!r){for(let e=s.index+1;e<t.index;++e){i(this._blocks[e],e,0,this._blocks[e].displayValue.length)}i(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i.aggregate(t.remove(s,r))}));return i}nearestInputPos(t,e){if(e===void 0){e=F.NONE}if(!this._blocks.length)return 0;const i=new U(this,t);if(e===F.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===F.LEFT||e===F.FORCE_LEFT){if(e===F.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===F.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===F.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===F.RIGHT||e===F.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===F.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,F.LEFT)}return t}totalInputPositions(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}let i=0;this._forEachBlocksInRange(t,e,((t,e,s,r)=>{i+=t.totalInputPositions(s,r)}));return i}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const e=this._maskedBlocks[t];if(!e)return[];return e.map((t=>this._blocks[t]))}pad(t){const e=new j;this._forEachBlocksInRange(0,this.displayValue.length,(i=>e.aggregate(i.pad(t))));return e}}$.DEFAULTS={...q.DEFAULTS,lazy:true,placeholderChar:"_"};$.STOP_CHAR="`";$.ESCAPE_CHAR="\\";$.InputDefinition=K;$.FixedDefinition=Y;I.MaskedPattern=$;class X extends ${get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:e=this.to||0,from:i=this.from||0,maxLength:s=this.maxLength||0,autofix:r=this.autofix,...n}=t;this.to=e;this.from=i;this.maxLength=Math.max(String(e).length,s);this.autofix=r;const o=String(this.from).padStart(this.maxLength,"0");const a=String(this.to).padStart(this.maxLength,"0");let u=0;while(u<a.length&&a[u]===o[u])++u;n.mask=a.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u);super._update(n)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let e="";let i="";const[,s,r]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(r){e="0".repeat(s.length)+r;i="9".repeat(s.length)+r}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]}doPrepareChar(t,e){if(e===void 0){e={}}let i;[t,i]=super.doPrepareChar(t.replace(/\D/g,""),e);if(!t)i.skip=!this.isComplete;return[t,i]}_appendCharRaw(t,e){if(e===void 0){e={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,e);const i=String(this.from).padStart(this.maxLength,"0");const s=String(this.to).padStart(this.maxLength,"0");const[r,n]=this.boundaries(this.value+t);if(Number(n)<this.from)return super._appendCharRaw(i[this.value.length],e);if(Number(r)>this.to){if(!e.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(i[this.value.length],e).aggregate(this._appendCharRaw(t,e))}return super._appendCharRaw(s[this.value.length],e)}return super._appendCharRaw(t,e)}doValidate(t){const e=this.value;const i=e.search(/[^0]/);if(i===-1&&e.length<=this._matchFrom)return true;const[s,r]=this.boundaries(e);return this.from<=Number(r)&&Number(s)<=this.to&&super.doValidate(t)}pad(t){const e=new j;if(this.value.length===this.maxLength)return e;const i=this.value;const s=this.maxLength-this.value.length;if(s){this.reset();for(let i=0;i<s;++i){e.aggregate(super._appendCharRaw("0",t))}i.split("").forEach((t=>this._appendCharRaw(t)))}return e}}I.MaskedRange=X;const J="d{.}`m{.}`Y";class Q extends ${static extractPatternOptions(t){const{mask:e,pattern:i,...s}=t;return{...s,mask:C(e)?e:i}}constructor(t){super(Q.extractPatternOptions({...Q.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:e,pattern:i,blocks:s,...r}={...Q.DEFAULTS,...t};const n=Object.assign({},Q.GET_DEFAULT_BLOCKS());if(t.min)n.Y.from=t.min.getFullYear();if(t.max)n.Y.to=t.max.getFullYear();if(t.min&&t.max&&n.Y.from===n.Y.to){n.m.from=t.min.getMonth()+1;n.m.to=t.max.getMonth()+1;if(n.m.from===n.m.to){n.d.from=t.min.getDate();n.d.to=t.max.getDate()}}Object.assign(n,this.blocks,s);super._update({...r,mask:C(e)?e:i,blocks:n})}doValidate(t){const e=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(Q.extractPatternOptions(t))}}Q.GET_DEFAULT_BLOCKS=()=>({d:{mask:X,from:1,to:31,maxLength:2},m:{mask:X,from:1,to:12,maxLength:2},Y:{mask:X,from:1900,to:9999}});Q.DEFAULTS={...$.DEFAULTS,mask:Date,pattern:J,format:(t,e)=>{if(!t)return"";const i=String(t.getDate()).padStart(2,"0");const s=String(t.getMonth()+1).padStart(2,"0");const r=t.getFullYear();return[i,s,r].join(".")},parse:(t,e)=>{const[i,s,r]=t.split(".").map(Number);return new Date(r,s-1,i)}};I.MaskedDate=Q;class tt extends q{constructor(t){super({...tt.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:e,...i}=S(t);const s=M({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});if(e)this.exposeMask=s;return s})):[]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i}_applyDispatch(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}const s=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;const r=this.rawInputValue;const n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:r;const o=r.slice(n.length);const a=this.currentMask;const u=new j;const h=a==null?void 0:a.state;this.currentMask=this.doDispatch(t,{...e},i);if(this.currentMask){if(this.currentMask!==a){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});u.tailShift=this.currentMask.value.length-s.length}if(o){u.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(h){this.currentMask.state=h}}return u}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const e=new j;if(t)e.aggregate(this._applyDispatch("",{},t));return e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,i;return{...t,_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState}}doDispatch(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepare(t,e);if(this.currentMask){let t;[i,t]=super.doPrepare(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,s]}doPrepareChar(t,e){if(e===void 0){e={}}let[i,s]=super.doPrepareChar(t,e);if(this.currentMask){let t;[i,t]=super.doPrepareChar(i,this.currentMaskFlags(e));s=s.aggregate(t)}return[i,s]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,e){const i=new j;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:e,currentMaskRef:i,currentMask:s,...r}=t;if(e)this.compiledMasks.forEach(((t,i)=>t.state=e[i]));if(i!=null){this.currentMask=i;this.currentMask.state=s}super.state=r}extractInput(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""}extractTail(t,e){return this.currentMask?this.currentMask.extractTail(t,e):super.extractTail(t,e)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,e){return this.currentMask?this.currentMask.nearestInputPos(t,e):super.nearestInputPos(t,e)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((e,i)=>{if(!t[i])return;const{mask:s,...r}=t[i];return E(e,r)&&e.maskEquals(s)})):super.maskEquals(t)}typedValueEquals(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))}}tt.DEFAULTS={...q.DEFAULTS,dispatch:(t,e,i,s)=>{if(!e.compiledMasks.length)return;const r=e.rawInputValue;const n=e.compiledMasks.map(((n,o)=>{const a=e.currentMask===n;const u=a?n.displayValue.length:n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT);if(n.rawInputValue!==r){n.reset();n.append(r,{raw:true})}else if(!a){n.remove(u)}n.append(t,e.currentMaskFlags(i));n.appendTail(s);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(u,n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT)))}}));n.sort(((t,e)=>e.weight-t.weight||e.totalInputPositions-t.totalInputPositions));return e.compiledMasks[n[0].index]}};I.MaskedDynamic=tt;class et extends ${constructor(t){super({...et.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:e,...i}=t;if(e){const t=e.map((t=>t.length));const s=Math.min(...t);const r=Math.max(...t)-s;i.mask="*".repeat(s);if(r)i.mask+="["+"*".repeat(r)+"]";this.enum=e}super._update(i)}_appendCharRaw(t,e){if(e===void 0){e={}}const i=Math.min(this.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);const s=this.enum.filter((e=>this.matchValue(e,this.unmaskedValue+t,i)));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,((t,i)=>{const r=s[0][i];if(i>=this.value.length||r===t.value)return;t.reset();t._appendChar(r,e)}))}const t=super._appendCharRaw(s[0][this.value.length],e);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((e=>t.aggregate(super._appendCharRaw(e))))}return t}return new j({skip:!this.isComplete})}extractTail(t,e){if(t===void 0){t=0}return new Z("",t)}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(t===e)return new j;const i=Math.min(super.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);let s;for(s=t;s>=0;--s){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(i,s),i)));if(t.length>1)break}const r=super.remove(s,e);r.tailShift+=s-t;return r}get isComplete(){return this.enum.indexOf(this.value)>=0}}et.DEFAULTS={...$.DEFAULTS,matchValue:(t,e,i)=>t.indexOf(e,i)===i};I.MaskedEnum=et;class it extends q{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}I.MaskedFunction=it;var st;class rt extends q{constructor(t){super({...rt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const e="\\d*";const i=(this.scale?"("+B(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(B).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(B(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)}doPrepareChar(t,e){if(e===void 0){e={}}const[i,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),e);if(t&&!i)s.skip=true;if(i&&!this.allowPositive&&!this.value&&i!=="-")s.aggregate(this._appendChar("-"));return[i,s]}_separatorsCount(t,e){if(e===void 0){e=false}let i=0;for(let s=0;s<t;++s){if(this._value.indexOf(this.thousandsSeparator,s)===s){++i;if(e)t+=this.thousandsSeparator.length}}return i}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);return this._removeThousandsSeparators(super.extractInput(t,e,i))}_appendCharRaw(t,e){if(e===void 0){e={}}const i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const s=this._separatorsCountFromSlice(i);this._value=this._removeThousandsSeparators(this.value);const r=this._value;this._value+=t;const n=this.number;let o=!isNaN(n);let a=false;if(o){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(rt.UNMASKED_RADIX,this.radix);a||(a=r===this._value&&!e.tail)}else{o=false}}o&&(o=Boolean(this._value.match(this._numberRegExp)))}let u;if(!o){this._value=r;u=new j}else{u=new j({inserted:this._value.slice(r.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);const h=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;const l=this._separatorsCountFromSlice(h);u.tailShift+=(l-s)*this.thousandsSeparator.length;return u}_findSeparatorAround(t){if(this.thousandsSeparator){const e=t-this.thousandsSeparator.length+1;const i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1}_adjustRangeWithSeparators(t,e){const i=this._findSeparatorAround(t);if(i>=0)t=i;const s=this._findSeparatorAround(e);if(s>=0)e=s+this.thousandsSeparator.length;return[t,e]}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}[t,e]=this._adjustRangeWithSeparators(t,e);const i=this.value.slice(0,t);const s=this.value.slice(e);const r=this._separatorsCount(i.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(i+s));const n=this._separatorsCountFromSlice(i);return new j({tailShift:(n-r)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:{const i=this._findSeparatorAround(t-1);if(i>=0){const s=i+this.thousandsSeparator.length;if(t<s||this.value.length<=s||e===F.FORCE_LEFT){return i}}break}case F.RIGHT:case F.FORCE_RIGHT:{const e=this._findSeparatorAround(t);if(e>=0){return e+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let e=t;if(this.min!=null)e=Math.max(e,this.min);if(this.max!=null)e=Math.min(e,this.max);if(e!==t)this.unmaskedValue=this.format(e,this);let i=this.value;if(this.normalizeZeros)i=this._normalizeZeros(i);if(this.padFractionalZeros&&this.scale>0)i=this._padFractionalZeros(i);this._value=i}super.doCommit()}_normalizeZeros(t){const e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,((t,e,i,s)=>e+s));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)}doSkipInvalid(t,e,i){if(e===void 0){e={}}const s=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===rt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,i)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,rt.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(rt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||rt.EMPTY_VALUES.includes(t)&&rt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}st=rt;rt.UNMASKED_RADIX=".";rt.EMPTY_VALUES=[...q.EMPTY_VALUES,0];rt.DEFAULTS={...q.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[st.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};I.MaskedNumber=rt;const nt={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function ot(t,e,i){if(e===void 0){e=nt.MASKED}if(i===void 0){i=nt.MASKED}const s=M(t);return t=>s.runIsolated((s=>{s[e]=t;return s[i]}))}function at(t,e,i,s){return ot(e,i,s)(t)}I.PIPE_TYPE=nt;I.createPipe=ot;I.pipe=at;class ut extends ${get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var e,i,s;const{repeat:r,...n}=S(t);this._blockOpts=Object.assign({},this._blockOpts,n);const o=M(this._blockOpts);this.repeat=(e=(i=r!=null?r:o.repeat)!=null?i:this.repeat)!=null?e:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,e){if(e===void 0){e={}}const i=new j;for(let a=(s=(r=this._mapPosToBlock(this.displayValue.length))==null?void 0:r.index)!=null?s:Math.max(this._blocks.length-1,0),u,h;u=(n=this._blocks[a])!=null?n:h=!h&&this._allocateBlock(a);++a){var s,r,n,o;const l=u._appendChar(t,{...e,_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]});if(l.skip&&h){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(l);if(l.consumed)break}return i}_trimEmptyTail(t,e){var i,s;if(t===void 0){t=0}const r=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);let n;if(e!=null)n=(s=this._mapPosToBlock(e))==null?void 0:s.index;if(n==null)n=this._blocks.length-1;let o=0;for(let t=n;r<=t;--t,++o){if(this._blocks[t].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}}reset(){super.reset();this._trimEmptyTail()}remove(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}const i=super.remove(t,e);this._trimEmptyTail(t,e);return i}totalInputPositions(t,e){if(t===void 0){t=0}if(e==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,e)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}I.RepeatBlock=ut;try{globalThis.IMask=I}catch{}const ht='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{margin-top:4px;-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';const lt={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};const dt=Object.entries(lt).map((([t,e])=>({value:t,label:e})));const ct=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const ft=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.pinEntered=e(this,"pinEntered");this.next=e(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){I(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var e=t.getDate();var i=t.getMonth()+1;var s=t.getFullYear();if(e<10)e="0"+e;if(i<10)i="0"+i;return[i,e,s].join("/")},parse:function(t){var e=t.split("/");return new Date(e[2],e[0]-1,e[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,e,n,o,a,u,h,l,d,c,f,p,b,g;if(this.mode==="choice"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"choices"},this.choices.map((t=>i("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t)))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Confirm Your Identity"),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-first"},"Your Name:",i("span",{class:"required"},"*")),i("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value}}),i("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-address"},"Address:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-city"},"City:"),i("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-state"},"State:"),i("verdocs-select-input",{options:dt,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",i("span",{class:"required"},"*")),i("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value}})),i("div",{class:"field"},i("label",{htmlFor:this.dobContainerId},"Date of Birth:",i("span",{class:"required"},"*")),i("input",{type:"text",value:((l=this.updatedRecipient)===null||l===void 0?void 0:l.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}})),i("div",{class:"field"},i("label",null),i("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),i("span",null,"I agree to provide my personal information in order to validate my identity.")),i("div",{class:"buttons"},i("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!this.agreed||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.first_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.last_name)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.address)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.zip)||!((b=this.updatedRecipient)===null||b===void 0?void 0:b.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)})))))}return i(r,null,i("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{class:"dialog"},i("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?i("span",{class:"step"},"(",this.step,"/",this.steps,")"):i(s,null)),!!this.helptitle&&i("div",{class:"help-box"},i("div",{class:"help-icon",innerHTML:ct}),i("div",{class:"help-details"},i("div",{class:"help-title"},this.helptitle),i("div",{class:"help-text"},this.helptext))),i("div",{class:"input"},i("label",{htmlFor:"verdocs-kba-input"},this.label),i("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value})),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};ft.style=ht;const pt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-otp-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-otp-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-otp-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-otp-dialog .step{margin-left:6px;color:#666}verdocs-otp-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-otp-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-otp-dialog .help-icon{width:40px;height:40px}verdocs-otp-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-otp-dialog .help-text{font-weight:400}verdocs-otp-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-otp-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-otp-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-otp-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-otp-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-otp-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-otp-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-otp-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-otp-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-otp-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-otp-dialog .buttons verdocs-button{margin-left:16px}';const bt=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const gt=class{constructor(i){t(this,i);this.exit=e(this,"exit");this.next=e(this,"next");this.resendTimeout=null;this.endpoint=o;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response=""})).catch((t=>console.log("Error resending code",t)))}),1e3)}disconnectedCallback(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}startResendTimeout(){this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((()=>{this.resendDisabled=false}),3e4)}handleResend(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response="";b("A new code has been sent.")})).catch((t=>console.log("Error resending code",t)))}handleSubmit(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:this.response}).then((t=>{console.log("Verification completed",t);this.next.emit({response:t});b("Thank you. Your verification was successful.")})).catch((t=>{b("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""}render(){return i(r,{key:"887680162b69eee4befc4d4f31065b76c7edd2c2"},i("div",{key:"fe9fbc86ed4dd93d6d1bade28000ddeef1ef8693",class:"background-overlay",onClick:t=>this.handleDismiss(t)},i("div",{key:"7f6cc1b3822f8e4880bc8502f8f8da64e8c431c8",class:"dialog"},i("div",{key:"8e79e8b175a247be9b1400f2ac11e5cf983d55d7",class:"heading"},"Verification Required"),i("div",{key:"0d2c17d0c8e83391d70a845b72fa4cbe88ecfe42",class:"help-box"},i("div",{key:"ed75f66afdcc074a2fd8fc28b9ecee7d45be6bed",class:"help-icon",innerHTML:bt}),i("div",{key:"d07fb54cade3868716d4376a59beebe7dcd81711",class:"help-details"},i("div",{key:"925ecbf704317aab3287d9cb4c47b6d93ef7d63d",class:"help-title"},"Please verify your email address"),i("div",{key:"5e26d9b58934b284b8a9342f4011d08571a41b34",class:"help-text"},"Check your email for a one-time code, and enter it below."))),i("div",{key:"764469591a1bb3a12a8eba286e4e8499144152fe",class:"input"},i("label",{key:"55bc83cc1bac9867495f076d579e93a2a4740aa8",htmlFor:"verdocs-otp-input"},"Code:"),i("input",{key:"0d4a79369618aecce96554a1bfc220f127a05851",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:t=>this.response=t.target.value})),i("div",{key:"d36eb23e1ba37035340e31fb920efa37934fda34",class:"buttons"},i("verdocs-button",{key:"0bb8c10e04c96f5e2cd5bb11a5e8cd8ae91f0dcc",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),i("verdocs-button",{key:"6db21040c54db994d9fe0e6eab2951a8b5799bde",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),i("verdocs-button",{key:"6095d1abd1fe9f58eced48f938127805bfa5543d",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};gt.style=pt;const vt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const xt=class{constructor(i){t(this,i);this.sdkError=e(this,"sdkError");this.envelopeUpdated=e(this,"envelopeUpdated");this.another=e(this,"another");this.view=e(this,"view");this.next=e(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,e,i;if(!this.endpoint){this.endpoint=u.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(s){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new g(s.message,(e=s.response)===null||e===void 0?void 0:e.status,(i=s.response)===null||i===void 0?void 0:i.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const e=document.getElementById("verdocs-view-header");if(t&&e){console.log("[VIEW] Moving header");e.remove();t.append(e)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();v.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){v.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var e,i;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;c(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var e,i,s;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new g(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}));this.showCancelDone=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const e=await d(this.endpoint,t.id);window.open(e,"_blank")}}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const e=await d(this.endpoint,t.id);window.open(e,"_blank")}}break;case"download-all":l(this.endpoint,[this.envelope.id]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return i(r,null,i("verdocs-loader",null))}if(this.showLoadError){return i(r,null,i("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return i(r,null,i("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const e=[{id:"print",label:"Print"}];if(f(this.endpoint.profile,this.envelope)){e.push({id:"cancel",label:"Cancel"})}const n=this.envelope.documents.length>0;const o=this.envelope.documents.filter((t=>t.type==="attachment")).length;const a=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||a){e.push({label:""});if(n){e.push({id:"download-attachments",label:o>1?"Download Documents":"Download Document"})}if(a){e.push({id:"download-certificate",label:"Download Certificate"})}if(n&&a){e.push({id:"download-all",label:"Download All Files"})}}return i(r,null,i("div",{id:"verdocs-view-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}}),i("div",{style:{marginLeft:"10px"}}),i("verdocs-dropdown",{options:e,onOptionSelected:t=>this.handleOptionSelected(t)}))),i("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const e=p(1,t.pages);return i(s,null,e.map((e=>{var s;const r=((s=t.page_sizes)===null||s===void 0?void 0:s[e])||{width:612,height:792};return i("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:r.width,virtualHeight:r.height,pageNumber:e,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&i("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}get component(){return n(this)}};xt.style=vt;export{m as verdocs_delegate_dialog,w as verdocs_disclosure_dialog,ft as verdocs_kba_dialog,gt as verdocs_otp_dialog,xt as verdocs_view};
2
+ //# sourceMappingURL=p-a7b796c9.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as o,h as e,H as s}from"./p-C05sDUVN.js";const n='@-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-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';const r=class{constructor(e){t(this,e);this.toggle=o(this,"toggle");this.active=false;this.icon=null;this.label=null;this.size="normal";this._active=false}componentWillLoad(){this._active=this.active}handleToggle(t){var o;t.stopPropagation();const e=!this._active;this._active=e;(o=this.toggle)===null||o===void 0?void 0:o.emit({active:e})}render(){return e(s,{key:"5831ff9f0dccbc367958a7c0746c63c7cca8af1f",class:`size-${this.size}`},this.icon?e("button",{innerHTML:this.icon,class:{active:this._active},onClick:t=>this.handleToggle(t)}):e("button",{class:{active:this._active},onClick:t=>this.handleToggle(t)},this.label))}};r.style=n;export{r as verdocs_toggle_button};
2
- //# sourceMappingURL=p-7627b523.entry.js.map
1
+ import{r as t,c as o,h as e,H as s}from"./p-DjAHH4ih.js";const n='@-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-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';const r=class{constructor(e){t(this,e);this.toggle=o(this,"toggle");this.active=false;this.icon=null;this.label=null;this.size="normal";this._active=false}componentWillLoad(){this._active=this.active}handleToggle(t){var o;t.stopPropagation();const e=!this._active;this._active=e;(o=this.toggle)===null||o===void 0?void 0:o.emit({active:e})}render(){return e(s,{key:"264b52ad58934b71384400c222095e0239514874",class:`size-${this.size}`},this.icon?e("button",{innerHTML:this.icon,class:{active:this._active},onClick:t=>this.handleToggle(t)}):e("button",{class:{active:this._active},onClick:t=>this.handleToggle(t)},this.label))}};r.style=n;export{r as verdocs_toggle_button};
2
+ //# sourceMappingURL=p-a8ccb0e1.entry.js.map